/* =========================================
   1. 基本設定 & 共通スタイル
   ========================================= */
:root {
    --primary-color: #1a2530; /* より深く、シックなネイビーグレー */
    --accent-color: #c4a77d;  /* 華やかなゴールド */
    --bg-light: #fdfcf9;      /* 柔らかなアイボリー */
    --text-color: #333;
    --white: #ffffff;
    --transition: all 0.5s ease; /* スムーズなアニメーション用 */
}

html {
    scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif JP', serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.9;
    overflow-x: hidden; /* 横スクロールを防止 */
}

h1, h2, .eng {
    font-family: 'Cormorant Garamond', serif;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin: 0 0 15px;
}

section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.divider {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 40px auto;
    position: relative;
}
.divider::after { /* ゴールドの点を追加 */
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: var(--accent-color);
    border-radius: 50%;
}
.divider.white { background: var(--white); }
.divider.white::after { background: var(--white); }

/* =========================================
   2. ハンバーガーメニュー
   ========================================= */
.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100; /* 最前面に */
}

#menu-btn-check { display: none; } /* チェックボックスは隠す */

.menu-btn {
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
}

/* 三本線 */
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 2px;
    width: 25px;
    border-radius: 3px;
    background-color: var(--primary-color);
    position: absolute;
    transition: var(--transition);
}
.menu-btn span:before { bottom: 8px; }
.menu-btn span:after { top: 8px; }

/* クリック時のアニメーション (×印に) */
#menu-btn-check:checked ~ .menu-btn span { background-color: rgba(255, 255, 255, 0); }
#menu-btn-check:checked ~ .menu-btn span::before { bottom: 0; transform: rotate(45deg); }
#menu-btn-check:checked ~ .menu-btn span::after { top: 0; transform: rotate(-45deg); }

/* メニュー中身 (オーバーレイ) */
.menu-content {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -100%; /* 初期は画面外 */
    z-index: 99;
    background-color: rgba(26, 37, 48, 0.95); /* 深いネイビーグレー */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

#menu-btn-check:checked ~ .menu-content { left: 0; } /* クリックで画面内に */

.menu-content ul { padding: 0; list-style: none; text-align: center; }
.menu-content ul li { margin: 30px 0; opacity: 0; transform: translateY(20px); }

/* メニュー項目のフェードインアニメーション */
#menu-btn-check:checked ~ .menu-content ul li {
    animation: fadeInUp 0.5s ease forwards;
}
#menu-btn-check:checked ~ .menu-content ul li:nth-child(1) { animation-delay: 0.2s; }
#menu-btn-check:checked ~ .menu-content ul li:nth-child(2) { animation-delay: 0.3s; }
#menu-btn-check:checked ~ .menu-content ul li:nth-child(3) { animation-delay: 0.4s; }
#menu-btn-check:checked ~ .menu-content ul li:nth-child(4) { animation-delay: 0.5s; }
#menu-btn-check:checked ~ .menu-content ul li:nth-child(5) { animation-delay: 0.6s; }
#menu-btn-check:checked ~ .menu-content ul li:nth-child(6) { animation-delay: 0.7s; }

.menu-content ul li a {
    display: block;
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}
.menu-content ul li a::after { /* ホバー時の下線 */
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}
.menu-content ul li a:hover { color: var(--accent-color); }
.menu-content ul li a:hover::after { width: 50px; }

/* =========================================
   3. アニメーション定義 Keyframes
   ========================================= */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes titleFadeIn {
    0% { opacity: 0; transform: translateY(30px); filter: blur(5px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes shiny { /* 光が走るエフェクト */
    100% { left: 125%; }
}

/* =========================================
   4. 各セクションの豪華な装飾 & 動き
   ========================================= */

/* --- 1. TOPページ --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-shadow: 0 2px 15px rgba(0,0,0,0.6);
}
.parallax-bg { /* パララックス効果 */
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('Top.jpg') center/cover no-repeat;
    background-attachment: fixed; /* 背景を固定 */
}

.hero-content {
    text-align: center;
}
.hero-content.fade-in h1 {
    animation: titleFadeIn 1.5s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}
.hero-content.fade-in .engNames {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    animation: titleFadeIn 1.5s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
    margin: 10px 0;
}
.hero-date, .hero-place {
    font-size: 1.2rem;
    animation: titleFadeIn 1.5s ease-out forwards;
    animation-delay: 1.3s;
    opacity: 0;
}

/* --- スクロールアニメーション (ふわっと登場) --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 2. メッセージ --- */
.message { background-color: var(--white); }

/* --- 3. 新郎新婦紹介 --- */
.profile-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}
.profile-card {
    flex: 0 1 350px;
    background: var(--white);
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden; /* 光エフェクト用 */
}
.profile-card:hover { /* ホバーで優雅に浮き上がる */
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(196, 167, 125, 0.15);
}
.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 4px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.profile-name { font-size: 1.5rem; color: var(--accent-color); font-weight: 500; }
.profile-info { font-size: 0.95rem; margin-bottom: 25px; color: #777; }

/* --- 4. カウントダウン (修正版) --- */
.countdown-wrap {
    background: var(--primary-color);
    color: var(--white);
    padding: 100px 20px;
    display: flex;           /* Flexboxを有効化 */
    flex-direction: column;  /* 縦に並べる */
    align-items: center;     /* すべての要素を水平中央に */
    text-align: center;
}

#timer {
    font-size: 3.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    display: flex;
    justify-content: center; /* タイマー内の数字を中央に */
    gap: 30px;
    margin-bottom: 20px;     /* 下の間隔を調整 */
}

.countdown-wrap .eng {
    margin-bottom: 40px;     /* タイトル下の余白 */
}

.timer-unit { 
    font-size: 1.1rem; 
    display: block; 
    color: var(--accent-color); 
    margin-top: -10px;
}

/* Our Big Day のテキスト */
.countdown-wrap p {
    margin-top: 20px;
    letter-spacing: 0.1em;
}
/* --- 5. インフォメーション --- */
.info-details { margin-bottom: 50px; font-size: 1.1rem; }
.info-details strong { color: var(--accent-color); }

iframe {
    width: 100%;
    height: 450px;
    border: 0;
    transition: var(--transition);
}

.map-container {
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}
.hover-zoom:hover iframe { /* ホバーで地図を少しズーム */
    transform: scale(1.05);
}
iframe { width: 100%; height: 450px; border: 0; transition: var(--transition); }

/* --- 6. ご出欠 & 光エフェクト --- */
.rsvp {
    background-color: var(--white);
    border: 1px solid rgba(196, 167, 125, 0.3);
    border-radius: 12px;
    margin: 100px auto;
    padding: 80px 40px;
    max-width: 850px;
}
.rsvp-content { max-width: 600px; margin: 0 auto; }
.deadline {
    font-weight: 500;
    color: #b35c2e; /* 落ち着いたテラコッタ */
    font-size: 1.3rem;
    display: block;
    margin: 25px 0 40px;
    position: relative;
    display: inline-block;
}
.deadline::after { /* アンダーラインを豪華に */
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: repeating-linear-gradient(90deg, #b35c2e, #b35c2e 2px, transparent 2px, transparent 4px);
}

.btn-rsvp {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 40px;
    transition: var(--transition);
    letter-spacing: 0.2em;
    font-weight: 500;
    position: relative;
    overflow: hidden; /* 光エフェクト用 */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.btn-rsvp:hover {
    background-color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* 光が走るエフェクトの共通スタイル (.shiny-effectを付与) */
.shiny-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 100%);
    transform: skewX(-25deg);
}
.shiny-effect:hover::before {
    animation: shiny 0.75s;
}

/* =========================================
   5. フッター & レスポンシブ
   ========================================= */
footer {
    padding-bottom: 50px;
    font-size: 0.85rem;
    color: #aaa;
    text-align: center;
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero-content.fade-in .engNames { font-size: 2.8rem; }
    #timer { font-size: 2.5rem; gap: 20px; }
    section { padding: 70px 15px; }
    .profile-card { padding: 30px; }
    .rsvp { padding: 50px 20px; margin: 70px 15px; }
}
