/* ========== 生成ページ共通（工事別ハブ /works/*、エリア /area/*、エリア一覧）==========
   build_pages.py が出力するページ用。case.css（事例グリッド）と併用 */

/* 見出し（日本語 H1） */
.hub-hero .eyebrow { margin-bottom: 14px; font-family: var(--font-kaku); font-weight: 700; }
.page-title.is-ja {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-indent: 0;
}
.page-title.is-ja::after { margin-top: 18px; }
.hub-hero .page-lead { max-width: 720px; font-size: var(--fs-lead); font-weight: 500; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-top: 26px; font-size: 12px; letter-spacing: 0.06em; color: rgba(0, 0, 0, 0.7); }
.breadcrumb a { text-decoration: underline; text-underline-offset: 0.25em; }
.breadcrumb .sep { opacity: 0.5; }
ol.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: 0.5; }

/* 導入（写真＋本文） */
.hub-intro-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hub-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hub-h2 { font-family: var(--font-kaku); font-weight: 700; font-size: var(--fs-h3); letter-spacing: 0.06em; line-height: 1.5; margin-bottom: 18px; }
.hub-body .text + .text { margin-top: 1.2em; }
.work-items { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.work-items li { position: relative; padding: 8px 0 8px 22px; font-size: 15px; font-weight: 500; border-bottom: 1px solid #ddd; }
.work-items li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; background: var(--yellow); border: 1px solid var(--ink); }

/* 費用目安 */
.price-table { margin-top: var(--head-gap); background: #fff; }
.price-table th { width: 40%; font-weight: 500; padding: 20px 20px; }
.price-table td { padding: 20px 20px; }
.price-table td strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: 0.02em; line-height: 1.3; }
.price-table td.is-quote strong { font-size: 17px; font-weight: 700; color: var(--green-deep); }
.price-table .sub { margin-top: 6px; }
.section-s .note { margin-top: 16px; text-align: center; }
.hub-price-btn { margin-top: 22px; }

/* 現地で決めること */
.points { counter-reset: pt; margin-top: var(--head-gap); display: grid; gap: 14px; }
.points li { counter-increment: pt; position: relative; padding: 18px 20px 18px 66px; background: #fff; border: 1px solid var(--ink); border-radius: var(--radius); font-size: 15px; font-weight: 500; line-height: 1.8; }
.points li::before { content: counter(pt, decimal-leading-zero); position: absolute; left: 18px; top: 14px; font-family: var(--font-mono); font-weight: 900; font-size: 26px; line-height: 1; color: var(--yellow); -webkit-text-stroke: 1px var(--ink); }

/* 事例（case.css のグリッドを流用） */
.hub-cases { margin-top: var(--head-gap); width: 100%; }
.hub-cases + .btn-row { margin-top: 28px; }
.bg-yellow .sec-title + .small { margin-top: 12px; text-align: center; }

/* 依頼の流れ（簡易） */
.mini-flow { margin-top: var(--head-gap); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-flow li { background: #fff; border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: var(--shadow-card); }
.mini-flow .step { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--black); color: #fff; font-family: var(--font-mono); font-weight: 900; font-size: 16px; }
.mini-flow .name { display: block; margin-top: 12px; font-family: var(--font-kaku); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.mini-flow .desc { display: block; margin-top: 6px; font-size: 13px; line-height: 1.8; }
.voice-box { margin-top: 28px; }
.voice-box .small { font-weight: 700; color: var(--green-deep); }
.voice-box .text { margin-top: 6px; }
.voice-box .text-link { display: inline-block; margin-top: 8px; font-size: 13px; }

/* FAQ */
.faq-list { margin-top: var(--head-gap); border-top: 1px solid #c9c9c9; }
.faq-list .acc-q { font-weight: 700; }
.faq-list .acc-q > span:first-child::before { content: "Q."; margin-right: 8px; font-family: var(--font-kaku); color: var(--green-deep); }

/* リンクの並び */
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips a { display: inline-block; padding: 10px 16px; background: #fff; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; transition: background-color 0.2s ease; }
.chips a:hover { background: var(--yellow); }
.chips-title { margin-top: 34px; text-align: center; font-family: var(--font-kaku); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; }

.muni-list span { display: inline-block; padding: 10px 16px; background: transparent; border: 1px dashed #9a9a9a; border-radius: 999px; font-size: 14px; color: var(--gray-text); }

/* 市町ハブ：工事カード */
.work-cards { margin-top: var(--head-gap); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work-cards a { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.2s ease; }
.work-cards a:hover { transform: translateY(-3px); }
.work-cards img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.work-cards .name { display: block; padding: 14px 16px 4px; font-family: var(--font-kaku); font-weight: 700; font-size: 15px; line-height: 1.5; letter-spacing: 0.02em; }
.work-cards .price { display: block; padding: 0 16px 16px; font-family: var(--font-head); font-weight: 900; font-size: 17px; }
.work-cards .price.is-quote { font-size: 13px; font-weight: 700; color: var(--green-deep); }

/* エリア一覧 */
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.area-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: #fff; border: 1px solid var(--ink); border-radius: var(--radius); transition: background-color 0.2s ease; }
.area-list a:hover { background: var(--yellow-pale); }
.area-list .name { font-family: var(--font-kaku); font-weight: 700; font-size: 20px; letter-spacing: 0.08em; }
.area-list .name small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--gray-text); }
.area-list .travel { font-size: 13px; text-align: right; color: var(--gray-text); }
.area-list + .note { margin-top: 28px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .work-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hub-intro-inner { grid-template-columns: 1fr; }
  .mini-flow { grid-template-columns: 1fr; }
  .work-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 760px) {
  .page-title.is-ja { font-size: 24px; }
  .work-items { grid-template-columns: 1fr; }
  .price-table th { padding: 16px 0 4px; }
  .price-table td { padding: 0 0 16px; }
  .price-table td strong { font-size: 20px; }
  .points li { padding: 16px 16px 16px 58px; font-size: 14px; }
  .points li::before { left: 14px; font-size: 22px; }
  .area-list { grid-template-columns: 1fr; }
  .area-list a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .area-list .travel { text-align: left; }
  .work-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work-cards .name { padding: 10px 12px 2px; font-size: 13px; }
  .work-cards .price { padding: 0 12px 12px; font-size: 15px; }
  .chips { justify-content: center; }
  .chips a { padding: 9px 13px; font-size: 13px; }
}
