/* DFC の製品サイト（dfc-product.com）の入口のページ。外部の読み込みなし。文字は端末の日本語フォント */
:root {
    --brand: #2457C5; --brand-700: #1A3F91; --brand-50: #EEF3FC; --brand-100: #DCE6FA;
    --tob: #2457C5; --tob-50: #EEF3FC; --toc: #0E7A6A; --toc-50: #E7F5F2; --toc-700: #0A5C50;
    --ink: #172033; --ink-2: #3B4558; --muted: #667085; --line: #E3E7EE; --bg: #F6F8FB; --white: #fff;
    --radius: 16px; --shadow: 0 10px 30px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .05);
    --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; color: var(--ink); background: var(--white); line-height: 1.8; letter-spacing: .02em;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
    font-size: 16px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #F5B400; outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.45; letter-spacing: .03em; margin: 0; }

/* ---- ヘッダー・フッター ---- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.site-header .brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.site-header .brand img { height: 26px; width: auto; }
.site-header .brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.site-header .vendor { margin-left: auto; font-size: 13px; color: var(--muted); }
.site-header .head-link { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; border: 1.5px solid var(--brand-100); border-radius: 999px; padding: 6px 16px; white-space: nowrap; }
.site-header .head-link:hover { border-color: var(--brand); }
.wordmark { font-size: 18px; letter-spacing: .06em; }
.wordmark b { color: var(--brand); }

.site-footer { background: #0F1A2E; color: #C7D0E0; font-size: 14px; padding: 40px 0; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.site-footer a { color: #fff; }
.site-footer b { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 8px 0 0; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; font-size: 12px; color: #9AA8C2; }

/* ---- 最初の画面 ---- */
.hero { padding: 64px 0 48px; background: radial-gradient(1000px 420px at 85% 0%, #E3EBFC 0%, rgba(227, 235, 252, 0) 60%), linear-gradient(180deg, #F7F9FE 0%, #fff 100%); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--brand); margin-bottom: 10px; }
/* 見出しと説明文は、下のカードと同じ幅（.wrap の幅）まで使う。文節の切れ目で折り返す（対応していないブラウザでは通常の折り返し） */
.hero h1 { font-size: 36px; word-break: auto-phrase; }
.hero .lead { font-size: 17px; color: var(--ink-2); margin: 18px 0 0; word-break: auto-phrase; }
.hero .lead + .lead { margin-top: 10px; }
/* 説明の要点（/corebase/）：3つ並べる。スマートフォンでは縦に並べる */
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.points li { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; align-content: start; }
.points .pi { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.points .pi .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.points b { font-size: 15px; color: var(--ink); line-height: 1.5; }
.nw { white-space: nowrap; }
.points li > span:last-child { font-size: 14px; color: var(--ink-2); line-height: 1.7; margin-top: 2px; word-break: auto-phrase; }

section { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 26px; }
.section-head p { color: var(--ink-2); margin: 10px 0 0; word-break: auto-phrase; }

/* ---- 製品・デモのカード ---- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; }
.card h3 { font-size: 22px; margin-top: 12px; }
.card .company { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.card .company b { color: var(--ink); }
.card ul { margin: 18px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: 15px; }
.card ul li { margin: 4px 0; }
.card .actions { margin-top: auto; padding-top: 24px; }

/* ---- デモのカード（/corebase/）：上に「自分の会社 → お客様」の図を置き、違いがお客様の種類であることを見せる ---- */
.card.tob { --c: var(--tob); --c-50: var(--tob-50); --c-line: #C6D5F4; }
.card.toc { --c: var(--toc); --c-50: var(--toc-50); --c-line: #B6DED4; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.card.demo { padding: 0; overflow: hidden; }
.demo-diagram { background: var(--c-50); border-bottom: 1px solid var(--c-line); padding: 22px 20px 18px; display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.demo-diagram .node { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 120px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.45; }
.demo-diagram .disc { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 2px solid var(--c-line); color: var(--c); display: grid; place-items: center; }
.demo-diagram .disc .ic { width: 30px; height: 30px; }
.demo-diagram .self .disc { background: var(--c); border-color: var(--c); color: #fff; }
.demo-diagram small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.demo-diagram .flow { display: flex; flex-direction: column; align-items: center; color: var(--c); font-size: 12px; font-weight: 700; padding-top: 10px; min-width: 76px; }
.demo-diagram .flow .ic { width: 56px; height: 24px; stroke-width: 2; }
.demo-body { padding: 22px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.demo-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--c); letter-spacing: .06em; }
.demo-label::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.card.demo h3 { margin-top: 6px; }
.card.demo ul { list-style: none; padding-left: 0; }
.card.demo ul li { position: relative; padding-left: 1.7em; margin: 6px 0; }
.card.demo ul li .ic { position: absolute; left: 0; top: .32em; width: 1.1em; height: 1.1em; color: var(--c); stroke-width: 2.4; }
.card.demo .actions { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 26px; font-weight: 700; font-size: 15px; text-decoration: none; color: #fff; background: var(--brand); box-shadow: 0 6px 16px rgba(36, 87, 197, .24); }
.btn:hover { background: var(--brand-700); }
.card.toc .btn { background: var(--toc); box-shadow: 0 6px 16px rgba(14, 122, 106, .24); }
.card.toc .btn:hover { background: var(--toc-700); }
.btn::after { content: "→"; }
.btn-outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand-100); box-shadow: none; }
.btn-outline:hover { background: var(--brand-50); border-color: var(--brand); }
.hero-more { margin: 28px 0 0; }

.product { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; }
.product .icon { width: 96px; height: 96px; border-radius: 22px; background: var(--brand-50); display: grid; place-items: center; }
.product .icon img { width: 56px; height: 56px; }
.product h3 { font-size: 24px; }
.product p { margin: 6px 0 0; color: var(--ink-2); }

/* ---- ご利用にあたって ---- */
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.notes li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px 14px 44px; position: relative; color: var(--ink-2); font-size: 15px; }
.notes li::before { content: "i"; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; font-style: italic; font-family: Georgia, serif; }
.notes b { color: var(--ink); }
.same { margin: 28px 0 0; padding: 18px 24px; border-radius: var(--radius); background: var(--bg); border: 1px dashed #B8C6E6; font-size: 15px; color: var(--ink-2); text-align: center; }
.same b { color: var(--ink); margin-right: .3em; }

/* ---- お問い合わせのフォーム（/corebase/。送り先は corebase/contact.php） ---- */
.contact-form, .contact-done { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; max-width: 760px; margin: 0 auto; } /* 見出し・説明文はページの幅のまま、フォームだけ狭めて中央に置く */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { margin: 0 0 18px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.flabel { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; padding: 0; }
.req, .opt { font-size: 11px; font-weight: 700; border-radius: 4px; padding: 0 6px; line-height: 1.8; letter-spacing: .04em; }
.req { background: #FDECEC; color: #B42318; }
.opt { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
    width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #C9D0DB; border-radius: 10px; padding: 10px 12px; line-height: 1.6;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36, 87, 197, .18); }
.field textarea::placeholder { color: #98A2B3; }
.field.has-error input[type="text"], .field.has-error input[type="email"], .field.has-error input[type="tel"], .field.has-error textarea { border-color: #D92D20; }
.field-error { margin: 6px 0 0; font-size: 13px; color: #B42318; }
.field-error:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span { display: inline-block; border: 1px solid #C9D0DB; border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-2); background: #fff; line-height: 1.5; }
.choices input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.choices input:focus-visible + span { outline: 3px solid #F5B400; outline-offset: 2px; }
/* 同意の欄は、送信のボタンの真上に中央そろえで置く */
.field[data-field="consent"] { text-align: center; margin-bottom: 14px; }
.consent { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-2); cursor: pointer; text-align: left; }
.consent input { width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 6px; text-align: center; }
button.btn { border: 0; cursor: pointer; font-family: inherit; min-width: 220px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.form-status:empty { display: none; }
.form-status.is-error { color: #B42318; }
.contact-done { text-align: center; padding: 40px 28px; }
.contact-done:focus { outline: none; }
.contact-done h3 { font-size: 20px; }
.contact-done p { color: var(--ink-2); margin: 10px 0 0; }

@media (max-width: 820px) {
    .hero { padding: 40px 0 32px; }
    .hero h1 { font-size: 27px; }
    .hero .lead { font-size: 16px; }
    .points { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
    section { padding: 40px 0; }
    .wrap { padding: 0 16px; }
    .cards { grid-template-columns: 1fr; }
    .card { padding: 22px; }
    .demo-body { padding: 20px 22px 24px; }
    .demo-diagram .node { width: 100px; }
    .demo-diagram .flow { min-width: 60px; }
    .product { grid-template-columns: 1fr; gap: 14px; }
    .product .icon { width: 72px; height: 72px; border-radius: 18px; }
    .product .icon img { width: 42px; height: 42px; }
    .site-footer .wrap { grid-template-columns: 1fr; }
    .site-header .vendor { display: none; }
    .site-header .head-link { margin-left: auto; }
    .same { text-align: left; padding: 16px 18px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 22px; }
    button.btn { width: 100%; }
}
