/* style.css */

/* --- テーマ変数の定義 --- */

/* デフォルト (Pink Theme) */
:root {
    --primary-color: #D4A373; /* Elegant Gold/Beige */
    --primary-dark: #b58555;
    --accent-color: #E8B4B8; /* Soft pink */
    --accent-dark: #C0392B; /* Reddish */
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #FAFAFA;
    --bg-light-accent: #FFF5F5; /* Pinkish bg */
    --white: #FFFFFF;
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
    --border-radius: 8px;
    --transition: 0.3s ease;
    --pattern-fill: "%23fff5f5";
}

/* Blue Theme (清楚・涼しげ・ヒアルロン酸など) */
[data-theme="blue"] {
    --primary-color: #A3C4D4; 
    --primary-dark: #7a9ead;
    --accent-color: #8EB5D4; 
    --accent-dark: #2980B9; 
    --bg-light-accent: #F0F8FF; /* AliceBlue */
    --pattern-fill: "%23f0f8ff";
}

/* Green Theme (オーガニック・安心・自然) */
[data-theme="green"] {
    --primary-color: #A5C4AF; 
    --primary-dark: #7a9e86;
    --accent-color: #B5D4A3; 
    --accent-dark: #27AE60; 
    --bg-light-accent: #F5FFF5; 
    --pattern-fill: "%23f5fff5";
}

/* Purple Theme (上品・アンチエイジング) */
[data-theme="purple"] {
    --primary-color: #9B59B6; 
    --primary-dark: #76448A;
    --accent-color: #C39BD3; 
    --accent-dark: #8E44AD; 
    --bg-light-accent: #F4ECF7; 
    --pattern-fill: "%23f4ecf7";
}

/* Monochrome Theme (モダン・洗練) */
[data-theme="monochrome"] {
    --primary-color: #555555; 
    --primary-dark: #222222;
    --accent-color: #888888; 
    --accent-dark: #111111; 
    --bg-light-accent: #F8F8F8; 
    --pattern-fill: "%23f8f8f8";
}

/* Gold Theme (超高級・VIP) */
[data-theme="gold"] {
    --primary-color: #D4AF37; 
    --primary-dark: #AA8C2C;
    --accent-color: #C5B358; 
    --accent-dark: #8A7322; 
    --bg-color: #111111; /* Dark background */
    --text-color: #EEEEEE;
    --text-light: #AAAAAA;
    --bg-light-accent: #222222; 
    --white: #1A1A1A; /* Cards background */
    --pattern-fill: "%23222222";
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

/* For hiding sections dynamically */
.hidden-section {
    display: none !important;
}

/* --- ContentEditable Simulation for Demo --- */
[contenteditable="true"] {
    outline: none;
    transition: outline 0.2s;
    border-radius: 4px;
}
[contenteditable="true"]:hover {
    outline: 2px dashed rgba(0, 0, 0, 0.2);
    cursor: text;
}
[data-theme="gold"] [contenteditable="true"]:hover {
    outline: 2px dashed rgba(255, 255, 255, 0.4);
}
[contenteditable="true"]:focus {
    outline: 2px dashed var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Typography & Titles --- */
.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 40px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.section-title span {
    font-size: 1.5em;
    color: var(--primary-color);
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

.mt-30 {
    margin-top: 30px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: #FFF !important;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary i {
    margin-left: 10px;
    pointer-events: none;
}

/* Shiny Effect */
.shiny-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* --- 1. FV --- */
.fv {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.fv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fv-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.fv-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 100%);
}
[data-theme="gold"] .fv-bg::after {
    background: linear-gradient(to right, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.5) 100%);
}

.fv-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.fv-clinic-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.fv-catchcopy {
    font-family: var(--font-heading);
    font-size: 46px;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}
[data-theme="gold"] .fv-catchcopy { text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

.fv-subcopy {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* --- NEW: Campaign Slider --- */
.campaign {
    background-color: var(--bg-light-accent);
    padding: 40px 0; /* Override section padding for a tighter fit */
}
.campaignSwiper {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.campaignSwiper img {
    width: 100%;
    height: auto;
    aspect-ratio: 21/9;
    object-fit: cover;
}
.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}
.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* --- 2. Features --- */
.features {
    background-color: var(--white);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-light-accent);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-heading {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.feature-text {
    font-size: 15px;
    color: var(--text-light);
    text-align: left;
}

/* --- 3. Worries --- */
.worries {
    background-color: var(--bg-color);
}

.worries-box {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 2px solid var(--accent-color);
}

.worries-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 28px;
    color: var(--accent-dark);
    margin-bottom: 30px;
}

.worries-list {
    list-style: none;
    max-width: 600px;
    margin: 0 auto 30px;
}

.worries-list li {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}

.worries-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent-dark);
    font-size: 20px;
}

.worries-conclusion {
    text-align: center;
    font-size: 20px;
    color: var(--text-color);
    line-height: 1.6;
}

.worries-conclusion strong {
    color: var(--accent-dark);
    font-size: 24px;
}

/* --- 4. Pricing --- */
.pricing {
    background-color: var(--white);
}

.section-desc {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.table-responsive {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: var(--white);
}

.pricing-table th,
.pricing-table td {
    border: 1px solid #E0E0E0;
    padding: 20px;
    text-align: left;
}
[data-theme="gold"] .pricing-table th, [data-theme="gold"] .pricing-table td { border-color: #333; }

.pricing-table th {
    background-color: var(--bg-light-accent);
    color: var(--primary-dark);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.pricing-table .bold {
    font-weight: 700;
    color: var(--text-color);
    width: 25%;
}

.pricing-table .price {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 20px;
    white-space: nowrap;
    text-align: right;
}

.pricing-note {
    font-size: 14px;
    color: var(--text-light);
    text-align: right;
}

/* --- 5. Cases --- */
.cases {
    background-color: var(--bg-color);
}

.case-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.case-images {
    display: flex;
}

.case-img-wrap {
    width: 50%;
    position: relative;
}

.case-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.case-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 15px;
    color: #FFF;
    font-weight: 700;
    font-size: 14px;
    border-radius: 3px;
    z-index: 2;
}

.case-label.before {
    background-color: #95A5A6;
}

.case-label.after {
    background-color: var(--primary-color);
}

.case-info {
    padding: 30px;
}

.case-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 15px;
}

.case-desc {
    margin-bottom: 20px;
}

.case-details {
    list-style: none;
    background: var(--bg-light-accent);
    padding: 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.case-details li {
    margin-bottom: 10px;
}
.case-details li:last-child {
    margin-bottom: 0;
}

/* --- NEW: Clinic Intro (Alternating Blocks) --- */
.clinic-intro {
    background-color: var(--white);
}

.split-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.split-block:last-child {
    margin-bottom: 0;
}

/* reverse class switches the flex direction */
.split-block.reverse {
    flex-direction: row-reverse;
}

.split-img {
    width: 50%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.split-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 0.5s ease;
}

.split-img:hover img {
    transform: scale(1.05);
}

.split-text {
    width: 50%;
    padding: 20px;
}

.split-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.split-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- 6. Flow --- */
.flow {
    background-color: var(--bg-color);
}

.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
[data-theme="gold"] .step { background: var(--bg-light-accent); }

.step-num {
    background: var(--primary-color);
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 700;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
}

.step-content {
    padding: 30px;
    flex: 1;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* --- 7. Doctor --- */
.doctor {
    background-color: var(--bg-light-accent);
}

.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between multiple doctors */
}

.doctor-profile {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.doctor-img {
    width: 40%;
    flex-shrink: 0;
}

.doctor-img img {
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.doctor-text {
    width: 60%;
}

.doctor-role {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.doctor-name {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 20px;
}

.doctor-name span {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 10px;
}

.doctor-msg {
    margin-bottom: 30px;
}

.doctor-history h4 {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #EEE;
    padding-bottom: 5px;
}
[data-theme="gold"] .doctor-history h4 { border-color: #444; }

.doctor-history p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- 8. Reviews --- */
.reviews {
    background-color: var(--white);
}

.review-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.review-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #EEEEEE;
}
[data-theme="gold"] .review-card { border-color: #333; background: var(--bg-light-accent); }

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-stars {
    color: #F39C12;
    font-size: 14px;
}

.review-meta {
    font-size: 14px;
    color: var(--text-light);
}

.review-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.review-body {
    font-size: 15px;
    color: var(--text-light);
}

/* --- 9. FAQ --- */
.faq {
    background-color: var(--bg-color);
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.accordion-header .icon {
    color: var(--primary-color);
    font-size: 24px;
    margin-right: 15px;
    font-family: var(--font-heading);
}

.accordion-header .toggle-icon {
    margin-left: auto;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.accordion-header.active .toggle-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content p {
    padding: 0 20px 20px 50px;
    color: var(--text-light);
    display: flex;
}

.accordion-content .icon-a {
    color: var(--accent-dark);
    font-size: 20px;
    margin-right: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* --- 10. Access --- */
.access {
    background-color: var(--white);
}

.access-content {
    display: flex;
    gap: 40px;
}

.access-info {
    width: 50%;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 15px;
    border-bottom: 1px solid #EEE;
    text-align: left;
}
[data-theme="gold"] .info-table th, [data-theme="gold"] .info-table td { border-color: #333; }

.info-table th {
    width: 30%;
    font-weight: 700;
    color: var(--primary-dark);
}

.access-map {
    width: 50%;
}

.access-map iframe {
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- 11. Footer CTA --- */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    border-top: 1px solid #EEE;
}
[data-theme="gold"] .fixed-cta {
    background: rgba(26, 26, 26, 0.95);
    border-color: #333;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cta-msg {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.fixed-cta .btn-primary {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100%;
}

/* --- Demo Panel Styles --- */
.demo-panel {
    position: fixed;
    top: 5%;
    right: 0;
    width: 320px;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    border-radius: 10px 0 0 10px;
    transition: transform 0.3s ease;
    color: #333;
}
.demo-panel.closed {
    transform: translateX(320px);
}
.demo-toggle {
    position: absolute;
    top: 20px;
    left: -80px;
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}
.demo-content {
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}
.demo-content h4 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #EEE;
    padding-bottom: 10px;
}
.demo-group {
    margin-bottom: 20px;
}
.demo-group h5 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}
.theme-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.theme-btn {
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.2s;
    text-align: left;
}
.theme-btn:hover {
    opacity: 0.8;
}
.theme-btn.active {
    outline: 2px solid #333;
    outline-offset: 2px;
}
.demo-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
}
.demo-note {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 26px; margin-bottom: 30px; }
    
    .fv-catchcopy { font-size: 32px; }
    .fv-subcopy { font-size: 15px; }
    .fv-bg::after { background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.4) 100%); }
    [data-theme="gold"] .fv-bg::after { background: linear-gradient(to top, rgba(17,17,17,1) 0%, rgba(17,17,17,0.5) 100%); }
    
    .fv-content { padding-top: 250px; text-align: center; }
    .fv-btn-area { display: flex; justify-content: center; }

    .feature-cards { grid-template-columns: 1fr; }
    .worries-box { padding: 30px 20px; }
    .worries-title { font-size: 24px; }
    .worries-list li { font-size: 16px; }

    .pricing-table th, .pricing-table td { padding: 15px 10px; font-size: 14px; }
    .pricing-table .bold { width: auto; }
    .pricing-table .price { font-size: 16px; }

    .case-images { flex-direction: column; }
    .case-img-wrap { width: 100%; }
    
    /* Clinic Intro Mobile */
    .split-block, .split-block.reverse { flex-direction: column; gap: 20px; margin-bottom: 40px; }
    .split-img, .split-text { width: 100%; }
    .split-text { padding: 0 10px; text-align: center; }
    
    .step { flex-direction: column; }
    .step-num { width: 100%; padding: 10px 0; }
    .step-content { padding: 20px; }

    .doctor-profile { flex-direction: column; gap: 30px; padding: 30px 20px; }
    .doctor-img, .doctor-text { width: 100%; }

    .review-list { grid-template-columns: 1fr; }

    .accordion-header { font-size: 16px; padding: 15px; }
    
    .access-content { flex-direction: column; }
    .access-info, .access-map { width: 100%; }
    
    .demo-panel { top: 10%; width: 280px; }
    .demo-panel.closed { transform: translateX(280px); }
}
