/* ===================================
   Subpage Styles — Sapporo International Clinic
   Minimal & Clean Design
   =================================== */

/* Page Hero */
.page-hero {
    background: var(--bg-light);
    padding: 48px 0 40px;
    color: var(--text-dark);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    margin-bottom: 12px;
    color: var(--text-light);
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 0.5rem; opacity: 0.5; }

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.page-hero p {
    font-family: var(--font-en);
    font-size: 0.82rem;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 500;
}

/* Page Hero Banner (image separate from text) */
.page-hero-banner {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
}

.page-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 420px;
}

@media (max-width: 768px) {
    .page-hero-banner {
        max-height: 280px;
    }
    .page-hero-banner img {
        max-height: 280px;
    }
}

/* Page Hero with Background Image */
.page-hero--image {
    position: relative;
    min-height: 340px;
    max-height: 420px;
    display: flex;
    align-items: center;
    padding: 80px 0 60px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.page-hero--image .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero--image h1 {
    font-size: 2.4rem;
}

.page-hero--image > .container > p {
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-body);
    opacity: 1;
}

/* Page Hero Dark (no overlay, white text) */
.page-hero--dark .page-hero-overlay {
    display: none;
}

.page-hero--dark h1 {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.page-hero--dark > .container > p {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.page-hero--dark .breadcrumb,
.page-hero--dark .breadcrumb a,
.page-hero--dark .breadcrumb span {
    color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
    .page-hero--image {
        min-height: 300px;
        padding: 60px 0 40px;
    }
    .page-hero--image h1 {
        font-size: 1.8rem;
    }
}

/* Intro Section */
.intro-section {
    padding: 64px 0 32px;
}

.intro-lead {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.intro-lead p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.9;
    margin-bottom: 14px;
}

.intro-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
}

.intro-badge i { font-size: 0.85rem; }

/* Steps */
.steps-section {
    padding: 64px 0;
    background: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 36px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-en);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Conditions */
.conditions-section {
    padding: 64px 0;
    background: var(--bg-light);
}

.conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}

.condition-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 20px;
}

.condition-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--primary);
    flex-shrink: 0;
}

.condition-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.condition-card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Pricing */
.pricing-section {
    padding: 64px 0;
    background: var(--bg-white);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
}

.pricing-card {
    text-align: center;
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
}

.pricing-card.featured {
    border-color: var(--primary-soft);
    box-shadow: var(--shadow-sm);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    display: block;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: -36px -24px 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pricing-card .price {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.pricing-card .price-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.pricing-card ul {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.pricing-card ul li {
    font-size: 0.82rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-card ul li i {
    color: var(--primary);
    font-size: 0.72rem;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Info Notice */
.info-notice {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--primary-light);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    max-width: 820px;
    margin: 32px auto 0;
}

.info-notice-icon {
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-notice h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.info-notice p {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* FAQ */
.faq-page-body {
    padding: 48px 0 64px;
    background: var(--bg-light);
}

.faq-list {
    max-width: 740px;
    margin: 0 auto;
}

.faq-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.04em;
    margin: 40px 0 8px;
    padding: 8px 14px;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.faq-category:first-child { margin-top: 0; }

.faq-item {
    border-bottom: 1px solid var(--border-soft);
}

.faq-item:last-of-type { border-bottom: none; }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: inherit;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover { color: var(--primary); }

.faq-question i {
    font-size: 0.65rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question { color: var(--primary); }
.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer { max-height: 500px; }

.faq-answer-inner {
    padding: 4px 4px 18px;
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.8;
}

.faq-section {
    padding: 64px 0;
    background: var(--bg-light);
}

/* Fee Table */
.fee-table-wrap {
    max-width: 680px;
    margin: 40px auto 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
}

.fee-table-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fee-table-title i {
    color: var(--primary);
    font-size: 1rem;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.fee-table thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0 0 8px;
    border-bottom: 2px solid var(--border-soft);
}

.fee-table thead th:last-child { text-align: right; }

.fee-table tbody td {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: var(--text-body);
}

.fee-table tbody td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
}

/* Page CTA */
.page-cta {
    padding: 64px 0;
    background: var(--primary);
    text-align: center;
}

.page-cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.page-cta p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    line-height: 1.8;
}

.page-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ===================================
   Message Page
   =================================== */
.message-page {
    background: var(--bg-light);
    padding: 64px 0;
}

.message-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 56px;
    align-items: start;
}

.message-photo-col {
    position: sticky;
    top: 100px;
    text-align: center;
}

.message-photo-frame {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    padding: 0;
}

.message-photo-frame img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: 0;
}

.message-namecard {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.namecard-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.namecard-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.namecard-name small {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
}

.message-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}

.message-text-col p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 2;
    margin-bottom: 18px;
}

.message-text-col p strong {
    color: var(--text-dark);
}

.message-sign {
    margin-top: 40px;
    padding-top: 28px;
}

.sign-line {
    width: 36px;
    height: 1px;
    background: var(--border);
    margin-bottom: 16px;
}

.sign-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.sign-role {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.sign-clinic {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
}

/* Doctor Profile */
.doctor-profile-section {
    padding: 64px 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-soft);
}

.profile-content {
    max-width: 720px;
    margin: 0 auto;
}

.profile-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    width: 100%;
}

.profile-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border-soft);
}

.profile-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.profile-card h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.profile-card ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-card li {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-left: 12px;
    border-left: 2px solid var(--border-soft);
}

.profile-card li strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.profile-card li span {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* FAQ CTA */
.faq-cta {
    padding: 64px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-soft);
}

.faq-cta-content {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.faq-cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
}

.faq-cta h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.faq-cta p {
    font-size: 0.92rem;
    color: var(--text-body);
    margin-bottom: 28px;
    line-height: 1.8;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero { padding: 36px 0 28px; }
    .page-hero h1 { font-size: 1.6rem; }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .conditions-grid { grid-template-columns: 1fr; }
    .pricing-cards { grid-template-columns: 1fr; }

    .info-notice {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    .page-cta-buttons { flex-direction: column; align-items: center; }

    .intro-section { padding: 48px 0 24px; }
    .steps-section, .conditions-section, .pricing-section, .faq-page-body, .page-cta, .faq-section { padding: 48px 0; }

    .message-page { padding: 40px 0; }

    .message-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .message-photo-col {
        position: static;
        display: flex;
        align-items: center;
        gap: 16px;
        max-width: 100%;
        margin: 0;
    }

    .message-photo-frame {
        width: 100px;
        min-width: 100px;
        padding: 0;
        border-radius: 0;
    }

    .message-namecard {
        margin-top: 0;
        text-align: left;
    }

    .namecard-role { font-size: 0.7rem; }
    .namecard-name { font-size: 0.95rem; }
    .namecard-name small { font-size: 0.75rem; }

    .message-heading { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 14px; }
    .message-text-col p { font-size: 0.88rem; line-height: 1.9; margin-bottom: 14px; }
    .message-sign { margin-top: 28px; padding-top: 20px; }

    .profile-cards { grid-template-columns: 1fr; }

    .faq-cta { padding: 48px 0; }
    .faq-cta-buttons { flex-direction: column; align-items: center; }

    .fee-table-wrap { padding: 20px 16px; }
}
