/* ==========================================================
   内容ページ共通（山崎産業の進化・事業内容・森林土木・林業・施工実績・NEWS）
   実写真のヘッダー → 読みやすい白／淡色のゾーン。動きは控えめ。
   ========================================================== */

/* ---------- ページ上部（実写真＋見出し） ---------- */
.cp-hero { position: relative; min-height: min(78svh, 720px); display: flex; align-items: flex-end; color: #fff; background: #173f2d center / cover no-repeat; padding: calc(var(--header-h) + 40px) 0 170px; }
.cp-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 20, .35) 0%, rgba(10, 30, 20, .55) 55%, rgba(10, 30, 20, .8) 100%); }
.cp-hero__inner { position: relative; z-index: 2; }
.cp-hero .uv-eyebrow { color: #ffe27a; }
.cp-hero .uv-eyebrow small { color: rgba(255, 255, 255, .8); }
.cp-title { font-family: var(--font-round); font-weight: 700; font-size: clamp(28px, 4.6vw, 56px); line-height: 1.4; letter-spacing: .04em; margin: 18px 0 18px; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.cp-lead { max-width: 760px; font-size: clamp(15px, 1.4vw, 17px); line-height: 2.1; color: rgba(255, 255, 255, .92); margin: 0; }

/* ---------- パンくずリスト（全ての下層ページ） ---------- */
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 12px; }
.crumbs li + li::before { content: "›"; margin: 0 8px; opacity: .6; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.crumbs [aria-current] { opacity: .75; }

/* ---------- ゾーン ---------- */
.cp-zone { padding: 60px 0 clamp(90px, 10vw, 130px); }
.cp-zone--light { background: #f4f7f2; color: var(--ink); }
.cp-zone--white { background: #fff; color: var(--ink); }
.cp-zone--dark { background: #173f2d; color: #fff; }
.cp-zone--light .uv-eyebrow, .cp-zone--white .uv-eyebrow { color: #2f8a57; }
.cp-zone--light .uv-eyebrow small, .cp-zone--white .uv-eyebrow small, .cp-zone--light .uv-text, .cp-zone--white .uv-text { color: var(--ink-soft); }
.cp-block { padding-top: clamp(50px, 7vw, 90px); }
.cp-block > .uv-title { margin-bottom: 14px; }
.cp-zone p.cp-text { font-size: 16px; line-height: 2.1; color: #3d3d40; max-width: 820px; }
.cp-zone--dark p.cp-text { color: rgba(255, 255, 255, .88); }

/* 文章＋写真 */
.cp-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.cp-split--rev .cp-split__media { order: -1; }
.cp-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .15); }
.cp-split__media figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }
.cp-zone--dark .cp-split__media figcaption { color: rgba(255, 255, 255, .7); }
@media (max-width: 860px) { .cp-split { grid-template-columns: 1fr; } .cp-split--rev .cp-split__media { order: 0; } }

/* 点つきリスト・チップ */
.cp-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.cp-list li { position: relative; padding-left: 1.4em; font-size: 15px; line-height: 1.9; }
.cp-list li::before { content: ""; position: absolute; left: .3em; top: .8em; width: 8px; height: 8px; border-radius: 50%; background: #5fb36f; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; padding: 0; }
.cp-chips li { padding: 6px 14px; border-radius: 999px; background: #e6f1e6; color: #1f6b45; font-size: 13px; font-weight: 700; }

/* カード（事業・関連ページ） */
.cp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.cp-card { display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(20, 60, 40, .08); transition: transform .4s var(--ease), box-shadow .4s; }
a.cp-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 60, 40, .14); }
.cp-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cp-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cp-card__tag { font-family: var(--font-mont); font-weight: 800; font-size: 11px; letter-spacing: .16em; color: #2f8a57; }
.cp-card h3 { font-family: var(--font-round); font-size: 20px; line-height: 1.5; }
.cp-card p { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink-soft); }
.cp-card__go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: #1f6b45; }
@media (max-width: 960px) { .cp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cp-cards { grid-template-columns: 1fr; } }

/* 進化のステップ（縦の時系列） */
.cp-steps { list-style: none; padding: 0; margin: 40px 0 0; position: relative; }
.cp-steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: linear-gradient(#6fbf7e, #2a7fb8 60%, #f2a83b); }
.cp-step { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding-bottom: 34px; }
.cp-step__dot { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 4px solid var(--sc, #3f9b5f); display: grid; place-items: center; font-family: var(--font-mont); font-weight: 800; font-size: 13px; color: var(--sc, #3f9b5f); }
.cp-step__card { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 26px 24px; box-shadow: 0 10px 28px rgba(20, 60, 40, .08); }
.cp-step__year { font-family: var(--font-mont); font-weight: 800; font-size: 13px; letter-spacing: .1em; color: var(--sc, #3f9b5f); }
.cp-step__card h3 { font-family: var(--font-round); font-size: 21px; margin: 4px 0 10px; }
.cp-step__card p { margin: 0 0 8px; font-size: 15px; line-height: 1.95; color: #3d3d40; }
.cp-step__card a.cp-more { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 14px; color: #1f6b45; text-decoration: underline; text-underline-offset: 3px; }
.cp-step--future .cp-step__card { background: #fff8e8; border: 2px dashed #f2c96b; }

/* 「未来のインフラへ」：電気が届くまでの流れ（送電網＝山崎産業が支えるところを強調） */
.cp-step__card h3 small { display: block; font-size: 15px; font-weight: 700; color: #b9771a; margin-top: 4px; }
.cp-flow { list-style: none; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; padding: 0; margin: 14px 0 18px; }
.cp-flow li { position: relative; flex: 1 1 0; min-width: 96px; display: grid; place-items: center; text-align: center; padding: 12px 10px; border-radius: 14px; background: #fff; border: 1px solid #f0dcae; font-weight: 700; font-size: 15px; color: #3d3d40; line-height: 1.4; }
.cp-flow li + li::before { content: "→"; position: absolute; left: -9px; top: 50%; transform: translate(-50%, -50%); color: #d9a441; font-weight: 700; }
.cp-flow li small { display: block; font-size: 12px; font-weight: 500; color: inherit; opacity: .85; }
.cp-flow li.is-ours { background: #1f6b45; border-color: #1f6b45; color: #fff; box-shadow: 0 6px 16px rgba(31, 107, 69, .25); }
@media (max-width: 560px) {
  .cp-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cp-flow li + li::before { display: none; }
}

/* 表 */
.cp-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: #fff; border-radius: 16px; overflow: hidden; }
.cp-table th, .cp-table td { padding: 14px 18px; border-bottom: 1px solid #e6ece4; text-align: left; font-size: 15px; vertical-align: top; }
.cp-table th { width: 30%; color: var(--ink-soft); font-weight: 500; background: #fafcf8; }

/* 次のページへの案内（内部リンク） */
.cp-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 30px; }
.cp-next a { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); transition: background .3s; }
.cp-next a:hover { background: rgba(255, 255, 255, .18); }
.cp-next small { font-family: var(--font-mont); font-weight: 800; font-size: 11px; letter-spacing: .15em; color: #ffe27a; }
.cp-next b { font-family: var(--font-round); font-size: 18px; }
.cp-next span { font-size: 13px; color: rgba(255, 255, 255, .78); line-height: 1.7; }
.cp-zone--light .cp-next a, .cp-zone--white .cp-next a { background: #fff; border-color: #dfe8dc; color: var(--ink); }
.cp-zone--light .cp-next small, .cp-zone--white .cp-next small { color: #2f8a57; }
.cp-zone--light .cp-next span, .cp-zone--white .cp-next span { color: var(--ink-soft); }
.cp-note { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: #fff8e8; color: #7a5a14; font-size: 13px; line-height: 1.8; }

/* ---------- 施工実績・受賞歴 ---------- */
.wk-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.wk-filter button { border: 1px solid #cfdccb; background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.wk-filter button.is-active { background: #1f6b45; border-color: #1f6b45; color: #fff; }
.wk-count { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.wk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.wk-card { background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 28px rgba(20, 60, 40, .08); display: flex; flex-direction: column; }
.wk-card[hidden] { display: none; }
.wk-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wk-card__noimg { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, #e6f1e6, #dbeaf3); color: #6f8a7a; font-size: 13px; }
.wk-card__body { padding: 18px 20px 22px; }
.wk-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wk-tag { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e6f1e6; color: #1f6b45; }
.wk-tag--award { background: #fff2d6; color: #8a5a00; }
.wk-card h3 { font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
.wk-card dl { margin: 0; display: grid; gap: 2px; font-size: 13px; }
.wk-card dl div { display: grid; grid-template-columns: 4.5em 1fr; gap: 6px; }
.wk-card dt { color: var(--ink-soft); }
.wk-card dd { margin: 0; }
@media (max-width: 960px) { .wk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wk-grid { grid-template-columns: 1fr; } }

/* ---------- NEWS ---------- */
.nw-list { display: grid; gap: 16px; margin-top: 30px; }
.nw-item { background: #fff; color: var(--ink); border-radius: 20px; padding: 24px 28px; box-shadow: 0 8px 24px rgba(20, 60, 40, .07); scroll-margin-top: calc(var(--header-h) + 20px); }
.nw-item__meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.nw-item__meta time { font-family: var(--font-mont); font-weight: 600; }
.nw-item h2 { font-family: var(--font-round); font-size: 19px; line-height: 1.6; margin: 8px 0 10px; }
.nw-item p { margin: 0; font-size: 15px; line-height: 2; color: #3d3d40; }
.nw-item a { color: #1f6b45; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.md-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 26px; margin-top: 16px; box-shadow: 0 8px 24px rgba(20, 60, 40, .07); }
.md-card__src { font-family: var(--font-mont); font-weight: 800; font-size: 12px; letter-spacing: .1em; color: #fff; background: #2a7fb8; border-radius: 10px; padding: 10px 12px; text-align: center; line-height: 1.4; }
.md-card h3 { font-size: 17px; margin-bottom: 4px; }
.md-card p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.md-card a { color: #1f6b45; font-weight: 700; text-decoration: underline; }

/* ---------- 締めの案内 ---------- */
.cp-cta { text-align: center; }
.cp-cta .uv-pill { margin: 8px; }

/* ---------- お知らせ：写真・記事ページ（microCMS） ---------- */
.nw-item h2 a { color: inherit; text-decoration: none; font-weight: inherit; }
.nw-item h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nw-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 88px)); gap: 8px; margin-top: 14px; text-decoration: none !important; }
.nw-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.nw-thumbs__more { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; background: #eef3ee; color: #1f6b45; font-weight: 700; font-size: 14px; }
.cp-hero--news { min-height: 340px; }
.nw-article { max-width: 820px; margin-inline: auto; background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 5vw, 48px); box-shadow: 0 8px 24px rgba(20, 60, 40, .07); }
.nw-article__title { font-family: var(--font-round); font-size: clamp(22px, 3.4vw, 30px); line-height: 1.55; margin: 12px 0 22px; }
.nw-article__body p { margin: 0 0 1.2em; font-size: 16px; line-height: 2.05; color: #3d3d40; }
.nw-article__body a { color: #1f6b45; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nw-article__body h2, .nw-article__body h3 { font-family: var(--font-round); margin: 1.6em 0 .6em; line-height: 1.6; }
.nw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.nw-gallery figure { margin: 0; }
.nw-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
.nw-gallery figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }
.nw-zoom-hint { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; }
.nw-back { text-align: center; margin: 36px 0 0; }
.wk-card { position: relative; }
.wk-card__count { position: absolute; top: 10px; right: 10px; background: rgba(16, 20, 17, .7); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; pointer-events: none; }
.cp-note a { color: #1f6b45; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
