/*
Theme Name: Ohtsuka Technics
Author: 株式会社トビラ
Description: 大塚テクニクス株式会社のホームページ用テーマ（刷版ページの先行版）
Version: 0.2.0
Requires PHP: 8.0
Text Domain: ohtsuka-technics
*/

/* 2026-10-29 v0.2：紙の地・罫線・明朝の見出しに作り直し（島田さん「デザインがAIすぎる」→可士和さんの方向・案C） */
:root {
  --paper: #F5F2EA;    /* 紙の地 */
  --paper-2: #EEE9DD;  /* 少し濃い紙（入力欄の囲みなど） */
  --ink: #1C1F22;
  --sub: #55595C;
  --rule: #1C1F22;     /* 太い罫線（区切り） */
  --rule-2: #CFC9BC;   /* 細い罫線 */
  --navy: #04203A;     /* ロゴの紺 */
  --act: #C2410C;      /* 押す物だけに使う */
  --act-dark: #9A3412;
  --wrap: 1120px;
  --mincho: "BIZ UDPMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 700; line-height: 1.5; word-break: auto-phrase; }
.nw { display: inline-block; }   /* 見出しを句で折り返す */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* 確認用の帯 */
.review-bar { background: #EFE7CF; color: #4A3B10; font-size: 13px; text-align: center; padding: 6px 12px; line-height: 1.6; }

/* ヘッダー */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.site-logo img { display: block; width: 190px; }
.gnav { margin-left: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.gnav a { color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: .04em; white-space: nowrap; padding: 4px 0; }
.gnav a:hover, .gnav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
.header-tel { font-size: 13px; color: var(--sub); line-height: 1.3; white-space: nowrap; }
.header-tel a { display: block; font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .03em; }

/* ボタン（押す物だけ強い色） */
.btn { white-space: nowrap; display: inline-block; background: var(--act); color: #fff; font-family: var(--gothic); font-weight: 700; font-size: 17px; text-decoration: none; padding: 16px 36px; border-radius: 2px; border: 0; line-height: 1.4; letter-spacing: .06em; cursor: pointer; }
.btn:hover { background: var(--act-dark); }
.btn-sm { font-size: 14px; padding: 10px 18px; }
.btn-note { display: block; margin-top: 12px; font-size: 13.5px; color: var(--sub); }

/* かたまり（番号と罫線で区切る。色の帯は交互にしない） */
main { counter-reset: sec; }
.sec { padding: 72px 0; border-top: 1px solid var(--rule); }
.hero + .sec, .ledger + .sec { border-top: 0; }
.sec h2 { font-size: 30px; margin: 0 0 24px; color: var(--ink); }
.sec h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; font-family: var(--mincho); font-size: 15px; line-height: 1.4; color: var(--sub); letter-spacing: .08em; margin-bottom: 6px; }
.sec .lead { font-size: 16.5px; max-width: 760px; }
.sec h3 { font-size: 20px; margin: 0 0 8px; }
.src { font-size: 12.5px; color: var(--sub); line-height: 1.7; margin-top: 14px; }

/* 最初の画面（下のページ） */
.hero { border-bottom: 1px solid var(--rule); }
.hero.sub { padding: 56px 0 52px; }
.hero.sub .wrap > div { max-width: 820px; }
.hero.sub h1 { font-size: 38px; margin: 0 0 18px; }
.hero.sub p { margin: 0 0 26px; font-size: 16.5px; }

/* 最初の画面（トップ）：左に見出しと文、右に版の写真 */
.hero-top .wrap { display: grid; grid-template-columns: 5fr 7fr; max-width: none; margin: 0; padding-right: 0; padding-left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); }
.hero-text { padding: 56px 48px 56px 0; border-right: 1px solid var(--rule); }
.kicker { display: flex; align-items: baseline; gap: 14px; margin: 0 0 28px; font-size: 13px; letter-spacing: .08em; color: var(--sub); }
.kicker b { font-family: var(--mincho); font-weight: 700; color: var(--ink); font-size: 15px; }
.kicker::after { content: ""; flex: 1; border-top: 1px solid var(--rule-2); transform: translateY(-4px); }
.h1box { container-type: inline-size; margin: 0 0 28px; }
.h1box h1 { margin: 0; line-height: 1.3; font-size: 40px; }
.h1box .ln { display: block; white-space: nowrap; }
.h1box .ln + .ln { margin-top: .25em; }
.hero-top .lead { margin: 0 0 32px; font-size: 15.5px; color: #2E3236; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; min-height: 520px; }
.hero-photo figcaption { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 8px; line-height: 1.6; }
@media (min-width: 961px) { .hero-after { display: contents; } }

/* 扱っている版の帳（トップ） */
.ledger { border-bottom: 1px solid var(--rule); }
.ledger > .wrap:first-child { display: grid; grid-template-columns: 160px 1fr 1fr; }
.ledger .head { padding: 22px 0; font-family: var(--mincho); font-weight: 700; font-size: 15px; letter-spacing: .08em; border-right: 1px solid var(--rule-2); }
.ledger .head small { display: block; font-family: var(--gothic); font-weight: 400; font-size: 12px; color: var(--sub); letter-spacing: .02em; margin-top: 4px; }
.ledger .item { padding: 22px 28px; border-right: 1px solid var(--rule-2); }
.ledger .item:last-child { border-right: 0; }
.ledger .kind { font-size: 12px; color: var(--sub); letter-spacing: .08em; }
.ledger .name { font-family: var(--mincho); font-weight: 700; font-size: 22px; margin: 2px 0 6px; }
.ledger .name span { font-family: var(--gothic); font-weight: 400; font-size: 13px; color: var(--sub); margin-left: 8px; }
.ledger dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0; font-size: 14px; }
.ledger dt { color: var(--sub); }
.ledger dd { margin: 0; font-variant-numeric: tabular-nums; }
.ledger dd b { font-family: var(--mincho); font-size: 18px; }
.ledger .src { border-top: 1px solid var(--rule-2); margin: 0; padding-top: 10px; padding-bottom: 12px; }

/* 仮の枠（届いたら埋める所） */
.tbd { border: 1px dashed #8E8878; background: transparent; color: var(--sub); padding: 14px 16px; font-size: 13.5px; line-height: 1.7; }
.tbd::before { content: "仮の枠"; display: inline-block; border: 1px solid var(--sub); color: var(--sub); font-size: 11.5px; padding: 0 6px; margin-right: 8px; vertical-align: 1px; line-height: 1.6; }
.photo-tbd { min-height: 240px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; }
td .tbd-inline, .tbd-inline { color: var(--sub); font-size: 13px; border-bottom: 1px dashed #8E8878; }

/* 並べる物（箱にせず、上の罫線で区切る） */
.grid { display: grid; gap: 0 40px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { border-top: 1px solid var(--rule); padding: 20px 0 28px; min-width: 0; overflow-wrap: anywhere; }
.card p { margin: 0 0 8px; }
.card .more { font-weight: 700; }
.more { font-weight: 700; }
.more::after { content: " →"; }
.worry { padding: 0; margin: 0 0 20px; }
.worry li { list-style: none; border-top: 1px solid var(--rule-2); padding: 16px 0 16px 1.6em; font-family: var(--mincho); font-weight: 700; font-size: 18px; position: relative; }
.worry li::before { content: "―"; position: absolute; left: 0; color: var(--sub); font-weight: 400; }
.tag { display: inline-block; font-size: 12px; color: var(--sub); letter-spacing: .08em; margin-bottom: 4px; }

/* 表（帳面のような罫線） */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { border-bottom: 1px solid var(--rule-2); padding: 12px 14px 12px 0; text-align: left; vertical-align: top; }
.tbl th { width: 28%; font-weight: 700; color: var(--sub); font-size: 14px; }
.tbl thead th { color: var(--ink); font-family: var(--mincho); font-size: 15px; border-bottom: 1px solid var(--rule); width: auto; }
.tbl-scroll { overflow-x: auto; }

/* 流れ */
.flow { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(4, 1fr); }
.flow li { border-top: 1px solid var(--rule); padding: 18px 0 20px; }
.flow li::before { counter-increment: step; content: counter(step); display: block; font-family: var(--mincho); font-size: 26px; line-height: 1.2; color: var(--sub); margin-bottom: 8px; }
.flow b { display: block; font-family: var(--mincho); font-size: 17px; margin-bottom: 4px; }

/* 代表 */
.person { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.person ul { padding-left: 1.2em; margin: 8px 0; }

/* よくある質問 */
.faq { border-top: 1px solid var(--rule); margin: 0; }
.faq dt { font-family: var(--mincho); font-weight: 700; font-size: 17px; padding-top: 18px; }
.faq dt::before { content: "問　"; color: var(--sub); }
.faq dd { margin: 6px 0 0; padding: 0 0 18px 2em; border-bottom: 1px solid var(--rule-2); }

/* 計算 */
.calc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--mincho); font-weight: 700; font-size: 19px; margin: 12px 0; }
.calc span.box { border-bottom: 1px solid var(--rule); padding: 6px 4px; }

/* 終わりの誘い */
.cta { border-top: 1px solid var(--rule); text-align: center; padding: 72px 0; }
.cta h2 { font-size: 30px; margin: 0 0 12px; }
.cta p { margin: 0 0 24px; }
.cta .tel { margin-top: 18px; font-size: 14px; color: var(--sub); }
.cta .tel a { color: var(--ink); font-size: 21px; font-weight: 700; text-decoration: none; }

/* フォーム（見本） */
.form-wrap { max-width: 760px; }
.f-row { margin-bottom: 22px; }
.f-row label, .f-row .f-label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { display: inline-block; border: 1px solid var(--sub); color: var(--sub); font-size: 11px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; line-height: 1.6; font-weight: 400; }
.f-row input[type=text], .f-row input[type=email], .f-row input[type=tel], .f-row select, .f-row textarea { width: 100%; font-size: 16px; padding: 12px; border: 1px solid #A9A395; border-radius: 2px; background: #FFFDF8; font-family: inherit; }
.f-row textarea { min-height: 140px; }
.f-hint { font-size: 13px; color: var(--sub); margin-top: 4px; }
.f-radio label { display: block; font-weight: 400; margin: 4px 0; }
fieldset.f-plate { border: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0 4px; margin: 0 0 24px; }
fieldset.f-plate legend { font-family: var(--mincho); font-weight: 700; padding: 0 10px 0 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* フッター（ロゴの紺） */
.site-footer { background: var(--navy); color: #C9D3DC; font-size: 14px; padding: 48px 0 100px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.site-footer a { color: #fff; }
.site-footer .f-logo { background: #fff; display: inline-block; padding: 10px 14px; margin-bottom: 14px; }
.site-footer .f-logo img { width: 190px; display: block; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.copy { grid-column: 1 / -1; font-size: 12px; opacity: .7; }

/* スマホの固定の帯 */
.sp-bar { display: none; }

@media (max-width: 1180px) { .header-tel { display: none; } .gnav ul { gap: 20px; } }
@media (max-width: 960px) {
  .gnav, .header-tel { display: none; }
  .site-header .btn-sm { display: none; }
  .site-header .wrap { min-height: 60px; }
  .site-logo img { width: 160px; }
  .person { grid-template-columns: 1fr; gap: 28px; }
  .g3, .g4, .flow { grid-template-columns: 1fr 1fr; }
  .sp-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--rule); padding: 8px 10px; gap: 8px; }
  .sp-bar .btn { flex: 1; text-align: center; padding: 13px 8px; font-size: 16px; }
  .sp-bar .sp-tel { flex: 0 0 auto; display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; }
  .sp-nav { display: flex; overflow-x: auto; gap: 20px; padding: 8px 16px; border-top: 1px solid var(--rule-2); font-size: 13.5px; white-space: nowrap; }
  .sp-nav a { color: var(--ink); text-decoration: none; }
  .sp-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

  /* トップの最初の画面：見出し→写真→文→ボタン */
  .hero-top .wrap { display: flex; flex-direction: column; padding: 0; }
  .hero-text { display: contents; }
  .kicker { order: 1; margin: 0; padding: 26px 16px 16px; font-size: 12px; }
  .h1box { order: 2; margin: 0; padding: 0 16px 20px; }
  .h1box h1 { font-size: 29px; }
  .hero-photo { order: 3; }
  .hero-photo img { min-height: 0; aspect-ratio: 3 / 2; height: auto; }
  .hero-after { order: 4; padding: 20px 16px 28px; }
  .ledger > .wrap:first-child { display: block; }
  .ledger .head { border-right: 0; border-bottom: 1px solid var(--rule-2); padding: 16px 0 12px; }
  .ledger .item { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--rule-2); }
  .ledger .item:last-child { border-bottom: 0; }
}
@media (min-width: 961px) { .sp-nav { display: none; } }
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .sec { padding: 52px 0; }
  .sec h2 { font-size: 24px; }
  .sec h2::before { font-size: 13px; }
  .hero.sub { padding: 40px 0 36px; }
  .hero.sub h1 { font-size: 28px; }
  .g2, .g3, .g4, .flow { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .tbl th { width: 36%; }
  .cta h2 { font-size: 23px; }
  .worry li { font-size: 16.5px; }
}

/* パスワードの入力画面 */
.pw-gate { padding: 72px 0 96px; }
.pw-gate .wrap { max-width: 520px; }
.pw-gate h1 { font-size: 26px; margin: 0 0 12px; }
.pw-gate p { margin: 0 0 24px; line-height: 1.8; }
.pw-gate label { display: block; font-weight: 700; margin-bottom: 6px; }
.pw-gate input[type=password] { display: block; width: 100%; box-sizing: border-box; font-size: 17px; padding: 12px; border: 1px solid #A9A395; border-radius: 2px; background: #FFFDF8; margin-bottom: 16px; }
