/* ============================================================
   style.css ｜ 株式会社 志賀施工
   ------------------------------------------------------------
   サイトの見た目を決めるメインのCSSです。
   色やサイズを変えたいときは、まず下の「カラー設定」を編集してください。
   ============================================================ */

/* ------------------------------------------------------------
   1. カラー・共通設定（ここを変えるとサイト全体の色が変わります）
   ------------------------------------------------------------ */
:root {
  /* メインカラー＝黒、アクセント＝緑 */
  --ink:          #161616;   /* メインの黒（ヘッダー・会社案内などの濃い背景／濃い見出し文字） */
  --ink-deep:     #0d0d0d;   /* さらに濃い黒（フッター・CTA・ボタン） */
  --green:        #6f9452;   /* アクセントの緑（ボタン・差し色／ロゴと同色） */
  --green-hover:  #5c7e43;   /* ボタンホバー時の緑 */
  --green-accent: #9cc35f;   /* 明るい緑の差し色（「美しく」・番号など） */

  /* 事業内容セクション専用カラー */
  --service-icon:  #5a6b48;  /* アイコンの線の色（深緑グレー） */
  --service-title: #1a1a1a;  /* 見出しの色（黒に近いダーク） */
  --service-desc:  #777777;  /* 説明文の色（グレー） */

  --text:       #2c2c2c;     /* 基本の文字色 */
  --text-muted: #666666;     /* 補足テキストの色 */
  --text-light: #ffffff;     /* 白文字 */

  --bg:       #ffffff;       /* 背景・白 */
  --bg-gray:  #f4f4f4;       /* うすいグレー背景（ニュートラル） */
  --border:   #e6e6e4;       /* 罫線の色 */

  --max-width: 1180px;       /* コンテンツの最大幅 */
  --radius: 6px;             /* 角丸 */
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

/* 差し色テキスト */
.text-accent {
  color: var(--green-accent);
}

/* ------------------------------------------------------------
   2. 共通パーツ
   ------------------------------------------------------------ */

/* 中央寄せコンテナ */
.header__inner,
.hero__inner,
.services__inner,
.works__inner,
.about__inner,
.footer__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* セクション見出し */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 4px;
  border-radius: 2px;
  background: var(--green);
}
.section-title--light {
  color: var(--text-light);
}
/* 中央寄せ＋下線タイプの見出し（事業内容・施工実績） */
.section-title--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding-left: 0;
  font-size: 1.6rem;
  margin-bottom: 40px;
}
.section-title--center::before {
  display: none;            /* 左の縦バーを消す */
}
.section-title--center .section-title__bar {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--green);
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, opacity .25s ease;
  border-radius: var(--radius);
}
.btn__arrow {
  font-size: 1.2em;
  line-height: 1;
}

/* お問い合わせボタン（緑） */
.btn--contact {
  background: var(--green);
  color: var(--text-light);
}
.btn--contact:hover {
  background: var(--green-hover);
}

/* ヒーロー・CTAの主要ボタン（緑のアクセント） */
.btn--hero {
  background: var(--green);
  color: var(--text-light);
  padding: 18px 40px;
  font-size: 1.05rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}
.btn--hero:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

/* 黒いボタン（汎用） */
.btn--dark {
  background: var(--ink-deep);
  color: var(--text-light);
  padding: 14px 36px;
}
.btn--dark:hover {
  background: var(--green);
}

/* 「もっと見る」ボタン（緑） */
.btn--more {
  background: var(--green);
  color: var(--text-light);
  padding: 13px 40px;
}
.btn--more:hover {
  background: var(--green-hover);
}

/* メールボタン（枠線） */
.btn--mail {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text-light);
  padding: 12px 28px;
  font-weight: 500;
}
.btn--mail:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ------------------------------------------------------------
   3. ヘッダー
   ------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.97);
  /* ※ backdrop-filter は使用しない。
     指定するとヘッダーが fixed 子要素の「包含ブロック」になり、
     スマホのスライドインメニュー（position:fixed）がヘッダー内に閉じ込められて
     全画面に開かなくなるため。背景は 0.97 の不透明度で十分カバーできる。 */
  transition: background-color .3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

/* ロゴ */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
}
.logo__mark {
  color: var(--green-accent);
  display: flex;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo__name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.logo__en {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.65);
}

/* ナビ */
.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__link {
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__link:hover::after {
  transform: scaleX(1);
}
.nav__contact-sp {
  display: none; /* スマホメニュー内でのみ表示 */
}

/* PCのお問い合わせボタン */
.header__contact {
  padding: 12px 22px;
  text-align: left;
  line-height: 1.3;
}
.btn--contact__icon {
  font-size: 1.3rem;
}
.btn--contact__body {
  display: flex;
  flex-direction: column;
}
.btn--contact__main {
  font-size: 0.95rem;
}
.btn--contact__sub {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.9;
}

/* ハンバーガー */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------
   4. ヒーロー
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  color: var(--text-light);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 38%, rgba(0, 0, 0, 0.25) 72%, rgba(0, 0, 0, 0.08) 100%),
    url("../assets/images/hero.jpg") center / cover no-repeat;
}
.hero__inner {
  padding-block: 60px;
}
.hero__copy {
  max-width: 620px;
}
.hero__lead {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.hero__text {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 38px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   5. 事業内容（写真カードを横並び）
   ------------------------------------------------------------ */
.services {
  background: var(--bg-gray);
  padding-block: 72px;
}
.services__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.service-item {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}
.service-item__link {
  display: block;
  height: 100%;
}
.service-item__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.service-item__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.service-item:hover .service-item__photo img {
  transform: scale(1.06);
}
.service-item__body {
  padding: 20px 20px 22px;
}
.service-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--service-title);
  margin-bottom: 12px;
}
.service-item__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-item__desc {
  flex: 1;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--service-desc);
}
.service-item__arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--green);
  transition: transform .25s ease;
}
.service-item:hover .service-item__arrow {
  transform: translateX(4px);
}

/* ------------------------------------------------------------
   6. 施工実績（暗い背景・サムネイル横並び）
   ------------------------------------------------------------ */
.works {
  background: var(--ink-deep);
  padding-block: 64px;
}
.works__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 38px;
}
.works__thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
}
.works__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.works__thumb:hover img {
  transform: scale(1.08);
}
.works__more {
  display: flex;
  margin-inline: auto;
  width: fit-content;
}

/* ------------------------------------------------------------
   7. 会社案内（濃い緑の帯）
   ------------------------------------------------------------ */
.about {
  background: var(--ink);
  color: var(--text-light);
  padding-block: 70px;
}
.about__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 48px;
  align-items: start;
  margin-top: 52px;
  padding-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);   /* 施工対応エリアとの区切り線 */
}
.about__text {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
}

/* 強み3つ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 6px;
}
.feature {
  text-align: center;
}
.feature__icon {
  color: var(--green-accent);
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.feature__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature__desc {
  font-size: 0.74rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

/* 電話お問い合わせ */
.about__tel {
  background: var(--green);
  border-radius: 8px;
  padding: 24px 30px;
  text-align: center;
  min-width: 290px;
}
.about__tel-label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.about__tel-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.about__tel-icon {
  font-size: 1.4rem;
}
.about__tel-hours {
  font-size: 0.72rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

/* 施工対応エリア（日本地図）※会社案内より上に配置 */
.area {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.area__title {
  text-align: center;
  color: var(--text-light);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.area__title span {
  display: block;
  margin-top: 8px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--green-accent);
}
.area__body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
  margin-top: 34px;
}
.area__desc {
  font-size: 0.98rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
}
.area__desc strong { color: var(--green-accent); }
.area__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.area__chips li {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 7px 18px;
}
.area__region {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 12px;
}
.area__note {
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}
.area__legend {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}
.area__legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--green);
}
.area__map {
  text-align: center;
}
.area__map img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ------------------------------------------------------------
   8. お問い合わせフォーム
   ------------------------------------------------------------ */
.contact {
  background: var(--bg-gray);
  padding-block: 80px;
}
.contact__inner {
  max-width: 760px;        /* フォームは少し狭めの方が見やすい */
  margin-inline: auto;
  padding-inline: 24px;
}
.contact__lead {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-form {
  background: var(--bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 44px 44px 40px;
}

/* 入力行 */
.form-row {
  margin-bottom: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

/* 必須・任意バッジ */
.form-required,
.form-optional {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  border-radius: 3px;
  padding: 2px 7px;
  margin-left: 6px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.form-required { background: #c0564c; }   /* 必須＝赤 */
.form-optional { background: #9a9a92; }   /* 任意＝グレー */

/* 入力欄 共通 */
.form-control {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder {
  color: #b3b3ac;
}
.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(93, 122, 63, 0.15);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}
/* セレクトのドロップダウン矢印 */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* 個人情報同意 */
.form-consent {
  text-align: center;
  margin: 6px 0 26px;
}
.form-consent__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--text);
  cursor: pointer;
}
.form-consent__label input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  cursor: pointer;
}
.contact__privacy {
  color: var(--green);
  text-decoration: underline;
}
.contact__privacy:hover {
  color: var(--green-hover);
}

/* 送信ボタン */
.form-submit {
  text-align: center;
}
.btn--submit {
  background: var(--green);
  color: #fff;
  padding: 15px 64px;
  font-size: 1.02rem;
}
.btn--submit:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

/* 送信完了メッセージ */
.form-thanks {
  margin-top: 26px;
  text-align: center;
  font-weight: 700;
  line-height: 1.9;
  color: var(--green);
  background: rgba(93, 122, 63, 0.08);
  border: 1px solid rgba(93, 122, 63, 0.25);
  border-radius: 8px;
  padding: 20px;
}

/* 送信エラーメッセージ */
.form-error {
  margin-top: 20px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.9;
  color: #c0564c;
  background: rgba(192, 86, 76, 0.07);
  border: 1px solid rgba(192, 86, 76, 0.3);
  border-radius: 8px;
  padding: 16px;
}

/* ------------------------------------------------------------
   9. 下層ページ共通（ページ見出し・パンくず・連絡先・規約）
   ------------------------------------------------------------ */

/* ページ見出し（お問い合わせ・プライバシー等） */
.page-head {
  background: var(--ink);
  color: var(--text-light);
  text-align: center;
  padding-top: calc(76px + 54px);   /* 固定ヘッダー分 + 余白 */
  padding-bottom: 54px;
}
.page-head__title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.page-head__en {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: var(--green-accent);
  margin-top: 10px;
}

/* パンくず */
.breadcrumb {
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}
.breadcrumb__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 12px 24px;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.breadcrumb__inner a { color: var(--green); }
.breadcrumb__inner a:hover { text-decoration: underline; }
.breadcrumb__inner span[aria-hidden="true"] { margin: 0 8px; color: #bbb; }

/* 連絡先ブロック（電話＝受付時間 ／ フォーム＝24時間受付） */
.contact-info {
  background: var(--bg);
  padding-block: 50px;
}
.contact-info__inner {
  max-width: 880px;
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.contact-info__item { text-align: center; }
.contact-info__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.contact-info__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.contact-info__tel span { color: var(--green); }
.contact-info__mail {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
  line-height: 1.3;
  word-break: break-all;
}
.contact-info__mail:hover {
  text-decoration: underline;
}
.contact-info__form {
  margin-top: 10px;
}
.contact-info__badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 7px 22px;
  letter-spacing: 0.05em;
}
.contact-info__note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.contact-info__divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin-block: 6px;
}

/* 規約・プライバシー本文 */
.legal {
  background: var(--bg);
  padding-block: 60px 72px;
}
.legal__inner {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: 24px;
}
.legal__intro {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 36px;
}
.legal__section { margin-bottom: 34px; }
.legal__heading {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  border-left: 4px solid var(--green);
  padding-left: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.legal p {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 10px;
}
.legal ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 8px 0 4px;
}
.legal li {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text);
}
.legal__box {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 14px;
}
.legal__box p {
  margin-bottom: 4px;
  font-size: 0.88rem;
}
.legal__date {
  text-align: right;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 30px;
}
.legal__back {
  text-align: center;
  margin-top: 44px;
}

/* ------------------------------------------------------------
   10. フッター
   ------------------------------------------------------------ */
.footer {
  background: var(--ink-deep);
  color: var(--text-light);
  padding-block: 30px;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.logo--footer .logo__name {
  font-size: 1.05rem;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-inline: auto;
}
.footer__nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color .2s ease;
}
.footer__nav a:hover {
  color: var(--green-accent);
}
.footer__copyright {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   11. レスポンシブ（スマホ・タブレット対応）
   ============================================================ */

/* --- タブレット（1024px以下） --- */
@media (max-width: 1024px) {
  /* 事業内容：4列 → 2列 */
  .services__list {
    grid-template-columns: repeat(2, 1fr);
  }
  /* 施工実績：6列 → 3列 */
  .works__row {
    grid-template-columns: repeat(3, 1fr);
  }
  .about__inner {
    grid-template-columns: 1fr 1fr;
  }
  .about__tel {
    grid-column: 1 / -1;
    max-width: 420px;
    margin-inline: auto;
    width: 100%;
  }
}

/* --- スマホ（768px以下） --- */
@media (max-width: 768px) {

  /* ヘッダー：ハンバーガー表示 */
  .header__inner {
    height: 64px;
  }
  .header__contact {
    display: none;
  }
  .hamburger {
    display: block;
  }

  /* スライドインメニュー */
  .nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: flex-start;  /* 上詰め（低い画面でも上端が見切れずスクロール可能） */
    padding: 14px 24px 18px;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin-left: 0;
  }
  .nav.is-open {
    transform: translateX(0);
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex: 0 0 auto;               /* 中身の高さを保持（潰れ防止） */
  }
  .nav__list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav__link {
    display: block;
    padding: 12px 4px;
    font-size: 1.05rem;
  }
  .nav__link::after {
    display: none;
  }
  .nav__contact-sp {
    display: flex;
    margin-top: 14px;
    padding: 13px;
    font-size: 1rem;
    flex: 0 0 auto;
  }

  /* ヒーロー */
  .hero {
    min-height: 78vh;
    padding-top: 64px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.66) 55%, rgba(0, 0, 0, 0.84) 100%),
      url("../assets/images/hero.jpg") center / cover no-repeat;
  }
  .hero__inner {
    padding-block: 40px;
  }
  .btn--hero {
    width: 100%;
    padding: 16px 24px;
  }

  /* 事業内容 */
  .services {
    padding-block: 52px;
  }
  .services__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .service-item__body {
    padding: 16px 14px 18px;
  }
  .service-item__title {
    font-size: 1rem;
  }

  /* 施工実績 */
  .works {
    padding-block: 48px;
  }
  .works__row {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .works__more {
    width: 100%;
  }

  /* 会社案内 */
  .about {
    padding-block: 52px;
  }
  .about__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 40px;      /* 施工対応エリアとの区切り（スマホ用に調整） */
    padding-top: 38px;
  }
  .features {
    gap: 28px 16px;
  }
  /* 施工対応エリア：縦積み（地図→テキスト） */
  .area {
    margin-top: 0;
    padding-top: 0;
  }
  .area__body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .area__map {
    order: -1;   /* スマホでは地図を上に */
  }
  .area__map img {
    max-width: 250px;
  }

  /* お問い合わせフォーム */
  .contact {
    padding-block: 56px;
  }
  .contact-form {
    padding: 28px 20px 26px;
  }
  .form-grid {
    grid-template-columns: 1fr;   /* 2列 → 1列 */
    gap: 0;
  }
  .btn--submit {
    width: 100%;
    padding: 15px 24px;
  }

  /* 下層ページ（お問い合わせ・プライバシー） */
  .page-head {
    padding-top: calc(64px + 40px);   /* スマホはヘッダー64px */
    padding-bottom: 40px;
  }
  .contact-info {
    padding-block: 36px;
  }
  .contact-info__inner {
    grid-template-columns: 1fr;       /* 横並び → 縦積み */
    gap: 26px;
  }
  .contact-info__divider {
    width: auto;
    height: 1px;
    margin-inline: 24px;
  }
  .legal {
    padding-block: 44px 52px;
  }

  /* フッター */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .footer__nav {
    justify-content: center;
  }
}

/* --- 小型スマホ（400px以下） --- */
@media (max-width: 400px) {
  .services__list {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .about__tel-number {
    font-size: 1.6rem;
  }
}

/* アクセシビリティ：動きを抑える設定の人向け */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   12. サービス詳細ページ（外構工事 等）
   ============================================================ */

/* サービスヒーロー */
.service-hero {
  min-height: 360px;
  display: flex;
  align-items: center;
  padding-top: 76px;          /* 固定ヘッダー分 */
  color: var(--text-light);
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.service-hero__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 40px 24px;
}
.service-hero__en {
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: var(--green-accent);
  margin-bottom: 12px;
}
.service-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.service-hero__sub {
  font-size: 1rem;
  margin-top: 16px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* 共通の本文幅 */
.service-intro__inner,
.handle__inner,
.reasons__inner,
.flow__inner,
.cta-band__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}
.pc-only { display: inline; }

/* 外構工事とは */
.service-intro {
  background: var(--bg);
  padding-block: 72px;
}
.lead-text {
  text-align: center;
  font-size: 0.96rem;
  line-height: 2.1;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto 46px;
}
.lead-text strong { color: var(--ink); }

.value-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin-inline: auto;
}
.value-point {
  text-align: center;
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 32px 24px;
}
.value-point__icon {
  color: var(--green);
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.value-point__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.value-point__desc {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* 外構工事で扱うもの */
.handle {
  background: var(--bg-gray);
  padding-block: 72px;
}
.handle__lead {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 44px;
}
.handle__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.handle-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 30px 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.handle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}
.handle-card__icon {
  color: var(--green);
  display: flex;
  margin-bottom: 16px;
}
.handle-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.handle-card__desc {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* 選ばれる理由（濃い緑の帯） */
.reasons {
  background: var(--ink);
  padding-block: 72px;
}
.reasons__list {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin-inline: auto;
}
.reason {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 24px 28px;
}
.reason__num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green-accent);
  flex-shrink: 0;
}
.reason__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}
.reason__desc {
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.8);
}

/* 施工の流れ（縦タイムライン） */
.flow {
  background: var(--bg);
  padding-block: 72px;
}
.flow__list {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding-bottom: 26px;
}
.flow-step:last-child {
  padding-bottom: 0;
}
/* ステップ同士をつなぐ縦線 */
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 29px;          /* 丸印（60px）の中心 */
  top: 64px;
  bottom: -2px;
  width: 2px;
  background: rgba(93, 122, 63, 0.3);
}
/* 番号の丸印 */
.flow-step__marker {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(93, 122, 63, 0.35);
}
.flow-step__marker small {
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
  opacity: 0.9;
}
.flow-step__marker strong {
  font-family: var(--font-serif);
  font-size: 1.45rem;
}
/* 内容カード */
.flow-step__content {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 16px 24px;
  position: relative;
}
/* カード左側の小さな三角（吹き出し風で時系列を強調） */
.flow-step__content::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 22px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 8px 8px 0;
  border-color: transparent var(--bg-gray) transparent transparent;
}
.flow-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.flow-step__desc {
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* お問い合わせ誘導バンド */
.cta-band {
  background: var(--ink-deep);
  color: var(--text-light);
  padding-block: 60px;
  text-align: center;
}
.cta-band__title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.cta-band__text {
  font-size: 0.9rem;
  line-height: 1.9;
  margin: 16px 0 30px;
  color: rgba(255, 255, 255, 0.85);
}
.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-band__btn {
  font-size: 1rem;
}
.cta-band__tel a {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-light);
}
.cta-band__tel span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* --- サービス詳細ページのレスポンシブ --- */
@media (max-width: 1024px) {
  .handle__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .service-hero {
    min-height: 280px;
    padding-top: 64px;
  }
  .service-intro,
  .handle,
  .reasons,
  .flow { padding-block: 52px; }
  .pc-only { display: none; }

  .value-points { grid-template-columns: 1fr; gap: 16px; }
  .handle__list { grid-template-columns: 1fr; }
  /* 施工の流れ（縦タイムライン）：丸印を少し小さく */
  .flow-step { grid-template-columns: 50px 1fr; gap: 16px; }
  .flow-step__marker { width: 50px; height: 50px; }
  .flow-step__marker strong { font-size: 1.2rem; }
  .flow-step:not(:last-child)::before { left: 24px; top: 54px; }
  .reason { gap: 16px; padding: 20px; }
  .reason__num { font-size: 1.7rem; }
  .cta-band__btn { width: 100%; }
}

/* ============================================================
   13. 施工実績ページ（Before/After ギャラリー）
   ============================================================ */
.works-page {
  background: var(--bg-gray);
  padding-block: 64px;
}
.works-page__inner {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: 24px;
}
.works-page__lead {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* カテゴリ絞り込みボタン */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.work-filter__btn {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 22px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.work-filter__btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.work-filter__btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* 事例グリッド */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

/* 事例カード */
.case-card {
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
/* Before / After 画像（左右に並べて中央に矢印） */
.case-card__images {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  background: #000;
}
.case-card__img {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
/* After写真のみの事例（1枚を全幅で表示） */
.case-card__images--single {
  grid-template-columns: 1fr;
}
.case-card__images--single .case-card__img {
  aspect-ratio: 16 / 9;
}
.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.case-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
}
.case-card__badge--before { background: rgba(60, 60, 60, 0.85); }
.case-card__badge--after  { background: var(--green); }
.case-card__arrow {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: 1.1rem;
  margin-inline: -17px;       /* 画像の境目に重ねる */
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.case-card__body {
  padding: 20px 22px 24px;
}
.case-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.case-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
  padding: 3px 10px;
}
.case-card__date {
  font-size: 0.74rem;
  color: var(--text-muted);
}
.case-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.5;
}
.case-card__desc {
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .works-page { padding-block: 48px; }
  .case-grid { grid-template-columns: 1fr; gap: 22px; }
  .work-filter { margin-bottom: 32px; }
  .work-filter__btn { font-size: 0.8rem; padding: 8px 16px; }
}

/* ============================================================
   14. 協力会社募集（業者様向け）・サブ導線
   ============================================================ */

/* 業者様用のサブ導線ボタン（一般CTAより控えめな枠線スタイル） */
.btn--partner {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  padding: 11px 26px;
  font-size: 0.84rem;
  font-weight: 500;
  gap: 8px;
}
.btn--partner:hover {
  border-color: var(--green-accent);
  color: var(--green-accent);
  background: rgba(255, 255, 255, 0.05);
}
.btn--partner .btn__arrow { font-size: 1em; }

/* ヒーロー下・CTAバンド内のサブ導線の余白 */
.hero__partner { margin-top: 16px; }
.cta-band__sub {
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}
.cta-band__sub a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-band__sub a:hover { color: var(--green-accent); }

/* 一般⇄業者の相互リンク注記（お問い合わせページ等） */
.contact-switch {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 8px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.contact-switch a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 協力会社募集ページ：募集のご案内 */
.partner-intro {
  background: var(--bg);
  padding-block: 60px 44px;
}
.partner-intro__inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 24px;
}
.partner-intro__lead {
  text-align: center;
  font-size: 0.98rem;
  line-height: 2;
  color: var(--text);
  margin-bottom: 40px;
}
.partner-intro__lead strong { color: var(--green); }
.partner-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.partner-card {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 28px 30px;
}
.partner-card__title {
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-left: 14px;
  line-height: 1.4;
}
.partner-card__title::before {
  content: "";
  position: absolute;
  left: 0; top: 0.2em; bottom: 0.2em;
  width: 4px; border-radius: 2px;
  background: var(--green);
}
.partner-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--text);
}
.partner-list li::before {
  content: "・";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}
.partner-list--check li::before {
  content: "✓";
  left: 0;
  font-size: 0.8rem;
}
.partner-note {
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 34px;
}
.partner-note a {
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* B2Bフォームのチェックボックス群 */
.form-checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 16px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text);
  cursor: pointer;
}
.form-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .partner-cards { grid-template-columns: 1fr; gap: 18px; }
  .form-checks { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   15. 出現アニメーション（reveal）
   ------------------------------------------------------------
   ・読み込み時／スクロール時に、要素が「下からふわっと」現れる演出。
   ・JS（IntersectionObserver）が表示領域に入った要素へ .is-visible を付与。
   ・JS無効時（.js-reveal が付かない）や「視差効果を減らす」設定では通常表示。
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 0.85s cubic-bezier(0.16, 0.68, 0.28, 1),
      transform 0.85s cubic-bezier(0.16, 0.68, 0.28, 1);
    will-change: opacity, transform;
  }
  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  /* 連続表示（スタッガー）用の遅延 */
  .reveal[data-delay="1"] { transition-delay: 0.08s; }
  .reveal[data-delay="2"] { transition-delay: 0.16s; }
  .reveal[data-delay="3"] { transition-delay: 0.24s; }
  .reveal[data-delay="4"] { transition-delay: 0.32s; }
  .reveal[data-delay="5"] { transition-delay: 0.40s; }
  .reveal[data-delay="6"] { transition-delay: 0.48s; }
}

/* ------------------------------------------------------------
   ヒーロー専用：ゆっくり浮かび上がる高級感のある出現
   ------------------------------------------------------------
   ※ 滑らかさ最優先のため、GPUで合成できる opacity と transform のみを使用。
      （字間・ぼかしの動きは毎フレーム再計算が入りカクつくため不使用）
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal--hero {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.025);   /* translate3d でGPUレイヤー化 */
    transition:
      opacity 2.8s cubic-bezier(0.37, 0, 0.63, 1),
      transform 2.8s cubic-bezier(0.37, 0, 0.63, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
  }
  .js-reveal .reveal--hero.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  /* ゆったりした時間差（generic の遅延より後に定義して上書き） */
  .reveal--hero { transition-delay: 0.20s; }               /* リード文 */
  .reveal--hero[data-delay="1"] { transition-delay: 0.60s; }  /* タイトル */
  .reveal--hero[data-delay="2"] { transition-delay: 1.05s; }  /* 説明文 */
  .reveal--hero[data-delay="3"] { transition-delay: 1.40s; }  /* CTAボタン */
  .reveal--hero[data-delay="4"] { transition-delay: 1.65s; }  /* 業者用ボタン */
}
