:root {
    --bg: #f5f7fb;
    --bg-alt: #ffffff;
    --text: #1f2a37;
    --muted: #5f6b7c;
    --primary: #0f4c81;
    --secondary: #ff8c42;
    --accent: #0f4c81;
    --accent-soft: rgba(15, 76, 129, 0.12);
    --border: #e2e8f0;
    --card-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    font-family: 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-family: 'Noto Sans JP', 'Segoe UI', 'Hiragino Sans', 'Meiryo', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Page load overlay (diorama LP) */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 247, 251, 0.97);
    backdrop-filter: blur(8px);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
body.is-loaded .page-loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader__inner {
    text-align: center;
}
.page-loader__spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 3px solid var(--accent-soft);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: page-loader-spin 0.75s linear infinite;
}
@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}
.page-loader__text {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Layout */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.site-header.is-active {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.site-header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    background: var(--accent-soft);
    color: var(--accent);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}

.hero {
    padding: 64px 24px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(0, 132, 255, 0.12), transparent 60%), var(--bg);
    border-bottom: 1px solid var(--border);
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 18px;
}

.hero p {
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.28);
}

.btn-secondary {
    background: #eef3ff;
    border-color: #bcd3ff;
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(0, 132, 255, 0.15);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #dbe7ff;
    border-color: #7eb0ff;
    color: #0f172a;
}

.btn:hover {
    transform: translateY(-2px);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.section-subtitle {
    color: var(--muted);
    margin-bottom: 45px;
}

.card-grid {
    display: grid;
    /* 4列固定（幅が足りない場合は自動で折り返す） */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card[data-scroll-target] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card[data-scroll-target]:hover,
.card[data-scroll-target]:focus {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
}

.card h3 {
    font-size: 1.2rem;
}

.card p {
    color: var(--muted);
    flex-grow: 1;
}

.category-tag {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.developer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.developer-card {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 18px;
}

.developer-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.developer-role {
    font-weight: 600;
    color: var(--accent);
    margin-top: 2px;
}

.developer-bio {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 8px;
}

.info-banner {
    margin-top: 40px;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    background: var(--bg-alt);
    color: var(--muted);
}

.timeline {
    border-left: 2px solid var(--border);
    margin-left: 12px;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: #fff;
    left: -39px;
    top: 6px;
}

.timeline-date {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 8px;
}

.status-success { background: rgba(0, 201, 142, 0.15); color: #00a66c; }
.status-progress { background: rgba(255, 178, 0, 0.2); color: #c17900; }
.status-problem { background: rgba(255, 76, 97, 0.2); color: #cf2a39; }

.list-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.list-card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 20px;
}

.download-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--card-shadow);
}

.download-meta {
    font-size: 0.9rem;
    color: var(--muted);
}

.thumb {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: var(--card-shadow);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    color: var(--muted);
}

.footer nav {
    margin-bottom: 8px;
}

.footer nav a {
    margin: 0 12px;
    color: var(--muted);
}

.footer nav a:hover {
    color: var(--accent);
}

.pill-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pill {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg);
    font-size: 0.85rem;
    color: var(--muted);
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.muted-box {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    color: var(--text);
}

.download-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.download-modal.is-open {
    display: flex;
}

.download-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

.download-modal__body {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    padding: 24px 32px;
    width: 820px;
    max-width: 95%;
    min-height: 360px;
    z-index: 1;
}

.download-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
}

.download-modal__content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: stretch;
    min-height: 240px;
}

.download-modal__thumb-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-modal__thumb-block img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    object-fit: cover;
    height: 240px;
}

.download-modal__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    color: var(--text);
}

.download-modal__details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.download-modal__description {
    font-size: 1rem;
    color: var(--text);
    margin: 0 0 16px 0;
}

.modal-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
}

.modal-checkbox input {
    width: 18px;
    height: 18px;
}

.modal-checkbox a {
    color: var(--accent);
}

.download-list {
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.download-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.download-list__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-list__name {
    font-weight: 600;
    color: var(--text);
}

.download-list__meta {
    font-size: 0.9rem;
    color: var(--muted);
}

.download-list__button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

body.modal-open {
    overflow: hidden;
}



/* --- Diorama LP (Home.tsx layout) --- */
h1, h2, h3, .hero--split__title {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
}
.brand--with-icon { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand__icon {
    width: 40px; height: 40px; background: var(--primary);
    color: #fff; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.text-secondary { color: var(--secondary); }
.hero--split {
    text-align: left;
    padding: 48px 24px 64px;
    background: radial-gradient(circle at top, var(--accent-soft), transparent 55%), var(--bg);
    border-bottom: 1px solid var(--border);
}
.hero--split__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.container--hero { padding: 24px; }
.hero--split__title {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    color: var(--primary);
    margin-bottom: 16px;
}
.hero--split__lead {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 36rem;
}
.hero-actions--left { justify-content: flex-start; margin-top: 24px; }
.rounded-xl { border-radius: var(--radius-lg); }
.shadow-lg { box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; box-sizing: border-box; }
.btn-accent {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255, 140, 66, 0.35);
}
.btn-accent:hover { filter: brightness(1.05); }
.icon-inline { flex-shrink: 0; }
.icon-inline--sm { vertical-align: middle; }
.section-block--white { background: var(--bg-alt); }
.section-block--tint {
    background: linear-gradient(to bottom, rgba(255, 140, 66, 0.06), transparent 40%);
}
.section-title--center { text-align: center; margin-bottom: 16px; }
.section-subtitle--center {
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }
.section-title {
    color: var(--primary);
    font-weight: 700;
}
.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}
.section-stack { margin-top: 48px; }
.grid-two--align-start { align-items: start; }
.grid-two--align-center { align-items: center; }
.process-list { display: flex; flex-direction: column; gap: 20px; }
.process-step { display: flex; gap: 16px; align-items: flex-start; }
.process-step__num {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: rgba(255, 140, 66, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary);
}
.process-step__title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    font-size: 1rem;
}
.muted { color: var(--muted); font-size: 0.95rem; }
.purpose-panel {
    margin-top: 48px;
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, rgba(15, 76, 129, 0.06), rgba(255, 140, 66, 0.08));
    border: 1px solid var(--border);
}
.purpose-item { display: flex; gap: 12px; align-items: flex-start; }
.purpose-dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}
.purpose-dot--primary { background: var(--primary); }
.purpose-dot--secondary { background: var(--secondary); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card--achievement { padding: 0; overflow: hidden; }
.card__emoji-band {
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--accent-soft);
}
.card__emoji-band--accent { background: rgba(255, 140, 66, 0.15); }
.card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.card--featured { border: 2px solid var(--secondary); box-shadow: 0 12px 28px rgba(255, 140, 66, 0.12); }
.card__badge { font-weight: 700; color: var(--primary); font-size: 1.05rem; }
.card__badge--accent { color: var(--secondary); }
.card__heading { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.card__meta { display: flex; align-items: center; gap: 8px; }
.bar-list { display: flex; flex-direction: column; gap: 20px; }
.bar-list__item { display: flex; gap: 16px; align-items: stretch; }
.bar-list__bar {
    width: 4px;
    border-radius: 999px;
    background: var(--secondary);
    flex-shrink: 0;
    min-height: 2.5rem;
}
.check-list { display: flex; flex-direction: column; gap: 16px; }
.check-list__item { display: flex; gap: 12px; align-items: flex-start; }
.check-list__mark {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.howto-box {
    margin: 24px 0;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.25);
}
.howto-list li { margin-bottom: 8px; list-style: none; }
.member-card { padding: 24px; }
.member-card__icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 140, 66, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.member-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.member-card__role { font-size: 0.875rem; font-weight: 600; color: var(--secondary); }
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.partner-card { flex-direction: row; align-items: flex-start; gap: 16px; }
.partner-card__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 140, 66, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.partner-card__role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}
.partner-card--compact { align-items: center; }
.partner-cta { text-align: center; padding-top: 32px; }
.text-main { color: var(--text); }
.caption { text-align: center; margin-top: 12px; font-size: 0.9rem; }
.footer--extended {
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
    text-align: left;
    color: var(--muted);
    background: var(--bg);
}
.container--footer { max-width: 1200px; margin: 0 auto; padding: 0 24px 24px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}
.footer-heading {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.link-external { display: inline-flex; align-items: center; gap: 4px; }
.footer-copy {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--muted);
}
.footer-nav-quick {
    text-align: center;
    padding: 16px 24px 32px;
    border-top: 1px solid var(--border);
}
.footer-nav-quick a {
    margin: 0 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}
.footer-nav-quick a:hover { color: var(--accent); }

@media (max-width: 900px) {
    .hero--split__inner {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .card-grid--3 {
        grid-template-columns: 1fr;
    }
    .partner-grid {
        grid-template-columns: 1fr;
    }
    .download-modal__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 12px;
        padding: 16px 24px 24px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 25px 35px rgba(15, 23, 42, 0.08);
        transform-origin: top;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .nav-links.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .developer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .timeline {
        margin-left: 0;
        padding-left: 20px;
    }
}

