/* --- Base Styles --- */
:root {
    --primary-color: #0061ff;
    --text-main: #2d343d;
    --text-sub: #5c6977;
    --bg-light: #F7F8FA;
    --white: #ffffff;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(20, 35, 55, 0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans",
        "Hiragino Kaku Gothic ProN", sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    background-color: var(--white);
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: inherit;
}

ul {
    list-style: none;
}

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

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: clamp(72px, 8vw, 104px) 0;
}

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

.text-center {
    text-align: center;
}

/* --- Typography --- */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-sub);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 999px;
    font-size: 1.1rem;
    box-shadow: 0 10px 24px rgba(0, 97, 255, 0.18);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 97, 255, 0.25);
    opacity: 0.97;
}

.btn:focus-visible {
    outline: 3px solid rgba(0, 97, 255, 0.35);
    outline-offset: 3px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid rgba(30, 41, 59, 0.06);
}

/* --- Header --- */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.logo img {
    width: 44px;
    height: 44px;
}

.header-cta {
    padding: 10px 24px;
    font-size: 0.95rem;
}

/* --- Hero --- */
.hero {
    padding: 120px 0 80px;
    background:
        radial-gradient(1200px 600px at 50% 10%, rgba(0, 97, 255, 0.12), transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.88)),
        url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(0, 97, 255, 0.08);
    border: 1px solid rgba(0, 97, 255, 0.12);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-sub);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.badge-label {
    font-size: 0.85rem;
    color: var(--text-sub);
    font-weight: 600;
}

/* --- Introduction --- */
.intro {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.intro-kicker {
    display: inline-block;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    background: rgba(0, 97, 255, 0.08);
    border: 1px solid rgba(0, 97, 255, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.intro-desc .section-subtitle {
    margin-bottom: 1.5rem;
}

.intro-media img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* --- Problems --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.problem-card h3 {
    margin-bottom: 16px;
    font-size: 1.3rem;
    color: var(--text-main);
}

.problem-card h3::before {
    content: "●";
    color: var(--primary-color);
    margin-right: 8px;
}

/* --- Solutions --- */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.solution-item .icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 97, 255, 0.10);
    color: var(--primary-color);
    border: 1px solid rgba(0, 97, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.1rem;
    font-weight: 800;
}

/* --- Flow --- */
.flow-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.flow-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.flow-steps {
    counter-reset: step;
}

.step-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 32px;
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-color);
    border: 1px solid rgba(30, 41, 59, 0.06);
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* --- Features --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* --- Members --- */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.member-card {
    text-align: center;
}

.member-trigger {
    cursor: pointer;
    transition: opacity 0.2s;
}

.member-trigger:hover {
    opacity: 0.8;
}

.member-thumb {
    width: 120px;
    height: 120px;
    background: #eee;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.member-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.member-role {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.member-comment {
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* --- FAQ --- */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--white);
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(30, 41, 59, 0.06);
    overflow: hidden;
}

summary {
    padding: 24px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary:hover {
    background: rgba(0, 0, 0, 0.02);
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

details[open] summary::after {
    content: '−';
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-sub);
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    background: #1a1f26;
    color: #fff;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h2 {
    margin-bottom: 20px;
    color: #fff;
    /* Explicitly white */
}

.footer-links a {
    color: #a0aec0;
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

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

.copyright {
    border-top: 1px solid #333;
    padding-top: 40px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
}

.modal-body h4 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 700;
}

.modal-body p,
.modal-body ul {
    margin-bottom: 1.5rem;
}

.modal-footer {
    padding: 16px 32px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-close {
    background: #e2e8f0;
    color: var(--text-main);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-close:hover {
    background: #cbd5e1;
}


/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-cta {
        display: none;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .flow-content,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-badges {
        flex-direction: column;
        gap: 24px;
    }

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