/* style.css */

html {
  scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    font-family: "Noto Serif JP", serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color:#222;
    background-color: #f7f7f9; /* #f9f9f9 */
}

ul{
    list-style: none;  
}

/* === テキストユーティリティ === */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}
.text-right{
    text-align: right;
}

.text-justify{
    margin: 0 auto;
    text-align: justify;
    max-width:760px;
    padding:0 20px 0;
}

a {
  color: #222;
  text-decoration: none; 
  transition: 0.3s;
}

a:hover {
  color: #5b3180;
  text-decoration: underline;
}

/* === スプラッシュ（オープニング）画面 === */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    /* ゆっくりと霧が晴れるような2秒のトランジション */
    transition: opacity 2s ease, filter 2s ease;
    filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f9;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画面いっぱいに動画をトリミングして表示 */
}

#skip-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    z-index: 10000;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

#skip-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

/* === モバイル設定 === */
@media (max-width:768px) {
#intro-video {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    margin-top: -100px;
}
#skip-btn {
    position: absolute;
    bottom: 30%;
    right: 8%;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    z-index: 10000;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

}


nav ul{
    font-weight: 700;
    display:flex;
    justify-content: center;
}

nav ul li{
    border-right: 2px solid #5b318033;
    padding:0 20px;
    font-size: 1.1rem;
}

nav ul li:last-child {
    border-right: none;
    padding:0 20px;
    font-size: 1.1rem;
}

nav h1{
    font-size: 1.2rem;
    color: #5b3180;
}

nav .logo{
    display:flex;
    padding-top: 10px;
}

nav .logo img{
    width: 42px;
    height:42px;
    padding:8px 10px 0 20px;
}


/* === モバイル設定 === */
@media (max-width:480px) {
nav h1{
    font-size: 0.9rem;
}
nav .logo img{
    width: 36px;
    height:36px;
    padding:4px 4px 0 10px;
}
}

/* === メインコンテンツ === */
#contents {
    display: none; /* 初期状態は非表示（JSで表示切り替え） */
    opacity: 0;
    filter: blur(15px); /* 最初は霧のようにぼやけさせる */
    transition: opacity 2s ease, filter 2s ease; /* 2秒かけて霧が晴れる */
}

.page-content {
    width: 100%;
}

.inner-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.inner-content2 {
    max-width: 640px;
    margin: 0 auto;
    padding-left:160px;
    padding-bottom: 100px; /*QRコードなしの倍の余白 */
    position: relative;
}

/*QRコードなしの倍の余白 */
.inner-content3 {
    max-width: 640px;
    margin: 0 auto;
    padding-left:160px;
    padding-bottom: 200px;
    position: relative;
}

.inner-content .ceremony-title{
    position: absolute;
    left: 10%;
    top: 15%;
}
.inner-content .btn{
    background-color: #5b3180;
    margin: 0 auto;
    border-radius: 8px;
    height: 44px;
    width:240px;
    color:#f7f7f9;
    font-size: 1.1rem;
    line-height: 44px;
}

.qr-code{
    width:220px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* === モバイル設定 === */
@media (max-width:480px) {
.inner-content2, .inner-content3{
    padding-left:90px;
    padding-right: 20px;
    padding-bottom: 0px; /* QRコードなしの場合の余白*/
}
.inner-content .ceremony-title{
    position: absolute;
    left: 0%;
    top: 6%;
}
.inner-content .btn{
    background-color: #5b3180;
    margin: 0 auto;
    border-radius: 8px;
    height: 44px;
    width:240px;
    color:#f7f7f9;
    font-size: 1.1rem;
    line-height: 44px;
}
}

/* === アニメーション === */
.fade-in {
    opacity: 0;
    transform: translateY(60px);/*40px*/
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* === セクションブロック === */

.page-content p, .page-content ul {
    line-height: 1.7;
}

.page-content li {
    margin-bottom: 10px;
}

.section-block {
    background: #f7f7f9;
    padding: 100px 0; /* 余白を広めに取ってゆったり見せる */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 縦方向の中央にコンテンツを配置 */
}

.section-block-floral {
    background-image: url("../images/bg-floral.png");
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-block h2,.section-block-floral h2{
    color: #5b3180;
    font-size: 2.5rem;
    margin-top: 20px;
    margin-bottom: 30px;
    letter-spacing: 0.2rem;
}

.section-block h3{
    color: #5b3180;
    font-size: 9rem;
    font-weight: 800;
    margin-top: -20px;
    margin-bottom: -30px;
    opacity: 0.2;
    text-align: left;
}

.section-block-floral h3{
    color: #5b3180;
    font-size: 9rem;
    font-weight: 800;
    margin-top: -20px;
    margin-bottom: -30px;
    opacity: 0.26;
    text-align: left;
}

/* === モバイル設定 === */
@media (max-width:480px) {
p ,li{
    font-size: 15px;
}	
.section-block h2,.section-block-floral h2{
    font-size: 26px !important;
}	
.section-block h3,.section-block-floral h3{
    font-size: 50px;
}
h4 img{
    width:20%;
}
}

#news ul{
    margin-top: 10px;
    margin-left:6%;
}

.title-img{
    position: relative;
}

.title-img img{
    width:100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    margin:-100px 0 90px;
}

.title-img .title-white{
    color:#f7f7f9;
    text-align: center;
    position: absolute;
    z-index: 100;
    top:-10%;
    left:34%;
} 

.section-block-floral .title-img .title-white h2{
    color:#f7f7f9;
    font-size: 3.8vw;
    margin-bottom: 0px;
} 

.title-img .title-white p{
    font-size: 2vw;
    margin-top: 0px;
} 

/* === モバイル設定 === */
@media (max-width:480px) {
#news img{
    width:80%;
}

.title-img .title-white{
    color:#f7f7f9;
    text-align: center;
    position: absolute;
    z-index: 100;
    top:-100px;
    left:20%;
} 

.section-block-floral .title-img .title-white h2{
    color:#f7f7f9;
    font-size: 3.4vw;
    margin-bottom: 0px;
} 

.title-img .title-white p{
    font-size: 2.4vw;
    margin-top: 0px;
} 
}

/* === フッター === */
footer {
    text-align: center;
    padding: 30px;
    color: #f7f7f9;
    background: #c1b4ce;
    text-align: center;
    font-size: .8em;
}

footer a{
    color: #f7f7f9;
}

/* === リロードボタン（旧トップに戻るボタンの見た目） === */
.reload-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #5b3180;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.reload-btn:hover {
    transform: translateY(-5px);
    background-color: #5b3180;
    opacity:0.7;
}

.reload-btn.show {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   ハンバーガーメニュー（既存navを利用）
========================================= */

/* PCではハンバーガーボタンを隠す */
.hamburger {
    display: none; 
}

/* === スマホサイズ（768px以下）の設定 === */
@media (max-width: 768px) {
    
    /* 1. ハンバーガーボタンを表示・配置 */
    .hamburger {
        display: block;
        position: fixed;
        top: 15px; 
        right: 15px;
        width: 44px;
        height: 44px;
        background: #5b3180;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        z-index: 10001; /* メニューより上に配置 */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* ハンバーガーの3本線 */
    .hamburger span {
        position: absolute;
        left: 8px;
        width: 28px;
        height: 2px;
        background-color: #f7f7f9;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) { top: 12px; }
    .hamburger span:nth-child(2) { top: 21px; }
    .hamburger span:nth-child(3) { top: 30px; }

    /* ボタンがクリックされた時の×印アニメーション */
    .hamburger.is-active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }

    /* 2. 既存のメニュー(ul)を全画面オーバーレイに変身させる */
    #nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(247, 247, 249, 0.95); /* 背景を少し透過 */
        z-index: 10000;
        flex-direction: column; /* 横並びから縦並びに変更 */
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        /* 最初は見えない状態にしておく */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    /* メニューが開いた状態 */
    #nav-menu.is-active {
        opacity: 1;
        visibility: visible;
    }

    /* 3. メニューの項目のデザイン調整 */
    nav ul li,
    nav ul li:last-child {
        border-right: none; /* PC用の区切り線を消す */
        padding: 15px 0;
        font-size: 1.2rem;
    }
}