/* 本番用 v5（2026-11-03）：今のサイトのページを v4 のデザインで作り直すときに足した部品。
   色や大きさは style.css の :root を使う */

/* h1 の上にのせる、地域名入りの1行（検索のための見出しの一部） */
.h1-sub { display: block; font-size: 15px; letter-spacing: .04em; color: var(--main); margin: 0 0 8px; }
@media (min-width: 768px) { .h1-sub { font-size: 17px; } }

/* お悩みのリスト */
.worry { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 10px; }
.worry li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 14px 48px; position: relative; font-weight: 700; }
.worry li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 4px var(--accent); }
.answer { background: var(--main-deep); color: #fff; border-radius: 20px; padding: 28px 24px; }
.answer p { margin: 0 0 .8em; }
.answer p:last-child { margin: 0; }
.answer-head { font-size: 19px; font-weight: 800; line-height: 1.7; }
.answer-head b { color: var(--accent-soft); }

/* プランの3つの箱 */
.plans { display: grid; gap: 16px; margin: 0 0 28px; }
.plan { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--main); border-radius: var(--radius); padding: 24px 22px; }
.plan-name { margin: 0 0 4px; font-size: 20px; font-weight: 800; color: var(--main-deep); }
.plan-sub { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: var(--main); }
.plan p:last-child { margin: 0; color: var(--sub); font-size: 15px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.price-line { text-align: center; font-size: 17px; margin: 0 0 28px; }
.price-line b { color: var(--main-deep); }

/* 数字の表 */
.num-table { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.num-table th, .num-table td { padding: 14px 12px; border-bottom: 1px solid #eadfcb; text-align: center; font-size: 15px; }
.num-table tr:first-child th { background: var(--main-deep); color: #fff; font-size: 14px; }
.num-table th:first-child { text-align: left; white-space: nowrap; }
.num-table td b { color: var(--cta-dark); font-size: 17px; }
@media (max-width: 767px) {
  .num-table th, .num-table td { padding: 12px 6px; font-size: 13px; }
  .num-table td { white-space: nowrap; }
  .num-table td b { display: block; font-size: 15px; }
  .num-table th:first-child { white-space: normal; width: 6.5em; }
}
@media (min-width: 768px) { .num-table th, .num-table td { padding: 16px 20px; font-size: 16px; } }

/* 利用者の声 */
.voices { display: grid; gap: 18px; }
.voice { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.voice h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.6; color: var(--main-deep); }
.voice p { margin: 0; color: var(--sub); font-size: 15px; }
@media (min-width: 900px) { .voices { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* 3つの手順（v4 は4つ並び） */
@media (min-width: 900px) { .flow.flow3 { grid-template-columns: repeat(3, 1fr); } }

/* 上のパンくず（ヒーローの前に置く） */
.crumb-top .crumb { padding: 10px 0 0; }

/* 記事・決まりのページの本文 */
.doc { background: var(--white); border-radius: 20px; padding: 32px 22px; box-shadow: var(--shadow); }
.doc h2 { font-size: 21px; line-height: 1.6; margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--main); color: var(--main-deep); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; color: var(--main-dark); }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: 15px; }
.doc th { background: #f3f7fc; white-space: nowrap; }
@media (min-width: 768px) { .doc { padding: 48px 56px; } .doc h2 { font-size: 24px; } }

/* 11/4 足した部品：プランの値段・4つ並び・含まれるもの・4つの箱・決まりのページの見出し */
.plan-best { display: inline-block; margin: 0 0 8px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--cta); border-radius: 99px; padding: 2px 12px; }
.plan-price { margin: 4px 0 0; font-size: 15px; color: var(--main-deep); }
.plan-price b { font-size: 30px; letter-spacing: .02em; }
.plan-price small { font-size: 12px; color: var(--sub); }
.plan-year { margin: 0 0 14px; font-size: 13px; color: var(--sub); }
.plan .svc-checks { margin: 0; }
@media (min-width: 900px) { .plans.plans4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans.plans4 { grid-template-columns: repeat(4, 1fr); } }
.plans-note { font-size: 13px; color: var(--sub); margin: 0 0 28px; }
.incl { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; margin: 0 0 28px; }
.incl h3 { margin: 0 0 12px; font-size: 18px; color: var(--main-deep); }
@media (min-width: 768px) { .incl-list { columns: 2; column-gap: 32px; } .incl-list li { break-inside: avoid; } }
.cards4 { display: grid; gap: 14px; }
.card4 { background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.card4 h3 { margin: 0 0 6px; font-size: 18px; color: var(--main-deep); }
.card4 p { margin: 0; font-size: 15px; color: var(--sub); }
@media (min-width: 768px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards4 { grid-template-columns: repeat(4, 1fr); } }
.page-head-plain { background: var(--tint); padding: 40px 0 28px; }
.page-head-plain h1 { margin: 0; font-size: 26px; color: var(--main-deep); }
@media (min-width: 768px) { .page-head-plain h1 { font-size: 34px; } }
.sec h3 { line-height: 1.6; }
@media (max-width: 767px) {
  .doc { padding: 26px 16px; }
  .doc h2 { font-size: 18px; padding-left: 10px; }
  .doc th { white-space: normal; width: 6.5em; font-size: 14px; }
  .doc td { overflow-wrap: anywhere; font-size: 14px; }
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== ブログ（/blog/・11/4） ===== */
.post-lead { margin: 10px 0 0; color: var(--sub); font-size: 15px; max-width: 760px; }
.post-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.post-chip { display: inline-block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: 14px; font-weight: 700; text-decoration: none; color: var(--main-dark); }
.post-chip.is-on { background: var(--main); border-color: var(--main); color: #fff; }
.post-list { display: grid; gap: 16px; }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .post-list { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; text-decoration: none; color: var(--ink); transition: box-shadow .2s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card h3 { margin: 6px 0 8px; font-size: 18px; line-height: 1.6; color: var(--main-deep); }
.post-desc { margin: 0; font-size: 14px; color: var(--sub); line-height: 1.8; }
.post-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--sub); }
.post-cat { display: inline-block; padding: 1px 10px; border-radius: 6px; background: var(--tint); color: var(--main-dark); font-weight: 800; font-size: 12.5px; text-decoration: none; }
.post-draft-tag { color: #fff; background: var(--cta); border-radius: 6px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.post-draft { background: var(--cta); color: #fff; text-align: center; font-weight: 800; padding: 8px 16px; font-size: 14px; }

.post { padding-top: 8px; }
.post-wrap { max-width: 820px; }
.post-head h1 { margin: 10px 0 10px; font-size: 25px; line-height: 1.55; color: var(--main-deep); }
@media (min-width: 768px) { .post-head h1 { font-size: 32px; } }
.post-by { margin: 0 0 24px; font-size: 13.5px; color: var(--sub); }
.post-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 32px; }
.post-toc-head { margin: 0 0 6px; font-weight: 800; color: var(--main-deep); }
.post-toc ol { margin: 0; padding-left: 1.4em; }
.post-toc li { margin: 2px 0; }
.post-body { font-size: 16.5px; line-height: 2; }
.post-body h2 { font-size: 21px; line-height: 1.6; margin: 48px 0 16px; padding: 10px 14px; border-left: 5px solid var(--main); background: var(--tint); color: var(--main-deep); border-radius: 0 8px 8px 0; scroll-margin-top: 90px; }
.post-body h3 { font-size: 18px; line-height: 1.6; margin: 32px 0 10px; color: var(--main-dark); padding-bottom: 4px; border-bottom: 2px solid var(--line); }
@media (min-width: 768px) { .post-body h2 { font-size: 24px; } }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.post-body li { margin: 4px 0; }
.post-body blockquote { margin: 0 0 1.2em; padding: 12px 18px; border-left: 4px solid var(--line); color: var(--sub); background: var(--white); }
.post-body details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; padding: 0; }
.post-body details summary { cursor: pointer; padding: 14px 18px; font-weight: 800; color: var(--main-deep); }
.post-body details .ans { padding: 0 18px 4px; }
.post-author .post-author-label { font-size: 13px; font-weight: 800; color: var(--main); letter-spacing: .05em; margin: 0 0 4px; }
.post-body details summary .faq-q { display: inline; font-size: inherit; line-height: inherit; margin: 0; padding: 0; border: 0; color: inherit; font-weight: inherit; }
.post-fig { margin: 0 0 1.4em; }
.post-fig img { border-radius: 10px; }
.post-fig figcaption { font-size: 13px; color: var(--sub); margin-top: 6px; }
.post-table { overflow-x: auto; margin: 0 0 1.4em; }
.post-table table { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.post-table th, .post-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-table th { background: #f3f7fc; }
.post-box { border-radius: var(--radius); padding: 18px 20px 4px; margin: 0 0 1.6em; }
.post-box-label { margin: 0 0 6px; font-weight: 800; font-size: 15px; }
.box-genba { background: var(--sand); border: 2px solid var(--accent); }
.box-genba .post-box-label { color: #8a5a0f; }
.box-genba .post-box-label::before { content: "現場"; display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12px; vertical-align: 2px; }
.box-matome { background: var(--white); border: 2px solid var(--main); }
.box-matome .post-box-label { color: var(--main-deep); }
.box-chuui { background: #fdf0ec; border: 2px solid #efb7a6; }
.box-chuui .post-box-label { color: var(--cta-dark); }
.post-sources { font-size: 13.5px; color: var(--sub); border-top: 1px solid var(--line); padding-top: 16px; margin: 32px 0 0; }
.post-sources ul { padding-left: 1.3em; margin: 0; }
.post-sources a { overflow-wrap: anywhere; }
.post-author { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 20px; margin: 36px 0 24px; box-shadow: var(--shadow); }
.post-author img { width: 112px; height: auto; border-radius: 10px; flex: none; }
.post-author p { margin: 0 0 .6em; font-size: 14.5px; }
.post-author p:last-child { margin: 0; }
.post-author-name { font-weight: 800; font-size: 17px !important; color: var(--main-deep); }
.post-author-name small { display: block; font-size: 12.5px; color: var(--sub); font-weight: 700; }
@media (max-width: 479px) { .post-author { flex-direction: column; } }
.post-svc { text-align: center; margin: 0; }
.post-rel-head { font-size: 22px; margin: 0 0 20px; color: var(--main-deep); }
/* 日本語の折り返しを語の切れ目に（「か？」だけ次の行に落ちる・「Googleマッ/プ」と切れるのを防ぐ。対応していないブラウザはふつうの折り返し） */
.post-head h1, .post-body h2, .post-body h3, .post-card h3, .page-head-plain h1, .post-toc li, .post-table th, .post-table td, .post-body summary, .post-svc .btn { word-break: auto-phrase; text-wrap: balance; }
.post-body p, .post-body li { text-wrap: pretty; }

/* 11/7 スマホ幅（〜400px）で横に2〜3pxはみ出していたのを直す（publish.py の表示の点検で見つけた） */
@media (max-width: 400px) {
  .hero h1 { font-size: 29px; }
  .message-photo { max-width: calc(100% - 18px); }
}

/* ブログ：用語解説・コラム・枠・見出しへのリンク・引用元（11/7） */
.post-body h3[id] { scroll-margin-top: 90px; }
.box-yougo { background: var(--white); border: 2px solid var(--line); }
.box-yougo .post-box-label { color: var(--sub); font-size: 13px; }
.box-yougo .post-yougo-term { margin: 0 0 6px; font-weight: 800; font-size: 16px; color: var(--main-deep); }
.box-column { background: var(--tint); border: 2px dashed var(--main); }
.box-column .post-box-label { color: var(--main-deep); }
.box-column .post-box-label::before { content: "コラム"; display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 6px; background: var(--main); color: #fff; font-size: 12px; vertical-align: 2px; }
.box-waku { background: var(--white); border: 2px solid var(--main); }
.box-waku .post-box-label { color: var(--main-deep); }
.box-waku ul, .box-waku ol { margin-top: 0; }
.post-body .post-jump { margin: -4px 0 1.2em; }
.post-body .post-jump a { font-weight: 700; }
.post-body .post-jump a::after { content: " →"; }
.post-body blockquote + .post-cite, .post-body .post-cite { margin: -10px 0 1.4em; font-size: 13px; color: var(--sub); text-align: right; }
.post-body .post-jump a { word-break: auto-phrase; }
/* 現場の枠：小さい札「代表 片山の現場から」＋枠ごとの題（11/7） */
.box-genba .post-box-label::before { content: "代表 片山の現場から"; display: table; margin: 0 0 6px; }
.post-body + .post-toc { margin-top: 8px; }
/* ブログ：黄色マーカー・赤文字（11/7）。マーカーは文字の下半分だけ＝上下の行と重ならない */
.post-body .mk-y { background: linear-gradient(transparent 58%, #ffe66d 58%, #ffe66d 92%, transparent 92%); padding: 0 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.post-body .txt-red { color: #c8322b; font-weight: 800; }
.post-body td, .post-body th { line-height: 1.75; }
.post-fig img[src*="/zu"] { display: block; max-width: 560px; width: 100%; margin: 0 auto; }
/* トップ：自己紹介と事業の紹介の動画（11/7） */
.movie-lead { max-width: 640px; margin: 0 auto 22px; line-height: 1.9; text-align: center; }
.movie { max-width: 860px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(16, 50, 90, .14); background: #0f2440; }
.movie video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.movie-note { text-align: center; font-size: 13px; color: var(--sub); margin: 10px 0 0; }
@media (max-width: 600px) { .movie-lead { text-align: left; } }
/* ヘッダーの「無料で相談する」：メニューの文字色（紺）に負けて文字が白くならなかった → 白に（11/7 片山さん） */
.gnav a.head-cta, .gnav a.head-cta:hover, .gnav a.head-cta:focus, .gnav a.head-cta:visited { color: #fff; }
