/* ============================================
   MOLSHIKA TOUR ハブ — ポップデザイン(2026-08)
   モック準拠: 白×ライトグレー地、黒の極太文字、
   ライムのCTA、地域色は既存(葛飾橙/小山緑/草加茶)
   ============================================ */

:root {
  --paper: #f1f1ee;
  --ink: #151515;
  --line: #e3e3de;
  --muted: #7a7a74;
  --lime: #d9e51c;
  --lime-deep: #c2cf00;
  --katsushika: #ff6a00;
  --oyama: #2fa846;
  --soka: #b8823f;
  --ichikawa: #2b7bd4;
  --radius-panel: 28px;
  --radius-card: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Noto Sans JP", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.oswald { font-family: Oswald, "Noto Sans JP", sans-serif; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.hub-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1.5px solid var(--line);
}
.hub-header-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px;
}
.hub-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; flex-shrink: 0; }
.hub-logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  border: 2.5px solid var(--ink);
  display: grid; place-items: center;
  background: #fff; overflow: hidden;
}
.hub-logo-mark img { width: 34px; height: 34px; object-fit: contain; }
.hub-logo-text { font-size: 15px; line-height: 1.15; letter-spacing: .02em; }
.hub-nav { display: flex; gap: 4px; margin-left: auto; }
.hub-nav a {
  white-space: nowrap;
  font-size: 13.5px; font-weight: 700; padding: 8px 13px; border-radius: 999px;
  transition: background .15s;
}
.hub-nav a:hover { background: #f0f0eb; }
.hub-cta-btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--lime); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 999px;
  font-weight: 900; font-size: 14px; padding: 9px 20px;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.hub-cta-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.hub-nav-toggle { display: none; flex-shrink: 0; }

/* ---------- ヒーロー ---------- */
.hub-hero {
  position: relative; text-align: center;
  padding: 84px 20px 72px; overflow: hidden;
}
@media (min-width: 951px) { .hub-hero { min-height: 560px; display: flex; flex-direction: column; justify-content: center; align-items: center; } }
.hub-hero-catch {
  font-size: 17px; font-weight: 900; letter-spacing: .22em; margin-bottom: 14px;
}
.hub-hero-title {
  font-size: clamp(56px, 10vw, 118px);
  font-weight: 900; line-height: .98; letter-spacing: .01em;
}
.hub-hero-ribbon {
  display: inline-block; margin-top: 26px;
  background: #fff; border: 2px solid var(--ink); border-radius: 6px;
  padding: 8px 26px; font-weight: 900; font-size: 15.5px;
  transform: rotate(-1.2deg);
  box-shadow: 3px 3px 0 rgba(21,21,21,.12);
}
.btn-lime, .btn-ink {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; font-weight: 900; font-size: 15px;
  padding: 14px 30px; border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 3px 0 rgba(21,21,21,.35); }
.btn-lime:hover, .btn-ink:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn-arrow {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 900;
}
.btn-lime .btn-arrow { background: var(--ink); color: var(--lime); }
.btn-ink .btn-arrow { background: #fff; color: var(--ink); }

/* キャラ配置(左右4体ずつ・向かい合わせ。画像が無い間は自動で消える) */
.hub-char { position: absolute; width: clamp(96px, 12vw, 160px); pointer-events: none; }
.hub-char img { width: 100%; }
/* 左列(反転して右向き・"("のカーブ配置: 中段ほど外側へ) */
.char-l1 { top: 3%;  left: 8%;   transform: scaleX(-1) rotate(6deg); }
.char-l2 { top: 27%; left: 1%;   transform: scaleX(-1) rotate(-5deg); }
.char-l3 { top: 51%; left: 1%;   transform: scaleX(-1) rotate(4deg); }
.char-l4 { top: 74%; left: 8%;   transform: scaleX(-1) rotate(-6deg); }
/* 右列(")"のカーブ配置) */
.char-r1 { top: 3%;  right: 8%;  transform: rotate(-6deg); }
.char-r2 { top: 27%; right: 1%;  transform: rotate(5deg); }
.char-r3 { top: 51%; right: 1%;  transform: rotate(-4deg); }
.char-r4 { top: 74%; right: 8%;  transform: rotate(6deg); }
@media (max-width: 1120px) {
  .char-l2, .char-l3, .char-r2, .char-r3 { display: none; }
}

/* キャラ整列パレード(950px以下のヒーローで左右配置の代わりに表示) */
.hub-char-parade { display: none; }
@media (max-width: 950px) {
  .hub-char { display: none !important; }
  .hub-char-parade {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 2px; margin-top: 34px; flex-wrap: nowrap;
  }
  .hub-char-parade img { width: clamp(38px, 11vw, 52px); }
  .hub-char-parade img:nth-child(odd) { transform: scaleX(-1) rotate(-5deg); }
  .hub-char-parade img:nth-child(even) { transform: scaleX(-1) rotate(5deg); }
  .hub-char-parade img:nth-child(n+5) { transform: rotate(5deg); }
  .hub-char-parade img:nth-child(6), .hub-char-parade img:nth-child(8) { transform: rotate(-5deg); }
}

/* 紙吹雪 */
.confetti { position: absolute; border-radius: 3px; opacity: .85; pointer-events: none; }
.cf-1 { width: 10px; height: 10px; background: #ff8fb5; top: 18%; left: 16%; transform: rotate(25deg); }
.cf-2 { width: 8px;  height: 8px;  background: #58b7e8; top: 30%; right: 18%; transform: rotate(-15deg); }
.cf-3 { width: 12px; height: 6px;  background: var(--lime-deep); top: 12%; right: 38%; transform: rotate(40deg); }
.cf-4 { width: 8px;  height: 8px;  background: #b28ae8; bottom: 20%; left: 30%; transform: rotate(12deg); }
.cf-5 { width: 10px; height: 5px;  background: var(--katsushika); bottom: 34%; right: 30%; transform: rotate(-30deg); }
.cf-6 { width: 7px;  height: 7px;  background: var(--oyama); top: 44%; left: 8%; transform: rotate(18deg); }

/* ---------- パネル共通 ---------- */
.hub-panel {
  background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--radius-panel);
  max-width: 1160px; margin: 0 auto 26px; padding: 38px clamp(20px, 4vw, 44px);
}
.panel-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.panel-kicker {
  display: block; font-family: Oswald, sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .18em; color: var(--muted); margin-bottom: 4px;
}
.panel-title { font-size: clamp(24px, 3.4vw, 30px); font-weight: 900; line-height: 1.25; }
.panel-more {
  margin-left: auto; font-size: 13.5px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 2px solid var(--ink); padding-bottom: 2px;
}

/* ---------- 次の大会 ---------- */
.next-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
.next-card {
  border: 2px solid var(--ink); border-radius: var(--radius-card);
  background: #fff; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.next-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(21,21,21,.08); }
.next-photo { position: relative; aspect-ratio: 16 / 9; background: #ddd; } /* サムネ(800x450)を切らずに全体表示 */
.next-photo img { width: 100%; height: 100%; object-fit: cover; }
.next-photo-alt {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: Oswald, sans-serif; font-size: 30px; font-weight: 600;
  letter-spacing: .2em; color: #fff;
}
.next-no {
  position: absolute; top: 10px; left: 10px;
  background: var(--rc); color: #fff;
  border: 2px solid var(--ink);
  font-size: 12px; font-weight: 900; border-radius: 999px; padding: 3px 12px;
}
.next-kind {
  position: absolute; top: 10px; right: 10px;
  background: var(--ink); color: #fff;
  border: 2px solid var(--ink);
  font-size: 12px; font-weight: 900; border-radius: 999px; padding: 3px 12px;
}
.next-kind.is-enjoy { background: var(--lime); color: var(--ink); }
.next-body { padding: 16px 18px 14px; flex: 1; }
.next-date { font-family: Oswald, sans-serif; font-size: 30px; font-weight: 600; line-height: 1; }
.next-date em { font-style: normal; font-size: 14px; margin-left: 6px; font-weight: 600; }
.next-date em.wd-sat { color: #2b6fd4; }
.next-date em.wd-sun { color: #e03a3e; }
.next-name { font-size: 16.5px; font-weight: 900; margin-top: 8px; line-height: 1.4; }
.next-place { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.next-deadline { font-size: 12px; font-weight: 700; margin-top: 8px; }
.next-status {
  margin: 0 14px 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rc); color: #fff;
  border: 2px solid var(--ink); border-radius: 999px;
  font-size: 13.5px; font-weight: 900; padding: 8px 12px;
}
.next-status.is-soon { background: #fff; color: var(--ink); }
.next-status.is-full { background: var(--ink); color: #fff; }
.rc-katsushika { --rc: var(--katsushika); }
.rc-oyama { --rc: var(--oyama); }
.rc-soka { --rc: var(--soka); }
.rc-ichikawa { --rc: var(--ichikawa); }

/* ---------- 魅力 ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 16px; }
.why-card {
  position: relative; border: 2px solid var(--ink); border-radius: var(--radius-card);
  padding: 20px 18px 96px; background: #fff; overflow: hidden;
}
.why-card svg { width: 34px; height: 34px; margin-bottom: 10px; }
.why-card h3 { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.why-card p { font-size: 13px; font-weight: 500; line-height: 1.75; }
.why-wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 74px;
  border-radius: 100% 100% 0 0 / 62px 62px 0 0;
  transform: scaleX(1.3);
}
.wv-pink { background: #ffe3ee; } .wv-orange { background: #ffe6cf; }
.wv-mint { background: #d9f3e4; } .wv-blue { background: #ddeefb; }
.wv-yellow { background: #f8f4c6; }
.why-char {
  position: absolute; bottom: 4px; left: 12px; width: 84px; z-index: 1;
}

/* ---------- ランキング ---------- */
.rank-coming {
  border: 2px dashed #c9c9c2; border-radius: var(--radius-card);
  padding: 34px 24px; text-align: center; background: #fafaf7;
}
.rank-coming .oswald { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.rank-coming h3 { font-size: 19px; font-weight: 900; margin: 6px 0 8px; }
.rank-coming p { font-size: 13.5px; color: var(--muted); font-weight: 600; }

/* ---------- 地域 ---------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.area-card {
  border: 2px solid var(--ink); border-radius: var(--radius-card);
  padding: 22px 22px 18px; background: #fff; position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.area-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 rgba(21,21,21,.08); }
.area-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--rc);
}
.area-en { font-family: Oswald, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--rc); }
.area-card h3 { font-size: 19px; font-weight: 900; margin: 4px 0 2px; }
.area-place { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.area-note { font-size: 13px; margin: 10px 0 14px; line-height: 1.75; }
.area-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rc); color: #fff; border: 2px solid var(--ink);
  border-radius: 999px; font-size: 13px; font-weight: 900; padding: 7px 18px;
}

/* ---------- フッター ---------- */
.hub-footer {
  border-top: 1.5px solid var(--line); background: #fff;
  padding: 34px 20px 26px; text-align: center;
}
.hub-footer-nav { display: flex; justify-content: center; gap: 6px 22px; flex-wrap: wrap; margin-bottom: 16px; }
.hub-footer-nav a { font-size: 13px; font-weight: 700; }
.hub-footer-nav a:hover { text-decoration: underline; }
.hub-footer-regions { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.hub-footer-regions a {
  font-family: Oswald, sans-serif; font-size: 12px; letter-spacing: .14em; font-weight: 600;
  padding: 4px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
}
.hub-copy { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 950px) {
  .hub-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1.5px solid var(--line);
    flex-direction: column; padding: 12px 20px 16px; }
  .hub-nav.open { display: flex; }
  .hub-nav a { padding: 11px 6px; border-radius: 10px; }
  .hub-nav-toggle {
    display: grid; place-items: center; gap: 0;
    margin-left: auto; width: 42px; height: 42px;
    background: none; border: 2.5px solid var(--ink); border-radius: 12px; cursor: pointer;
  }
  .hub-nav-toggle span { display: block; width: 18px; height: 2.5px; background: var(--ink); margin: 2px 0; border-radius: 2px; }
  .hub-header .hub-cta-btn { margin-left: auto; }
  .hub-header .hub-cta-btn + .hub-nav-toggle { margin-left: 0; }
  .hub-hero { padding-top: 54px; }
}
@media (max-width: 560px) {
  .hub-cta-btn { font-size: 12.5px; padding: 8px 14px; }
  .hub-header-inner { gap: 12px; }
  .hub-char { width: 74px; }
}

/* ---------- 体験会バナー ---------- */
.trial-panel { padding: 0; overflow: hidden; border: 2px solid var(--ink); }
.trial-banner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; color: var(--ink); text-decoration: none; }
.trial-photo { display: block; min-height: 260px; }
.trial-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 78%; display: block; }
.trial-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 34px clamp(20px, 4vw, 44px); background: #fbfbea; }
.trial-body .panel-kicker { margin: 0; }
.trial-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; line-height: 1.3; }
.trial-text { font-size: 14.5px; line-height: 1.8; }
.trial-next { font-size: 13.5px; font-weight: 800; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 5px 12px; }
.trial-next[hidden] { display: none; }
.trial-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; background: var(--lime); border: 2.5px solid var(--ink); border-radius: 999px; padding: 12px 26px; font-weight: 900; font-size: 15px; box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
.trial-btn i { font-style: normal; }
.trial-banner:hover .trial-btn { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
@media (max-width: 760px) {
  .trial-banner { grid-template-columns: 1fr; }
  .trial-photo { min-height: 0; aspect-ratio: 16 / 9; }
  .trial-body { padding: 24px 20px 28px; }
  .trial-btn { width: 100%; justify-content: center; }
}

/* ---------- SGバナー ---------- */
.sg-panel { padding: 0; overflow: hidden; border: 2px solid #0f2233; background: #0f2233; }
.sg-banner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); color: #fff; }
.sg-banner-head { padding: 34px clamp(20px, 4vw, 44px); border-right: 1px solid rgba(227,189,98,.4); }
.sg-banner-grade { display: inline-flex; align-items: baseline; gap: 10px; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 30px; letter-spacing: .06em; line-height: 1; color: #e3bd62; border: 2px solid #c79a3b; border-radius: 6px; padding: 7px 13px 8px; }
.sg-banner-grade small { font-size: 12px; letter-spacing: .14em; font-weight: 500; }
.sg-banner-title { font-size: clamp(26px, 3.8vw, 38px); font-weight: 900; line-height: 1.3; margin-top: 14px; }
.sg-banner-date { font-family: "Oswald", "Noto Sans JP", sans-serif; font-size: 16px; letter-spacing: .06em; color: #e3bd62; margin-top: 6px; }
.sg-banner-body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 34px clamp(20px, 4vw, 44px); font-size: 14.5px; line-height: 1.8; }
.sg-banner-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sg-banner-btn { display: inline-flex; align-items: center; gap: 10px; background: #e3bd62; color: #0f2233; border-radius: 999px; padding: 12px 24px; font-weight: 900; font-size: 15px; text-decoration: none; }
.sg-banner-btn:hover { background: #f0cf7e; }
.sg-banner-sub { color: #fff; font-weight: 700; font-size: 14.5px; text-underline-offset: 4px; }
.sg-banner i { font-style: normal; }
@media (max-width: 760px) {
  .sg-banner { grid-template-columns: 1fr; }
  .sg-banner-head { border-right: 0; border-bottom: 1px solid rgba(227,189,98,.4); padding: 24px 20px; }
  .sg-banner-body { padding: 22px 20px 26px; }
  .sg-banner-btn { width: 100%; justify-content: center; }
}

.rc-sg { --rc: #0f2233; }
.next-kind.is-sg { background: #0f2233; color: #e3bd62; border-color: #c79a3b; font-family: "Oswald", sans-serif; letter-spacing: .08em; }

/* ---------- ランキング公開 ---------- */
.rank-open { border-style: solid; border-color: var(--ink); background: #fff; }
.rank-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; background: var(--ink); color: #fff; border-radius: 999px; padding: 12px 26px; font-weight: 900; font-size: 15px; }
.rank-btn i { font-style: normal; }
.rank-btn:hover { opacity: .85; }
.sg-banner-change { display: inline-block; margin-top: 12px; padding: 5px 12px; border: 1px solid #e3bd62; border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff; }

/* ---------- ランキング上位10名(トップページ) ---------- */
.rank-top { margin-bottom: 18px; }
.rt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rt-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-card); padding: 18px 18px 10px; min-width: 0; }
.rt-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.rt-head .oswald { font-size: 13px; letter-spacing: .18em; color: var(--muted); }
.rt-head h3 { font-size: 18px; font-weight: 900; }
.rt-list { list-style: none; }
.rt-row { display: grid; grid-template-columns: 28px 46px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rt-row:last-child { border-bottom: 0; }
.rt-rank { font-size: 19px; font-weight: 700; text-align: center; color: var(--muted); }
.rt-row.is-top .rt-rank { color: var(--ink); }
.rt-move { font-size: 12px; font-weight: 900; text-align: center; border-radius: 999px; padding: 2px 0; line-height: 1.5; }
.rt-move.is-up { background: #ffe3e0; color: #c4291c; }
.rt-move.is-down { background: #e0ebfb; color: #1f5fb8; }
.rt-move.is-stay { background: #efefea; color: var(--muted); }
.rt-move.is-new { background: var(--lime); color: var(--ink); font-size: 10.5px; letter-spacing: .04em; }
.rt-name { font-size: 15px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-val { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rt-note { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 10px; }
.rank-top:not([hidden]) + .rank-coming { padding: 22px 24px; }
@media (max-width: 760px) {
  .rt-grid { grid-template-columns: 1fr; gap: 14px; }
  .rt-card { padding: 16px 14px 8px; }
}
