/* LP専用 — chatbot-embed.css と同一の配色変数（--chatbot-color 既定 #1976D2）に準拠 */

:root {
    --chatbot-color: #1976D2;
    --chatbot-color-66: #1976D266;
    --chatbot-color-20: #1976D220;
    --chatbot-color-1a: #1976D21a;

    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #374151;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-pill: #f8f9fa;
    --color-pill-text: #495057;

    --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Shippori Mincho", "Noto Serif JP", serif;

    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 24px rgba(25, 118, 210, 0.08);
    --max: 1120px;
    --narrow: 720px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    background: var(--color-bg);
    /* 右下に埋め込みチャットを重ねる場合の余白 */
    padding-bottom: 96px;
}

a {
    color: var(--chatbot-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.wrap {
    width: min(100% - 40px, var(--max));
    margin-inline: auto;
}

.narrow {
    max-width: var(--narrow);
    margin-inline: auto;
}

.narrow-block {
    max-width: 560px;
    margin-inline: auto;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 24px;
}

.logo {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.04em;
    color: var(--color-text);
    text-decoration: none;
}

.logo:hover {
    color: var(--chatbot-color);
    text-decoration: none;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 14px;
    font-weight: 500;
}

.nav a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.nav a:hover {
    color: var(--chatbot-color);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: clamp(48px, 12vw, 100px) 0 clamp(56px, 10vw, 88px);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* ボタン付近に青いにじみが乗らないよう、チャット色の radial は使わない */
    background:
        radial-gradient(ellipse 85% 65% at 88% 12%, rgba(15, 23, 42, 0.04), transparent 55%),
        radial-gradient(ellipse 55% 45% at 8% 85%, rgba(15, 23, 42, 0.03), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
}

.hero-eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--chatbot-color);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hero-title {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(28px, 5.5vw, 42px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #1e293b;
}

.hero-lead {
    margin: 0 0 32px;
    max-width: 36em;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--chatbot-color);
    color: #fff;
    box-shadow: none;
    filter: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: none;
    filter: none;
    opacity: 0.94;
    text-decoration: none;
}

.btn-primary:focus {
    outline: none;
}

.btn-primary:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.btn-ghost {
    background: var(--color-surface);
    color: var(--chatbot-color);
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.btn-ghost:hover {
    border-color: var(--chatbot-color);
    box-shadow: 0 0 0 3px var(--chatbot-color-20);
    text-decoration: none;
}

.hero-hint {
    margin: 0;
    font-size: 13px;
    color: var(--chatbot-color);
    font-weight: 500;
    border-left: 3px solid var(--chatbot-color);
    padding-left: 12px;
}

/* --- Sections --- */
.section {
    padding: clamp(56px, 8vw, 88px) 0;
}

.section-tint {
    background: linear-gradient(180deg, #eef6ff 0%, var(--color-bg) 100%);
}

.section-title {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.02em;
}

.section-title.center {
    text-align: center;
}

.section-lead {
    margin: 0 0 32px;
    color: var(--color-text-muted);
    font-size: 15px;
}

.section-lead.center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    border-radius: var(--radius-lg);
    padding: 24px 28px;
}

.card-plain {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.card-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--chatbot-color);
}

.card-plain p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text);
}

/* --- Features（見出し・リードを画面中央に揃える） --- */
#features .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#features .wrap .feature-list {
    align-self: stretch;
    width: 100%;
}

#features .section-lead.center {
    text-align: center;
    text-align-last: center;
    margin-inline: auto;
    width: 100%;
    max-width: 36rem;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    /* 子をカード幅いっぱいに伸ばし、text-align で本文を中央に（折り返し時も左に寄って見えない） */
    align-items: stretch;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px 32px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.feature-icon-wrap {
    margin: 0 auto 18px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--chatbot-color);
    flex-shrink: 0;
    align-self: center;
}

.feature-icon-svg {
    width: 28px;
    height: 28px;
}

.feature-title {
    margin: 0 auto 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    width: 100%;
    max-width: 20rem;
}

/* 見出し・本文は明示指定（UA / 継承のずれで左寄りに見えるのを防ぐ） */
.feature-card .feature-title,
.feature-card .feature-desc {
    text-align: center;
    text-align-last: center;
}

.feature-card .feature-desc {
    margin: 0 auto;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.85;
    width: 100%;
    max-width: 22rem;
}

@media (max-width: 899px) {
    .feature-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 22px 20px 26px;
        border-radius: 18px;
    }

    .feature-icon-wrap {
        width: 52px;
        height: 52px;
        border-radius: 13px;
    }
}

/* --- Flow（タイムライン＋パネル／幅広では横並び＋矢印） --- */
.flow-section-inner {
    max-width: 920px;
    margin-inline: auto;
}

.flow-intro {
    margin: -8px auto 36px;
    max-width: 36rem;
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.flow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 既定（狭い画面は下のメディアクエリで縦並び＋下矢印に切替） */
.flow-step {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    position: relative;
}

.flow-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    flex-shrink: 0;
}

/* 旧 ::after 線は廃止（パネル高に合わせた flex レールに置き換え） */
.flow-track::after {
    display: none;
}

.flow-rail {
    flex: 1 1 auto;
    width: 2px;
    min-height: 12px;
    margin-top: 8px;
    border-radius: 1px;
    background: linear-gradient(180deg, var(--chatbot-color) 0%, #7dd3fc 35%, #94a3b8 85%, #cbd5e1 100%);
}

.flow-step:last-child .flow-rail {
    display: none;
}

.flow-num {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: var(--chatbot-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    border: 3px solid #eef6ff;
}

.flow-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px 18px 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
}

/* 狭い画面：左に番号・右にカードの2列、番号の下に下矢印でフローを表現 */
@media (max-width: 899px) {
    .flow-steps {
        flex-direction: column;
        gap: 0;
        position: relative;
    }

    .flow-step {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 16px;
        padding: 0 0 28px 0;
        width: 100%;
        position: relative;
    }

    .flow-step:last-child {
        padding-bottom: 0;
    }

    .flow-track {
        width: 48px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        position: relative;
        align-self: center;
    }

    .flow-num {
        margin: 0;
        box-shadow: none;
        border: 3px solid #eef6ff;
        position: relative;
        z-index: 2;
    }

    .flow-rail {
        display: none !important;
    }

    .flow-panel {
        flex: 1;
        min-width: 0;
        margin-top: 0;
    }

    /* 番号の下に下向き矢印を配置（最後のステップ以外） */
    .flow-step:not(:last-child) .flow-track::after {
        content: "";
        position: absolute;
        top: 56px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid var(--chatbot-color);
        opacity: 0.6;
        z-index: 1;
    }
}

.flow-heading {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.flow-text {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.75;
}

@media (min-width: 900px) {
    .flow-steps {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        justify-content: space-between;
        position: relative;
    }

    .flow-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        min-width: 0;
        text-align: center;
        position: relative;
        padding: 0 12px;
        gap: 0;
    }

    .flow-rail {
        display: none;
    }

    .flow-track {
        position: static;
        transform: none;
        top: auto;
        left: auto;
        width: 48px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 14px;
        align-self: auto;
    }

    /* Web幅：3列＋矢印のレイアウトをモバイル用 flex と切り離す */
    .flow-panel {
        flex: none;
        width: 100%;
        min-width: 0;
        padding: 20px 22px 22px;
        margin-bottom: 0;
        text-align: left;
    }

    /* ステップ間の矢印（次の工程へ） */
    .flow-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 23px;
        right: -2px;
        width: 11px;
        height: 11px;
        border-right: 2px solid var(--chatbot-color);
        border-bottom: 2px solid var(--chatbot-color);
        transform: rotate(-45deg);
        opacity: 0.4;
        pointer-events: none;
    }

    .flow-num {
        box-shadow: none;
        border-color: #eef6ff;
    }

    .flow-heading,
    .flow-text {
        text-align: left;
    }
}

/* --- CTA --- */
.section-cta {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.cta-inner {
    text-align: center;
}

.section-cta .section-title {
    margin-bottom: 16px;
}

.section-cta .section-lead {
    margin-bottom: 20px;
}

.cta-note {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
    padding: 28px 0 40px;
    background: #f1f5f9;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    text-align: center;
}

.footer-copy {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 14px;
    }

    .nav {
        width: 100%;
    }
}
