/* =========================================================
   Luna Miya & Mepi Latte — Eternal Bond 2026.07.11
   Theme: 夜のセレモニー（ネイビー × ゴールド × アイボリー）
   ========================================================= */

:root {
  --navy-deepest: #090f1e;
  --navy-deep:    #0d1526;
  --navy:         #12203a;
  --navy-light:   #1b2c4d;
  --gold:         #c9a86a;
  --gold-light:   #e8d5a8;
  --gold-dim:     rgba(201, 168, 106, 0.35);
  --ivory:        #f7f3ea;
  --text:         #e9e4d8;
  --text-muted:   #9aa7bf;
  --font-serif-en: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-serif-ja: "Noto Serif JP", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif-ja);
  font-weight: 300;
  color: var(--text);
  background: var(--navy-deepest);
  line-height: 1.9;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------
   背景パーティクル（js/main.js が描画）
   --------------------------------------------------------- */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ---------------------------------------------------------
   スクロール出現アニメーション
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------
   飾り罫（ライン ◆ ライン）
   --------------------------------------------------------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 26px auto;
}
.ornament-line {
  display: block;
  width: min(120px, 26vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament-line:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.ornament-diamond {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--gold-dim);
}

/* =========================================================
   トップページ HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 24px 120px;
  overflow: hidden;
  z-index: 2;

  /* --- HERO BACKGROUND ---------------------------------
     実際のSSが用意できたら、下の background を差し替える：

     background:
       linear-gradient(rgba(9, 15, 30, 0.55), rgba(9, 15, 30, 0.8)),
       url("../assets/img/hero.jpg") center / cover no-repeat;

     ※ 上のグラデーションは文字を読みやすくする暗幕。
        SSが明るい場合は 0.55 / 0.8 を強めに調整。
     ------------------------------------------------------ */
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(41, 62, 105, 0.55), transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(30, 44, 76, 0.5), transparent 70%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-deepest) 100%);
}

/* SSに差し替えるまでの装飾: 上下のグロー */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 70vh;
  background: radial-gradient(ellipse at center, rgba(201, 168, 106, 0.08), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 980px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-serif-en);
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.55em;
  text-indent: 0.55em; /* letter-spacing による右ズレ補正 */
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-names {
  font-family: var(--font-serif-en);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.25;
  color: var(--ivory);
  letter-spacing: 0.06em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em 0.45em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}
.hero-names .amp {
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--gold);
}

.hero-date {
  font-family: var(--font-serif-en);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--gold-light);
  margin-top: 10px;
}

.hero-lead {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  color: var(--text-muted);
  margin: 8px 0 54px;
}

/* ---------------------------------------------------------
   メニューカード（豪華ボタン）
   --------------------------------------------------------- */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 26px);
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 680px) {
  .menu-cards { grid-template-columns: 1fr; max-width: 400px; }
}

.menu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 38px 20px 32px;
  background: linear-gradient(160deg, rgba(27, 44, 77, 0.55), rgba(13, 21, 38, 0.75));
  border: 1px solid var(--gold-dim);
  backdrop-filter: blur(4px);
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(201, 168, 106, 0.18);
  outline: none;
}

/* 四隅のゴールド飾り枠 */
.menu-card-frame,
.menu-card-frame::before,
.menu-card-frame::after {
  position: absolute;
  pointer-events: none;
}
.menu-card-frame { inset: 7px; }
.menu-card-frame::before,
.menu-card-frame::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  opacity: 0.85;
  transition: width 0.45s ease, height 0.45s ease;
}
.menu-card-frame::before {
  top: 0; left: 0;
  border-right: none;
  border-bottom: none;
}
.menu-card-frame::after {
  bottom: 0; right: 0;
  border-left: none;
  border-top: none;
}
.menu-card:hover .menu-card-frame::before,
.menu-card:hover .menu-card-frame::after,
.menu-card:focus-visible .menu-card-frame::before,
.menu-card:focus-visible .menu-card-frame::after {
  width: 34px;
  height: 34px;
}

.menu-card-icon {
  width: 44px;
  height: 44px;
  color: var(--gold-light);
}
.menu-card-icon svg { width: 100%; height: 100%; }

.menu-card-title {
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--ivory);
}
.menu-card-sub {
  font-family: var(--font-serif-en);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* スクロールヒント（縦ライン） */
.scroll-hint {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 70px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollPulse 2.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}

/* =========================================================
   下層ページ共通
   ========================================================= */
.page-sub {
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(41, 62, 105, 0.4), transparent 70%),
    var(--navy-deepest);
}

.sub-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 40px);
  background: rgba(9, 15, 30, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 106, 0.18);
}
.back-link {
  font-family: var(--font-serif-en);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  transition: color 0.3s ease;
}
.back-link:hover { color: var(--ivory); }
.back-link span { margin-right: 6px; font-size: 0.8em; }

.sub-header-names {
  font-family: var(--font-serif-en);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
@media (max-width: 520px) {
  .sub-header-names { display: none; }
}

.sub-main {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) 24px 80px;
}
.sub-main-wide { max-width: 1120px; }

.page-title { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.page-title-en {
  font-family: var(--font-serif-en);
  font-size: 0.9rem;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
}
.page-title-ja {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--ivory);
  margin-top: 8px;
}
.page-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   ページ下部ナビ
   --------------------------------------------------------- */
.page-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  margin-top: clamp(56px, 8vw, 80px);
}
.page-nav-link {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.page-nav-link:hover {
  color: var(--ivory);
  border-color: var(--gold);
}
.page-nav-link span { margin-left: 6px; font-size: 0.8em; }

/* =========================================================
   本編動画ページ
   ========================================================= */
.theater { text-align: center; }

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  border: 1px solid var(--gold-dim);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(201, 168, 106, 0.08);
}
.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(27, 44, 77, 0.6), transparent 75%),
    var(--navy-deep);
}
.video-placeholder-inner {
  font-family: var(--font-serif-en);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-light);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
}
.video-placeholder-icon {
  display: block;
  width: clamp(48px, 8vw, 72px);
  margin: 0 auto 18px;
  color: var(--gold);
  opacity: 0.9;
}
.video-placeholder-icon svg { width: 100%; height: 100%; }
.video-placeholder-note {
  font-family: var(--font-serif-ja);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 10px;
}

.theater-caption {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

/* =========================================================
   SSギャラリーページ
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 22px);
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.22);
  cursor: pointer;
  background: var(--navy-deep);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 15, 30, 0.55));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.08); }
.gallery-item:hover::after { opacity: 1; }

/* ---------------------------------------------------------
   ライトボックス
   --------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.93);
  backdrop-filter: blur(6px);
  padding: clamp(16px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  max-width: min(1200px, 92vw);
  max-height: 86vh;
  text-align: center;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  z-index: 101;
  background: none;
  border: none;
  color: var(--ivory);
  cursor: pointer;
  font-family: var(--font-serif-en);
  opacity: 0.7;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { opacity: 1; color: var(--gold-light); }

.lightbox-close {
  top: 14px;
  right: 22px;
  font-size: 2.6rem;
  line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  padding: 20px 14px;
}
.lightbox-prev { left: clamp(4px, 2vw, 24px); }
.lightbox-next { right: clamp(4px, 2vw, 24px); }

/* =========================================================
   メッセージページ
   ========================================================= */
.messages {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 4vw, 34px);
}

.message-card {
  position: relative;
  padding: clamp(26px, 4.5vw, 40px) clamp(24px, 5vw, 52px);
  background: linear-gradient(160deg, rgba(27, 44, 77, 0.4), rgba(13, 21, 38, 0.7));
  border: 1px solid rgba(201, 168, 106, 0.22);
  border-left: 2px solid var(--gold);
}

.message-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.18);
}
.message-avatar {
  width: clamp(52px, 8vw, 64px);
  height: clamp(52px, 8vw, 64px);
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 3px rgba(201, 168, 106, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.45);
  background: var(--navy-deep);
}
.message-sender {
  font-family: var(--font-serif-en);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  line-height: 1.4;
}

.message-body {
  font-size: 0.98rem;
  color: var(--text);
}
.message-image {
  margin: 0 auto;
  border: 1px solid var(--gold-dim);
}

/* =========================================================
   フッター
   ========================================================= */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 56px 24px 40px;
  border-top: 1px solid rgba(201, 168, 106, 0.15);
  background: var(--navy-deepest);
  font-family: var(--font-serif-en);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}
.footer-ornament {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.footer-note {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
