/* ハーバートーク 公式サイト 共通スタイル（スマホ優先・素直な CSS） */
:root {
  --c-main: #0b5e7a;
  --c-main-dark: #084659;
  --c-accent: #f08c2e;
  --c-text: #222;
  --c-sub: #5b6670;
  --c-bg: #f5f8fa;
  --c-line: #dde4ea;
  --c-error: #c0392b;
  --radius: 10px;
  --wrap: 1080px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--c-text);
  line-height: 1.75;
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--c-main); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* ヘッダ（全体・製品とも1部品。中身は Worker が差し込む） */
.site-header { background: #fff; border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 5; }
.site-header .hd { display: flex; align-items: center; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--c-main); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo img { width: 28px; height: 28px; }
.logo-name { line-height: 1.25; }
.logo-name small { display: block; font-size: .7rem; font-weight: 400; color: var(--c-sub); }
.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.nav a { text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: .92rem; color: var(--c-text); white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--c-bg); color: var(--c-main); }
.hd-actions { display: flex; gap: 8px; align-items: center; }
.btn-join, .btn-login { display: inline-block; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.btn-join { background: var(--c-accent); color: #fff; }
.btn-join:hover { background: #d97a20; }
.btn-join.is-closed { background: #e3e8ec; color: var(--c-sub); }
.btn-login { border: 1px solid var(--c-line); color: var(--c-text); background: #fff; }
.btn-login:hover { border-color: var(--c-text); }
@media (max-width: 720px) {
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; }
  .hd-actions { margin-left: auto; }
}

/* ボタン */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; line-height: 1.4;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: #d97a20; }
.btn-outline { background: #fff; color: var(--c-main); border: 2px solid var(--c-main); }
.btn-outline:hover { background: var(--c-bg); }
.btn:disabled { opacity: .6; cursor: default; }

/* ヒーロー */
.hero { background: linear-gradient(135deg, var(--c-main), var(--c-main-dark)); color: #fff; padding: 64px 0 56px; }
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); line-height: 1.35; margin: 0 0 16px; }
.hero p { margin: 0 0 24px; font-size: 1.05rem; opacity: .95; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .12); }

/* セクション */
.section { padding: 56px 0; }
.section.alt { background: var(--c-bg); }
.section h2 { font-size: clamp(1.35rem, 3.5vw, 1.8rem); margin: 0 0 8px; }
.section .lead { color: var(--c-sub); margin: 0 0 28px; }
.page-head { background: var(--c-bg); padding: 40px 0 28px; border-bottom: 1px solid var(--c-line); }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2rem); }
.page-head p { margin: 0; color: var(--c-sub); }
.breadcrumb { font-size: .85rem; color: var(--c-sub); margin-bottom: 8px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }
.breadcrumb a { color: var(--c-sub); }
.hero .breadcrumb, .hero .breadcrumb a { color: rgba(255,255,255,.8); }

/* カード */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--c-main); }
.card .tag { display: inline-block; font-size: .8rem; background: var(--c-bg); color: var(--c-sub); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; }
.card p { margin: 0 0 16px; flex: 1; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card .btn { padding: 10px 18px; font-size: .95rem; }

.features { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0; list-style: none; margin: 0; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { background: #fff; border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--c-accent); }
.features strong { display: block; margin-bottom: 4px; }

.cta { text-align: center; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* フォーム */
.form { max-width: 680px; }
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: #fff; background: var(--c-error); font-size: .72rem; padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.opt { color: var(--c-sub); font-size: .8rem; margin-left: 6px; font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 12px; font-size: 16px; border: 1px solid #c4ced6; border-radius: 8px; background: #fff; font-family: inherit;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-main); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 6px; width: 18px; height: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.form-message.is-error { background: #fdecea; color: var(--c-error); border: 1px solid #f5c6c0; }
.form-message.is-info { background: #e8f4f8; color: var(--c-main-dark); }
.note { font-size: .88rem; color: var(--c-sub); }

/* フッタ */
.site-footer { background: #1d2a33; color: #c9d3da; padding: 36px 0 24px; font-size: .9rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 0; list-style: none; }
.site-footer small { display: block; color: #8fa0ab; }

/* 準備中（本番で受付前の製品の申込み導線） */
.btn-disabled { background: #e3e8ec; color: var(--c-sub); cursor: default; }
/* トップのお問い合わせ区画 */
.contact-block { background: #fff; border-top: 1px solid var(--c-line); text-align: center; }
.contact-block .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 製品ページ */
.wrap.narrow { max-width: 820px; }
.section[id] { scroll-margin-top: 120px; }
.hero--product { padding: 28px 0 56px; }
.hero--product h1 { margin-top: 16px; }
.hero-catch { display: block; font-size: .55em; font-weight: 400; margin-top: 8px; opacity: .95; }
.product--soudan .hero { background: linear-gradient(135deg, #7a3e8c, #4f2760); }
.product--trade .hero { background: linear-gradient(135deg, #1f6b3a, #134a27); }
.card-title { margin: 0 0 8px; font-size: 1.2rem; }
.card-title a { color: var(--c-main); text-decoration: none; }
table.price, table.kv { width: 100%; border-collapse: collapse; margin: 0 0 16px; background: #fff; }
table.price th, table.price td, table.kv th, table.kv td { border: 1px solid var(--c-line); padding: 12px; text-align: left; vertical-align: top; }
table.price thead th, table.kv th { background: var(--c-bg); white-space: nowrap; }
.price-val { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.notes { padding-left: 1.2em; color: var(--c-sub); font-size: .92rem; }
.flow { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; }
.flow li { counter-increment: step; position: relative; padding: 14px 14px 14px 56px; background: #fff; border-radius: var(--radius); margin-bottom: 12px; }
.flow li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--c-main); color: #fff; text-align: center; line-height: 30px; font-weight: 700; }
.flow strong { display: block; }
details { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; background: #fff; }
details summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; }
.section .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* 法務ページ */
.legal h2 { font-size: 1.1rem; margin: 28px 0 6px; }

/* フッタ（列） */
.ft-cols { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 16px; }
.ft-title { color: #8fa0ab; font-size: .8rem; margin: 0 0 8px; }
.site-footer .links { flex-direction: column; gap: 6px; }
.mt-24 { margin-top: 24px; }
