/* =========================================================================
   設備・館内のご案内（info.misawa-tokokoto.com/facility）
   - トークン・ヘッダー・フッター・＼／見出し・.h-title は hub.css / tokens.css、
     ヒーロー・ボタン・最後のCTA・下部バーは workation.css（LP部品の正本）を再利用する。
     このファイルは **このページにしか出てこない部品** だけを持つ。
   - 公式HP（misawa-tokokoto.com）の「ご宿泊について」「プランについて」と同じ形を、
     info. のトークンで組み直している。**新しい色を足さない**。
   ========================================================================= */

.fc-hero__media { background: var(--color-ink); }
/* 見出しの2行目（12字）がスマホ幅で3行に割れないよう、狭い画面だけ字を少し小さくする */
@media (max-width: 620px) { .fc-hero .wk-hero__title { font-size: clamp(22px, 6.5vw, 28px); } }

/* ====================== 大見出し（公式HPの「プランについて」と同じ位置づけ）======================
   文字は hub.css の .h-title。下の線は、ベッドの見出し（.fc-plan__t）と同じ形
   ＝見出しの幅いっぱいの長い線＋右端の短い線（公式HPの見出し飾り）。
   hub.css の .h-deco（固定64pxの線）は、字数の多い見出しだと短すぎるので使わない（2026-10-06 井上さん指摘）。 */
.fc-major { text-align: center; padding-top: clamp(48px, 7vw, 84px); }  /* .wrap と一緒に付けるので上だけ指定する */
.fc-major .h-title {
  padding-bottom: 14px;
  background:
    linear-gradient(var(--color-ink), var(--color-ink)) left bottom / calc(100% - 26px) 2px no-repeat,
    linear-gradient(var(--color-ink), var(--color-ink)) right bottom / 16px 2px no-repeat;
}
.fc-major__lead {
  max-width: 46em; margin: 20px auto 0; font-size: 13px; line-height: 2.1; letter-spacing: .06em;
}
.fc-major + .section { padding-top: clamp(22px, 3.4vw, 36px); }
@media (max-width: 620px) {
  .fc-major .h-title { font-size: 26px; padding-bottom: 11px; background-size: calc(100% - 20px) 2px, 12px 2px; }
  .fc-major__lead { font-size: 12.5px; text-align: left; }
}

/* ====================== 基本情報（公式HPの基本情報と同じ形）======================
   左に手書きの項目名、右に中身。行のあいだは点線。 */
.fc-info { background: var(--color-white); border: var(--border-card); padding: 6px clamp(16px, 3.2vw, 36px); }
.fc-info__row { display: flex; align-items: flex-start; gap: 16px; padding: 22px 0; border-bottom: var(--rule-dotted); }
.fc-info__row:last-child { border-bottom: 0; }
.fc-info__k {
  font-family: var(--font-display); font-weight: 400; font-size: 15.5px; letter-spacing: .04em; line-height: 1.75;
  width: 132px; flex-shrink: 0; margin: 0;
}
.fc-info__v { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.9; letter-spacing: .07em; }
.fc-info__ul { display: grid; gap: 8px; }
.fc-info__ul > li { position: relative; padding-left: 20px; }
.fc-info__ul > li::before {
  content: ""; position: absolute; left: 3px; top: .78em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-ink);
}
/* 項目の下にぶら下がる小さい行（注記・内訳） */
.fc-info__sub { display: block; font-size: 12px; line-height: 2.05; letter-spacing: .06em; }
.fc-info__ul + .fc-info__sub { margin-top: 6px; padding-left: 20px; }
.fc-info a { color: var(--color-link); text-decoration: underline; text-underline-offset: 2px; }
.fc-info a:hover { opacity: .7; }
@media (max-width: 620px) {
  .fc-info__row { flex-direction: column; gap: 6px; padding: 16px 0; }
  .fc-info__k { width: auto; font-size: 15px; }
  .fc-info__v { font-size: 12.5px; letter-spacing: .04em; }
  .fc-info__sub { font-size: 11.5px; letter-spacing: .03em; }
  .fc-info__ul > li { padding-left: 16px; }
  .fc-info__ul > li::before { left: 2px; width: 5px; height: 5px; }
  .fc-info__ul + .fc-info__sub { padding-left: 16px; }
}

/* ヒーローのリード文は、語の途中（「館｜内」など）で折らない。折り返しは <br> と <wbr> の位置だけ */
.fc-hero .wk-hero__lead { word-break: keep-all; overflow-wrap: anywhere; }

/* ====================== フロアマップ ====================== */
.fc-floor { background: var(--color-white); padding: clamp(14px, 3vw, 40px) clamp(10px, 3vw, 40px) clamp(12px, 2vw, 22px); text-align: center; }
.fc-floor img { width: 100%; height: auto; }
.fc-zoom {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 14px;
  border: var(--border-card); border-radius: var(--radius-button); background: var(--color-white); color: var(--color-ink);
  font-family: var(--font-button); font-weight: var(--fw-bold); font-size: 12px; letter-spacing: .05em; cursor: pointer;
  transition: background var(--t-fast);
}
.fc-zoom:hover { background: var(--color-accent-soft); }
.fc-ico { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ====================== 設備について（縦の見出し札＋写真の送り＋説明）====================== */
.fc-facs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.fc-fac { background: var(--color-white); border: var(--border-card); padding: clamp(16px, 2.4vw, 30px); }
.fc-fac__media { position: relative; }
.fc-fac__slides { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #ddd; }
.fc-fac__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.fc-fac__slides img.is-on { opacity: 1; }
/* 縦書きの見出し札。写真の左上に、白い札を少しはみ出させて重ねる（公式HPと同じ） */
.fc-fac__tab {
  position: absolute; z-index: 2; top: -10px; left: -10px; margin: 0;
  writing-mode: vertical-rl; text-orientation: upright;
  background: var(--color-white); border-left: 1px solid var(--color-ink);
  padding: 10px 5px 10px 6px;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 1.7vw, 21px); letter-spacing: .08em; line-height: 1.3;
}
.fc-fac__nav {
  position: absolute; z-index: 2; bottom: 8px; width: 36px; height: 36px; padding: 0; border: 0; background: none;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, .55));
}
.fc-fac__nav svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.fc-fac__nav--prev { left: calc(50% - 44px); }
.fc-fac__nav--next { right: calc(50% - 44px); }
.fc-fac__nav:hover { opacity: .75; }
.fc-fac__d { margin: 18px 0 0; font-size: 13px; line-height: 2.1; letter-spacing: .08em; }
/* 狭い画面では1列。写真を左、説明を右に寝かせて、縦に伸びすぎないようにする */
@media (max-width: 860px) {
  .fc-facs { grid-template-columns: 1fr; }
  .fc-fac { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; }
  .fc-fac__d { margin: 0; font-size: 12.5px; line-height: 2; letter-spacing: .05em; }
}
@media (max-width: 520px) {
  .fc-fac { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .fc-fac__tab { font-size: 17px; }
}

/* ====================== ベッドについて（公式HPの「プランについて」の宿泊／日帰りと同じ形）======================
   白カード2枚。上から 写真 → 手書きの見出し（下に線）→ 説明。 */
.fc-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 30px); }
.fc-plan { background: var(--color-white); border: var(--border-card); padding: clamp(16px, 2.6vw, 32px); }
.fc-plan__media { position: relative; aspect-ratio: 498 / 273; overflow: hidden; background: #ddd; }
.fc-plan__media .fc-fac__slides { height: 100%; aspect-ratio: auto; }
.fc-plan__media img { width: 100%; height: 100%; object-fit: cover; }
.fc-plan__t {
  display: inline-block; margin: clamp(18px, 2.6vw, 30px) 0 0; padding-bottom: 9px;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2vw, 23px); letter-spacing: .05em; line-height: 1.3;
  /* 見出しの下の線（長い線＋短い線）。公式HPの見出し飾りと同じ */
  background:
    linear-gradient(var(--color-ink), var(--color-ink)) left bottom / calc(100% - 14px) 2px no-repeat,
    linear-gradient(var(--color-ink), var(--color-ink)) right bottom / 9px 2px no-repeat;
}
.fc-plan__d { margin: 14px 0 0; font-size: 13.5px; line-height: 2.1; letter-spacing: .08em; }
/* 「予約画面でこのお部屋を選ぶと、このベッド」。お部屋の名前を札にして並べる。
   札は黄土色の塗り＋茶色の文字だったが「色が気持ち悪い」と言われたので、墨の文字・薄い灰の面に（2026-10-25 井上さん指示） */
.fc-plan__rooms { margin-top: 16px; padding: 11px 13px 13px; border: var(--border-card); }
.fc-plan__rooms-k { margin: 0 0 8px; font-size: 11.5px; font-weight: var(--fw-bold); letter-spacing: .05em; color: var(--color-sub); }
.fc-plan__rooms-v { display: flex; flex-wrap: wrap; gap: 6px; }
.fc-plan__rooms-v li {
  display: inline-flex; align-items: center; background: #f4f4f4; color: var(--color-ink);
  border: 1px solid var(--color-rule); border-radius: 2px; padding: 3px 10px; font-size: 12px; font-weight: var(--fw-bold); line-height: 1.6;
}
@media (max-width: 700px) {
  .fc-plans { grid-template-columns: 1fr; }
  .fc-plan__d { font-size: 12.5px; line-height: 2; letter-spacing: .05em; }
  .fc-plan__rooms { padding: 9px 10px 11px; }
  .fc-plan__rooms-v li { font-size: 11.5px; padding: 1px 7px; }
}

/* ====================== 館内で販売しているもの（ジャンルごとのブロックを横に送る）======================
   写真を大きく並べるカードは縦に長すぎたので、購買部（shop.misawa-tokokoto.com）の商品カードに倣った形にした（2026-10-11 井上さん指示）。
   - 1ブロック＝ジャンルの見出し＋商品カード（最大4つ）＋「その他もたくさんあります」
   - カードの幅は購買部のカードの半分（購買部はPCで688px → 344px）。左に小さな写真・右に名前と説明。値段とカゴのボタンは載せない
   - 送りは /access「近くの寄り道」（access.css の .ac-car）と同じ作り。scroll-snap＋矢印・点・スワイプで、自動では動かさない */
.fc-car { position: relative; }
.fc-car__track {
  display: flex; gap: 18px; align-items: flex-start;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
/* 本文の幅（1080px）より狭い画面では、画面の端まで流す（ブロックが余白の途中で切れて見えないように） */
@media (max-width: 1080px) {
  .fc-car__track { margin: 0 calc(-1 * var(--pad-x)); padding: 4px var(--pad-x); scroll-padding-inline: var(--pad-x); }
}
.fc-car__track::-webkit-scrollbar { display: none; }
.fc-car__track:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

.fc-genre { flex: 0 0 344px; min-width: 0; scroll-snap-align: start; }
.fc-genre__t {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: .04em; line-height: 1.4;
}
.fc-genre__en { font-family: var(--font-body); font-size: 11px; font-weight: var(--fw-bold); color: var(--color-sub); letter-spacing: .14em; }
.fc-genre__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fc-card {
  display: flex; gap: 12px; align-items: flex-start; min-width: 0;
  padding: 12px; background: var(--color-white); border: var(--border-card);
}
.fc-card__ph { flex: 0 0 64px; width: 64px; height: 64px; display: block; }
.fc-card__ph:empty { border: var(--rule-dotted); }
.fc-card__ph img { width: 100%; height: 100%; object-fit: contain; }
.fc-card__bd { flex: 1; min-width: 0; }
.fc-card__t { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 15.5px; letter-spacing: .03em; line-height: 1.45; }
/* 名前は単語の途中で折り返さない（改行してよい位置は SHOP の名前に \u200b で入れてある。購買部の displayName と同じ） */
.fc-card__t, .fc-list__t { word-break: keep-all; overflow-wrap: anywhere; }
.fc-card__d { margin: 4px 0 0; font-size: 12px; line-height: 1.75; color: var(--color-sub); }

/* その他もたくさんあります（押すと、そのジャンルの全部が箇条書きでひらく） */
.fc-more {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; min-height: 52px;
  padding: 9px 12px 9px 14px; text-align: left; cursor: pointer;
  background: var(--color-white); color: var(--color-ink); border: var(--border-card); border-radius: var(--radius-button);
  font-family: var(--font-button); font-weight: var(--fw-bold); font-size: 13.5px; letter-spacing: .04em; line-height: 1.5;
  transition: background var(--t-fast), transform var(--t-fast);
}
.fc-more:hover { background: var(--color-accent-soft); transform: translateY(-2px); }
.fc-more:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.fc-more__t { flex: 1; min-width: 0; }
.fc-more__n { display: block; font-family: var(--font-body); font-size: 11px; color: var(--color-sub); letter-spacing: .04em; }
.fc-more svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 矢印と点（access.css の .ac-car__ctl と同じ） */
.fc-car__ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.fc-car.is-static .fc-car__ctl { display: none; }
.fc-car__btn {
  width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--color-white); color: var(--color-ink); border: var(--border-card); border-radius: var(--radius-button);
  transition: background var(--t-fast), opacity var(--t-fast);
}
.fc-car__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fc-car__btn:hover:not(:disabled) { background: var(--color-accent-soft); }
.fc-car__btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.fc-car__btn:disabled { opacity: .3; cursor: default; }
.fc-car__dots { display: flex; align-items: center; gap: 8px; }
.fc-car__dot { width: 10px; height: 10px; padding: 0; border: 2px solid var(--color-ink); border-radius: 50%; background: var(--color-white); cursor: pointer; transition: background var(--t-fast); }
.fc-car__dot.on { background: var(--color-accent-fill); }

/* スマホ: 購買部のカードは画面幅いっぱい（左右16px）なので、その半分＝1ブロックを2列×2段にする。
   ブロックは画面より少し狭くして、次のジャンルが右端に見えるようにする（横に続くことを見せる） */
@media (max-width: 620px) {
  .fc-car__track { gap: 12px; }
  .fc-genre { flex-basis: calc(100% - 24px); }
  .fc-genre__t { font-size: 18px; margin-bottom: 8px; }
  .fc-genre__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fc-card { flex-direction: column; gap: 8px; padding: 10px; }
  .fc-card__ph { flex-basis: auto; width: 56px; height: 56px; }
  .fc-card__t { font-size: 14px; line-height: 1.45; }
  .fc-card__d { font-size: 11px; line-height: 1.7; margin-top: 3px; }
  .fc-more { margin-top: 8px; min-height: 48px; font-size: 13px; }
}

/* ====================== ひらく窓（商品一覧・フロアマップの拡大）====================== */
.fc-dlg {
  width: min(720px, calc(100vw - 24px)); max-width: none; max-height: min(86vh, 860px);
  padding: 0; border: var(--border-card); border-radius: 0; background: var(--color-white); color: var(--color-ink);
}
.fc-dlg::backdrop { background: rgba(51, 51, 51, .62); }
/* 窓がひらいている間は、後ろのページを動かさない */
html:has(dialog.fc-dlg[open]) { overflow: hidden; }
.fc-dlg[open] { display: flex; flex-direction: column; }
.fc-dlg--wide { width: min(1240px, calc(100vw - 24px)); }
.fc-dlg__head {
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px;
  border-bottom: var(--border-card); flex-shrink: 0;
}
.fc-dlg__t { flex: 1; min-width: 0; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 2.4vw, 21px); letter-spacing: .04em; line-height: 1.4; }
.fc-dlg__x {
  flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: var(--border-card); border-radius: var(--radius-button);
  background: var(--color-white); color: var(--color-ink); cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.fc-dlg__x:hover { background: var(--color-accent-soft); }
.fc-dlg__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fc-dlg__bd { padding: 14px 18px 18px; overflow: auto; -webkit-overflow-scrolling: touch; }
.fc-dlg__lead { margin: 0 0 6px; font-size: 12.5px; line-height: 2; }
.fc-dlg__bd--map { padding: 12px; }
.fc-dlg__bd--map img { width: 100%; min-width: 860px; height: auto; }

/* 「その他もたくさんあります」でひらく一覧（そのジャンルの全部を箇条書きで） */
.fc-list { list-style: none; margin: 0; padding: 0; }
.fc-list__i { position: relative; padding: 10px 0 10px 16px; border-bottom: var(--rule-dotted); }
.fc-list__i:last-child { border-bottom: 0; padding-bottom: 2px; }
.fc-list__i::before { content: ""; position: absolute; left: 3px; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink); }
.fc-list__t { display: block; font-family: var(--font-display); font-weight: 400; font-size: 15.5px; letter-spacing: .03em; line-height: 1.5; }
.fc-list__d { display: block; margin-top: 2px; font-size: 12px; line-height: 1.8; color: var(--color-sub); }
@media (max-width: 620px) {
  .fc-dlg__bd { padding: 10px 14px 14px; }
  .fc-list__t { font-size: 14.5px; }
  .fc-list__d { font-size: 11.5px; }
}
