/* 050 青凪町観光協会 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f2f8fc;
  --c-navy: #0d2b4e;
  --c-blue: #1565c0;
  --c-sky: #8fd3ff;
  --c-accent-text: #0f56a3;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-card1: #cfe9fb;
  --c-card2: #ffe7a3;
  --c-card3: #c9f0dc;
  --c-card4: #ffd3c9;
  --font: "M PLUS Rounded 1c", sans-serif;
  --font-en: "Outfit", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.en { font-family: var(--font-en); font-weight: 600; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 6px; }
.en--light { color: var(--c-sky); }
.h2 { font-family: var(--font); font-weight: 800; font-size: clamp(27px, 4vw, 44px); line-height: 1.4; color: var(--c-navy); margin-bottom: 22px; }
.h2--light { color: #fff; }

/* ヘッダー（最初は空色の画面の上。JSがあるときだけ透明→スクロールで白） */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(242, 248, 252, .95); transition: background-color .4s, box-shadow .4s; box-shadow: 0 2px 12px rgba(13, 43, 78, .08); }
.header.is-top { background: transparent; box-shadow: none; }
.header__inner { display: flex; align-items: center; gap: 16px; height: 64px; padding: 0 10px 0 16px; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 800; font-size: 19px; color: var(--c-navy); text-decoration: none; white-space: nowrap; flex: none; }
.logo__mark { width: 34px; height: 34px; }
.gnav { display: none; }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 40px; }
  .logo { font-size: 22px; }
  .gnav { display: flex; gap: 8px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; color: var(--c-navy); text-decoration: none; background: rgba(255, 255, 255, .85); }
  .gnav a:hover { background: var(--c-sky); }
}
.spmenu { flex: none; margin-left: auto; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-blue); color: #fff; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 18px; height: 2.5px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -6px; } .spmenu__bar::after { top: 6px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 10px; right: 10px; top: calc(100% + 6px); background: #fff; border-radius: 24px; padding: 8px 20px; display: flex; flex-direction: column; box-shadow: 0 16px 32px rgba(13, 43, 78, .18); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; font-weight: 800; font-size: 17px; color: var(--c-navy); text-decoration: none; border-bottom: 2px solid var(--c-card1); }
.spmenu__nav a:last-child { border-bottom: 0; }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出① A01：のぞき窓 ===== */
.hero { background: var(--c-sky); }
.hero__stage { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.hero__deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__window { position: absolute; inset: 0; background: var(--c-blue); }
.hero__window img { width: 100%; height: 100%; object-fit: cover; }
.hero__window::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 43, 78, 0) 40%, rgba(13, 43, 78, .6) 100%); }
.hero__ring { display: none; }
.hero__intro { display: none; }
.hero__copy { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 56px; color: #fff; text-align: center; }
.hero__title { font-weight: 800; font-size: clamp(38px, 7vw, 88px); line-height: 1.25; text-shadow: 0 3px 24px rgba(13, 43, 78, .45); }
.hero__lead { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 17px; color: var(--c-navy); background: #fff; border-radius: 999px; padding: 6px 22px; }
/* 動く版：最初は小さな丸いのぞき窓 */
.is-motion .hero__ring { display: block; position: absolute; z-index: 2; left: 50%; top: 50%; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 0 0 8px var(--c-blue), 0 20px 40px rgba(13, 43, 78, .25); pointer-events: none; }
.is-motion .hero__intro { display: block; position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 18px; color: var(--c-navy); background: #fff; border-radius: 999px; padding: 4px 20px; white-space: nowrap; }

/* ===== 青凪町って？ ===== */
.about { padding: 96px 20px; }
.about__inner { max-width: 880px; margin: 0 auto; text-align: center; }
.about__inner > p { text-align: left; }
.about .en { text-align: center; }
.nums { display: grid; gap: 12px; margin-top: 36px; }
.nums li { display: flex; align-items: baseline; justify-content: center; gap: 12px; background: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 700; color: var(--c-navy); border: 3px solid var(--c-card1); }
.nums__n { font-family: var(--font-en); font-size: 36px; line-height: 1; color: var(--c-accent-text); }
.nums__n small { font-family: var(--font); font-size: 16px; margin-left: 2px; }
@media (min-width: 768px) { .nums { grid-template-columns: repeat(3, 1fr); } .nums li { flex-direction: column; align-items: center; border-radius: 28px; padding: 22px 12px; } }

/* ===== 演出② C04：青凪町の一年 ===== */
.year { background: var(--c-navy); color: #e7f3fc; padding: 88px 0 40px; overflow: hidden; }
.year__head { padding: 0 20px; max-width: 1200px; margin: 0 auto 24px; }
.year__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.year__track { display: flex; gap: 16px; padding: 0 20px; width: max-content; }
.season { position: relative; width: 84vw; max-width: 760px; height: 62svh; min-height: 420px; border-radius: 28px; overflow: hidden; scroll-snap-align: center; background: var(--c-blue); }
.season img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.season__card { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255, 255, 255, .95); color: var(--c-text); border-radius: 20px; padding: 18px 20px; }
.season__when { font-weight: 800; font-size: 15px; color: var(--c-accent-text); }
.season__card h3 { font-weight: 800; font-size: 22px; color: var(--c-navy); line-height: 1.4; margin: 2px 0 4px; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; max-width: 1200px; margin: 20px auto 0; padding: 0 20px; }
.months li { text-align: center; font-weight: 700; font-size: 15px; color: #e7f3fc; padding: 6px 0; border-radius: 999px; background: rgba(255, 255, 255, .08); transition: background-color .3s, color .3s; }
.months li.is-on, .months li.is-season { background: var(--c-sky); color: var(--c-navy); }
@media (max-width: 599px) {
  .months { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1080px) {
  .year { height: 100vh; padding: 96px 0 32px; display: flex; flex-direction: column; justify-content: center; }
  .year__head { padding: 0 48px; max-width: none; width: 100%; }
  .year__track { padding: 0 48px; gap: 32px; }
  .season { width: 60vw; height: 60vh; }
  .season__card { left: auto; right: 24px; bottom: 24px; width: 380px; padding: 24px 28px; }
  .months { max-width: none; padding: 0 48px; width: 100%; }
}
.is-motion-pc .year__viewport { overflow: visible; scroll-snap-type: none; }
.is-motion-pc .months li.is-season { background: rgba(255, 255, 255, .08); color: #e7f3fc; }
.is-motion-pc .months li.is-on { background: var(--c-sky); color: var(--c-navy); }

/* ===== 演出③ B05：積み重なる色のカード（CSSだけ） ===== */
.course { padding: 96px 20px 120px; }
.course__head { max-width: 1100px; margin: 0 auto 32px; }
.stack { max-width: 1100px; margin: 0 auto; display: grid; gap: 24px; }
.card { position: sticky; top: calc(80px + var(--i, 0) * 14px); display: grid; gap: 18px; padding: 26px 22px; border-radius: 32px; background: var(--card); box-shadow: 0 -10px 30px rgba(13, 43, 78, .12); min-height: 72vh; align-content: start; }
.card:nth-child(1) { --i: 0; } .card:nth-child(2) { --i: 1; } .card:nth-child(3) { --i: 2; } .card:nth-child(4) { --i: 3; }
.card--sky { --card: var(--c-card1); }
.card--egg { --card: var(--c-card2); }
.card--leaf { --card: var(--c-card3); }
.card--coral { --card: var(--c-card4); }
.card__no { font-family: var(--font-en); font-weight: 600; font-size: 16px; letter-spacing: .08em; color: var(--c-navy); }
.card__no span { font-family: var(--font); font-weight: 800; background: var(--c-navy); color: #fff; border-radius: 999px; padding: 2px 12px; margin-left: 4px; }
.card h3 { font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.35; color: var(--c-navy); margin: 8px 0 14px; }
.card__steps { display: flex; flex-wrap: wrap; gap: 8px 0; margin-bottom: 14px; }
.card__steps li { font-weight: 700; color: var(--c-navy); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 2px 14px; }
.card__steps li + li::before { content: "→"; margin: 0 6px 0 -6px; color: var(--c-navy); }
.card__steps li + li { margin-left: 10px; }
.card__photo { border-radius: 24px; overflow: hidden; background: rgba(255, 255, 255, .6); }
.card__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__photo--icon { display: grid; place-items: center; aspect-ratio: 16 / 10; }
.card__photo--icon svg { width: 36%; }
@media (min-width: 900px) {
  .course { padding: 140px 48px 160px; }
  .card { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; padding: 44px; min-height: 64vh; top: calc(110px + var(--i, 0) * 18px); }
}

/* ===== 食べる・見る ===== */
.eat { padding: 0 20px 96px; }
.eat__inner { max-width: 1100px; margin: 0 auto; }
.eat__list { display: grid; gap: 24px; }
.spot figure { border-radius: 50%; overflow: hidden; aspect-ratio: 1; width: min(70vw, 320px); margin: 0 auto 16px; border: 8px solid #fff; box-shadow: 0 0 0 4px var(--c-sky); }
.spot img { width: 100%; height: 100%; object-fit: cover; }
.spot h3 { font-weight: 800; font-size: 22px; color: var(--c-navy); text-align: center; }
.spot p { max-width: 26em; margin: 4px auto 0; }
@media (min-width: 768px) { .eat__list { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ===== 観光案内所 ===== */
.info-sec { background: var(--c-blue); color: #fff; padding: 96px 20px; border-radius: 40px 40px 0 0; }
.info-sec__inner { max-width: 880px; margin: 0 auto; }
.info { margin-top: 28px; background: #fff; color: var(--c-text); border-radius: 24px; padding: 8px 22px; }
.info div { display: grid; grid-template-columns: 3.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 2px solid var(--c-card1); }
.info div:last-child { border-bottom: 0; }
.info dt { font-weight: 800; color: var(--c-navy); }

/* ===== フッター ===== */
.footer { background: var(--c-navy); color: #e7f3fc; padding: 56px 20px 32px; text-align: center; font-size: 15px; }
.footer__logo { font-weight: 800; font-size: 22px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 22px; margin: 16px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
