/* ============================================================
   style.css — 有限会社ベルックス ホームページ スタイルシート

   目次：
   01. CSS変数（カラー・フォント・サイズ）
   02. リセット・基本スタイル
   03. レイアウト共通・ボタン・セクションタイトル
   04. ヘッダー
   05. ヒーロー（ファーストビュー）
   06. お悩み訴求
   07. 会社について
   08. 選ばれる理由
   09. 対応工事
   10. 空き家相談窓口
   11. 施工実績
   12. お問い合わせ（フォーム・マップ）
   13. フッター
   14. フローティングCTA（スマホ用）
   15. ライトボックス
   16. スクロールアニメーション
   17. レスポンシブ — タブレット（768px以上）
   18. レスポンシブ — PC（1024px以上）
============================================================ */


/* ============================================================
   01. CSS変数
   ロゴの色（ゴールド #C4A847、チャコール #2D2D2D）に合わせた配色
============================================================ */
:root {
  /* カラー */
  --color-gold:        #C4A847;   /* ロゴのゴールド */
  --color-gold-dark:   #A8882A;   /* ゴールド（ホバー用） */
  --color-gold-light:  #F5EFD6;   /* ゴールド（薄） */
  --color-dark:        #2D2D2D;   /* ロゴのチャコール */
  --color-text:        #3D3D3D;   /* 本文テキスト */
  --color-text-light:  #666666;   /* サブテキスト */
  --color-white:       #FFFFFF;
  --color-cream:       #FAF7F0;   /* クリーム背景 */
  --color-cream-dark:  #F0E8D4;   /* クリーム（濃） */
  --color-border:      #E0D5BC;   /* ボーダー */

  /* フォント（游明朝・明朝体） */
  --font-main: 'Yu Mincho', 'YuMincho', '游明朝', 'Hiragino Mincho ProN',
               'Noto Serif JP', serif;

  /* レイアウト */
  --max-width:      1100px;
  --header-height:  70px;
  --section-pad:    72px;
  --container-pad:  20px;

  /* 影・角丸 */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg:  0 8px 40px rgba(0, 0, 0, 0.16);
  --radius:     8px;
  --radius-lg:  12px;
  --transition: 0.3s ease;
}


/* ============================================================
   02. リセット・基本スタイル
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの分だけアンカー位置をずらす */
  scroll-padding-top: var(--header-height);
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  /* Firefox */
  scrollbar-color: #C4A847 #F5EFD6;
  scrollbar-width: thin;
}

/* Chrome / Edge / Safari */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5EFD6;
}
::-webkit-scrollbar-thumb {
  background: #C4A847;
  border-radius: 4px;
  border: 2px solid #F5EFD6;
}
::-webkit-scrollbar-thumb:hover {
  background: #A8882A;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* スマホ用フローティングCTAの高さ分だけ下にパディング */
  padding-bottom: 60px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

button {
  font-family: var(--font-main);
}


/* ============================================================
   03. レイアウト共通・ボタン・セクションタイトル
============================================================ */

/* コンテナ（中央寄せ・最大幅制限） */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* セクション上下パディング */
.section-pad {
  padding: var(--section-pad) 0;
}

/* クリーム背景 */
.bg-cream {
  background-color: var(--color-cream);
}

/* お問い合わせセクション背景 */
.contact {
  background:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)),
    url('../施工実績写真/背景/3.jpg') center / cover no-repeat;
}

/* セクションタイトル共通 */
.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 0.6em;
  position: relative;
  padding-bottom: 0.8em;
}

/* タイトル下のゴールドライン */
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 2em;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  min-height: 48px; /* タップしやすいサイズ */
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(196, 168, 71, 0.4);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 168, 71, 0.5);
}

.btn-phone {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn-phone:hover,
.btn-phone:focus-visible {
  background: #444;
  border-color: #444;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* 横幅いっぱいボタン */
.btn-full {
  width: 100%;
  font-size: 1.05rem;
}

/* スマホで非表示にするクラス */
@media (max-width: 767px) {
  .sp-hide { display: none !important; }
}


/* ============================================================
   04. ヘッダー
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* 背景をほぼ不透明にしてbackdrop-filterに頼らない
     （固定ヘッダー+backdrop-filterは高速スクロール時にChrome/Androidで
     画面全体が一瞬白くなる描画バグを起こすため使用しない） */
  background: rgba(255, 255, 255, 0.99);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  background: var(--color-dark);
  border-bottom-color: transparent;
  box-shadow: var(--shadow-md);
}

/* スクロール後：ナビリンクを白に（PC版の濃色ヘッダー用） */
.header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

/* スマホ用ドロワーは開いている間ずっと背景が白なので、
   スクロールしてヘッダーが.scrolledになっても文字は黒のまま維持する
   （白背景に白文字が重なって見えなくなるのを防ぐ） */
.header.scrolled .header-nav.nav-open .nav-link {
  color: var(--color-text);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link:focus-visible {
  color: var(--color-gold);
}

/* スクロール後：見積りボタンを白枠に */
.header.scrolled .header-estimate {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.5);
}

.header.scrolled .header-estimate:hover,
.header.scrolled .header-estimate:focus-visible {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

/* スクロール後：電話ボタンをゴールドに */
.header.scrolled .header-tel {
  background: var(--color-gold);
}

.header.scrolled .header-tel:hover,
.header.scrolled .header-tel:focus-visible {
  background: var(--color-gold-dark);
}

/* スクロール後：ハンバーガーバーを白に */
.header.scrolled .hamburger-bar {
  background: var(--color-white);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.75rem;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

/* LIXILロゴは正方形なので少し小さく */
.header-logo-lixil {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 4px;
}

/* ロゴ間の区切り線 */
.header-logo-divider {
  display: block;
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* PCナビゲーション（デフォルト非表示、PCで表示） */
.header-nav {
  display: none;
  flex: 1;
}

.header-nav ul {
  display: flex;
  justify-content: center;
  gap: 0.1rem;
}

.nav-link {
  display: block;
  padding: 0.5em 0.7em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: 4px;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-gold);
}

/* PC用電話ボタン（デフォルト非表示、タブレット以上で表示） */
/* 無料見積りボタン（電話番号の左隣） */
.header-estimate {
  display: none;
  padding: 0.5em 1.1em;
  background: transparent;
  color: var(--color-gold-dark);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.header-estimate:hover,
.header-estimate:focus-visible {
  background: var(--color-gold);
  color: var(--color-white);
}

.header-tel {
  display: none;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1em;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition);
}

.header-tel:hover,
.header-tel:focus-visible {
  background: var(--color-gold-dark);
}

/* ハンバーガーボタン */
.hamburger {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background var(--transition);
}

.hamburger:hover,
.hamburger:focus-visible {
  background: var(--color-cream);
  outline: none;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ハンバーガー 開いた状態（×表示） */
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* スマホ用ドロワーナビ（開いた時） */
.header-nav.nav-open {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-gold);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0 1.5rem;
  animation: slideDown 0.2s ease;
}

.header-nav.nav-open ul {
  flex-direction: column;
  gap: 0;
}

.header-nav.nav-open .nav-link {
  padding: 0.9em 1.5em;
  font-size: 1rem;
  border-radius: 0;
  border-bottom: 1px solid var(--color-cream-dark);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   05. ヒーロー（ファーストビュー）
   背景：ロゴに合わせたクリーム〜ホワイトグラデーション
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* スマホブラウザのアドレスバー対策 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-dark);
  text-align: center;
  background: linear-gradient(160deg, var(--color-cream) 0%, #FFFFFF 55%, var(--color-gold-light) 100%);
}

/* ヒーローコンテンツ */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ロゴマーク（可能な限り大きく・レスポンシブ対応） */
.hero-logo-wrap {
  position: relative;
  display: block;
  width: min(480px, 82vw);
}

.hero-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160vw;
  height: 2px;
  margin-left: -80vw;
  opacity: 0;
  border-radius: 1px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(45, 45, 45, 0.2) 35%,
    rgba(45, 45, 45, 0.85) 50%,
    rgba(45, 45, 45, 0.2) 65%,
    transparent 100%
  );
  box-shadow: 0 0 6px 1px rgba(45, 45, 45, 0.25);
}

/* 横線（元のゴールド、左 → 右） */
.hero-sweep-h {
  transform: translateY(-50%) translateX(-150vw);
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(196, 168, 71, 0.3) 30%,
    rgba(255, 230, 100, 0.95) 50%,
    rgba(196, 168, 71, 0.3) 70%,
    transparent 100%
  );
  box-shadow: 0 0 10px 2px rgba(255, 220, 80, 0.5);
  height: 3px;
  animation: hero-sweep-h 4s ease-in-out infinite;
}

@keyframes hero-sweep-h {
  0%   { transform: translateY(-50%) translateX(-150vw); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-50%) translateX(150vw);  opacity: 0; }
}

/* 右上 → 左下（屋根の左斜面と同角度）― アンカーをロゴの「c」付近（左端から85%）に設定 */
.hero-sweep-a {
  left: 85%;
  transform: translateY(-50%) rotate(-35deg) translateX(200vw);
  animation: hero-sweep-a 4s ease-in-out infinite;
}

@keyframes hero-sweep-a {
  0%   { transform: translateY(-50%) rotate(-35deg) translateX(200vw);  opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-50%) rotate(-35deg) translateX(-200vw); opacity: 0; }
}


.hero-logo {
  width: 100%;
  height: auto;
  display: block;
}

.hero-title {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-dark);
}

.hero-lead {
  font-size: clamp(0.875rem, 2.2vw, 1.05rem);
  font-weight: 700;
  color: var(--color-gold-dark);
  line-height: 1.6;
}

.hero-sub {
  font-size: clamp(0.72rem, 1.8vw, 0.925rem);
  color: var(--color-text-light);
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-btns .btn {
  width: 100%;
  max-width: 320px;
  text-align: center;
}



/* ============================================================
   06. お悩み訴求
============================================================ */
.concerns {
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
    url('../施工実績写真/背景/2.jpg') center / cover no-repeat;
}

.concerns-grid {
  display: grid;
  grid-template-columns: 1fr; /* スマホ：1列 */
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.concern-item {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.concern-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.concern-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: var(--color-gold-light);
  border-radius: 50%;
  margin: 0 auto 1rem;
  color: var(--color-gold-dark);
}

.concern-item p {
  font-size: 1.05rem;
  font-weight: 600;
  color: #000;
  line-height: 1.7;
}

.concerns-cta-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1.5rem;
}

.concerns-cta-free {
  color: #000;
  font-size: 1.2em;
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 1px;
}

.concerns-cta-btn {
  font-size: 1.1rem;
  padding: 1em 2.5em;
  box-shadow: 0 6px 20px rgba(196, 168, 71, 0.45);
  color: #000;
}

.concerns-cta-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
}


/* ============================================================
   07. 会社について
============================================================ */
.about-inner {
  display: flex;
  flex-direction: column; /* スマホ：縦並び */
  gap: 2.5rem;
}

.about-text {
  flex: 1;
}

.about-lead {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.8;
  margin-bottom: 0.75em;
}

.about-text p {
  margin-bottom: 0.75em;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* 会社情報テーブル */
.about-info {
  margin-top: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.about-info-row {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.about-info-row:last-child {
  border-bottom: none;
}

.about-info-row dt {
  width: 7em;
  flex-shrink: 0;
  background: var(--color-cream-dark);
  padding: 0.6em 1em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-align: justify;
  text-align-last: justify;
}

.about-info-row dd {
  padding: 0.6em 1em;
  font-size: 0.875rem;
}

/* ロゴ列（PC表示用） */
.about-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 市松模様 2×2グリッド */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* 市松模様：白とクリームを交互に */
.logo-cell--white {
  background: var(--color-white);
}

.logo-cell--cream {
  background: var(--color-cream-dark);
}

.logo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 追加予定プレースホルダー */
.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: center;
  aspect-ratio: 1 / 1;
}


/* ============================================================
   08. 選ばれる理由
============================================================ */
.reasons {
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    url('../施工実績写真/背景/1.jpg') center / cover no-repeat;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr; /* スマホ：1列 */
  gap: 1.25rem;
}

.reason-card {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

/* 左側のゴールドアクセントライン */
.reason-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-gold);
}

.reason-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.reason-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.reason-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.6rem;
}

.reason-card p {
  font-size: 0.925rem;
  color: var(--color-text-light);
  line-height: 1.8;
}


/* ============================================================
   09. 対応工事
============================================================ */
.services {
  background: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* スマホ：2列 */
  gap: 1rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(196, 168, 71, 0.35);
}

.service-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.service-card:hover .service-img {
  transform: scale(1.06);
}

.service-body {
  padding: 1.1rem 0.75rem 1.25rem;
}

.service-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.4;
}


/* ============================================================
   10. 空き家相談窓口
============================================================ */
.vacancy {
  position: relative;
  overflow: hidden;
}

/* vacancy-cardのanimate-inはtransformなし（transformがstacking contextを作るとz-index比較が壊れるため） */
.vacancy .animate-in,
.vacancy .animate-in.is-visible {
  transform: none;
}

.vacancy-sweep {
  position: absolute;
  top: var(--vacancy-sweep-top, 50%);
  left: 50%;
  width: 100vw;
  height: 3px;
  margin-left: -50vw;
  opacity: 0;
  transform: translateY(-50%) translateX(150vw);
  background: linear-gradient(
    to left,
    transparent 0%,
    rgba(45, 45, 45, 0.25) 30%,
    rgba(45, 45, 45, 0.85) 50%,
    rgba(45, 45, 45, 0.25) 70%,
    transparent 100%
  );
  box-shadow: 0 0 8px 2px rgba(45, 45, 45, 0.3);
  border-radius: 2px;
  pointer-events: none;
  z-index: 10;
  animation: vacancy-sweep 5s ease-in-out infinite;
}

@keyframes vacancy-sweep {
  0%   { transform: translateY(-50%) translateX(150vw); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateY(-50%) translateX(-150vw); opacity: 0; }
}

/* 縦線：下から上、横線と同じ5s・遅延なしで交差タイミングを同期 */
.vacancy-sweep-v {
  position: absolute;
  left: 28vw;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  pointer-events: none;
  border-radius: 2px;
  z-index: 10;
  background: linear-gradient(
    to top,
    transparent   0%,
    transparent  35%,
    rgba(196, 168, 71, 0.25) 42%,
    rgba(255, 230, 100, 0.95) 50%,
    rgba(196, 168, 71, 0.25) 58%,
    transparent  65%,
    transparent 100%
  );
  background-size: 100% 300%;
  background-position: 0% -100%;
  opacity: 0;
  animation: vacancy-sweep-v 5s ease-in-out infinite;
}

@keyframes vacancy-sweep-v {
  0%   { background-position: 0% -100%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { background-position: 0% 140%;  opacity: 0; }
}

@keyframes neon-pulse-instagram {
  0%, 100% {
    box-shadow:
      0 0 4px rgba(225, 48, 108, 0.5),
      0 0 10px rgba(225, 48, 108, 0.3),
      0 0 20px rgba(188, 24, 136, 0.2);
  }
  50% {
    box-shadow:
      0 0 6px rgba(225, 48, 108, 0.7),
      0 0 16px rgba(225, 48, 108, 0.4),
      0 0 32px rgba(188, 24, 136, 0.3);
  }
}

@keyframes neon-pulse-line {
  0%, 100% {
    box-shadow:
      0 0 4px rgba(6, 199, 85, 0.5),
      0 0 10px rgba(6, 199, 85, 0.3),
      0 0 20px rgba(6, 199, 85, 0.2);
  }
  50% {
    box-shadow:
      0 0 6px rgba(6, 199, 85, 0.7),
      0 0 16px rgba(6, 199, 85, 0.4),
      0 0 32px rgba(6, 199, 85, 0.3);
  }
}

.vacancy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 560px;
  margin-inline: auto;
}

.vacancy-card {
  background: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.vacancy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vacancy-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-gold-light);
  border-radius: 50%;
  color: var(--color-gold-dark);
  flex-shrink: 0;
}

.vacancy-card-icon svg {
  width: 32px;
  height: 32px;
}

.vacancy-card-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}
.vacancy-card-badge-row::before,
.vacancy-card-badge-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #000;
}

.vacancy-card-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.3em 0.9em;
  background: var(--color-gold-light);
  color: var(--color-gold-dark);
  border: 1px solid var(--color-gold);
  border-radius: 2em;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.vacancy-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.5;
}

.vacancy-card-subname {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.vacancy-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.8;
  flex: 1;
}

.vacancy-card-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-size: 0.875rem;
  color: var(--color-text);
}

.vacancy-card-address svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.vacancy-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.6em 1.5em;
  background: var(--color-white);
  color: var(--color-gold-dark);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  margin-top: 0.25rem;
  position: relative;
  z-index: 20;
}

.vacancy-card-link:hover,
.vacancy-card-link:focus-visible {
  background: var(--color-gold);
  color: var(--color-white);
}


/* ============================================================
   11. 施工実績
============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: 1fr; /* スマホ：1列 */
  gap: 1.5rem;
}

.work-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  outline: none;
}

.work-card:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 2px;
}

/* 写真エリア（縦横比4:3固定） */
.work-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-img {
  transform: scale(1.05);
}

/* ホバー時のゴールドオーバーレイ */
.work-img-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(196, 168, 71, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.work-card:hover .work-img-overlay,
.work-card:focus-visible .work-img-overlay {
  opacity: 1;
}

.work-img-overlay span {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid white;
  padding: 0.5em 1.5em;
  border-radius: 4px;
}

.work-body {
  padding: 1.1rem 1.25rem;
}

.work-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.55;
}


/* ============================================================
   11. お問い合わせ（フォーム・マップ）
============================================================ */
.contact-inner {
  display: flex;
  flex-direction: column; /* スマホ：縦並び */
  gap: 2.5rem;
}

/* 電話番号（大きく目立たせる） */
.contact-info-main {
  margin-bottom: 1.5rem;
}

.contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.2;
  margin-bottom: 0.3rem;
  text-decoration: none;
  transition: color var(--transition);
}

.contact-tel:hover,
.contact-tel:focus-visible {
  color: var(--color-gold-dark);
}

.contact-tel svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-hours {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

/* 連絡先テーブル */
.contact-detail {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.contact-detail > div {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.contact-detail > div:last-child {
  border-bottom: none;
}

.contact-detail dt {
  width: 75px;
  flex-shrink: 0;
  background: var(--color-cream-dark);
  padding: 0.75em 1em;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
}

.contact-detail dd {
  padding: 0.75em 1em;
  font-size: 0.9rem;
  flex: 1;
}

.contact-detail a {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

/* Googleマップ */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  flex: 1; /* 左列の残りスペースを地図で埋める */
  min-height: 200px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* フォームコンテナ */
.contact-form-wrap {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.45rem;
}

/* 必須バッジ */
.required {
  display: inline-block;
  background: #c0392b;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  margin-left: 0.4em;
  vertical-align: middle;
  line-height: 1.4;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(196, 168, 71, 0.2);
}

.form-input.is-error {
  border-color: #c0392b;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* エラーメッセージ */
.form-error {
  display: block;
  font-size: 0.8rem;
  color: #c0392b;
  margin-top: 0.3em;
  min-height: 1.2em;
}

/* 送信完了メッセージ */
.form-success {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: #f0faf5;
  border: 1px solid #7dba9e;
  border-radius: var(--radius);
  text-align: center;
  color: #2d7a55;
  font-weight: 600;
  line-height: 1.8;
}


/* ============================================================
   12. フッター
============================================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: flex;
  flex-direction: column; /* スマホ：縦並び */
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-logo-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  width: 100px;
  background: #ffffff;
  border-radius: 6px;
  padding: 6px;
}

.footer-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
}

.footer-address {
  font-size: 0.875rem;
  line-height: 2;
}

.footer-address a {
  color: var(--color-gold-light);
  transition: color var(--transition);
}

.footer-address a:hover,
.footer-address a:focus-visible {
  color: var(--color-gold);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.65em 1.6em;
  min-width: 9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter var(--transition), transform var(--transition);
}

.footer-social-btn:hover,
.footer-social-btn:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.footer-social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.footer-social-instagram {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  color: #fff;
  animation: neon-pulse-instagram 2s ease-in-out infinite;
}

.footer-social-line {
  background: #06C755;
  color: #fff;
  animation: neon-pulse-line 2s ease-in-out infinite;
}

.footer-copy {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
  text-align: center;
}

.footer-copy p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-site-id {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  margin-top: 0.3rem;
}


/* ============================================================
   13. フローティングCTA（スマホ用・画面下部固定）
============================================================ */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  height: 60px;
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.18);
}

.floating-tel,
.floating-contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter var(--transition);
}

.floating-tel {
  background: var(--color-gold);
  color: var(--color-white);
}

.floating-contact {
  background: var(--color-dark);
  color: var(--color-white);
}

.floating-tel:hover,
.floating-tel:focus-visible {
  filter: brightness(0.9);
}

.floating-contact:hover,
.floating-contact:focus-visible {
  filter: brightness(1.25);
}


/* ============================================================
   フローティングSNSボタン（右側固定）
============================================================ */
.floating-sns {
  position: fixed;
  right: 16px;
  bottom: 120px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.floating-sns.is-visible {
  opacity: 1;
  visibility: visible;
}

.floating-sns-btn {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  -webkit-tap-highlight-color: transparent;
}

.floating-sns-instagram {
  background-color: #dc2743;
  background: -webkit-linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  animation: neon-pulse-instagram 2s ease-in-out infinite;
}

.floating-sns-line {
  background-color: #06C755;
  background: #06C755;
  animation: neon-pulse-line 2s ease-in-out infinite;
}

.floating-sns-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  flex-shrink: 0;
}

/* タブレット以上はフローティングCTAがないので bottom を調整 */
@media (min-width: 768px) {
  .floating-sns {
    bottom: 56px;
    right: 20px;
  }

  .floating-sns-btn:hover {
    opacity: 0.85;
  }
}


/* ============================================================
   14. ライトボックス（施工写真拡大表示）
============================================================ */
.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

/* 暗い背景 */
.lightbox-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* 閉じるボタン */
.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  color: var(--color-white);
}

.lightbox-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.lightbox-img-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.lightbox-img {
  flex: 1;
  max-height: 68vh;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

/* 前へ・次へボタン */
.lightbox-nav {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.38);
}

.lightbox-nav:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

/* サムネイル */
.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lightbox-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity var(--transition), border-color var(--transition);
}

.lightbox-thumb.active,
.lightbox-thumb:hover {
  opacity: 1;
  border-color: var(--color-gold);
}


/* ============================================================
   15. スクロールアニメーション（IntersectionObserver）
============================================================ */
.animate-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* カードを順番に表示（遅延付き） */
.animate-in:nth-child(2) { transition-delay: 0.08s; }
.animate-in:nth-child(3) { transition-delay: 0.16s; }
.animate-in:nth-child(4) { transition-delay: 0.24s; }


/* ============================================================
   16. レスポンシブ — タブレット（768px以上）
============================================================ */
@media (min-width: 768px) {
  :root {
    --section-pad:     96px;
    --container-pad:   32px;
  }

  /* bodyのpadding-bottomをリセット（フローティングCTA非表示のため） */
  body {
    padding-bottom: 0;
  }

  /* ヘッダー：見積りボタン・電話ボタン表示 */
  .header-estimate {
    display: inline-flex;
  }

  .header-tel {
    display: flex;
  }

  /* ヒーロー：ボタンを横並び */
  .hero-btns {
    flex-direction: row;
    justify-content: center;
  }

  .hero-btns .btn {
    width: auto;
    min-width: 240px;
  }

  /* お悩み：3列 */
  .concerns-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 選ばれる理由：2列 */
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 対応工事：3列 */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 空き家相談窓口：1枚中央寄せ */
  .vacancy-grid {
    grid-template-columns: 1fr;
  }

  /* 施工実績：2列 */
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* お問い合わせ：横並び */
  .contact-inner {
    flex-direction: row;
    align-items: stretch; /* 両列の高さを揃える */
  }

  .contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .contact-form-wrap {
    flex: 1;
  }

  /* フッター：横並び */
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    align-items: flex-start;
  }

  /* フローティングCTAは非表示 */
  .floating-cta {
    display: none;
  }
}


/* ============================================================
   17. レスポンシブ — PC（1024px以上）
============================================================ */
@media (min-width: 1024px) {
  /* ヘッダー：PCナビ表示、ハンバーガー非表示 */
  .header-nav {
    display: block;
  }

  .hamburger {
    display: none;
  }

  /* 選ばれる理由：3列（5枚を綺麗に並べる） */
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 対応工事：4列 */
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 施工実績：4列 */
  .works-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 会社について：横並び（左：テキスト　右：ロゴグリッド） */
  .about-inner {
    flex-direction: row;
    gap: 3rem;
    align-items: flex-start;
  }

  .about-text {
    flex: 1;
  }

  .about-logo-col {
    flex: 0 0 300px;
  }
}
