/* 124 もりのこキャンプ場 — K01 1画面完結。PC は1画面に5つの面を入れ、下のシール型のタブで切り替える。スマホ・JSなしは縦に並ぶ。
   色と書体は共通の13変数だけ */
:root {
  --c-bg: #ecf8e6;
  --c-bg-alt: #fffbe0;
  --c-text: #1d3b26;
  --c-sub: #3c5645;
  --c-line: #1d3b26;
  --c-accent: #7ccf6a;
  --c-accent-text: #1f6f36;
  --c-on-accent: #1d3b26;
  --c-2: #ffd84d;
  --c-3: #bfe8ff;
  --font-ja: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --font-head: "Potta One", "M PLUS Rounded 1c", sans-serif;
  --font-en: "Grandstander", "Potta One", "M PLUS Rounded 1c", sans-serif;
  --shadow: 5px 5px 0 var(--c-line);
  --ease: cubic-bezier(.3, .7, .3, 1);
  --header-h: 64px;
  --tabbar-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 1.8; overflow-x: hidden; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dd, li, summary { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

/* ===== D03 ぼかした色の雲（動きの主役。位置と大きさだけを動かす） ===== */
.clouds { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cloud { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; }
.cl1 { width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: var(--c-2); animation: drift1 16s ease-in-out infinite alternate; }
.cl2 { width: 42vw; height: 42vw; right: -10vw; top: 6vw; background: var(--c-3); animation: drift2 19s ease-in-out infinite alternate; }
.cl3 { width: 50vw; height: 40vw; left: 22vw; bottom: -16vw; background: var(--c-accent); animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(22vw, 10vw) scale(1.25); } }
@keyframes drift2 { to { transform: translate(-24vw, 12vw) scale(.8); } }
@keyframes drift3 { to { transform: translate(-26vw, -8vw) scale(1.2); } }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--c-bg) 88%, transparent); border-bottom: 3px solid var(--c-line); }
.header__inner { height: var(--header-h); padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.logo { min-height: 44px; display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; flex: none; }
.logo__mark { width: 36px; height: 36px; }
.logo__ja { font-family: var(--font-head); font-size: 19px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; background: var(--c-accent); color: var(--c-on-accent); font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; border: 3px solid var(--c-line); border-radius: 999px; box-shadow: 3px 3px 0 var(--c-line); cursor: pointer; }
.btn--lg { min-height: 52px; padding: 0 30px; }
.btn--line { background: var(--c-bg-alt); }
.header__btn { display: none; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.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: 24px; height: 3px; background: currentColor; position: relative; border-radius: 2px; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.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; right: 12px; top: 100%; width: min(calc(100% - 24px), 340px); background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: 20px; box-shadow: var(--shadow); padding: 6px 22px 10px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 700; border-bottom: 2px dotted var(--c-line); }
.spmenu__nav a:last-child { border-bottom: 0; }

.stage { position: relative; z-index: 1; }
.tabbar { display: none; }

/* ===== 面（スマホ・JSなし：縦に並ぶ） ===== */
.panel { position: relative; padding: 56px 20px; }
.en { font-family: var(--font-en); font-weight: 800; font-size: 15px; letter-spacing: .08em; color: var(--c-accent-text); margin-bottom: 8px; }
.h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(40px, 12vw, 60px); line-height: 1.25; }
.h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 7.5vw, 38px); line-height: 1.3; margin-bottom: 18px; }
.lead { margin: 16px 0 22px; color: var(--c-sub); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.panel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel__head .h2 { margin-bottom: 14px; }

/* 面0 */
.hero { padding: 36px 20px 0; }
.hero__card { position: relative; z-index: 2; background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: 28px; box-shadow: var(--shadow); padding: 26px 22px 26px; max-width: 560px; margin-bottom: 40px; }
.scene { display: block; width: calc(100% + 40px); margin: 0 -20px; height: auto; aspect-ratio: 1200 / 520; position: relative; z-index: 1; }

/* 面1：Swiper */
.sites__swiper { min-width: 0; width: 100%; margin-top: 12px; padding: 6px 4px 54px; position: relative; }
.sites__swiper:not(.swiper-initialized) { overflow-x: auto; }
.sites__swiper:not(.swiper-initialized) .swiper-wrapper { gap: 14px; }
.sites__swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 78%; }
.card { background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: 26px; box-shadow: var(--shadow); padding: 20px 20px 22px; height: auto; }
.card svg { width: 84px; height: 62px; margin-bottom: 8px; }
.card h3 { font-family: var(--font-head); font-weight: 400; font-size: 22px; line-height: 1.4; margin-bottom: 6px; }
.card p { color: var(--c-sub); margin-bottom: 10px; }
.card b { display: inline-block; padding: 2px 14px; background: var(--c-2); border: 3px solid var(--c-line); border-radius: 999px; font-size: 15px; }
.sites__swiper { --swiper-theme-color: var(--c-line); --swiper-navigation-size: 18px; --swiper-pagination-bullet-size: 12px; --swiper-pagination-bullet-inactive-color: var(--c-line); --swiper-pagination-bullet-inactive-opacity: .35; }
.sites__swiper .swiper-pagination-bullet { width: 44px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; position: relative; display: inline-block; }
.sites__swiper .swiper-pagination-bullet::after { content: ""; position: absolute; left: 16px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-line); opacity: .35; }
.sites__swiper .swiper-pagination-bullet-active::after { opacity: 1; }
.sites__swiper .swiper-pagination { bottom: 0; left: 0; width: auto; text-align: left; }
.sites__swiper .swiper-button-prev, .sites__swiper .swiper-button-next { top: auto; bottom: 8px; width: 48px; height: 48px; margin: 0; border: 3px solid var(--c-line); border-radius: 50%; background: var(--c-accent); box-shadow: 3px 3px 0 var(--c-line); color: var(--c-line); cursor: pointer; }
.sites__swiper .swiper-button-prev { left: auto; right: 64px; } .sites__swiper .swiper-button-next { left: auto; right: 4px; }
.pause { min-height: 44px; padding: 0 18px; border: 3px solid var(--c-line); border-radius: 999px; background: var(--c-bg-alt); font-weight: 700; cursor: pointer; margin-bottom: 14px; }

/* 面2：あそび（F01：写真が2つの面の境目をまたぐ） */
.bubbles { display: grid; gap: 12px; margin: 6px 0 20px; }
.bubbles li { padding: 12px 18px; background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: 22px 22px 22px 4px; }
.bubbles b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 20px; }
.plan { padding: 14px 18px; background: var(--c-2); border: 3px solid var(--c-line); border-radius: 22px; box-shadow: var(--shadow); }
.plan b { display: block; font-family: var(--font-head); font-weight: 400; font-size: 20px; }
.play__boards { position: relative; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--c-line); border-radius: 30px; overflow: hidden; min-height: 300px; }
.board { display: flex; align-items: flex-start; padding: 16px 18px; font-family: var(--font-head); font-size: 24px; line-height: 1.3; }
.board--l { background: var(--c-3); } .board--r { background: var(--c-accent); }
.seam { position: absolute; left: 50%; bottom: 18px; width: 70%; transform: translateX(-50%) rotate(-3deg); border: 3px solid var(--c-line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--c-bg-alt); }
.seam img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* 面3 */
.day { display: grid; gap: 14px; margin: 8px 0 24px; }
.day li { padding: 14px 18px; background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: 22px; }
.day span { font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--c-accent-text); }
.day h3 { font-family: var(--font-head); font-weight: 400; font-size: 20px; }
.day p { color: var(--c-sub); }
.prices { display: grid; gap: 14px; }
.price { padding: 16px 20px; background: var(--c-3); border: 3px solid var(--c-line); border-radius: 26px; box-shadow: var(--shadow); }
.price--main { background: var(--c-2); }
.price h3 { font-family: var(--font-head); font-weight: 400; font-size: 20px; }
.price b { font-family: var(--font-en); font-size: 28px; font-weight: 800; }

/* 面4 */
.visit { display: grid; gap: 40px; }
.faq details { background: var(--c-bg-alt); border: 3px solid var(--c-line); border-radius: 20px; margin-bottom: 12px; }
.faq summary { min-height: 48px; padding: 10px 18px; cursor: pointer; font-weight: 700; display: flex; align-items: center; }
.faq details p { padding: 0 18px 14px; color: var(--c-sub); }
.photo-small { margin-top: 22px; }
.photo-small img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid var(--c-line); border-radius: 22px; }
.info { border-top: 3px solid var(--c-line); }
.info div { display: grid; grid-template-columns: 4em 1fr; gap: 10px; padding: 12px 0; border-bottom: 2px dotted var(--c-line); }
.info dt { font-weight: 700; }
.fiction { margin-top: 28px; font-size: 15px; color: var(--c-sub); }

@media (min-width: 768px) {
  .sites__swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 34%; }
}

/* ===== PC：1画面完結（幅1080px以上・高さ680px以上） ===== */
@media (min-width: 1080px) and (min-height: 680px) {
  .header__btn { display: inline-flex; }
  .spmenu { display: none; }
  html.is-tabs, html.is-tabs body { height: 100%; overflow: hidden; }
  html.is-tabs body { display: grid; grid-template-rows: var(--header-h) minmax(0, 1fr) var(--tabbar-h); }
  html.is-tabs .header { position: relative; }
  html.is-tabs .stage { min-height: 0; }
  html.is-tabs .panel { position: absolute; inset: 0; padding: 28px 56px 20px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; overflow: hidden auto; }
  html.is-tabs .panel.is-on { opacity: 1; visibility: visible; transition: opacity .3s ease; }
  html.is-tabs .tabbar { display: flex; justify-content: center; align-items: center; gap: 14px; background: color-mix(in srgb, var(--c-bg) 88%, transparent); border-top: 3px solid var(--c-line); position: relative; z-index: 5; }
  .tab { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 14px; border: 3px solid var(--c-line); border-radius: 999px; background: var(--c-bg-alt); text-decoration: none; font-weight: 700; box-shadow: 3px 3px 0 var(--c-line); transition: background-color .2s ease; }
  .tab svg { width: 32px; height: 32px; flex: none; color: var(--c-line); }
  .tab[aria-current="true"] { background: var(--c-accent); }

  /* 面0 */
  html.is-tabs .hero { padding: 0; }
  .hero__card { position: absolute; left: 56px; top: 36px; margin: 0; max-width: 540px; }
  .hero .scene { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; }
  .h1 { font-size: 64px; }
  .h2 { font-size: 40px; margin-bottom: 14px; }

  /* 面1 */
  html.is-tabs .sites { display: flex; flex-direction: column; justify-content: center; }
  .sites__swiper { margin-top: 0; padding: 8px 6px 62px; }
  .card { min-height: 280px; }

  /* 面2 */
  html.is-tabs .play { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; }
  .play__boards { margin-top: 0; min-height: 420px; height: 82%; max-height: 520px; }
  .seam { bottom: 28px; width: 72%; }
  .seam img { aspect-ratio: 16 / 9; }
  .board { font-size: 28px; }

  /* 面3 */
  html.is-tabs .flow { display: flex; flex-direction: column; justify-content: center; }
  .day { grid-template-columns: repeat(4, 1fr); margin: 4px 0 22px; }
  .prices { grid-template-columns: repeat(3, 1fr); }

  /* 面4 */
  html.is-tabs .visit { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; align-content: center; }
  .photo-small img { aspect-ratio: 16 / 7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud { animation: none; }
  html.is-tabs .panel, html.is-tabs .panel.is-on, .tab { transition: none; }
}
.plan__price b.fz, .price b.fz, .card b.fz, .fz { font-family: var(--font-ja); }
