:root {
    --bg: #F7F4FF;
    --bg-2: #FFFFFF;
    --bg-soft: #EEF2FF;
    --card: #FFFFFF;
    --title: #1B1340;
    --text: #2F2A4A;
    --muted: #5B5678;
    --faint: #8B86A3;
    --purple: #7C3AED;
    --lilac: #A78BFA;
    --teal: #14B8A6;
    --coral: #F97316;
    --rose: #E11D48;
    --amber: #F59E0B;
    --indigo: #312E81;
    --line: rgba(124, 58, 237, 0.14);
    --shadow: 0 16px 40px rgba(49, 46, 129, 0.10);
    --grad: linear-gradient(135deg, #A78BFA 0%, #7C3AED 50%, #14B8A6 100%);
    --footer: #1B1340;
    --footer-text: #F4F0FF;
    --max: 1200px;
    --bar: 1080px;
    --radius: 22px;
    --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

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

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

a:hover {
    color: var(--purple);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--lilac);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
    color: var(--title);
    line-height: 1.28;
    margin: 0 0 0.7em;
}

h1 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#mainContent {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 120px;
}

.brand-bar {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.brand-bar-inner {
    pointer-events: auto;
    width: min(var(--bar), calc(100% - 24px));
    height: 64px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.circle-btn {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--title);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.circle-btn:hover {
    background: #E4E9FF;
}

.icon-lines,
.icon-lines::before,
.icon-lines::after {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--indigo);
    border-radius: 2px;
    position: relative;
}

.icon-lines::before,
.icon-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.icon-lines::before {
    top: -5px;
}

.icon-lines::after {
    top: 5px;
}

.icon-search {
    width: 14px;
    height: 14px;
    border: 2px solid var(--indigo);
    border-radius: 50%;
    position: relative;
}

.icon-search::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: var(--indigo);
    right: -6px;
    bottom: -2px;
    transform: rotate(45deg);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 72px;
    color: var(--title);
    flex: 0 0 auto;
}

.brand-logo .mark-img,
.drawer-mark,
.footer-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.brand-word {
    font-weight: 700;
    letter-spacing: 0.04em;
}

.capsule-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
}

.capsule-left {
    justify-content: flex-end;
}

.capsule-right {
    justify-content: flex-start;
}

.capsule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text);
    font-size: 14px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.capsule:hover {
    background: var(--bg-soft);
    color: var(--title);
}

.capsule.is-active {
    border-color: var(--purple);
    color: var(--purple);
    background: #F3E8FF;
}

.capsule-app {
    background: var(--grad);
    color: #FFFFFF;
}

.capsule-app:hover,
.capsule-app:focus-visible {
    color: #FFFFFF;
    filter: brightness(1.05);
}

.mobile-app {
    display: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--purple);
}

.hero-dock,
.section,
.legal-block,
.article-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 40px);
    margin-bottom: 28px;
}

.kicker {
    color: var(--purple);
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 10px;
}

.lead {
    font-size: 1.05rem;
    color: var(--text);
    max-width: 42em;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--title);
    font-weight: 600;
}

.btn-primary {
    background: var(--grad);
    color: #FFFFFF;
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    color: #FFFFFF;
}

.hero-dock {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

.cover-frame,
.media-frame,
.img-slot {
    background: var(--bg-soft);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 180px;
}

.cover-frame img,
.media-frame img {
    width: 100%;
    height: auto;
}

.tag-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tag-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot-purple { background: var(--purple); }
.dot-teal { background: var(--teal); }
.dot-coral { background: var(--coral); }
.dot-rose { background: var(--rose); }

.pulse-layout,
.split-2,
.mosaic {
    display: grid;
    gap: 18px;
}

.pulse-layout {
    grid-template-columns: 0.38fr 0.62fr;
}

.num-list a,
.folder-list a,
.faq a,
.drawer-body a {
    display: block;
}

.num-list a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}

.num-list strong {
    color: var(--purple);
    margin-right: 8px;
}

.mosaic {
    grid-template-columns: 1.2fr 0.8fr;
}

.mosaic .tall {
    grid-row: span 2;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 13px;
    margin: 0 6px 8px 0;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 14px;
}

.board-grid article:nth-child(1),
.board-grid article:nth-child(5) {
    grid-row: span 2;
}

.board-grid article,
.card,
.job-card,
.step-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
}

.folder-list a {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.score-list {
    display: grid;
    gap: 12px;
}

.score-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: start;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
}

.score-no {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.n1 { color: var(--purple); }
.n2 { color: var(--teal); }
.n3 { color: var(--coral); }
.n4 { color: var(--rose); }
.n5 { color: var(--amber); }

.timeline {
    border-left: 3px solid var(--line);
    margin-left: 12px;
    padding-left: 22px;
}

.timeline article {
    position: relative;
    margin-bottom: 22px;
}

.timeline article::before {
    content: "";
    width: 14px;
    height: 14px;
    background: var(--purple);
    border-radius: 50%;
    position: absolute;
    left: -31px;
    top: 8px;
}

.status {
    display: inline-block;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    background: var(--footer);
    color: var(--footer-text);
    padding: 48px 16px calc(120px + var(--safe-b));
}

.footer-inner {
    width: min(var(--max), 100%);
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #FFFFFF;
}

.footer-en,
.footer-note,
.footer-copy,
.site-footer a,
.site-footer h2 {
    color: var(--footer-text);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.site-footer h2 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.site-footer a {
    display: inline-block;
    min-height: 36px;
    padding: 6px 0;
}

.site-footer a:hover {
    color: #FFFFFF;
}

.footer-note,
.footer-copy {
    font-size: 14px;
    color: #C9C2E8;
}

.dock-nav {
    display: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 19, 64, 0.36);
    z-index: 50;
}

.overlay[hidden],
.site-drawer[hidden],
.search-layer[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.overlay:not([hidden]),
.site-drawer:not([hidden]),
.search-layer:not([hidden]) {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

.site-drawer,
.search-layer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.search-layer {
    align-items: flex-start;
    padding-top: 92px;
}

.drawer-panel {
    width: min(720px, 100%);
    max-height: 78vh;
    background: #FFFFFF;
    border-radius: 28px 28px 0 0;
    box-shadow: var(--shadow);
    overflow: auto;
    padding: 18px 18px 28px;
}

.drawer-head,
.search-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.drawer-title,
.search-head p {
    flex: 1;
    margin: 0;
    font-weight: 700;
    color: var(--title);
}

.drawer-body section {
    margin-bottom: 18px;
}

.drawer-body h2 {
    font-size: 0.9rem;
    color: var(--muted);
}

.drawer-body a {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 8px;
    color: var(--text);
}

.drawer-body a span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.search-card {
    width: min(720px, calc(100% - 24px));
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 20px;
    border: 1px solid var(--line);
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0 16px;
    font-size: 16px;
    background: var(--bg-soft);
    color: var(--text);
}

.search-form button {
    min-height: 48px;
    min-width: 96px;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    color: #FFFFFF;
    cursor: pointer;
    font-weight: 600;
}

.search-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-presets a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--text);
}

.search-hint {
    color: var(--muted);
    font-size: 14px;
}

.prose p,
.prose li {
    max-width: 46em;
}

.index-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--title);
    min-height: 44px;
}

.page-hero-media {
    margin: 0 0 18px;
}

@media (max-width: 980px) {
    .capsule-group {
        display: none;
    }
    .brand-word {
        display: none;
    }
    .mobile-app {
        display: inline-flex;
        margin-left: auto;
    }
    .brand-bar-inner {
        justify-content: space-between;
    }
    .hero-dock,
    .pulse-layout,
    .mosaic,
    .index-grid,
    .tag-track,
    .board-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .mosaic .tall {
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    #mainContent {
        width: min(var(--max), calc(100% - 32px));
        padding-top: 92px;
        padding-bottom: 150px;
    }
    .hero-dock,
    .pulse-layout,
    .mosaic,
    .index-grid,
    .tag-track,
    .board-grid,
    .footer-grid,
    .score-item {
        grid-template-columns: 1fr;
    }
    .board-grid article:nth-child(1),
    .board-grid article:nth-child(5) {
        grid-row: auto;
    }
    .dock-nav {
        display: flex;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(12px + var(--safe-b));
        z-index: 35;
        height: 52px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--line);
        border-radius: 999px;
        box-shadow: var(--shadow);
        align-items: center;
        justify-content: space-around;
        padding: 0 8px;
    }
    .dock-item {
        flex: 1;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        font-size: 13px;
        position: relative;
    }
    .dock-item.is-active {
        color: var(--purple);
        font-weight: 700;
    }
    .dock-item.is-active::before {
        content: "";
        width: 6px;
        height: 6px;
        background: var(--purple);
        border-radius: 50%;
        position: absolute;
        top: 8px;
    }
    .search-layer:not([hidden]) {
        padding: 0;
        align-items: stretch;
    }
    .search-layer .search-card {
        width: 100%;
        min-height: 100%;
        border-radius: 0;
        background: var(--bg);
    }
    .drawer-panel {
        width: 100%;
    }
}

@media (min-width: 721px) {
    .site-footer {
        padding-bottom: 48px;
    }
}
