/* Japan by Locals — あみもののデザイン言語（白・青・線）を引き継いだ旅行ガイド */
:root {
  --blue: #4294D6;
  --blue-deep: #2F76B3;
  --ink: #111111;
  --ink-soft: #555555;
  --line: #E4E8EC;
  --mist: #EEF4F9;
  --paper: #FFFFFF;
  --en: 'Poppins', sans-serif;
  --jp: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --body: 'Noto Sans JP', sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 4px;
  --ease: cubic-bezier(.4, .4, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.9; letter-spacing: .04em; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
.en { font-family: var(--en); font-weight: 500; letter-spacing: .05em; }
.jp { font-family: var(--jp); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- 出現アニメ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------- ヘッダー */
.header { position: absolute; inset: 0 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: flex-start; padding: 40px var(--gutter) 0; pointer-events: none; }
.header > * { pointer-events: auto; }
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.logo__mark { font-family: var(--en); font-weight: 600; font-size: 28px; letter-spacing: .16em; line-height: 1; padding-left: .16em; }
.logo__mark span { color: var(--blue); }
.logo__en { font-family: var(--en); font-weight: 500; font-size: 12px; letter-spacing: .12em; }
.nav { display: flex; gap: 35px; padding-top: 14px; }
.nav a { font-family: var(--en); font-weight: 500; font-size: 15px; letter-spacing: .05em; transition: color .3s; }
.nav a:hover { color: var(--blue); }
.menu-btn { display: none; flex-direction: column; gap: 8px; padding: 14px 4px; }
.menu-btn span { display: block; width: 26px; height: 2px; border-radius: 2px; background: var(--blue); }
.header--light .nav a, .header--light .logo { color: #fff; }

/* ---------------------------------------------------------------- KV（トップ） */
.kv { position: relative; height: 100vh; min-height: 680px; overflow: hidden; }
.kv__line { position: absolute; left: -3.5%; top: 19%; width: 105%; z-index: 0; pointer-events: none; }
.kv__line svg { width: 100%; height: auto; overflow: visible; }
.kv__card { position: absolute; z-index: 2; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); will-change: transform; }
.kv__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.kv__card:hover img { transform: scale(1.06); }
.kv__card .kv__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; opacity: 0; transition: opacity .4s; text-align: center; line-height: 1.4; }
.kv__card:hover .kv__label { opacity: 1; }
.kv__label strong { font-family: var(--jp); font-size: 18px; }
.kv__label small { font-family: var(--en); font-size: 11px; letter-spacing: .2em; }
.kv__video { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(46vw, 660px); aspect-ratio: 16 / 9; translate: -50% -50%; /* transform はパララックス用に空けておく */ border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, .15); }
.kv__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.kv__catch { position: absolute; z-index: 4; right: var(--gutter); bottom: 9vh; text-align: right; }
.kv__catch .en { display: block; font-size: 24px; }
.kv__catch .jp { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; letter-spacing: .12em; }
.kv__scroll { position: absolute; z-index: 4; left: var(--gutter); bottom: 6vh; font-family: var(--en); font-size: 11px; letter-spacing: .3em; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.kv__scroll::after { content: ''; width: 1px; height: 64px; background: var(--ink); animation: scrollLine 2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------------------------- セクション共通 */
.section { position: relative; padding: 160px var(--gutter); }
.section--mist { background: var(--mist); }
.heading { display: flex; align-items: baseline; gap: 24px; margin-bottom: 64px; flex-wrap: wrap; }
.heading .en { font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.heading .en b { color: var(--blue); font-weight: 500; }
.heading .jp { font-size: 15px; font-weight: 500; letter-spacing: .1em; }
.heading--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- コンセプト */
.concept { min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.concept__body { position: relative; z-index: 2; max-width: 620px; margin-left: 6vw; }
.concept__title { font-family: var(--jp); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .06em; line-height: 1.7; margin-bottom: 48px; }
.concept__title em { font-style: normal; color: var(--blue); position: relative; }
.concept__title em::before { content: attr(data-ruby); position: absolute; left: 50%; top: -1.1em; transform: translateX(-50%); font-size: 13px; letter-spacing: 0; }
.concept__text { font-size: 15px; line-height: 2.4; }
.concept__word { position: absolute; z-index: 1; font-family: var(--jp); font-weight: 700; font-size: clamp(40px, 5vw, 64px); writing-mode: vertical-rl; letter-spacing: .1em; color: var(--ink); will-change: transform; }
.concept__img { position: absolute; z-index: 0; border-radius: var(--radius); overflow: hidden; will-change: transform; opacity: .95; }
.concept__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- 旅プラン（ポップアップの回答後） */
.myplan { display: none; }
.myplan.is-active { display: block; }
.myplan__card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(47, 118, 179, .12); }
.myplan__img { position: relative; min-height: 360px; }
.myplan__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.myplan__img .en { position: absolute; left: 28px; bottom: 22px; color: #fff; font-size: 40px; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.myplan__body { padding: 44px 48px; }
.myplan__eyebrow { font-family: var(--en); font-size: 12px; letter-spacing: .25em; color: var(--blue); }
.myplan__title { font-family: var(--jp); font-weight: 700; font-size: 26px; margin: 6px 0 18px; line-height: 1.5; }
.myplan__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.myplan__course { margin: 0 0 26px; padding: 0; list-style: none; border-left: 2px solid var(--blue); }
.myplan__course li { padding: 0 0 12px 20px; position: relative; font-size: 14px; line-height: 1.8; }
.myplan__course li::before { content: ''; position: absolute; left: -6px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.myplan__course b { font-family: var(--jp); display: block; }
.myplan__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.myplan__edit { font-size: 13px; text-decoration: underline; color: var(--ink-soft); }

/* ---------------------------------------------------------------- タグ・ボタン */
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--mist); font-size: 12px; letter-spacing: .05em; }
.tag--ink { background: var(--ink); color: #fff; font-family: var(--en); font-size: 11px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-family: var(--jp); font-weight: 700; font-size: 14px; letter-spacing: .08em; transition: background .3s, color .3s, transform .3s; }
.btn:hover { transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { border: 1px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn small { font-family: var(--en); font-weight: 500; font-size: 10px; opacity: .8; }
.arrow-link { display: inline-flex; align-items: center; gap: 14px; font-family: var(--en); font-weight: 500; font-size: 16px; letter-spacing: .05em; }
.arrow-link i { width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-style: normal; transition: transform .6s var(--ease); }
.arrow-link:hover i { transform: translateX(8px); }

/* ---------------------------------------------------------------- エリア一覧 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 48px; }
.chip { height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; transition: all .3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 32px; }
.area { display: block; }
.area.is-hidden { display: none; }
.area__img { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.area__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.area:hover .area__img img { transform: scale(1.06); }
.area__img .en { position: absolute; left: 16px; top: 14px; color: #fff; font-size: 12px; letter-spacing: .25em; text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.area__img .tag { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); }
.area__name { font-family: var(--jp); font-weight: 700; font-size: 22px; letter-spacing: .08em; line-height: 1.4; }
.area__catch { font-size: 13px; color: var(--ink-soft); margin: 6px 0 10px; line-height: 1.7; }
.area__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------------------------------------------------------------- 動画マーキー */
.marquee { overflow: hidden; margin: 0 calc(var(--gutter) * -1); }
.marquee + .marquee { margin-top: 28px; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee var(--speed, 60s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 14px)); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.vcard { position: relative; width: 420px; flex: none; text-align: left; }
.vcard__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform 1s var(--ease), opacity .4s; }
.vcard:hover .vcard__thumb img { transform: scale(1.05); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; transition: transform .4s var(--ease); }
.play::after { content: ''; margin-left: 4px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--blue); }
.vcard:hover .play, .yt:hover .play { transform: scale(1.1); }
.vcard__meta { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.vcard__title { font-family: var(--jp); font-weight: 700; font-size: 15px; line-height: 1.5; margin-top: 6px; }
.vcard__ch { font-size: 12px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- 写真の帯 */
.photostrip { overflow: hidden; padding: 0 0 160px; }
.photostrip .marquee__track { gap: 16px; }
.photostrip img { height: 300px; width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* ---------------------------------------------------------------- 予約バナー */
.cta { position: relative; overflow: hidden; color: #fff; padding: 120px var(--gutter); }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .15)); }
.cta__body { position: relative; max-width: 640px; }
.cta__body .en { font-size: clamp(36px, 5vw, 60px); line-height: 1.1; }
.cta__body p { margin: 18px 0 32px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta .btn--line { border-color: #fff; }
.cta .btn--line:hover { background: #fff; color: var(--ink); }
.pr { display: block; margin-top: 18px; font-size: 11px; opacity: .8; }

/* ---------------------------------------------------------------- フッター */
.footer { position: relative; padding: 100px var(--gutter) 48px; }
.footer__line { position: absolute; left: 6%; top: 40px; width: 142px; }
.footer__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer__nav a { font-family: var(--en); font-weight: 500; font-size: 15px; }
.footer__nav a:hover { color: var(--blue); }
.footer__note { margin-top: 48px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; color: var(--ink-soft); }
.footer__note .en { font-size: 11px; }

/* ---------------------------------------------------------------- 観光地ページ */
.dhero { position: relative; height: 100vh; min-height: 640px; color: #fff; overflow: hidden; }
.dhero__bg { position: absolute; inset: -6% 0 0; }
.dhero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 8s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.dhero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%); }
.dhero__body { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 120px; }
.dhero__en { font-family: var(--en); font-weight: 600; font-size: clamp(64px, 12vw, 180px); line-height: .9; letter-spacing: .02em; }
.dhero__name { font-family: var(--jp); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: .14em; margin-top: 18px; }
.dhero__catch { margin-top: 8px; font-size: 15px; letter-spacing: .1em; }
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -64px var(--gutter) 0; background: var(--paper); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .06); }
.facts > div { padding: 28px 32px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-family: var(--en); font-size: 11px; letter-spacing: .25em; color: var(--blue); }
.facts dd { margin: 4px 0 0; font-family: var(--jp); font-weight: 700; font-size: 15px; }
.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.lead__text { font-size: 16px; line-height: 2.3; }
.book { position: sticky; top: 24px; padding: 36px; border-radius: 12px; background: var(--mist); }
.book__title { font-family: var(--jp); font-weight: 700; font-size: 20px; margin-bottom: 6px; }
.book__sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.book__btns { display: grid; gap: 12px; }
.book__btns .btn { width: 100%; justify-content: space-between; }
.book__plan { font-size: 13px; margin-bottom: 16px; padding: 12px 16px; border-radius: 8px; background: #fff; display: none; }
.book__plan.is-active { display: block; }
.videos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__cap { margin-top: 12px; font-family: var(--jp); font-weight: 700; font-size: 15px; line-height: 1.5; }
.video__cap small { display: block; font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.spots { display: grid; gap: 140px; }
.spot { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.spot:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.spot:nth-child(even) .spot__img { order: 2; }
.spot__img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; }
.spot__img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.spot__no { font-family: var(--en); font-weight: 600; font-size: 72px; line-height: 1; color: var(--blue); opacity: .18; }
.spot__en { font-family: var(--en); font-size: 12px; letter-spacing: .25em; color: var(--blue); margin-top: -18px; }
.spot__name { font-family: var(--jp); font-weight: 700; font-size: 28px; letter-spacing: .08em; margin: 6px 0 18px; line-height: 1.5; }
.spot__text { line-height: 2.2; }
.course { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.day { padding: 32px 28px; border-radius: 12px; background: var(--paper); }
.day__label { font-family: var(--jp); font-weight: 700; font-size: 18px; color: var(--blue); margin-bottom: 14px; }
.day ol { margin: 0; padding: 0 0 0 1.2em; font-size: 14px; line-height: 1.9; }
.day li + li { margin-top: 8px; }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery img { width: 100%; margin-bottom: 16px; border-radius: var(--radius); break-inside: avoid; }
.others { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.others .area__img { aspect-ratio: 4 / 3; }
.others .area__name { font-size: 17px; }

/* ---------------------------------------------------------------- 旅プランのポップアップ */
.planpop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; }
.planpop.is-open { visibility: visible; }
.planpop__bg { position: absolute; inset: 0; background: rgba(17, 17, 17, .45); opacity: 0; transition: opacity .5s var(--ease); }
.planpop.is-open .planpop__bg { opacity: 1; }
.planpop__panel { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: 16px; padding: 48px 48px 40px; transform: translateY(40px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.planpop.is-open .planpop__panel { transform: none; opacity: 1; }
.planpop__line { position: absolute; right: 0; top: 0; width: 180px; pointer-events: none; }
.planpop__close { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1; z-index: 2; }
.planpop__close:hover { background: var(--mist); }
.planpop__eyebrow { font-family: var(--en); font-size: 12px; letter-spacing: .25em; color: var(--blue); }
.planpop__title { font-family: var(--jp); font-weight: 700; font-size: 24px; line-height: 1.5; margin: 8px 0 6px; }
.planpop__sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 28px; }
.field { margin-bottom: 22px; border: 0; padding: 0; }
.field legend, .field > label { display: block; font-family: var(--jp); font-weight: 700; font-size: 14px; margin-bottom: 10px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices label { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; cursor: pointer; transition: all .25s; }
.choices label:hover { border-color: var(--ink); }
.choices input:checked + label { background: var(--blue); border-color: var(--blue); color: #fff; }
.choices input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.input, .select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.input:focus, .select:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.planpop__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.planpop__later { font-size: 13px; color: var(--ink-soft); text-decoration: underline; }
/* チャット形式のヒアリング（メッセージアプリ風） */
.chat { --chat-bg: #8CABD9; --me: #8DE055; --bot: #FFFFFF; display: flex; flex-direction: column; width: min(420px, 100%); height: min(680px, calc(100vh - 40px)); padding: 0; overflow: hidden; background: var(--chat-bg); border-radius: 20px; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.chat__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--en); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.chat__avatar--sm { width: 34px; height: 34px; font-size: 12px; }
.chat__who { flex: 1; min-width: 0; line-height: 1.4; }
.chat__name { font-family: var(--jp); font-weight: 700; font-size: 15px; }
.chat__status { font-size: 11px; color: var(--ink-soft); }
.chat__later { font-size: 12px; color: var(--ink-soft); padding: 6px 8px; }
.chat .planpop__close { position: static; width: 36px; height: 36px; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { display: flex; align-items: flex-end; gap: 8px; max-width: 86%; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.msg.is-in { opacity: 1; transform: none; }
.msg--bot { align-self: flex-start; }
.msg--me { align-self: flex-end; }
.msg__body { position: relative; padding: 9px 14px; border-radius: 18px; font-size: 14px; line-height: 1.6; letter-spacing: .02em; word-break: break-word; }
.msg--bot .msg__body { background: var(--bot); border-top-left-radius: 4px; }
.msg--me .msg__body { background: var(--me); border-top-right-radius: 4px; }
.msg--typing .msg__body { display: flex; gap: 4px; padding: 13px 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #B5BCC4; animation: typing 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat__reply { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 6px; background: #fff; min-height: 64px; align-content: flex-start; max-height: 42%; overflow-y: auto; }
.chat__reply:empty { background: #fff; }
.qr { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue-deep); background: #fff; font-size: 13px; font-weight: 500; transition: background .2s, color .2s; }
.qr:hover, .qr[aria-pressed="true"] { background: var(--blue); color: #fff; }
.qr--primary { background: var(--blue); color: #fff; }
.qr--primary:hover { background: var(--blue-deep); }
.qr:disabled { opacity: .4; pointer-events: none; }
.qr--done { flex-basis: 100%; }
.qr-date { display: flex; gap: 8px; flex-basis: 100%; }
.qr-date .input { flex: 1; height: 38px; border-radius: 999px; }
.chat__note { padding: 0 14px 10px; background: #fff; font-size: 10px; color: var(--ink-soft); text-align: center; }
@media (prefers-reduced-motion: reduce) { .msg { transition: none; } .msg--typing i { animation: none; } }

.plan-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: none; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--jp); font-weight: 700; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.plan-fab.is-visible { display: inline-flex; }
.plan-fab { transition: opacity .3s, transform .3s; }
.plan-fab.is-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.plan-fab::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* ---------------------------------------------------------------- 動画モーダル */
.vmodal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .85); }
.vmodal.is-open { display: flex; }
.vmodal__box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.vmodal__box iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.vmodal__close { position: absolute; right: 0; top: -48px; color: #fff; font-size: 30px; width: 40px; height: 40px; }

/* ---------------------------------------------------------------- メニュー（スマホ） */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .16); opacity: 0; transition: opacity .4s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel { position: absolute; right: 0; top: 0; width: 290px; height: 560px; transform: translateX(100%); transition: transform .5s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__shape { position: absolute; inset: 0; }
.drawer__shape svg { width: 100%; height: 100%; }
.drawer__nav { position: relative; display: flex; flex-direction: column; gap: 28px; padding: 120px 50px 0 120px; }
.drawer__nav a { font-family: var(--en); font-weight: 500; font-size: 15px; }
.drawer__close { position: absolute; right: 26px; top: 40px; width: 40px; height: 40px; font-size: 26px; color: var(--blue); z-index: 2; }

/* ---------------------------------------------------------------- クレジット */
.credits { width: 100%; border-collapse: collapse; font-size: 13px; }
.credits th, .credits td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits th { font-family: var(--jp); font-weight: 700; white-space: nowrap; }
.credits img { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.credits a { color: var(--blue-deep); text-decoration: underline; word-break: break-all; }

/* ---------------------------------------------------------------- レスポンシブ */
@media (max-width: 1140px) {
  .areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .section { padding: 110px var(--gutter); }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .header { padding-top: 24px; }
  .kv { min-height: 620px; }
  .kv__video { width: 82vw; top: 47%; }
  .kv__line { top: 26%; width: 190%; left: -45%; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .area__name { font-size: 18px; }
  .lead, .videos { grid-template-columns: 1fr; gap: 40px; }
  .book { position: static; }
  .spot, .spot:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .spot:nth-child(even) .spot__img { order: 0; }
  .spots { gap: 90px; }
  .facts { grid-template-columns: 1fr; margin-top: -48px; }
  .facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 24px; }
  .facts > div:first-child { border-top: 0; }
  .myplan__card { grid-template-columns: 1fr; }
  .myplan__img { min-height: 220px; }
  .myplan__body { padding: 32px 24px; }
  .concept__body { margin-left: 0; }
  .concept__word { font-size: 40px; opacity: .9; }
  .vcard { width: 300px; }
  .photostrip img { height: 200px; }
}
@media (max-width: 540px) {
  body { font-size: 14px; }
  .heading { margin-bottom: 44px; }
  .kv__catch { bottom: 7vh; }
  .kv__catch .en { font-size: 20px; }
  .kv__scroll { display: none; }
  .planpop { padding: 0; align-items: flex-end; }
  .planpop__panel { border-radius: 16px 16px 0 0; padding: 40px 22px 0; max-height: 92vh; }
  /* スマホではチャットを全画面に */
  .planpop__panel.chat { width: 100%; height: 100dvh; max-height: none; padding: 0; border-radius: 0; }
  .chat__reply { padding-bottom: 10px; }
  /* 写真が多いとキャッチに重なるので、スマホでは5枚に絞る */
  .kv__card:nth-of-type(n+6) { display: none; }
  .row { grid-template-columns: 1fr 1fr; }
  .row > :first-child { grid-column: 1 / -1; }
  .dhero__body { bottom: 100px; }
  .cta { padding: 90px var(--gutter); }
  .footer__note { flex-direction: column; }
}

/* ---------------------------------------------------------------- スマホ専用の配置（KV の写真・ABOUT の飾り） */
@media (max-width: 540px) {
  /* KV: 5枚を大きく。上の2枚はヘッダーと動画のあいだ、下の3枚は動画とキャッチのあいだに置く
     （23.6vw = 動画の高さの半分 = 84vw × 9/16 ÷ 2） */
  .kv__video { width: 84vw; top: calc(50% + 10px); }
  .kv__card:nth-of-type(n) { aspect-ratio: auto !important; }
  .kv__card:nth-of-type(1) { left: 5% !important; right: auto !important; top: 92px !important; bottom: auto !important; width: 48% !important; height: calc(50% - 23.6vw - 94px) !important; max-height: 160px; }
  .kv__card:nth-of-type(2) { right: 4% !important; left: auto !important; top: 116px !important; bottom: auto !important; width: 40% !important; height: calc(50% - 23.6vw - 118px) !important; max-height: 134px; }
  .kv__card:nth-of-type(3) { left: 4% !important; right: auto !important; top: auto !important; bottom: calc(7vh + 76px) !important; width: 27% !important; height: calc(50% - 7vh - 23.6vw - 98px) !important; max-height: 200px; }
  .kv__card:nth-of-type(4) { right: 5% !important; left: auto !important; top: auto !important; bottom: calc(7vh + 76px) !important; width: 25% !important; height: calc(50% - 7vh - 23.6vw - 112px) !important; max-height: 186px; }
  .kv__card:nth-of-type(5) { left: 34% !important; right: auto !important; top: auto !important; bottom: calc(7vh + 76px) !important; width: 34% !important; height: calc(50% - 7vh - 23.6vw - 140px) !important; max-height: 120px; }

  /* ABOUT: 飾りは見出しの上にグリッドで並べ、本文や飾りどうしを重ねない */
  .concept { display: grid; grid-template-columns: 1fr auto 1.5fr; grid-template-areas: "i3 w3 i1" "i2 w2 w1" "body body body"; gap: 16px 14px; align-items: center; min-height: 0; }
  .concept__word, .concept__img { position: static; transform: none !important; }
  .concept__word { font-size: 34px; justify-self: center; }
  .concept__img img { aspect-ratio: inherit; }
  .concept__img--3 { grid-area: i3; width: 100% !important; }
  .concept__word--3 { grid-area: w3; }
  .concept__img--1 { grid-area: i1; width: 100% !important; }
  .concept__img--2 { grid-area: i2; width: 100% !important; aspect-ratio: 1 / 1 !important; }
  .concept__word--2 { grid-area: w2; }
  .concept__word--1 { grid-area: w1; justify-self: start; }
  .concept__word--4, .concept__img--4 { display: none; }
  .concept__body { grid-area: body; margin-top: 40px; }
}

/* ---------------------------------------------------------------- スマホ（マウスがない端末）向けの動き */
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes floatX { 0%, 100% { translate: 0 0; } 50% { translate: 6px -6px; } }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  /* KV の写真: スクロールのずれ（transform）とは別に、translate でふわふわ浮かせる */
  .kv__card { animation: floatY 5s ease-in-out infinite; }
  .kv__card:nth-of-type(2n) { animation-name: floatX; animation-duration: 6.5s; }
  .kv__card:nth-of-type(3n) { animation-duration: 7.5s; animation-delay: -2s; }
  .kv__card:nth-of-type(5n) { animation-duration: 4.5s; animation-delay: -1s; }
  .kv__card img { animation: slowZoom 9s ease-in-out infinite alternate; }

  /* ABOUT の飾り */
  .concept__word { animation: floatY 6s ease-in-out infinite; }
  .concept__word--2 { animation-delay: -2s; animation-duration: 7s; }
  .concept__word--3 { animation-delay: -4s; }
  .concept__img { animation: floatX 7s ease-in-out infinite; }
  .concept__img--2 { animation-delay: -3s; animation-duration: 8s; }
  .concept__img img { animation: slowZoom 10s ease-in-out infinite alternate; }

  /* エリア一覧・ほかの行き先: 画面に入ったらゆっくりズーム */
  .area.is-in .area__img img { animation: slowZoom 8s ease-in-out infinite alternate; }

  /* タップしたときに少し沈む */
  .area:active .area__img, .kv__card:active, .vcard:active .vcard__thumb { transform: scale(.97); transition: transform .2s; }
}

/* ---------------------------------------------------------------- YOUR TRIP（旅プラン） */
.trip { background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(47, 118, 179, .12); }
.trip__hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; color: #fff; }
.trip__hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .65) 100%); }
.trip__hero-body { position: relative; z-index: 1; padding: 40px 48px; width: 100%; }
.trip__eyebrow { font-family: var(--en); font-size: 12px; letter-spacing: .25em; opacity: .9; }
.trip__title { font-family: var(--jp); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; margin: 6px 0 16px; }
.trip__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.trip__meta .tag { background: rgba(255, 255, 255, .9); color: var(--ink); }
.trip__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--glass { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .6); color: #fff; backdrop-filter: blur(6px); min-height: 48px; padding: 0 20px; }
.btn--glass:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 13px; }
.trip__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 48px; align-items: start; }
.trip__h { font-family: var(--jp); font-weight: 700; font-size: 20px; margin: 0 0 20px; display: flex; align-items: center; gap: 12px; }
.trip__h::before { content: ''; width: 24px; height: 2px; background: var(--blue); }
.trip__main > .trip__h:not(:first-child) { margin-top: 56px; }
.trip__side { display: grid; gap: 16px; position: sticky; top: 24px; }

/* 1日分 */
.tday { border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 20px; }
.tday + .tday { margin-top: 18px; }
.tday--extra { border-style: dashed; border-color: var(--blue); }
.tday--free { background: var(--mist); border-color: transparent; }
.tday__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tday__no { display: flex; align-items: baseline; gap: 10px; }
.tday__no .en { font-size: 22px; color: var(--blue); }
.tday__date { font-size: 13px; color: var(--ink-soft); }
.tday__theme { font-family: var(--jp); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.tday__slots { list-style: none; margin: 0; padding: 0; }
.slot { display: grid; grid-template-columns: 52px minmax(0, 1fr) 120px; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line); align-items: start; }
.slot:first-child { border-top: 0; }
.slot__time { font-family: var(--jp); font-weight: 700; font-size: 13px; color: var(--blue); padding-top: 2px; }
.slot__move { font-size: 11px; color: var(--ink-soft); margin-bottom: 2px; }
.slot__move::before { content: '移動 '; color: var(--blue); }
.slot__title { font-family: var(--jp); font-weight: 700; font-size: 16px; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.slot__badge { font-family: var(--body); font-weight: 500; font-size: 11px; padding: 2px 10px; border-radius: 999px; background: #FFF3D6; color: #8A5A00; }
.slot__text { font-size: 13px; line-height: 1.9; color: #333; margin-top: 4px; }
.slot__img { width: 120px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.slot.is-match .slot__time::after { content: ' ★'; color: #E0A100; }
.tday__map { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--blue-deep); text-decoration: underline; }
.trip__more { margin-top: 18px; padding: 20px 24px; border-radius: 12px; background: var(--mist); font-size: 14px; }
.trip__more-title { font-family: var(--jp); font-weight: 700; margin-bottom: 6px; }
.trip__more ul { margin: 0; padding-left: 1.2em; }

/* 興味に合わせたおすすめ */
.tlikes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tlike { padding: 22px; border-radius: 12px; background: var(--mist); font-size: 13px; line-height: 1.9; }
.tlike__title { font-family: var(--jp); font-weight: 700; font-size: 15px; margin: 10px 0 4px; }
.trip__guide { margin-top: 36px; }

/* サイドのカード */
.tcard { padding: 22px; border-radius: 12px; border: 1px solid var(--line); font-size: 13px; line-height: 1.9; }
.tcard__title { font-family: var(--jp); font-weight: 700; font-size: 15px; margin-bottom: 10px; display: flex; flex-direction: column; line-height: 1.4; }
.tcard__title .en { font-size: 10px; letter-spacing: .25em; color: var(--blue); margin-bottom: 4px; }
.tcard__title--sub { margin-top: 16px; font-size: 14px; }
.tcard__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.tcard__dl dt { font-weight: 700; color: var(--blue-deep); white-space: nowrap; }
.tcard__dl dd { margin: 0; }
.tcard__note { font-size: 11px; color: var(--ink-soft); margin-top: 6px; }
.tarea { padding: 12px 0; border-top: 1px dashed var(--line); }
.tarea:first-of-type { border-top: 0; padding-top: 0; }
.tarea__name { font-family: var(--jp); font-weight: 700; font-size: 14px; }
.tarea__why { font-size: 12px; color: #444; }
.tarea__links { display: flex; gap: 14px; margin-top: 4px; }
.tarea__links a { font-size: 12px; color: var(--blue-deep); text-decoration: underline; }
.tbudget { width: 100%; border-collapse: collapse; }
.tbudget th, .tbudget td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; font-size: 12px; }
.tbudget td { text-align: right; white-space: nowrap; }
.tbudget__total th, .tbudget__total td { font-weight: 700; font-size: 14px; border-bottom: 0; padding-top: 10px; }
.tcheck { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tcheck label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.tcheck input { width: 16px; height: 16px; accent-color: var(--blue); }
.tcheck input:checked + label { color: var(--ink-soft); text-decoration: line-through; }
.tcheck li { display: flex; align-items: center; gap: 8px; }
.tmanner { margin: 0; padding-left: 1.2em; font-size: 12px; }

@media (max-width: 1140px) {
  .trip__body { grid-template-columns: 1fr; padding: 40px; }
  .trip__side { position: static; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 540px) {
  .trip { border-radius: 12px; }
  .trip__hero { min-height: 300px; }
  .trip__hero-body { padding: 28px 20px; }
  .trip__actions .btn { flex: 1 1 auto; }
  .trip__body { padding: 28px 16px; gap: 32px; }
  .trip__side { grid-template-columns: 1fr; }
  .tday { padding: 20px 16px 16px; }
  .slot { grid-template-columns: 44px minmax(0, 1fr); }
  .slot__img { grid-column: 2; width: 100%; max-width: 260px; }
}

/* 印刷（プランだけを出す） */
@media print {
  .header, .kv, .concept, #areas, #videos, .photostrip, .cta, .footer, .plan-fab, .planpop, .drawer, .vmodal, [data-draw-trigger], .trip__actions { display: none !important; }
  .myplan { padding: 0 !important; background: none !important; }
  .trip { box-shadow: none; }
  .trip__body { grid-template-columns: 1fr; padding: 24px 0; }
  .trip__side { position: static; grid-template-columns: 1fr 1fr; }
  .tday, .tcard { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- 足跡のアニメーション */
.footsteps-svg { overflow: visible; }
.foot { fill: var(--blue); opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .35s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.footsteps.is-walking .foot { opacity: .9; transform: none; }
@media (prefers-reduced-motion: reduce) { .foot { transition: none; } }
