@charset "UTF-8";

/*-------------------------------------------------
html / body(全ページ共通のベース)
------------------------------------------------*/
html {
  scroll-behavior: smooth;
  /* ドロワー開閉時のスクロールバー分のズレ対策 */
  overflow-y: scroll;
  font-size: 16px;
}

body {
  font-family: var(--font-ja);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: 0.05em;
  color: var(--color-base);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

/* ドロワー展開中は背景のスクロールを止める */
body.menu-open {
  overflow: hidden;
  block-size: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-inline-size: 100%;
  block-size: auto;
  vertical-align: bottom;
}

/*-------------------------------------------------
フォーカス表示(キーボード操作用)
outline を消す場合は必ず代替のフォーカススタイルを用意する
------------------------------------------------*/
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/*-------------------------------------------------
.btn-outline(アウトラインボタン+右端の矢印)
全ページ共通のボタンパーツ
------------------------------------------------*/
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  /* 枠が 2px なので上下は 11px（1px 枠＋12px だったときと同じ外寸。nj / k-ksk は 2px 化のときに 11px にしていたが、
     kj / nk / sh は 2026-10-30 の横展開で 12px のままだったので 2px 高くなっていた。2026-11-02 に5組合とも 11px に統一） */
  padding: 11px 1rem 11px 2rem;
  background: var(--color-white);
  border: 2px solid var(--color-brand);
  border-radius: var(--radius-pill);
  /* ボタン文字はSP15px/PC16px(トークン --fs-btn: 14px から変更) */
  font-size: 15px;
  color: var(--color-base);
  transition: background-color var(--duration-base) var(--easeCubic),
              color var(--duration-base) var(--easeCubic);
}

@media (width >= 768px) {
  .btn-outline {
    font-size: 16px;
  }
}

/* hover はブランド色で塗りつぶし、文字と矢印を白に反転（2026-10-30ユーザー指示。kj の 2026-10-29 変更の横展開） */
.btn-outline:hover {
  background: var(--color-brand);
  color: var(--color-white);
}

.btn-outline .icon-circle {
  display: grid;
  place-items: center;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 50%;
  background: transparent;
  color: var(--color-brand); /* 2026-10-30ユーザー指示で --color-navy から枠と同じブランド色に */
  font-size: 0.875rem;
  transition: color var(--duration-base) var(--easeCubic);
}

.btn-outline:hover .icon-circle {
  color: var(--color-white);
}

/*-------------------------------------------------
.breadcrumb（パンくずリスト）
下層ページのhero直下に置く全ページ共通パーツ。
出力は functions.php の output_breadcrumb()
------------------------------------------------*/
.breadcrumb {
  inline-size: min(92%, 1312px);
  margin-inline: auto;
  padding-block: 16px;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* 2つ目以降の項目の前に区切りの「/」を入れる */
.breadcrumb li + li::before {
  content: "/";
  padding-inline: 8px;
}

.breadcrumb a {
  transition: color var(--duration-base) var(--easeCubic);
}

.breadcrumb a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/*-------------------------------------------------
.scroll-hint（横スクロールできる表の案内）
横スクロールさせる枠に .js-scroll-hint を付けると、main.js が
.scroll-hint を足して中に .scroll-hint-wrap（札）を挿入する。
見た目は jahic-etc.com の ScrollHint ライブラリ（白い札）を踏襲:
手のアイコンが右から左へ流れる動きを2回繰り返したあと、
上部に左右矢印を出す。表示の切り替え（.is-active）は main.js。
表が収まる幅（PC）では .is-active が付かないので何も出ない
------------------------------------------------*/
.scroll-hint {
  position: relative;
}

/* 枠いっぱいに重ねる透明な層。表の操作を邪魔しないよう pointer-events を切る */
.scroll-hint-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 札。表の上端から40vh（短い表では枠の中央）の横中央に置く */
.scroll-hint-icon {
  position: absolute;
  inset-block-start: min(40vh, 50%);
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  inline-size: 120px;
  padding: 26px 10px 10px;
  border-radius: var(--radius-min);
  background: var(--color-white);
  box-shadow: 0 4px 12px rgb(var(--color-black-rgb) / 0.25);
  color: var(--color-navy);
  opacity: 0;
  transition: opacity var(--duration-base) var(--easeCubic);
}

.scroll-hint-wrap.is-active .scroll-hint-icon {
  opacity: 0.9;
}

/* 手のアイコン。表示開始時に右→左へ流れる動きを2回繰り返す */
.scroll-hint-hand {
  inline-size: 32px;
  block-size: 32px;
}

@keyframes scroll-hint-swipe {
  0% {
    transform: translateX(32px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50%,
  100% {
    transform: translateX(-32px);
    opacity: 0;
  }
}

.scroll-hint-wrap.is-active .scroll-hint-hand {
  animation: scroll-hint-swipe 1.2s linear 2;
}

/* 左右矢印。手の動き（1.2s×2回）が終わってから出す */
.scroll-hint-arrows {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  inline-size: 34px;
  block-size: 12px;
  opacity: 0;
  transition: opacity var(--duration-base) var(--easeCubic) 2.4s;
}

.scroll-hint-wrap.is-active .scroll-hint-arrows {
  opacity: 1;
}

.scroll-hint-text {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: var(--fw-medium);
}

/* 動きを減らす設定では手の動きを省くので、矢印も待たずに出す */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint-arrows {
    transition-delay: 0s;
  }
}

/*-------------------------------------------------
reCAPTCHA v3のバッジ非表示
CF7のreCAPTCHA連携で全ページ右下に出るバッジを隠す。
Google公式FAQで認められた方法だが、条件として保護文言を
ユーザーフロー内に表示する必要がある(各フォームページの
.recaptcha-note がその文言。文言なしの非表示は規約違反)
------------------------------------------------*/
.grecaptcha-badge {
  visibility: hidden;
}

/*-------------------------------------------------
動きを減らす設定(OS側)を尊重する
------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
