/* ⚠ CSS内の画像は **相対パス（../img/…）** で書く。
   `/assets/img/…` の絶対パスにすると、WordPressテーマとして配信されたときに
   実体が /wp-content/themes/<テーマ>/assets/img/… にあるため404になり、
   **背景の柄が黙って消える**（2026-09-03 実際に消えた）。
   相対パスなら静的サイト（/assets/css/style.css）でもテーマでも同じ位置に解決する。 */
/* ============================================
   香川クレーンメンテナンス（有限会社生島興業）
   カラー: 生島興業様コーポレートサイト（ikushima-kougyo.com）の実配色に準拠
     （CEO指示 2026-08-10「コーポレートサイトの色合いに寄せて」）
     採取値: メイン #005A8A ／ 明るい青 #0184CA ／ 背景グレー #F2F2F2 ／ 濃色帯 #4F4B49 ／ 本文 #222
   CTAのオレンジは集客サイトの押し出し用（コーポレートサイトには無い色）。

   🔴 デザインの拠り所（CEO指示 2026-08-10「シノダックと同じすぎる／コーポレートに寄せて」）:
     ・フォント＝游ゴシック系（コーポレートと同じ）。Noto Sans JP には戻さない
     ・角丸ゼロ／影は右下に落ちる 5px 5px 10px
     ・見出しは「大きい・weight 500・#005A8A の日本語」が主役。英字は小さな添え物
     ・45度に傾けた色ブロック、丸ボタン、グラデ、光沢の走る演出は使わない
     ・背景はクレーンのアウトライン柄（コーポレートの車両柄に対応）
   構成・導線は集客サイトの型（参考: 天井クレーンドクター沖縄）のままで、見た目だけコーポレートに寄せている。
   ============================================ */
:root {
  --c-primary: #005a8a;       /* 生島興業 コーポレートカラー */
  --c-primary-dark: #00405f;
  --c-primary-light: #0184ca; /* コーポレートサイトの明るい青（差し色） */
  --c-navy: #14344a;
  --c-charcoal: #4f4b49;      /* コーポレートサイトの濃色帯 */
  --c-cta: #ef7f1a;
  --c-cta-dark: #d96c08;
  --c-yellow: #ffd54d;
  --c-red: #e03131;
  --c-green: #2f9e44;
  --c-bg: #ffffff;
  --c-bg-gray: #f2f2f2;       /* コーポレートサイトの地色 */
  --c-text: #222222;
  --c-text-weak: #5a6167;
  --c-border: #d5dde3;
  --c-danger: #c0392b;
  /* 影＝コーポレートサイトの実測値（右下に落ちるはっきりした影）。ふわっとした影は使わない */
  --shadow: 5px 5px 10px rgba(11, 3, 6, 0.25);
  --shadow-lg: 8px 8px 16px rgba(11, 3, 6, 0.3);
  /* 🔴 角丸ゼロ＝コーポレートサイトの作法。丸みを足すと「別の会社のサイト」に見える */
  --radius: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  /* コーポレートサイト（ikushima-kougyo.com）と同じ游ゴシック系。
     ⚠ Noto Sans JP に戻すと途端に「よくある制作会社のサイト」の顔になる */
  font-family: "游ゴシック", YuGothic, "Yu Gothic Medium", "游ゴシック体",
               "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Verdana, Roboto, メイリオ, Meiryo, sans-serif;
  color: var(--c-text);
  line-height: 1.9;
  font-size: 18px;          /* CEO指示 2026-08-10「全体的に文字が小さい」→ 16→17px */
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
/* 🔴 日本語に斜体を掛けない。ブラウザが合成斜体で無理やり傾けるため字形が崩れる。
   強調は色と太さで付ける（コーポレートサイトも斜体を一切使っていない） */
em, i, address { font-style: normal; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sp-only { display: none; }

/* ---------- 背景パターン（全ページ共通・CEO指示 2026-08-10「全ページに展開していいよ」） ----------
   コーポレートサイトが全面に車両のアウトライン柄を薄く敷いているのに対応する、こちらのクレーン版。
   柄は本編のアイソメ図と同じ描法で描いてあるので、サイト全体で絵の文法が揃う。
   実体: assets/img/pattern-crane.svg（濃色帯用は -light）。生成は scripts/gen-crane-iso.cjs。
   ⚠ 柄を差し替えるときは生成スクリプトを直す。SVGを直接編集しない（再生成で消える）。 */
body {
  background-color: var(--c-bg-gray);
  background-image: url("../img/pattern-crane.svg");
}
.bg-crane, .bg-stripes { background: transparent; }   /* 地の柄をそのまま見せる */
/* 濃色帯（悩みセクション等）。コーポレートの濃色は #4F4B49 系だが、
   集客サイトでは訴求のコントラストが要るので青を残し、柄だけ共通にしている */
.bg-dots {
  background-color: var(--c-primary);
  background-image: url("../img/pattern-crane-light.svg");
}

/* ---------- スクロール出現モーション ----------
   参考サイト（天井クレーンドクター沖縄）と同じ考え方:
   ・方向のバリエーション（下から／左から／右から／その場でふわっ／ズーム）
   ・同じ親の兄弟には時間差（stagger）
   ・画面外に出たら元に戻し、もう一度スクロールすると再生される（一度きりにしない）
   方向は main.js が要素の種類に応じて .reveal-* を付ける */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  /* ⚠ will-change は付けない。30要素が常時レイヤー化されてメモリを食ううえ、
     オフスクリーンが描画されなくなる（検証用スクショが真っ白になった 2026-08-06） */
}
.reveal-left  { transform: translateX(-70px); }
.reveal-right { transform: translateX(70px); }
.reveal-fade  { transform: none; }
.reveal-zoom  { transform: scale(0.92); }
/* 大きく動いて速く止まる＝「シュッと」出る動き。横に大きく振るが body 側で
   overflow-x: clip しているので横スクロールは出ない */
.reveal-snap {
  transform: translateX(120px);
  transition-duration: 0.55s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-zoom, .reveal-snap {
    opacity: 1; transform: none; transition: none;
  }
  /* ⚠ animation-duration だけを潰すと、繰り返しが infinite のアニメーション（Heroのスライド等）が
     「1msのループ」になって激しく明滅する（2026-08-05 実害）。回数と遅延も必ずセットで潰す。 */
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  /* スライドショーは動かさない。ただし全部消すと背景だけになるので1枚目を静止画として残す */
  .hero-slides img { animation: none !important; opacity: 0; }
  .hero-slides img:nth-child(1) { opacity: 1; }
}

/* ---------- ボタン ---------- */
/* ボタン＝コーポレートサイトに合わせて**角丸なし・ベタ塗り**。
   🚫 丸ボタン／グラデーション／光沢が横切る演出は使わない（別会社の顔になる） */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 0;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  line-height: 1.5;
  position: relative;
  box-shadow: var(--shadow);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-lg); }
.btn-cta { background: var(--c-cta); color: #fff; border: 1px solid var(--c-cta-dark); }
.btn-cta:hover { background: var(--c-cta-dark); }
.btn-primary { background: var(--c-primary); color: #fff; border: 1px solid var(--c-primary-dark); }
.btn-primary:hover { background: var(--c-primary-dark); }
.btn-outline { background: #fff; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-lg { padding: 20px 50px; font-size: 20px; }
/* 丸い矢印＝コーポレートサイトのリンクの目印 */
.btn-arrow::before {
  content: "›"; display: inline-block; width: 1.35em; height: 1.35em; line-height: 1.2em;
  margin-right: 0.55em; vertical-align: -0.22em; text-align: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.28); font-size: 0.95em; font-weight: 700;
}
.btn-outline.btn-arrow::before { background: var(--c-primary); color: #fff; }
.btn-outline.btn-arrow:hover::before { background: #fff; color: var(--c-primary); }

/* ---------- 固定CTA（PC右端・SP下部） ---------- */
.fixed-cta {
  position: fixed; right: 0; top: 42%; z-index: 900;
  display: flex; flex-direction: column; gap: 6px;
}
.fixed-cta a {
  writing-mode: vertical-rl;
  padding: 24px 14px;
  color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 0.12em;
  border-radius: 0;                       /* 角丸なし＝コーポレートの作法 */
  box-shadow: -2px 3px 10px rgba(11, 3, 6, 0.3);
  transition: padding-right 0.25s;
}
.fixed-cta a:hover { padding-right: 24px; }
.fixed-cta .fixed-cta-survey { background: var(--c-cta); }
.fixed-cta .fixed-cta-contact { background: var(--c-primary); }
.sp-cta-bar { display: none; }

/* ---------- ヘッダー ---------- */
.site-header { position: relative; z-index: 800; }
/* ヘッダーにも地の柄を入れる（CEO指示 2026-08-10「ヘッダーも背景画像いれて」）。
   ⚠ 写真ではなく地の柄にしてある＝ロゴ・電話番号の可読性を落とさないため。 */
.header-main {
  background-color: #fff;
  background-image: url("../img/pattern-crane.svg");
  border-bottom: 1px solid var(--c-border);
}
.header-main-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 16px; }
/* ロゴ＝**専用ロゴが未作成のための暫定ワードマーク（CSSのみ）**。
   ロゴ画像が出来たら .logo-wordmark を <img> に差し替える。 */
.header-logo { display: flex; align-items: center; gap: 12px; }
/* ロゴマーク＝KCM＋天井クレーンが中央の文字を吊る意匠（CEO採用 2026-08-11／2026-09-03 に KKM→KCM）。
   ⚠ 略称は KCM（Kagawa Crane Maintenance）。KKM は誤りなので使わない。
   ⚠ 実体は **SVG（ベクター）**。看板・車両・印刷でも使えるようにアウトライン化してある。
      同じ絵の透過PNG（logo-kcm.png）も置いてあるが、Webでは使わない（SVGの方が縮小時に潰れない）。
   ⚠ フッターは紺地なので、青い文字がそのままだと沈む。白いチップに載せて可読性を確保している
      （サイト全体の「柄や濃色の上には白いパネル」という作法と同じ）。 */
.logo-mark { width: auto; height: 54px; display: block; }
.footer-logo .logo-mark { height: 46px; background: #fff; padding: 5px; }
.logo-wordmark {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-weight: 900; letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
}
.logo-wordmark-area {
  font-size: 30px; color: #fff; background: var(--c-primary);
  padding: 6px 9px 7px; border-radius: 5px; margin-right: 6px;
}
.logo-wordmark-main { font-size: 27px; color: var(--c-navy); }
.logo-wordmark-white .logo-wordmark-main { color: #fff; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .logo-wordmark-area { font-size: 25px; }
.footer-logo .logo-wordmark-main { font-size: 23px; }
.header-contact { display: flex; align-items: center; gap: 16px; }
.ico-tel { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; margin-right: 0.28em; flex: none; }
.header-tel { text-align: right; }
.header-tel-label { display: block; font-size: 13px; color: var(--c-text-weak); }
.header-tel-number { font-size: 28px; font-weight: 900; color: var(--c-navy); letter-spacing: 0.02em; }

.header-cta { font-size: 17px; padding: 12px 24px; }

/* グローバルナビ */
.global-nav { background: var(--c-primary); }
.global-nav-list { display: flex; }
.global-nav-list > li { position: relative; flex: 1 1 auto; text-align: center; }
.global-nav-list > li > a {
  display: block; color: #fff; font-weight: 700; font-size: 15px; white-space: nowrap;
  padding: 15px 8px; border-left: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}
.global-nav-list > li > a::after {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 8px; height: 2px;
  background: var(--c-yellow); transform: scaleX(0); transition: transform 0.25s;
}
.global-nav-list > li > a:hover::after, .global-nav-list > li > a.active::after { transform: scaleX(1); }
.global-nav-list > li:last-child > a { border-right: 1px solid rgba(255, 255, 255, 0.2); }
.global-nav-list > li > a:hover, .global-nav-list > li > a.active { background: var(--c-primary-dark); }
.global-nav-list .nav-contact { background: var(--c-cta); }
.child-menu {
  position: absolute; top: 100%; left: 0; min-width: 250px; z-index: 100;
  background: var(--c-primary-dark); text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.has-child:hover .child-menu { opacity: 1; visibility: visible; transform: none; }
.child-menu a { display: block; color: #fff; font-size: 15px; padding: 11px 16px; border-top: 1px solid rgba(255,255,255,0.15); }
.child-menu a:hover { background: var(--c-navy); padding-left: 22px; transition: padding-left 0.2s; }
.nav-toggle { display: none; }

/* ---------- ヒーロー（スライダー：写真とコピーがセットで切り替わる） ----------
   参考サイト（天井クレーンドクター沖縄）と同じ考え方。1スライド＝1枚の写真＋その写真に
   合わせた訴求文。切替は JS（main.js の HERO ブロック）が .is-active を付け替えるだけで、
   見た目の遷移はここのCSSが持つ。⚠ .is-active の付け外しで中身のアニメが再生され直す設計。 */
.hero { position: relative; color: #fff; overflow: hidden; height: clamp(560px, 68vh, 860px); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.0);
}
/* ゆっくり寄る（ケン・バーンズ）。表示中のスライドだけ動かす */
.hero-slide.is-active img { animation: heroZoom 9s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.hero-overlay {
  position: absolute; inset: 0;
  /* 写真の明るさを殺さない範囲で文字を読ませる。左だけ効かせて右は写真を見せる */
  background: linear-gradient(90deg, rgba(0, 45, 70, 0.82) 0%, rgba(0, 45, 70, 0.42) 52%, rgba(0, 45, 70, 0.06) 100%);
  display: flex; align-items: center;
}

/* 左右の送りボタン */
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.22); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.hero-nav:hover { background: rgba(255, 255, 255, 0.42); }
.hero-prev { left: 18px; }
/* ⚠ 右端は縦書きの固定CTA(.fixed-cta)が居るので、その内側に逃がす。
   .fixed-cta が消えるSP幅では 18px に戻す（下のメディアクエリ）。 */
.hero-next { right: 78px; }

/* 現在位置のドット */
.hero-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.hero-dot {
  width: 34px; height: 5px; border: none; padding: 0; cursor: pointer; border-radius: 3px;
  background: rgba(255, 255, 255, 0.42); transition: background 0.2s;
}
.hero-dot.is-active { background: var(--c-cta); }
/* 🚫 45度に傾けた色ブロックは置かない（沖縄・シノダック系の装飾＝別ブランドの顔）。
   下端の細い色帯だけにして、角のある落ち着いた見え方にそろえる */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 3;
  background: linear-gradient(90deg, var(--c-primary) 0 55%, var(--c-cta) 55% 100%);
}
.hero-content { max-width: 1120px; margin: 0 auto; padding: 0 20px; width: 100%; position: relative; z-index: 2; }
.hero-badge {
  display: inline-block; background: var(--c-yellow); color: var(--c-navy);
  font-weight: 700; font-size: 17px; padding: 6px 20px; border-radius: 0; margin-bottom: 16px;
}
.hero-title {
  font-size: 50px; font-weight: 700; line-height: 1.42; text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  letter-spacing: 0.01em;
}
.hero-title em { font-style: normal; color: var(--c-yellow); }
.hero-sub { margin-top: 16px; font-size: 20px; font-weight: 400; line-height: 1.9; text-shadow: 0 1px 5px rgba(0,0,0,0.55); }
.hero-buttons { margin-top: 26px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-points { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
/* 表示中のスライドの中身だけを順に出す。.is-active が外れると巻き戻り、次に出るとき再生される */
.hero-slide.is-active .hero-badge   { animation: fadeUp 0.8s ease both; }
.hero-slide.is-active .hero-title   { animation: fadeUp 0.8s 0.15s ease both; }
.hero-slide.is-active .hero-sub     { animation: fadeUp 0.8s 0.3s ease both; }
.hero-slide.is-active .hero-buttons { animation: fadeUp 0.8s 0.45s ease both; }
.hero-slide.is-active .hero-points  { animation: fadeUp 0.8s 0.6s ease both; }
.hero-point {
  background: rgba(255, 255, 255, 0.96); color: var(--c-navy);
  font-weight: 700; font-size: 17px; padding: 11px 20px; border-left: 5px solid var(--c-cta);
  box-shadow: var(--shadow);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Hero直下 クイックCTA（2分割＋資料請求帯） ---------- */
.quick-cta-grid { display: grid; grid-template-columns: 1fr 1fr; }
.quick-panel {
  position: relative; display: block; overflow: hidden;
  padding: 56px 44px; min-height: 320px; color: #fff;
}
.quick-panel-survey { background: linear-gradient(120deg, var(--c-primary), var(--c-primary-dark)); }
.quick-panel-contact { background: linear-gradient(120deg, #ffdb66, var(--c-yellow)); color: var(--c-navy); }
.quick-panel-photo {
  position: absolute; top: 0; right: 0; width: 52%; height: 100%; object-fit: cover;
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 56% 100%);
  transition: transform 0.6s;
}
.quick-panel:hover .quick-panel-photo { transform: scale(1.06); }
.quick-panel-staff {
  position: absolute; right: 12px; bottom: 0; height: 78%; width: auto; z-index: 1;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}
.quick-panel-inner { position: relative; z-index: 2; max-width: 62%; }
.quick-panel-title { font-size: 34px; font-weight: 900; line-height: 1.3; }
.quick-panel-text { font-size: 16px; margin-top: 10px; }
.quick-panel-tel { display: block; font-size: 34px; font-weight: 900; margin-top: 8px; letter-spacing: 0.02em; }

.quick-panel-btn {
  display: block; background: #fff; color: var(--c-navy); text-align: center;
  font-weight: 700; font-size: 17px; border-radius: 8px; padding: 16px 20px; margin-top: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s, box-shadow 0.25s;
}
.quick-panel:hover .quick-panel-btn { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.25); }
.quick-panel-btn::after { content: " ▶"; font-size: 0.75em; color: var(--c-cta); }
/* ---------- 資料ダウンロード（白背景・資料のサムネイルを見せる） ---------- */
/* 地の柄を見せる（CEO指示 2026-08-10「ここも背景イラストにして」）。
   ⚠ カタログ画像は**背景が純白のJPEG**なので、柄の上に直接置くと白い箱が浮く。
      → 画像だけ白いパネルに載せて「意図的な白」にしてある（コーポレートの白パネルと同じ作法）。
      画像を透過PNGに作り直せばパネルは不要になるが、表紙の日本語を作り直すと崩れるリスクがあるため現状は据え置き。 */
.catalog-band { background: transparent; padding: 64px 0; }
/* 柄の上に置く白いパネル。画像と文章を**1枚のパネルにまとめる**（CEO指示 2026-08-10「枠つなげて」）。
   ⚠ 画像側と文章側を別々の枠にすると箱が2つ並んで分断されて見える。枠は必ず外側の .catalog-inner に付ける。 */
.catalog-inner { background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); padding: 34px 40px; }
.catalog-thumb, .catalog-text { background: none; border: 0; box-shadow: none; padding: 0; }
.catalog-inner {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center;
}
.catalog-thumb { display: block; }
.catalog-thumb img {
  width: 100%; height: auto; display: block;
  /* 画像自体に影が焼き込まれていて背景も純白なので、CSS側で影は付けない
     （矩形のdrop-shadowを足すと白い箱が浮いて見える） */
  transition: transform 0.3s ease;
}
.catalog-thumb:hover img { transform: translateY(-6px); }
.catalog-head { margin-bottom: 14px; }
.catalog-en {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--c-text-weak); letter-spacing: 0.22em; line-height: 1.4;
}
.catalog-title-big { display: block; font-size: 32px; font-weight: 500; color: var(--c-primary); line-height: 1.4; margin-top: 4px; }
.catalog-title {
  display: block; font-size: 20px; font-weight: 700; color: var(--c-primary); margin-top: 2px;
}
.catalog-title::before { content: "─ "; color: var(--c-cta); }
.catalog-lead { font-size: 17px; line-height: 1.9; margin-bottom: 16px; }
.catalog-points { list-style: none; margin: 0 0 22px; padding: 0; }
.catalog-points li {
  position: relative; padding-left: 26px; font-weight: 700; font-size: 17px;
  line-height: 1.9; color: var(--c-navy);
}
/* チェックマーク（画像を増やさずCSSだけで描く） */
.catalog-points li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 12px; height: 6px; border-left: 3px solid var(--c-cta); border-bottom: 3px solid var(--c-cta);
  transform: rotate(-45deg);
}
.catalog-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- セクション共通 ---------- */
/* ---------- セクション共通 ----------
   🔴 見出しの型はコーポレートサイト（ikushima-kougyo.com）に合わせてある:
      **日本語の大見出しが主役（大きい・weight 500・#005A8A）／英字は小さな添え物**。
   参考サイト（沖縄）系の「斜体の巨大英字が主役」は使わない＝あれは別ブランドの顔。 */
.section { padding: 88px 0; position: relative; }
/* 地に柄が敷いてあるので、読ませたい塊は白で抜く（コーポレートの白パネルに相当）。
   ⚠ クラス名は section-gray のままだが中身は白。地＝薄グレーの柄なので役割が逆転している。 */
.section-gray { background: #fff; }
.section-navy { background: var(--c-navy); color: #fff; }
.section-head { text-align: left; margin-bottom: 8px; }
.section-title-en {
  display: block; font-size: 14px; font-weight: 700;   /* 添え物なので一括底上げの対象外 */
  color: var(--c-text-weak); letter-spacing: 0.22em; line-height: 1.4; text-transform: uppercase;
}
.section-navy .section-title-en, .on-dark .section-title-en { color: rgba(255, 255, 255, 0.75); }
.section-title {
  display: block; text-align: left; font-size: 42px; font-weight: 500;
  color: var(--c-primary); line-height: 1.35; margin-top: 6px; letter-spacing: 0.02em;
}
.section-navy .section-title, .on-dark .section-title { color: #fff; }
/* 見出しの下に細い区切り線（コーポレートの白パネル見出しの見え方に寄せる） */
.section-head::after {
  content: ""; display: block; width: 64px; height: 3px; background: var(--c-primary);
  margin-top: 18px;
}
.section-navy .section-head::after, .on-dark .section-head::after { background: var(--c-yellow); }
.section-catch { text-align: left; font-size: 34px; font-weight: 500; color: var(--c-primary); line-height: 1.5; }
.section-catch em { font-style: normal; color: var(--c-red); font-weight: 700; }
.section-lead { text-align: left; margin: 18px 0 0; max-width: 900px; font-size: 18px; }
.section-body { margin-top: 44px; }

/* ページタイトル（下層） */
.page-header {
  position: relative; color: #fff; padding: 74px 0 60px; overflow: hidden;
  background: var(--c-navy);
}
.page-header-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42;
}
/* 斜め45度の色ブロック（沖縄・シノダック系の装飾）は使わない。
   代わりに左端に太いラインを引く＝角のある、落ち着いた見え方にする */
.page-header::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--c-cta);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: 40px; font-weight: 500; line-height: 1.4; text-shadow: 0 2px 8px rgba(0,0,0,0.5); letter-spacing: 0.02em; }
.page-header .page-header-sub { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.8); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.breadcrumb { background: var(--c-bg-gray); font-size: 14px; padding: 10px 0; color: var(--c-text-weak); }
.breadcrumb a { color: var(--c-text-weak); text-decoration: underline; }
.breadcrumb span::before { content: "›"; margin: 0 6px; }

/* ⚠「天井クレーンは、こう動きます」の図とそのCSS（.crane-* / .ci-*）は
   CEO指示 2026-08-10 で撤去した。戻すなら git 履歴から。
   ※ 背景の柄（pattern-crane*.svg）は別物で、今も scripts/gen-crane-iso.cjs が生成して使っている。 */

/* ---------- 悩みセクション ---------- */
.trouble-section { padding: 84px 0 0; color: #fff; }
.trouble-inner { display: flex; gap: 36px; align-items: center; }
.trouble-figure { flex: 0 0 260px; }
.trouble-figure img { filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25)); }
.trouble-list { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.trouble-item {
  background: #fff; color: var(--c-navy);
  border: 3px solid var(--c-yellow); border-radius: 6px;
  padding: 15px 20px 15px 56px; font-weight: 700; position: relative; font-size: 17px;
  box-shadow: var(--shadow);
}
.trouble-item::before {
  content: "✔"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 27px; height: 27px; border-radius: 50%; background: var(--c-green); color: #fff;
  font-weight: 900; text-align: center; line-height: 27px; font-size: 17px;
}
.trouble-item:nth-child(2) { margin-left: 24px; }
.trouble-item:nth-child(3) { margin-left: 48px; }
.trouble-item:nth-child(4) { margin-left: 72px; }
.trouble-v {
  margin-top: 60px; height: 90px; background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.bg-dots .trouble-v, .trouble-v-blue { background: var(--c-primary); }
.trouble-answer { text-align: center; padding: 48px 20px 0; }
.trouble-answer p { font-size: 32px; font-weight: 900; color: var(--c-navy); }
.trouble-answer em { font-style: normal; color: var(--c-red); font-size: 36px; }

/* ---------- サービスカード（番号オーバーレイ） ---------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: block; height: 260px;
}
.service-card img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease;
}
.service-card:hover img { transform: scale(1.08); }
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,49,78,0) 30%, rgba(18,49,78,0.88) 100%);
}
/* 番号＝斜体の巨大数字（沖縄系）ではなく、角形のタブにする */
.service-card-num {
  position: absolute; top: 0; left: 0; z-index: 2;
  font-size: 20px; font-weight: 700; color: #fff; background: var(--c-primary);
  line-height: 1; padding: 12px 16px; letter-spacing: 0.06em;
}
.service-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 22px; color: #fff; }
.service-card-title { font-size: 22px; font-weight: 900; }
.service-card-text { font-size: 15px; margin-top: 4px; opacity: 0.92; }
.service-card-more {
  display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 700;
  color: var(--c-yellow); border-bottom: 1px solid var(--c-yellow); padding-bottom: 2px;
}
.service-card-more::after { content: " ▶"; font-size: 0.8em; }

/* ---------- 選ばれる理由（番号バー＋写真） ---------- */
.reason-list { display: flex; flex-direction: column; gap: 40px; }
.reason-item {
  display: flex; gap: 32px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px;
}
.reason-item:nth-child(even) { flex-direction: row-reverse; }
.reason-photo { flex: 0 0 320px; border-radius: 8px; overflow: hidden; }
.reason-photo img { width: 100%; height: 210px; object-fit: cover; transition: transform 0.6s; }
.reason-item:hover .reason-photo img { transform: scale(1.06); }
.reason-content { flex: 1; }
/* 黄色いグラデ帯（沖縄系）をやめ、青の縦ラインで見出しを立てる＝コーポレートの落ち着き */
.reason-bar {
  display: flex; align-items: baseline; gap: 16px;
  background: var(--c-bg-gray); border-left: 6px solid var(--c-primary);
  border-radius: 0; padding: 14px 20px; margin-bottom: 16px;
}
.reason-bar .reason-num {
  font-size: 26px; font-weight: 700; color: var(--c-primary); line-height: 1; flex-shrink: 0;
}
.reason-bar h3 { font-size: 23px; font-weight: 700; color: var(--c-text); line-height: 1.5; }
.reason-bar h3 em { color: var(--c-primary); }
.reason-content p { font-size: 17px; color: var(--c-text); }

/* コンパクト版（トップ抜粋・サービスページ内） */
.reason-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reason-compact .reason-item { flex-direction: column; gap: 12px; padding: 24px; }
.reason-compact .reason-photo { flex: none; width: 100%; }
.reason-compact .reason-photo img { height: 150px; }

/* ---------- 表 ---------- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 17px; }
/* 会社概要は項目が多く縦に長い。写真だけ取り残されるのでスクロールに追従させる */
.company-band { align-items: start; }
.company-band > img { position: sticky; top: 24px; }
@media (max-width: 900px) { .company-band > img { position: static; } }
.addr-sub { display:inline-block; padding-left: 1em; color: var(--c-text-weak); font-size: 0.92em; }
.company-sub { padding-left: 1em; color: var(--c-text-weak); font-size: 0.94em; }
.data-table th, .data-table td { border: 1px solid var(--c-border); padding: 13px 16px; text-align: left; vertical-align: top; }
.data-table th { background: var(--c-bg-gray); color: var(--c-navy); white-space: nowrap; width: 30%; }
.data-table thead th { background: var(--c-primary); color: #fff; width: auto; }

/* ---------- 手順ステップ ---------- */
.step-list { counter-reset: step; }
.step-item {
  position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 24px 24px 96px; margin-bottom: 30px;
}
.step-item::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 22px; top: 22px;
  width: 54px; height: 54px; border-radius: 8px;
  background: linear-gradient(135deg, #f79b3f, var(--c-cta)); color: #fff;
  font-weight: 900; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.step-item:not(:last-child)::after {
  content: ""; position: absolute; left: 46px; bottom: -28px;
  border: 11px solid transparent; border-top-color: var(--c-primary);
}
.step-item h3 { font-size: 19px; color: var(--c-navy); margin-bottom: 4px; }
.step-item p { font-size: 16px; color: var(--c-text-weak); }

/* ---------- 法令ボックス・注意ボックス ---------- */
.law-box {
  background: var(--c-bg-gray); border-left: 5px solid var(--c-primary);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; font-size: 16px;
}
.law-box strong { color: var(--c-primary-dark); }
.alert-box {
  background: #fdf1ef; border: 2px solid var(--c-danger);
  padding: 20px 24px; border-radius: var(--radius); margin: 20px 0;
}
.alert-box .alert-title { color: var(--c-danger); font-weight: 900; font-size: 18px; margin-bottom: 6px; }
.alert-box .alert-title::before { content: "⚠ "; }

/* ---------- チェックリスト ---------- */
.check-list li { position: relative; padding-left: 32px; margin-bottom: 10px; font-weight: 500; }
.check-list li::before {
  content: "✔"; position: absolute; left: 0; top: 0;
  color: var(--c-primary); font-weight: 900; font-size: 19px;
}

/* ---------- カード（汎用） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img-wrap { overflow: hidden; height: 185px; }
.card-img { width: 100%; height: 185px; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-img { transform: scale(1.08); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 18px; font-weight: 700; color: var(--c-navy); margin-bottom: 8px; }
.card-text { font-size: 16px; color: var(--c-text-weak); flex: 1; }
.card-link { margin-top: 14px; font-weight: 700; font-size: 16px; }
.card-link::after { content: " →"; }

/* ---------- 2カラム ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- CTAバナー（2分割・斜め） ---------- */
.cta-band { padding: 0; position: relative; }
.cta-band-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; }
.cta-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 48px 32px; overflow: hidden; }
.cta-panel-survey { background: linear-gradient(120deg, var(--c-navy), var(--c-primary-dark)); }
.cta-panel-survey .cta-panel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.cta-panel-tel { background: linear-gradient(120deg, #f7a23f, var(--c-cta)); }
.cta-panel-inner { position: relative; z-index: 2; text-align: center; color: #fff; }
.cta-panel-label { display: inline-block; background: var(--c-yellow); color: var(--c-navy); font-weight: 900; font-size: 16px; padding: 3px 16px; border-radius: 4px; }
.cta-panel-title { font-size: 26px; font-weight: 900; margin-top: 12px; text-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.cta-panel-text { font-size: 16px; margin-top: 6px; opacity: 0.95; }
.cta-panel .btn { margin-top: 18px; }
.cta-tel-number { display: block; font-size: 40px; font-weight: 900; letter-spacing: 0.02em; margin-top: 10px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,0.3); }

.cta-tel-hours { font-size: 15px; opacity: 0.95; }
.cta-staff-img {
  position: absolute; right: 6px; bottom: 0; width: 180px; z-index: 1; opacity: 0.98;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

/* ---------- フッター ---------- */
.site-footer { background: var(--c-navy); color: #fff; padding: 52px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

.footer-brand { margin-top: 14px; font-size: 20px; font-weight: 900; color: #fff; letter-spacing: 0.05em; }
.footer-address { margin-top: 8px; font-size: 15px; color: #b8d4ec; }
.footer-nav { display: flex; gap: 48px; }
.footer-nav a { color: #dce9f5; font-size: 15px; display: block; padding: 4px 0; transition: padding-left 0.2s; }
.footer-nav a:hover { color: #fff; text-decoration: underline; padding-left: 4px; }
.footer-copyright { text-align: center; font-size: 13px; color: #7d97b0; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding: 16px 0 22px; }

/* ---------- フォーム ---------- */
.contact-form { max-width: 780px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; }
.form-row { margin-bottom: 24px; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--c-navy); }
.form-required { display: inline-block; background: var(--c-danger); color: #fff; font-size: 13px; font-weight: 700; border-radius: 3px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }
.form-optional { display: inline-block; background: #90a4b5; color: #fff; font-size: 13px; font-weight: 700; border-radius: 3px; padding: 1px 8px; margin-left: 8px; vertical-align: middle; }
.form-input, .form-textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 6px;
  font-size: 17px; font-family: inherit; background: var(--c-bg-gray);
  transition: background 0.2s, outline 0.2s;
}
.form-input:focus, .form-textarea:focus { outline: 2px solid var(--c-primary); background: #fff; }
.form-textarea { min-height: 160px; resize: vertical; }
.form-radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.form-radio {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  border: 2px solid var(--c-border); border-radius: 6px; padding: 14px 20px; font-weight: 700; flex: 1; min-width: 240px;
  transition: border-color 0.2s, background 0.2s;
}
.form-radio:has(input:checked) { border-color: var(--c-primary); background: #eaf3fb; color: var(--c-primary-dark); }
.form-radio input { width: 20px; height: 20px; accent-color: var(--c-primary); }
.form-agree { text-align: center; margin: 28px 0 20px; font-size: 16px; }
.form-agree a { text-decoration: underline; }
.form-submit { text-align: center; }
.form-submit .btn { min-width: 320px; font-size: 19px; padding: 18px 40px; border: none; cursor: pointer; font-family: inherit; }

/* ---------- コラム一覧 ---------- */
.column-empty {
  text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 72px 24px; color: var(--c-text-weak);
}
.column-empty .column-empty-icon { font-size: 48px; }
.column-empty p { margin-top: 12px; }

/* ---------- 実績 ---------- */
.works-note { text-align: center; font-size: 15px; color: var(--c-text-weak); margin-top: 24px; }
.badge-sample { display: inline-block; background: #90a4b5; color: #fff; font-size: 13px; font-weight: 700; border-radius: 3px; padding: 1px 8px; margin-right: 6px; vertical-align: middle; }

/* ---------- 会社概要帯 ---------- */
.company-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.company-band img { border-radius: var(--radius); box-shadow: var(--shadow); }
/* 社屋写真が無い状態（実写の支給待ち）。写真が入ったらこのクラスを外す */
.company-band-notext { grid-template-columns: 1fr; max-width: 900px; }

/* ---------- ページ内 中央寄せボタン ---------- */
.center-btn { text-align: center; margin-top: 36px; }

/* ---------- ワイド画面（大型モニター） ---------- */
@media (min-width: 1700px) {
  .container { max-width: 1360px; }
  body { font-size: 18px; }
  .hero-title { font-size: 54px; }
  .hero-sub { font-size: 20px; }
  .section-title { font-size: 48px; }   /* ← 主役は日本語見出し。英字ラベルは小さいまま */
  .section-catch { font-size: 38px; }
  .quick-panel { min-height: 380px; padding: 72px 64px; }
  .quick-panel-title { font-size: 40px; }
  .cta-band-grid { min-height: 360px; }
  .service-card { height: 300px; }
  .card-img, .card-img-wrap { height: 220px; }
}

/* ---------- レスポンシブ ---------- */
@media (min-width: 901px) and (max-width: 1120px) {
  .global-nav-list > li > a { font-size: 14px; padding: 13px 4px; }
  .header-tel-number { font-size: 24px; }
  .header-cta { font-size: 16px; padding: 11px 18px; }
  .hero-title { font-size: 40px; }
}

@media (max-width: 900px) {
  .sp-only { display: inline; }
  body { padding-bottom: 64px; } /* SP下部固定バーの逃げ */

  /* 資料ダウンロード: 表紙を上、本文を下の縦積みに */
  .catalog-band { padding: 48px 0; }
  .catalog-inner { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
  .catalog-thumb { max-width: 260px; }
  .catalog-en { font-size: 26px; }
  .catalog-points { display: inline-block; text-align: left; }
  .catalog-cta { justify-content: center; flex-direction: column; gap: 10px; }
  .catalog-cta .btn { width: 100%; max-width: 360px; }

  .fixed-cta { display: none; }
  .hero-next { right: 18px; }   /* 固定CTAが消えるので端に戻す */
  .hero-nav { width: 38px; height: 38px; font-size: 22px; }
  .sp-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    box-shadow: 0 -2px 12px rgba(18,49,78,0.25);
  }
  .sp-cta-bar a {
    flex: 1; text-align: center; color: #fff; font-weight: 700; font-size: 16px; padding: 14px 6px;
  }
  .sp-cta-bar .sp-cta-tel { background: var(--c-navy); }
  .sp-cta-bar .sp-cta-survey { background: var(--c-cta); }

  .header-tel-number { font-size: 20px; }
  .header-cta { display: none; }
  .header-logo .logo-wordmark-area { font-size: 21px; padding: 5px 7px 6px; margin-right: 4px; }
  .header-logo .logo-wordmark-main { font-size: 20px; }
  .header-logo { gap: 8px; }
  .logo-mark { height: 42px; }

  .nav-toggle {
    display: block; background: var(--c-primary); border: none; border-radius: 6px;
    width: 46px; height: 46px; position: relative; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto; transition: 0.3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .global-nav { display: none; }
  .global-nav.open { display: block; }
  .global-nav-list { flex-direction: column; padding: 0; }
  .global-nav-list > li { text-align: left; }
  .global-nav-list > li > a { border-left: none; border-top: 1px solid rgba(255,255,255,0.2); padding: 14px 20px; white-space: normal; }
  .global-nav-list > li > a::after { display: none; }
  .child-menu { position: static; opacity: 1; visibility: visible; transform: none; background: var(--c-primary-dark); }
  .child-menu a { padding-left: 36px; }

  .hero { height: 520px; }
  .hero-title { font-size: 27px; }
  .hero-sub { font-size: 16px; }
  .hero-points { gap: 8px; }
  .hero-point { font-size: 14px; padding: 8px 12px; }
  .hero::after, .hero::before { display: none; }

  .section { padding: 56px 0; }
  .section-title { font-size: 28px; }
  .section-title-en { font-size: 13px; }   /* 13px を下回らない（QAの下限） */
  .section-catch { font-size: 24px; }
  .page-header { padding: 46px 0 38px; }
  .page-header h1 { font-size: 25px; }

  .trouble-inner { flex-direction: column; }
  .trouble-figure { flex: none; width: 180px; }
  .trouble-item, .trouble-item:nth-child(2), .trouble-item:nth-child(3), .trouble-item:nth-child(4) { margin-left: 0; }
  .trouble-answer p { font-size: 22px; }
  .trouble-answer em { font-size: 25px; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { height: 220px; }

  .reason-item, .reason-item:nth-child(even) { flex-direction: column; gap: 16px; }
  .reason-photo { flex: none; width: 100%; }
  .reason-compact { grid-template-columns: 1fr; }

  .two-col, .company-band { grid-template-columns: 1fr; }
  .cta-band-grid { grid-template-columns: 1fr; }
  .cta-staff-img { width: 130px; right: 0; }
  .cta-tel-number { font-size: 30px; }
  .contact-form { padding: 24px 18px; }

  /* --- スマホで実測した崩れの修正（2026-08-06） --- */
  /* 電話番号が2行に割れてヘッダーが崩れる → ラベルを畳み、番号を折り返さない */
  .header-tel-label { display: none; }
  .header-tel-number { font-size: 20px; white-space: nowrap; }
  .header-main-inner { gap: 10px; }

  /* クイックCTAが2カラムのままで「無料」「お問」と潰れる → 1カラムに */
  .quick-cta-grid { grid-template-columns: 1fr; }
  .quick-panel-inner { max-width: 100%; }
  .quick-panel-title { font-size: 24px; }
  .quick-panel-tel { font-size: 26px; }
  .quick-panel-photo, .quick-panel-staff { opacity: 0.35; }

  /* Heroの内容が入りきらず見切れる → 高さを内容にあわせる。
     ⚠ スライダーなので、**表示中の1枚だけ**を通常フローに戻して高さを出させる。
        （全部 absolute のままだと親が高さを持てず、文字とボタンがはみ出す） */
  /* min-height はスライド間で高さが変わって下がガタつくのを防ぐための下限。
     文字量が一番多い1枚目に合わせてある（変えるときは3枚とも実測すること）。 */
  .hero { height: auto; min-height: 756px; }
  /* 文字を大きくした分（CEO指示）ヒーローが伸びるので、SPでは3つ目のポイントだけ畳む。
     内容は「選ばれる理由」で改めて出るので情報は失われない */
  .hero-points .hero-point:nth-child(3) { display: none; }
  .hero-title { font-size: 27px; line-height: 1.42; }
  .hero-sub { font-size: 16px; line-height: 1.75; margin-top: 12px; }
  .hero-buttons { margin-top: 20px; gap: 10px; }
  .hero-points { margin-top: 18px; }
  .hero-slides { position: static; }
  .hero-slide { position: absolute; inset: 0; }
  .hero-slide.is-active { position: relative; inset: auto; }
  .hero-overlay { position: relative; padding: 36px 0 60px; }
  .hero-buttons .btn { width: 100%; }
  /* 横paddingが広いままだとボタン文字が2行に折れる（実測）。SPでは左右を詰める */
  .btn { padding: 15px 18px; font-size: 17px; }
  .btn-lg { padding: 17px 18px; font-size: 18px; }
  /* 送りボタンは本文に重なるので出さない。切り替えは下のドットで行う */
  .hero-nav { display: none; }
  .hero-dots { bottom: 16px; }

  /* 小さすぎる文字を底上げ（11px→12px） */
  .footer-copyright, .badge-sample, .form-required, .form-optional { font-size: 14px; }

  .footer-inner { flex-direction: column; }
  .footer-nav { gap: 24px; flex-wrap: wrap; }
}

/* ---------- 小さめスマホ（〜480px） ----------
   ロゴと電話番号が接触するので、ヘッダーの番号は畳む。
   電話導線は下部固定バー（.sp-cta-bar）が担うので導線は失われない。 */
/* ---------- タブレット（601〜900px）: スマホ1カラムのままだと間延びするので2カラムに ---------- */
@media (min-width: 601px) and (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card { height: 260px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .quick-cta-grid { grid-template-columns: 1fr 1fr; }
  .reason-item, .reason-item:nth-child(even) { flex-direction: row; gap: 20px; }
  .reason-photo { flex: 0 0 42%; width: auto; }
  .company-band { grid-template-columns: 1fr 1fr; }
  .hero { height: 560px; }
  .hero-title { font-size: 34px; }
}

/* ---------- タブレット横・小型ノート（901〜1120px）: ナビ7項目が窮屈になる ---------- */
@media (max-width: 480px) {
  .header-tel { display: none; }
  .header-logo .logo-wordmark-area { font-size: 20px; }
  .header-logo .logo-wordmark-main { font-size: 18px; }
}

/* ---------- 極小スマホ（〜380px） ---------- */
@media (max-width: 380px) {
  .header-logo .logo-wordmark-area { font-size: 17px; padding: 4px 6px 5px; }
  .header-logo .logo-wordmark-main { font-size: 17px; }
  .hero-title { font-size: 23px; }
  .quick-panel-title { font-size: 21px; }
  .container { padding: 0 14px; }
}

/* ---------- 詳細ページ（施工実績・コラム）----------
   WordPress の the_content() は何が入ってくるか分からないので、
   .detail-body 配下の基本タグに最低限のスタイルを当てておく。 */
.detail-wrap { max-width: 820px; }
.detail-title { font-size: 28px; font-weight: 900; color: var(--c-navy); line-height: 1.5; margin-bottom: 18px; }
.detail-meta-line { font-size: 16px; color: var(--c-text-weak); margin-bottom: 8px; }
.detail-meta { margin-bottom: 24px; }
.detail-hero { width: 100%; border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow); }
.detail-body > * + * { margin-top: 18px; }
.detail-body h3 {
  font-size: 20px; font-weight: 900; color: var(--c-navy);
  margin-top: 34px; padding-left: 12px; border-left: 5px solid var(--c-primary); line-height: 1.5;
}
.detail-body h4 { font-size: 18px; font-weight: 700; color: var(--c-navy); margin-top: 26px; }
.detail-body p { line-height: 1.9; }
.detail-body ul, .detail-body ol { padding-left: 4px; }
.detail-body ul > li { padding-left: 26px; position: relative; margin-top: 8px; }
.detail-body ul > li::before {
  content: ""; position: absolute; left: 6px; top: 12px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-cta);
}
.detail-body ol { list-style: decimal; padding-left: 24px; }
.detail-body ol > li { margin-top: 8px; }
.detail-body img { border-radius: var(--radius); margin: 8px 0; }
.detail-body table { width: 100%; border-collapse: collapse; font-size: 17px; }
.detail-body th, .detail-body td { border: 1px solid var(--c-border); padding: 10px 12px; }
.detail-body th { background: var(--c-bg-gray); text-align: left; }
.detail-body blockquote {
  border-left: 4px solid var(--c-border); padding: 4px 0 4px 16px; color: var(--c-text-weak);
}
.detail-body a { text-decoration: underline; }
.card-meta { font-size: 15px; color: var(--c-text-weak); margin-bottom: 4px; }
a.card { display: block; color: inherit; }
a.card:hover .card-title { color: var(--c-primary); }
@media (max-width: 900px) {
  .detail-title { font-size: 22px; }
  .detail-body h3 { font-size: 19px; margin-top: 28px; }
}
