/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6b217b;
    --primary-dark: #4b0f5a;
    --primary-soft: #f4ebf7;
    --accent: #d4af37;
    --accent-dark: #b68d15;
    --text: #222;
    --muted: #666;
    --line: #e6ddea;
    --bg-gray: #f8f8f8;
    --white: #fff;
    --shadow: 0 8px 24px rgba(40, 12, 58, 0.08);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.75;
    color: var(--text);
    background: #fff;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow-container {
    width: min(960px, 100%);
    margin: 0 auto;
}

.section {
    padding: 88px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-purple {
    background: linear-gradient(135deg, #7a208a 0%, #431257 100%);
    color: #fff;
}

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.35;
    font-weight: 800;
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.section-title.white-text {
    color: #fff;
}

.section-title.left-align {
    text-align: left;
}

.section-intro,
.lead-text,
.table-note,
.consult-note {
    color: var(--muted);
    font-size: 17px;
}

.section-intro,
.lead-text {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 34px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img,
.footer-logo img {
    width: auto;
    height: 50px;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 14px 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, #f4d03f 100%);
    color: #1f1b12;
    text-decoration: none;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.35);
}

.cta-button-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: none;
}

.section .cta-button-outline,
.section-gray .cta-button-outline,
.cta-box .cta-button-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.section .cta-button-outline:hover,
.section-gray .cta-button-outline:hover,
.cta-box .cta-button-outline:hover {
    background: var(--primary-soft);
}

.hero .cta-button-outline,
.cta-section .cta-button-outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.82);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero .cta-button-outline:hover,
.cta-section .cta-button-outline:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.cta-button-small {
    min-height: 48px;
    padding: 10px 20px;
    font-size: 15px;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-group-compact {
    justify-content: flex-end;
}

.cta-label {
    display: block;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #762085 0%, #49105f 100%);
    color: #fff;
    padding: 72px 0 84px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-title {
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.22;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-lead {
    font-size: clamp(21px, 2.5vw, 28px);
    font-weight: 700;
    line-height: 1.5;
    color: #f8dd7b;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.96);
    margin-bottom: 24px;
}

.hero-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    list-style: none;
    margin-bottom: 28px;
}

.hero-points li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
}

.hero-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #f8dd7b;
    font-weight: 800;
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

/* Generic cards */
.problem-grid,
.reason-grid,
.topic-grid,
.example-grid,
.strengths-grid,
.feature-grid,
.checklist-grid {
    display: grid;
    gap: 24px;
}

.problem-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.problem-card,
.reason-card,
.topic-card,
.example-card,
.feature-card,
.strength-card,
.market-point,
.buyer-card,
.service-card,
.valuation-card,
.check-item,
.info-box,
.two-column-card,
.cta-box,
.faq-item,
.link-list li {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.problem-card,
.reason-card,
.example-card,
.feature-card,
.strength-card,
.market-point,
.info-box,
.topic-card,
.check-item {
    padding: 28px;
}

.problem-card h3,
.reason-card h3,
.example-card h3,
.feature-card h3,
.strength-card h3,
.market-point h3,
.info-box h3 {
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 12px;
    color: var(--primary);
}

.problem-card p,
.reason-card p,
.example-card p,
.feature-card p,
.strength-card p,
.market-point p,
.info-box p,
.topic-card,
.check-item,
.table-note,
.cost-note {
    color: var(--muted);
}

/* Two column + info */
.two-column-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 30px;
    margin: 28px 0;
    border: 1px solid var(--line);
}

.two-column-card h3 {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.info-box {
    border-left: 6px solid var(--accent);
}

/* Market */
.market-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
}

.market-image img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
}

.market-points {
    display: grid;
    gap: 18px;
}

.market-point {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(4px);
}

.market-point h3,
.market-point p {
    color: #fff;
}

/* Valuation */
.valuation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 32px;
    align-items: start;
    margin-bottom: 28px;
}

.valuation-intro {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.valuation-intro p {
    color: var(--muted);
    font-size: 17px;
}

.valuation-image img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
}

.formula-box {
    padding: 24px 26px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f6f0f8 0%, #fffdf6 100%);
    border: 1px solid #eadcf0;
}

.formula-box strong {
    display: block;
    color: var(--primary);
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.feature-grid-dense .feature-card {
    min-height: 100%;
}

.feature-card {
    border: 1px solid var(--line);
}

/* CTA box */
.cta-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 32px;
    margin-top: 32px;
    border: 1px solid #eadcf0;
    background: linear-gradient(135deg, #fff 0%, #fbf7fd 100%);
}

.cta-box h3 {
    font-size: 26px;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--primary);
}

.cta-box p {
    color: var(--muted);
}

/* Checklist */
.checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-item {
    position: relative;
    padding-left: 58px;
    font-weight: 700;
    font-size: 17px;
}

.check-item::before {
    content: '✓';
    position: absolute;
    left: 24px;
    top: 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 14px;
}

/* Reasons & tags */
.reason-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5d7ea;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(73, 16, 95, 0.05);
}

/* Table */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comparison-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    background: #fff;
}

.comparison-table thead th {
    background: var(--primary);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    padding: 18px 20px;
    text-align: left;
}

.comparison-table tbody th,
.comparison-table tbody td {
    padding: 18px 20px;
    border-bottom: 1px solid #ede7f0;
    vertical-align: top;
}

.comparison-table tbody th {
    width: 22%;
    background: #faf7fc;
    color: var(--primary);
    font-weight: 800;
}

.table-note {
    margin-top: 16px;
    text-align: center;
}

/* Strengths */
.strengths-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strength-card {
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.strength-card:hover {
    transform: translateY(-4px);
    border-color: #dfc9e7;
}

/* Cost comparison */
.cost-comparison {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.comparison-boxes {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    margin-bottom: 18px;
}

.comparison-box {
    flex: 1;
    max-width: 360px;
    padding: 30px 24px;
    border-radius: 20px;
    background: #faf7fc;
    text-align: center;
    border: 1px solid #eadcf0;
}

.highlight-box {
    background: linear-gradient(135deg, #7b218b 0%, #4b115c 100%);
    color: #fff;
}

.comparison-label {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.comparison-amount {
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 8px;
}

.comparison-amount.highlight,
.highlight-box .comparison-note {
    color: #f4d03f;
}

.comparison-arrow {
    display: grid;
    place-items: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.comparison-note,
.cost-note {
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}

/* Process */
.process-timeline {
    display: grid;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 22px;
}

.process-number {
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    color: #f4d03f;
    font-size: 20px;
    font-weight: 800;
    min-height: 82px;
}

.process-content h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 6px;
}

.process-content p {
    color: rgba(255, 255, 255, 0.92);
}

/* Topics & examples */
.topic-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.topic-card {
    display: grid;
    place-items: center;
    min-height: 120px;
    padding: 24px 18px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid var(--line);
}

.consult-note {
    margin-top: 20px;
    text-align: center;
    font-weight: 700;
}

.example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* FAQ */
.faq-list {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid #eadcf0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 28px;
    border: 0;
    background: #fff;
    color: var(--text);
    font-size: 19px;
    line-height: 1.6;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.faq-question span:first-child {
    flex: 1;
}

.faq-toggle {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 28px 24px;
    color: var(--muted);
    font-size: 16px;
}

.faq-cta {
    margin-top: 32px;
}

/* Links */
.link-list {
    list-style: none;
    display: grid;
    gap: 14px;
}

.link-list li {
    padding: 0;
    overflow: hidden;
}

.link-list a {
    display: block;
    padding: 18px 22px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}

.link-list a:hover {
    background: #faf7fc;
}

/* Final CTA */
.cta-section {
    background: linear-gradient(135deg, #2e2232 0%, #171219 100%);
    color: #fff;
}

.cta-section-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: center;
}

.cta-title {
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.35;
    font-weight: 800;
    margin-bottom: 18px;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    margin-bottom: 26px;
}

.cta-visual img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
}

/* Footer */
.footer {
    background: #212121;
    color: #fff;
    padding: 56px 0 28px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 28px;
}

.footer-nav a {
    color: #ddd;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-copyright {
    border-top: 1px solid #3a3a3a;
    padding-top: 18px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Animation helper */
.reveal-target {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-target.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
    .problem-grid,
    .reason-grid,
    .feature-grid,
    .topic-grid,
    .example-grid,
    .strengths-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid,
    .market-layout,
    .valuation-layout,
    .cta-section-inner,
    .cta-box {
        grid-template-columns: 1fr;
    }

    .cta-group-compact {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .section {
        padding: 68px 0;
    }

    .header-content {
        min-height: 72px;
    }

    .logo img,
    .footer-logo img {
        height: 42px;
    }

    .hero {
        padding: 56px 0 70px;
    }

    .hero-points,
    .checklist-grid,
    .two-column-card,
    .comparison-boxes,
    .process-step {
        grid-template-columns: 1fr;
        display: grid;
    }

    .comparison-boxes {
        gap: 16px;
    }

    .comparison-arrow {
        transform: rotate(90deg);
        min-height: 32px;
    }

    .process-step {
        gap: 14px;
    }

    .process-number {
        min-height: 56px;
    }

    .cta-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100%, calc(100% - 28px));
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 0;
    }

    .header-cta {
        width: 100%;
    }

    .header-cta .cta-button {
        width: 100%;
    }

    .problem-grid,
    .reason-grid,
    .feature-grid,
    .topic-grid,
    .example-grid,
    .strengths-grid,
    .hero-points,
    .checklist-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
    }

    .tag-list span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .problem-card,
    .reason-card,
    .example-card,
    .feature-card,
    .strength-card,
    .market-point,
    .topic-card,
    .check-item,
    .faq-question,
    .faq-answer,
    .cost-comparison,
    .cta-box,
    .two-column-card,
    .info-box {
        padding-left: 20px;
        padding-right: 20px;
    }

    .section-title {
        margin-bottom: 22px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-lead {
        font-size: 22px;
    }

    .comparison-table {
        min-width: 640px;
    }

    .faq-question {
        font-size: 17px;
    }

    .cta-title {
        font-size: 30px;
    }
}
