/* ============================================================
   サテミエ 共通デザインシステム
   ============================================================ */
:root {
    --navy: #0E2A47;
    --navy-2: #16385C;
    --brand: #1D6FE0;
    --brand-dark: #155AC2;
    --brand-2: #57A2FF;
    --ink: #1C2B3A;
    --muted: #64748B;
    --line: #E6ECF4;
    --bg: #F6F8FB;
    --card: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(14, 42, 71, .05);
    --shadow-md: 0 1px 2px rgba(14, 42, 71, .04), 0 8px 24px rgba(14, 42, 71, .07);
    --shadow-lg: 0 4px 12px rgba(14, 42, 71, .08), 0 16px 40px rgba(29, 111, 224, .14);
    --radius: 16px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- レイアウト ---------- */
.wrap { max-width: 820px; margin: 0 auto; padding: 26px 18px 64px; }
.wrap.narrow { max-width: 680px; }
.wrap.mid { max-width: 760px; }
.wrap.wide { max-width: 1020px; }

/* ---------- ヘッダー ---------- */
.site, header.site {
    background: var(--navy); /* ロゴPNGの背景色と一致させる（単色） */
    padding: 14px 18px;
    position: relative;
}
.site::after, header.site::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 60%, transparent 100%);
    opacity: .85;
}
.site .inner, header.site .inner {
    max-width: 820px; margin: 0 auto;
    display: flex; align-items: center; gap: 14px;
}
.site a, header.site a { display: inline-flex; align-items: center; text-decoration: none; }
.site img, header.site img { height: 44px; width: auto; display: block; }
.site .tagline, header.site .tagline {
    color: #A9BDD6; font-size: 12.5px; font-weight: 500;
    border-left: 1px solid rgba(255, 255, 255, .22); padding-left: 14px;
    letter-spacing: .02em;
}
header.site a:not(:first-child) { color: #A9BDD6; font-size: 13px; transition: color .15s; }
header.site a:not(:first-child):hover { color: #fff; }
@media (max-width: 480px) { .site .tagline, header.site .tagline { display: none; } }

/* ---------- 見出し ---------- */
h1, h1.page {
    font-size: 23px; margin: 8px 0 14px; color: var(--navy);
    font-weight: 900; letter-spacing: .01em; line-height: 1.5;
}
h2 {
    font-size: 17px; margin: 34px 0 12px; color: var(--navy); font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
h2::before {
    content: ""; width: 5px; height: 1.1em; border-radius: 3px; flex: none;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
}
.card h2 { margin-top: 0; }
.card h2::before { display: none; }
p { margin: 0 0 12px; }

/* ---------- カード ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 16px;
    box-shadow: var(--shadow-md);
}

/* ---------- パンくず ---------- */
nav.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
nav.crumbs a { color: var(--brand); text-decoration: none; }
nav.crumbs a:hover { text-decoration: underline; }

/* ---------- ステップ ---------- */
.steps { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.steps span {
    font-size: 12px; color: var(--muted); padding: 6px 16px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); font-weight: 500;
}
.steps span.on {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; border-color: transparent; font-weight: 700;
    box-shadow: 0 3px 10px rgba(29, 111, 224, .3);
}

/* ---------- フォーム ---------- */
label { display: block; font-weight: 700; margin: 18px 0 7px; font-size: 13.5px; color: var(--navy); letter-spacing: .02em; }
select, input[type=number], input[type=text], input[type=email], textarea {
    width: 100%; padding: 13px 14px;
    border: 1.5px solid #D4DEEB; border-radius: var(--radius-sm);
    font-size: 16px; background: #fff; font-family: inherit; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
    appearance: auto;
}
select:hover:not(:disabled), input:hover:not(:disabled) { border-color: #B9C9DE; }
select:focus, input:focus, textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(29, 111, 224, .12);
}
select:disabled, input:disabled { background: #F1F4F9; color: #9AA6B6; border-color: var(--line); }
.row { display: flex; gap: 14px; }
.row > div { flex: 1; }
.check { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 14px; }
.check input { width: 19px; height: 19px; accent-color: var(--brand); }

/* ---------- ボタン ---------- */
.btn {
    display: inline-block; width: 100%; margin-top: 24px; padding: 16px;
    border: 0; border-radius: 12px;
    background: linear-gradient(180deg, #2B7DE9, var(--brand));
    color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .04em;
    cursor: pointer; font-family: inherit;
    box-shadow: 0 4px 14px rgba(29, 111, 224, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(29, 111, 224, .4), inset 0 1px 0 rgba(255, 255, 255, .18); filter: brightness(1.03); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(29, 111, 224, .3); }
.btn.sub {
    background: #fff; color: var(--brand); border: 1.5px solid #C4D7F5;
    box-shadow: var(--shadow-sm);
}
.btn.sub:hover { background: #F4F8FE; border-color: var(--brand); box-shadow: var(--shadow-sm); }
.btn.ghost {
    width: auto; margin: 0; padding: 8px 14px; font-size: 13px;
    background: #EDF3FC; color: var(--brand); box-shadow: none; border-radius: 8px;
}
.btn.ghost:hover { background: #E0EBFA; transform: none; }
.cta {
    display: inline-block; margin-top: 8px; padding: 15px 26px;
    background: linear-gradient(180deg, #2B7DE9, var(--brand));
    color: #fff; border-radius: 12px; text-decoration: none; font-weight: 700; letter-spacing: .03em;
    box-shadow: 0 4px 14px rgba(29, 111, 224, .32);
    transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(29, 111, 224, .4); }

/* ---------- 概算結果 ---------- */
.price {
    text-align: center; padding: 26px 16px;
    background: linear-gradient(160deg, #F2F7FF 0%, #E9F1FD 100%);
    border-radius: 12px; margin-bottom: 14px;
}
.price .amt {
    font-size: 34px; font-weight: 900; color: var(--brand);
    letter-spacing: .01em; line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.price .car { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.price .note { margin-top: 6px; }

/* ---------- 注意・エラー ---------- */
.note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.note a, .alert a { color: var(--brand); }
.alert {
    background: #F0F6FF; border: 1px solid #CBDEF9; color: var(--navy);
    padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px;
}
.err {
    background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C;
    padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14px;
}
.err ul { margin: 6px 0 0; padding-left: 18px; }
.flash {
    background: #ECFDF3; border: 1px solid #A7F3C9; color: #15803D;
    padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 12px; font-size: 14px;
}

/* ---------- テーブル ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { background: #F2F6FC; color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
th:first-child, td:first-child { text-align: left; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #F8FAFD; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- グリッド・チップ ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }
.grid.tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 520px) { .grid.tiles { grid-template-columns: 1fr; } }
.chip {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-sm); padding: 13px 10px;
    text-decoration: none; color: var(--ink); font-size: 13.5px; text-align: center; font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.chip:hover {
    border-color: var(--brand); color: var(--brand);
    box-shadow: 0 4px 14px rgba(29, 111, 224, .14); transform: translateY(-1px);
}

/* ---------- ポータル ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(600px 300px at 85% -20%, rgba(87, 162, 255, .35), transparent 60%),
        radial-gradient(500px 260px at 8% 110%, rgba(29, 111, 224, .45), transparent 60%),
        linear-gradient(150deg, var(--navy) 0%, #123B66 55%, #17518F 100%);
    color: #fff; padding: 58px 20px 50px; text-align: center;
}
.hero .mark { margin: 0 auto 6px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25)); }
.hero h1 { margin: 10px 0 0; font-size: 38px; font-weight: 900; letter-spacing: .1em; color: #fff; }
.hero p { margin: 12px 0 0; opacity: .88; font-size: 15px; letter-spacing: .04em; }
.lead { text-align: center; color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.tile {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 20px;
    text-decoration: none; color: inherit;
    box-shadow: var(--shadow-md);
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative; overflow: hidden;
}
.tile.on:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #BAD3F7; }
.tile.on:hover .cta { text-decoration: underline; }
.tile.off { opacity: .55; cursor: default; }
.tile .icon {
    font-size: 26px; width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #EBF3FE, #DCEAFC);
}
.tile .name { font-weight: 900; font-size: 18px; margin-top: 12px; color: var(--navy); }
.tile .desc { color: var(--muted); font-size: 12.5px; margin-top: 4px; line-height: 1.6; }
.tile .cta {
    margin-top: 12px; display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand);
    background: none; box-shadow: none; padding: 0; border-radius: 0;
}
.tile .cta:hover { transform: none; box-shadow: none; }
.soon { display: inline-block; font-size: 11px; background: #EEF3FB; color: var(--muted); border-radius: 999px; padding: 3px 10px; margin-top: 12px; }
.about {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; margin-top: 26px; box-shadow: var(--shadow-md);
}
.about h2 { font-size: 17px; margin: 0 0 12px; }
.about h2::before { display: none; }
.about p { font-size: 14px; color: #3B4A5C; margin: 0 0 10px; }

/* ---------- コラム一覧 ---------- */
.list a {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 17px 20px; text-decoration: none; color: inherit;
    margin-top: 12px; box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.list a:hover { border-color: var(--brand); box-shadow: 0 4px 16px rgba(29, 111, 224, .12); transform: translateY(-1px); }
.list .t { font-weight: 700; color: var(--navy); line-height: 1.6; }
.list .d { color: var(--muted); font-size: 13px; margin-top: 5px; }
.related { margin-top: 24px; }
.meta { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.article h2 { font-size: 18px; margin: 30px 0 12px; }
.article p { margin: 0 0 14px; }
.article ul { margin: 0 0 14px; padding-left: 20px; }
.article li { margin-bottom: 6px; }
.article a { color: var(--brand); }
details summary { color: var(--navy); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details:last-child { border-bottom: 0; }
details summary { font-weight: 600; cursor: pointer; transition: color .15s; }
details summary:hover { color: var(--brand); }

/* ---------- 免責・フッター ---------- */
.disclaimer {
    font-size: 11.5px; color: var(--muted); margin-top: 30px;
    border-top: 1px solid var(--line); padding-top: 16px; line-height: 1.9;
}
.wrap.narrow .disclaimer, .wrap.mid .disclaimer { text-align: center; border-top: none; }
.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, #0A2038 100%);
    color: #C7D6EA; margin-top: 44px; padding: 40px 16px 34px; position: relative;
}
.site-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), transparent);
    opacity: .8;
}
.site-footer .inner { max-width: 820px; margin: 0 auto; text-align: center; }
.site-footer .foot-logo { height: 40px; width: auto; }
.site-footer .foot-tag { font-size: 13px; color: #9FB6D4; margin: 12px 0 18px; letter-spacing: .03em; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 20px; }
.site-footer .foot-links a { color: #C7D6EA; text-decoration: none; font-size: 13.5px; transition: color .15s; }
.site-footer .foot-links a:hover { color: #fff; }
.site-footer .foot-copy { font-size: 12px; color: #7F96B5; margin: 0; }

/* ---------- 管理画面 ---------- */
header.admin {
    background: var(--navy); color: #fff; padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between;
    position: relative;
}
header.admin::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), transparent);
}
header.admin img { height: 32px; width: auto; vertical-align: middle; margin-right: 16px; }
header.admin a { color: #A9BDD6; text-decoration: none; margin-right: 16px; font-size: 13.5px; transition: color .15s; }
header.admin a:hover { color: #fff; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tabs a {
    font-size: 13px; padding: 6px 14px; border-radius: 999px;
    background: #EDF3FC; color: var(--brand); text-decoration: none; transition: background .15s;
}
.tabs a:hover { background: #E0EBFA; }
.tabs a.on { background: var(--brand); color: #fff; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.new { background: #FEF3C7; color: #92400E; }
.badge.contacted { background: #DBEAFE; color: #1E40AF; }
.badge.closed { background: #DCFCE7; color: #166534; }
.muted { color: var(--muted); font-size: 13px; }
.pager { margin-top: 14px; }
/* 管理画面（wide）ではボタンをコンパクトに */
.wrap.wide .btn { width: auto; margin-top: 0; padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.wrap.wide form .btn { margin-top: 14px; }
.wrap.wide h1 { font-size: 20px; }
