/* ========== Base / Reset ========== */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  color: #111;
  background: #fff;
}

:root{
  --maxw: 1080px;
  --gap: 20px;
  --radius: 14px;
  --brand: #2563eb;
  --brand-ink: #fff;
  --ink: #0f172a;
  --sub-ink: #334155;
  --border: #e2e8f0;
  --bg-soft: #f8fafc;
  --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.35));
}

@media (prefers-color-scheme: dark){
  body { color: #e5e7eb; background:#0b0f14; }
  :root{ --ink:#e5e7eb; --sub-ink:#cbd5e1; --border:#233044; --bg-soft:#0f1620; --hero-overlay: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.5)); }
}

/* Utilities */
.container{ width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.section{ padding: 56px 0; }
.section.alt{ background: var(--bg-soft); }
.grid-2{ display: grid; gap: var(--gap); }
@media (min-width: 900px){ .grid-2{ grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

/* Header */
.site-header{ position: sticky; top:0; z-index:50; background: rgba(255,255,255,.92); backdrop-filter: saturate(150%) blur(8px); border-bottom:1px solid var(--border); }
@media (prefers-color-scheme: dark){ .site-header{ background: rgba(10,14,20,.7); } }
.header-inner{ display:flex; align-items:center; justify-content: space-between; height:64px; }
.logo{ font-weight: 800; letter-spacing: .02em; color: var(--ink); text-decoration: none; font-size: clamp(18px, 2vw, 22px); }
.nav-toggle{ appearance:none; border:0; background:transparent; font-size: 28px; line-height:1; padding:8px; cursor:pointer; color: var(--ink); }
.nav{ position: fixed; inset: 64px 0 auto 0; background: inherit; border-top:1px solid var(--border); display: grid; gap: 8px; padding: 16px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.nav a{ color: var(--ink); text-decoration: none; padding: 10px 8px; border-radius: 10px; }
.nav a:hover{ background: var(--bg-soft); }
.nav.open{ max-height: 70vh; }
@media (min-width: 900px){
  .nav-toggle{ display:none; }
  .nav{ position: static; max-height: none; overflow: visible; border:0; padding:0; display:flex; gap: 8px; }
  .nav a{ padding:10px 12px; }
}
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5em; padding: 10px 16px; border-radius: 999px; border:1px solid var(--border); text-decoration: none; font-weight: 700; line-height:1.2; }
.btn-primary{ background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.btn-primary:hover{ filter: brightness(1.05); }
.btn-ghost{ background: transparent; color: var(--ink); }
.btn-ghost:hover{ background: var(--bg-soft); }
.btn-lg{ padding: 14px 22px; font-size: 1.0625rem; }

/* Hero */
.hero{ position: relative; isolation:isolate; min-height: 62svh; display:grid; place-items:center; text-align:center; color: #fff;
  background: var(--hero-overlay), url("images/hero.jpg") center/cover no-repeat fixed; }
.hero::after{ content:""; position:absolute; inset:0; background: radial-gradient(60% 40% at 50% 60%, rgba(255,255,255,.08), transparent 60%); pointer-events:none; }
.hero-inner{ padding: 56px 0; }
.hero h1{ margin:0 0 10px; font-weight:900; font-size: clamp(28px, 5vw, 48px); letter-spacing:.02em;  gap:12px; }
.hero .accent{ color: #dbeafe; font-weight: 700; }
.hero .lead{ margin: 10px 0 22px; opacity:.95; }
.cta-row{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.hero .lead {
    color: #fff;
    font-weight: 600;
}

/* Typography */
h2{ font-size: clamp(22px, 3.2vw, 32px); margin: 0 0 16px; line-height:1.3; }
h3{ font-size: clamp(18px, 2.6vw, 22px); margin: 0 0 10px; }
p{ margin: 0 0 1.1em; color: var(--sub-ink); }
.media{ padding: 10px; border:1px solid var(--border); border-radius: var(--radius); background: #fff; }
.media img{ width: 100%; height: auto; display:block; border-radius: 10px; }

/* Content alternating */
.content-list { display: grid; gap: var(--gap); }
.content-item { display: grid; gap: 14px; }
.content-media img { width: 100%; height: auto; display: block; border-radius: 12px; }
.content-body h3 { margin-top: 2px; }
.content-meta { display:flex; flex-wrap:wrap; gap:10px; padding:0; margin:.4em 0 0; list-style:none; color: var(--sub-ink); }
.content-meta li { padding: 4px 10px; border:1px solid var(--border); border-radius: 999px; background:#fff; }
@media (min-width: 900px){
  .content-item { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .content-item:nth-child(even){ grid-template-columns: 1fr 1.1fr; }
  .content-item:nth-child(even) .content-media{ order:2; }
  .content-item:nth-child(even) .content-body{ order:1; }
}

/* Appeal */
.appeal-grid{ display:grid; gap: var(--gap); grid-template-columns: 1fr; }
.appeal-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; display:grid; gap:0; }
.appeal-media{ aspect-ratio: 16 / 9; overflow:hidden; background:#000; }
.appeal-media img{ width:100%; height:100%; object-fit: cover; display:block; }
.appeal-body{ padding: 16px; }
@media (min-width: 900px){ .appeal-grid{ grid-template-columns: repeat(3, 1fr); } }

/* Briefing */
.briefing .list{ margin: .5em 0 1em; padding-left: 1.1em; color: var(--sub-ink); }
.briefing .media img{ border-radius: 12px; }

/* Schedule date range */
.date-range{ text-align: center; padding: 22px; background:#fff; border:1px solid var(--border); border-radius: var(--radius); }
.date-range .date-line{ font-size: clamp(20px, 4.8vw, 34px); font-weight: 900; color: var(--ink); letter-spacing: .02em; }
.date-range .hint{ margin-top: 8px; color: var(--sub-ink); }

/* Price */
.price-grid{ display:grid; gap: var(--gap); grid-template-columns: 1fr; }
.price-card{ text-align:center; padding: 22px; background:#fff; border:1px solid var(--border); border-radius: var(--radius); }
.price-card .price{ font-size: clamp(28px, 5vw, 40px); font-weight: 900; color: var(--ink); margin:.2em 0 .6em; }
.price-card .price span{ font-size:.6em; opacity:.7; }
.price-card ul{ list-style: none; padding:0; margin:0; color: var(--sub-ink); }
.price-card li{ padding: 6px 0; border-top:1px dashed var(--border); }
.price-card li:first-child{ border-top:0; }
.price-card.highlight{ outline: 3px solid color-mix(in oklab, var(--brand) 35%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,.06); }
@media (min-width: 760px){ .price-grid{ grid-template-columns: repeat(2, 1fr); } }

/* Team */
.team-grid{ display:grid; gap: var(--gap); grid-template-columns: 1fr 1fr; }
.team-card{ text-align:center; background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.team-card img{ width: 120px; height: 120px; object-fit: cover; border-radius: 50%; display:block; margin: 0 auto 10px; border: 3px solid color-mix(in oklab, var(--brand) 25%, transparent); }
.team-card .role{ font-weight:700; color: var(--brand); margin: 4px 0; }
.team-card .bio{ color: var(--sub-ink); }
.team-card .sns a{ color: var(--sub-ink); text-decoration: none; }
.team-card .sns a:hover{ text-decoration: underline; }
@media (min-width: 900px){ .team-grid{ grid-template-columns: repeat(5, 1fr); } }

/* Team voice collapsible */
.team-voice{ margin-top: 10px; border:1px dashed var(--border); border-radius: 10px; background: #fff; }
.team-voice > summary{ list-style:none; cursor:pointer; padding: 10px 12px; display:flex; align-items:center; gap:10px; }
.team-voice > summary::-webkit-details-marker{ display:none; }
.team-voice > summary .badge{ margin-left:auto; display:inline-block; background: var(--brand); color: var(--brand-ink); font-weight:800; border-radius: 999px; padding: 2px 8px; transition: transform .2s; }
.team-voice[open] > summary .badge{ background:#94a3b8; transform: rotate(45deg); }
.team-voice > p{ padding: 0 12px 12px; color: var(--sub-ink); margin: 0; }

/* Voices */
.voices-grid{ display:grid; gap: var(--gap); grid-template-columns: 1fr; }
.voice-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s ease; }
.voice-card > summary{ display:flex; align-items:center; gap: 12px; list-style:none; cursor:pointer; padding: 12px 14px; }
.voice-card > summary::-webkit-details-marker{ display:none; }
.voice-card > summary img{ width:64px; height:64px; object-fit: cover; border-radius: 50%; border: 2px solid color-mix(in oklab, var(--brand) 25%, transparent); }
.voice-meta{ display:flex; flex-direction:column; gap:2px; }
.expand-badge{ margin-left:auto; border:0; background: var(--brand); color: var(--brand-ink); padding: 6px 10px; border-radius: 999px; font-weight: 800; pointer-events: none; transition: transform .2s; }
.voice-card[open] .expand-badge{ background: #94a3b8; transform: rotate(45deg); }
.voice-body{ padding: 10px 14px 16px; display:grid; gap:10px; }
.voice-text{ color: var(--sub-ink); margin:0; line-height:1.7; }
@media (min-width: 760px){ .voices-grid{ grid-template-columns: repeat(2, 1fr); } }

/* INFO */
.info .info-grid{ display:grid; gap: var(--gap); grid-template-columns: 1fr; }
.info-card{ background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.info-card h3{ margin: 0 0 6px; }
.info-main{ font-size: 1.05rem; margin: 6px 0; color: var(--ink); }
.info-sub{ margin: 0; padding-left: 1.1em; color: var(--sub-ink); }
.info-cta{ margin-top: 14px; display:flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 900px){ .info .info-grid{ grid-template-columns: repeat(3, 1fr); } }

/* Access / Map */
.map-wrap{ aspect-ratio: 16 / 9; border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; background:#000; }
.map-wrap iframe{ width:100%; height:100%; border:0; }

/* FAQ */
.faq-list{ display:grid; gap: 10px; }
details.faq{ border:1px solid var(--border); border-radius: 12px; padding: 12px 14px; background:#fff; }
details.faq > summary{ cursor:pointer; font-weight:700; color: var(--ink); }
details.faq[open]{ outline: 2px solid color-mix(in oklab, var(--brand) 30%, transparent); }

/* Entry */
.entry{ text-align:center; }
.entry p{ margin-bottom: 16px; }

/* Floating CTA */
.floating-cta{ position: fixed; right: 16px; bottom: 18px; z-index: 100; display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 800; box-shadow: 0 10px 28px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.12); border: 1px solid color-mix(in oklab, var(--brand) 50%, transparent); }
.floating-cta:hover{ filter: brightness(1.05); transform: translateY(-1px); }
@media (max-width: 480px){ .floating-cta{ right: 12px; bottom: 12px; padding: 10px 14px; font-size: .94rem; } }
@media (prefers-reduced-motion: reduce){ .floating-cta{ transform: none !important; } }

/* Footer */
.site-footer{ border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner{ display:flex; gap: 10px; align-items:center; justify-content: space-between; padding: 18px 0; }
.sns{ display:flex; gap: 12px; }
.sns a{ color: var(--sub-ink); text-decoration:none; }
.sns a:hover{ text-decoration: underline; }

:focus-visible{ outline: 3px solid color-mix(in oklab, var(--brand) 60%, transparent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce){ *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (min-width: 1200px){ :root{ --maxw: 1200px; } .hero{ min-height: 72svh; } }


/* --- Nav dropdown (まとめメニュー) --- */
.nav-group{ position: relative; }
.nav-more{
  appearance: none; border:1px solid var(--border); background:#fff; color: var(--ink);
  font-weight:700; padding:10px 12px; border-radius:10px; cursor:pointer;
}
.menu-panel{
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  display: grid; gap: 6px; grid-template-columns: 1fr;
  min-width: 220px; padding: 10px;
  border:1px solid var(--border); border-radius: 12px; background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.menu-panel a{
  padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink);
}
.menu-panel a:hover{ background: var(--bg-soft); }
@media (min-width: 1000px){
  .menu-panel{ grid-template-columns: repeat(2, 1fr); min-width: 420px; }
}
@media (max-width: 899px){
  .nav-group{ width: 100%; }
  .nav-more{ width: 100%; }
  .menu-panel{ position: static; box-shadow:none; border-radius: 10px; margin-top: 8px; }
}


/* --- Force hamburger (三本線) on all sizes & off-canvas drawer --- */
.nav-toggle{ display:block !important; }
.nav{
  position: fixed !important;
  inset: 64px 0 0 auto; /* top/right aligned below header */
  height: calc(100dvh - 64px);
  width: min(86vw, 360px);
  background: inherit;
  backdrop-filter: saturate(150%) blur(8px);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 40px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
  max-height: none; /* override mobile style */
}
.nav.open{ transform: translateX(0); }
.backdrop{
  position: fixed; inset: 0; z-index: 40; background: rgba(2,6,23,.35);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.backdrop.open{ opacity: 1; pointer-events: auto; }
.site-header{ z-index: 60; } /* keep header above backdrop */

@media (min-width: 900px){
  /* Prevent desktop from reverting to inline nav */
  .nav{ border-top: 0; }
}


/* --- Drawer & Backdrop (robust) --- */
.nav-toggle{ position: relative; z-index: 70; } /* above backdrop */
.nav{
  position: fixed;
  right: 0; top: 64px; bottom: 0;
  width: min(86vw, 360px);
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 40px rgba(0,0,0,.08);
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
}
.nav.open{ transform: translateX(0); }
.backdrop{
  position: fixed; inset: 0; z-index: 60; background: rgba(2,6,23,.35);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.backdrop.open{ opacity: 1; pointer-events: auto; }
.site-header{ z-index: 80; }


/* --- Desktop hardening for hamburger drawer --- */
@media (min-width: 900px){
  .nav-toggle{ display:block !important; }
  .nav{
    position: fixed !important;
    right: 0; top: 64px; bottom: 0;
    width: min(86vw, 360px);
    display: flex !important;
    transform: translateX(100%);
  }
  .nav.open{ transform: translateX(0); }
}


/* Prevent header from shifting and ensure drawer height fits exactly under header */
.site-header{ height: 64px; }
.nav{ top: 64px !important; bottom: 0 !important; }
/* Desktop override to keep drawer behavior consistent */
@media (min-width: 900px){
  .nav-toggle{ display:block !important; }
  .nav{ position: fixed !important; right: 0; left: auto; }
}


/* --- Drawer link legibility fix --- */
.nav { font-size: 16px; }
.nav a, .nav .btn{
  display:block;
  width: 100%;
  white-space: normal;     /* allow wrapping */
  overflow: visible;       /* no clipping */
  text-overflow: clip;     /* no ellipsis */
  line-height: 1.45;
  padding: 12px 12px;
}
.nav a{ border-radius: 10px; }
.nav a:hover{ background: var(--bg-soft); }
.nav .btn{ text-align: center; }

/* Drawer box sizing to avoid content cut on desktop */
.nav{
  position: fixed !important;
  right: 0; left: auto;
  top: 64px !important;
  height: calc(100dvh - 64px) !important;
  max-height: calc(100dvh - 64px) !important;
  overflow-y: auto !important;
  width: min(88vw, 380px);
}
.nav.open{ transform: translateX(0) !important; }

@media (min-width: 1200px){
  .nav{ width: 420px; }
}


/* === Section Backgrounds via [data-bg] (with constant overlay) === */
[data-bg]{
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff; /* ensure readable text over image */
  isolation: isolate;
}
[data-bg]::before{
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35); /* constant overlay */
  z-index: 0;
}
[data-bg] > *{ position: relative; z-index: 1; }
/* Keep cards readable on images */
[data-bg] .card,
[data-bg] .price-card,
[data-bg] .team-card,
[data-bg] .voice-card,
[data-bg] .info-card{
  background: rgba(255,255,255,.92);
  color: var(--ink);
  backdrop-filter: saturate(140%) blur(4px);
}
[data-bg] .card p,
[data-bg] .price-card p,
[data-bg] .team-card p,
[data-bg] .voice-card p,
[data-bg] .info-card p{ color: var(--sub-ink); }
/* Keep buttons visible */
[data-bg] .btn-ghost{ background: rgba(255,255,255,.1); color:#fff; border-color: rgba(255,255,255,.3); }
[data-bg] .btn-ghost:hover{ background: rgba(255,255,255,.2); }
/* Avoid extra contrast on alt background when data-bg is used */
[data-bg].alt{ background: transparent; }


/* --- Logo & Event Mark (header + hero) --- */
.logo{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:1.3rem; }
.logo-icon{ width:44px; height:44px; object-fit:contain; }
.hero h1{ display:flex; flex-direction:column; align-items:center; gap:8px;  gap:12px; }
 .event-mark{width:320px;height:320px;object-fit:contain;animation:fadeIn 1s ease-out;}
@keyframes fadeIn{ from{opacity:0; transform:scale(0.8);} to{opacity:1; transform:scale(1);} }


/* === Prevent horizontal swipe from revealing the drawer === */
html, body { overflow-x: hidden; touch-action: pan-y; }
.nav{
  right: 0;
  transform: translateX(105%);          /* push a bit further off-screen */
  pointer-events: none;                  /* disable interactions when closed */
  visibility: hidden;                    /* hide from view/AT when closed */
  will-change: transform;
  overscroll-behavior: contain;
}
.nav.open{
  transform: translateX(0);
  pointer-events: auto;
  visibility: visible;
}
/* Ensure backdrop doesn't cause layout overflow */
.backdrop{ contain: layout paint; }
/* Safety: images never cause page-wide overflow */
img{ max-width: 100%; height: auto; }


/* deeper brand for Entry */
  filter: none;
}
.nav .btn-primary.js-briefing-link:hover{
  background: #0ea5e9; /* cyan-ish for Briefing */
  filter: none;
}


/* --- Sticky Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
body {
  padding-top: 70px; /* offset for fixed header */
}


/* Unified hover color for drawer buttons */
.nav .btn-primary.js-entry-link:hover,
.nav .btn-primary.js-briefing-link:hover{
  background: #0ea5e9; /* match briefing hover */
  filter: none;
}
