:root {
    --accent: #ea580c;
    --accent-strong: #c2410c;
    --accent-dark: #9a3412;
    --cream: #fff7ed;
    --bg: #fafaf9;
    --text: #1c1917;
    --muted: #57534e;
    --border: #e7e5e4;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
    line-height: 1.8;
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--accent-strong);
}

a:hover {
    color: var(--accent-dark);
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

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

/* ヘッダー */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

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

.brand svg {
    width: 32px;
    height: 32px;
}

.site-nav {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--accent-strong);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent-strong);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
}

.btn-ghost {
    border-color: var(--accent-strong);
    color: var(--accent-strong);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--cream);
}

/* ヒーロー */
.hero {
    background: linear-gradient(180deg, var(--cream), var(--bg));
    padding: 64px 0 48px;
}

.hero-inner {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 800px) {
    .hero-inner {
        grid-template-columns: 1.2fr 1fr;
    }
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--accent);
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    line-height: 1.3;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
    white-space: nowrap;
}

.hero p {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 1.05rem;
}

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

/* 通知イメージ */
.notice {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 12px 32px rgba(194, 65, 12, 0.12);
}

.notice-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--muted);
}

.notice-head svg {
    width: 20px;
    height: 20px;
}

.notice-title {
    margin: 8px 0 2px;
    font-weight: 800;
}

.notice-body {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.notice-caption {
    margin: 10px 0 0;
    font-size: 0.75rem;
    color: var(--muted);
    text-align: right;
}

/* セクション */
section {
    padding: 56px 0;
}

section.alt {
    background: #fff;
    border-block: 1px solid var(--border);
}

h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    line-height: 1.4;
}

.lead {
    margin: 0 0 32px;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 700px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

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

.card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.step-no {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--accent-strong);
    color: #fff;
    font-weight: 800;
}

/* 料金 */
.plan {
    position: relative;
}

.plan.pro {
    border: 2px solid var(--accent);
}

.plan .tag {
    position: absolute;
    top: -12px;
    left: 20px;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
}

.card p.price {
    margin: 8px 0 4px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--muted);
}

.plan ul {
    margin: 12px 0 0;
    padding-left: 1.2em;
    color: var(--muted);
    font-size: 0.95rem;
}

.note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* FAQ */
.faq {
    margin-top: 24px;
}

.lead.flush {
    margin-bottom: 0;
}

details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 10px;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

details p {
    margin: 10px 0 0;
    color: var(--muted);
}

/* 法務・サポートページ */
.page {
    padding: 48px 0 64px;
}

.page h1 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    line-height: 1.4;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--accent);
}

.page h2 {
    margin: 36px 0 8px;
    font-size: 1.2rem;
}

.page p,
.page li {
    color: #292524;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
    background: #fff;
}

.legal-table th,
.legal-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    text-align: left;
    font-size: 0.95rem;
}

.legal-table th {
    width: 32%;
    background: var(--cream);
    color: var(--accent-dark);
    font-weight: 700;
}

@media (max-width: 640px) {

    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
    }
}

.enacted {
    margin-top: 32px;
    text-align: right;
    color: var(--muted);
    font-size: 0.9rem;
}

/* フッター */
.site-footer {
    background: #1c1917;
    color: #d6d3d1;
    padding: 32px 0;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fed7aa;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 0;
}

.footer-label {
    margin: 0 0 4px;
    color: #a8a29e;
    font-size: 0.8rem;
}

/* パンくず・製品カード */
.breadcrumb {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--muted);
}

.status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-preparing {
    background: var(--cream);
    border: 1px solid var(--accent);
    color: var(--accent-dark);
}

.status-live {
    background: #dcfce7;
    border: 1px solid #16a34a;
    color: #166534;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card h3 {
    margin: 0;
}

.product-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.product-card h3 a:hover {
    color: var(--accent-strong);
}

.product-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.product-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 0.85rem;
}

.card p.product-price {
    color: var(--text);
    font-weight: 700;
}

.hero-art {
    display: grid;
    place-items: center;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(194, 65, 12, 0.12);
}

.logo-large {
    width: min(220px, 60%);
    height: auto;
}

.page h3 {
    margin: 28px 0 8px;
    font-size: 1.05rem;
}

.page .faq h3 {
    margin-top: 20px;
}

/* 購入完了ページ（Functions が生成） */
.license-key {
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--cream);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
    font-size: 1.1rem;
    font-weight: 700;
    word-break: break-all;
    user-select: all;
}