/* ビズタク フロント（案件詳細）
 * 元はデザイン見本 docs/design-mockups の案F。見本を直したら scratchpad の export_css.py で書き出し直すか、ここを直接直す。
 */
.dhead { background: linear-gradient(120deg, #F4F7FB 0%, #EAF0F7 60%, #E1E9F3 100%); border-bottom: 1px solid var(--line); padding-bottom: 36px; }
.dhead-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--sub); }
.dhead h1 { margin: 12px 0 10px; font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; line-height: 1.45; color: var(--navy); max-width: 860px; }
.dhead h1 .ib { display: inline-block; }
.dhead .catch { margin: 0 0 16px; font-size: 15px; color: #374151; max-width: 860px; }
.dhead .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dhead .tag { background: #fff; }

.dlayout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-top: 36px; padding-bottom: 80px; align-items: start; }

/* 写真 */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gallery .main { aspect-ratio: 16 / 9; border-radius: 14px; background: var(--pale) center / cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery .thumbs span { aspect-ratio: 16 / 9; border-radius: 8px; background: var(--pale) center / cover; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; }
.gallery .thumbs span.on { outline-color: var(--navy); }

/* 大きな数字の帯 */
.keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.keys div { padding: 20px 18px; text-align: center; }
.keys div + div { border-left: 1px solid var(--line); }
.keys small { display: block; font-size: 12px; color: var(--sub); font-weight: 700; }
.keys b { display: block; font-family: Inter, "Noto Sans JP", sans-serif; font-size: 34px; font-weight: 900; color: var(--navy); line-height: 1.25; letter-spacing: -.02em; white-space: nowrap; }
.keys b span { font-family: "Noto Sans JP", sans-serif; font-size: 15px; margin-left: 2px; letter-spacing: 0; }
.keys b.word { font-family: "Noto Sans JP", sans-serif; font-size: 22px; padding: 6px 0 4px; }
.keys em { display: block; font-style: normal; font-size: 11.5px; color: var(--sub); }

/* ページ内の目次 */
.toc { position: sticky; top: 76px; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); margin: 36px 0 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.toc a { flex: none; padding: 14px 14px; font-size: 13.5px; font-weight: 700; color: var(--sub); border-bottom: 3px solid transparent; }
.toc a:hover { color: var(--navy); }
.toc a.on { color: var(--navy); border-bottom-color: var(--navy); }

.blk { padding: 44px 0 0; scroll-margin-top: 140px; }
.blk h2 { margin: 0 0 18px; font-size: 22px; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.blk h2::before { content: ""; width: 5px; height: 22px; background: var(--navy); border-radius: 3px; }
.blk h3 { margin: 22px 0 10px; font-size: 15px; }
.blk p { margin: 0; font-size: 15px; line-height: 2; color: #1F2937; }

.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: 14.5px; }
.spec th, .spec td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec th { width: 200px; background: var(--pale-2); font-weight: 700; color: var(--navy); font-size: 13.5px; }
.spec td b { color: var(--navy); }
/* 見出しが上に並ぶ表（営業代行の「商材の販売価格」など） */
.spec-head thead th { width: auto; }
.spec-head tbody td:first-child { width: 50%; }
.blk h3 + p, .blk h3 + .spec { margin-top: 0; }

.merits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.merit { border-radius: 14px; background: var(--pale-2); padding: 22px 20px; }
.merit svg { color: var(--navy); margin-bottom: 10px; }
.merit b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.merit span { font-size: 13.5px; color: var(--sub); line-height: 1.8; }

.fit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fit li { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; font-weight: 500; }
.fit li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 2px; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font-family: Inter, sans-serif; font-weight: 900; font-size: 17px; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-size: 16px; padding-top: 8px; }
.steps span { font-size: 14px; color: var(--sub); }

.docs { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.docs li { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-weight: 700; font-size: 14.5px; }
.docs li svg { color: var(--navy); flex: none; }
.docs li small { margin-left: auto; font-weight: 500; font-size: 12px; color: var(--sub); white-space: nowrap; }

.msg { position: relative; border-radius: 14px; background: var(--navy); color: #fff; padding: 32px 32px 28px; }
.msg p { color: #E2E9F3; }
.msg .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13.5px; color: #C9D6EA; }
.msg .who i { width: 44px; height: 44px; border-radius: 50%; background: #fff center / cover; flex: none; }
.msg .who b { color: #fff; display: block; font-size: 14.5px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pc:hover { box-shadow: 0 14px 32px rgba(11,37,69,.10); transform: translateY(-2px); }
.pc .ph { aspect-ratio: 16 / 9; background: var(--pale) center / cover; }
.pc .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc .co { font-size: 12px; color: var(--sub); }
.pc h4 { margin: 0; font-size: 15px; line-height: 1.55; }
.pc .money { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.pc .money small { font-size: 12px; color: var(--sub); }
.pc .money b { font-family: Inter, "Noto Sans JP", sans-serif; font-size: 22px; font-weight: 900; color: var(--navy); }
.pc .money b small { font-family: "Noto Sans JP", sans-serif; font-size: 12px; color: var(--navy); margin-left: 2px; }

/* 右の欄（追従） */
.aside { position: sticky; top: 96px; display: grid; gap: 14px; min-width: 0; }
.aside .btn { white-space: normal; text-align: center; line-height: 1.4; }
.abox { border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(11,37,69,.10); overflow: hidden; }
.abox-head { background: var(--navy); color: #fff; padding: 18px 22px; }
.abox-head small { font-size: 12px; color: #C9D6EA; font-weight: 700; }
.abox-head b { display: block; font-family: Inter, "Noto Sans JP", sans-serif; font-size: 40px; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.abox-head b span { font-family: "Noto Sans JP", sans-serif; font-size: 16px; margin-left: 2px; }
.abox-head em { font-style: normal; font-size: 12px; color: #C9D6EA; }
.abox dl { margin: 0; padding: 8px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.abox dt, .abox dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.abox dt { color: var(--sub); padding-right: 16px; }
.abox dd { margin: 0; font-weight: 700; text-align: right; }
.abox dl > :nth-last-child(-n+2) { border-bottom: 0; }
.abox-cta { padding: 4px 22px 22px; display: grid; gap: 10px; }
.abox-cta .btn-lg { justify-content: space-between; padding: 0 12px 0 26px; }
.abox-cta .btn-ghost { height: 46px; border-radius: 999px; }
.abox-cta p { margin: 4px 0 0; font-size: 12px; color: var(--sub); text-align: center; line-height: 1.7; }
.abox-sub { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.abox-sub a { color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* スマホだけ画面の下に固定するボタン */

@media (max-width: 1100px) {
  .dlayout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .keys div:nth-child(3) { border-left: 0; }
  .keys div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .merits { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dlayout { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .aside { position: static; }
  .toc { top: 64px; margin-top: 28px; }
  .spec th { width: 120px; padding: 14px 12px; }
  .spec td { padding: 14px 12px; }
  .fit { grid-template-columns: minmax(0, 1fr); }
  body { padding-bottom: 72px; }
}
@media (max-width: 560px) {
  .dhead { padding-bottom: 24px; }
  .gallery .thumbs { gap: 6px; }
  .keys b { font-size: 28px; }
  .keys b.word { font-size: 18px; }
  .cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .cards .pc { flex: 0 0 78%; scroll-snap-align: start; }
  .msg { padding: 24px 20px; }
  .blk h2 { font-size: 19px; }
  .docs li { flex-wrap: wrap; }
  .docs li small { margin-left: 34px; }
}

.closed-band { background: #FFF7ED; border-bottom: 1px solid #FED7AA; }
.closed-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.closed-band p { margin: 0; font-size: 14.5px; color: #9A3412; font-weight: 700; }
.closed-band p span { display: block; font-weight: 500; font-size: 13px; color: #7C2D12; margin-top: 2px; }
.closed-band .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.closed-band .btn { height: 42px; border-radius: 999px; padding: 0 18px; font-size: 13.5px; }
.closed-box { padding: 22px; text-align: center; }
.closed-box b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.closed-box p { margin: 0 0 14px; font-size: 13px; color: var(--sub); line-height: 1.8; }
.closed-box .btn-notify { width: 100%; height: 50px; font-size: 14.5px; }
.closed-box a.more { display: block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--navy); }
/* 写真には灰色のフィルターをかけない（掲載終了の案件も。2026-10 ご要望） */

/* 要点の言葉（契約の形・報酬の形など）は長いことがあるので折り返す */
.keys div { min-width: 0; }
.keys b.word { white-space: normal; font-size: 19px; line-height: 1.45; overflow-wrap: anywhere; }
@media (max-width: 640px) { .keys b.word { font-size: 16px; } .keys div { padding: 16px 10px; } }

/* 写真（左）と要点（右）を横に並べる（余白を作らず、写真も大きくなりすぎない） */
.dtop { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.dtop .keys { margin: 0; grid-template-columns: minmax(0, 1fr); align-content: stretch; }
.dtop .keys div { display: flex; flex-direction: column; justify-content: center; text-align: left; padding: 14px 22px; }
.dtop .keys div + div { border-left: 0; border-top: 1px solid var(--line); }
.dtop .keys b { font-size: 30px; }
.dtop .keys b.word { font-size: 18px; padding: 2px 0 0; }
.dtop .keys em { margin-top: 2px; line-height: 1.5; }
@media (max-width: 1100px) {
  .dtop { grid-template-columns: minmax(0, 1fr); }
  .dtop .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtop .keys div { text-align: center; }
  .dtop .keys div + div { border-top: 0; border-left: 1px solid var(--line); }
  .dtop .keys div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dtop .keys div:nth-child(3) { border-left: 0; }
}
.dhead h1 { word-break: auto-phrase; text-wrap: balance; }
@media (min-width: 641px) and (max-width: 1100px) {
  .dtop .keys { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .dtop .keys div + div { border-left: 1px solid var(--line); border-top: 0; }
  .dtop .keys div:nth-child(n+3) { border-top: 0; }
  .dtop .keys div:nth-child(3) { border-left: 1px solid var(--line); }
}

/* 詳しい説明（エディタで書いた見出し・本文・箇条書き） */
.blk .rich { font-size: 15px; line-height: 1.95; color: #1F2937; }
.blk .rich > :first-child { margin-top: 0; }
/* 本文の見出し：ページの見出し（h2：左の太い縦線）と見分けられるよう、薄い帯にする */
.blk .rich h3 { font-size: 17px; font-weight: 800; color: var(--navy); margin: 30px 0 12px; padding: 10px 16px; background: #F1F5FB; border-radius: 8px; line-height: 1.5; }
.blk .rich h4 { font-size: 15.5px; font-weight: 800; color: var(--navy); margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 1px dashed #C9D4E3; }
.blk .rich p { margin: 0 0 14px; }
.blk .rich ul, .blk .rich ol { margin: 0 0 14px; padding-left: 1.4em; }
.blk .rich li { margin: 4px 0; }
.blk .rich strong { color: var(--navy); }
.blk .rich a { color: #1D4ED8; text-decoration: underline; }
