/* Restored flower loading animation from the earlier Sundayflower version. */
#loader-wrapper {
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    #loader-wrapper .loader,
    #loader-wrapper .dot {
        animation: none !important;
    }
}

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: var(--bg-color); */
    /* background-color: #fff; */
    z-index: 100003;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 6.250em;
    height: 6.250em;
    animation: rotate5123 2.4s linear infinite;
}

.white {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    animation: flash 2.4s linear infinite;
    opacity: 0;
}

.dot {
    position: absolute;
    margin: auto;
    width: 2.4em;
    height: 2.4em;
    border-radius: 100%;
    transition: all 1s ease;
}

.dot:nth-child(2) {
    top: 0;
    bottom: 0;
    left: 0;
    background: #FFA550;
    animation: dotsY 2.4s linear infinite;
}

.dot:nth-child(3) {
    left: 0;
    right: 0;
    top: 0;
    background: #FAD669;
    animation: dotsX 2.4s linear infinite;
}

.dot:nth-child(4) {
    top: 0;
    bottom: 0;
    right: 0;
    background: #6E8755;
    animation: dotsY 2.4s linear infinite;
}

.dot:nth-child(5) {
    left: 0;
    right: 0;
    bottom: 0;
    background: #F21EDC;
    animation: dotsX 2.4s linear infinite;
}

@keyframes rotate5123 {
    0% {
        transform: rotate(0);
    }

    10% {
        width: 6.250em;
        height: 6.250em;
    }

    66% {
        width: 2.4em;
        height: 2.4em;
    }

    100% {
        transform: rotate(360deg);
        width: 6.250em;
        height: 6.250em;
    }
}

@keyframes dotsY {
    66% {
        opacity: .1;
        width: 2.4em;
    }

    77% {
        opacity: 1;
        width: 0;
    }
}

@keyframes dotsX {
    66% {
        opacity: .1;
        height: 2.4em;
    }

    77% {
        opacity: 1;
        height: 0;
    }
}

@keyframes flash {
    33% {
        opacity: 0;
        border-radius: 0%;
    }

    55% {
        opacity: .6;
        border-radius: 100%;
    }

    66% {
        opacity: 0;
    }
}


/* サイト全体の基本設定（本文用） */

body {
    /* 本文は Zen Kaku Gothic New を適用 */
    font-family: "Zen Kaku Gothic New", sans-serif;
    color: #333;
    /* 文字色を少し柔らかい黒にするとお花の写真と合います */
    line-height: 1.8;
    /* 行間を広げると読みやすくなります */
}

/* 見出し（about, News, 行き方, Contactなど）の設定 */
h1,
h2,
h3 {
    /* 見出しは Noto Serif JP を適用 */
    font-family: "Noto Serif JP", serif;
    font-weight: 700;
    /* 見出しらしく少し太く設定 */
}

/* ナビゲーションメニューも上品にしたい場合（お好みで） */
.gnav-list a {
    font-family: "Noto Serif JP", serif;
}

/* 追加のおすすめ設定 */
h2 {
    letter-spacing: 0.05em;
    text-transform: capitalize;
    /* 最初の1文字を自動で大文字にする */
}

address {
    font-style: normal;
}

/*スムーズスクロール*/
html {
    scroll-behavior: smooth;
}


/* 各セクションのidに対して、ヘッダーの高さ分だけ「余白」を作る設定 */
#about,
#news,
#access,
#order,
#contact,
#business {
    scroll-margin-top: 80px;
    /* ヘッダーの高さに合わせて数値を調整してください */
}

/*Top動画の設定*/
.top_video {
    padding-bottom: 100px;
}

/* PC表示（960px以上）の時のナビゲーションに適用 */
@media screen and (min-width: 960px) {

    /* 1. ナビゲーションのリンク（aタグ）の設定 */
    header nav a {
        position: relative;
        z-index: 1;
        transition: color 0.3s;
    }

    /* 動画エリアを出た時に文字色を読みやすく調整 */
    header.is-highlighted nav a {
        color: #333333;
        /* 濃い茶色など、お花屋さんカラーに変更 */
    }
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.white-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 2;
    /* 動画より上に配置 */
    pointer-events: none;
    /* 下の動画操作を邪魔しない */

    /* アニメーションの設定：18秒の動画に合わせて設定 */
    /* 18秒（動画の長さ）ごとにループさせます */
    animation: whiteInOut 18s ease-in-out infinite;
}

@keyframes whiteInOut {
    0% {
        opacity: 1;
    }

    /* 開始：真っ白（ホワイトイン開始） */
    5.5% {
        opacity: 0;
    }

    /* 1秒後（1/18）：透明（動画が見える） */
    94.5% {
        opacity: 0;
    }

    /* 17秒まで：透明（動画が見える） */
    100% {
        opacity: 1;
    }

    /* 18秒（最後）：真っ白（ホワイトアウト完了） */
}

.video-container {
    width: 100%;
    /* 画面いっぱいの高さを確保 */
    height: 100vh;
    background-color: #Fff;
    /* 動画が読み込まれるまでの背景色 */
    overflow: hidden;
    position: relative;
}

.video-container video {
    width: 100%;
    height: 100%;
    /* 動画の比率を保ちつつ、コンテナを埋め尽くす（重要！） */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ビデオ内パンチラインの設定 */
.video-title {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 5;
    color: #F5F2EB;
    text-align: left;
}

.hero-text {
    /* フォントの指定 */
    font-family: "Cormorant Garamond", serif;
    /* イタリック体の指定 */
    font-style: italic;
    /* 太さの調整（お好みで 400〜600） */
    font-weight: 400;

    font-size: 2rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    /* 文字間隔を少し広げるとより上品になります */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* スマホ用調整 */
@media screen and (max-width: 959px) {
    .video-title {
        right: 5%;
        left: 5%;
        text-align: center;
    }

    .hero-text {
        font-size: 1.8rem;
    }

    .mobile-hero-third-line {
        display: block;
    }
}


/* 各セクションの中身を中央寄せにする */
@media screen and (max-width: 959px) {
    #top-content .mobile-second-line {
        display: block;
    }
}

.contents,
.contact-container {
    text-align: center;
    /* 文字を中央へ */
    display: flex;
    flex-direction: column;
    /* 縦に並べる */
    align-items: center;
    /* flexの子要素を中央へ */
    justify-content: center;
    width: 100%;
}

.contents p {
    margin-bottom: 1em;
    /* 行間の調整 */
}

.contents p {
    max-width: 600px;
    /* 横に広がりすぎないように制限 */
    margin-left: auto;
    margin-right: auto;
}




/* スライダー全体の動きを一定（リニア）にする */
.mySwiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

/* スライダーの見た目（以前のものを整理） */
.photo-slider {
    padding: 60px 0;
    width: 100%;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 250px;
}

.swiper-slide {
    width: 350px !important;
    /* 横幅を350pxに固定 */
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 見切れず、かつ枠いっぱいに */
    border-radius: 5px;
}

/* カーソルの見た目 */
.mySwiper {
    cursor: grab;
}

.mySwiper:active {
    cursor: grabbing;
    /* 掴んでいる間は「握りこぶし」にする */
}




/* About全体のレイアウト */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    /* 画像と文字の隙間 */
    padding: 80px 20px;
    overflow: hidden;
    /* はみ出し防止 */
}



/* --- アニメーション前の状態 --- */
.about-image {
    opacity: 0;
    transform: translateX(-100px);
    /* 左に隠しておく */
    transition: all 1.5s ease-out;
    /* 1.5秒かけて変化させる */
}

.about-text {
    opacity: 0;
    transform: translateX(100px);
    /* 右に隠しておく */
    transition: all 1.5s ease-out;
}

/* --- 画面に入った時にJavaScriptで付けるクラス --- */
.is-active {
    opacity: 1 !important;
    transform: translateX(0) !important;
}



/* 左から入る画像の設定 */
.about-image {
    width: 50%;
    /* 動きの指示 */
    animation: slide-in-left 1.5s ease-out forwards;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 右から入る文字の設定 */
.about-text {
    width: 40%;
    /* 動きの指示 */
    animation-delay: 0.3s;
    /* 0.3秒遅れて開始 */
    opacity: 0;
    /* 待機中は消しておく */
    animation: slide-in-right 1.5s ease-out 0.3s forwards;
    /* 最後に0.3sを追加 */
}

/* 左からスッと入るアニメーション */
@keyframes slide-in-left {
    0% {
        opacity: 0;
        /* 最初は透明 */
        transform: translateX(-100px);
        /* 左に100pxズレた状態 */
    }

    100% {
        opacity: 1;
        /* 見える状態 */
        transform: translateX(0);
        /* 元の位置へ */
    }
}

/* 右からスッと入るアニメーション */
@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(100px);
        /* 右に100pxズレた状態 */
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}



/* News全体のレイアウト */
.news-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 80px 20px;
    overflow: hidden;
}

/* --- アニメーション前の状態（News用） --- */

/* 文字は左に隠しておく */
.news-text {
    width: 40%;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1.5s ease-out;
}

/* 画像は右に隠しておく */
.news-image {
    width: 50%;
    opacity: 0;
    transform: translateX(100px);
    transition: all 1.5s ease-out;
}

.news-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/*
   前回の .is-active クラスが、
   Newsの要素（.news-text や .news-image）にも効くように
   設定はそのまま活用します！
*/



/* アクセス全体のレイアウト */
.access-container {
    display: flex;
    align-items: flex-start;
    /* 上揃え */
    justify-content: center;
    gap: 50px;
    padding: 100px 20px;
}

.access-map {
    width: 50%;
}

.access-map img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* 地図に少し影をつけると上品です */
}

.access-info {
    width: 40%;
}

/* --- 【重要】ふわっと浮かび上がる前の状態 --- */
.access-map.js-scroll-trigger,
.access-info.js-scroll-trigger {
    opacity: 0;
    transform: translateY(30px);
    /* 30pxだけ下に下げておく */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/*
   JavaScriptで「is-active」が付いた時の動き
   AboutやNewsで使った設定がそのまま適用されますが、
   もし個別に調整したい場合は以下のように書けます。
*/
.access-map.is-active,
.access-info.is-active {
    opacity: 1;
    transform: translateY(0);
    /* 元の高さに戻る */
}

/* info側だけ少し遅らせて表示させると、より「ふわっと感」が出ます */
.access-info.is-active {
    transition-delay: 0.3s;
}



/* style.css の一番下に追記　スマホ表示時About、News、Accessを中央揃え */

@media (max-width: 768px) {

    /* ここに、先ほどお教えした縦並びにするコードなどを書きます */
    .about-container,
    .news-container,
    .access-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-image,
    .about-text,
    .news-image,
    .news-text,
    .access-map,
    .access-info {
        width: 100%;
    }
}



/* 問い合わせフォームの見た目を整える */
#contact {
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
    /* 本文はセンターでもフォーム内は左寄せが使いやすいです */
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.radio-group input {
    width: auto;
}


/* ボタンエリアを中央に */
.button-area {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    /* 前回の設定を維持しつつ、幅が広がりすぎないように調整 */
    display: inline-block;
    min-width: 200px;

    background-color: #FFA550;
    /* メインカラー */
    color: #fff;
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #FAD669;
    /* サブカラー */
}

/* Keep the second video inside its own section, never behind page margins. */
.business-video {
    width: 100%;
    height: min(75vh, 720px);
    min-height: 320px;
    overflow: hidden;
    background: #1c1c1c;
    isolation: isolate;
}

.business-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
