:root {
    color-scheme: light;
    --container: 1120px;
    --ink: #14161a;
    --muted: #5d6673;
    --paper: #f7f3ec;
    --white: #ffffff;
    --line: #ded8ce;
    --navy: #0f172a;
    --blue: #60a5fa;
    --green: #22c55e;
    --teal: #007c78;
    --teal-dark: #005f5c;
    --coral: #d94f3d;
    --amber: #d69b28;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.17);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0;
}

body[data-lang="ja"] [data-lang-block="en"],
body[data-lang="en"] [data-lang-block="ja"] {
    display: none !important;
}

a {
    color: inherit;
}

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

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(222, 216, 206, 0.9);
    background: rgba(247, 243, 236, 0.95);
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.nav-links a {
    border-radius: 999px;
    padding: 8px 11px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--ink);
    background: rgba(0, 124, 120, 0.1);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    background: var(--white);
}

.language-switch button {
    border: 0;
    border-radius: 999px;
    min-width: 42px;
    min-height: 32px;
    padding: 5px 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
}

.language-switch button[aria-pressed="true"] {
    background: var(--navy);
    color: var(--white);
}

.hero {
    min-height: 74vh;
    display: grid;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(23, 23, 23, 0.78), rgba(23, 23, 23, 0.44) 56%, rgba(23, 23, 23, 0.18)),
        url("../images/hero-sample.jpg") center / cover;
    color: var(--white);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 48px;
    padding: 64px 0 56px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--coral);
    font-size: 14px;
    font-weight: 900;
}

.hero .eyebrow {
    color: #f4c76c;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 18px;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: 2.05rem;
    line-height: 1.25;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 680px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
}

.hero-actions,
.cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.button.primary {
    background: var(--coral);
    color: var(--white);
}

.button.secondary {
    border: 2px solid var(--white);
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.button.tertiary {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
}

.button:hover {
    transform: translateY(-1px);
}

.hero-device {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 16px;
    background: rgba(7, 12, 21, 0.9);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.hero-device img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.section {
    padding: 76px 0;
}

.section.alt {
    background: var(--white);
}

.section-lead {
    width: 100%;
    max-width: none;
    color: var(--muted);
    font-size: 1.03rem;
}

.demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
    align-items: center;
    gap: 34px;
}

.video-panel {
    display: grid;
    gap: 12px;
}

.video-frame {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111111;
    box-shadow: var(--shadow);
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-video-link {
    justify-self: end;
    color: var(--teal-dark);
    font-size: 0.95rem;
    font-weight: 900;
    text-decoration: none;
}

.demo-video-link:hover {
    text-decoration: underline;
}

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

.feature-card,
.step,
.note-box,
.doc-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 24px;
}

.feature-card p,
.step p,
.note-box p,
.doc-panel p {
    margin-bottom: 0;
    color: var(--muted);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    font-weight: 900;
}

.comparison-wrap,
.table-wrap {
    overflow-x: auto;
    margin-top: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: #ece6dc;
    font-size: 14px;
}

tr:last-child td {
    border-bottom: 0;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3) {
    width: 24%;
    text-align: center;
    font-weight: 900;
}

.available {
    color: #1f8a45;
}

.paid-only {
    color: #9aa4b2;
}

.check-icon {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid currentColor;
    font-size: 19px;
    line-height: 1;
    font-weight: 900;
}

.unavailable-icon {
    color: #9aa4b2;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.format-list li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--white);
    font-weight: 900;
}

.policy-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.policy-band p {
    margin-bottom: 0;
    color: var(--muted);
}

.page-hero {
    padding: 62px 0 34px;
}

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

.doc-layout {
    padding: 0 0 84px;
}

.document {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 34px;
}

.document h2 {
    margin: 40px 0 10px;
    font-size: 1.45rem;
}

.document p {
    color: #30343a;
}

.document a,
.table-wrap a {
    color: var(--teal-dark);
    font-weight: 900;
}

.notice {
    border-left: 4px solid var(--teal);
    margin: 30px 0;
    padding: 14px 18px;
    background: rgba(0, 124, 120, 0.08);
}

.license-text {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #111111;
    color: #f7f7f7;
    padding: 22px;
    white-space: pre-wrap;
    font-family: Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    line-height: 1.55;
}

.site-footer {
    background: var(--navy);
    color: var(--white);
    padding: 38px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration: none;
}

@media (max-width: 880px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .nav-actions {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-inner,
    .demo-layout,
    .policy-band {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        gap: 30px;
        padding: 48px 0 42px;
    }

    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    .demo-video-link {
        justify-self: start;
    }

}

@media (max-width: 540px) {
    body {
        font-size: 15px;
    }

    .nav-links a {
        padding: 6px 5px;
        font-size: 12px;
    }

    .button {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hero {
        min-height: auto;
    }

    .section {
        padding: 54px 0;
    }

    .document {
        padding: 22px;
    }
}
