/* ポートフォリオ用LP（埋め込み版チャットボットのデモページ）
   色はチャットボットの config.js の color（#4353ff）とそろえる */

:root {
    --ink: #0b1020;
    --text: #1f2937;
    --muted: #5b6475;
    --faint: #8a93a6;
    --line: #e6e8f0;
    --soft: #f5f6fb;
    --bg: #ffffff;
    --accent: #4353ff;
    --accent-2: #7b61ff;
    --accent-soft: #eef0ff;
    --green: #16a34a;
    --amber: #d97706;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.05);
    --shadow-md: 0 12px 32px -14px rgba(11, 16, 32, 0.22);
    --shadow-lg: 0 40px 80px -30px rgba(31, 41, 90, 0.35);
    --font-jp: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    --font-en: "Inter", "Noto Sans JP", sans-serif;
    --header-h: 68px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-jp);
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

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

button {
    font: inherit;
    color: inherit;
}

.wrap {
    width: min(1160px, 100% - 48px);
    margin-inline: auto;
}

.sp-only {
    display: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

.skip-link:focus {
    left: 8px;
}

/* SVG アイコンの基本 */
.btn-icon,
.hero-points svg,
.feature-icon svg,
.try-icon svg,
.channel-icon svg,
.note-line svg,
.mini-bubble svg,
.msg-ref svg,
.logo-mark svg,
.mock-avatar svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.logo-mark .fill,
.mock-avatar .fill {
    fill: currentColor;
    stroke: none;
}

/* ---------------------------------------------------------------- ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:focus-visible,
.chip:focus-visible,
.faq summary:focus-visible {
    outline: 3px solid rgba(67, 83, 255, 0.35);
    outline-offset: 2px;
}

.btn-sm {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.btn-lg {
    height: 54px;
    padding: 0 26px;
    font-size: 16px;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #5b6bff, var(--accent) 45%, #3b3fe0);
    box-shadow: 0 14px 30px -12px rgba(67, 83, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -12px rgba(67, 83, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover .btn-icon {
    transform: translateX(2px);
}

.btn-primary .btn-icon {
    transition: transform 0.18s ease;
}

.btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    border-color: #c9cde0;
    background: #fff;
}

.btn-dark {
    color: #fff;
    background: var(--ink);
}

.btn-dark:hover {
    background: #22283d;
}

.btn-light {
    color: var(--ink);
    background: #fff;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}

.btn-outline-light {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------------- ヘッダー */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.86);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
}

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

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6a78ff, var(--accent) 50%, #3b3fe0);
    box-shadow: 0 6px 14px -6px rgba(67, 83, 255, 0.8);
}

.logo-mark svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: 0;
}

.logo-text small {
    font-family: var(--font-jp);
    font-weight: 500;
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-top: 3px;
}

.nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    position: relative;
    transition: color 0.15s ease;
}

.nav a:hover {
    color: var(--ink);
}

.header-cta {
    flex-shrink: 0;
}

/* ---------------------------------------------------------------- ヒーロー */
.hero {
    position: relative;
    padding: 72px 0 110px;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    /* 下の端で背景がぷつっと切れないよう、なめらかに消す */
    -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent);
    mask-image: linear-gradient(180deg, #000 65%, transparent);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.blob-a {
    width: 560px;
    height: 560px;
    right: -120px;
    top: -160px;
    background: radial-gradient(circle, #aab4ff, rgba(170, 180, 255, 0));
}

.blob-b {
    width: 480px;
    height: 480px;
    left: -180px;
    bottom: -220px;
    background: radial-gradient(circle, #d9ccff, rgba(217, 204, 255, 0));
}

.grid-fade {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 16, 32, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 16, 32, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.hero-title {
    margin-top: 22px;
    font-size: clamp(36px, 5.2vw, 62px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--ink);
}

.accent-text {
    background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    margin-top: 22px;
    max-width: 34em;
    font-size: 17px;
    color: var(--muted);
    line-height: 1.95;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-points {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

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

.hero-points svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    stroke-width: 2.4;
}

.hero-points sup {
    font-size: 10px;
    color: var(--faint);
}

/* ヒーローの見本（チャット） */
.hero-visual {
    position: relative;
    padding: 24px 30px 24px 10px;
}

.mock-chat {
    position: relative;
    width: min(400px, 100%);
    margin-left: auto;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(11, 16, 32, 0.06);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.mock-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    color: #fff;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 60%),
        var(--accent);
}

.mock-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.mock-avatar svg {
    width: 20px;
    height: 20px;
}

.mock-title {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
}

.mock-title small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
}

.mock-title i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
}

.mock-body {
    padding: 20px 16px 8px;
    background: #f8fafc;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(8px);
    animation: msg-in 0.45s ease forwards;
    animation-delay: var(--d, 0s);
}

.msg-user {
    align-self: flex-end;
    color: #fff;
    background: var(--accent);
    border-bottom-right-radius: 6px;
}

.msg-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 6px;
    color: #1e293b;
}

.msg-muted {
    color: #475569;
}

.msg-ref {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px 3px 7px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.msg-ref svg {
    width: 13px;
    height: 13px;
}

@keyframes msg-in {
    to {
        opacity: 1;
        transform: none;
    }
}

.mock-input {
    margin: 8px 12px 14px;
    padding: 6px 6px 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
}

.mock-input i {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--accent);
    opacity: 0.35;
}

.float-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 16, 32, 0.06);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(8px);
    animation: msg-in 0.5s ease forwards;
    animation-delay: var(--d, 0s);
}

.fc-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--faint);
    letter-spacing: 0.06em;
}

.fc-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.fc-value .num {
    font-family: var(--font-en);
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.fc-value small {
    font-size: 11.5px;
    color: var(--muted);
}

.float-a {
    left: -48px;
    top: 84px;
}

.float-b {
    left: -30px;
    bottom: 96px;
}

.float-c {
    right: -18px;
    top: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
}

.tag-blue {
    color: var(--accent);
    background: var(--accent-soft);
}

.tag-gray {
    color: #475569;
    background: #eef1f5;
}

.tag-amber {
    color: #a15c07;
    background: #fff4e0;
}

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

.section-soft {
    background: var(--soft);
}

.section-head {
    max-width: 760px;
    margin-bottom: 56px;
}

.kicker {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.kicker-light {
    color: #9aa4ff;
}

.section-title {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 900;
    line-height: 1.4;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.section-lead {
    margin-top: 18px;
    font-size: 16.5px;
    color: var(--muted);
    line-height: 1.95;
}

.section-lead b {
    color: var(--ink);
}

.section-lead code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--soft);
    color: var(--ink);
}

/* ---------------------------------------------------------------- 試す */
.try-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.try-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.try-card:hover {
    border-color: #d6daea;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.try-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.try-head h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
}

.try-head p {
    font-size: 13px;
    color: var(--faint);
    line-height: 1.5;
}

.try-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.try-icon svg {
    width: 23px;
    height: 23px;
}

.try-icon-blue {
    color: var(--accent);
    background: var(--accent-soft);
}

.try-icon-violet {
    color: #7c3aed;
    background: #f3edff;
}

.try-icon-green {
    color: var(--green);
    background: #e9f8ef;
}

.chips {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 11px 14px 11px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fbfbfe;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip::after {
    content: "";
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: currentColor;
    opacity: 0.35;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V6M6.5 11.5 12 6l5.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V6M6.5 11.5 12 6l5.5 5.5'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: rotate(45deg);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.chip:hover {
    background: var(--accent-soft);
    border-color: rgba(67, 83, 255, 0.35);
    color: var(--accent);
}

.chip:hover::after {
    opacity: 1;
    transform: rotate(45deg) translateY(-2px);
}

.chip:active {
    transform: scale(0.985);
}

/* ---------------------------------------------------------------- 特徴 */
.feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature {
    padding: 30px 28px 32px;
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6a78ff, var(--accent) 55%, #3b3fe0);
    box-shadow: 0 10px 20px -10px rgba(67, 83, 255, 0.8);
    margin-bottom: 22px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature h3 {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    margin-bottom: 10px;
}

.feature p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.9;
}

/* ---------------------------------------------------------------- 仕組み */
.pipeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
    position: relative;
}

.step {
    position: relative;
    padding: 30px 28px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fbfbff);
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -17px;
    width: 14px;
    height: 14px;
    border-top: 2px solid #c7cbe6;
    border-right: 2px solid #c7cbe6;
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
}

.step-num {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.step h3 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

.step p {
    margin-top: 8px;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.85;
}

.step-tags {
    margin: 20px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.funnel {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.funnel span {
    width: var(--w);
    min-width: max-content;
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    white-space: nowrap;
}

.funnel span:last-child {
    color: #fff;
    background: var(--accent);
}

.mini-bubble {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 16px;
    border-bottom-left-radius: 6px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}

.mini-bubble small {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
}

.mini-bubble svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.4;
}

.note-line {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: var(--radius);
    background: var(--soft);
    font-size: 14.5px;
    color: var(--text);
}

.note-line svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--amber);
}

/* ---------------------------------------------------------------- 管理画面 */
.section-dark {
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(67, 83, 255, 0.35), rgba(67, 83, 255, 0) 70%),
        radial-gradient(700px 400px at 0% 100%, rgba(123, 97, 255, 0.25), rgba(123, 97, 255, 0) 70%),
        #0b1020;
    color: #e5e7f2;
    overflow: hidden;
}

.section-dark .section-title {
    color: #fff;
}

.section-dark .section-lead {
    color: #aab1c6;
}

.admin-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    font-size: 15px;
    color: #d8dcea;
    line-height: 1.7;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(123, 140, 255, 0.2);
}

.check-list li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    width: 8px;
    height: 5px;
    border-left: 2px solid #9aa4ff;
    border-bottom: 2px solid #9aa4ff;
    transform: rotate(-45deg);
}

.admin-visual {
    position: relative;
    padding-bottom: 40px;
}

.mock-admin {
    border-radius: 18px;
    overflow: hidden;
    background: #fafafa;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #18181b;
    font-size: 12px;
}

.ma-top {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 44px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #e4e4e7;
}

.ma-logo {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #18181b;
}

.ma-tab {
    color: #71717a;
    font-weight: 500;
    white-space: nowrap;
}

.ma-tab.is-on {
    color: #18181b;
    font-weight: 700;
}

.ma-body {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
}

.ma-side {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ma-side-label {
    margin-top: 8px;
    padding: 0 8px;
    font-size: 10.5px;
    color: #a1a1aa;
}

.ma-side-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 7px;
    color: #3f3f46;
    white-space: nowrap;
}

.ma-side-item b {
    margin-left: auto;
    font-weight: 500;
    color: #a1a1aa;
    font-family: var(--font-en);
}

.ma-side-item.is-on {
    background: #fff;
    box-shadow: 0 0 0 1px #e4e4e7;
    font-weight: 700;
    color: #18181b;
}

.ma-side-item i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.d-gray { background: #a1a1aa; }
.d-blue { background: #0ea5e9; }
.d-green { background: #10b981; }

.ma-list {
    background: #fff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    overflow: hidden;
}

.ma-row {
    display: flex;
    gap: 10px;
    padding: 11px 12px;
    border-bottom: 1px solid #e4e4e7;
}

.ma-row:last-child {
    border-bottom: 0;
}

.ma-row div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ma-row b {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ma-row small {
    color: #71717a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ma-row .star {
    color: #d4d4d8;
    font-size: 14px;
    line-height: 1.3;
}

.ma-row.is-pinned {
    background: #fffdf5;
}

.ma-row.is-pinned .star {
    color: #f59e0b;
}

.mock-stats {
    position: absolute;
    right: -14px;
    bottom: 0;
    width: 210px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    color: #18181b;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2px 12px;
}

.ms-label {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    color: #71717a;
}

.ms-value {
    font-family: var(--font-en);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
}

.ms-value small {
    font-size: 16px;
    margin-left: 2px;
}

.ms-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.ms-bars i {
    width: 7px;
    height: var(--h);
    border-radius: 3px;
    background: linear-gradient(180deg, #7b8cff, var(--accent));
}

/* ---------------------------------------------------------------- 設置 */
.code-card {
    border-radius: var(--radius-lg);
    background: #0f1426;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.code-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a3150;
}

.code-bar span {
    margin-left: 10px;
    font-family: var(--font-en);
    font-size: 12px;
    color: #7c86a8;
}

.code-card pre {
    margin: 0;
    padding: 22px 24px 24px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    line-height: 1.9;
    color: #e5e7f2;
    letter-spacing: 0;
}

.c-dim { color: #5d6788; }
.c-tag { color: #8ea0ff; }
.c-attr { color: #f0b36d; }
.c-str { color: #7fe0b0; }

.channel-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.channel {
    padding: 24px 24px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: #fff;
}

.channel-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-soft);
    margin-bottom: 16px;
}

.channel-icon svg {
    width: 22px;
    height: 22px;
}

.channel h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.channel p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
}

.small-note {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--faint);
}

/* ---------------------------------------------------------------- 費用 */
.cost-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.cost-card {
    padding: 36px 36px 30px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.cost-case {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.cost-total {
    margin-top: 6px;
    font-family: var(--font-en);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.cost-total .yen {
    font-family: var(--font-jp);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 4px;
    color: var(--muted);
}

.cost-bars {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.cost-bars li {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.cost-bars span {
    color: var(--text);
    font-weight: 500;
}

.cost-bars i {
    height: 10px;
    border-radius: 999px;
    background: var(--soft);
    position: relative;
    overflow: hidden;
}

.cost-bars i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--w);
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, #7b8cff, var(--accent));
}

.cost-bars b {
    text-align: right;
    font-weight: 700;
    color: var(--ink);
}

.cost-note {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 12.5px;
    color: var(--faint);
    line-height: 1.8;
}

/* ---------------------------------------------------------------- 導入の流れ */
.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    position: relative;
}

.flow::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 23px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.25;
}

.flow-item {
    position: relative;
}

.flow-num {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 15px;
    color: var(--accent);
    background: #fff;
    border: 2px solid rgba(67, 83, 255, 0.3);
    margin-bottom: 18px;
}

.flow-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.flow-item p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
}

/* ---------------------------------------------------------------- よくある質問 */
.faq-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: start;
}

.faq-inner .section-head {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-h) + 32px);
}

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

.faq {
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq[open] {
    border-color: #d6daea;
    box-shadow: var(--shadow-sm);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
    border-radius: 16px;
}

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

.faq summary::after {
    content: "";
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    background:
        linear-gradient(var(--accent), var(--accent)) center / 10px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) center / 2px 10px no-repeat,
        var(--accent-soft);
    transition: transform 0.2s ease;
}

.faq[open] summary::after {
    transform: rotate(45deg);
}

.faq p {
    padding: 0 22px 22px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.9;
}

/* ---------------------------------------------------------------- お問い合わせ */
.cta {
    padding-top: 40px;
}

.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #3b3fe0, var(--accent) 45%, #7b61ff);
    box-shadow: 0 40px 80px -40px rgba(67, 83, 255, 0.8);
    isolation: isolate;
}

.cta-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(500px 260px at 20% 0%, rgba(255, 255, 255, 0.28), transparent 70%),
        radial-gradient(420px 260px at 90% 100%, rgba(255, 255, 255, 0.18), transparent 70%);
}

.cta-card h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 900;
    line-height: 1.45;
}

.cta-card > p {
    margin: 14px auto 0;
    max-width: 44em;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.cta-actions {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-card .cta-mail {
    margin-top: 18px;
    font-family: var(--font-en);
    font-size: 14px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------------- フッター */
.site-footer {
    padding: 40px 0 120px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--faint);
    border-top: 1px solid var(--line);
    padding-top: 28px;
}

/* ---------------------------------------------------------------- スクロールで表示 */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
}

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

.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------- タブレット */
@media (max-width: 1080px) {
    .nav {
        gap: 18px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .hero-visual {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .mock-chat {
        margin: 0 auto;
    }

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

    .admin-inner,
    .cost-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .admin-visual {
        max-width: 640px;
    }

    .flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 36px;
    }

    .flow::before {
        display: none;
    }
}

@media (max-width: 860px) {
    .nav {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }

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

    .step:not(:last-child)::after {
        top: auto;
        bottom: -17px;
        right: 50%;
        transform: translateX(50%) rotate(135deg);
    }

    .faq-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .faq-inner .section-head {
        position: static;
    }

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

/* ---------------------------------------------------------------- スマホ */
@media (max-width: 600px) {
    :root {
        --header-h: 60px;
    }

    body {
        font-size: 15px;
    }

    .wrap {
        width: calc(100% - 32px);
    }

    .sp-only {
        display: inline;
    }

    .logo-text small {
        display: none;
    }

    .hero {
        padding: 44px 0 72px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-lead {
        font-size: 15.5px;
    }

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

    .hero-visual {
        padding: 16px 0 60px;
    }

    .float-a,
    .float-b {
        display: none;
    }

    .float-c {
        right: -4px;
        top: 0;
    }

    .section {
        padding: 80px 0;
    }

    .section-head {
        margin-bottom: 36px;
    }

    .section-lead {
        font-size: 15px;
    }

    .feature-grid,
    .try-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .try-card,
    .feature {
        padding: 22px 20px;
    }

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

    .ma-side {
        display: none;
    }

    .ma-tab:not(.is-on) {
        display: none;
    }

    .mock-stats {
        right: 8px;
        width: 180px;
    }

    .cost-card {
        padding: 26px 22px 22px;
    }

    .cost-total {
        font-size: 50px;
    }

    .cost-bars li {
        grid-template-columns: minmax(0, 1fr) 64px;
        row-gap: 6px;
    }

    .cost-bars i {
        grid-column: 1 / -1;
        grid-row: 2;
    }

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

    .flow-item {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        column-gap: 16px;
        padding-bottom: 26px;
    }

    .flow-item::before {
        content: "";
        position: absolute;
        left: 23px;
        top: 52px;
        bottom: 4px;
        width: 2px;
        background: rgba(67, 83, 255, 0.18);
    }

    .flow-item:last-child::before {
        display: none;
    }

    .flow-num {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }

    .flow-item h3 {
        padding-top: 10px;
    }

    .faq summary {
        padding: 16px 18px;
        font-size: 15px;
    }

    .faq p {
        padding: 0 18px 18px;
        font-size: 14.5px;
    }

    .cta-card {
        padding: 56px 22px;
        border-radius: 24px;
    }

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

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        transition-duration: 0.01ms !important;
    }

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