/* ==========================================================================
   Vage-Table 1周年記念特別サイト
   ========================================================================== */

/* Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style-position: outside; }

/* Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --color-text: #212529;
  --color-text-muted: #495057;
  --color-bg: #ffffff;

  --color-header: #5f6a2a;        /* CTA のオリーブ(#798535)より一段深いオリーブ */
  --color-header-text: #ffffff;
  --color-footer-bg: #343a40;     /* フッターは従来のグレーを維持 */

  --color-accent: #f8be6e;        /* ヘッダー CTA ボタン */
  --color-accent-text: #3d2e12;   /* 濃い茶（ボタン背景とのコントラスト確保） */

  --color-beige: #f0e7d0;         /* ヒーロー左・帯 */
  --color-beige-text: #5c4a1e;    /* ベージュ地の本文（コントラスト 6.95:1） */
  --color-brand: #9a6d48;         /* ベージュ地の大見出し（大文字サイズのみ） */

  --color-olive: #798535;         /* CTA セクション */
  --color-olive-text: #ffffff;

  --color-placeholder: #e9ecef;
  --color-footer-text: #868e96;

  --focus-ring: #228be6;
  --header-height: 60px;
}

/* Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

/* Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 10%;
  z-index: 200;
  padding: 10px 16px;
  background-color: var(--color-header);
  color: var(--color-header-text);
  font-weight: 700;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 0;
}

/* Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
}

.btn:hover {
  opacity: 0.85;
}

.btn:active {
  transform: translateY(1px);
}

.btn--header {
  padding: 10px 22px;
  font-size: 0.9rem;
  border-radius: 4px;
  background-color: var(--color-accent);
  color: var(--color-accent-text);
}

.btn--header:focus-visible {
  outline-color: var(--color-accent);
}

.btn--cta {
  padding: 14px 40px;
  font-size: 1rem;
  border-radius: 6px;
  background-color: #ffffff;
  color: var(--color-olive);
}

.btn--cta:focus-visible {
  outline-color: #ffffff;
}

/* 開催終了バッジ。<span> で出すのでリンクではない（終わった回に申し込めないようにする） */
.btn--ended {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--color-header-text);
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: default;
}

.btn--cta.btn--ended {
  background-color: transparent;
  color: var(--color-olive-text);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* ボタンではないのでホバー・押下の反応を消す */
.btn--ended:hover { opacity: 1; }
.btn--ended:active { transform: none; }

/* Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 10%;
  background-color: var(--color-header);
  color: var(--color-header-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.site-header__title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* サイト名を本体サイトのトップへの戻り導線にする */
.site-header__home {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  background-color: var(--color-beige);
}

.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 6% 64px 10%;   /* 左右10%規約準拠（列幅に対する%） */
  background-color: var(--color-beige);
  color: var(--color-beige-text);
}

.hero__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.hero__brand {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.12em;
  color: var(--color-brand);
  white-space: nowrap;
}

.hero__lead {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mincho);
  font-size: clamp(1.15rem, 2.3vw, 1.68rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-beige-text);
}

.hero__lead-line {
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero__lead-part {
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 終了済みであることをヒーローでも明示する（日付だけだと開催予定に読めるため） */
.hero__status {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--color-beige-text);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
}

.hero__date {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
}

.hero__date-time {
  display: inline-block;
  white-space: nowrap;
}

.hero__place {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.hero__figure {
  min-height: 100%;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Content sections
   -------------------------------------------------------------------------- */
.section {
  padding: 56px 10%;
}

.section + .section {
  padding-top: 0;
}

.section__title {
  position: relative;
  font-family: var(--font-mincho);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
  padding-bottom: 12px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--color-accent);
}

.section__body {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-muted);
}

.section__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-brand);
  margin-top: 28px;
  margin-bottom: 12px;
}

.list {
  padding-left: 1.5em;
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text-muted);
}

.list li::marker {
  color: var(--color-brand);
}

/* Anniversary contents (cards)
   -------------------------------------------------------------------------- */
.section--cards {
  background-color: #f6f1e4;
}

.section--cards .section__title {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card__icon {
  flex-shrink: 0;
}

.card__text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
}

/* Photos (3 columns)
   -------------------------------------------------------------------------- */
.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.photos__item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--color-placeholder);
}

.photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Band (beige call-out)
   -------------------------------------------------------------------------- */
.band {
  padding: 40px 10%;
  background-color: var(--color-beige);
  text-align: center;
}

.band__text {
  font-family: var(--font-mincho);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-beige-text);
}

.band__line {
  display: inline-block;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* CTA
   -------------------------------------------------------------------------- */
.cta {
  padding: 64px 10%;
  background-color: var(--color-olive);
  color: var(--color-olive-text);
  text-align: center;
}

.cta__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.cta__body {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 28px;
}

.cta__back {
  margin-top: 20px;
  font-size: 0.9rem;
}

.cta__back a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 20px 10%;
  background-color: var(--color-footer-bg);
  color: var(--color-header-text);
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer__nav a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer__copy {
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* Reveal (JS フェードイン。JS 無効時はそのまま表示)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    order: -1;
    min-height: 0;
  }

  .hero__figure img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero__text {
    padding: 48px 10%;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 10px 10% 12px;
    gap: 8px;
  }

  .site-header__title {
    flex-basis: 100%;
    font-size: 1rem;
  }

  .btn--header {
    flex-basis: 100%;
  }

  .section {
    padding: 40px 10%;
  }

  .photos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta {
    padding: 48px 10%;
  }

  .btn--cta {
    width: 100%;
  }
}

/* Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Print
   -------------------------------------------------------------------------- */
@media print {
  body { color: #000; background: #fff; }
  .site-header { position: static; box-shadow: none; }
  .js .reveal { opacity: 1; transform: none; }
  a { color: #000; text-decoration: underline; }
}
