/* =====================================================================
   EsCTI 紹介ページ用の共通デザイン（cti.html・crm.html などで使う）
   ※トップページ（index.html）と同じ見た目。トップページは自分の中に同じ内容を持っています
   ===================================================================== */
:root {
    --navy: #0b1f4d;
    --navy-2: #0f172a;
    --blue: #2563eb;
    --sky: #5aaef0;
    --sky-soft: #e8f3fd;
    --text: #1e293b;
    --sub: #5b6b82;
    --line: #e2e8f0;
    --bg: #f6f8fb;
    --white: #ffffff;
    --accent: #f59e0b;
    --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Meiryo', sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--sub); font-weight: 600; }
.nav a:hover { color: var(--blue); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; padding: 12px 24px; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: transparent; color: var(--navy); padding: 10px 18px; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; font-weight: 700; color: var(--navy); }

/* ---------- ファーストビュー ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(90, 174, 240, 0.25), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(37, 99, 235, 0.12), transparent 60%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    padding: 64px 0 40px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.campaign-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff7e6; color: #9a5b00; border: 1px solid #fde3a7;
    font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
}
.campaign-badge b { color: #c2410c; }
.hero h1 { font-size: 42px; line-height: 1.35; margin: 18px 0 16px; color: var(--navy); letter-spacing: 0.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(90, 174, 240, 0.35) 62%); }
.hero p.lead { font-size: 17px; color: var(--sub); margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13px; color: var(--sub); margin-top: 14px; }
.hero-visual { position: relative; }
.laptop {
    background: #0f172a; border-radius: 14px 14px 6px 6px; padding: 10px 10px 14px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.22);
}
.laptop img { border-radius: 6px; }
.phone {
    position: absolute; right: -10px; bottom: -30px; width: 30%;
    background: #0f172a; border-radius: 26px; padding: 7px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.3);
}
.phone img { border-radius: 20px; }
.ring-badge {
    position: absolute; left: -14px; top: 22%;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14); font-size: 13px; font-weight: 700; color: var(--navy);
    display: flex; align-items: center; gap: 10px;
}
.ring-dot { width: 34px; height: 34px; border-radius: 50%; background: #dcfce7; display: grid; place-items: center; }
.ring-dot svg { width: 18px; height: 18px; color: #16a34a; }
.ring-badge small { display: block; font-weight: 600; color: var(--sub); font-size: 11px; }

/* ---------- キャンペーン帯 ---------- */
.campaign {
    background: linear-gradient(90deg, var(--navy) 0%, #1e3a8a 100%);
    color: #fff; padding: 22px 0;
}
.campaign-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.campaign strong { font-size: 20px; }
.campaign strong .hl { color: #fcd34d; }
.campaign p { margin: 2px 0 0; color: #cbd5e1; font-size: 14px; }
.campaign .btn { background: #fff; color: var(--navy); padding: 12px 22px; }

/* ---------- 共通セクション ---------- */
section.block { padding: 88px 0; }
section.alt { background: var(--bg); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.sec-head h2 { font-size: 32px; line-height: 1.4; margin: 8px 0 12px; color: var(--navy); }
.sec-head p { color: var(--sub); margin: 0; font-size: 16px; }

/* お悩み */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
}
.pain .q { font-weight: 800; color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.pain .a { color: var(--sub); font-size: 15px; margin: 0; }
.pain .a b { color: var(--blue); }
.pain-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sky-soft); display: grid; place-items: center; margin-bottom: 14px; }
.pain-icon svg { width: 24px; height: 24px; color: var(--blue); }

/* 機能（画像と説明の交互） */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-bottom: 80px; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-media { order: 2; }
.feature-media .shot {
    border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12); background: #fff;
}
.feature-media.mobiles { display: flex; gap: 16px; justify-content: center; }
.feature-media.mobiles .shot { width: 46%; border-radius: 22px; border: 6px solid #0f172a; }
.feature-num { font-weight: 800; color: var(--sky); font-size: 14px; letter-spacing: 0.12em; }
.feature h3 { font-size: 26px; line-height: 1.45; margin: 6px 0 14px; color: var(--navy); }
.feature p { color: var(--sub); margin: 0 0 16px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; font-size: 15px; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/12px no-repeat;
}

/* その他の機能 */
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.mini h4 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.mini p { margin: 0; font-size: 14px; color: var(--sub); line-height: 1.7; }

/* 料金 */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.price-card {
    background: #fff; border: 2px solid var(--blue); border-radius: 20px; padding: 32px; position: relative;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.10);
}
.price-card .ribbon {
    position: absolute; top: -14px; left: 28px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px;
    padding: 4px 14px; border-radius: 999px;
}
.price-card h3 { margin: 4px 0 10px; color: var(--navy); font-size: 18px; }
.price { font-size: 46px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.price small { font-size: 16px; color: var(--sub); font-weight: 700; }
.price-sub { color: var(--sub); font-size: 14px; margin: 6px 0 18px; }
.free-box { background: #fff8eb; border: 1px solid #fde3a7; border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 18px; }
.free-box b { color: #b45309; }
.need-card { background: var(--bg); border-radius: 20px; padding: 32px; }
.need-card h3 { margin: 0 0 14px; color: var(--navy); font-size: 18px; }
.need-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #cbd5e1; }
.need-item:last-child { border-bottom: none; }
.need-item .tag { flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--blue); background: var(--sky-soft); border-radius: 8px; padding: 4px 8px; height: fit-content; }
.need-item p { margin: 0; font-size: 14px; color: var(--sub); }
.need-item b { color: var(--text); display: block; font-size: 15px; }

/* 導入の流れ */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 18px; position: relative; }
.step::before {
    counter-increment: step; content: "STEP " counter(step);
    display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--navy);
    padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; letter-spacing: 0.06em;
}
.step h4 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.step p { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.7; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary {
    list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--blue); font-weight: 800; margin-right: 10px; }
.faq summary::after { content: "＋"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--sub); font-weight: 800; }
.faq details[open] summary::after { content: "－"; }
.faq .ans { padding: 0 22px 20px 46px; color: var(--sub); font-size: 15px; }

/* ダウンロード・お問い合わせ */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.dl .kind { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: 0.08em; }
.dl h4 { margin: 6px 0 6px; font-size: 18px; color: var(--navy); }
.dl p { margin: 0 0 16px; font-size: 14px; color: var(--sub); flex: 1; }
.dl .btn { align-self: flex-start; }
.dl-note { margin: -6px 0 16px; padding: 10px 12px 10px 28px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; font-size: 12.5px; line-height: 1.65; color: var(--sub); }
.dl-note li + li { margin-top: 6px; }
.dl-note b { color: var(--navy); }
.btn-disabled { background: #e2e8f0; color: #64748b; padding: 10px 18px; cursor: default; box-shadow: none; }

.contact-box {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a8a 100%); color: #fff; border-radius: 24px; padding: 48px 40px;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.contact-box h2 { margin: 0 0 10px; font-size: 30px; }
.contact-box p { margin: 0; color: #cbd5e1; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-white { background: #fff; color: var(--navy); padding: 15px 22px; font-size: 16px; }
.btn-line { background: #06c755; color: #fff; padding: 15px 22px; font-size: 16px; }
.btn-outline-white { border: 1.5px solid rgba(255, 255, 255, 0.5); color: #fff; padding: 14px 22px; font-size: 15px; }
.contact-mail { font-size: 13px; color: #cbd5e1; text-align: center; }
.line-qr { display: flex; gap: 14px; align-items: center; background: #fff; color: var(--navy); border-radius: 14px; padding: 12px 14px; }
.line-qr > img { width: 96px; height: 96px; flex-shrink: 0; }
.line-qr b { display: block; font-size: 15px; }
.line-qr span { display: block; font-size: 12px; color: var(--sub); margin: 2px 0 6px; }
.line-qr a img { height: 36px; width: auto; }

/* フッター */
.site-footer { background: var(--navy-2); color: #94a3b8; padding: 40px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- スマホ ---------- */
@media (max-width: 960px) {
    .nav { display: none; }
    .nav.open {
        display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    }
    .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
    .menu-toggle { display: inline-block; }
    .header-cta .btn-ghost { display: none; }
    .hero { padding: 36px 0 56px; }
    .hero-grid, .feature, .price-wrap, .contact-box { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .hero p.lead { font-size: 15px; }
    .hero-visual { margin-top: 12px; }
    .ring-badge { left: 6px; top: -14px; }
    .feature { gap: 22px; margin-bottom: 64px; }
    .feature.reverse .feature-media { order: 0; }
    .feature h3 { font-size: 22px; }
    .pain-grid, .dl-grid { grid-template-columns: 1fr; }
    .mini-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
    section.block { padding: 64px 0; }
    .sec-head h2 { font-size: 25px; }
    .contact-box { padding: 32px 22px; }
    .contact-box h2 { font-size: 24px; }
    .campaign strong { font-size: 17px; }
}
@media (max-width: 420px) {
    .header-cta .btn-primary { padding: 8px 12px; font-size: 13px; }
    .brand span { font-size: 18px; }
    .mini-grid { grid-template-columns: 1fr; }
    .price { font-size: 38px; }
}
    

/* ---------- 説明ページ（記事）用 ---------- */
.page-hero {
    background:
        radial-gradient(800px 420px at 90% -20%, rgba(90, 174, 240, 0.22), transparent 60%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    padding: 28px 0 48px;
}
.crumbs { font-size: 13px; color: var(--sub); margin-bottom: 18px; }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs span { margin: 0 6px; color: #94a3b8; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: 36px; line-height: 1.4; margin: 10px 0 14px; color: var(--navy); }
.page-hero h1 .h1-sub { display: block; font-size: 25px; margin-top: 4px; }
.page-hero .lead { font-size: 16px; color: var(--sub); margin: 0 0 24px; }
.page-hero .shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12); background: #fff; }

.article { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 26px; line-height: 1.45; color: var(--navy); margin: 0 0 14px; }
.article h3 { font-size: 19px; color: var(--navy); margin: 26px 0 8px; }
.article p { margin: 0 0 14px; }
.article .note { color: var(--sub); font-size: 14px; }
.definition {
    background: var(--sky-soft); border-left: 4px solid var(--blue); border-radius: 10px;
    padding: 16px 20px; margin: 0 0 8px; font-size: 16px;
}
.definition b { color: var(--navy); }
.point-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.point { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.point h3 { margin: 0 0 6px; font-size: 17px; }
.point p { margin: 0; font-size: 14.5px; color: var(--sub); line-height: 1.75; }
.info-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.info-table th, .info-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th { width: 30%; background: var(--bg); color: var(--navy); font-weight: 700; }
.way-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.way { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.way .tag { display: inline-block; font-size: 12px; font-weight: 800; color: var(--blue); background: var(--sky-soft); border-radius: 8px; padding: 3px 9px; margin-bottom: 8px; }
.way h3 { margin: 0 0 6px; font-size: 17px; }
.way p { margin: 0; font-size: 14.5px; color: var(--sub); }
.price-line {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    background: #fff; border: 2px solid var(--blue); border-radius: 18px; padding: 24px 28px;
}
.price-line .price { font-size: 38px; }
.price-line p { margin: 4px 0 0; color: var(--sub); font-size: 14px; }
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; }
.related a:hover { border-color: var(--blue); }
.related b { display: block; color: var(--navy); }
.related span { font-size: 14px; color: var(--sub); }

@media (max-width: 960px) {
    .page-hero-grid, .point-grid, .way-grid, .related { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 27px; }
    .page-hero h1 .h1-sub { font-size: 20px; }
    .article h2 { font-size: 22px; }
    .info-table th { width: 36%; }
}
