@charset "UTF-8";

/* ==================================================================
   見積請求メーカー 製品サイト
   ・50〜60代の方が読む前提。文字は大きめ、行間は広め、色数は少なめ。
   ・スマホ（幅 390px）で読めることを最優先にしています。
   ・外部の CSS フレームワークは使っていません。
   ================================================================== */

:root {
  --navy:        #14263f;   /* ソフトのアイコンと同じ紺 */
  --navy-dark:   #0e1b2d;
  --gold:        #b8860b;   /* アイコンの金色 */
  --gold-dark:   #8a6508;
  --ink:         #1b1b1b;   /* 本文 */
  --ink-soft:    #4d4d4d;   /* 補足 */
  --bg:          #ffffff;
  --bg-soft:     #f5f4f0;   /* うすいベージュ */
  --line:        #dcd8d0;
  --line-strong: #b9b3a8;
  --warn-bg:     #fff7e6;
  --warn-line:   #c98a00;
  --ok-bg:       #eef4ee;
  --ok-line:     #3f7048;
  --radius:      10px;
  --wrap:        52rem;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;       /* 端末が暗い設定でも、紙と同じ見た目にそろえます */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
               "Meiryo", "Yu Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: left;
}

@media (min-width: 700px) {
  body { font-size: 19px; }
}

img { max-width: 100%; height: auto; }

a { color: #0b4a8f; }
a:hover { color: #073563; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px; top: 8px;
  z-index: 100;
  background: #fff;
  padding: 12px 16px;
  border: 3px solid var(--navy);
}

:focus-visible {
  outline: 3px solid #0b4a8f;
  outline-offset: 2px;
}

/* ---------------- ヘッダー ---------------- */

.site-header .wrap { max-width: 64rem; }

.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  border-radius: 9px;
  flex: none;
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.4;
}

.brand-sub {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #c8d2e0;
}

.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 9px 13px;
  border: 1px solid #47597a;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.3;
  background: #1b3050;
}

.nav a:hover { background: #27436e; color: #fff; }

.nav a[aria-current="page"] {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  font-weight: 700;
}

@media (min-width: 760px) {
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .nav { margin-top: 0; }
  .brand-sub { font-size: 0.82rem; }
}

/* ---------------- 主役の見出し（トップ） ---------------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding-block: 40px 44px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: 1.75rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

@media (min-width: 700px) {
  .hero { padding-block: 60px 64px; }
  .hero h1 { font-size: 2.3rem; }
}

.hero .lead {
  margin: 0 0 8px;
  color: #e6ebf2;
  font-size: 1.05rem;
}

.hero-facts {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-facts li {
  position: relative;
  padding-left: 30px;
  color: #f2f5f9;
}

.hero-facts li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.72em;
  width: 14px; height: 7px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------------- セクション ---------------- */

.section { padding-block: 40px; }
.section.alt { background: var(--bg-soft); }
.section.tight { padding-block: 28px; }

@media (min-width: 700px) {
  .section { padding-block: 56px; }
}

h1 {
  font-size: 1.6rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

@media (min-width: 700px) {
  h1 { font-size: 2rem; }
}

h1, h2, h3, .warn-title, .card h3 {
  word-break: auto-phrase;   /* 日本語の改行位置を、意味の切れ目に寄せる（対応ブラウザのみ） */
}

h2 {
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 0 0 20px;
  padding-left: 14px;
  border-left: 6px solid var(--gold);
}

@media (min-width: 700px) {
  h2 { font-size: 1.65rem; }
}

h3 {
  font-size: 1.13rem;
  line-height: 1.7;
  margin: 34px 0 10px;
}

.steps + h3 { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }

p { margin: 0 0 1.1em; }

.lead-text {
  font-size: 1.05rem;
}

.note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.8;
}

.center { text-align: center; }

/* ---------------- カード ---------------- */

.cards {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .cards.two   { grid-template-columns: repeat(2, 1fr); }
  .cards.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
}

.section.alt .card { border-color: var(--line-strong); }

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--navy);
}

.card p:last-child { margin-bottom: 0; }

.card-num {
  display: inline-block;
  min-width: 2.1em;
  margin-bottom: 6px;
  padding: 2px 10px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

/* ---------------- ボタン ---------------- */

.btn {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.btn:hover { background: #eef1f6; color: var(--navy); }

.btn + .btn { margin-top: 12px; }

.btn-primary {
  background: var(--gold);
  border-color: var(--gold-dark);
  color: #1a1200;
}
.btn-primary:hover { background: var(--gold-dark); color: #fff; }

.btn-navy {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

/* 紺色の背景の上に置くボタン */
.hero .btn-navy {
  background: transparent;
  border-color: #93a5bf;
  color: #fff;
}
.hero .btn-navy:hover { background: #24395a; color: #fff; }

.btn small {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.85;
}

.btn-row { margin-top: 24px; }

@media (min-width: 700px) {
  .btn { max-width: 30rem; margin-inline: auto; }
  .btn-row.side-by-side {
    display: flex;
    gap: 16px;
    justify-content: center;
  }
  .btn-row.side-by-side .btn { margin: 0; flex: 1 1 0; max-width: 22rem; }
}

/* 準備中（URL がまだ決まっていないとき） */
.pending {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 18px 20px;
  color: var(--ink-soft);
  text-align: center;
}
.pending strong { color: var(--ink); }
.pending p:last-child { margin-bottom: 0; }

/* ---------------- 注意書き（警告の案内） ---------------- */

.warn {
  border: 3px solid var(--warn-line);
  border-radius: var(--radius);
  background: var(--warn-bg);
  padding: 20px;
  margin: 0 0 24px;
}

.warn > :last-child { margin-bottom: 0; }

.warn-title {
  margin: 0 0 12px;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.6;
  color: #6b4a00;
}

.warn-title::before {
  content: "！";
  display: inline-grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--warn-line);
  color: #fff;
  font-size: 0.85em;
  vertical-align: 0.1em;
}

.quote-box {
  margin: 14px 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: 0.98rem;
  line-height: 1.75;
}

.quote-box .quote-label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

/* ---------------- 手順 ---------------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 48px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.steps > li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 2px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.steps > li > :last-child { margin-bottom: 0; }

.steps strong { background: linear-gradient(transparent 62%, #ffe9a8 62%); }

/* ---------------- 表 ---------------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  background: #fff;
}

th, td {
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

th {
  background: #eceae4;
  font-weight: 700;
  white-space: nowrap;
}

td.yes { color: #1f5c2a; font-weight: 700; }
td.no  { color: #8a2222; font-weight: 700; }

/* ---------------- 価格 ---------------- */

.price-box {
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px 20px;
  text-align: center;
}

.price-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: 0;
}

.price-amount .yen { font-size: 1.15rem; margin-left: 2px; }

/* 文章が長めの金額表示（AI の料金の目安など） */
.price-amount.small { font-size: 1.75rem; line-height: 1.5; }
.price-amount.small .yen { font-size: 1rem; }

.price-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.price-note { margin: 10px 0 0; font-size: 0.95rem; color: var(--ink-soft); }

.checklist {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}

.checklist li {
  position: relative;
  padding-left: 32px;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 4px; top: 0.66em;
  width: 14px; height: 7px;
  border-left: 3px solid #2f7a3f;
  border-bottom: 3px solid #2f7a3f;
  transform: rotate(-45deg);
}

.checklist.cross li::before {
  content: "×";
  border: 0;
  transform: none;
  left: 6px; top: 0;
  width: auto; height: auto;
  color: #8a2222;
  font-weight: 700;
  font-size: 1.1em;
}

/* ---------------- 例（話し言葉 → 明細） ---------------- */

.example {
  display: grid;
  gap: 12px;
  align-items: stretch;
}

.example-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px 18px;
}

.example-label {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.example-speech {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
}

.example-arrow {
  text-align: center;
  color: var(--gold-dark);
  font-size: 1.6rem;
  line-height: 1;
}

.example table { font-size: 0.86rem; }
.example th, .example td { padding: 9px 8px; }

@media (min-width: 560px) {
  .example table { font-size: 0.95rem; }
  .example th, .example td { padding: 10px 12px; }
}
.example td.num { text-align: right; white-space: nowrap; }

/* ---------------- 図（説明のための絵） ---------------- */

.figure {
  margin: 28px 0 0;
  padding: 14px 10px 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.figure img {
  display: block;
  width: 100%;
  max-width: 460px;     /* これ以上は大きくしない（文字が間延びするため） */
  height: auto;
  margin-inline: auto;
}

.figure figcaption {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

@media (max-width: 400px) {
  /* 画面が狭いときは、枠の余白を削って絵を少しでも大きく見せる */
  .figure { padding: 12px 6px 14px; }
  .figure figcaption { padding-inline: 6px; }
}

@media (min-width: 700px) {
  .figure { padding: 22px 24px 24px; }
}

/* ---------------- よくある質問 ---------------- */

.faq { margin: 0; }

.faq dt {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 26px;
  padding-left: 32px;
  position: relative;
  color: var(--navy);
}

.faq dt::before {
  content: "Q";
  position: absolute;
  left: 0; top: 0;
  width: 24px; height: 24px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1;
}

.faq dd {
  margin: 8px 0 0 0;
  padding-left: 32px;
}

.faq dd:last-child { margin-bottom: 0; }

/* ---------------- 目次（よくある質問） ---------------- */

.toc {
  margin: 24px 0 0;
  padding: 18px 16px 20px;
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
}

.toc-heading {
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 6px solid var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 700px) {
  .toc { padding: 22px 24px 24px; }
  .toc ul { grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
}

.toc a {
  display: block;
  padding: 14px 16px 14px 40px;
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.toc a:hover { background: #ebe8e0; color: var(--ink); }

.toc a::before {
  content: "";
  position: absolute;
  left: 17px; top: 1.25em;
  width: 9px; height: 9px;
  border-right: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
}

.backtotop {
  margin: 28px 0 0;
  text-align: right;
  font-size: 0.95rem;
}

.backtotop a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
}

.backtotop a:hover { background: var(--bg-soft); }

/* 答えの中で手順を見せるとき（Q&A の中なので少し控えめに） */
.steps-inline {
  margin: 12px 0 14px;
}

.steps-inline > li {
  padding: 0 0 12px 40px;
  margin: 0 0 12px;
}

.steps-inline > li::before {
  width: 28px; height: 28px;
  font-size: 0.9rem;
  top: 3px;
}

.faq dd > .checklist,
.faq dd > .table-scroll { margin: 12px 0 14px; }

.faq dd > :last-child { margin-bottom: 0; }

code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  word-break: break-all;
}

/* ---------------- 情報の並び（事業者情報） ---------------- */

.info-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.info-list > div {
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
}

.info-list dt {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.info-list dd {
  margin: 4px 0 0;
}

@media (min-width: 640px) {
  .info-list > div {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 16px;
    align-items: baseline;
  }
  .info-list dd { margin-top: 0; }
}

/* ---------------- 目立たせたい案内箱 ---------------- */

.callout {
  border: 2px solid var(--navy);
  border-left-width: 8px;
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout > :last-child { margin-bottom: 0; }

.callout h3 { margin-top: 0; }

.callout.soft {
  border-color: var(--line-strong);
  border-left-color: var(--gold);
  background: var(--bg-soft);
}

/* ---------------- フッター ---------------- */

.site-footer {
  margin-top: 8px;
  background: var(--navy);
  color: #e6ebf2;
  padding-block: 32px 36px;
  font-size: 0.95rem;
}

.site-footer a { color: #fff; }

.footer-name { margin: 0 0 4px; font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer-line { margin: 0 0 18px; }

.footer-nav {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.copyright { margin: 0; font-size: 0.85rem; color: #b9c4d4; }

/* 印刷（この案内を紙に出して現場に渡す人がいます） */
@media print {
  .site-header, .site-footer, .nav, .btn-row { display: none !important; }
  body { font-size: 11pt; }
  .warn { border-color: #000; }
}
