/* BLACKSTAR 見守りサービス — blackstar.bz の色・書体・部品に合わせる */
:root {
    --primary: #121212;
    --secondary: #1e1e1e;
    --tertiary: #2a2a2a;
    --black: #000000;
    --gold: #D4AF37;
    --gold-light: #F5E7A3;
    --gold-dark: #AA8C2C;
    --gold-text: #8B6914;
    --text: #fafafa;
    --text-muted: rgba(250, 250, 250, 0.72);
    --text-dark: #333333;
    --ok: #7FC89A;
    --warn: #E8B04B;
    --alert: #E07A6E;
    --radius: 8px;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    --speed: 0.3s;
    --header-h: 76px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font);
    line-height: 1.75;
    color: var(--text);
    background-color: var(--primary);
    overflow-x: hidden;
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
    list-style: none;
}

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

strong {
    color: var(--gold-light);
    font-weight: 700;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
}

/* 日本語を文節で折り返す(対応ブラウザのみ。非対応は <wbr> と keep-all で補う) */
.hero-title,
.section-title,
.card h3,
.item h3,
.step h3,
.terms-list h3,
.plan-desc,
.faq summary,
.worry p {
    word-break: keep-all;
    overflow-wrap: anywhere;
    word-break: auto-phrase;
    text-wrap: balance;
}

p,
li {
    text-wrap: pretty;
}

.section-lead,
.hero-lead,
.card p,
.item li,
.step p,
.terms-list p,
.faq-body p {
    word-break: auto-phrase;
}

.inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px 24px;
    margin-top: 56px;
    padding: 24px 28px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: var(--radius);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.06), transparent 50%, rgba(212, 175, 55, 0.06));
    text-align: center;
}

.inline-cta p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

.container-narrow {
    max-width: 820px;
}

.sp-only {
    display: none;
}

/* ---------- ヘッダ(コーポレートサイトと同じ白) ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: #ffffff;
    color: var(--text-dark);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow var(--speed);
}

.site-header.is-scrolled {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.header-inner {
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 130px;
    height: auto;
}

.brand-sub {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold-text);
    padding-left: 12px;
    border-left: 1px solid rgba(139, 105, 20, 0.35);
    white-space: nowrap;
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a:not(.btn) {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.site-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--speed);
}

.site-nav a:not(.btn):hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: transform var(--speed), opacity var(--speed);
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 28px;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform var(--speed), box-shadow var(--speed), background var(--speed), color var(--speed);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.45);
    color: var(--black);
}

.btn-ghost {
    border: 1px solid rgba(212, 175, 55, 0.55);
    color: var(--gold-light);
}

.btn-ghost:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.btn-sm {
    min-height: 40px;
    padding: 0 20px;
    font-size: 0.92rem;
}

.btn-lg {
    min-height: 56px;
    padding: 0 40px;
    font-size: 1.05rem;
}

/* ---------- ヒーロー ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(92vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 24px 88px;
    background: linear-gradient(135deg, var(--black), var(--secondary));
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glyph {
    position: absolute;
    left: 50%;
    top: 18%;
    width: min(1200px, 140%);
    height: 160px;
    transform: translateX(-50%);
    background: url('../images/hero.webp') center / contain no-repeat;
    opacity: 0.12;
    animation: drift 18s ease-in-out infinite alternate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 140px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.08), transparent);
    animation: scan 7s linear infinite;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
    animation: fadeUp 0.9s ease-out both;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    border: 1px solid rgba(127, 200, 154, 0.45);
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--ok);
    margin-bottom: 20px;
}

.pulse-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ok);
    flex: none;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--ok);
    animation: pulse 2s ease-out infinite;
}

.eyebrow {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: var(--gold);
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(2.3rem, 2.2rem + 2.6vw, 4.2rem);
    line-height: 1.25;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

.highlight {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform-origin: left;
    animation: underline 1.2s 0.6s ease-out both;
}

.hero-lead {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 36px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-points .num {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
}

/* ---------- セクション共通 ---------- */
.section {
    position: relative;
    padding: 104px 24px;
}

.section::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.section-alt {
    background: linear-gradient(180deg, var(--primary), var(--black));
}

.section-title {
    position: relative;
    font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
    line-height: 1.4;
    text-align: center;
    margin-bottom: 28px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 80px;
    height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-title-left {
    text-align: left;
}

.section-title-left::after {
    left: 0;
    transform: none;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.section-lead {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 auto 56px;
    max-width: 760px;
}

/* ---------- お悩み ---------- */
.worry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.worry {
    padding: 32px 24px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.worry p {
    font-size: 0.98rem;
}

.line-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 18px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- カード ---------- */
.card-grid {
    display: grid;
    gap: 24px;
}

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

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: linear-gradient(145deg, var(--black), var(--primary));
    box-shadow: var(--shadow);
    transition: transform var(--speed) ease-out, border-color var(--speed), box-shadow var(--speed);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.6s ease-out;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    font-size: 1.18rem;
    margin-bottom: 12px;
}

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

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.4);
    display: grid;
    place-items: center;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-list {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text);
}

.card-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 6px;
    height: 1px;
    background: var(--gold);
}

.card-plain h3 {
    color: var(--gold-light);
}

/* ---------- しくみの図 ---------- */
.diagram {
    margin: 0 auto 64px;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background:
        radial-gradient(ellipse at 50% 40%, rgba(212, 175, 55, 0.07), transparent 65%),
        var(--black);
}

.diagram-svg {
    width: 100%;
    height: auto;
    font-family: var(--font);
}

.diagram-tall {
    display: none;
    max-width: 420px;
    margin: 0 auto;
}

.dg-panel {
    fill: rgba(255, 255, 255, 0.025);
    stroke: rgba(250, 250, 250, 0.16);
    stroke-width: 1;
}

.dg-panel-gold {
    fill: rgba(212, 175, 55, 0.05);
    stroke: rgba(212, 175, 55, 0.55);
}

.dg-box {
    fill: #161616;
    stroke: rgba(212, 175, 55, 0.35);
    stroke-width: 1;
}

.dg-box-dashed {
    fill: transparent;
    stroke-dasharray: 5 5;
    stroke: rgba(212, 175, 55, 0.5);
}

.dg-box-ai {
    stroke: var(--gold);
    stroke-width: 1.6;
    animation: glow 3s ease-in-out infinite;
}

.dg-box-alert {
    stroke: rgba(224, 122, 110, 0.7);
}

.dg-head,
.dg-label,
.dg-text,
.dg-small,
.dg-small-l,
.dg-tiny {
    text-anchor: middle;
    fill: var(--text);
}

.dg-head {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.dg-gold {
    fill: var(--gold);
}

.dg-label {
    font-size: 15px;
    font-weight: 700;
    fill: var(--gold-light);
}

.dg-text {
    font-size: 15px;
    font-weight: 600;
}

.dg-small {
    font-size: 12.5px;
    fill: var(--text-muted);
}

.dg-small-l {
    font-size: 13px;
    font-weight: 600;
}

.dg-tiny {
    font-size: 12px;
    fill: var(--gold-light);
}

.dg-tiny-l {
    font-size: 12px;
    fill: var(--gold-light);
    text-anchor: start;
}

.dg-num {
    fill: var(--gold);
    font-weight: 700;
}

.dg-line {
    fill: none;
    stroke: rgba(212, 175, 55, 0.75);
    stroke-width: 1.6;
}

.dg-line-soft {
    stroke-dasharray: 6 5;
    stroke: rgba(212, 175, 55, 0.5);
    animation: dash 1.6s linear infinite;
}

.dg-arrowhead {
    fill: var(--gold);
}

.dg-dot {
    fill: var(--gold-light);
    filter: drop-shadow(0 0 4px rgba(245, 231, 163, 0.9));
}

.dg-dot-ext {
    fill: var(--gold);
}

.diagram-caption {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- STEP ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 24px 28px 28px;
    border-left: 2px solid rgba(212, 175, 55, 0.6);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.06), transparent 70%);
}

.step-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 6px;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.step p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ---------- 見守る内容 ---------- */
.item {
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid rgba(212, 175, 55, 0.12);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--speed), transform var(--speed);
}

.item:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-4px);
}

.item h3 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.item-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.item ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 0.93rem;
    color: var(--text-muted);
}

.item ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

.item-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(212, 175, 55, 0.3);
    font-size: 0.88rem;
    color: var(--gold-light);
}

/* ---------- レポート ---------- */
.report-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.report-text p {
    color: var(--text-muted);
    margin: 28px 0 24px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.check-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.45em;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

.report-mock {
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: #0d0d0d;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #191919;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a3a3a;
}

.mock-bar p {
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mock-body {
    padding: 22px;
}

.mock-status {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: rgba(127, 200, 154, 0.08);
    border: 1px solid rgba(127, 200, 154, 0.3);
    margin-bottom: 16px;
}

.mock-status-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mock-status-value {
    font-weight: 700;
    color: var(--ok);
}

.mock-time {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mock-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.mock-kpis div {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-kpis .k {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.mock-kpis .v {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
}

.mock-kpis small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 70px;
    padding: 0 4px 6px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-bars span {
    flex: 1;
    height: var(--h);
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, 0.25));
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.8s ease-out;
}

.report-mock.is-visible .mock-bars span {
    transform: scaleY(1);
}

.report-mock.is-visible .mock-bars span:nth-child(odd) {
    transition-delay: 0.15s;
}

.mock-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.tag {
    flex: none;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.tag-ok {
    color: var(--ok);
    background: rgba(127, 200, 154, 0.12);
}

.tag-warn {
    color: var(--warn);
    background: rgba(232, 176, 75, 0.12);
}

/* ---------- 料金 ---------- */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 28px;
}

.plan {
    position: relative;
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: linear-gradient(160deg, #161616, var(--black));
}

.plan-featured {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 20px 40px rgba(0, 0, 0, 0.45);
}

.plan-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--black);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.plan-name {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    text-align: center;
}

.plan-desc {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 6px 0 22px;
}

.plan-price {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.2;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.plan-price .yen {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 8px;
}

.plan-price .unit {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}

.plan-price .per {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.plan-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.plan-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.5em;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

.plan-note {
    max-width: 868px;
    margin: 32px auto 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

/* ---------- ご契約の条件 ---------- */
.contract {
    max-width: 868px;
    margin: 36px auto 0;
    padding: 28px 32px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.contract-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.contract-list > div {
    display: grid;
    grid-template-columns: 9em 1fr;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}

.contract-list dt {
    font-weight: 700;
    color: var(--gold-light);
    font-size: 0.95rem;
}

.contract-list dd {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contract-list small {
    font-size: 0.82rem;
}

.contract .plan-note {
    margin-top: 16px;
    text-align: left;
}

/* ---------- 免責事項 ---------- */
.section-terms {
    background: #0e0e0e;
}

.terms-list {
    counter-reset: terms;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.terms-list li {
    counter-increment: terms;
    position: relative;
    padding: 22px 0 22px 52px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.terms-list li::before {
    content: counter(terms, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 22px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold);
}

.terms-list h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.terms-list p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.terms-note {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.faq-body a,
.plan-note a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- よくある質問 ---------- */
.faq {
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 14px;
    transition: border-color var(--speed);
}

.faq[open] {
    border-color: rgba(212, 175, 55, 0.45);
}

.faq summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 20px 56px 20px 24px;
    font-weight: 600;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::before {
    content: 'Q';
    margin-right: 12px;
    color: var(--gold);
    font-weight: 700;
}

.faq summary::after {
    content: '';
    position: absolute;
    right: 26px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: translateY(-70%) rotate(45deg);
    transition: transform var(--speed);
}

.faq[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
}

.faq-body {
    padding: 0 24px 22px 50px;
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: fadeUp 0.35s ease-out;
}

/* ---------- お問い合わせ ---------- */
.cta {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.14), transparent 60%),
        linear-gradient(180deg, var(--black), var(--primary));
}

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

.cta .section-lead {
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cta-mail {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* ---------- フッタ(コーポレートサイトと同じ白) ---------- */
.site-footer {
    background: #ffffff;
    color: var(--text-dark);
    padding: 56px 24px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-brand img {
    width: 150px;
    height: auto;
    margin-bottom: 14px;
}

.footer-brand p,
.footer-col p {
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-col h4 {
    font-size: 1.05rem;
    color: var(--gold-text);
    margin-bottom: 14px;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    font-weight: 500;
    font-size: 0.92rem;
}

.footer-col a:hover {
    color: var(--gold-dark);
}

.footer-copy {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    font-size: 0.85rem;
    opacity: 0.7;
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity var(--speed), transform var(--speed);
    z-index: 900;
}

.to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to-top svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--black);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- 出現の動き ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes scan {
    0% { transform: translateY(-140px); }
    100% { transform: translateY(100vh); }
}

@keyframes drift {
    from { transform: translateX(-52%); }
    to { transform: translateX(-48%); }
}

@keyframes underline {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
    50% { filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.55)); }
}

@keyframes dash {
    to { stroke-dashoffset: -22; }
}

/* ---------- 画面の幅 ---------- */
@media (max-width: 1080px) {
    .card-grid-4,
    .worry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .report-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--speed), transform var(--speed), visibility var(--speed);
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 20px;
    }

    .site-nav li a:not(.btn) {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #eeeeee;
    }

    .site-nav li .btn {
        width: 100%;
        margin-top: 14px;
    }

    .brand-logo {
        width: 110px;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sp-only {
        display: inline;
    }

    .pc-only {
        display: none;
    }

    .section {
        padding: 72px 16px;
    }

    .hero {
        padding: 64px 16px 72px;
        min-height: auto;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-points {
        flex-direction: column;
        align-items: center;
    }

    .worry-grid,
    .card-grid-4,
    .card-grid-3 {
        grid-template-columns: 1fr;
    }

    .section-lead {
        margin-bottom: 40px;
    }

    .diagram {
        padding: 16px 8px;
    }

    .diagram-wide {
        display: none;
    }

    .diagram-tall {
        display: block;
    }

    .plan-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan {
        padding: 36px 22px;
    }

    .draft-badge {
        display: table;
        margin: 10px auto 0;
    }

    .contract {
        padding: 22px 18px;
    }

    .contract-title .draft-badge {
        margin: 8px 0 0;
    }

    .contract-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mock-kpis .v {
        font-size: 1.25rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .brand-sub {
        font-size: 0.75rem;
        padding-left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .mock-bars span {
        transform: none;
    }
}
