/* 小樽わくわくフェス ── 色・余白・文字はここの変数で管理 */
:root {
  --bg: #fffaf1;          /* アイボリー */
  --bg-tint: #f2fbf7;     /* ミントの薄い面 */
  --card: #ffffff;
  --ink: #2b2f33;         /* チャコール */
  --ink-soft: #545b62;
  --mint: #2fb79a;
  --mint-deep: #0f7a64;   /* 白文字が読める濃さ（4.5:1 以上） */
  --mint-pale: #d6f3ea;
  --yellow: #ffd45c;
  --yellow-pale: #fff2c7;
  --coral: #ff7a59;
  --coral-deep: #c2410c;
  --line: #e9e3d6;
  --shadow: 0 2px 4px rgba(43,47,51,.05), 0 8px 24px rgba(43,47,51,.07);
  --r: 18px;
  --r-sm: 12px;
  --gap: 16px;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --dock-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-deep); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.notice { background: var(--coral-deep); color: #fff; text-align: center; padding: 12px 20px; font-weight: 700; }

/* ── ① ファーストビュー ─────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 36px;
  background:
    radial-gradient(120% 70% at 100% 0%, var(--mint-pale) 0%, rgba(214,243,234,0) 60%),
    radial-gradient(90% 60% at 0% 100%, var(--yellow-pale) 0%, rgba(255,242,199,0) 65%),
    var(--bg);
}
.hero__deco span { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__deco span:nth-child(1) { width: 140px; height: 140px; right: -40px; top: 70px; background: var(--yellow); opacity: .55; }
.hero__deco span:nth-child(2) { width: 56px; height: 56px; right: 70px; top: 26px; background: var(--coral); opacity: .35; }
.hero__deco span:nth-child(3) { width: 220px; height: 220px; left: -120px; bottom: -110px; border: 18px solid var(--mint); opacity: .18; }
.hero .wrap { position: relative; }

.hero__brand { margin: 0 0 14px; font-weight: 800; letter-spacing: .16em; font-size: 14px; color: var(--mint-deep); }
.hero__brand img { height: 32px; width: auto; }
.hero__live {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px;
  background: var(--coral-deep); color: #fff; font-weight: 800; font-size: 15px;
  padding: 4px 14px; border-radius: 999px;
}
.hero__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hero__live.is-ended { background: var(--ink-soft); }
.hero__live.is-ended::before { display: none; }

.hero__title {
  margin: 0;
  font-size: clamp(30px, 9.2vw, 60px);
  white-space: nowrap;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .02em;
}
.hero__theme {
  display: inline-block; margin: 12px 0 0;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 15px; line-height: 1.5;
  padding: 4px 12px; border-radius: 8px; transform: rotate(-1.5deg);
}

.facts { margin: 20px 0 0; display: grid; gap: 8px; }
.fact {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 14px;
}
.fact dt { color: var(--mint-deep); line-height: 1; padding-top: 4px; }
.fact dd { margin: 0; line-height: 1.5; }
.fact strong { font-size: 19px; font-weight: 800; }
.fact dd span { color: var(--ink-soft); font-size: 15px; white-space: nowrap; }

.hero__copy { margin: 22px 0 0; font-size: 20px; font-weight: 800; line-height: 1.5; }
.hero__copy span { display: inline-block; }
.hero__lead { margin: 4px 0 0; color: var(--ink-soft); }

.hero__cta { margin-top: 22px; display: grid; gap: 10px; }
@media (min-width: 560px) { .hero__cta { grid-template-columns: 1fr 1fr; } }

/* ── ボタン ─────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 12px 20px;
  border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--mint-deep); color: #fff; box-shadow: 0 6px 16px rgba(15,122,100,.28); }
.btn--primary:hover { background: #0b6855; }
.btn--ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn--block { display: flex; width: 100%; }

/* ── セクション共通 ─────────────────── */
.sec { padding: 44px 0; }
.sec--tint { background: var(--bg-tint); }
.sec__h { margin: 0 0 20px; font-size: 24px; line-height: 1.4; font-weight: 900; }
.sec__en { display: block; font-size: 12px; letter-spacing: .24em; color: var(--coral-deep); font-weight: 800; }

.tag-tentative {
  display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 6px;
  background: var(--yellow-pale); color: #7a5300; border: 1px dashed #c99a1d;
  font-size: 12px; font-weight: 700; line-height: 1.8; vertical-align: middle;
}

/* ── ② 楽しみ方 ─────────────────── */
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hl li {
  background: var(--card); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px 14px; display: grid; gap: 6px; align-content: start;
}
.hl .bubble { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.hl .bubble .ic { width: 26px; height: 26px; }
.hl h3 { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
.hl p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.c-food   { background: var(--yellow-pale); color: #9a6a00; }
.c-craft  { background: #ffe4dc; color: var(--coral-deep); }
.c-family { background: var(--mint-pale); color: var(--mint-deep); }
.c-move   { background: #e3efff; color: #1d5fbf; }
.c-game   { background: #f1e6ff; color: #6b3fb0; }
.c-star   { background: var(--yellow-pale); color: #9a6a00; }

/* ── ③ 出店者 ─────────────────── */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 600px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card__img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--bg-tint); }
.card__ph { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.card__ph .ic { width: 48px; height: 48px; }
.card__body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.card__genre { justify-self: start; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.card h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* ── ④ アクセス ─────────────────── */
.access { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; }
.access__place { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 18px; line-height: 1.5; }
.access__place .ic { color: var(--coral-deep); margin-top: 3px; }
.access__spot { display: block; font-size: 16px; font-weight: 700; color: var(--mint-deep); }
.access__pending { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--yellow-pale); font-size: 15px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; }
.steps li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--mint-deep); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; margin-top: 2px;
}
.floormap { margin: 0; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }

/* ── ⑤ KINJO ─────────────────── */
.about { display: grid; gap: 12px; }
.about__logo { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: .14em; color: var(--mint-deep); }
.about__logo img { height: 44px; width: auto; }
.about__text { margin: 0; }
.links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 18px;
  border-radius: 999px; background: #fff; border: 2px solid var(--mint-deep); font-weight: 700; text-decoration: none;
}
.links--small a { min-height: 44px; padding: 8px 14px; font-size: 14px; border-width: 1px; }

/* ── ⑥ フッター ─────────────────── */
.foot { background: var(--ink); color: #f3f1ec; padding: 32px 0 28px; font-size: 14px; }
.foot__name { margin: 0; font-weight: 900; font-size: 18px; letter-spacing: .14em; }
.foot__credits { list-style: none; margin: 8px 0 0; padding: 0; }
.foot .links { margin-top: 12px; }
.foot .links a { background: transparent; color: #fff; border-color: #8c949b; }
.foot__note { margin: 14px 0 0; color: #c9c5bd; font-size: 13px; }

/* ── 下に固定する小さいボタン ─────────────────── */
.dock {
  position: fixed; z-index: 20;
  left: 50%; bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--coral-deep); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: opacity .2s ease, transform .2s ease;
}
.dock.is-away { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

.preview-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: #7a5300; color: #fff; font-size: 13px; text-align: center; padding: 6px 12px;
}
body.is-preview { padding-top: 32px; }

/* PC・タブレット */
@media (min-width: 768px) {
  .hero { padding: 56px 0 64px; }
  .hl { grid-template-columns: repeat(4, 1fr); }
  .sec { padding: 64px 0; }
}

/* プライバシーポリシー */
.policy { font-size: 16px; line-height: 1.85; }
.policy h2 { margin: 32px 0 8px; font-size: 18px; font-weight: 900; }
.policy ul { padding-left: 1.3em; }
.policy__back { margin-top: 36px; }
.foot__policy { margin: 12px 0 0; }
.foot__policy a { color: #fff; }
.policy h2.policy__part { margin: 8px 0 16px; padding-bottom: 8px; font-size: 22px; border-bottom: 3px solid var(--mint-deep); }
.policy h2.policy__part#privacy { margin-top: 56px; }
.policy h3 { margin: 28px 0 6px; font-size: 17px; font-weight: 900; }
.policy__toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-left: 1.2em; }
.policy__done { margin-top: 48px; padding: 20px; background: #fff; border: 3px solid var(--coral-deep); border-radius: 16px; }
.policy__done p { margin: 0 0 8px; }
.policy__done-h { font-weight: 900; font-size: 18px; color: var(--coral-deep); }
.policy__done-s { font-size: 14px; color: var(--ink-soft); }
.hero__brandlink { color: inherit; text-decoration: none; }
.about__more { margin: 16px 0 0; font-weight: 700; }
.hero__brandlink, .about__more a, .foot__policy a { display: inline-flex; align-items: center; min-height: 44px; }
.hero__brand { margin-bottom: 4px; }
