/*
    * 1. Custom Color & Font Mapping (Replicating Tailwind/Original Design)
    */
:root {
    /* Rose Palette */
    --color-rose-900: #881337;
    --color-rose-500: #f43f5e;
    --color-rose-400: #fb7185;
    --color-rose-200: #fecdd3;
    --color-rose-100: #ffe4e6;
    --color-rose-50: #fff1f2;

    /* Stone Palette */
    --color-stone-800: #292524;
    --color-stone-700: #44403c;
    --color-stone-600: #57534e;
    --color-stone-500: #78716c;
    --color-stone-300: #d6d3d1;

    /* Green Palette */
    --color-green-800: #166534;
    --color-green-600: #16a34a;
    --color-green-50: #f0fdf4;

    /* Men's Accent Color */
    --color-men-blue: #1e293b;
}

body {
    background-color: #f5f5f4; /* bg-stone-100 */
    font-family: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

/* モバイルラッパー (幅固定と中央寄せ) */
.mobile-wrapper {
    max-width: 767px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景が白のコンテンツエリア */
.content-area {
    background-color: #ffffff;
}

/* カスタムユーティリティクラス */
.font-serif { font-family: 'Noto Serif JP', serif; }

.text-rose-900 { color: var(--color-rose-900); }
.text-rose-500 { color: var(--color-rose-500); }
.text-rose-400 { color: var(--color-rose-400); }
.text-rose-200 { color: var(--color-rose-200); }
.bg-rose-50 { background-color: var(--color-rose-50); }
.bg-rose-100 { background-color: var(--color-rose-100); }
.bg-rose-500 { background-color: var(--color-rose-500); }
.bg-rose-900 { background-color: var(--color-rose-900); }
.border-rose-100 { border-color: var(--color-rose-100) !important; }

.text-stone-700 { color: var(--color-stone-700); }
.text-stone-600 { color: var(--color-stone-600); }
.text-stone-500 { color: var(--color-stone-500); }
.text-stone-400 { color: var(--color-stone-300); }
.bg-stone-800 { background-color: var(--color-stone-800); }
.text-white { color: white !important; }

.section-py { padding-top: 4rem; padding-bottom: 4rem; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tracking-widest { letter-spacing: 0.1em; }
.object-cover { object-fit: cover; }

/* Navigation visibility */
#main-nav {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(214, 211, 209, 0.9);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

#main-nav.bg-white {
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.4) !important;
}

#main-nav.bg-transparent {
    background: rgba(255, 255, 255, 0.86) !important;
}

#main-nav .font-serif {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

#menu-toggle-btn {
    color: var(--color-stone-700) !important;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 9999px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#main-nav #navbarNav {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid rgba(214, 211, 209, 0.9) !important;
    box-shadow: 0 14px 24px -18px rgba(0, 0, 0, 0.35) !important;
}

#main-nav #navbarNav .btn {
    font-weight: 600;
    color: var(--color-stone-700) !important;
}

/* アニメーション */
.animate-slideUp { animation: slideUp 0.6s ease-out forwards; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

header{
    position: relative;
    z-index: 1;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

header .display-6 {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1.35 !important;
}

.otameshi{
    position: relative;
    margin-top: -200px;
    z-index: 2;
}
.price-compare-container {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}
.price-column {
    flex: 1;
    border-radius: 1.5rem;
    padding: 1.5rem 0.75rem;
    text-align: center;
    border: 1px solid var(--color-stone-300);
    background: white;
    transition: transform 0.3s ease;
}
.price-column.ladies {
    background-color: var(--color-rose-50);
    border-color: var(--color-rose-200);
}
.price-column.mens {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}
.column-title {
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.1em;
}
.ladies .column-title { color: var(--color-rose-900); }
.mens .column-title { color: var(--color-men-blue); }

.item-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-stone-700);
    display: block;
    margin-bottom: 0.5rem;
}
.item-val {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}
.ladies .item-val { color: var(--color-rose-500); }
.mens .item-val { color: var(--color-men-blue); }

.price-sub {
    font-size: 0.65rem;
    color: var(--color-stone-500);
    margin-top: 0.5rem;
    display: block;
    text-decoration: line-through;
}

.btn-cta {
    background-color: var(--color-stone-800);
    color: white;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
}
.btn-cta:hover {
    opacity: 0.9;
    color: white;
}

/* Before / After */
.before-after-section {
    background: linear-gradient(180deg, #ffffff 0%, #fff6f7 100%);
}

.ba-slider-wrap {
    max-width: 640px;
}

.ba-slider {
    --position: 50;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--color-rose-200);
    box-shadow: 0 14px 36px -26px rgba(136, 19, 55, 0.45);
    aspect-ratio: 4 / 3;
    background: #f9f7f6;
}

.ba-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-image-before {
    filter: saturate(0.8) contrast(0.88) brightness(0.93);
}

.ba-before-layer {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
    z-index: 1;
}

.ba-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--position) * 1%);
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(136, 19, 55, 0.18);
    pointer-events: none;
}

.ba-handle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(136, 19, 55, 0.18);
    background: #ffffff;
    color: var(--color-rose-900);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.ba-label {
    position: absolute;
    top: 0.75rem;
    z-index: 3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: rgba(41, 37, 36, 0.5);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.ba-label-before {
    left: 0.75rem;
}

.ba-label-after {
    right: 0.75rem;
}

.ba-range-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.ba-case-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.ba-case-tab {
    border: 1px solid var(--color-rose-200);
    background: #ffffff;
    color: var(--color-stone-600);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.35rem;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
}

.ba-case-tab.is-active {
    background: linear-gradient(135deg, var(--color-rose-500) 0%, var(--color-rose-900) 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 18px -12px rgba(136, 19, 55, 0.7);
}

.ba-note {
    margin-top: 0.65rem;
    color: var(--color-stone-500);
    font-size: 0.68rem;
}

/* 既存指定クラス */
.paba { padding-bottom: 80px; }
p { margin-bottom: 0; }
.about-img { width: 100%; text-align: center; margin: 20px 0; }
.about-img img { width: 30%; }

        .welcome-link {
            display: block;
            background: linear-gradient(135deg, var(--color-rose-500) 0%, var(--color-rose-900) 100%);
            border-radius: 1.5rem;
            padding: 2rem 1.5rem;
            text-align: center;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            margin-top: 2rem;
            position: relative;
            overflow: hidden;
            box-shadow: 0 10px 30px -5px rgba(244, 63, 94, 0.4);
        }

        /* 輝きのアニメーション */
        .welcome-link::after {
            content: "";
            position: absolute;
            top: -50%;
            left: -60%;
            width: 20%;
            height: 200%;
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(30deg);
            transition: none;
            animation: shine 4s infinite;
        }

        @keyframes shine {
            0% { left: -60%; opacity: 0; }
            20% { opacity: 1; }
            40% { left: 140%; opacity: 0; }
            100% { left: 140%; opacity: 0; }
        }

        .welcome-link:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 20px 40px -10px rgba(244, 63, 94, 0.5);
        }

        .welcome-link .badge-new {
            display: inline-block;
            background-color: #fff;
            color: var(--color-rose-900);
            font-size: 0.65rem;
            font-weight: 900;
            padding: 0.2rem 0.8rem;
            border-radius: 50px;
            margin-bottom: 0.75rem;
            letter-spacing: 0.1em;
        }

        .welcome-link .title {
            font-size: 0.9rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 0.25rem;
            display: block;
        }

        .welcome-link .action-text {
            font-size: 1.4rem;
            font-weight: 700;
            color: #ffffff;
            display: block;
            letter-spacing: 0.05em;
            margin-bottom: 0.5rem;
        }

        .welcome-link .sub-text {
            font-size: 0.7rem;
            color: rgba(255, 255, 255, 0.7);
            display: block;
        }

                .reason-container {
            margin-top: 2rem;
        }

        /* 上段4カラム */
        .reason-row-top {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 10px;
        }

        /* 下段3カラム */
        .reason-row-bottom {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            width: 90%;
            margin: 0 auto; /* 下段を中央寄せ */
        }

        /* モバイル対応（非常に狭い画面では見やすさを考慮して調整） */
        @media (max-width: 576px) {
            .reason-row-top {
                grid-template-columns: repeat(2, 1fr);
            }
            .reason-row-bottom {
                grid-template-columns: repeat(2, 1fr);
                width: 100%;
            }
            /* 最後の1個を中央寄せにするための処理（奇数の場合など） */
            .reason-row-bottom .reason-item:last-child {
                grid-column: span 2;
                max-width: 50%;
                margin: 0 auto;
            }
        }

        .reason-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            background: #fff;
            border: 1px solid var(--color-rose-50);
            border-radius: 1rem;
            padding: 1rem 0.5rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.02);
            height: 100%;
        }

        .reason-number {
            font-family: 'Noto Serif JP', serif;
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--color-rose-200);
            margin-bottom: 0.5rem;
        }

        .reason-icon-wrapper {
            width: 40px;
            height: 40px;
            background: var(--color-rose-50);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 0.75rem;
            flex-shrink: 0;
        }

        .reason-title {
            font-size: 0.7rem; /* カラムが増えるためフォントサイズを微調整 */
            font-weight: 700;
            color: var(--color-stone-800);
            margin: 0;
            line-height: 1.3;
            word-break: keep-all;
        }

        /* 共通カードデザイン */
        .feature-card {
            background: #fff;
            border: 1px solid var(--color-rose-50);
            border-radius: 1.25rem;
            padding: 1.5rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.03);
        }

        .feature-icon-box {
            width: 50px;
            height: 50px;
            background: var(--color-rose-50);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .feature-text-box h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--color-rose-900);
            margin-bottom: 0.25rem;
        }

        .feature-text-box p {
            font-size: 0.85rem;
            color: var(--color-stone-600);
            margin: 0;
            line-height: 1.4;
        }

/* Menu / Pricing (image-like layout) */
.menu-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-size: 1rem;
}

.menu-map-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.menu-map-image {
    width: 100%;
    height: auto;
    display: block;
}

.menu-price-board {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-gender-title {
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.4rem;
    margin: 0;
}

.menu-gender-title.ladies {
    color: #e05b87;
}

.menu-gender-title.mens {
    color: #5f738b;
}

.menu-parts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.menu-part-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.menu-part-card h4 {
    margin: 0;
    font-family: 'Noto Serif JP', serif;
    color: var(--color-stone-700);
    font-size: 1.2rem;
}

.menu-part-note {
    margin-top: 0.5rem;
    color: var(--color-stone-500);
    font-size: 0.8rem;
    line-height: 1.6;
    min-height: 3.4rem;
}

.menu-course-list {
    margin-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-course-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.menu-course-row span:first-child {
    color: var(--color-stone-700);
    font-weight: 700;
    font-size: 1rem;
}

.menu-course-row span:last-child {
    color: var(--color-stone-700);
    font-weight: 500;
    font-size: 1rem;
}

.menu-band {
    background: #fff;
}

.menu-band-title {
    margin: 0;
    padding: 0.55rem 1rem;
    border-radius: 9999px;
    text-align: center;
    color: #fff;
    background: linear-gradient(90deg, #22c1c3 0%, #16a3ad 100%);
    font-family: 'Noto Serif JP', serif;
    font-size: 1.35rem;
}

.menu-band-caption {
    margin-top: 0.8rem;
    text-align: center;
    color: var(--color-stone-600);
    font-size: 0.8rem;
}

.menu-dual-grid {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.menu-dual-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.menu-dual-card h4 {
    margin: 0;
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    color: var(--color-stone-700);
    font-size: 1.2rem;
}

.menu-label-ladies {
    color: #e05b87 !important;
}

.menu-label-mens {
    color: #5f738b !important;
}

.menu-dual-main {
    margin-top: 0.5rem;
    color: var(--color-stone-700);
    font-size: 1rem;
    font-weight: 700;
}

.menu-dual-sub {
    margin-top: 0.2rem;
    color: var(--color-stone-500);
    font-size: 0.8rem;
}

.menu-dual-price {
    margin-top: 0.7rem;
    color: var(--color-stone-700);
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    text-align: right;
}

@media (max-width: 767px) {
    .menu-parts-grid {
        grid-template-columns: 1fr;
    }

    .menu-dual-grid {
        grid-template-columns: 1fr;
    }

    .menu-gender-title {
        font-size: 1.2rem;
    }

    .menu-band-title {
        font-size: 1.1rem;
    }

    .menu-part-card h4,
    .menu-dual-card h4 {
        font-size: 1.1rem;
    }
}

/* FAQ */
#faqAccordion .accordion-button {
    color: var(--color-rose-500) !important;
}

/* Ocean Hair Removal section */
.ohr-section {
    padding: 88px 0 96px;
    background: transparent;
}

.ohr-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 28px;
}

.ohr-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ohr-card {
    border: 1.5px solid #f3e6ea;
    border-radius: 16px;
    padding: 24px 24px 22px;
    position: relative;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    animation: ohr-rise 0.45s ease forwards;
}

.ohr-card:hover {
    border-color: #ffc2d1;
    box-shadow: 0 6px 28px #f72d6e14;
    transform: translateY(-3px);
}

.ohr-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f72d6e;
    background: #fff0f3;
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 12px;
}

.ohr-card-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    background: #f72d6e;
    border-radius: 50%;
    display: inline-block;
}

.ohr-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #1c1917;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.ohr-card-body {
    font-size: 0.79rem;
    color: #6b7280;
    line-height: 1.9;
    font-weight: 300;
    margin: 0;
}

.ohr-card-num {
    position: absolute;
    bottom: 10px;
    right: 16px;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fce8ef;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.ohr-card:nth-child(1) { animation-delay: 0.05s; }
.ohr-card:nth-child(2) { animation-delay: 0.13s; }
.ohr-card:nth-child(3) { animation-delay: 0.21s; }
.ohr-card:nth-child(4) { animation-delay: 0.29s; }
.ohr-card:nth-child(5) { animation-delay: 0.37s; }
.ohr-card:nth-child(6) { animation-delay: 0.45s; }

@keyframes ohr-rise {
    to { opacity: 1; transform: translateY(0); }
}
