/* --------------------------デスクトップ版-------------------------- */

/* 全体幅 */
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴシック",
    "Yu Gothic Medium", "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
  font-size: 16px;
  font-weight: 400;
}
.main {
  margin: 0 auto;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 0 100px;
}

.box--white {
  width: 100%;
  background: white;
  border-radius: 20px;
  padding: 70px;
  margin: 50px 0;
  margin-bottom: 100px;
}
.box--frame {
  width: 100%;
  padding: 40px 100px;
  margin-bottom: 100px;
  background: white;
  box-shadow: 10px 10px 0px 0px #fff300;
  border: 5px solid #fff300;
  border-radius: 20px;
}
.contents__flex {
  display: flex;
  align-items: flex-end;
  width: 100%;
  margin-bottom: 50px;
  gap: 60px;
}

.contents__flex--top {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-bottom: 50px;
  gap: 60px;
}

.content__text {
  width: 100%;
}
.column {
  display: block;
  flex-direction: column;
  align-items: center;
  gap: 70px;
}
.column-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  gap: 30px;
}

.column-flex__box {
  width: 100%;
}

.visually-hidden {
  /* 画面上見えない、SRと検索エンジン対応OK */
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 背景色 */

.band-yellow-bright {
  background-color: #fff300;
}
.band-yellow {
  background-color: #fffaa6;
}
.band-gray {
  background-color: #f3f3f3;
}

/* 見出し */
h2,
h3,
h4 {
  text-align: center;
  font-weight: 700;
}
h2 {
  padding-bottom: 30px;
  font-size: 30px;
}
h3 {
  padding: 10px 0;
  font-size: 22px;
}
h4 {
  padding: 15px 0 5px 0;
  font-size: 18px;
}
.heading--left {
  text-align-last: left;
}

/* フォント */
p {
  line-height: 1.9;
}
p.center {
  text-align: center;
}
p.right {
  text-align: right;
}

p.bold {
  padding: 20px 0;
  text-align: center;
  font-size: 140%;
  font-weight: bold;
}

.small {
  font-size: 70%;
}

main p + p {
  margin-top: 1.5em;
}

/* 改行 */
.br--pc {
  display: inline;
}
.br--sp {
  display: none;
}

/* リンクボタン */
.btn--navy {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  position: relative;
  padding: 20px 90px 20px 90px;
  background: #000066;
  color: #fff;
  border: 2px solid #000066;
  border-radius: 9999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1; /* ← 重複を解消 */
  text-decoration: none;
  min-height: 44px; /* タップ領域の目安 */
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s,
    transform 0.05s;
  margin: 20px;
}
.btn--navy::before {
  position: absolute;
  content: "";
  inline-size: 10px;
  block-size: 10px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.btn--navy:hover {
  background-color: #fff;
  color: #000066;
  border: 2px solid currentColor; /* ← 文字色に追従 */
  font-weight: bold;
}
.btn--navy--min {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  position: relative;
  padding: 15px 60px 15px 60px;
  background: #000066;
  color: #fff;
  border: 2px solid #000066;
  border-radius: 9999px;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1; /* ← 重複を解消 */
  text-decoration: none;
  min-height: 44px; /* タップ領域の目安 */
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s,
    transform 0.05s;
  margin: 20px;
}
.btn--navy--min::before {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  border: 2px solid currentColor; /* ← 文字色に追従 */
  border-left: 0;
  border-bottom: 0;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.btn--navy--min:hover {
  background-color: #fff;
  color: #000066;
  border: 2px solid currentColor;
  font-weight: bold;
}

/* ====== 電話ボタン ====== */

.btn--tel {
  display: block;
  padding-top: 10px;
  padding-bottom: 20px;
}
.call-btn {
  display: flex;
  margin: 0 auto;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 450px; /* 必要に応じて変更 */
  padding: 26px 18px;
  background: #fff;
  color: #fea82e;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.06s ease, background-color 0.2s ease;
}

.call-btn:hover {
  background: #000066;
  transform: translateY(-1px);

  .call-btn__text {
    color: #fff;
  }
  .call-btn__tel {
    background: #fff;
    color: #000066;
  }

  .call-btn__icon {
    color: #fff;
  }

  /* 右のくの字 */
  .call-btn__chev {
    color: #fff;
  }
}
.call-btn:active {
  transform: translateY(0);
}

.call-btn:focus-visible {
  outline: 3px solid #ffdc4d;
  outline-offset: 3px;
}

/* 左の丸アイコン */
.call-btn__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 50px;
  height: 44px;
}

/* 右のくの字 */
.call-btn__chev {
  margin-left: auto;
  opacity: 0.9;
}

/* テキスト部 */
.call-btn__text {
  display: flex;
  text-align: center;
  flex-direction: column;
  gap: 20px;
  line-height: 1.2;
}

.call-btn__lead {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* 内側の白いピル（電話番号） */
.call-btn__tel {
  display: inline-block;
  padding: 0.45em 0.9em;
  background: #fea82e;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.05em;
}

/* レスポンシブ（小さめ画面） */
@media (max-width: 480px) {
  .call-btn {
    padding: 12px 14px;
    gap: 12px;
  }
  .call-btn__icon {
    width: 40px;
    height: 40px;
  }
  .call-btn__lead {
    font-size: 15px;
  }
  .call-btn__tel {
    font-size: 15px;
  }
}

/* 動きが苦手な方向け */
@media (prefers-reduced-motion: reduce) {
  .call-btn {
    transition: none;
  }
}

/* 画像 */
.img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 30px;
}

.about {
  padding: 50px 100px;
}

.about--flex {
  padding: 50px 100px;
  display: flex;
  gap: 50px;
}

/* ページタイトル */
.title {
  background: #fff300;
  font-size: 30px;
  text-align: center;
  align-items: center;
  padding: 20px 0;
}

/* ヘッダー */
.header {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-left: 50px;
}
.header__logo {
  padding-bottom: 20px;
}
.header__logo img {
  width: 240px;
}
.header__copy {
  padding-top: 3px;
  font-size: 12px;
  white-space: nowrap;
}
.header__nav {
  width: 100%;
}
.header__panel {
  display: flex;
  justify-content: right;
  gap: 30px;
}
.header__menu {
  display: flex;
  align-items: flex-end;
  padding-bottom: 20px;
  gap: 24px;
  list-style: none;
}
.header__link {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  text-decoration: none;
}
.header__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #ff701e;
  transform: scaleX(0);
  transform-origin: center top;
  transition: transform 0.3s;
}
.header__link:hover::before,
.header__link:focus-visible::before {
  transform: scaleX(1);
}
.header__contact {
  background: #fffaa6;
  text-align: center;
  padding: 10px 30px 5px 30px;
}
.header__lead {
  font-size: 18px;
}
.header__tel {
  font-size: 30px;
}
.header__hours {
  font-size: 14px;
}
.nav-toggle,
.hamburger,
.overlay {
  display: none;
}

/* フッター */
.footer__nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.footer__menu {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}
.footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  text-decoration: none;
}
.footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #ff701e;
  transform: scaleX(0);
  transform-origin: center top;
  transition: transform 0.3s;
}
.footer__link:hover::before,
.footer__link:focus-visible::before {
  transform: scaleX(1);
}
.footer__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  padding: 0 20px 0px 20px;
  max-width: 700px;
  width: 100%;
  margin: 30px auto;
}
.footer-logo {
  width: 150px;
  height: auto;
  margin: auto;
}
.footer p {
  font-style: normal;
}

/* QA */
.qa-box {
  margin-bottom: 6px;
  border-bottom: 2px solid #ffea00;
}

/* UA既定マーカーを消して、押しやすい行に */
.qa-box__q {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 1em 2.5em 1em calc(1em + 3em + 0.6em);
  font-size: 18px;
  cursor: pointer;
}
.qa-box__q::-webkit-details-marker {
  display: none;
}
.qa-box__q::marker {
  content: "";
}

.qa-box__q::before {
  content: "Q";
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  width: 3em; /* 直径 */
  height: 3em;
  border-radius: 999px;
  background: #000066; /* Qの背景色 */
  color: #fff;
  font-weight: 700;
  font-size: 0.9em; /* バッジ内の文字サイズ */
  display: inline-grid;
  place-items: center;
}

.qa-box__q::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 3px solid #333333b3;
  border-bottom: 3px solid #333333b3;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.3s ease;
  margin-left: auto;
}
.qa-box__a {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0.3em calc(1em + 3em + 0.6em) 1.25em;
  height: 100px;
  font-size: 20px;
  opacity: 0;
  transform: translateY(-8px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.qa-box__a::before {
  content: "A";
  display: inline-grid;
  place-items: center;
  position: absolute;
  left: 1em;
  top: 0.9em;
  width: 3em;
  height: 3em;
  border-radius: 999px;
  background: #fea82e;
  color: #fff;
  font-weight: 700;
  font-size: 0.9em;
}

.qa-box[open] .qa-box__a {
  transform: none;
  opacity: 1;
}
.qa-box[open] .qa-box__q::after {
  transform: rotate(225deg);
}

/* 問合せ */
.contact__container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* ← 2列 */
  background: #ffea00;
}
.contact__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 40px 0px 40px;
}
.about--business {
  display: flex;
}
.heading--business {
  text-align: left;
}

/* --------------------------スマートフォン表示-------------------------- */

@media (max-width: 768px) {
  /* 全体幅 */
  main {
    margin: 0 auto;
  }
  .container {
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 70px;
  }

  .box--white {
    width: 100%;
    padding: 25px;
    margin-bottom: 50px;
    margin-top: 10px;
  }
  .box--frame {
    width: 100%;
    padding: 30px;
    margin-bottom: 50px;
  }
  .contents__flex {
    display: block;
  }

  .contents__flex--top {
    display: block;
  }

  .contact__text {
    padding: 10px;
  }
  .column {
    display: block;
    flex-direction: column;
    align-items: center;
    gap: 70px;
  }
  .column-flex {
    display: block;
    padding-top: 20px;
  }
  .column-flex__box {
    padding-bottom: 15px;
  }

  /* 見出し */
  h2 {
    font-size: 22px;
    padding-bottom: 20px;
  }
  h3 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
  }
  h4 {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px 0 10px 0;
  }

  .heading--left {
    font-size: 20px;
  }

  .heading--icon {
    width: 40%;
  }

  .heading--contact {
    font-size: 21px;
  }

  /* フォント */
  p.center {
    text-align: left;
  }

  p.bold {
    text-align: left;
    font-size: 120%;
    line-height: 1.5em;
    font-weight: bold;
  }

  /* 改行 */
  .br--pc {
    display: none;
  }
  .br--sp {
    display: inline;
  }

  .about {
    padding: 30px;
  }

  /* リンクボタン */
  .btn--navy {
    padding: 20px;
    width: 100%;
  }
  .btn--navy::before {
    content: "";
    inline-size: 10px;
    block-size: 10px;
    border: 2px solid currentColor; /* ← 文字色に追従 */
    border-left: 0;
    border-bottom: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .btn--navy:hover {
    background-color: #fff;
    color: #000066;
    border: 2px solid currentColor; /* ← 文字色に追従 */
    font-weight: bold;
  }
  .btn--navy--min {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    align-self: center;
    position: relative;
    padding: 15px 60px 15px 60px;
    background: #000066;
    color: #fff;
    border: 2px solid #000066;
    border-radius: 9999px;
    font-size: 12px;
    letter-spacing: 0.02em;
    line-height: 1; /* ← 重複を解消 */
    text-decoration: none;
    min-height: 44px; /* タップ領域の目安 */
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s,
      transform 0.05s;
    margin: 20px;
  }
  .btn--navy--min::before {
    content: "";
    inline-size: 8px;
    block-size: 8px;
    border: 2px solid currentColor; /* ← 文字色に追従 */
    border-left: 0;
    border-bottom: 0;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .btn--navy--min:hover {
    background-color: #fff;
    color: #000066;
    border: 2px solid currentColor; /* ← 文字色に追従 */
    font-weight: bold;
  }

  /* 画像 */
  .img {
    margin-bottom: 10px;
  }

  .img-top {
    width: 100%;
    vertical-align: top;
  }

  /* ページタイトル */
  .title {
    font-size: 25px;
  }

  /* ヘッダー*/
  .header {
    position: sticky;
    padding-top: 15px;
    padding-left: 30px;
    top: 0;
    z-index: 1100; /* メニュー（1000）とオーバーレイ（999）より上 */
    background: #fff; /* スクロール時に下が透けないように */
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
  }
  .header__logo {
    padding-bottom: 10px;
  }
  .header__logo img {
    width: 160px;
  }
  .header__copy {
    width: 100%;
    font-size: 10px;
    padding-top: 3px;
  }
  .header__menu {
    display: block;
    text-align: center;
    align-items: center;
    gap: 5px;
  }
  .nav-toggle {
    /* チェックボックス自体は画面に出さない */
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .hamburger {
    /* ハンバーガーボタン */
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1001; /* メニューより上 */
    background: rgba(255, 255, 255, 0.9) center / 24px 24px no-repeat
      url(images/hamburger_open.png);
  }
  .nav-toggle:checked + .hamburger {
    /* ハンバーガーボタン（開いたときは「閉じる」PNGに切替）*/
    background-image: url(images/hamburger_close.png);
  }
  .nav-toggle:checked + .hamburger .bar {
    /* === 開閉制御=== */
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger::before {
    /* === 開閉制御=== */
    transform: rotate(45deg);
  }
  .nav-toggle:checked + .hamburger::after {
    /* === 開閉制御=== */
    transform: rotate(-45deg);
  }
  .nav-toggle:checked ~ .header__nav .header__panel {
    /* === 開閉制御=== */
    transform: translateX(0);
  }
  .nav-toggle:checked ~ .overlay {
    /* === 開閉制御=== */
    opacity: 1;
    pointer-events: auto;
  }
  .overlay {
    /* 背景オーバーレイ（メニュー展開時にバックにオーバーレイ） */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
    display: block; /* スマホで使用 */
  }
  .header__panel {
    /*メニューコンテンツ　右からパネル */
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 340px);
    height: 100dvh;
    padding: 80px 20px 24px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column; /* メニュー → 連絡先 の縦並び */
    gap: 20px;
    overflow-y: auto;
  }
  .header__link {
    position: relative;
    display: inline-block;
    padding: 12px 8px;
    color: #222;
    font-size: 16px;
    padding-bottom: 10px;
    text-decoration: none;
  }
  .header__contact {
    text-align: center;
    padding: 20px 30px;
    border-radius: 20px;
  }
  .header__lead {
    font-size: 16px;
  }
  .header__tel {
    font-size: 25px;
    line-height: 1em;
  }
  .header__hours {
    font-size: 14px;
  }

  /* フッター */
  .footer {
    background: #fffaa6;
    display: flow-root;
  }
  .footer__nav {
    display: flex;
    justify-content: center;
  }
  .footer__menu {
    display: block;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
  }
  .footer__item {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
  }
  .footer__info {
    display: block;
    padding: 0 20px;
    width: 100%;
    padding-bottom: 20px;
  }
  .footer-logo {
    width: 100px;
    padding-bottom: 20px;
  }
  .footer p {
    text-align: center;
  }

  /* Q&A */
  .qa-box__a,
  .qa-box__q::after {
    transition: none;
  }

  /* QA */
  .qa-box {
    margin-bottom: 6px;
    border-bottom: 2px solid #ffea00;
  }

  /* UA既定マーカーを消して、押しやすい行に */
  .qa-box__q {
    gap: 5px;
    font-size: 95%;
    padding: 0.8em 0.5em 0.8em 2.8em;
  }

  .qa-box__q::before {
    left: 0.1em;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5em;
    height: 2.5em;
    font-weight: 700;
    font-size: 0.8em;
  }

  .qa-box__a {
    padding: 10px;
    margin: 0;
    height: auto;
    transform: translateY(-8px);
    font-size: 95%;
  }

  .qa-box__a p {
    line-height: 1.6;
  }

  .qa-box__a::before {
    left: 0.1em;
    top: 50%;
    width: 2.5em;
    height: 2.5em;
    color: #fff;
    font-size: 0.8em;
    transform: translateY(-50%);
  }

  .qa-box[open] .qa-box__a {
    transform: none;
    opacity: 1;
    padding: 0.8em 0.5em 0.8em 2.8em;
    margin-bottom: 20px;
  }

  /* 問合せ */
  .contact__container {
    display: block;
  }
  .contact__text {
    padding-bottom: 30px;
    padding: 40px;
  }
}
