/* ==========================================================================
   quest.css
   甲府銀座通りクエスト（ワクマチ内の独立コンテンツ）
   ワクマチ本体とは別読み込みの完全独立スタイル
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; line-height: 1.5; scroll-behavior: smooth; overflow-y: auto; }
html.menu-open { overflow-y: hidden; }

body {
  font-family: 'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
  font-size: 1.5rem;
  color: var(--q-text);
  background: var(--q-cream);
  overflow-x: hidden;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
section, div { box-sizing: border-box; }

/* ─────────────────────────────────────────
   トークン（ワクマチ本体の色・書体に合わせる）
───────────────────────────────────────── */
:root {
  --q-cream:      #FBF5EC;
  --q-coral:      #F4906B;
  --q-coral-dark: #EC7E55;
  --q-blue:       #7EC0D6;
  --q-blue-dark:  #5BAFC9;
  --q-blue-lt:    #DCEFF5;
  --q-yellow:     #F6C45A;
  --q-heading:    #463F38;
  --q-text:       #5A4D43;
  --q-text-sub:   #6F6256;
  --q-text-muted: #9B8E80;
  --q-border:     #EAE0D4;
  --q-footer-bg:  #46413A;
  --q-card-cream: #FCEFE3;
  --q-font-heading: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
  --q-font-body:    'M PLUS Rounded 1c', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* スクロール演出（js/quest.jsと連動） */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ─────────────────────────────────────────
   HEADER（wakumachi本体の.site-headerパターンを踏襲）
───────────────────────────────────────── */
.quest-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--q-cream);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
}

.quest-header__brand {
  flex: none;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  font-family: var(--q-font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--q-heading);
  line-height: 1.3;
}
.quest-header__brand span { color: var(--q-coral-dark); }
.quest-header__mark {
  flex: none;
  width: 3.2rem; height: 3.2rem;
  border-radius: .9rem;
  background: var(--q-coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(244,144,107,.35);
}

.quest-header__actions { display: flex; align-items: center; gap: 10px; }

.quest-header__cta {
  flex: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--q-coral);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 13px rgba(244,144,107,.35);
}

.quest-header__toggle {
  flex: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.quest-header__toggle-bars { position: relative; width: 22px; height: 16px; }
.quest-header__toggle-bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--q-heading);
  transition: transform .3s, opacity .3s;
}
.quest-header__toggle-bars span:nth-child(1) { top: 0; }
.quest-header__toggle-bars span:nth-child(2) { top: 7px; }
.quest-header__toggle-bars span:nth-child(3) { top: 14px; }
.quest-header__toggle[aria-expanded="true"] .quest-header__toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.quest-header__toggle[aria-expanded="true"] .quest-header__toggle-bars span:nth-child(2) { opacity: 0; }
.quest-header__toggle[aria-expanded="true"] .quest-header__toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ナビ（モバイル: ドロップダウン） */
.quest-header__nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--q-cream);
  padding: 0 20px 20px;
  box-shadow: 0 16px 24px rgba(70,65,58,.08);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height .35s, opacity .3s;
}
.quest-header__nav.is-open { max-height: 360px; opacity: 1; visibility: visible; }

.quest-header__nav-list { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.quest-header__nav-link {
  display: block;
  padding: 12px 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--q-text-sub);
  border-bottom: 1px solid var(--q-border);
}
.quest-header__nav-back {
  display: block;
  margin-top: 14px;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--q-blue-dark);
}

@media (min-width: 1024px) {
  .quest-header { position: static; }
  .quest-header__toggle { display: none; }
  .quest-header__nav {
    position: static;
    padding: 0;
    max-height: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    margin-right: 24px;
  }
  .quest-header__nav-list { flex-direction: row; align-items: center; gap: 0; }
  .quest-header__nav-list li:not(:first-child) { border-left: 1px dotted var(--q-text-muted); }
  .quest-header__nav-link {
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--q-text);
    border-bottom: none;
    white-space: nowrap;
  }
  .quest-header__nav-list li:first-child .quest-header__nav-link { padding-left: 0; }
  .quest-header__nav-back { display: none; }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#mainimgWrap {
  width: 100%;
  background: var(--q-footer-bg);
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--q-footer-bg);
}

.hero-content {
  background: linear-gradient(160deg, var(--q-footer-bg) 0%, #5c5347 100%);
  text-align: center;
  padding: 2rem 2rem 2.4rem;
}

.hero-content .eyebrow {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: var(--q-coral);
  padding: .3em 1.2em;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-family: var(--q-font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: .8rem;
}

.hero-content .sub {
  font-size: 1.3rem;
  color: rgba(255,255,255,.85);
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   OPEN DATE BAR
───────────────────────────────────────── */
.dateWrap {
  background: var(--q-footer-bg);
  padding: 1.4rem 1.6rem;
  text-align: center;
}
.dateWrap__txt {
  font-family: var(--q-font-heading);
  font-size: 1.4rem;
  color: #fff;
  letter-spacing: .04em;
}
.dateWrap__txt span {
  font-size: 2rem;
  font-weight: 900;
  color: var(--q-yellow);
}
.dateWrap__note {
  display: block;
  margin-top: .4rem;
  font-size: 1.15rem;
  color: rgba(255,255,255,.72);
}

/* ─────────────────────────────────────────
   SECTION COMMON
───────────────────────────────────────── */
.frameWrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 2rem;
}

section.wrap { padding: 5rem 0; }
section.wrap--gray { background: #fff; padding: 5rem 0; }

.titlecol {
  text-align: center;
  margin: 0 auto 3.6rem;
}
.titlecol::after {
  content: "";
  display: block;
  width: 80px; height: 4px;
  background: var(--q-coral);
  border-radius: 2px;
  margin: 1rem auto 0;
}
.titlecol__h3 {
  font-family: var(--q-font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--q-heading);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 480px) {
  .titlecol__h3 { font-size: 2rem; }
}

/* NEWS〜FOOTER・フローティングCTAは css/quest-content.css に分割（500行超のため） */

@media (min-width: 768px) {
  .hero-content h1 { font-size: 3.2rem; }
}
