/* 癒しと脱毛サロン trillium デザイン・システム */

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

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

.en-title,
.en-font,
.about-title-drawn,
.section-title.en-font {
    font-family: 'Cormorant Garamond', 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;
    /* テキスト選択とコピーを禁止（コンテンツ保護） */
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-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. セクション見出し (master_4-1.jpg) */
.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;
}

/* 7. ボタン類・ユーティリティ */

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

/* Watercolor blob layer via pseudo-elements */
.bg-service-gradient::before,
.bg-service-gradient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: multiply;
}

/* Blob 1 – Soft rose, floats top-left → bottom-right */
.bg-service-gradient::before {
    width: 55vw;
    height: 55vw;
    max-width: 700px;
    max-height: 700px;
    background: radial-gradient(ellipse, rgba(217,160,181,0.45) 0%, rgba(255,234,242,0.15) 70%, transparent 100%);
    top: -15%;
    left: -10%;
    animation: wc-blob-1 22s ease-in-out infinite alternate;
}

/* Blob 2 – Pale gold, drifts bottom-right */
.bg-service-gradient::after {
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(ellipse, rgba(212,175,55,0.18) 0%, rgba(255,248,200,0.12) 60%, transparent 100%);
    bottom: -10%;
    right: -8%;
    animation: wc-blob-2 28s ease-in-out infinite alternate;
}

/* Extra blob via .sewing-thread-overlay reused as blob layer */
.sewing-thread-overlay {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sewing-thread-overlay::before,
.sewing-thread-overlay::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    mix-blend-mode: multiply;
}

/* Blob 3 – Blush pink, centre-top */
.sewing-thread-overlay::before {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(ellipse, rgba(232,197,211,0.38) 0%, transparent 70%);
    top: 10%;
    left: 35%;
    animation: wc-blob-3 18s ease-in-out infinite alternate;
}

/* Blob 4 – Very light mauve, bottom-left */
.sewing-thread-overlay::after {
    width: 35vw;
    height: 35vw;
    max-width: 420px;
    max-height: 420px;
    background: radial-gradient(ellipse, rgba(191,143,172,0.22) 0%, transparent 70%);
    bottom: 5%;
    left: 5%;
    animation: wc-blob-4 24s ease-in-out infinite alternate;
}

/* Make sure content sits above blobs */
.bg-service-gradient > *:not(.sewing-thread-overlay) {
    position: relative;
    z-index: 1;
}

@keyframes wc-blob-1 {
    0%   { transform: translate(0, 0) scale(1);    opacity: 0.85; }
    33%  { transform: translate(8%, 12%) scale(1.03); opacity: 1;    }
    66%  { transform: translate(14%, 5%) scale(0.95); opacity: 0.9; }
    100% { transform: translate(6%, 18%) scale(1.02); opacity: 0.8; }
}

@keyframes wc-blob-2 {
    0%   { transform: translate(0, 0) scale(1);      opacity: 0.75; }
    40%  { transform: translate(-10%, -8%) scale(1.04); opacity: 0.9; }
    70%  { transform: translate(-5%, -14%) scale(0.9);  opacity: 0.8; }
    100% { transform: translate(-12%, -6%) scale(1.03); opacity: 0.7; }
}

@keyframes wc-blob-3 {
    0%   { transform: translate(0, 0) scale(1);     opacity: 0.7; }
    50%  { transform: translate(6%, 10%) scale(1.02); opacity: 0.9; }
    100% { transform: translate(-4%, 6%) scale(0.95); opacity: 0.75; }
}

@keyframes wc-blob-4 {
    0%   { transform: translate(0, 0) scale(1);       opacity: 0.65; }
    45%  { transform: translate(10%, -6%) scale(1.03);  opacity: 0.85; }
    100% { transform: translate(5%, -12%) scale(0.9);  opacity: 0.7; }
}



/* 11. Signature Drawing Title (Common) */
.signature-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-style: italic;
    font-size: 4rem;
    font-weight: 500;
    
    /* Gold Gradient */
    background: linear-gradient(135deg, #b38728 0%, #fbf5b7 50%, #9e721d 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 Gold Color override to prevent gradient inherit */
    -webkit-text-fill-color: #b38728 !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);
    }
}

/* 12. Button Style 21 (Square with Shadow) */
.button-21 {
    display: block;
}

.button-21 a {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #666;
    font-weight: 700;
    outline: 1px solid #d1d1d1;
    display: block;
    position: relative;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
    padding: 16px 10px;
    text-decoration: none;
    cursor: pointer;
    z-index: 1;
    transition: all 0.3s;
    background: #fff;
}

.button-21 a::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 100%;
    height: 100%;
    background: #f7f7f7;
    z-index: -1;
    transition: all 0.3s ease;
}

.button-21 a:hover::before {
    top: 0;
    left: 0;
}

/* 個別カラー（白に近い極めて淡いトーン） */
.button-21:nth-child(1) a::before {
    background: #FFF8FB;
}

/* 13. Service Section Fukidashi Style */
.fukidashi-10 {
    position: relative;
    display: inline-block;
    padding: 10px 32px;
    border: solid 1px #D9A0B5;
    background-color: #D9A0B5;
    color: #fff;
    margin-bottom: 40px;
    width: fit-content;
    font-family: 'Shippori Mincho', serif;
    letter-spacing: 0.1em;
}

/* 傾きを打ち消して文字を直立させる (傾き自体を削除したので不要) */
.fukidashi-10 span {
    display: inline-block;
}

.fukidashi-10::before {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 20%;
    height: 25px;
    width: 25px;
    border-right: 2px solid #D9A0B5;
    transform: rotate(40deg);
}

/* 数字強調用 */
.fukidashi-digit {
    font-size: 1.8em;
    font-weight: 700;
    margin-left: 8px;
    line-height: 1;
    vertical-align: baseline;
}

/* 14. FV Section (onzs-shibuya style) */
.fv-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #FFFCF2;
    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/fv00.png');
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.05);
    z-index: -1;
}

.fv-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 60px;
    align-items: center;
}

.fv-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 500px;
    padding-left: 20px;
}

.fv-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.fv-deco {
    position: absolute;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.fv-deco.show {
    opacity: 0.45;
}

.fv-deco-01 {
    top: 8%;
    right: 15%;
    width: clamp(150px, 28%, 220px);
}

.fv-deco-02 {
    bottom: 0%;
    left: -15%;
    width: clamp(200px, 50%, 320px);
}

.fv-deco-03 {
    bottom: 12%;
    left: 45%;
    transform: translateX(-50%);
    width: clamp(180px, 42%, 300px);
}

.fv-deco-04 {
    top: 28%;
    right: 10%;
    width: clamp(120px, 22%, 180px);
}

.fv-deco-05 {
    top: 32%;
    right: -8%;
    width: clamp(160px, 32%, 240px);
}

.fv-left-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    text-align: left;
}

.fv-catch,
.fv-sub,
.fv-logo,
.fv-read-more {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fv-catch.is-active,
.fv-sub.is-active,
.fv-logo.is-active {
    opacity: 1;
    --opacity: 1;
    --translate-y: 0;
}

.char {
    display: inline-block;
    opacity: var(--opacity, 0);
    transform: translateY(var(--translate-y, 15px));
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    transition-delay: calc(0.04s * var(--char-index));
    white-space: pre;
}

.fv-catch,
.service-point-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(1.2rem, 4vw, 2.4rem);
    line-height: 1.6;
    color: #333333;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.fv-catch {
    margin-bottom: 1.5rem;
}

.service-point-title {
    margin-bottom: 1.5rem;
}

.fv-catch-line {
    display: block;
}

.fv-sub {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    letter-spacing: 0.2em;
    color: #8B7E6F;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.fv-logo {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 500;
    font-style: normal;
    color: #333333;
    letter-spacing: 0.15em;
    margin-bottom: 3.5rem;
    line-height: 1.1;
}

.fv-logo-line {
    display: block;
}

@media (min-width: 1025px) {
    .fv-logo-line {
        display: inline-block;
    }

    .fv-logo-line:first-child::after {
        content: '\00a0';
        /* Space between ATELIER and PATIO on desktop */
    }
}

.fv-logo .char {
    transition-delay: calc(0.06s * var(--char-index));
}

.fv-read-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: fit-content;
}

.fv-read-more.is-visible {
    opacity: 1;
}

.fv-read-more-line {
    width: 1px;
    height: 0;
    background-color: #8B7E6F;
}

.fv-read-more-line.animate {
    animation: lineGrow 1.2s ease-out forwards;
}

@keyframes lineGrow {
    from {
        height: 0;
    }

    to {
        height: 80px;
    }
}

.fv-read-more-text {
    font-family: 'Shippori Mincho', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: #8B7E6F;
    text-transform: uppercase;
}

/* Right Column - Image Grid */
.fv-right {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.fv-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 180px 300px;
    gap: 15px;
    width: 100%;
    align-self: center;
}

.fv-grid-item {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    border-radius: 4px;
}

.fv-grid-item.show {
    opacity: 1;
    transform: translateY(0);
}

.fv-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.fv-grid-item:hover img {
    transform: scale(1.02);
}

.fv-grid-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.fv-grid-2 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

.fv-grid-3 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}


@media (min-width: 1025px) {
    .fv-right {
        width: 140%;
        max-width: 140%;
        margin-left: -5%;
    }
}

@media (max-width: 1024px) {
    .fv-section {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .fv-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 40px;
    }

    .fv-left {
        min-height: auto;
        justify-content: center;
        padding-left: 0;
    }

    .fv-left-content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .fv-decorations {
        display: block;
        opacity: 0.6;
    }

    .fv-deco-01 {
        width: 120px;
        top: -5%;
        right: 5%;
    }

    .fv-deco-02 {
        width: 180px;
        bottom: -5%;
        left: -5%;
    }

    .fv-read-more {
        margin: 0 auto;
    }

    .fv-image-grid {
        grid-template-rows: repeat(2, 200px);
    }
}

@media (max-width: 768px) {
    .fv-section {
        padding: 60px 0 40px;
    }

    .fv-container {
        padding: 0 20px;
        gap: 16px;
    }

    .fv-read-more {
        display: none;
    }

    .fv-left-content {
        padding-top: 40px;
    }

    /* SPサイズの時、本文のフォントを14ピクセルに変更 */
    p, li, .text-base, .text-sm {
        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-image-grid {
        grid-template-rows: repeat(2, 160px);
        gap: 10px;
    }
}

/* 15. Gallery Flowing Animation Fix */
.gallery-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

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

/* Responsive Watercolor Backgrounds */
.custom-bg-watercolor {
    background-image: url('../img/back03.jpg');
    background-size: cover;
    background-position: center;
}
@media (min-width: 768px) {
    .custom-bg-watercolor {
        background-image: url('../img/back03.jpg');
    }
}





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



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

/* ===== SP Swiper Sliders ===== */
/* Mobile: sp-card-swiper (3-card sections) */
.sp-card-swiper .swiper-slide {
    height: auto;
}
.sp-card-swiper .swiper-pagination {
    position: relative;
    margin-top: 1.5rem;
}
.sp-card-swiper .swiper-pagination-bullet-active {
    background-color: #D9A0B5;
}

/* Mobile: sp-menu-swiper (menu list items) */
.sp-menu-swiper {
    padding-bottom: 2.5rem !important;
}
.sp-menu-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    height: auto;
}
.sp-menu-swiper .menu-box {
    width: 100%;
    max-width: 320px;
}
.sp-menu-swiper .swiper-pagination {
    bottom: 0;
}
.sp-menu-swiper .swiper-pagination-bullet-active {
    background-color: #D9A0B5;
}

/* PC (768px+): restore grid layout for card swipers */
@media (min-width: 768px) {
    .sp-card-swiper,
    .sp-card-swiper .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        transform: none !important;
    }
    .sp-card-swiper .swiper-slide {
        width: auto !important;
        margin: 0 !important;
    }
    .sp-card-swiper .swiper-pagination {
        display: none;
    }

    /* PC: menu swiper becomes flex wrap */
    .sp-menu-swiper,
    .sp-menu-swiper .swiper-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        transform: none !important;
    }
    .sp-menu-swiper {
        padding-bottom: 0 !important;
    }
    .sp-menu-swiper .swiper-slide {
        width: auto !important;
        flex: 0 0 auto;
        margin: 0 !important;
    }
    .sp-menu-swiper .swiper-pagination {
        display: none;
    }
    .sp-menu-swiper .menu-box {
        max-width: none;
    }
    .menu-box {
        width: 280px;
    }
}


/* ===== SP: recommend section ===== */
#recommend .recommend-sp-br { display: inline; }
@media (min-width: 768px) {
    #recommend .recommend-sp-br { display: none; }
}
@media (max-width: 767px) {
    #recommend .recommend-point-box {
        width: 88%;
        margin-left: auto;
        margin-right: auto;
    }
}


