/* イベパルVRC 静的版
 * サイトの色はまず下の変数を変更してください。
 * 内容やリンクは index.html、イベント情報は data/events.csv です。
 */
:root {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  color: #282724;
  background: #fbfaf6;
  font-size: 16px;
  line-height: 1.48;
  --yellow: #f7c842;
  --ink: #282724;
  --muted: #686660;
  --line: #e7e3d8;
  --paper: #fff;
  --soft: #f3f0e8;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.3; letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.35; }
h3 { font-size: 1.15rem; line-height: 1.35; }
p { line-height: 1.55; margin-bottom: 1em; }

/* ヘッダーと共通レイアウト */
.site-header { background: var(--yellow); border-bottom: 2px solid var(--ink); }
.header-inner {
  max-width: 1180px; margin: auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand { font-size: 1.35rem; font-weight: 900; letter-spacing: -.08em; white-space: nowrap; }
.brand small { font-size: .63rem; letter-spacing: .04em; margin-left: 9px; font-weight: 700; }
.desktop-nav { display: flex; align-items: center; gap: 22px; font-size: .91rem; font-weight: 700; }
.desktop-nav .header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink); background: white; border-radius: 7px;
  padding: 8px 15px; min-height: 45px; box-shadow: 3px 3px 0 #3b3521;
}
.desktop-nav .header-cta:hover { background: #fff8dc; text-decoration: none; }
[data-nav][aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.demo-banner {
  background: #f7f3e8; color: #60594a; border-bottom: 1px solid var(--line);
  text-align: center; padding: 4px 18px; font-size: .78rem;
}
.wrap { max-width: 1180px; margin: auto; padding: 32px 20px 90px; }
.narrow { max-width: 850px; }
.section { margin: 46px 0; }
.page-head { margin: 0 0 24px; }
.page-head p { color: var(--muted); }
.lead { font-size: 1.04rem; color: #4d4b46; }
.subtle { color: var(--muted); font-size: .89rem; }
.small-note { font-size: .78rem; color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.notice { background: #f8f3df; border-left: 4px solid #d3aa31; padding: 14px 17px; font-size: .88rem; }
.button-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--yellow); border: 1.5px solid var(--ink); border-radius: 7px;
  min-height: 46px; padding: 10px 18px; font-weight: 800; color: var(--ink);
  text-align: center; text-decoration: none !important;
}
.btn:hover { background: #f4d570; }
.btn.secondary { background: white; }
.btn.quiet { background: transparent; border-color: var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible, a:focus-visible, button:focus-visible,
.input:focus, select:focus { outline: 3px solid #a37600; outline-offset: 2px; }

/* TOPとピックアップ */
.top-intro { padding: 19px 0 22px; }
.top-intro .eyebrow { font-size: .77rem; font-weight: 900; letter-spacing: .13em; color: #775900; }
.top-intro h1 { max-width: none; font-size: clamp(1.55rem, 3.5vw, 2.45rem); letter-spacing: -.055em; margin: 7px 0; }
.search-hero {
  background: white; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--yellow);
  border-radius: 13px; padding: 22px; margin: 4px 7px 43px 0;
}
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; }
.search-row .btn { white-space: nowrap; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-head h2 { margin: 0; }
.pickup-layout {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px; align-items: center;
}
.pickup-stage { min-width: 0; outline-offset: 4px; }
#pickup-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pickup-arrow {
  height: 56px; width: 48px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); background: white;
  border-radius: 50%; font-size: 2rem; line-height: 1;
}
.pickup-arrow:hover { background: #fff3bf; }
.pickup-hint { text-align: center; font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.pickup-hint span { margin-left: 8px; font-variant-numeric: tabular-nums; }
.genre-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 17px; }
.genre-links a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 52px; border: 1px solid #c4bb9d; border-radius: 7px;
  background: white; padding: 10px 13px; font-weight: 750;
}
.genre-links a:hover { background: #fff4c8; text-decoration: none; border-color: #7d6422; }
.genre-links a span { color: #8b742e; }
.feedback-invite {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 18px 0 36px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--soft); font-size: .88rem;
}
.feedback-invite p { margin: 0; }
.feedback-invite a { font-weight: 750; white-space: nowrap; }
.home-guide > .btn { margin-top: 15px; }

/* ポスターと検索結果カード */
.event-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
}
.event-card:hover { box-shadow: 0 6px 20px #28272418; text-decoration: none; }
.poster {
  aspect-ratio: 2048 / 1448; background: #1b1b1b;
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 17px; flex: 1; }
.card-body h3 { margin: 0 0 5px; }
.card-body p { margin: 0 0 10px; color: #4f4d47; font-size: .92rem; }
.meta { font-size: .86rem; font-weight: 700; margin: 0 0 10px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; border: 1px solid var(--line); background: #f8f7f3; border-radius: 5px; font-size: .76rem; line-height: 1.5; padding: 3px 7px; }
.chip.beginner { background: #f6e9ae; border-color: #e2ce78; }
.chip.quest { background: #e9eee8; }

/* 検索 */
.filter-layout { display: grid; grid-template-columns: 290px 1fr; gap: 25px; align-items: start; }
.filter-panel { position: sticky; top: 15px; }
.filter-panel h2 { font-size: 1.25rem; }
.field { display: block; margin: 0 0 18px; }
.field > span { display: block; font-weight: 800; font-size: .89rem; margin-bottom: 7px; }
.search-hero .field .search-row { display: flex; margin-top: 7px; }
.input, select {
  width: 100%; border: 1px solid #bfbdb5; border-radius: 6px;
  background: white; padding: 10px 12px; min-height: 45px; color: var(--ink);
}
.filter-accordion { border-top: 1px solid var(--line); }
.filter-accordion:last-of-type { border-bottom: 1px solid var(--line); }
.filter-accordion summary {
  list-style: none; display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 0; cursor: pointer;
}
.filter-accordion summary::-webkit-details-marker { display: none; }
.filter-accordion summary strong { font-size: .94rem; }
.filter-accordion .chevron { margin-left: auto; font-size: 1.1rem; transition: transform .18s; }
.filter-accordion[open] .chevron { transform: rotate(180deg); }
.accordion-body { padding: 4px 0 16px; }
.accordion-body .small-note { margin-bottom: 8px; }
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.option-grid label {
  border: 1px solid #c9c6bb; border-radius: 6px; padding: 7px 10px;
  font-size: .87rem; cursor: pointer; background: white;
}
.option-grid label:has(input:checked) { background: #f9e4a0; border-color: #b08410; }
.option-grid input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-grid label:focus-within { outline: 2px solid #a37600; }
.check-row { display: flex; gap: 8px; align-items: center; margin: 7px 0; font-size: .9rem; }
.check-row input { width: 18px; height: 18px; accent-color: #9b7600; }
.filter-check { min-height: 40px; border-bottom: 1px solid var(--line); margin: 0; }
.size-filter { margin: 14px 0 9px; }
.filter-reset { margin-top: 5px; }
.results-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.empty { text-align: center; background: white; border: 1px dashed #ccc; padding: 35px 20px; border-radius: 12px; }

/* イベント詳細と教科書 */
.detail { max-width: 850px; }
.detail .poster { border-radius: 11px; margin-bottom: 22px; }
.detail-title { margin-bottom: 10px; }
.detail .lead { margin-bottom: 12px; }
.detail-section { border-top: 1px solid var(--line); padding-top: 19px; margin-top: 23px; }
.detail-section h2 { margin-bottom: 12px; }
.detail-section h3 { margin-top: 18px; }
.detail p { white-space: pre-wrap; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.info-list li { display: flex; align-items: flex-start; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.4; overflow-wrap: anywhere; }
.info-icon { width: 1.5em; flex: none; text-align: center; }
.compact-facts { margin: 0; }
.compact-facts .fact { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.compact-facts dt, .compact-facts dd { margin: 0; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.compact-facts dt { color: #66645f; }
.compact-facts dd { font-weight: 700; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.guide-index .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 851px) {
  .home-guide .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.article-card { background: white; border: 1px solid var(--line); border-left: 5px solid var(--yellow); padding: 18px; border-radius: 6px; }
.article-card:hover { border-color: var(--ink); text-decoration: none; }
.article-card b { display: block; margin-bottom: 7px; }
.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.27rem; margin-top: 32px; }
.article-body p { line-height: 1.7; }
.article-body li, .prep-panel li { margin-bottom: 9px; }
.prep-panel ul { padding-left: 1.35em; margin: 10px 0 17px; }
.registration-criteria .btn { margin-top: 6px; }
.share { margin-top: 20px; }

/* フッターとスマートフォン */
.foot { background: #eae7df; padding: 28px 20px 95px; font-size: .85rem; color: #55534e; }
.foot-inner { max-width: 1180px; margin: auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.bottom-nav { display: none; }

@media (max-width: 850px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .genre-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .guide-index .article-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 9px 16px; }
  .desktop-nav { display: none; }
  .brand { font-size: 1.25rem; }
  .wrap { padding: 22px 16px 95px; }
  .section { margin: 37px 0; }
  .top-intro { padding: 9px 0 13px; }
  .top-intro h1 { font-size: clamp(1.55rem, 5.6vw, 2rem); max-width: 18em; letter-spacing: -.045em; }
  .search-hero { padding: 15px; box-shadow: 4px 4px 0 var(--yellow); margin: 3px 4px 29px 0; }
  .search-hero .field .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }
  .search-hero .text-link { display: block; text-align: center; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 12px; margin-top: 10px; }
  .section-head { flex-direction: column; align-items: stretch; gap: 8px; }
  .section-head .btn { align-self: stretch; }
  .btn { min-height: 66px; padding: 13px 18px; }
  .button-line { flex-direction: column; }
  .button-line .btn, .registration-criteria .btn, .home-guide > .btn { width: 100%; }
  .pickup-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pickup-arrow { display: none; }
  .pickup-stage {
    position: relative; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: auto;
  }
  .pickup-stage::-webkit-scrollbar { display: none; }
  #pickup-live { display: flex; gap: 12px; padding: 4px 24px 12px; }
  #pickup-live .event-card {
    flex: 0 0 calc(100vw - 80px); scroll-snap-align: center; scroll-snap-stop: always;
    box-shadow: 0 3px 10px #00000011;
  }
  .pickup-stage .card-body { padding: 12px; }
  .pickup-stage .card-body h3 { font-size: 1.03rem; }
  .pickup-stage .card-body p { font-size: .85rem; }
  .pickup-hint { font-size: .8rem; }
  .genre-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .genre-links a { min-height: 58px; padding: 9px 10px; font-size: .9rem; }
  .feedback-invite { align-items: flex-start; flex-direction: column; gap: 4px; padding: 12px 14px; }
  .feedback-invite a { white-space: normal; }
  .home-guide { display: none; }
  .article-grid, .results-grid { grid-template-columns: 1fr; }
  .filter-panel { padding: 15px; }
  .filter-panel h2 { font-size: 1.18rem; margin-bottom: 7px; }
  .filter-accordion summary { min-height: 52px; }
  .filter-reset { width: 100%; }
  .results-top { align-items: flex-start; flex-direction: column; gap: 2px; }
  .info-list { grid-template-columns: 1fr; }
  .info-list li { padding: 8px 0; font-size: .91rem; }
  .compact-facts .fact { grid-template-columns: 108px 1fr; gap: 8px; }
  .panel { padding: 17px; }
  .foot { padding-bottom: 110px; }
  .bottom-nav {
    position: fixed; z-index: 20; bottom: 0; left: 0; right: 0;
    display: flex; background: white; border-top: 1px solid #cfcac0;
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -3px 15px #0000000c;
  }
  .bottom-nav a { flex: 1; text-align: center; padding: 8px 2px 6px; font-size: .69rem; font-weight: 800; line-height: 1.2; }
  .bottom-nav .icon { display: block; font-size: 1.22rem; line-height: 1.4; }
  .bottom-nav a[aria-current="page"] { background: #fff4c6; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
