/* ZQT Lab. 受託の窓口 */
:root {
  --ink: #1d2733;
  --ink-soft: #4a5866;
  --navy: #1e3a5c;
  --navy-deep: #132a45;
  --gold: #b9893f;
  --gold-soft: #f3e7d2;
  --bg: #faf8f4;
  --tint: #eef2f6;
  --line: #d9dfe6;
  --white: #ffffff;
  --ok: #2f7d5b;
  --err: #b3402f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 42, 69, .08);
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.45; margin: 0; word-break: auto-phrase; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.pc { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ===== ヘッダ ===== */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(19, 42, 69, .06); }
.head-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--serif); font-size: 18px; }
.logo-text { font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: .02em; }
.logo-text small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-soft); letter-spacing: 0; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; padding: 8px 20px 18px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; }
.site-nav.open { transform: none; opacity: 1; visibility: visible; }
.site-nav a { padding: 12px 4px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.site-nav a.nav-cta { margin-top: 12px; border: 0; background: var(--navy); color: #fff; text-align: center; border-radius: 999px; }

/* ===== ボタン ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px; border: 2px solid var(--navy); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s; font-family: inherit; }
.btn-main { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(30, 58, 92, .25); }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30, 58, 92, .3); background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ===== ヒーロー ===== */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; background:
  radial-gradient(600px 300px at 90% 10%, rgba(185, 137, 63, .12), transparent 70%),
  radial-gradient(520px 360px at 0% 45%, rgba(30, 58, 92, .07), transparent 70%); }
.hero-in { display: grid; gap: 40px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 500; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; }
.hero-title { font-family: var(--serif); font-size: 34px; letter-spacing: .02em; margin-bottom: 18px; }
.hl { position: relative; color: var(--navy); white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: var(--gold-soft); z-index: -1; transform-origin: left; transform: scaleX(0); transition: transform .9s .5s cubic-bezier(.2, .8, .2, 1); }
.hero-title.in .hl::after { transform: scaleX(1); }
.hero-lead { color: var(--ink-soft); font-size: 16px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-cta .btn { flex: 1 1 200px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-soft); }
.hero-points li { position: relative; padding-left: 22px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

.board { background: var(--white); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 18px 18px 14px; max-width: 460px; margin: 0 auto; }
.board-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 14px; }
.board-head b { margin-left: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.tasks { list-style: none; padding: 0; margin: 0; }
.tasks li { display: grid; grid-template-columns: 1fr 70px 64px; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--tint); font-size: 14px; }
.t-bar { height: 6px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.t-bar i { display: block; height: 100%; width: 0; background: var(--navy); border-radius: 3px; }
.t-state { font-size: 12px; text-align: center; border-radius: 999px; padding: 2px 0; background: var(--tint); color: var(--ink-soft); transition: background .3s, color .3s; }
.tasks li.t-run .t-bar i { width: 100%; transition: width .9s ease; }
.tasks li.t-done .t-bar i { width: 100%; background: var(--ok); }
.tasks li.t-done .t-state { background: #e3f1ea; color: var(--ok); font-weight: 700; }
.board-foot { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center; transition: color .3s; }
.board-foot.ok { color: var(--ok); font-weight: 700; }

/* ===== 各章 ===== */
.sec { padding: 64px 0; scroll-margin-top: 56px; }
.sec-tint { background: var(--tint); }
.sec-kicker { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .12em; margin-bottom: 6px; }
.sec-title { font-family: var(--serif); font-size: 24px; margin-bottom: 32px; }
.note { margin-top: 28px; color: var(--ink-soft); font-size: 15px; }

.trouble-grid { display: grid; gap: 16px; }
.trouble { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; transition: transform .25s, box-shadow .25s; }
.trouble:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trouble-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--navy); display: grid; place-items: center; margin-bottom: 12px; }
.trouble-icon svg { width: 26px; height: 26px; }
.trouble-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.trouble-q { font-size: 17px; margin-bottom: 10px; }
.trouble-a { margin: 0; color: var(--ink-soft); font-size: 15px; display: flex; gap: 8px; }
.arrow { color: var(--navy); font-weight: 700; flex: none; }

.service-list { display: grid; gap: 16px; }
.service { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 24px 20px; box-shadow: 0 2px 0 var(--line); }
.service-no { font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1; margin: 0; flex: none; }
.service h3 { font-size: 18px; margin-bottom: 8px; }
.service p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.lab-link { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--navy); color: #e8eef5; border-radius: var(--radius); padding: 24px 22px; }
.lab-link p { margin: 0; font-size: 15px; }
.lab-link-title { font-weight: 700; font-size: 18px !important; color: #fff; margin-bottom: 4px !important; }
.lab-link .btn-ghost { border-color: #fff; color: #fff; }
.lab-link .btn-ghost:hover { background: #fff; color: var(--navy); }
.lab-link-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== 無料で使えるツール ===== */
.sec-tools { background: linear-gradient(180deg, #fffaf1 0%, var(--bg) 100%); border-top: 1px solid var(--gold-soft); }
.tools-lead { color: var(--ink-soft); margin: -16px 0 28px; }
.tool-grid { display: grid; gap: 16px; }
.tool-item { display: flex; }
.tool-card { flex: 1; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.tool-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.tool-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.tool-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tool-card:hover .tool-thumb img { transform: scale(1.04); }
.tool-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.tool-tag { font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.tool-name { font-weight: 700; font-size: 17px; line-height: 1.5; margin-bottom: 6px; }
.tool-text { color: var(--ink-soft); font-size: 14px; line-height: 1.75; margin-bottom: 14px; }
.tool-go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--navy); border-bottom: 2px solid var(--gold-soft); padding-bottom: 1px; transition: border-color .25s; }
.tool-go-arrow { display: inline-block; transition: transform .25s; }
.tool-card:hover .tool-go { border-bottom-color: var(--gold); }
.tool-card:hover .tool-go-arrow { transform: translateX(4px); }
.tools-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.tools-cta p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.tools-cta .tools-cta-title { font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.tools-cta-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.tools-cta-list li { font-size: 14px; font-weight: 500; color: var(--navy); background: var(--tint); border-radius: 999px; padding: 3px 14px; }
.reveal.d3 { --d: 3; }
@media (min-width: 560px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 760px) {
  .tools-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 32px; }
  .tools-cta .btn { flex: none; }
}
@media (min-width: 980px) {
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
}

.flow { list-style: none; padding: 0; margin: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.flow li { position: relative; display: flex; gap: 18px; padding-bottom: 26px; }
.flow-no { position: relative; z-index: 1; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); color: var(--navy); display: grid; place-items: center; font-weight: 700; transition: background .4s, color .4s; }
.flow li.in .flow-no { background: var(--navy); color: #fff; }
.flow h3 { font-size: 18px; margin: 8px 0 6px; }
.flow p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.price-grid { display: grid; gap: 20px; }
.price-box { background: var(--white); border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.price-head { font-size: 17px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--gold); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table thead { display: none; }
.price-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--tint); }
.price-table th[scope="row"] { grid-column: 1 / -1; text-align: left; font-weight: 500; }
.price-table td { padding: 0; }
.price-table td.yen { font-weight: 700; color: var(--navy); font-size: 18px; }
.price-table td:last-child { color: var(--ink-soft); font-size: 13px; align-self: center; text-align: right; }
.price-table td:last-child::before { content: "日数の目安 "; }
.price-sub { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.price-notes { margin: 24px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--ink-soft); }
.price-notes li { margin-bottom: 4px; }

.about { display: grid; gap: 24px; align-items: center; }
.about-mark { width: 96px; height: 96px; border-radius: 24px; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 48px; box-shadow: var(--shadow); }
.about-text .sec-title { margin-bottom: 16px; }
.about-text p { color: var(--ink-soft); }

.faq-item { background: var(--white); border-radius: 12px; margin-bottom: 10px; border: 1px solid var(--line); overflow: hidden; }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px; cursor: pointer; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.q { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.faq-q { flex: 1; }
.faq-mark { flex: none; width: 14px; height: 14px; position: relative; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--navy); transition: transform .3s; }
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark::after { transform: rotate(0deg); }
.faq-a { padding: 0 16px 16px 56px; color: var(--ink-soft); }
.faq-a p { margin: 0; }
.faq-item[open] .faq-a { animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ===== 問い合わせ ===== */
.contact-lead { color: var(--ink-soft); }
.form { background: var(--white); border-radius: 18px; padding: 24px 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.req, .opt { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.req { background: var(--err); color: #fff; }
.opt { background: var(--tint); color: var(--ink-soft); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fcfcfd; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(30, 58, 92, .12); }
.field [aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: 14px; margin: 6px 0 0; }
.count { text-align: right; font-size: 12px; color: var(--ink-soft); margin: 4px 0 0; }
.form-error { background: #fbecea; color: var(--err); border-radius: 10px; padding: 12px 16px; font-weight: 500; }
.agree { font-size: 13px; color: var(--ink-soft); }
.btn-send { width: 100%; }
.btn-send.sending { opacity: .7; pointer-events: none; }
.trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }

.done { text-align: center; background: var(--white); border-radius: 18px; padding: 36px 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.done-check svg { width: 72px; height: 72px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s ease forwards; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .7s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-title { font-size: 22px; font-weight: 700; margin: 10px 0 6px; }
.done-id { font-size: 14px; color: var(--ink-soft); }
.done-sub { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ===== 特商法・プライバシー ===== */
.doc-title { font-family: var(--serif); font-size: 26px; margin-bottom: 24px; }
.doc-date { color: var(--ink-soft); font-size: 14px; margin-top: -14px; }
.facts { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.facts tr { display: block; border-top: 1px solid var(--line); padding: 14px 16px; }
.facts tr:first-child { border-top: 0; }
.facts th, .facts td { display: block; text-align: left; padding: 0; }
.facts th { font-size: 13px; color: var(--navy); margin-bottom: 4px; }
.facts td { font-size: 15px; }
.prose { background: var(--white); border-radius: var(--radius); padding: 22px 18px; border: 1px solid var(--line); }
.prose h2 { font-size: 17px; margin: 22px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc-back { margin-top: 24px; }

/* ===== フッタ ===== */
.site-foot { background: var(--navy-deep); color: #c9d4e0; padding: 44px 0 20px; font-size: 14px; }
.foot-in { display: grid; gap: 24px; }
.foot-logo { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 6px; }
.foot-brand p { margin-bottom: 4px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-links a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.foot-links a:hover { border-bottom-color: #fff; }
.copy { text-align: center; margin: 28px 0 0; font-size: 12px; color: #8ea0b4; }

/* ===== 出てくる動き ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { --d: 1; }
.reveal.d2 { --d: 2; }

/* ===== 広い画面 ===== */
@media (min-width: 760px) {
  .pc { display: inline; }
  .hero { padding: 80px 0 88px; }
  .hero-title { font-size: 46px; }
  .hero-lead { font-size: 17px; }
  .sec { padding: 88px 0; }
  .sec-title { font-size: 30px; margin-bottom: 40px; }
  .trouble-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .lab-link { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; }
  .lab-link .btn { flex: none; }
  .price-table thead { display: table-header-group; }
  .price-table thead th { font-size: 12px; color: var(--ink-soft); text-align: left; font-weight: 500; padding: 0 0 8px; }
  .price-table tr { display: table-row; }
  .price-table th[scope="row"], .price-table td { display: table-cell; padding: 12px 8px 12px 0; border-top: 1px solid var(--tint); vertical-align: middle; }
  .price-table td:last-child { text-align: left; white-space: nowrap; }
  .price-table td:last-child::before { content: none; }
  .price-table td.yen { white-space: nowrap; }
  .about { grid-template-columns: 120px 1fr; }
  .form { padding: 36px 40px; }
  .facts tr { display: table-row; padding: 0; }
  .facts th, .facts td { display: table-cell; padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
  .facts tr:first-child th, .facts tr:first-child td { border-top: 0; }
  .facts th { width: 200px; background: #f6f8fa; font-size: 14px; margin: 0; }
  .prose { padding: 32px 36px; }
  .foot-in { grid-template-columns: 1fr auto; }
}
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .site-nav { position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; background: none; border: 0; transform: none; opacity: 1; visibility: visible; }
  .site-nav a { border: 0; padding: 8px 12px; font-size: 15px; position: relative; }
  .site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
  .site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
  .site-nav a.nav-cta { margin: 0 0 0 10px; padding: 8px 20px; }
  .hero-in { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero-cta .btn { flex: 0 0 auto; }
  .trouble-grid { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}

/* ===== 持続化補助金の見積りの窓口（hojokin.php・hojokin_sample.php・トップの案内） ===== */
.sp { display: inline; }
.hojo-band { background: var(--navy); color: #e8eef5; }
.hojo-band-in { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.hojo-band p { margin: 0; font-size: 14px; }
.hojo-band b { color: #fff; font-size: 15px; display: block; }
.hojo-band .btn { min-height: 44px; padding: 0 20px; font-size: 15px; border-color: #fff; color: #fff; background: transparent; align-self: flex-start; }
.hojo-band .btn:hover { background: #fff; color: var(--navy); }
.hojo-band .hojo-band-date { color: var(--gold-soft); font-weight: 700; }

.hojo-hero { padding: 44px 0 52px; background:
  radial-gradient(520px 260px at 95% 0%, rgba(185, 137, 63, .14), transparent 70%),
  radial-gradient(480px 320px at 0% 60%, rgba(30, 58, 92, .07), transparent 70%); }
.hojo-title { font-family: var(--serif); font-size: 28px; letter-spacing: .02em; margin-bottom: 16px; }
.hojo-count { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 18px 18px 14px; margin: 0 0 24px; box-shadow: var(--shadow); }
.hojo-count p { margin: 0; }
.hojo-count-label { font-weight: 700; font-size: 15px; }
.hojo-count-num { font-size: 15px; color: var(--ink-soft); margin: 4px 0 6px !important; }
.hojo-count-num b { font-family: var(--serif); font-size: 44px; color: var(--navy); line-height: 1.1; margin: 0 6px; display: inline-block; }
.hojo-count.in .hojo-count-num b { animation: hojoPop .8s .3s cubic-bezier(.2, .9, .3, 1.3) both; }
.hojo-count-sub { font-size: 13px; color: var(--ink-soft); }
.hojo-count.is-over { border-left-color: var(--ink-soft); }
@keyframes hojoPop { from { opacity: 0; transform: translateY(10px) scale(.8); } to { opacity: 1; transform: none; } }

.hojo-days { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hojo-days li { display: flex; flex-direction: column; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; position: relative; }
.hojo-date { font-weight: 700; color: var(--navy); font-size: 17px; }
.hojo-what { color: var(--ink-soft); font-size: 15px; }
.hojo-days li.is-key { border: 2px solid var(--gold); background: #fffaf1; }
.hojo-days li.is-key .hojo-date::after { content: "早めに"; display: inline-block; margin-left: 8px; font-size: 11px; vertical-align: 2px; background: var(--gold); color: #fff; border-radius: 4px; padding: 1px 6px; }
.hojo-days li.is-past { opacity: .55; }
.hojo-days li.is-past .hojo-date::after { content: "終了"; display: inline-block; margin-left: 8px; font-size: 11px; vertical-align: 2px; background: var(--ink-soft); color: #fff; border-radius: 4px; padding: 1px 6px; }

.hojo-rules { display: grid; gap: 14px; }
.hojo-rule { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px; }
.hojo-rule h3 { font-size: 17px; margin-bottom: 8px; padding-left: 12px; border-left: 4px solid var(--navy); }
.hojo-rule p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.hojo-rule.is-strong { border: 2px solid var(--navy); }
.hojo-rule.is-strong h3 { border-left-color: var(--gold); }

.hojo-sample-card { display: flex; align-items: center; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.hojo-sample-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hojo-sample-paper { position: relative; flex: none; width: 72px; height: 96px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 4px 10px rgba(19, 42, 69, .1); padding: 12px 9px; display: flex; flex-direction: column; gap: 7px; transition: transform .3s; }
.hojo-sample-card:hover .hojo-sample-paper { transform: rotate(-4deg); }
.hojo-sample-paper i { display: block; height: 4px; background: var(--tint); border-radius: 2px; }
.hojo-sample-paper i:first-child { width: 60%; background: var(--navy); }
.hojo-sample-paper b { position: absolute; right: -8px; bottom: 10px; transform: rotate(-12deg); font-size: 12px; color: var(--err); border: 2px solid var(--err); border-radius: 4px; padding: 0 4px; background: #fff; }
.hojo-sample-text { font-size: 14px; color: var(--ink-soft); }
.hojo-sample-text b { display: block; font-size: 17px; color: var(--navy); margin-bottom: 2px; }

/* フォームの追加の部品 */
.hint { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; }
.field-row { display: grid; gap: 0 16px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
fieldset.field legend { font-weight: 700; margin-bottom: 8px; font-size: 15px; padding: 0; }
.choice-list { display: grid; gap: 8px; }
.field .choice-item { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; background: #fcfcfd; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.field .choice-item:has(input:checked) { border-color: var(--navy); background: #f1f5f9; }
.field .choice-item input, .field .check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--navy); padding: 0; }
.confirm-box { background: var(--gold-soft); border-radius: 12px; padding: 16px 16px 14px; }
.confirm-title { font-weight: 700; margin: 0 0 4px; }
.confirm-box ul { margin: 0 0 10px; padding-left: 1.2em; font-size: 14px; }
.field .check { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }

/* 見積書の見本 */
.sample-bar { display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.sample-bar p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.sample-bar-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sample-bar-btns .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.sheet { position: relative; overflow: hidden; background: #fff; color: #1a1a1a; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 26px 18px; font-size: 14px; line-height: 1.7; }
.sheet p { margin: 0; }
.sheet-stamp { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-family: var(--serif); font-size: 120px; font-weight: 700; color: rgba(179, 64, 47, .1); letter-spacing: .2em; pointer-events: none; white-space: nowrap; z-index: 0; }
.sheet > *:not(.sheet-stamp) { position: relative; z-index: 1; }
.sheet-head { display: flex; flex-direction: column; gap: 10px; border-bottom: 2px solid #1a1a1a; padding-bottom: 12px; margin-bottom: 16px; }
.sheet-title { font-family: var(--serif); font-size: 24px; letter-spacing: .4em; }
.sheet-meta { margin: 0; font-size: 13px; }
.sheet-meta div, .sheet-terms div { display: flex; gap: 10px; }
.sheet-meta dt, .sheet-terms dt { color: #555; flex: none; min-width: 5em; }
.sheet-meta dd, .sheet-terms dd { margin: 0; }
.sheet-parties { display: grid; gap: 14px; margin-bottom: 16px; }
.sheet .sheet-to-name { font-size: 18px; font-weight: 700; border-bottom: 1px solid #1a1a1a; padding-bottom: 2px; margin-bottom: 4px; display: inline-block; }
.sheet-note { font-size: 12px; color: #777; }
.sheet-from { font-size: 13px; }
.sheet-from-name { font-weight: 700; font-size: 15px; }
.sheet-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; border: 2px solid #1a1a1a; padding: 10px 14px; margin-bottom: 16px; }
.sheet-total b { font-size: 24px; }
.sheet-terms { margin: 0 0 16px; display: grid; gap: 4px; }
.sheet-table-wrap { margin-bottom: 18px; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sheet-table th, .sheet-table td { border: 1px solid #bbb; padding: 7px 8px; text-align: left; vertical-align: top; }
.sheet-table thead th { background: #eef2f6; font-weight: 700; font-size: 12px; }
.sheet-table .c-no, .sheet-table .c-qty { text-align: center; white-space: nowrap; }
.sheet-table .c-yen { text-align: right; white-space: nowrap; }
.sheet-table .c-kind { white-space: nowrap; font-size: 12px; }
.sheet-table tfoot th { text-align: right; font-weight: 500; }
.sheet-table tr.is-sum th, .sheet-table tr.is-sum td { font-weight: 700; background: #f6f8fa; }
.sheet h2 { font-size: 15px; margin: 0 0 6px; border-left: 4px solid #1a1a1a; padding-left: 8px; }
.sheet-desc, .sheet-remarks { margin-bottom: 16px; }
.sheet-desc ol { margin: 0; padding-left: 1.4em; }
.sheet-desc li { margin-bottom: 4px; }
.sheet-desc li b { display: block; font-weight: 700; }
.sheet-remarks ul { margin: 0; padding-left: 1.2em; }
.sheet .sheet-foot { font-size: 12px; color: #777; text-align: center; border-top: 1px dashed #bbb; padding-top: 10px; }

/* スマホ幅では見積書の表を、行ごとの箱にする */
@media (max-width: 559px) {
  .sheet-table thead { display: none; }
  .sheet-table, .sheet-table tbody, .sheet-table tfoot { display: block; }
  .sheet-table tbody tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; border: 1px solid #bbb; border-bottom: 0; padding: 8px 10px; }
  .sheet-table tbody td { border: 0; padding: 0; }
  .sheet-table tbody .c-no { grid-column: 1; grid-row: 1 / 4; }
  .sheet-table tbody .c-kind { grid-column: 2; grid-row: 1; color: #555; }
  .sheet-table tbody .c-qty { grid-column: 3; grid-row: 1; text-align: right; color: #555; }
  .sheet-table tbody .c-name { grid-column: 2 / 4; grid-row: 2; }
  .sheet-table tbody .c-yen { grid-column: 2 / 4; grid-row: 3; font-weight: 700; }
  .sheet-table tfoot tr { display: flex; justify-content: space-between; border: 1px solid #bbb; border-bottom: 0; }
  .sheet-table tfoot tr:last-child { border-bottom: 1px solid #bbb; }
  .sheet-table tfoot th, .sheet-table tfoot td { border: 0; }
  .sheet-stamp { font-size: 84px; }
}

@media (min-width: 760px) {
  .sp { display: none; }
  .hojo-band-in { flex-direction: row; align-items: center; justify-content: space-between; }
  .hojo-band .btn { align-self: auto; flex: none; }
  .hojo-hero { padding: 72px 0 80px; }
  .hojo-title { font-size: 38px; }
  .hojo-days { grid-template-columns: repeat(3, 1fr); }
  .hojo-rules { grid-template-columns: repeat(2, 1fr); }
  .hojo-rule:last-child { grid-column: 1 / -1; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .choice-list { grid-template-columns: repeat(3, auto); justify-content: start; }
  .sample-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .sample-bar-btns { flex: none; }
  .sheet { padding: 44px 48px; }
  .sheet-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .sheet-parties { grid-template-columns: 1fr auto; align-items: end; }
}

/* 印刷: 見積書だけを A4 に出す */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; font-size: 12px; }
  .site-head, .site-foot, .skip, .no-print { display: none !important; }
  .sec { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .sheet { border: 0; box-shadow: none; border-radius: 0; padding: 0; font-size: 11.5px; line-height: 1.55; }
  .sheet-head, .sheet-parties, .sheet-total, .sheet-terms, .sheet-table-wrap, .sheet-desc, .sheet-remarks { margin-bottom: 12px; }
  .sheet-desc li { margin-bottom: 2px; }
  .sheet-table { font-size: 11.5px; }
  .sheet-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .sheet-parties { grid-template-columns: 1fr auto; align-items: end; }
  .sheet-table thead { display: table-header-group; }
  .sheet-table { display: table; }
  .sheet-table tbody { display: table-row-group; }
  .sheet-table tfoot { display: table-footer-group; }
  .sheet-table tbody tr, .sheet-table tfoot tr { display: table-row; border: 0; padding: 0; }
  .sheet-table th, .sheet-table td { display: table-cell; border: 1px solid #bbb; padding: 4px 8px; }
  .sheet, .sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-table tr { break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* ===== トップから、かんたん見積り（mitsumori.php）への導線 ===== */
.hero-quick { margin: -6px 0 20px; }
.hero-quick a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--gold-soft); color: var(--navy); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 4px 14px rgba(185, 137, 63, .12); transition: border-color .25s, box-shadow .25s, transform .25s; }
.hero-quick a:hover { border-color: var(--gold); box-shadow: 0 8px 20px rgba(185, 137, 63, .2); transform: translateY(-2px); }
.hero-quick-tag { flex: none; font-size: 12px; color: #fff; background: var(--gold); border-radius: 999px; padding: 2px 10px; }
.hero-quick-arrow { display: inline-block; transition: transform .25s; }
.hero-quick a:hover .hero-quick-arrow { transform: translateX(4px); }
.draft-note { color: var(--ok); font-weight: 500; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
