@charset "UTF-8";
/*
Theme Name: 有限会社小野沢
Theme URI: http://onozawa.local/
Author: PEEES
Description: 有限会社小野沢（長野県佐久市／土木工事業・造園工事業）オリジナルテーマ。ガードレール工事・フェンス工事を主軸に、岩削工・削孔・エクステリア工事・伐採まで対応。
Version: 1.0.0
Text Domain: onozawa
*/

/* ============================================================
   _variables : カラー / フォント / イージング
   ブランドカラーは名刺の深緑（#0A3A1E）から抽出
   ============================================================ */
:root {
  --green-900: #052B16;
  --green-800: #0A3A1E;
  --green-700: #14512C;
  --green-600: #1E6B3B;
  --green-050: #F2F6F2;

  --ink:    #1B1B1B;
  --body:   #4A4A4A;
  --line:   #E1E5DF;
  --bg:     #FFFFFF;
  --bg-alt: #F5F7F4;

  --req: #B03A2E;
  --opt: #8A8A8A;

  --serif: "Noto Serif JP", "Times New Roman", "游明朝", "Yu Mincho", YuMincho, "ヒラギノ明朝 ProN", serif;
  --sans:  "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --ease:  cubic-bezier(.22, .61, .36, 1);
}

/* ============================================================
   _base : リセット / タイポグラフィ / レイアウトの器
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  overflow-x: hidden;
  /* 日本語の折り返し制御（段落ち・変な位置での改行を防ぐ） */
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; text-decoration: none; transition: opacity .3s var(--ease), color .3s var(--ease); }
a:hover { opacity: .7; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p, figure, dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; }

/* ---------- 段落ち対策ユーティリティ ---------- */
/* PC のみ改行させたい箇所は <br class="pc-br">、SP のみは <br class="sp-br"> */
.pc-br { display: inline; }
.sp-br { display: none; }

/* 見出し・短い文章は文節で折り返す（対応ブラウザのみ） */
.ttl, .ttl-en, .ttl-ja, .fv__ttl, .fv__cp, .lead-ttl,
.merit__ttl, .svc__ttl, .work__ttl, .biz__body h3, .greet__ttl,
.phead__en, .detail__ttl, .thanks__ttl, .philosophy__lead {
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* ---------- 展開の器 ---------- */
.inner   { width: min(1120px, 88%); margin-inline: auto; }
.inner-n { width: min(920px, 88%);  margin-inline: auto; }
.sec     { padding: 110px 0; }
.sec-sm  { padding: 80px 0; }
.pt      { padding-top: 78px; }

/* ---------- 見出し ---------- */
.ttl-en {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--green-600);
  letter-spacing: .06em;
  line-height: 1.2;
  display: block;
}
.ttl-ja {
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--body);
  margin-top: 6px;
  display: block;
}
.ttl-block { margin-bottom: 44px; }
.ttl-block.is-center { text-align: center; }

.txt { font-size: 15px; line-height: 2.1; color: var(--body); }
.txt p + p { margin-top: 16px; }

/* ============================================================
   TABLET  ~1024px
   ============================================================ */
@media screen and (max-width: 1024px) {
  .sec { padding: 80px 0; }
}

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  body { font-size: 14px; }
  .sec    { padding: 62px 0; }
  .sec-sm { padding: 48px 0; }
  .inner, .inner-n { width: 88%; }
  .pt { padding-top: 64px; }
  .ttl-en { font-size: 29px; }
  .ttl-block { margin-bottom: 30px; }

  .pc-br { display: none; }
  .sp-br { display: inline; }

  /* 長い文章はSPでは左揃え。中央揃えのままだと行末が不揃いで読みにくいため。
     見出し（.lead-ttl / .ttl-ja）は短いので中央揃えのままにする。
     ※ .lead-txt など後続パーシャルで center を当てている要素の上書きは
        _component.scss 側の SP ブロックで行う */
  .txt { text-align: left; }
}

/* ============================================================
   _component : btn / arrow / tbl / crumb / pager / 下層ヘッダー
   ============================================================ */

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  padding: 16px 30px;
  background: var(--green-800);
  color: #fff;
  font-size: 14px;
  letter-spacing: .1em;
  border: 1px solid var(--green-800);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--green-800); opacity: 1; }
.btn--ghost { background: transparent; color: var(--green-800); }
.btn--ghost:hover { background: var(--green-800); color: #fff; }

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--green-800);
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  transition: transform .35s var(--ease);
  flex-shrink: 0;
}

/* ---------- 下層ページヘッダー ---------- */
.phead {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.phead__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.phead__bg::after { content: ""; position: absolute; inset: 0; background: rgba(5, 43, 22, .55); }
.phead__cnt { position: relative; color: #fff; text-align: center; padding-top: 40px; }
.phead__en { font-family: var(--serif); font-size: 36px; letter-spacing: .1em; font-weight: 500; line-height: 1.2; }
.phead__ja { display: block; margin-top: 8px; font-size: 12.5px; letter-spacing: .18em; font-family: var(--sans); }

/* ---------- パンくず ---------- */
.crumb { padding: 16px 0; font-size: 11.5px; letter-spacing: .05em; color: #888; }
.crumb span + span::before { content: "／"; margin: 0 8px; color: #c5c5c5; }

/* ---------- 中央リード ---------- */
.lead-ttl {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.7;
  text-align: center;
}
.lead-txt { margin-top: 22px; text-align: center; }

/* ---------- テーブル ---------- */
.tbl th, .tbl td {
  border-bottom: 1px solid var(--line);
  padding: 18px 14px;
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}
.tbl th {
  width: 210px;
  font-weight: 500;
  color: var(--green-800);
  background: var(--green-050);
  white-space: nowrap;
}

/* ---------- 地図 ---------- */
.map { width: 100%; aspect-ratio: 16 / 7; min-height: 300px; background: var(--bg-alt); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__empty { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #9aa; font-size: 13px; letter-spacing: .08em; }

/* ---------- ページャー ---------- */
.pager, .wp-pagenavi { display: flex; gap: 8px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
.wp-pagenavi a, .wp-pagenavi span,
.pager span, .pager a {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
}
.wp-pagenavi span.current,
.pager .is-current { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.wp-pagenavi a:hover { background: var(--green-050); opacity: 1; }

/* ---------- 一覧に戻る ---------- */
.backlink { text-align: center; margin-top: 60px; }

/* ---------- ページトップ ---------- */
.pagetop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  background: var(--green-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}
.pagetop.is-show { opacity: 1; pointer-events: auto; }

/* ---------- ローディング ---------- */
.loading {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.loading.active { opacity: 1; pointer-events: auto; }
.loading__text {
  color: #fff;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: .16em;
  text-align: center;
}

/* ---------- フェードイン ----------
   JS が動く環境でだけ隠す。JS 無効時は最初から見えている状態になる。 */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .fade-in.scroll-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ---------- 電話リンクは PC では無効化（PEEES規約） ---------- */
@media screen and (min-width: 769px) {
  a.tel-link { pointer-events: none; }
}

/* ============================================================
   TABLET  ~1024px
   ============================================================ */
@media screen and (max-width: 1024px) {
  .phead { height: 260px; }
}

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .btn { min-width: 100%; padding: 15px 20px; }
  .phead { height: 210px; }
  .phead__en { font-size: 26px; }
  /* 見出しは中央のまま、本文は左揃えにして行末を揃える */
  .lead-ttl { font-size: 20px; }
  .lead-txt { text-align: left; }
  .tbl th, .tbl td { display: block; width: 100%; }
  .tbl th { padding: 10px 12px; white-space: normal; }
  .tbl td { padding: 12px 12px 20px; }
  .pagetop { width: 40px; height: 40px; right: 14px; bottom: 14px; }
  .map { min-height: 240px; aspect-ratio: 4 / 3; }
  .pager, .wp-pagenavi { margin-top: 40px; }
}

/* ============================================================
   _header : 固定ヘッダー / グローバルナビ / ハンバーガー
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 78px;
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.header.is-scrolled,
.header.is-solid { background: #fff; box-shadow: 0 1px 12px rgba(0, 0, 0, .08); }

.header__in {
  width: min(1400px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

/* ---------- ロゴ（テキストロゴ） ---------- */
.logo { display: flex; flex-direction: column; line-height: 1.15; font-family: var(--serif); }
.logo__mark { font-size: 23px; letter-spacing: .08em; color: #fff; transition: color .4s var(--ease); }
.logo__sub  { font-size: 9.5px; letter-spacing: .18em; color: rgba(255, 255, 255, .85); transition: color .4s var(--ease); font-family: var(--sans); }
.header.is-scrolled .logo__mark,
.header.is-solid .logo__mark { color: var(--green-800); }
.header.is-scrolled .logo__sub,
.header.is-solid .logo__sub { color: var(--body); }
.logo__mark::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 19px;
  background: var(--green-600);
  margin-right: 9px;
  vertical-align: -2px;
}

/* ---------- グローバルナビ ---------- */
.gnav { margin-left: auto; }
.gnav__list { display: flex; align-items: center; gap: 34px; }
.gnav__list a {
  font-size: 13.5px;
  letter-spacing: .08em;
  color: #fff;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.header.is-scrolled .gnav__list a,
.header.is-solid .gnav__list a { color: var(--ink); }
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--green-600);
  transition: width .35s var(--ease);
}
.gnav__list a:hover::after,
.gnav__list a.is-current::after { width: 100%; }
.gnav__list a.is-current,
.header.is-scrolled .gnav__list a.is-current { color: var(--green-600); }

.gnav__cta a {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  background: var(--green-800);
  color: #fff !important;
  font-size: 13px;
  letter-spacing: .1em;
}
.gnav__cta a::after { display: none; }
.gnav__cta a:hover { opacity: .85; }

/* ---------- ハンバーガー ---------- */
.hamb {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 120;
  padding: 0;
}
.hamb span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: .35s var(--ease);
}
.header.is-scrolled .hamb span,
.header.is-solid .hamb span,
.hamb.is-open span { background: var(--ink); }
.hamb span:nth-child(1) { top: 16px; }
.hamb span:nth-child(2) { top: 22px; }
.hamb span:nth-child(3) { top: 28px; }
.hamb.is-open span:nth-child(1) { top: 22px; transform: rotate(35deg); }
.hamb.is-open span:nth-child(2) { opacity: 0; }
.hamb.is-open span:nth-child(3) { top: 22px; transform: rotate(-35deg); }

/* ============================================================
   TABLET  ~1024px : ハンバーガー + 全画面オーバーレイ
   ============================================================ */
@media screen and (max-width: 1024px) {
  .gnav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
    margin: 0;
  }
  .gnav.is-open { opacity: 1; pointer-events: auto; }
  .gnav__list { flex-direction: column; gap: 26px; text-align: center; }
  /* CTA は白抜きのままにしたいので除外する */
  .gnav__list li:not(.gnav__cta) a { color: var(--ink) !important; font-size: 16px; }
  .gnav__cta a { font-size: 15px; padding: 13px 34px; }
  .hamb { display: block; }

  /* メニューを開いている間はロゴをオーバーレイの上に出し、濃色にして読めるようにする */
  .logo { position: relative; z-index: 120; }
  .header.is-menu-open .logo__mark { color: var(--green-800); }
  .header.is-menu-open .logo__sub { color: var(--body); }
}

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .header { height: 64px; }
  .logo__mark { font-size: 19px; }
  .logo__mark::before { height: 16px; width: 3px; margin-right: 7px; }
  .logo__sub { font-size: 8.5px; }
  .hamb span:nth-child(1) { top: 13px; }
  .hamb span:nth-child(2) { top: 19px; }
  .hamb span:nth-child(3) { top: 25px; }
  .hamb.is-open span:nth-child(1),
  .hamb.is-open span:nth-child(3) { top: 19px; }
}

/* ============================================================
   _footer : Contact セクション / フッター
   ============================================================ */

/* ---------- 共通 Contact セクション ---------- */
.contact-sec {
  position: relative;
  padding: 130px 0;
  background-size: cover;
  background-position: center;
  background-color: var(--green-800);
}
.contact-sec::before { content: ""; position: absolute; inset: 0; background: rgba(5, 43, 22, .35); }
.contact-sec.sec-sm { padding: 80px 0; }

.contact-card {
  position: relative;
  background: #fff;
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.contact-card__ttl .ttl-en { font-size: 34px; }
.contact-card__lead { margin-top: 16px; font-size: 13.5px; }
.contact-card__act { display: flex; flex-direction: column; gap: 12px; }
.contact-card__tel {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: .05em;
  color: var(--green-800);
}
.contact-card__note { font-size: 12px; color: #777; letter-spacing: .05em; line-height: 1.8; }

/* ---------- フッター ---------- */
.footer {
  position: relative;
  background: var(--green-900);
  color: rgba(255, 255, 255, .85);
  padding: 64px 0 0;
}
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__logo { font-family: var(--serif); font-size: 25px; letter-spacing: .08em; color: #fff; }
.footer__logo::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--green-600);
  margin-right: 9px;
  vertical-align: -2px;
}
.footer__info { margin-top: 18px; font-size: 12.5px; line-height: 2.1; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: flex-end;
  align-content: flex-start;
}
.footer__nav a { font-size: 12.5px; letter-spacing: .06em; }
.footer__copy {
  margin-top: 48px;
  padding: 18px 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: .06em;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .6);
}

/* ============================================================
   TABLET  ~1024px
   ============================================================ */
@media screen and (max-width: 1024px) {
  .contact-card { grid-template-columns: 1fr; padding: 40px 32px; gap: 24px; text-align: center; }
  .contact-card__act { align-items: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .footer__nav { justify-content: flex-start; }
}

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .contact-sec { padding: 70px 0; }
  .contact-sec.sec-sm { padding: 56px 0; }
  .contact-card { padding: 32px 22px; }
  .contact-card__tel { font-size: 22px; }
  .contact-card__lead { text-align: left; }
  .footer { padding-top: 48px; }
  .footer__logo { font-size: 21px; }
}

/* ============================================================
   _front-page : FVスライダー / ご挨拶 / 帯 / 事業紹介 / 3カード / 強み / News
   ============================================================ */

/* ---------- ファーストビュー（3枚フェード切り替え） ---------- */
.fv {
  position: relative;
  height: 82vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 90px;
  overflow: hidden;
  background: var(--green-900);
}
.fv__slider { position: absolute; inset: 0; }
.fv__slider .slick-list,
.fv__slider .slick-track { height: 100%; }
.fv__slide { position: relative; height: 82vh; min-height: 520px; }
.fv__slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* ゆっくりズーム */
  transform: scale(1);
  transition: transform 9s linear;
}
.fv__slider .slick-current .fv__slide-bg { transform: scale(1.09); }
.fv::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 43, 22, .58) 0%, rgba(5, 43, 22, .16) 42%, rgba(5, 43, 22, .66) 100%);
}
.fv__cnt { position: relative; z-index: 2; color: #fff; }
.fv__ttl {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: .09em;
  line-height: 1.35;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.fv__cp   { margin-top: 14px; font-size: 16px; letter-spacing: .1em; text-shadow: 0 2px 14px rgba(0, 0, 0, .5); }
.fv__meta { margin-top: 8px; font-size: 12.5px; letter-spacing: .12em; opacity: .9; }

/* ---------- ご挨拶 ---------- */
.greet { background: var(--green-900); color: #fff; padding: 96px 0; }
.greet__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; }
.greet__ttl { font-family: var(--serif); font-size: 31px; font-weight: 500; letter-spacing: .1em; }
.greet__line { width: 100%; height: 1px; background: rgba(255, 255, 255, .28); margin: 26px 0; }
.greet__lead { font-size: 14px; line-height: 2.1; color: rgba(255, 255, 255, .86); }
.greet__body p { font-size: 14.5px; line-height: 2.3; color: rgba(255, 255, 255, .9); }
.greet__body p + p { margin-top: 16px; }

/* ---------- 全幅パララックス帯 ---------- */
.band { height: 420px; background-size: cover; background-position: center; background-attachment: fixed; }

/* ---------- 事業紹介 ---------- */
.biz__grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.biz__body h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; }
.biz__body h4 { font-family: var(--serif); font-size: 16px; font-weight: 500; letter-spacing: .06em; margin-top: 12px; color: var(--green-700); }
.biz__body .txt { margin-top: 26px; }
.biz__btn { margin-top: 32px; }

/* ---------- 3カード ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { position: relative; height: 210px; overflow: hidden; display: block; background: #ddd; }
.card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s var(--ease); }
.card:hover .card__bg { transform: scale(1.07); }
.card::after { content: ""; position: absolute; inset: 0; background: rgba(5, 43, 22, .42); }
.card__cnt {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px;
  color: #fff;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.card__en { font-family: var(--serif); font-size: 29px; letter-spacing: .06em; line-height: 1.2; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); display: block; }
.card__ja { display: block; font-size: 12.5px; letter-spacing: .12em; margin-top: 4px; }
.card:hover .arrow { transform: translateX(5px); }

/* ---------- 選ばれる理由 ---------- */
.merits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.merit { border-top: 2px solid var(--green-800); padding-top: 22px; }
.merit__no { font-family: var(--serif); font-size: 13px; letter-spacing: .16em; color: var(--green-600); }
.merit__ttl { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.6; margin-top: 8px; letter-spacing: .04em; }
.merit__txt { font-size: 13.5px; line-height: 2; color: var(--body); margin-top: 14px; }

/* ============================================================
   TABLET  ~1024px
   ============================================================ */
@media screen and (max-width: 1024px) {
  .fv, .fv__slide { height: 70vh; }
  .fv__ttl { font-size: 33px; }
  .greet__grid { grid-template-columns: 1fr; gap: 34px; }
  .band { height: 320px; background-attachment: scroll; }
  .biz__grid { grid-template-columns: 1fr; gap: 20px; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card { height: 180px; }
  .merits { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .fv, .fv__slide { height: 78vh; min-height: 440px; }
  .fv { padding-bottom: 60px; }
  .fv__ttl  { font-size: 26px; }
  .fv__cp   { font-size: 13.5px; }
  .fv__meta { font-size: 11px; }
  .greet { padding: 62px 0; }
  .greet__ttl { font-size: 24px; }
  .greet__lead, .greet__body p { text-align: left; }
  .band { height: 220px; }
  .biz__body h3 { font-size: 20px; }
  .biz__body h4 { font-size: 13.5px; }
  .card__en { font-size: 24px; }
  .merit__ttl { font-size: 17px; }
}

/* ============================================================
   _company : 会社概要（企業理念 / ミッション・ビジョン）
   ============================================================ */
.philosophy__item { text-align: center; }
.philosophy__item + .philosophy__item { margin-top: 66px; }

.philosophy__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--body);
}
.philosophy__en {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--green-600);
  position: relative;
  padding-left: 26px;
}
.philosophy__en::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--green-600);
}

.philosophy__lead {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .06em;
  color: var(--green-800);
}
.philosophy__txt {
  margin-top: 22px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--body);
}

/* ============================================================
   TABLET  ~1024px
   ============================================================ */
@media screen and (max-width: 1024px) {
  .philosophy__lead { font-size: 24px; }
}

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .philosophy__item + .philosophy__item { margin-top: 48px; }
  .philosophy__lead { font-size: 19px; line-height: 1.8; }
  /* 本文は行末を揃えたいので左寄せにする */
  .philosophy__txt { text-align: left; font-size: 14px; }
}

/* ============================================================
   _service : 事業内容一覧
   ============================================================ */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 46px; }
.svc__img { height: 230px; background-size: cover; background-position: center; background-color: var(--bg-alt); }
.svc__no { font-family: var(--serif); font-size: 12px; letter-spacing: .18em; color: var(--green-600); margin-top: 20px; }
.svc__ttl { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .06em; margin-top: 6px; line-height: 1.5; }
.svc__ttl .tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--green-800);
  color: #fff;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .1em;
  vertical-align: 3px;
}
.svc__txt { margin-top: 12px; font-size: 13.5px; line-height: 2.05; color: var(--body); }

/* ---------- 対応エリア ---------- */
.area { text-align: center; }
.area .btn { margin-top: 30px; }

/* ============================================================
   TABLET  ~1024px
   ============================================================ */
@media screen and (max-width: 1024px) {
  .svc { grid-template-columns: 1fr; gap: 44px; }
}

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .svc__img { height: 190px; }
  .svc__ttl { font-size: 18px; }
  .svc__ttl .tag { margin-left: 8px; vertical-align: 2px; }
  .svc__txt { text-align: left; }
}

/* ============================================================
   _works : 施工事例 一覧（写真ギャラリー）/ 拡大表示 / 詳細
   ============================================================ */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px 26px; }

/* ---------- 写真（クリックで拡大） ---------- */
.work__btn {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}
.work__img {
  display: block;
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-alt);
  transition: transform .7s var(--ease);
}
.work__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 43, 22, 0);
  transition: background .35s var(--ease);
}
.work__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 2;
}
.work__btn:hover .work__img,
.work__btn:focus-visible .work__img { transform: scale(1.06); }
.work__btn:hover::after,
.work__btn:focus-visible::after { background: rgba(5, 43, 22, .38); }
.work__btn:hover .work__zoom,
.work__btn:focus-visible .work__zoom { opacity: 1; transform: scale(1); }
.work__btn:focus-visible { outline: 2px solid var(--green-600); outline-offset: 3px; }

.work__ttl {
  font-size: 15px;
  margin-top: 14px;
  line-height: 1.7;
  font-weight: 500;
}

/* ---------- 拡大表示モーダル ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: rgba(5, 43, 22, .9);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
  transform: scale(.94);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); opacity: 1; }
.lightbox__img {
  display: block;
  max-width: min(1100px, 90vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
.lightbox__caption {
  margin-top: 18px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .06em;
  line-height: 1.7;
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 写真が明るいと白抜きの×が埋もれるので、下地を敷いておく */
  background: rgba(5, 43, 22, .72);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background .3s var(--ease);
}
.lightbox__close:hover { background: var(--green-800); }
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox__figure, .work__img { transition: none; }
}

/* ---------- 絞り込み（現在は未使用。種別を出す場合に使う） ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter a { padding: 8px 18px; border: 1px solid var(--line); font-size: 12.5px; letter-spacing: .08em; }
.filter a.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }

.work__cat {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 11px;
  border: 1px solid var(--green-600);
  color: var(--green-700);
  font-size: 10.5px;
  letter-spacing: .1em;
}
.work__meta { margin-top: 6px; font-size: 12px; color: #8a8a8a; letter-spacing: .05em; }

/* ---------- 詳細 ---------- */
.detail__hero { height: 400px; background-size: cover; background-position: center; background-color: var(--bg-alt); }
.detail__ttl { font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.6; letter-spacing: .05em; margin-top: 34px; }
.detail__meta { margin-top: 12px; font-size: 12px; color: #8a8a8a; letter-spacing: .06em; }
.detail__body { margin-top: 34px; }
.detail__body p + p { margin-top: 18px; }
.detail__body h2,
.detail__body h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--green-800);
  letter-spacing: .05em;
  line-height: 1.6;
}
.detail__body img { height: auto; }
.detail__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.detail__gallery div { height: 210px; background-size: cover; background-position: center; background-color: var(--bg-alt); }

/* ============================================================
   TABLET  ~1024px
   ============================================================ */
@media screen and (max-width: 1024px) {
  .works { grid-template-columns: 1fr 1fr; }
  .work__img { height: 220px; }
  .detail__hero { height: 300px; }
}

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .works { grid-template-columns: 1fr; gap: 30px; }
  .work__img { height: 210px; }
  /* タップ環境ではホバーが効かないので虫めがねを常時うっすら出す */
  .work__zoom { opacity: .85; transform: none; font-size: 18px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
  .lightbox { padding: 24px 16px; }
  .lightbox__img { max-height: 68vh; }
  .lightbox__close { top: 10px; right: 10px; }
  .detail__hero { height: 200px; }
  .detail__ttl { font-size: 21px; }
  .detail__body { text-align: left; }
  .detail__gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   _contact : お問い合わせ / Contact Form 7
   ============================================================ */
.contact__head { text-align: center; }
.contact__tel {
  margin-top: 20px;
  font-size: 26px;
  font-family: var(--serif);
  color: var(--green-800);
  letter-spacing: .05em;
  line-height: 1.4;
}
.contact__fax { font-size: 12.5px; color: #888; }

.form { margin-top: 56px; }

/* CF7 が自動で付ける <p> の余白は殺しておく */
.form .wpcf7-form p { margin: 0; }

/* ---------- 1行 ＝ class="row" を付けた <label> ---------- */
.form .wpcf7-form label.row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  font-size: 14px;
  line-height: 1.8;
}
.form .wpcf7-form label.row > .lbl { padding-top: 10px; display: block; }
/* ラベル文言が2行になっても入力欄と高さがずれないようにする */
.form .wpcf7-form label.row > .wpcf7-form-control-wrap { display: block; }

/* ---------- プライバシーポリシー同意 ---------- */
.form .policy {
  margin-top: 34px;
  padding: 26px;
  background: var(--bg-alt);
  text-align: center;
  font-size: 13px;
  line-height: 1.9;
}
.form .policy label { display: inline; font-size: 13px; }
.form .policy a { color: var(--green-700); text-decoration: underline; }
.form .policy .wpcf7-list-item-label { margin-left: 2px; }

/* ---------- 必須（red） / 任意（blue） バッジ ---------- */
.red,
.blue {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  color: #fff;
  font-size: 10px;
  font-family: var(--sans);
  letter-spacing: .08em;
  line-height: 1.7;
  vertical-align: 2px;
  border-radius: 1px;
}
.red  { background: var(--req); }   /* 必須 */
.blue { background: #2E5FA3; }      /* 任意 */

/* ---------- 入力欄 ---------- */
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--green-800) 50%), linear-gradient(135deg, var(--green-800) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form textarea { height: 180px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--green-600); outline-offset: -2px; background: #fff; }

.form .wpcf7-list-item { margin: 0; }
.form input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-800); vertical-align: -3px; margin-right: 6px; }

/* ---------- 送信ボタン ---------- */
.form .wpcf7-submit,
.form input[type="submit"],
.form .wpcf7-previous {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  padding: 16px 30px;
  background: var(--green-800);
  color: #fff;
  font-size: 14px;
  letter-spacing: .1em;
  border: 1px solid var(--green-800);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form .wpcf7-submit:hover,
.form .wpcf7-previous:hover { background: transparent; color: var(--green-800); }
.form .wpcf7-previous { background: transparent; color: var(--green-800); }
.form .wpcf7-previous:hover { background: var(--green-800); color: #fff; }

.form-submit { margin-top: 34px; }
.form-submit p { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 0; }
.form-note { margin-top: 14px; font-size: 12px; color: #888; text-align: center; line-height: 1.9; }

/* ---------- CF7 のバリデーション表示 ---------- */
.wpcf7-not-valid-tip { color: var(--req); font-size: 12px; margin-top: 6px; display: block; }
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}
/* 既定の margin:auto のままだと flex の余白を吸ってボタンが左に寄るので、
   送信ボタン行の中では余白を持たせない */
.wpcf7-spinner { display: block; margin: 10px auto 0; }
.form-submit .wpcf7-spinner { margin: 0 0 0 10px; align-self: center; }

/* ---------- 確認画面 ---------- */
.form .multiform-text,
.form .wpcf7-multiform {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: var(--ink);
  white-space: pre-wrap;
}

/* ---------- 送信完了 ---------- */
.thanks { text-align: center; padding: 130px 0; }
.thanks__ttl { font-family: var(--serif); font-size: 29px; font-weight: 500; letter-spacing: .06em; line-height: 1.6; }
.thanks__txt { margin-top: 22px; }
.thanks__btn { margin-top: 40px; }

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .contact__head { text-align: left; }
  .contact__tel, .contact__fax { text-align: center; }
  .contact__tel { font-size: 21px; }
  .form { margin-top: 36px; }
  .form .wpcf7-form label.row { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .form .policy { padding: 20px 16px; text-align: left; }
  .thanks { padding: 80px 0; }
  .thanks__ttl { font-size: 22px; }
  .thanks__txt { text-align: left; }
}

/* ============================================================
   _page : お知らせ / プライバシーポリシー / 予備ページ / 404 / 汎用
   ============================================================ */

/* ---------- 記事リスト（検索結果などの汎用一覧） ---------- */
.news-list .news__item {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.news-list .news__item:first-child { border-top: 1px solid var(--line); }
.news-list .news__txt { flex: 1; min-width: 0; }
.news-list .news__date { font-size: 12px; letter-spacing: .1em; color: #8a8a8a; }
.news-list .news__ttl { font-size: 14.5px; margin-top: 4px; line-height: 1.7; color: var(--ink); }
.news-list .arrow { width: 38px; height: 38px; background: var(--green-800); color: #fff; }

/* ---------- 本文（prose） ---------- */
.prose h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 44px 0 14px; letter-spacing: .05em; line-height: 1.6; }
.prose h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 40px 0 12px; letter-spacing: .05em; line-height: 1.6; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 14px; line-height: 2.1; color: var(--body); }
.prose p + p { margin-top: 16px; }
.prose ul { margin-top: 10px; padding-left: 1.2em; list-style: disc; }
.prose ol { margin-top: 10px; padding-left: 1.4em; list-style: decimal; }
.prose a { color: var(--green-700); text-decoration: underline; }
.prose img { margin: 26px 0; }

/* ---------- 予備ページ セクション ---------- */
.sec-block + .sec-block { margin-top: 48px; }
.sec-block__img { height: 260px; background-size: cover; background-position: center; background-color: var(--bg-alt); margin: 26px 0; }
.reserve__note { text-align: center; color: #999; font-size: 12.5px; line-height: 1.9; margin-bottom: 34px; }

/* ============================================================
   SP  ~768px
   ============================================================ */
@media screen and (max-width: 768px) {
  .prose h2 { font-size: 19px; }
  .prose h3 { font-size: 17px; }
  .prose p, .prose li { text-align: left; }
  .sec-block__img { height: 190px; }
  .reserve__note { text-align: left; }
  .news-list .news__item { gap: 14px; padding: 16px 2px; }
  .news-list .news__ttl { font-size: 13.5px; }
}


