/* epanoui（エパニュイ）堀江 デザイン・システム */

/* 0. グローバルフォント設定 */
h1, h2, h3, h4 {
    font-family: 'Shippori Mincho', serif !important;
}

.section-title, .signature-title {
    font-family: 'Shippori Mincho', serif !important;
    color: #468432 !important;
}

.en-title,
.en-font,
.about-title-drawn,
.section-title.en-font {
    font-family: 'Birthstone', cursive !important;
    font-style: italic;
    font-weight: 500;
}

/* 1. リセット & ベース */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 2. 余白の定義 - セクション間 */
.section-gap {
    margin-top: 80px;
    margin-bottom: 80px;
}

@media (min-width: 1024px) {
    .section-gap {
        margin-top: 120px;
        margin-bottom: 120px;
    }
}

/* 3. セクション見出し */
.section-title-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

@media (max-width: 640px) {
    .section-title-wrap {
        width: 80%;
        height: 80px;
    }
}

.section-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 4. パララックス効果 (iOS Safari対応版) */
.parallax-container {
    position: relative;
    clip-path: inset(0);
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

/* 5. インタラクション & 装飾 */

/* Scroll Top Button Visibility */
#scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-10px);
}

/* Mobile Menu Transition */
#mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

/* 6. 画像の扱い共通 */
img {
    vertical-align: bottom;
    object-fit: cover;
}

/* 9. Service Section Background – Wave Animation Compatible */
.bg-service-gradient {
    position: relative;
    background-color: #FFEF91;
    overflow: hidden;
}

/* Make sure content sits above waves */
.bg-service-gradient > *:not(.pointer-events-none) {
    position: relative;
    z-index: 1;
}

/* 11. Signature Drawing Title (Common) */
.signature-title {
    font-family: 'Birthstone', cursive !important;
    font-style: italic;
    font-size: 4rem;
    font-weight: 500;
    
    /* Brand Gradient */
    background: linear-gradient(135deg, #468432 0%, #9AD872 50%, #1D3315 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    
    display: inline-flex;
    flex-direction: column;
    line-height: 1.2;
    letter-spacing: 0.1em;
    padding: 0.1em 0.3em;
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
    white-space: nowrap;
}

.signature-title .sub-title {
    font-family: 'Shippori Mincho', serif !important;
    font-style: normal;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    margin-top: 8px;
    opacity: 0.8;
    
    /* Solid Brand Color override to prevent gradient inherit */
    -webkit-text-fill-color: #468432 !important;
    background: none !important;
}

/* スクロールして表示された時にアニメーション開始 */
.signature-title.is-visible {
    animation: premium-reveal 1.5s ease-in-out forwards;
}

@media (max-width: 1024px) {
    .signature-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }
    .signature-title .sub-title {
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    }
}

@media (max-width: 640px) {
    .signature-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        letter-spacing: 0.05em;
        padding: 0.1em 0.2em;
    }
    .signature-title .sub-title {
        font-size: clamp(1rem, 4.5vw, 1.4rem);
    }
}

@keyframes premium-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 14. FV Section */


/* スライドショー用画像の重ね合わせとフェード処理 */
.fv-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out !important;
}

.fv-slide-img.active {
    opacity: 1;
}

/* ステッチ風装飾 */
.stitch-border {
    padding: 6px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #468432;
}



/* 本文タイトル（About, Service, Recommend などの見出しカード内）のカラー統一 */
h3:not(.signature-title):not(.section-title):not(.text-accent) {
    color: #1D3315 !important; /* Elegant deep forest */
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* recommendations セクションの文字色を強制的にココア色に設定 */
#recommendations h3,
#recommendations span {
    color: #1D3315 !important;
}

/* おすすめメニューの本文フォントサイズを16pxに設定 (SPでも16pxを維持) */
#menu .menu-item-desc {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* その他のメニュー (Other Menus) の視認性改善 */
#other-menus .other-menu-item-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #468432 !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
}

@media (min-width: 768px) {
    #other-menus .other-menu-item-title {
        font-size: 20px !important;
    }
}

#other-menus .other-menu-desc {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #1D3315 !important;
}

@media (min-width: 768px) {
    #other-menus .other-menu-desc {
        font-size: 16px !important;
    }
}

/* 背景のピンクの波アニメーション */
.parallax-waves > use {
    animation: move-forever-bottom 20s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax-waves > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 9s;
}
.parallax-waves > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 13s;
}
.parallax-waves > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 16s;
}
.parallax-waves > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 25s;
}

@keyframes move-forever-bottom {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% { 
        transform: translate3d(85px, 0, 0);
    }
}

/* 上部用の波アニメーション（逆方向に動かす） */
.parallax-waves-top > use {
    animation: move-forever-top 24s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax-waves-top > use:nth-child(1) {
    animation-delay: -3s;
    animation-duration: 11s;
}
.parallax-waves-top > use:nth-child(2) {
    animation-delay: -5s;
    animation-duration: 15s;
}
.parallax-waves-top > use:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 19s;
}
.parallax-waves-top > use:nth-child(4) {
    animation-delay: -6s;
    animation-duration: 28s;
}

@keyframes move-forever-top {
    0% {
        transform: translate3d(85px, 0, 0);
    }
    100% { 
        transform: translate3d(-90px, 0, 0);
    }
}

/* キラキラきらめくアニメーション */
@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.3) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(2.4) translateY(-35px);
    }
}
.animate-sparkle {
    animation: sparkle 4.5s ease-in-out infinite;
}

/* スマートフォン（SP）用の調整 */
@media (max-width: 768px) {
    /* SPサイズの時、本文のフォントを14ピクセルに変更 */
    p, li, .text-base, .text-sm,
    #menu .menu-item-desc,
    #other-menus .other-menu-desc {
        font-size: 14px !important;
        line-height: 1.8;
    }

    .fv-catch {
        font-size: 1.4rem;
        text-align: center;
        align-self: center;
    }

    .fv-sub {
        text-align: center;
        align-self: center;
    }

    .fv-logo {
        font-size: 3rem;
        text-align: center;
    }



    #fv-grid-sp {
        grid-template-rows: 65% 35% !important; /* 上の画像を大きく、下の画像（fv3, fv4）をコンパクトに配置 */
    }

    #fv-bazzi {
        width: 310px !important;
        bottom: -30px !important; /* 下のセクションに少し重なるようにはみ出して配置 */
    }
}
