@charset "UTF-8";

html {
    margin: 0 auto;
    background-color: #ffffff;
}

img {
    margin: 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
}

body {
    margin: 0 auto;
    max-width: 100%;
    width: 750px;
}

.fv {
    position: relative;
}

.cta-btn {
    position: fixed;
    bottom: 16px;
    right: max(8px, calc((100vw - 750px) / 2 + 8px));
    max-width: 100%;
    z-index: 1000;
}

.cta-btn > a > img {
    width: 100%;
}

.cta-toggle-images {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    width: 80%;
    z-index: 30;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
}

.cta-btn.is-open .cta-toggle-images {
    display: flex;
    gap: 5px;
}

/* ======================================================
   イベント
========================================================= */

.event {
    width: 100%;
    background: #fff;
}


/* ---------- タイトル ---------- */

.event-title {
    margin: 14px 50px 10px;
    padding: 3px 10px 5px;
    background: #95252a;

    color: #fff;
    text-align: center;

    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 38px;
    line-height: 1.2;
}

.event-title span {
    margin-left: 20px;
}


/* ---------- 情報エリア ---------- */

.event-info {
    padding: 0 52px 28px;
}

.event-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.event-row--place {
    margin-top: 8px;
}


/* ---------- とき・ところ ---------- */

.event-label {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #c9a333;
    border-radius: 50%;

    background:
        radial-gradient(circle at 35% 30%, #3b3b3b, #111);

    color: #d9b84c;

    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 25px;
    line-height: 1;
}


/* ---------- 日付 ---------- */

.event-date {
    flex: 1;
    text-align: center;

    font-family: "Times New Roman",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    color: #333;
}

.event-year {
    text-align: left;
    padding-left: 25px;

    font-size: 29px;
    line-height: 1;
}

.event-date-main {
    display: flex;
    justify-content: center;
    align-items: center;

    line-height: 1;
    white-space: nowrap;
}

.event-month,
.event-day {
    font-size: 76px;
}

.event-slash {
    margin: 0 4px;
    font-size: 73px;
}

.event-wave {
    margin: 0 10px;
    font-size: 54px;
}

.event-day--end {
    color: #c90019;
}


/* ---------- 曜日 ---------- */

.event-week {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-left: 5px;

    border-radius: 50%;
    background: #333;

    color: #fff;
    font-family: "Yu Gothic", sans-serif;
    font-size: 20px;
    font-weight: bold;
}

.event-week--sun {
    background: #c90019;
}


/* ---------- 時間 ---------- */

.event-time {
    margin-top: -3px;

    font-size: 34px;
    line-height: 1.1;
    letter-spacing: 1px;
}


/* ---------- 会場 ---------- */

.event-place {
    flex: 1;
    text-align: center;

    color: #333;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.event-place-en {
    font-family: "Times New Roman", serif;
    font-size: 31px;
    line-height: 1.1;
}

.event-place-name {
    margin-top: 2px;

    font-size: 44px;
    line-height: 1.2;
}


/* ---------- 店舗画像 ---------- */

.event-photo {
    margin: 22px 52px 0;
}

.event-photo img {
    display: block;
    width: 100%;
    height: auto;
}


/* ---------- CTA ---------- */

.event-btn {
    position: static;

    width: auto;

    margin: 18px 52px 36px;

    transform: none;
}

.event-btn a {
    display: block;
}

.event-btn img {
    display: block;
    width: 100%;
    height: auto;
}

.map {
    margin: 0 auto;
    width: min(600px, calc(100% - 32px));
    max-width: 100%;
    aspect-ratio: 4 / 3;
}

.map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .cta-btn {
        width: 120px;
        right: 12px;
        bottom: 12px;
    }

    .event-title {
        margin: 10px 20px 8px;
        font-size: clamp(21px, 5.4vw, 32px);
    }

    .event-title span {
        margin-left: 12px;
    }

    .event-info {
        padding: 0 20px 18px;
    }

    .event-row {
        gap: 8px;
    }

    .event-label {
        flex-basis: clamp(48px, 13vw, 70px);
        width: clamp(48px, 13vw, 70px);
        height: clamp(48px, 13vw, 70px);

        font-size: clamp(15px, 4vw, 23px);
    }

    .event-year {
        padding-left: 14px;
        font-size: clamp(18px, 4vw, 27px);
    }

    .event-month,
    .event-day {
        font-size: clamp(42px, 11vw, 68px);
    }

    .event-slash {
        font-size: clamp(40px, 10vw, 65px);
    }

    .event-wave {
        margin: 0 4px;
        font-size: clamp(28px, 7vw, 45px);
    }

    .event-week {
        width: clamp(25px, 7vw, 38px);
        height: clamp(25px, 7vw, 38px);

        font-size: clamp(12px, 3vw, 18px);
    }

    .event-time {
        font-size: clamp(20px, 5vw, 30px);
    }

    .event-place-en {
        font-size: clamp(18px, 4.5vw, 28px);
    }

    .event-place-name {
        font-size: clamp(25px, 6vw, 40px);
    }

    .event-photo {
        margin: 14px 20px 0;
    }

    .event-btn {
        margin: 12px 20px 24px;
    }
}

/* ======================================================
   回転するスライダー（3D設定）
========================================================= */
.slider-perspective {
    perspective: 1200px;
    width: 450px;
    height: 800px;
    position: relative;
    margin: 0 auto;
    /* 中央寄せ */
    /* ★ここがポイント：親に内側の余白を作る */
    padding: 10px 0;
    /* 枠からはみ出した画像を隠す設定を解除（または調整） */
    overflow: visible;
    border-radius: 60px;
    /* PCでも角丸にする場合 */
}

/* スライダー内の画像設定 */
.slider-perspective img {
    width: 100%;
    height: 100%;
    /* 縦横比を維持したまま、枠いっぱいに表示（はみ出し分はカット） */
    object-fit: cover;
    /* もし画像全体を絶対に見せたい場合は contain にしますが、coverの方がデザインは綺麗です */
    border-radius: 60px;
    /* --- 3Dアニメーション時の「上下の切れ・チラつき」対策 --- */
    /* 1. 描画をGPU（画像処理エンジン）に任せて安定させる */
    transform: translateZ(0) scale(1.005);
    /* 2. 回転中の裏面の計算を省いて負荷を減らす */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* 3. 画像の縁を滑らかにする */
    will-change: transform;
}

.slider-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    /* 綺麗な楕円形 */
    border-radius: 70% / 15%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 黒い筋対策 */
    transform: scale(1.05);
    display: block;
}

.back {
    transform: rotateY(180deg);
}

/* ------------------------------------------------------
   振袖コレクションスライダー（レイアウト設定）
--------------------------------------------------------- */

.collection-slider-group {
    width: 100%;
    background-image: url(./img/collection-back.png);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

/* --- 左右分割レイアウト --- */
.fixed-slider-layout {
    display: flex;
    width: 100%;
    max-width: 850px;
    /* スライダー300px + タイトル画像幅 + 余白 */
    margin: 0 auto;
    background: none;
    align-items: center;
    /* 垂直方向中央 */
    justify-content: center;
    padding: 30px 0;
    box-sizing: border-box;
}

.fixed-slider-layout:nth-child(2) {
    background: none;
}

.fixed-slider-layout:nth-child(3) {
    background: none;
}

.fixed-slider-layout.fixed-slider-layout-2 {
    background: url(./img/collection-back-02.png) no-repeat center top;
    background-size: cover;
    margin-top: 47px;
}

.fixed-slider-layout.fixed-slider-layout-3 {
    background: url(./img/collection-back-03.png) no-repeat center top;
    background-size: cover;
    margin-top: 47px;
}

/* 左側エリア: スライダーの格納場所 */
.slider-area {
    width: 450px;
    /* 重要：3Dの回転が途切れないよう overflow: visible に変更 */
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.collection-name {
    width: 100%;
    margin: 0 0 16px;
    position: relative;
    z-index: 3;
}

.collection-name img {
    width: 100%;
    max-width: 360px;
}

/* 4つ目のコレクション名だけ横幅を調整 */
#deco-text4 + .collection-name {
    width: 80%;
}

#deco-text5 + .collection-name {
    width: 80%;
}

/* スライダー直下のコンテナ */
.slider {
    width: 100% !important;
    /* 親の450pxを使い切る */
    max-width: 450px;
    /* margin-bottom: 15px; */
}

/* 下の矢印ガイド画像 */
.slider-area p {
    width: 100%;
    margin: 0;
    text-align: center;
}

.slider-area p img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: inline-block;
}

/* 右側エリア: 固定タイトル */
.fixed-title-area {
    width: 80px;
    /* タイトル画像の想定幅 */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    /* --- ここで左側に引き寄せる --- */
    margin-left: -50px;
    /* ★ここの数値を変えて好みの距離に調整してください */
    margin-right: 0;
    /* 重なり順で画像がスライダーの下に隠れないように念のため設定 */
    position: relative;
    z-index: 1;
}

.fixed-title-area img {
    height: 500px;
    /* スライダーの高さに合わせる */
    width: auto;
    object-fit: contain;
    display: block;
}

/* 子要素の並び順を反転 (右から左へ) */
.fixed-slider-layout.reverse-order {
    flex-direction: row-reverse;
}

/* CSSにこれを追加 */
.side.front,
.side.back {
    background-color: #f1cfc6;
    /* 振袖の背景に近い薄いグレーや白を指定 */
}

.first-slider-overlay {
    position: relative;
}

.first-slider-overlay > img {
    width: 100%;
    height: auto;
}

.first-slider-overlay > .fixed-slider-layout {
    position: absolute;
    inset: 0;
    padding: 0;
}

.map {
    margin-bottom: 150px;
}

.reserve-toggle-wrap {
    position: relative;
}

.reserve-toggle-images {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    bottom: 75%;
    z-index: 20;
}

.reserve-toggle-wrap.is-open .reserve-toggle-images {
    display: block;
}

/* ======================================================
   スマホ対応
========================================================= */
@media (max-width: 600px) {

    /* 外枠：中身（スライダー）を完全にセンターへ */
    .fixed-slider-layout {
        display: flex !important;
        justify-content: center;
        /* 左右中央 */
        align-items: center;
        /* 上下中央 */
        width: 100%;
        padding: 40px 0;
        overflow: hidden;
    }

    .slider-area {
        width: 100%;
        max-width: 100%;
    }

    .slider {
        width: 100% !important;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }

    /* スライダー：サイズを固定し、余計なマージンを排除 */
    .slider-perspective {
        /* 幅と高さの比率を維持 */
        width: 95vw !important;
        /* 画面幅の75%（お好みで80vwなどに広げてください） */
        max-width: 350px;
        aspect-ratio: 3 / 4.2;

        /* センター配置のための設定 */
        margin: 0 !important;
        /* 親のflexで中央にするのでmarginは0でOK */
        position: relative;
        border-radius: 60px;
        overflow: hidden;
        z-index: 1;
    }

    /* 中の画像 */
    .slider-perspective img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }

    .slider-perspective {
        perspective: 1200px;
        width: 500px;
        height: 580px;
    }

    .swipe-guide {
        width: 80%;
    }

    .slider-area p img {
        width: 90%;
    }
}
