/* ==========================================================================
   部品 ― ヘッダー / ボタン / タグ / 画像枠 / 見出し / アコーディオン / パンくず / フッター / モバイル固定バー / フォーム / 地図
   ========================================================================== */

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: var(--w-medium);
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-m);
  box-sizing: border-box;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--accent); color: #FFFFFF; border: 1px solid var(--accent); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #FFFFFF; }

.btn--secondary { background: transparent; color: var(--text-heading); border: 1px solid var(--border-strong); }
.btn--secondary:hover { background: var(--surface-inverse); color: #FFFFFF; }

.btn--ghost {
  background: transparent;
  color: var(--link);
  border: 1px solid transparent;
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
}
.btn--ghost:hover { color: var(--link-hover); }
.btn__arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn--ghost:hover .btn__arrow { transform: translateX(4px); }

.btn--md { font-size: var(--text-sm); padding: 12px 28px; min-height: 48px; }
.btn--lg { font-size: 15px; padding: 16px 40px; min-height: 56px; }
.btn--ghost.btn--md,
.btn--ghost.btn--lg { min-height: 44px; padding-block: 10px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   タグ・チップ
   -------------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-s);
}
.chip {
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* 濃い地の上のタグ・チップ（文字色を必ず対で指定する） */
.tag--on-dark { color: var(--sun); border-color: var(--sun); border-radius: var(--radius-pill); padding: 3px 12px; letter-spacing: 0.08em; }
.chip--on-dark { color: var(--on-dark-chip); border-color: var(--on-dark-line); }

/* --------------------------------------------------------------------------
   画像枠 ― aspect-ratio ＋ object-fit:cover で比率違いを吸収する
   -------------------------------------------------------------------------- */
.ph {
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
  display: block;
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph__cap { font-size: var(--text-xs); color: var(--text-muted); margin-top: 8px; line-height: 1.7; }

.r-4-3   { aspect-ratio: 4 / 3; }
.r-4-5   { aspect-ratio: 4 / 5; }
.r-5-4   { aspect-ratio: 5 / 4; }
.r-6-5   { aspect-ratio: 6 / 5; }
.r-1-1   { aspect-ratio: 1 / 1; }
.r-16-9  { aspect-ratio: 16 / 9; }
.r-16-10 { aspect-ratio: 16 / 10; }
.r-fill  { height: 100%; }

.mask { overflow: hidden; }
.mask--a { border-radius: var(--blob-a); }
.mask--b { border-radius: var(--blob-b); }
.mask--c { border-radius: var(--blob-c); }
.mask--arc { border-radius: var(--arc); }
.mask--circle { border-radius: 50%; }
.mask--photo { border-radius: var(--photo-r); }

/* --------------------------------------------------------------------------
   セクション見出し
   -------------------------------------------------------------------------- */
.sh__title {
  font-size: var(--text-h1);
  font-weight: var(--w-bold);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--text-heading);
  font-feature-settings: "palt" 1;
  margin: 0;
}
.sh--h2 .sh__title { font-size: var(--text-h2); }
.sh--center { text-align: center; }
.sh__lead {
  max-width: 38em;
  font-size: var(--text-lead);
  line-height: 1.9;
  color: var(--text-muted);
  margin: var(--stack-heading) 0 0;
}
.sh--center .sh__lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   アコーディオン（FAQ）― ★ aria-expanded を必ず出す
   -------------------------------------------------------------------------- */
.acc { border-top: var(--rule-strong); font-family: var(--font-sans); }
.acc__item { border-bottom: var(--hairline); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: var(--w-medium);
  color: var(--text-heading);
  padding: 18px 4px;
  min-height: 56px;
  box-sizing: border-box;
}
.acc__btn:hover { color: var(--link-hover); }
.acc__icon { flex: none; width: 20px; height: 20px; position: relative; }
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}
.acc__icon::before { left: 0; right: 0; top: 9.25px; height: 1.5px; }
.acc__icon::after { top: 0; bottom: 0; left: 9.25px; width: 1.5px; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: scaleY(0); }
.acc__panel {
  overflow: hidden;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
  display: grid;
  grid-template-rows: 0fr;
}
.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }
.acc__inner { min-height: 0; overflow: hidden; }
.acc__body { font-size: var(--text-sm); line-height: 1.9; color: var(--text-muted); padding: 0 4px 20px; margin: 0; }

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
.site-hdr {
  position: absolute;      /* 初期状態＝ページと一緒にスクロールして流れる */
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--header-h);
  background: transparent;
  font-family: var(--font-sans);
}
.site-hdr.is-compact {     /* スクロール量に反応してJSが付ける（レイアウト分岐ではない） */
  position: fixed;
  height: var(--header-h-compact);
  background: rgba(252, 252, 251, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-header);
  animation: hdr-drop var(--dur-base) var(--ease-out);
}
@keyframes hdr-drop {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.site-hdr__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 0 var(--gutter);
  height: 100%;
  box-sizing: border-box;
}
.site-hdr__brand {
  font-weight: var(--w-bold);
  font-size: 17px;
  letter-spacing: 0.05em;
  color: var(--text-heading);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-hdr__brand:hover { text-decoration: none; color: var(--text-heading); }
.site-hdr.is-compact .site-hdr__brand { font-size: 15px; }

.site-hdr__nav { display: flex; align-items: center; gap: 28px; }
.site-hdr__link {
  font-size: var(--text-sm);
  font-weight: var(--w-medium);
  color: var(--text-heading);
  text-decoration: none;
  position: relative;
  /* ★タップ領域 44px。文字は中央に置くので見た目の位置は変わらない */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-hdr__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 10px;   /* 文字のすぐ下（44pxの箱の中で位置を合わせる） */
  border-bottom: 1px solid var(--text-heading);
  transition: right var(--dur-base) var(--ease-out);
}
.site-hdr__link:hover { text-decoration: none; color: var(--text-heading); }
.site-hdr__link:hover::after { right: 0; }
.site-hdr__link[aria-current="page"]::after { right: 0; }

.site-hdr__end { display: flex; align-items: center; gap: 12px; }
.site-hdr__burger {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.site-hdr__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-heading);
}

.site-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--surface-page);
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
  box-sizing: border-box;
  overflow-y: auto;
}
.site-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s;
}
.site-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h-mobile);
}
.site-drawer__close {
  width: 44px; height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--text-heading);
}
.site-drawer__nav { display: flex; flex-direction: column; margin-top: 16px; }
.site-drawer__link {
  font-size: 20px;
  font-weight: var(--w-medium);
  color: var(--text-heading);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.site-drawer__link small {
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.site-drawer__cta { margin-top: auto; padding: 24px 0 32px; }

/* ★ナビの分岐点は 1024px。文字は縮めない（12px下限）ため、
   ここより狭い画面はモバイル用のドロワーに倒す。 */
@media (max-width: 1219px) {
  .site-hdr__nav .site-hdr__link--tel { display: none; }   /* 1196px 必要なので早めに落とす */
  .site-hdr__nav { gap: 16px; }
}
@media (max-width: 1023px) {
  .site-hdr__nav { display: none; }        /* ここでハンバーガーへ。主分岐と同じ1023px */
  .site-hdr__burger { display: flex; }
}
@media (max-width: 767px) {
  .site-hdr { height: var(--header-h-mobile); }
  .site-hdr__cta { display: none; }        /* ここから下は下部固定バーがCTAを持つ */
}

/* --------------------------------------------------------------------------
   パンくず
   -------------------------------------------------------------------------- */
.crumb { font-size: var(--text-xs); color: var(--text-muted); }
.crumb ol { position: relative; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumb li { display: flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: "/"; color: var(--text-faint); }
.crumb a {
  color: var(--link);
  position: relative;
}
/* ★12px の文字のまま、当たり判定だけ 44px 相当に広げる（見た目は変わらない） */
.crumb a::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}
.crumb [aria-current="page"] { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   ページ見出し（下層共通）
   -------------------------------------------------------------------------- */
.page-head { padding: calc(var(--header-h) + 40px) var(--gutter) 0; }
.page-head__inner { max-width: var(--container-max); margin-inline: auto; }
.page-head__eyebrow { margin-top: 28px; }
.page-head h1 {
  font-size: var(--text-h1);
  font-weight: var(--w-bold);
  color: var(--text-heading);
  margin: 0;
}
.page-head .lead { margin-top: var(--stack-heading); }

/* --------------------------------------------------------------------------
   最終CTA ＋ フッター
   -------------------------------------------------------------------------- */
.cta-sec {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  padding: var(--section-gap-lg) var(--gutter);
}
.cta-sec__deco-1 {
  position: absolute;
  top: -90px; right: -70px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.9;
}
.cta-sec__deco-2 {
  position: absolute;
  bottom: -120px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 2px solid var(--on-dark-line);
}
.cta-card {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  background: var(--surface-card);
  border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 60px);
  text-align: center;
}
.cta-card__eyebrow { color: var(--accent); margin-bottom: 16px; }
.cta-card h2 {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: var(--w-bold);
  line-height: var(--leading-heading);
  color: var(--text-heading);
  font-feature-settings: "palt" 1;
}
.cta-card__body { margin: 20px auto 0; max-width: 32em; }
.cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.cta-card__note { margin-top: 20px; }

.site-foot {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  padding: var(--section-gap-md) var(--gutter) 32px;
}
.site-foot__g {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: clamp(32px, 4vw, 56px);
}
.site-foot__name { margin: 0; font-size: 18px; font-weight: var(--w-bold); letter-spacing: 0.05em; color: var(--text-inverse); }
.site-foot__addr { margin: 14px 0 0; font-size: var(--text-sm); line-height: 1.9; color: var(--on-dark-2); }
.site-foot__tel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* ★タップ領域 */
  margin-top: 16px;
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: var(--w-bold);
  color: var(--text-inverse);
  text-decoration: none;
}
.site-foot__tel:hover { color: #FFFFFF; }
.site-foot__col { display: flex; flex-direction: column; gap: 0; font-size: var(--text-sm); }
.site-foot__label {
  margin: 0 0 4px;
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--on-dark-3);
}
.site-foot__col a {
  color: var(--on-dark-1);
  text-decoration: none;
  min-height: 44px;      /* ★タップ領域 */
  display: flex;
  align-items: center;
}
.site-foot__col a:hover { color: #FFFFFF; text-decoration: underline; }
.site-foot__hours { margin: 0; font-size: var(--text-sm); line-height: 2; color: var(--on-dark-1); }
.site-foot__btn { margin-top: 20px; }
.site-foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--on-dark-rule);
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: 20px;
}
.site-foot__bottom p { margin: 0; font-size: var(--text-xs); color: var(--on-dark-3); }
.site-foot__latin { font-family: var(--font-latin); letter-spacing: 0.14em; }

/* --------------------------------------------------------------------------
   モバイル固定バー ― 767px 以下でだけ出す。DOMからは消さない。
   -------------------------------------------------------------------------- */
.hx-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--bar-bg);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-1);
}
.hx-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-heading);
}
.hx-bar__item:hover { text-decoration: none; }
.hx-bar__item--cta { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.hx-bar__item--cta:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #FFFFFF; }
.hx-bar__main { font-size: var(--text-sm); font-weight: var(--w-bold); }
.hx-bar__sub { font-size: var(--text-xs); color: var(--text-faint); }
.hx-bar__item--cta .hx-bar__sub { color: #FFFFFF; font-weight: var(--w-regular); }

@media (max-width: 767px) {
  .hx-bar { display: grid; }
  body { padding-bottom: var(--bar-h); }
  .site-foot__g { grid-template-columns: 1fr !important; gap: 36px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   フォーム
   -------------------------------------------------------------------------- */
.demo-note {
  margin: 0 0 24px;
  padding: 12px 16px;
  font-size: var(--text-sm);
  line-height: 1.8;
  background: var(--sun-pale);
  border: 1px solid var(--sun-line);
  border-radius: 6px;
  color: var(--text-heading);
}
.form-stack { display: flex; flex-direction: column; gap: 28px; }
.fld { display: flex; flex-direction: column; gap: 8px; }
.fld > label {
  font-size: var(--text-sm);
  font-weight: var(--w-bold);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}
.req {
  flex: none;
  font-size: var(--text-xs);
  font-weight: var(--w-bold);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--error);
  color: #FFFFFF;
  letter-spacing: 0.04em;
}
.fld input[type="text"],
.fld input[type="tel"],
.fld input[type="email"],
.fld input[type="date"],
.fld select,
.fld textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  color: var(--field-text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 6px;
}
.fld textarea { min-height: 132px; resize: vertical; }
.fld input::placeholder,
.fld textarea::placeholder { color: var(--field-placeholder); }
.fld input:focus,
.fld select:focus,
.fld textarea:focus {
  border-color: var(--field-border-focus);
  border-width: 2px;
  padding: 11px 13px;
}
.field-help { margin: 0; font-size: var(--text-xs); line-height: 1.8; color: var(--ink-3); }
.field-err { margin: 0; font-size: var(--text-sm); line-height: 1.8; font-weight: var(--w-bold); color: var(--error-strong); }
.form-error {
  margin: 0 0 24px;
  padding: 14px 16px;
  font-size: var(--text-sm);
  line-height: 1.8;
  font-weight: var(--w-bold);
  background: var(--error-bg);
  border: 1px solid var(--error-strong);
  border-radius: 6px;
  color: var(--error-strong);
}
.fset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.fset > legend {
  padding: 0;
  font-size: var(--text-sm);
  font-weight: var(--w-bold);
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--field-bg);
  font-size: 16px;
  color: var(--field-text);
  cursor: pointer;
}
.opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.date-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 600px) {
  .date-row { grid-template-columns: 1fr; }
  .opts { flex-direction: column; }
  .opt { width: 100%; box-sizing: border-box; }
}

/* --------------------------------------------------------------------------
   地図 ― ★PC用を縮小して使い回さない
   -------------------------------------------------------------------------- */
.hx-map { aspect-ratio: var(--hx-map-r); overflow: hidden; border-radius: var(--photo-r); }
.hx-map img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hx-map--pc { --hx-map-r: 4 / 3; }
.hx-map--wide { --hx-map-r: 21 / 9; }
.hx-map--sp { --hx-map-r: 75 / 94; display: none; }
@media (max-width: 767px) {
  .hx-map--pc,
  .hx-map--wide { display: none; }
  .hx-map--sp { display: block; }
}
