/* =========================================================================
   アクセス・まわりのご案内（info.misawa-tokokoto.com/access）
   - トークン・ヘッダー・フッター・＼／見出し・.reveal は hub.css / tokens.css、
     ヒーロー・ボタン・表・最後のCTA・下部バーは workation.css（LP部品の正本）を再利用する。
     このファイルは **このページにしか出てこない部品** だけを持つ。
   - 世界観の決まりは docs/LP-COMPONENTS.md のとおり:
     白カード + 2px墨枠 + 角丸0 + フラット / 2px点線罫線 / りいクッキー手書き見出し /
     イチョウ色アクセント。**新しい色を足さない**。
   ========================================================================= */

/* ====================== 写真の仮置き枠 ======================
   写真室（board.misawa-tokokoto.com/photos）から写真を指定してもらうまでの仮の枠。
   枠の左上に出る番号（data-slot）で「①は No.◯◯」と指定してもらう。
   差し替えるときは .ac-ph の div を <img> に置き換える（親が aspect-ratio を持っている）。 */
.ac-ph {
  position: relative; overflow: hidden; width: 100%; height: 100%; min-height: 60px;
  background: var(--color-ink); color: var(--color-footer-text);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; line-height: 1.6; letter-spacing: .04em; padding: 8px;
}
.ac-ph::before {
  content: attr(data-slot); position: absolute; top: 6px; left: 6px;
  background: var(--color-accent-fill); color: #2a2113; border-radius: var(--radius-button);
  font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .04em; padding: 1px 7px;
}
.ac-hero__media { background: var(--color-ink); }

/* ★ りいクッキー（--font-display）は400の1ウェイトしか無い。body は 500 なので、
   手書きフォントを当てる要素には **必ず font-weight:400 を添える**（無いと合成ボールドで字が潰れる）。 */

/* ★ 文字の色は宿泊料金シミュレーターに合わせる（2026-10-05 井上さん指摘で実測）。
     本文・ラベル・本文中の強調 … 墨（--color-ink）か注記の灰（--color-sub）。強調は太字で付ける
     手書きフォントの数字（約2時間 など）… --color-accent（#c79a3b。シミュレーターの「01.」の色）
     ベタ塗り … --color-accent-fill（#f0b71f）＋文字 #2a2113
   **--color-accent-deep（#8a6d2f）を目立つ文字に使わない**。白地では濃い茶色に見え、シミュレーターと別の色になる。
   （hub.css / workation.css など共通の部品も 2026-10-05 に同じ使い分けへ直した） */

/* ====================== アイコン（Tabler Icons・線）====================== */
.ac-ico { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ====================== ヒーロー直下の3点 ======================
   「どれくらいで着くか」を最初の画面で言い切る。数字だけイチョウ濃色。 */
.ac-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ac-quick__i { padding: 12px 10px; text-align: center; border-left: var(--rule-dotted); }
.ac-quick__i:first-child { border-left: 0; }
.ac-quick__k { display: block; font-size: 11px; font-weight: var(--fw-bold); color: var(--color-sub); letter-spacing: .06em; }
.ac-quick__v { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(17px, 2.6vw, 26px); letter-spacing: .04em; line-height: 1.4; margin-top: 2px; }
.ac-quick__v b { font-weight: 400; color: var(--color-accent); display: inline-block; white-space: nowrap; }
@media (max-width: 620px) {
  .ac-quick__i { padding: 10px 4px; }
  .ac-quick__k { font-size: 9.5px; letter-spacing: .02em; }
  .ac-quick__v { font-size: 15.5px; letter-spacing: .02em; }
}

/* ====================== ページ内の行き先（チップ）====================== */
.ac-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.ac-jump a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  background: var(--color-white); border: var(--border-card); border-radius: var(--radius-button);
  font-size: 12.5px; font-weight: var(--fw-bold); letter-spacing: .04em;
  transition: background var(--t-fast), transform var(--t-fast);
}
.ac-jump a:hover { background: var(--color-accent-soft); transform: translateY(-2px); }
.ac-jump .ac-ico { width: 18px; height: 18px; }
@media (max-width: 620px) { .ac-jump { gap: 6px; } .ac-jump a { padding: 6px 10px; font-size: 11.5px; } }

/* ====================== アクセス（公式HPのアクセス欄と同じ構成）======================
   左に地図、右に「住所／公共交通機関／お車」を点線で区切って並べる。
   文言は公式HP（misawa-tokokoto.com/#access）と同じにしてある。 */
.ac-top { background: var(--color-white); border: var(--border-card); padding: clamp(16px, 3vw, 30px); }
.ac-top__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 3vw, 34px); align-items: start; }
.ac-map { position: relative; aspect-ratio: 4 / 5; background: #ddd; overflow: hidden; }
.ac-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-info__blk { padding: 16px 0; border-bottom: var(--rule-dotted); }
.ac-info__blk:first-child { padding-top: 2px; }
.ac-info__h { font-family: var(--font-display); font-weight: 400; font-size: 16px; letter-spacing: .05em; line-height: 1.5; margin: 0 0 6px; }
.ac-info__p { font-size: 13.5px; line-height: 1.9; margin: 0; }
.ac-info__ul li { position: relative; padding-left: 1.3em; font-size: 13.5px; line-height: 1.9; }
.ac-info__ul li::before { content: ""; position: absolute; left: .3em; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink); }
.ac-top .wk-ctas { justify-content: flex-start; }
@media (max-width: 760px) {
  .ac-top__grid { grid-template-columns: 1fr; }
  .ac-map { aspect-ratio: 4 / 3; }
  .ac-info__p, .ac-info__ul li { font-size: 12.5px; }
}

/* 米沢ってこんなところ（左右に写真2枚ずつ・中央に文） */
.ac-town { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 22px; }
.ac-town__ph { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: clamp(120px, 16vw, 176px); }
.ac-town__ph > * { aspect-ratio: 2 / 3; overflow: hidden; }
.ac-town__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-town__bd { text-align: center; }
.ac-town__bd .h-slash { font-size: clamp(16px, 2vw, 20px); }
.ac-town__bd p { font-size: 13px; line-height: 2; margin: 8px 0 0; }
@media (max-width: 760px) {
  .ac-town { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ac-town__bd { grid-column: 1 / -1; order: -1; }
  .ac-town__ph { width: 100%; }
  .ac-town__bd p { font-size: 12px; text-align: left; }
}

/* ====================== 方面別（出発地 ●───● 到着地）======================
   線の下に所要時間、その下に乗りもの・経由。数字を一番目立たせる。 */
.ac-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 860px) { .ac-modes { grid-template-columns: 1fr; } }
.ac-mode { background: var(--color-white); border: var(--border-card); }
.ac-mode__head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: var(--border-card); }
.ac-mode__t { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .05em; line-height: 1.3; margin: 0; }
.ac-mode__to { margin-left: auto; font-size: 11px; font-weight: var(--fw-bold); color: var(--color-sub); letter-spacing: .04em; white-space: nowrap; }
.ac-mode__bd { padding: 4px 16px 6px; }
.ac-mode__note { font-size: 11px; color: var(--color-sub); line-height: 1.9; padding: 9px 16px 12px; border-top: var(--rule-dotted); margin: 0; }

.ac-route { display: grid; grid-template-columns: 5.2em minmax(0, 1fr) 5.6em; gap: 10px; align-items: start; padding: 12px 0 10px; border-bottom: var(--rule-dotted); }
.ac-route:last-child { border-bottom: 0; }
.ac-route__from, .ac-route__to { font-size: 13.5px; font-weight: var(--fw-bold); line-height: 1.4; }
.ac-route__to { text-align: right; }
.ac-route__from small { display: block; font-size: 10.5px; font-weight: var(--body-weight); color: var(--color-sub); }
.ac-route__mid { position: relative; padding-top: 16px; text-align: center; min-width: 0; }
.ac-route__mid::before { content: ""; position: absolute; left: 4px; right: 4px; top: 8px; height: 2px; background: var(--color-ink); }
.ac-route__mid::after {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 10px;
  background:
    radial-gradient(circle at 5px 5px, var(--color-ink) 4.5px, transparent 5px) left / 10px 10px no-repeat,
    radial-gradient(circle at 5px 5px, var(--color-ink) 4.5px, transparent 5px) right / 10px 10px no-repeat;
}
.ac-route__time { display: block; font-family: var(--font-display); font-weight: 400; font-size: 17px; color: var(--color-accent); letter-spacing: .03em; line-height: 1.4; }
.ac-route__via { display: block; font-size: 10.5px; color: var(--color-sub); line-height: 1.6; }
@media (max-width: 620px) {
  .ac-mode__head { padding: 10px 12px; }
  .ac-mode__bd { padding: 2px 12px 4px; }
  .ac-mode__note { padding: 8px 12px 10px; }
  .ac-route { grid-template-columns: 4.6em minmax(0, 1fr) 4.8em; gap: 6px; }
  .ac-route__from, .ac-route__to { font-size: 12.5px; }
  .ac-route__time { font-size: 15.5px; }
}

/* ====================== 山形の観光地へのアクセス（行き先の一覧）======================
   カードの枠は方面別と同じ .ac-mode。行は「名前＋ひとこと｜所要時間＋距離」で、
   行全体が Googleマップの経路へのリンク。 */
.ac-modes__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ac-dests { padding-top: 0; padding-bottom: 0; }
.ac-dest { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: var(--rule-dotted); transition: background var(--t-fast); }
.ac-dest:last-child { border-bottom: 0; }
.ac-dest:hover, .ac-dest:focus-visible { background: var(--color-accent-wash); outline: none; }
.ac-dest__bd { min-width: 0; }
.ac-dest__n { display: block; font-size: 13.5px; font-weight: var(--fw-bold); line-height: 1.5; }
.ac-dest__n small { font-size: 10.5px; font-weight: var(--body-weight); color: var(--color-sub); margin-left: 8px; }
.ac-dest__d { display: block; font-size: 11.5px; color: var(--color-sub); line-height: 1.7; }
.ac-dest__t { text-align: right; white-space: nowrap; }
.ac-dest__time { display: block; font-family: var(--font-display); font-weight: 400; font-size: 17px; color: var(--color-accent); letter-spacing: .03em; line-height: 1.4; }
.ac-dest__km { display: block; font-size: 10.5px; color: var(--color-sub); line-height: 1.5; }
@media (max-width: 620px) {
  .ac-dest { gap: 8px; padding: 9px 0; }
  .ac-dest__n { font-size: 12.5px; }
  .ac-dest__d { font-size: 11px; }
  .ac-dest__time { font-size: 15.5px; }
}

/* ====================== 米沢駅から、みさわ小まで ====================== */
.ac-last { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .ac-last { grid-template-columns: 1fr; gap: 10px; } }
.ac-opt { background: var(--color-white); border: var(--border-card); padding: 14px 16px 16px; display: flex; flex-direction: column; }
.ac-opt__head { display: flex; align-items: center; gap: 9px; }
.ac-opt__t { font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: .04em; margin: 0; }
.ac-opt__time { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--color-accent); line-height: 1.3; margin: 8px 0 0; letter-spacing: .03em; }
.ac-opt__time small { display: inline-block; font-family: var(--font-body); font-size: 11px; font-weight: var(--fw-bold); color: var(--color-sub); margin-left: 6px; }
.ac-opt__d { font-size: 12.5px; line-height: 1.95; margin: 6px 0 0; flex: 1; }
.ac-opt__a { margin-top: 10px; font-size: 12px; font-weight: var(--fw-bold); }
.ac-opt__a a { border-bottom: 2px solid var(--color-accent); padding-bottom: 1px; }
.ac-opt__a a:hover { opacity: .7; }

/* レンタカーのカードの中に置く「雪の季節に」の枠（カードの中なので一段小さく） */
.ac-note.ac-note--in { margin-top: 12px; padding: 10px 12px; gap: 10px; background: var(--color-accent-wash); border: 0; }
.ac-note--in .ac-note__t { font-size: 14.5px; }
.ac-note--in .ac-note__d { font-size: 12px; line-height: 1.85; }

/* ====================== 近くの寄り道（横に送るカルーセル）======================
   ページが縦に長くなったので、4か所を縦に積むのをやめて横に並べた（2026-10-06 井上さん指示）。
   - 送りはブラウザの横スクロール＋scroll-snap。次のカードが少し見える幅にして「横に続く」ことを見せる
   - カードは縦型（写真が上・文が下）。写真は大1＋小2（パソコンは大を左・小2枚を右に積む。スマホは大の下に小2枚）
   - 自動では動かさない（営業時間などを読んでいる途中で流れると困るため） */
.ac-car { position: relative; }
.ac-car__track {
  display: flex; gap: 14px; align-items: stretch;
  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) {
  .ac-car__track { margin: 0 calc(-1 * var(--pad-x)); padding: 4px var(--pad-x); scroll-padding-inline: var(--pad-x); }
}
.ac-car__track::-webkit-scrollbar { display: none; }
.ac-car__track:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.ac-spot {
  flex: 0 0 clamp(272px, 46%, 470px); scroll-snap-align: start;
  background: var(--color-white); border: var(--border-card); display: flex; flex-direction: column; min-width: 0;
}
.ac-spot__ph {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px;
  aspect-ratio: 2 / 1; overflow: hidden; background: var(--color-ink); border-bottom: var(--border-card);
}
.ac-spot__ph > * { min-width: 0; min-height: 0; overflow: hidden; }
.ac-spot__ph > :first-child { grid-row: 1 / span 2; }
.ac-spot__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 写真が1枚だけのお店（龍華食堂）は、枠いっぱいに1枚 */
.ac-spot__ph--one { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.ac-spot__ph--one > :first-child { grid-row: auto; }
.ac-spot__bd { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.ac-spot__no { font-family: var(--font-display); font-weight: 400; font-size: 20px; color: var(--color-accent); line-height: 1; }
.ac-spot__kind { font-size: 11px; font-weight: var(--fw-bold); color: var(--color-sub); letter-spacing: .12em; margin-left: 8px; }
.ac-spot__t { font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 2.2vw, 23px); letter-spacing: .04em; line-height: 1.4; margin: 6px 0 0; }
.ac-spot__catch { font-family: var(--font-display); font-weight: 400; font-size: 14.5px; letter-spacing: .04em; line-height: 1.7; margin: 6px 0 0; }
.ac-spot__d { font-size: 12.5px; line-height: 1.95; margin: 8px 0 0; }
.ac-spot__d b { font-weight: var(--fw-bold); }
.ac-spot__meta { margin: 12px 0 0; border-top: var(--rule-dotted); }
.ac-spot__meta div { display: flex; gap: 12px; padding: 7px 0; border-bottom: var(--rule-dotted); font-size: 12px; line-height: 1.8; }
.ac-spot__meta dt { font-weight: var(--fw-bold); min-width: 5.5em; flex-shrink: 0; }
.ac-spot__meta dd { margin: 0; flex: 1; min-width: 0; }
.ac-spot__meta em { font-style: normal; font-weight: var(--fw-bold); color: inherit; }
.ac-spot__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.ac-spot__links .wk-btn { min-height: 42px; padding: 8px 14px; font-size: 12.5px; width: auto; flex: 1; white-space: nowrap; }
@media (max-width: 620px) {
  .ac-car__track { gap: 10px; }
  /* カード1枚がスマホの1画面に収まる高さにする（縦に読んでから横に送る、の往復を減らす）。
     写真はパソコンと同じ「大1＋小2」の並びのまま小さくし、文の行間も少し詰める。 */
  .ac-spot { flex-basis: 84%; }
  .ac-spot__bd { padding: 12px 14px 14px; }
  .ac-spot__catch { font-size: 13.5px; line-height: 1.6; }
  .ac-spot__d { font-size: 12px; line-height: 1.85; margin-top: 6px; }
  .ac-spot__meta { margin-top: 10px; }
  .ac-spot__meta div { gap: 8px; font-size: 11.5px; padding: 5px 0; }
  .ac-spot__links { padding-top: 12px; }
  .ac-spot__meta dt { min-width: 5em; }
  .ac-spot__links .wk-btn { font-size: 12px; padding: 8px 8px; }
}

/* 矢印と点 */
.ac-car__ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.ac-car.is-static .ac-car__ctl { display: none; }
.ac-car__btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  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);
}
.ac-car__btn:hover:not(:disabled) { background: var(--color-accent-soft); }
.ac-car__btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
.ac-car__btn:disabled { opacity: .3; cursor: default; }
.ac-car__dots { display: flex; align-items: center; gap: 8px; }
.ac-car__dot { width: 10px; height: 10px; padding: 0; border: 2px solid var(--color-ink); border-radius: 50%; background: var(--color-white); transition: background var(--t-fast); }
.ac-car__dot.on { background: var(--color-accent-fill); }

/* ====================== 冬にお越しの方へ（お知らせの囲み）======================
   **片側だけ色で塗る囲み（左に太い色の罫）は使わない**（2026-10-05 井上さん指摘。機械的に見える）。
   ほかのカードと同じ「白地＋2px墨枠」で囲み、見出しを手書きフォントにして区別する。 */
.ac-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; background: var(--color-white); border: var(--border-card); }
.ac-note .ac-ico { margin-top: 2px; color: var(--color-accent); }
.ac-note__t { font-family: var(--font-display); font-weight: 400; font-size: 16px; letter-spacing: .04em; line-height: 1.5; margin: 0; }
.ac-note__d { font-size: 12.5px; line-height: 2; margin: 4px 0 0; }
