/* Shinako Collection Special Styles */
:root {
    --shinako-pink: #ff69b4;
    --shinako-light-pink: #f5cdda;
    --shinako-purple: #c091bf;
    --shinako-bg: #ff7aa6;
    --shinako-text: #4b0082;
}

body.shinako-page {
    background: linear-gradient(-45deg, #ffd3e2, #fed8ff, #e6dbff, #ddfeff, #ffe6d6);
    background-size: 400% 400%;
    animation: rainbow-gradient 10s ease infinite;
    color: var(--shinako-text);
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    /* 横はみ出しを防止 */
}

@keyframes rainbow-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

html,
body {
    margin: 0;
    padding: 0;
}

/* ===== Heroに重ねるヘッダー ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: transparent;
    /* 白帯を消す */
    z-index: 2000;

    background: transparent;
    box-shadow: none;
}

/* ヘッダー内部レイアウト */
.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* ロゴサイズ */
.site-header .logo img {
    height: 32px;
    width: auto;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: block;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
}

/* 通常ナビは一旦非表示（必要なら後で制御） */
.main-nav {
    position: fixed;
    top: 64px;
    /* 今と同じでOK */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 20px 0;
    z-index: 3000;
    /* ▼ここが肝：displayを使わない */
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;

    transition: opacity 220ms ease, transform 220ms ease;
}


/* ハンバーガー押したらメニューを出す */
.main-nav.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* リストを縦に */
.main-nav.active ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

/* 文字を見やすく */
.main-nav.active a {
    color: #f764d7;
    text-decoration: none;
    font-size: 18px;
}

/* Hero Section */
.shinako-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Use dynamic viewport height for mobile browsers */
    min-height: -webkit-fill-available;
    overflow: hidden;

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

    /* Removed padding-top here to prevent pushing content out of screen */
    box-sizing: border-box;

    background: #ff69b4;
    /* 最初はピンク */
}

/* video */
.hero-video {
    position: absolute;
    inset: -5% 0 0 0;
    width: 100%;
    height: 110%;
    top: -5%;
    object-fit: cover;
    object-position: center;

    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.shinako-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 225, 0.1);
    z-index: 1;
    /* 明示 */
}

/* ロゴ（位置を動かす担当） */
.hero-logo {
    position: absolute;
    left: 50%;
    top: calc(50% + 32px);
    /* header分少し下げたいなら調整 */
    transform: translate(-50%, -50%);
    z-index: 3;

    width: min(500px, 70vw);
    transition:
        left 0.9s ease,
        top 0.9s ease,
        bottom 0.9s ease,
        transform 0.9s ease,
        width 0.9s ease;
}

/* ロゴ画像（gummy-bounce担当） */
.hero-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));

    animation: gummy-bounce 2s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
    transform-origin: center bottom;
}

/* ピンクのカバー（ワイプ） */
.hero-reveal {
    position: absolute;
    inset: 0;
    background: #d0a7e0;
    z-index: 2;
    /* 動画より上 / ロゴより下 */
    transform: translateY(0);
    transition: transform 1.0s cubic-bezier(0.77, 0, 0.175, 1);
}

/* 準備完了後：カバーが上に抜ける（ワイプ開始） */
.shinako-hero.is-ready .hero-reveal {
    transform: translateY(-100%);
}

/* 準備完了後：動画が表示 */
.shinako-hero.is-ready .hero-video {
    opacity: 1;
}

/* ワイプ完了後：ロゴを左下へ */
.shinako-hero.is-final .hero-logo {
    left: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
    width: min(220px, 50vw);
}

@keyframes gummy-bounce {
    0% {
        transform: scale(0.9, 0.9) translateY(30px);
        opacity: 0;
    }

    25% {
        transform: scale(1.08, 0.92) translateY(0);
        opacity: 1;
    }

    40% {
        transform: scale(0.96, 1.04);
    }

    55% {
        transform: scale(1.03, 0.97);
    }

    70% {
        transform: scale(0.98, 1.02);
    }

    80% {
        transform: scale(1.01, 0.99);
    }

    90% {
        transform: scale(0.995, 1.005);
    }

    100% {
        transform: scale(1, 1);
        opacity: 1;
    }
}

/* Falling Hearts Animation */
.heart {
    position: absolute;
    top: -50px;
    width: 2rem;
    height: 2rem;
    pointer-events: none;
    z-index: 10;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}



/* Decorative Jewels */
.deco-gem {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    animation: jewel-float 4s ease-in-out infinite alternate;
}

.deco-gem img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

@keyframes jewel-float {
    from {
        transform: translateY(0) rotate(0deg);
    }

    to {
        transform: translateY(-20px) rotate(15deg);
    }
}

.shinako-section .deco-gem:nth-of-type(1),
.shinako-social-section .deco-gem:nth-of-type(1) {
    top: 5%;
    right: 6%;
    width: 80px;
    animation-delay: -2s;
}

.shinako-section .deco-gem:nth-of-type(2),
.shinako-social-section .deco-gem:nth-of-type(2) {
    bottom: -5%;
    left: 6%;
    width: 80px;
    animation-delay: -0.5s;
}

.shinako-section {
    padding: 2.5rem 0 4rem;
    /* Top padding reduced from 4rem to 2.5rem */
    position: relative;
}

/* Full Width Divider Image */
.shinako-full-divider {
    width: 100%;
    margin: 1.5rem 0 0.5rem;
    /* Bottom margin reduced from 1.5rem to 0.5rem */
    line-height: 0;
    text-align: center;
}

.shinako-full-divider img {
    width: 100%;
    margin: 0 auto;
    height: auto;
    display: block;
    transition-duration: 1.2s;
}

/* Intro Section Styles */
.shinako-intro-section {
    padding: 6rem 0 2rem;
    text-align: center;
    position: relative;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-title-img {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.intro-title-img img {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(255, 105, 180, 0.3));
    display: block;
}

.intro-lead {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--shinako-pink);
    line-height: 1.4;
    margin-bottom: 2.5rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.intro-desc {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--shinako-text);
    font-weight: 400;
}

@media (max-width: 768px) {
    .shinako-intro-section {
        padding: 4rem 0 2rem;
    }

    .intro-title-img img {
        max-width: 280px;
    }

    .intro-lead {
        font-size: 1.5rem;
    }

    .intro-desc {
        font-size: 1rem;
        text-align: left;
    }
}

.bg-soft-white {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 20%,
            rgba(255, 255, 255, 0.6) 80%,
            rgba(255, 255, 255, 0) 100%);
}

.shinako-flex {
    display: flex;
    align-items: center;
    /* 垂直方向中央揃え */
    justify-content: center;
    /* 水平方向中央揃え */
    gap: 5rem;
    max-width: 1200px;
    /* 少し広げてバランス調整 */
    margin: 0 auto;
    padding: 0 40px;
}

.shinako-flex-reverse {
    flex-direction: row-reverse;
}

.shinako-image {
    flex: 1;
    /* 1:1に近いバランスへ */
    position: relative;
    max-width: 480px;
    /* カルーセルのサイズ感固定 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Decoration Backgrounds - "Messy Sandwich" Style */
.carousel-container {
    position: relative;
    width: 100%;
    z-index: 1;
    margin-bottom: 40px;
    /* 下へのはみ出し分を確保 */
}

.carousel-deco-1,
.carousel-deco-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 1枚目（真ん中の層）：少し左に振りつつ下に大きくはみ出す */
.carousel-deco-1 {
    background-color: var(--shinako-light-pink);
    transform: rotate(-3deg) translate(-10px, 20px);
    z-index: 0;
    /* カルーセルの下 */
}

/* 2枚目（一番下の層）：逆方向に傾けてさらにはみ出す */
.carousel-deco-2 {
    background-color: var(--shinako-purple);
    transform: rotate(4deg) translate(20px, 45px);
    z-index: -1;
    /* Deco 1の下 */
    opacity: 0.8;
}

.shinako-carousel {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: 7px solid #fff;
    /* 白枠を追加 */
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 2;
    /* 一番上 */
}

.shinako-carousel .swiper-slide {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.shinako-carousel img,
.shinako-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: block;
}

.shinako-product-img {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: 7px solid #fff;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 2;
    aspect-ratio: 3/4;
}

.yukata-image-plain img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.shinako-text {
    flex: 1;
    /* カルーセル側と同じ比率 */
    max-width: 350px;
    text-align: center;
    /* Center all contents */
}

/* Shinako title image */
.shinako-title {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    /* 2rem -> 1rem に縮小してカルーセルに近づける */
}

.shinako-title img {
    max-width: 240px;
    /* 少し小さくしてスッキリさせる */
    width: 100%;
    height: auto;
    display: block;
}

.shinako-text h2 {
    font-size: 3rem;
    color: var(--shinako-pink);
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.shinako-text p {
    font-size: 1.0rem;
    line-height: 1.8;
}

/* ===== Shinako Bar Marquee ===== */
.shinako-bar-marquee {
    width: 100%;
    overflow: hidden;
    padding: 28px 0;
    /* 上下の余白は好みで */
    position: relative;
}

/* 端が切れても綺麗に見えるように（任意） */
.shinako-bar-marquee::before,
.shinako-bar-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 1;
}

/* 画像2枚を横に並べて、ひとかたまりを左へ流す */
.bar-group {
    display: inline-flex;
    align-items: center;
    gap: 40px;
    /* 2枚の間隔。不要なら0 */
    will-change: transform;
    animation: shinako-marquee 25s linear infinite;
}

/* 画像サイズ調整：高さ基準が扱いやすい */
.bar-group img {
    height: 200px;
    /* 好みで調整 */
    width: auto;
    max-width: none;
    /* ← レスポンシブで潰れない */
    display: block;
    object-fit: contain;
}

/* 右→左へ */
@keyframes shinako-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 動きが苦手な人向け */
@media (prefers-reduced-motion: reduce) {
    .bar-group {
        animation: none;
    }
}



/* Yukata Section (Former Clipping) - Styles removed and integrated into general product styles */

.btn-shinako {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(45deg, var(--shinako-pink), var(--shinako-purple));
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 20px rgba(218, 112, 214, 0.4);
    transition: transform 0.3s;
}

.btn-shinako:hover {
    transform: scale(1.05) translateY(-3px);
}

/* Social Links Section */
.shinako-social-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.social-title {
    font-size: 2.5rem;
    color: var(--shinako-pink);
    margin-bottom: 3.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
}

.social-links-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.social-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 4px solid #fff;
    border-radius: 40px;
    text-decoration: none;
    color: var(--shinako-text);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.social-link-item:hover {
    transform: translateY(-15px) rotate(3deg);
    box-shadow: 0 25px 50px rgba(255, 105, 180, 0.25);
    background: #fff;
}

.social-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.social-link-item.insta .social-icon {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-link-item.youtube .social-icon {
    color: #ff0000;
}

.social-link-item:hover .social-icon {
    transform: scale(1.15);
}

.social-label {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 768px) {
    .shinako-social-section {
        padding: 4rem 0;
    }

    .social-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .social-links-grid {
        gap: 1.5rem;
        padding: 0 20px;
    }

    .social-link-item {
        width: 150px;
        height: 150px;
        border-radius: 30px;
        border-width: 3px;
    }

    .social-icon {
        font-size: 3.5rem;
        margin-bottom: 0.5rem;
    }

    .social-label {
        font-size: 1rem;
    }
}

/* Swiper Custom Styling - Minimal & Elegant */
.swiper-button-next,
.swiper-button-prev {
    color: var(--shinako-purple) !important;
    --swiper-navigation-color: var(--shinako-purple) !important;
    background: none;
    width: 30px;
    height: 30px;
    transition: transform 0.3s, opacity 0.3s;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem !important;
    font-weight: 300;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: var(--shinako-pink) !important;
}

/* Animations Logic */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
    will-change: opacity, transform;
}

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

/* スクロールのガタつき防止：主要なコンテナは移動させず、中身だけを動かすか、移動量を最小限にする */
.shinako-image.fade-in-up,
.shinako-text.fade-in-up {
    transform: none;
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

.shinako-image.fade-in-up.visible,
.shinako-text.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

/* Floating decoration image (back3.png) 
.side-deco-wrapper {
    position: absolute;
    right: -100px;
    bottom: -20px;
    width: 400px;
    pointer-events: none;
    z-index: 5;
}

.side-deco-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(-10px 10px 20px rgba(0, 0, 0, 0.1));
}

.fade-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}*/

@media (max-width: 768px) {
    .shinako-flex {
        flex-direction: column;
        padding: 0 2rem;
    }

    .shinako-hero h1 {
        font-size: 3.0rem;
    }

    /* Adjust initial logo position on mobile */
    .hero-logo {
        top: 50% !important;
        width: min(400px, 85vw) !important;
    }

    .shinako-hero.is-final .hero-logo {
        top: auto !important;
        bottom: 16px !important;
        left: 16px !important;
        width: min(180px, 45vw) !important;
    }

    .shinako-text h2 {
        font-size: 2.2rem;
        /* Reduced from 3rem */
        margin-bottom: 1.5rem;
    }

    .shinako-text p {
        font-size: 0.9rem;
        /* Reduced from 1.0rem */
    }

    .btn-shinako {
        padding: 1rem 2.5rem;
        font-size: 1rem;
        /* Reduced from 1.2rem */
    }

    .intro-lead {
        font-size: 1.4rem !important;
        /* Slightly smaller than previous 1.5rem */
    }

    .intro-desc {
        font-size: 0.95rem !important;
        /* Slightly smaller than previous 1rem */
    }

    .shinako-flex {
        flex-direction: column;
        padding: 0 2rem;
        gap: 2rem;
        /* Reduced gap between image and text section from default */
    }

    .carousel-container {
        margin-bottom: 20px;
        /* Reduced bottom margin on mobile */
    }

    .shinako-title {
        margin-bottom: 0.5rem;
        /* Reduced margin to bring logo closer to text */
    }

    .shinako-image {
        max-width: 100%;
    }

    .shinako-title img {
        max-width: 180px;
        /* Reduced from 240px for mobile */
    }

    .side-deco-wrapper {
        width: 180px !important;
        right: -40px !important;
        bottom: 0 !important;
    }

    .shinako-section .deco-gem:nth-of-type(1),
    .shinako-section .deco-gem:nth-of-type(2),
    .shinako-social-section .deco-gem:nth-of-type(1),
    .shinako-social-section .deco-gem:nth-of-type(2) {
        width: 40px;
    }

    /* Reduce fade-in-up distance on mobile to prevent clipping and improve visibility */
    .fade-in-up {
        transform: translate3d(0, 20px, 0);
    }

    /* カルーセル周りのガタつきを抑えるための微調整 */
    .carousel-container,
    .swiper-slide {
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .shinako-carousel {
        /* タッチ操作の感度向上 */
        touch-action: pan-y;
    }
}

.hidden {
    display: none;
}