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

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

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

.en-title,
.en-font,
.about-title-drawn,
.section-title.en-font {
    font-family: 'Noto Serif', serif !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;
}

/* 2. 余白 of セクション */
.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.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-10px);
}

#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: #F9F8F6;
    overflow: hidden;
}

.bg-service-gradient > *:not(.pointer-events-none) {
    position: relative;
    z-index: 1;
}

/* 11. Signature Drawing Title (Common) */
.signature-title {
    font-family: 'Noto Serif', serif !important;
    font-style: italic;
    font-size: 4rem;
    font-weight: 500;
    
    background: linear-gradient(135deg, #19A7CE 0%, #AFD3E2 50%, #146C94 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;
    
    -webkit-text-fill-color: #19A7CE !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-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #F6F1F1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0 60px;
    z-index: 50;
    isolation: isolate;
}

.fv-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/fvback.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.05);
    z-index: -1;
}

.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 #19A7CE;
}

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

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

/* その他のメニュー (Other Menus) of 視認性改善 */
#other-menus .other-menu-item-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #19A7CE !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: #146C94 !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);
    }
}

/* SPサイズ時の本文のフォントサイズ上書き（優先度を最大化） */
@media (max-width: 1023px) {
    body, p, li, span,
    .text-base,
    .text-\[15px\],
    .text-\[16px\],
    .menu-item-desc, 
    .other-menu-desc,
    .about-text,
    .voice-text,
    .space-y-4 {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
}

/* こんな方におすすめセクションの背景画像（PC/SPのレスポンシブ切り替え） */
#recommendations {
    background-image: url('../img/back01.jpg');
}

@media (max-width: 1023px) {
    #recommendations {
        background-image: url('../img/spback01.jpg') !important;
        background-position: center !important;
        background-size: cover !important;
    }
}

/* キラキラきらめくアニメーション */
@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;
}

/* 水しぶき・弾ける水滴のアニメーション */
@keyframes splash-droplet-1 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    12% {
        opacity: 0.9;
        transform: translate(-10px, -20px) scale(1.2);
    }
    60% {
        opacity: 0.6;
        transform: translate(-20px, -45px) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate(-30px, -65px) scale(0);
    }
}
@keyframes splash-droplet-2 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    12% {
        opacity: 0.9;
        transform: translate(10px, -25px) scale(1.2);
    }
    60% {
        opacity: 0.6;
        transform: translate(20px, -50px) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate(30px, -75px) scale(0);
    }
}
@keyframes splash-droplet-3 {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    12% {
        opacity: 0.9;
        transform: translate(0, -30px) scale(1.3);
    }
    60% {
        opacity: 0.5;
        transform: translate(0, -60px) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translate(0, -85px) scale(0);
    }
}
.animate-splash-1 {
    animation: splash-droplet-1 3.5s ease-out infinite;
}
.animate-splash-2 {
    animation: splash-droplet-2 4.2s ease-out infinite;
}
.animate-splash-3 {
    animation: splash-droplet-3 4.8s ease-out infinite;
}

/* 水滴の装飾クラス */
.water-drop {
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0.1) 100%) !important;
    box-shadow: inset -1px -1px 3px rgba(255, 255, 255, 0.5), 0 3px 6px rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40% !important;
}

/* 水中の泡（Bubble）アニメーション */
@keyframes bubble-rise-slow {
    0% {
        opacity: 0;
        transform: translateY(80px) translateX(0) scale(0.5);
    }
    15% {
        opacity: 0.8;
        transform: translateY(50px) translateX(-5px) scale(1);
    }
    50% {
        transform: translateY(0px) translateX(8px) scale(0.9);
    }
    85% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) translateX(-8px) scale(0.4);
    }
}

@keyframes bubble-rise-medium {
    0% {
        opacity: 0;
        transform: translateY(100px) translateX(0) scale(0.4);
    }
    15% {
        opacity: 0.8;
        transform: translateY(60px) translateX(5px) scale(1);
    }
    50% {
        transform: translateY(0px) translateX(-8px) scale(0.8);
    }
    85% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) translateX(5px) scale(0.3);
    }
}

@keyframes bubble-rise-fast {
    0% {
        opacity: 0;
        transform: translateY(120px) translateX(0) scale(0.6);
    }
    15% {
        opacity: 0.9;
        transform: translateY(70px) translateX(-8px) scale(1.1);
    }
    50% {
        transform: translateY(0px) translateX(10px) scale(0.9);
    }
    85% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) translateX(-10px) scale(0.5);
    }
}

.animate-bubble-1 {
    animation: bubble-rise-slow 4.5s ease-in-out infinite;
}
.animate-bubble-2 {
    animation: bubble-rise-medium 5.5s ease-in-out infinite;
}
.animate-bubble-3 {
    animation: bubble-rise-fast 6.5s ease-in-out infinite;
}

/* 15. Gallery Section Styles */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #AFD3E2; /* 画像がまだ登録されていない場合のプレースホルダー背景色 */
}

/* マーキー（無限ループスライド） */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 1rem; /* Tailwindのgap-4に一致 */
    padding-right: 1rem; /* グループ間の隙間調整 */
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    animation: marquee 50s linear infinite;
}

/* ホバー時にアニメーションを一時停止 */
.marquee-track:hover .animate-marquee {
    animation-play-state: paused;
}
