/* ============================================
   高雄物怪遊山 — HISREN KYOTO イベントページ
   デザインは hisrenkyoto.com（仁和寺 春の妖怪宵遊び）に準拠
   ============================================ */

:root {
  --serif: "A1明朝", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --en: "Frank Ruhl Libre", "Times New Roman", serif;
  --logo: "Raleway", sans-serif;
  --text: #fff;
  --accent: #d0021b;   /* お知らせの赤 */
  --overlay: rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--text);
  background: #000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- 固定背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("images/bg.jpg") center / cover no-repeat;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}
.menu-btn {
  width: 30px; height: 20px;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.menu-btn span {
  display: block; height: 1px; background: #fff;
}
.menu-btn span:first-child { width: 22px; }
.menu-btn span:last-child { width: 14px; }

/* ---------- メニュー ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s cubic-bezier(.4,.4,0,1), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu ul { text-align: center; }
.menu li + li { margin-top: 24px; }
.menu a { font-size: 20px; letter-spacing: 0.2em; transition: opacity .3s; }
.menu a:hover { opacity: .6; }
.menu-close {
  position: absolute; top: 30px; left: 30px;
  background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; line-height: 1;
}
.menu-logo, .footer-logo {
  font-family: var(--logo);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.12em;
  line-height: 1.15;
}

/* PC用の横並びメニュー（スマホでは非表示） */
.header-nav { display: none; }
.header.is-scrolled { background: rgba(0, 0, 0, 0.7); }
.header { transition: background .4s; }

/* ---------- メインビジュアル ---------- */
.hero {
  max-width: 1000px;
  margin: 0 auto;
}
.hero-img { width: 100%; }
/* PCのみ表示。スマホでは見た目を隠すが、検索エンジンと読み上げには残す */
.hero-info {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- お知らせ ---------- */
.notice {
  max-width: 1160px;
  margin: 60px auto 0;
  background: #000;
  padding: 100px 40px;
  text-align: center;
}
.notice p {
  color: var(--accent);
  font-size: clamp(20px, 3.4vw, 44px);
  letter-spacing: 0.12em;
  line-height: 1.5;
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 120px 20px 0;
}
.section-title {
  text-align: center;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 40px;
}
.link {
  display: inline-block;
  border-bottom: 1px solid #fff;
  letter-spacing: 0.1em;
  padding-bottom: 2px;
  transition: opacity .3s;
}
.link:hover { opacity: .6; }

/* ---------- コンセプト（縦書き） ---------- */
.concept-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 60px;
}
.concept-catch {
  writing-mode: vertical-rl;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: 0.2em;
  line-height: 1.6;
}
.concept-body {
  display: flex;
  flex-direction: row-reverse;
  gap: 40px;
  align-items: flex-start;
}
.concept-body p {
  writing-mode: vertical-rl;
  font-size: 16px;
  letter-spacing: 0.15em;
  line-height: 2.2;
  height: 480px;
}

/* ---------- 開催概要 ---------- */
.outline {
  max-width: 580px;
  margin: 0 auto;
}
.outline div {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.outline dt {
  flex: 0 0 128px;
  border: 1px solid #fff;
  text-align: center;
  font-size: 17px;
  letter-spacing: 0.1em;
  padding: 1px 0;
}
.outline dd {
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

/* ---------- 遊び方（スライダー） ---------- */
.time-label {
  display: table;
  margin: 0 auto;
  font-family: var(--en);
  font-size: 30px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #fff;
  white-space: pre;
}
.slider {
  margin: 60px -20px;   /* セクションの左右余白を打ち消して画面幅いっぱいに */
}
.slider-track {
  --card: 360px;
  --gap: 20px;
  --side: calc(50% - var(--card) / 2);  /* 最初と最後のカードを中央に置くための余白 */
  position: relative;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
/* 左右の余白は要素で確保（Safariはスクロール領域の右paddingを無視するため） */
.slider-track::before,
.slider-track::after {
  content: "";
  flex: 0 0 calc(var(--side) - var(--gap));
}
.card {
  flex: 0 0 var(--card);
  scroll-snap-align: center;
}
.card-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.card-num {
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: 0.15em;
  margin-top: 16px;
  opacity: .8;
}
.card h3 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin: 4px 0 8px;
}
.card p:last-child {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.8;
}
.slider-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.slider-nav button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .3s;
}
.slider-nav button:hover { background: rgba(255,255,255,.2); }
.slider-nav button:disabled { opacity: .3; cursor: default; background: rgba(0,0,0,.4); }

/* ---------- 各セクションのご注意 ---------- */
.notes {
  max-width: 760px;
  margin: 56px auto 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
}
.notes-title {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.notes li {
  padding-left: 1.2em;
  text-indent: -1.2em;
}
.notes li::before { content: "◯ "; }
.notes li + li { margin-top: 8px; }

/* ---------- 川床妖怪茶屋・お面教室 ---------- */
.activity {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}
.activity-figure {
  position: relative;
  flex: 0 0 400px;
  width: 400px;
}
.activity-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* 「※画像はイメージです」の注記（画像の右下に重ねる） */
.img-note {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .55);
  color: rgba(255, 255, 255, .9);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  pointer-events: none;
}
.activity-catch {
  font-size: 24px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  margin-bottom: 16px;
}
.activity-text {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
}
.activity-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.activity-menu li {
  border: 1px solid #fff;
  padding: 4px 18px;
  font-size: 16px;
  letter-spacing: 0.1em;
}
.activity-info {
  margin-top: 16px;
  font-size: 16px;
  letter-spacing: 0.1em;
}
.activity-small {
  font-family: var(--sans);
  font-size: 13px;
  opacity: .8;
  margin-top: 12px;
}
.activity-bonus {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  background: rgba(0, 0, 0, .45);
  font-size: 17px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.activity-bonus span {
  display: block;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

/* ---------- 妖怪謎解き ---------- */
.time-label--first { margin-top: 64px; }

/* ---------- 妖怪出現エリア ---------- */
.area-intro {
  max-width: 640px;
  margin: 0 auto 40px;
}
.area-catch {
  font-size: 24px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 16px;
}
.area-lead {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
}
.area {
  max-width: 640px;
  margin: 0 auto;
}
.area-map { position: relative; }
.area-img { width: 100%; }
.area-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.area-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.area-dot { fill: #fff; stroke: var(--accent); stroke-width: 3; }
.area-label {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.08em;
  fill: #fff;
  paint-order: stroke;
  stroke: #111;
  stroke-width: 6px;
  stroke-linejoin: round;
}
.area-label--sub { font-size: 23px; fill: #b9c4cc; }
.area-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 15px;
  letter-spacing: 0.08em;
}
.area-legend-line {
  flex: 0 0 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.area-credit {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  opacity: .6;
}

/* ---------- 主催 ---------- */
.organizer {
  max-width: 680px;
  margin: 0 auto;
}
.organizer-name { font-size: 32px; letter-spacing: 0.02em; line-height: 1.3; }
.organizer-role { font-size: 20px; margin-bottom: 12px; }
.organizer-text {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 4px;
}
.organizer-text + .organizer-text { margin-top: 1em; }
.organizer .link { margin-top: 16px; }

/* ---------- アクセス ---------- */
.access {
  max-width: 480px;
  margin: 0 auto;
}
.map {
  aspect-ratio: 1 / 1;
  background: #fff;
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.access-list {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
}
.access-list dt { margin-top: 16px; }

/* ---------- フッター ---------- */
.footer {
  margin-top: 160px;
  padding: 60px 30px 40px;
  background: rgba(0,0,0,.8);
}
.footer-copy {
  margin-top: 24px;
  font-family: var(--en);
  font-size: 12px;
  opacity: .7;
}

/* ---------- ふわっと表示 ---------- */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(.4,.4,0,1), transform 1s cubic-bezier(.4,.4,0,1);
}
.fade.is-show { opacity: 1; transform: none; }

/* ---------- PC（1024px〜） ---------- */
@media (min-width: 1024px) {
  /* ヘッダー：ハンバーガーをやめて横並びメニュー */
  .menu-btn { display: none; }
  .header { justify-content: flex-end; padding: 0 48px; height: 80px; }
  .header-nav { display: flex; gap: 28px; }
  .header-nav a {
    font-size: 14px;
    letter-spacing: 0.15em;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
  }
  .header-nav a:hover { border-color: #fff; }

  /* メインビジュアル：ポスターを1画面に収め、右にイベント情報 */
  .hero {
    max-width: 1200px;
    min-height: 100vh;
    padding: 110px 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
  }
  .hero-img {
    width: auto;
    height: calc(100vh - 150px);
    max-height: 1100px;
    aspect-ratio: 1000 / 1414;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  }
  .hero-info {
    width: auto; height: auto;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    gap: 48px;
    position: relative;
    align-self: stretch;
    padding: 20px 0 80px;
  }
  .hero-title {
    writing-mode: vertical-rl;
    font-size: clamp(56px, 5.5vw, 84px);
    font-weight: 400;
    letter-spacing: 0.25em;
    line-height: 1;
  }
  .hero-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 12px;
  }
  .hero-sub {
    writing-mode: vertical-rl;
    font-size: 20px;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
  }
  .hero-date, .hero-time {
    font-family: var(--en);
    letter-spacing: 0.08em;
  }
  .hero-date { font-size: 34px; line-height: 1; }
  .hero-date span { font-size: 14px; letter-spacing: 0.2em; margin-left: 10px; vertical-align: middle; }
  .hero-time { font-size: 22px; }
  .hero-place { font-size: 15px; letter-spacing: 0.2em; }
  .hero-scroll {
    position: absolute;
    left: 0; bottom: 0;
    font-family: var(--en);
    font-size: 12px;
    letter-spacing: 0.3em;
    padding-bottom: 56px;
  }
  .hero-scroll::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 1px; height: 44px;
    background: #fff;
    animation: scrollLine 2s cubic-bezier(.4,.4,0,1) infinite;
    transform-origin: top;
  }
  @keyframes scrollLine {
    0% { transform: scaleY(0); }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  /* お知らせ */
  .notice { max-width: 1000px; padding: 64px 40px; margin-top: 40px; }
  .notice p { font-size: 32px; }

  /* セクション間の余白を広めに */
  .section { padding-top: 160px; }
  .section-title { margin-bottom: 64px; }

  /* 開催概要：少し幅を広げる */
  .outline { max-width: 720px; }
  .outline dt { flex-basis: 150px; }

  /* 遊び方：4枚を横一列に並べ、スライド操作は不要に */
  .slider { margin: 64px auto; max-width: 1200px; }
  .slider-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    overflow: visible;
    padding: 0 48px;
  }
  .slider-track::before,
  .slider-track::after { display: none; }
  .slider-nav { display: none; }
  .card { position: relative; }
  .card img { transition: transform .6s cubic-bezier(.4,.4,0,1); }
  .card:hover img { transform: scale(1.03); }

  /* ご注意：枠で囲って読みやすく */
  .notes {
    border: 1px solid rgba(255, 255, 255, .5);
    padding: 32px 56px;
    background: rgba(0, 0, 0, .35);
  }
  .activity { gap: 56px; }
  .activity-figure { flex-basis: 440px; width: 440px; }

  /* 主催：少し幅を広げる */
  .organizer { max-width: 760px; }

  /* アクセス：地図と説明を横並び */
  .access {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 56px;
    align-items: center;
  }
  .map { aspect-ratio: 4 / 3; }
  .access-list { margin-top: 0; font-size: 16px; }
  .access-list dt:first-child { margin-top: 0; }

  /* フッター：ロゴとコピーライトを左右に */
  .footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 64px 48px 48px;
  }
  .footer-copy { margin-top: 0; }
}

/* ---------- タブレット（〜768px） ---------- */
@media (max-width: 768px) {
  .header { height: 80px; padding: 0 20px; }
  .section { padding-top: 90px; }
  .notice { margin: 40px 20px 0; padding: 60px 20px; }
  .concept-inner { flex-direction: column; align-items: center; gap: 40px; }
  .concept-body { flex-direction: column; align-items: center; }
  .concept-body p { height: 450px; font-size: 15px; }
  .activity { flex-direction: column; align-items: stretch; gap: 28px; }
  .activity-figure { width: 100%; max-width: 560px; flex-basis: auto; margin: 0 auto; }
  .activity-catch { font-size: 20px; text-align: center; }
}

/* ---------- スマホ（〜540px） ---------- */
@media (max-width: 540px) {
  .notice p { font-size: min(15px, 3.9vw); letter-spacing: 0.04em; }
  .outline div { gap: 12px; margin-bottom: 20px; }
  .outline dt { flex-basis: 92px; font-size: 13px; }
  .outline dd { font-size: 14px; }
  .time-label { font-size: 22px; }
  .slider-track { --card: 280px; --gap: 14px; }
  .organizer-name { font-size: 26px; }
  .organizer-role { font-size: 17px; }
  .organizer-text { font-size: 15px; }
  .concept-body p { height: 460px; font-size: 14px; }
  .section-title { font-size: 30px; letter-spacing: 0.1em; }
  .activity-catch { font-size: 18px; }
  .area-catch { font-size: 18px; }
  .area-lead { font-size: 14px; }
  .activity-text { font-size: 14px; }
  .activity-menu li { font-size: 14px; }
  .activity-bonus { font-size: 15px; }
  .notes { font-size: 14px; margin-top: 40px; }
  .area-legend { font-size: 13px; letter-spacing: 0.04em; }
}
