/* =========================================================
   未来九十九里浜 サイト全体の見た目（このファイル 1 つだけ）
   デザインの元: Figma「動きつき（伊賀さん確認用）」（PC 1366 幅）。スマホ（〜768px）はこのファイルの下の方
   色:   --bg 地の色 / --beige 帯の色 / --brown フッター・ボタン / --sand 予約ボタン / --ink 文字
   文字: 日本語 Shippori Mincho、英字 Montserrat
   ========================================================= */
:root {
  --bg: #f9f7f4;
  --beige: #ebe7db;
  --brown: #9c9481;
  --sand: #cbc3ae;
  --ink: #333;
  --line: #c3c3c3;
  --ja: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --en: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(20px, 7.3vw, 100px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ja); font-weight: 500; font-size: 15px; line-height: 1.8; letter-spacing: .12em; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, dl, dd, p, h1, h2 { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1366px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.en { font-family: var(--en); font-weight: 500; letter-spacing: .08em; }

/* 見出し（小さな英字ラベル＋明朝の見出し） */
.label { display: flex; align-items: center; gap: 12px; font-family: var(--en); font-size: 12px; letter-spacing: .08em; line-height: 1; margin-bottom: 18px; }
.label::before { content: ''; width: 7px; height: 1px; background: currentColor; }
.h2 { font-size: 25px; font-weight: 500; letter-spacing: .08em; line-height: 1.4; }
.text { line-height: 2.67; letter-spacing: .12em; text-align: justify; }

/* ---------- ヘッダー ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 24px; color: #fff; transition: background .4s, color .4s, padding .4s; }
.hd.is-scrolled { background: rgba(249, 247, 244, .94); color: var(--ink); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; gap: 6px; }
.logo-ja { font-size: 16px; letter-spacing: .25em; }
.logo-en { font-family: var(--en); font-size: 8px; letter-spacing: .12em; }
.hd-nav { display: flex; align-items: center; gap: 48px; }
.hd-nav ul { display: flex; gap: 40px; }
.hd-nav ul a, .ft-nav ul a { display: flex; flex-direction: column; align-items: center; gap: 6px; line-height: 1; transition: opacity .3s; }
.hd-nav ul a:hover, .ft-nav ul a:hover { opacity: .6; }
.hd-nav .ja, .ft-nav .ja, .btn-reserve .ja { font-size: 9px; letter-spacing: .2em; }
.hd-nav .en, .ft-nav .en, .btn-reserve .en { font-size: 12px; }
.btn-reserve { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 155px; height: 40px; border-radius: 100px; background: var(--sand); color: #fff; line-height: 1; transition: background .3s; }
.btn-reserve:hover { background: var(--brown); }
.hd-menu { display: none; }

/* ---------- メインビジュアル（写真がゆっくりズームしながら切り替わる） ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; max-height: 1000px; overflow: hidden; background: #222; }
.hero-slides, .hero-img { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-img:first-child { opacity: 1; }
.js .hero-img { animation: hero 16s linear infinite; }
.js .hero-img:nth-child(1) { animation-delay: -1.5s; }
.js .hero-img:nth-child(2) { animation-delay: 2.5s; }
.js .hero-img:nth-child(3) { animation-delay: 6.5s; }
.js .hero-img:nth-child(4) { animation-delay: 10.5s; }
/* 1 枚 4 秒：1.5 秒で現れ、ズームを続けながら 1.5 秒で次の写真と入れ替わる（4 枚で 16 秒） */
@keyframes hero {
  0% { opacity: 0; transform: scale(1); animation-timing-function: ease-in-out; }
  9.4% { opacity: 1; animation-timing-function: linear; }
  25% { opacity: 1; animation-timing-function: ease-in-out; }
  34.4% { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1.09); }
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, .25)); pointer-events: none; }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font-family: var(--en); font-size: 12px; letter-spacing: .08em; }
.hero-scroll::after { content: ''; width: 1px; height: 46px; background: linear-gradient(#fff 50%, rgba(255, 255, 255, .3) 50%); background-size: 1px 200%; animation: scroll 2s ease-in-out infinite; }
@keyframes scroll { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 497px) minmax(0, 452px); justify-content: center; align-items: center; gap: clamp(40px, 12.5vw, 173px); padding: 158px var(--pad) 76px; background: #f1f1f1 url(/assets/img/paper.webp) center / cover; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; align-items: start; }
.about-photo { width: 100%; aspect-ratio: 244 / 307; object-fit: cover; }
.about-photo.p2, .about-photo.p4 { margin-top: 69px; }
.about-photo.p3 { margin-top: -60px; }
.about-photo.p4 { margin-top: 8px; }
.about-body .h2 { margin-bottom: 50px; }

/* ---------- 見出し＋文の帯（お部屋・ギャラリー） ---------- */
.sec-head { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 22px; align-items: start; }
.sec-head .text { max-width: 805px; }

/* ---------- 横にゆっくり流れる写真（お部屋・ギャラリー） ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.js .marquee-track { animation: marquee var(--speed, 30s) linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee li img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- お部屋 ---------- */
.room { background: var(--beige); padding: 177px 0 0; }
.room .sec-head { margin-bottom: 134px; }
.room-marquee li { width: 420px; height: 550px; margin-right: 9px; }

/* ---------- 施設情報 ---------- */
.info { display: grid; grid-template-columns: minmax(0, 495px) minmax(0, 564px); justify-content: space-between; gap: 48px; padding-top: 183px; padding-bottom: 183px; }
.info-head .h2 { margin-bottom: 47px; }
.map { aspect-ratio: 495 / 330; background: #ddd; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.info-list { border-top: 0; }
.info-row { border-bottom: 1px solid var(--line); padding: 0 0 20px; margin-bottom: 23px; }
.info-row dt { display: flex; align-items: baseline; gap: 6px; line-height: 1; margin-bottom: 14px; }
.info-row dt .en { font-size: 12px; }
.info-row dt .ja { font-size: 9px; letter-spacing: .2em; }
.info-row dd { font-size: 15px; line-height: 1.6; letter-spacing: .12em; }
.info-row dd a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 注意事項 ---------- */
.precautions { background: var(--beige); padding: 142px 0 143px; }
.precautions-in { display: grid; grid-template-columns: 240px minmax(0, 917px); justify-content: space-between; gap: 32px; }
.pre-list li { position: relative; padding: 0 0 18px 53px; margin-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; letter-spacing: .1em; }
.pre-list li:last-child { border-bottom: 0; margin-bottom: 0; }
.pre-list li::before { content: ''; position: absolute; left: 10px; top: .45em; width: 10px; height: 10px; background: var(--ink); }

/* ---------- アクティビティ（写真が 1 枚ずつ下からふわっと出る） ---------- */
.activity { position: relative; height: 1174px; padding-top: 0; padding-bottom: 0; margin-top: 125px; }
.activity-body { position: absolute; left: 45.9%; top: 83px; width: 620px; max-width: 50%; }
.activity-body .h2 { margin-bottom: 47px; }
.activity-photos { position: absolute; inset: 0; pointer-events: none; }
.act-photo { position: absolute; width: 22.7%; aspect-ratio: 310 / 360; object-fit: cover; pointer-events: auto; }
.act-photo.a1 { left: 1.8%; top: 0; }
.act-photo.a2 { left: 13.6%; top: 194px; }
.act-photo.a3 { left: 7.3%; top: 754px; }
.act-photo.a4 { left: 75.5%; top: 452px; }
.act-photo.a5 { left: 50.4%; top: 547px; }

/* ---------- ギャラリー ---------- */
.gallery { position: relative; padding: 230px 0 180px; isolation: isolate; }
.gallery::before { content: ''; position: absolute; z-index: -1; inset: 40px -60px 0; background: var(--beige); filter: blur(30px); }
.gallery .sec-head { grid-template-columns: 396px minmax(0, 671px); margin-bottom: 85px; }
.gallery-marquee li { width: 290px; height: 325px; margin-right: 10px; }

/* ---------- ご宿泊予約 ---------- */
.reserve { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 600px); justify-content: space-between; gap: 40px; padding-top: 140px; padding-bottom: 150px; max-width: 1272px; }
.reserve .h2 { margin-bottom: 30px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 9px; }
.field-label { display: flex; align-items: baseline; gap: 6px; line-height: 1; }
.field-label .en { font-size: 12px; }
.field-label .ja { font-size: 9px; letter-spacing: .2em; }
.req { color: #f00; font-size: 13px; }
.field input, .field textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; letter-spacing: .05em; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sand); outline-offset: 1px; }
.field input::placeholder { color: #aaa; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { justify-self: center; width: 155px; height: 40px; margin-top: 10px; border: 0; border-radius: 100px; background: var(--brown); color: #fff; font: inherit; font-size: 12px; letter-spacing: .2em; cursor: pointer; transition: opacity .3s; }
.btn-submit:hover { opacity: .8; }
.btn-submit:disabled { opacity: .5; cursor: wait; }
.form-status { text-align: center; font-size: 14px; min-height: 1em; }
.form-status.is-error { color: #c00; }
.form.is-sent .field, .form.is-sent .btn-submit { display: none; }

/* ---------- フッター ---------- */
.ft { background: var(--brown); color: #fff; padding: 77px 0 17px; }
.ft-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.ft-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 26px; }
.ft-nav ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 30px 40px; }
.ft-copy { margin-top: 20px; text-align: center; font-family: var(--en); font-size: 6px; letter-spacing: .08em; font-weight: 400; }

/* ---------- 現れる動き（JS が使えるときだけ。画面に入ったら is-in が付く） ---------- */
.js [data-reveal].about-photos { opacity: 0; transform: translateY(60px); transition: opacity 1.2s ease-out, transform 1.2s ease-out; }
.js [data-reveal].about-photos.is-in { opacity: 1; transform: none; }
.js [data-reveal] .act-photo { opacity: 0; transform: translateY(60px); transition: opacity .9s ease-out, transform .9s ease-out; transition-delay: calc(var(--i) * .5s); }
.js [data-reveal].is-in .act-photo { opacity: 1; transform: none; }

/* 動きを減らす設定の人には、動きを止めて最初から見せる */
@media (prefers-reduced-motion: reduce) {
  .js .hero-img, .js .marquee-track, .hero-scroll::after { animation: none; }
  .marquee { overflow-x: auto; }
  .js [data-reveal].about-photos, .js [data-reveal] .act-photo { opacity: 1; transform: none; transition: none; }
}

/* ---------- タブレット（〜1100px） ---------- */
@media (max-width: 1100px) {
  .hd-nav { gap: 24px; }
  .hd-nav ul { gap: 20px; }
  .activity { height: auto; margin-top: 100px; padding-bottom: 60px; }
  .activity-body { position: static; width: auto; max-width: 620px; margin: 0 0 50px auto; }
  .activity-photos { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; pointer-events: auto; }
  .act-photo { position: static; width: 100%; }
  .act-photo:nth-child(even) { margin-top: 40px; }
}

/* ---------- スマホ（〜900px：メニューを 3 本線に） ---------- */
@media (max-width: 900px) {
  .hd { padding: 14px 16px; }
  .hd-menu { display: grid; place-content: center; gap: 7px; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; z-index: 2; }
  .hd-menu span:not(.sr) { display: block; width: 26px; height: 1px; background: currentColor; transition: transform .3s; }
  .hd.is-open .hd-menu span:nth-child(1) { transform: translateY(4px) rotate(30deg); }
  .hd.is-open .hd-menu span:nth-child(2) { transform: translateY(-4px) rotate(-30deg); }
  .hd-logo { position: relative; z-index: 2; }
  .hd-nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 40px; background: var(--bg); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .hd.is-open { color: var(--ink); }
  .hd.is-open .hd-nav { opacity: 1; visibility: visible; }
  .hd-nav ul { flex-direction: column; align-items: center; gap: 28px; }
  .hd-nav .en { font-size: 14px; }
  .hd-nav .ja { font-size: 11px; }
}

@media (max-width: 768px) {
  body { font-size: 14px; }
  .pc { display: none; }
  .h2 { font-size: 21px; }
  .text { line-height: 2.2; }
  .hero { height: 78svh; min-height: 460px; }
  .about { grid-template-columns: 1fr; gap: 56px; padding: 88px 20px 72px; }
  .about-photos { order: 2; max-width: 420px; width: 100%; margin: 0 auto; }
  .about-body .h2 { margin-bottom: 26px; }
  .sec-head, .gallery .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .room { padding-top: 88px; }
  .room .sec-head { margin-bottom: 48px; }
  .room-marquee li { width: 240px; height: 314px; margin-right: 6px; }
  .info { grid-template-columns: 1fr; gap: 40px; padding-top: 88px; padding-bottom: 88px; }
  .info-head .h2 { margin-bottom: 28px; }
  .precautions { padding: 80px 0; }
  .precautions-in { grid-template-columns: 1fr; gap: 28px; }
  .pre-list li { font-size: 14px; line-height: 1.8; padding-left: 26px; }
  .pre-list li::before { left: 2px; top: .7em; width: 8px; height: 8px; }
  .activity { margin-top: 80px; }
  .activity-body { margin-bottom: 36px; }
  .activity-body .h2 { margin-bottom: 26px; }
  .activity-photos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .act-photo:nth-child(even) { margin-top: 28px; }
  .act-photo.a5 { grid-column: 1 / -1; aspect-ratio: 16 / 10; margin-top: 0; }
  .gallery { padding: 90px 0 80px; }
  .gallery .sec-head { margin-bottom: 40px; }
  .gallery-marquee li { width: 190px; height: 213px; margin-right: 6px; }
  .reserve { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 90px; }
  .reserve .h2 { margin-bottom: 18px; }
  .ft { padding-top: 48px; }
  .ft-in { flex-direction: column; align-items: center; gap: 36px; }
  .ft-nav { align-items: center; }
  .ft-nav ul { justify-content: center; display: grid; grid-template-columns: repeat(3, auto); gap: 24px 28px; }
  .ft-copy { font-size: 8px; margin-top: 36px; }
}
