@charset "UTF-8";

/* ==========================================================================
   CSS Variables & Design Tokens (添付画像1枚目「クジョーズ」カラー準拠)
   ========================================================================== */
:root {
  /* メインカラー：鮮やかで信頼感のあるプロフェッショナルブルー */
  --color-primary: #0072bc;
  --color-primary-dark: #073863;
  --color-primary-light: #eaf4fb;
  --color-primary-soft: rgba(0, 114, 188, 0.08);
  --color-primary-hover: #005fa0;
  
  /* アクセントカラー：視認性と行動喚起の高いエネルギッシュオレンジ */
  --color-accent: #ff7a00;
  --color-accent-dark: #e05e00;
  --color-accent-light: #fff5eb;
  --color-accent-soft: rgba(255, 122, 0, 0.1);
  --color-accent-gradient: linear-gradient(135deg, #ff931e 0%, #ff6100 100%);
  
  /* サブアクセント：シアンブルー & レッド（チェックマーク・警告用） */
  --color-cyan: #00a0e9;
  --color-cyan-light: #e6f7ff;
  --color-check-red: #d93025;
  --color-warning-yellow: #ffe600;
  --color-problem-gray: #4a525a; /* PROBLEMセクション下部背景灰色 */
  
  /* テキストカラー */
  --color-text-main: #222b31;
  --color-text-sub: #515e66;
  --color-text-muted: #79868e;
  
  /* 背景カラー */
  --color-bg-white: #ffffff;
  --color-bg-alt: #f4f8fb;
  --color-bg-card: #ffffff;
  --color-border: #dbe5ec;
  --color-border-subtle: #edf3f7;
  
  --font-base: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", Roboto, sans-serif;
  --font-en: "Montserrat", sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 50, 100, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 60, 120, 0.08);
  --shadow-lg: 0 12px 36px rgba(0, 60, 120, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --header-height: 72px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* 横スクロール・横揺れ防止 */
}

/* 本文フォントサイズ：PC 16px */
body {
  font-family: var(--font-base);
  font-size: 16px;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  line-height: 1.85;
  letter-spacing: 0.03em;
  word-wrap: break-word;
  overflow-x: hidden; /* 横スクロール・横揺れ防止 */
  width: 100%;
  max-width: 100%;
  padding-top: var(--header-height); /* ヘッダーfixed固定に伴う押し出し */
  -webkit-user-select: none; /* ③テキスト選択禁止 */
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none; /* iOS Safari 長押し禁止 */
}

/* 入力フォームがある場合は選択・入力可能に設定 */
input, textarea {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

/* 本文テキストのフォントサイズ統一（PC: 16px） */
p, li, dd, dt {
  font-size: 16px;
}

/* PC専用改行 */
.pc-only {
  display: inline;
}

/* SP専用改行 */
.sp-only {
  display: none;
}

/* 本文フォントサイズ：SP 14px */
@media (max-width: 768px) {
  html {
    font-size: 14px;
    scroll-padding-top: 60px;
  }
  body {
    font-size: 14px;
  }
  p, li, dd, dt {
    font-size: 14px;
  }
  .pc-only {
    display: none;
  }
  .sp-only {
    display: inline;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img, svg, iframe {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none; /* ③画像のドラッグ保存禁止 */
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* ==========================================================================
   Header Styles (クジョーズ風ブルー×オレンジアクセント)
   ========================================================================== */
.site-header {
  position: fixed; /* ①SP時・PC時ともにヘッダーを上部固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--color-primary-light);
  box-shadow: 0 2px 12px rgba(0, 114, 188, 0.08);
  z-index: 950;
  transition: var(--transition);
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo a {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

.header-logo a:hover {
  opacity: 0.85;
}

.header-nav {
  margin-left: auto;
  margin-right: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  padding: 6px 4px;
  position: relative;
}

.nav-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-item a:hover {
  color: var(--color-primary);
}

.nav-item a:hover::after {
  width: 100%;
}

.header-contact {
  display: flex;
  align-items: center;
}

/* クジョーズ風のオレンジTELボタン */
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-gradient);
  color: #ffffff !important;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(255, 122, 0, 0.35);
  transition: var(--transition);
}

.header-tel .tel-icon {
  width: 18px;
  height: 18px;
}

.header-tel:hover {
  background: linear-gradient(135deg, #ff7a00 0%, #e05e00 100%);
  box-shadow: 0 5px 16px rgba(255, 122, 0, 0.45);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px auto;
  transition: var(--transition);
  border-radius: 2px;
}

@media (max-width: 960px) {
  :root {
    --header-height: 60px;
  }
  .header-inner {
    padding: 0 16px;
  }
  .header-logo a {
    font-size: 1.15rem;
  }
  /* SP時ヘッダー：電話ボタン削除 */
  .header-tel,
  .header-tel-text,
  .header-contact {
    display: none !important;
  }
  .hamburger {
    display: block;
  }
  
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
    padding: 80px 24px 40px;
    margin: 0;
    visibility: hidden; /* 閉じている時はブラウザの横幅計算から除外 */
    pointer-events: none;
    transition: right 0.35s ease, visibility 0.35s ease;
    z-index: 1000;
  }
  
  .header-nav.is-open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
  }
  
  .nav-item a {
    font-size: 1rem;
    display: block;
    width: 100%;
  }

  .hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1060px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

/* ==========================================================================
   Image Placeholder Component (画像場所確保)
   ========================================================================== */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #eef5fa 0%, #e1edf6 100%);
  border: 2px dashed #b9d2e4;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.img-placeholder::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--color-primary-soft) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.6;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  color: #8daec5;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.img-placeholder:hover .placeholder-icon {
  transform: scale(1.08);
  color: var(--color-primary);
}

/* ==========================================================================
   ① FV｜ファーストビュー（添付画像スタイル準拠・シャドウ完全削除・縦幅コンパクト調整）
   ========================================================================== */
.sec-fv {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 520px; /* FVの縦幅を少し狭く */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0 18px; /* パディングを短縮 */
  background-color: #073863;
  border-bottom: 1px solid var(--color-border);
  box-shadow: none; /* シャドウ削除 */
}

/* 背景画像：fvbackground（少しぼかし処理） */
.fv-bg-wrap {
  position: absolute;
  top: -16px;
  left: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.fv-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  transform: scale(1.04);
  opacity: 0.88;
}

.fv-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(7, 56, 99, 0.2) 100%
  );
  pointer-events: none;
}

/* 画面外側：左右の縦ライン＆英語タイポグラフィ（シャドウなし） */
.fv-side-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.fv-side-bar.left {
  left: 36px;
}

.fv-side-bar.right {
  right: 36px;
}

.side-bar-line {
  width: 1.5px;
  height: 55px;
  background-color: rgba(255, 255, 255, 0.4);
}

.side-bar-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.65);
  margin: 14px 0;
  white-space: nowrap;
}

/* コンテンツエリア */
.fv-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
}

.fv-visual-wrap {
  position: relative;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 真ん中：fvbbb（作業員：シャドウすべて削除） */
.fv-person-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.fv-person-img {
  max-height: 460px; /* 縦幅短縮に合わせたバランス調整 */
  width: auto;
  max-width: 96%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: none !important; /* シャドウすべて削除 */
}

/* その上に重ねて設置：fvaaa（シロアリ徹底駆除ロゴ：もう少し上へ移動） */
.fv-catch-wrap {
  width: 100%;
  max-width: 680px;
  margin-top: -165px; /* fvaaaをもう少し上へ移動 */
  position: relative;
  z-index: 3;
}

.fv-catch-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: none !important; /* シャドウすべて削除 */
}

/* fvaaaの下に設置するbadgeエリア（もう少し上へ移動） */
.fv-badges-wrap {
  margin-top: 6px; /* badgeももう少し上へ移動 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  z-index: 4;
}

/* 長方形badge：添付画像（駆除率100% / 安心の無料保証付き！）準拠の立体プレートデザイン */
.fv-badge-plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 12px 32px 13px;
  background: linear-gradient(180deg, #18b5ff 0%, #0093ef 48%, #0072d8 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px; /* 長方形 */
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 2px rgba(0, 40, 100, 0.3),
    0 4px 12px rgba(0, 50, 120, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.fv-badge-plate:hover {
  border-color: #ffee00;
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(0, 40, 100, 0.3),
    0 6px 16px rgba(0, 50, 120, 0.35);
}

/* 四隅のビス留め装飾（添付画像の白い光沢ピン） */
.badge-rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d8efff 55%, #7abde8 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  pointer-events: none;
}
.rivet-tl { top: 6px; left: 6px; }
.rivet-tr { top: 6px; right: 6px; }
.rivet-bl { bottom: 6px; left: 6px; }
.rivet-br { bottom: 6px; right: 6px; }

/* 上段：鮮烈イエロー・斜体・極太・白光彩テキスト（添付画像「駆除率100%」完全再現） */
.badge-row-main {
  font-family: var(--font-en), var(--font-base);
  font-size: 2rem;
  font-weight: 900;
  font-style: italic; /* 斜体 */
  color: #ffee00; /* 鮮やかなイエロー */
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 10px rgba(255, 238, 0, 0.5),
    1px 1px 2px rgba(0, 40, 100, 0.5);
  display: inline-block;
  transform: skewX(-4deg);
}

/* 中央の白い仕切り横線（添付画像準拠） */
.badge-divider-line {
  width: 88%;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 1px rgba(0, 40, 100, 0.2);
  margin: 5px auto 6px;
}

/* 下段：純白・太字・クリアテキスト（添付画像「安心の無料保証付き！」準拠） */
.badge-row-sub {
  font-family: var(--font-base);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 45, 110, 0.6);
}

@media (max-width: 1200px) {
  .fv-side-bar {
    display: none;
  }
}

/* レスポンシブ（SP時） */
@media (max-width: 768px) {
  .sec-fv {
    min-height: auto;
    padding: 20px 0 16px; /* SP時も縦幅をコンパクトに */
  }
  .fv-inner {
    padding: 0 16px;
  }
  .fv-person-img {
    max-height: 290px;
    max-width: 96%;
  }
  .fv-catch-wrap {
    margin-top: -95px; /* fvaaaを上へ移動 */
    max-width: 350px;
  }
  .fv-badges-wrap {
    margin-top: 6px; /* badgeも上へ移動 */
    gap: 10px;
    padding: 0 6px;
  }
  .fv-badge-plate {
    min-width: 140px;
    padding: 10px 18px 11px;
    flex: 1 1 calc(50% - 10px);
  }
  .badge-rivet {
    width: 5px;
    height: 5px;
  }
  .rivet-tl { top: 4px; left: 4px; }
  .rivet-tr { top: 4px; right: 4px; }
  .rivet-bl { bottom: 4px; left: 4px; }
  .rivet-br { bottom: 4px; right: 4px; }
  .badge-row-main {
    font-size: 1.35rem;
  }
  .badge-divider-line {
    margin: 4px auto 5px;
  }
  .badge-row-sub {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .fv-person-img {
    max-height: 240px;
  }
  .fv-catch-wrap {
    margin-top: -75px;
    max-width: 300px;
  }
  .fv-badges-wrap {
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
  }
  .fv-badge-plate {
    width: 100%;
    min-width: unset;
    padding: 10px 14px;
  }
}

/* ==========================================================================
   CTAエリア（添付画像準拠：上部青吹き出し・左2行テキスト・右特大電話番号・白背景）
   ========================================================================== */
.sec-cta {
  background-color: #ffffff; /* 背景は白 */
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.price-cta-wrap {
  margin-top: 54px;
  width: 100%;
  background-color: #ffffff; /* 背景は白 */
}

.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* 上部青い吹き出し */
.cta-bubble {
  position: relative;
  background-color: var(--color-primary); /* 上部の吹き出しは青 */
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 10px 36px;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 114, 188, 0.22);
}

/* 吹き出しのしっぽ（下向き三角形） */
.cta-bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 10px solid var(--color-primary);
}

/* 下部メイン行（左に2行テキスト・右に電話番号） */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  padding: 6px 0;
}

/* 左側：相談無料、床下点検無料（センター揃え） */
.cta-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
  line-height: 1.35;
  border-right: 2px solid #cbd5e1;
  padding-right: 22px;
}

.cta-feature-item {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a2228;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-align: center;
}

/* 右側：受話器アイコン ＋ 特大電話番号 ＆ 営業時間（左右真ん中配置） */
.cta-tel-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-tel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #111827;
  text-decoration: none;
  transition: var(--transition);
}

.cta-tel-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

.cta-tel-icon-img {
  width: 38px;
  height: 38px;
  color: #111827;
  flex-shrink: 0;
  transform: rotate(-10deg);
  transition: transform 0.2s ease, color 0.2s ease;
}

.cta-tel-link:hover .cta-tel-icon-img {
  color: var(--color-primary);
  transform: rotate(-10deg) scale(1.08);
}

.cta-tel-num-text {
  font-family: var(--font-en);
  font-size: 3.3rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
}

.cta-business-hours {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-sub);
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* レスポンシブ（SP時） */
@media (max-width: 768px) {
  .sec-cta {
    padding: 30px 0;
  }
  .price-cta-wrap {
    margin-top: 36px;
  }
  .cta-bubble {
    font-size: 0.92rem;
    padding: 8px 18px;
    margin-bottom: 14px;
    line-height: 1.45;
  }
  .cta-bubble::after {
    bottom: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--color-primary);
  }
  .cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .cta-features {
    flex-direction: row;
    gap: 12px;
    border-right: none;
    padding-right: 0;
    align-items: center;
    justify-content: center;
  }
  .cta-feature-item {
    font-size: 0.98rem;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 4px;
  }
  .cta-tel-block {
    align-items: center;
    text-align: center;
  }
  .cta-tel-icon-img {
    width: 26px;
    height: 26px;
  }
  .cta-tel-num-text {
    font-size: 2.15rem;
  }
  .cta-business-hours {
    font-size: 0.82rem;
    margin-top: 4px;
  }
}

/* ==========================================================================
   ② PROBLEMセクション (こんなお悩みありませんか？)
   ========================================================================== */
.sec-problem {
  padding-top: 0;
  padding-bottom: 90px;
  background-color: var(--color-problem-gray); /* 画像の下背景色は灰色 */
  position: relative;
  overflow: hidden;
}

/* 上部ヒーロー画像エリア */
.problem-hero {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
}

.problem-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* problem画像少し薄く */
.problem-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
  filter: brightness(0.9);
}

/* 画像下部のグラデーション（灰色背景へフェード） */
.problem-gradient-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(74, 82, 90, 0.15) 0%,
    rgba(74, 82, 90, 0.45) 45%,
    rgba(74, 82, 90, 0.85) 75%,
    #4a525a 100%
  );
  pointer-events: none;
}

/* 「こんなお悩みありませんか？」のテキスト（もう少しだけ下に移動） */
.problem-title-box {
  position: absolute;
  top: 100px; /* もう少し下に移動 */
  left: 0;
  width: 100%;
  z-index: 2;
  text-align: center;
}

.problem-heading {
  font-size: 2.35rem;
  font-weight: 700;
  color: #ff917a; /* 添付画像風の温かみのあるコーラルピンク/オレンジ */
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* 下部コンテンツ（画像下部に食い込ませるネガティブマージン） */
.problem-content {
  position: relative;
  z-index: 5;
  margin-top: -140px;
  max-width: 820px;
}

/* チェックリスト ＋ 警告バーのラッパー */
.problem-card-wrap {
  border-radius: var(--radius-md);
  overflow: visible; /* 吹き出しの尻尾が見えるように */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 38px;
}

/* 添付画像風の白背景チェックリスト */
.problem-card {
  background-color: #ffffff;
  padding: 44px 48px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.problem-checklist {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.problem-check-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #eef2f5;
  transition: var(--transition);
}

.problem-check-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.problem-check-item:hover {
  transform: translateX(4px);
}

/* 四角い赤いチェックボックスアイコン */
.check-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: var(--color-check-red);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(217, 48, 37, 0.35);
}

.check-icon svg {
  width: 20px;
  height: 20px;
}

.problem-check-text {
  font-size: 16px;
  font-weight: 700;
  color: #1a2228;
  line-height: 1.6;
}

/* 警告バー（黒い部分を吹き出し形状に） */
.warning-banner {
  display: flex;
  align-items: center;
  height: 56px;
  background-color: #000000;
  position: relative;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* 左右の赤黒斜線ストライプ */
.warning-stripe {
  flex: 1;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    #d32f2f,
    #d32f2f 12px,
    #000000 12px,
    #000000 24px
  );
}

/* 中央黒背景の吹き出しボックス */
.warning-speech-bubble {
  flex-shrink: 0;
  background-color: #000000;
  padding: 10px 36px;
  border-radius: 8px; /* 吹き出しの角丸 */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* 黄色文字「放置すると大変なことに！」 */
.warning-text {
  color: var(--color-warning-yellow);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* 吹き出しの尻尾（下向き三角矢印） */
.speech-tail {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 11px solid #000000;
  z-index: 11;
}

/* 下部テキスト（枠削除、すべて太字、PC時改行） */
.problem-bottom-text {
  text-align: center;
  padding: 18px 20px 0;
}

.problem-bottom-text p {
  font-size: 16px;
  font-weight: 700; /* すべて太字 */
  line-height: 2.05;
  color: #ffffff; /* 灰色背景上の読みやすい白文字 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.problem-bottom-text p:first-child {
  margin-bottom: 14px;
}

.problem-bottom-text p:last-child {
  font-size: 16px;
  color: #ffe600; /* 強調の黄色 */
}

@media (max-width: 768px) {
  .problem-hero {
    height: 350px;
  }
  .problem-title-box {
    top: 60px; /* SP時も少し下に移動 */
  }
  .problem-heading {
    font-size: 1.55rem;
  }
  .problem-content {
    margin-top: -110px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .problem-card {
    padding: 24px 18px;
  }
  .problem-checklist {
    gap: 16px;
  }
  .problem-check-item {
    gap: 12px;
    padding-bottom: 16px;
    align-items: flex-start;
  }
  .check-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    margin-top: 2px;
  }
  .check-icon svg {
    width: 16px;
    height: 16px;
  }
  .problem-check-text {
    font-size: 14px;
  }
  .warning-banner {
    height: 48px;
  }
  .warning-speech-bubble {
    padding: 8px 16px;
    border-radius: 6px;
  }
  .warning-text {
    font-size: 0.95rem;
  }
  .speech-tail {
    bottom: -9px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 9px solid #000000;
  }
  .problem-bottom-text {
    text-align: left;
    padding-left: 6px;
    padding-right: 6px;
  }
  .problem-bottom-text p {
    font-size: 14px;
    text-align: left;
  }
  .problem-bottom-text p:last-child {
    font-size: 14px;
    text-align: left;
  }
}

/* ==========================================================================
   ③ ABOUT｜当社について (下の部分が切れる問題を完全修正)
   ========================================================================== */
.sec-about {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding-top: 90px;
  padding-bottom: 100px; /* 下部に十分なゆとりを確保し見切れを防止 */
  overflow: visible;
}

.about-container {
  overflow: visible;
}

.about-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.about-lead {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 24px;
  position: relative;
  padding-left: 18px;
  border-left: 5px solid var(--color-accent);
}

.about-text p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--color-text-sub);
  line-height: 1.9;
}

.about-text p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--color-text-main);
}

.about-img-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img,
.about-img-wrap .img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  max-height: 380px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

@media (max-width: 860px) {
  .sec-about {
    padding-top: 60px;
    padding-bottom: 70px;
  }
  .about-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-lead {
    font-size: 1.3rem;
  }
  .about-img,
  .about-img-wrap .img-placeholder {
    min-height: 220px;
    max-height: 300px;
  }
  .about-text p {
    font-size: 14px;
  }
}

/* ==========================================================================
   ④ FEATURE｜総合住宅サービス住建が選ばれる3つの理由
   （固定背景：Safari完全対応・レスポンシブ、添付画像デザイン準拠）
   ========================================================================== */
.sec-feature {
  position: relative;
  padding-top: 90px;
  padding-bottom: 100px;
  background-color: #f4f8fb;
  /* Safari・全ブラウザ完全互換の固定背景クリップ */
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  z-index: 1;
  overflow: hidden;
}

/* 固定背景レイヤー（Safari対応 position: fixed ＆ GPU加速） */
.sec-feature::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../img/background.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  opacity: 0.38; /* 固定背景の画像を少し薄く */
}

.feature-container {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

/* 上部タイトル（添付画像準拠） */
.feature-header {
  text-align: center;
  margin-bottom: 50px;
}

.feature-pill-badge {
  display: inline-block;
  background-color: var(--color-primary); /* 黒枠から青に変更 */
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 34px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 114, 188, 0.3);
}

.feature-main-title {
  margin-top: 14px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a2228;
  letter-spacing: 0.05em;
  display: flex;
  align-items: baseline; /* 下の部分を揃える */
  justify-content: center;
}

.feature-num {
  font-size: 4.8rem; /* 3をもう少し拡大 */
  font-weight: 900;
  color: var(--color-accent); /* 現在のアクセントカラー（鮮やかオレンジ） */
  line-height: 0.88;
  margin-right: 6px;
  font-family: var(--font-en);
}

/* 理由カードリスト */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* 各理由カード（添付画像風白背景2カラム） */
.feature-row-card {
  background-color: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: var(--radius-md);
  padding: 40px 44px;
  box-shadow: 0 8px 24px rgba(0, 50, 100, 0.08);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  transition: var(--transition);
}

/* 画像の位置を左右交互に配置（偶数番目のカード：画像左・テキスト右）
   ※テキストの横幅（1.25fr）や内部の配置・位置は一切変更せず維持 */
.feature-row-card:nth-child(even) {
  grid-template-columns: 0.75fr 1.25fr;
}

.feature-row-card:nth-child(even) .feature-content-side {
  order: 2;
}

.feature-row-card:nth-child(even) .feature-img-side {
  order: 1;
}

.feature-row-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 114, 188, 0.12);
  border-color: #b9d8eb;
}

/* 左側テキストコンテンツ */
.feature-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

/* 理由バッジ */
.reason-badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 2px;
}

.reason-label {
  writing-mode: vertical-rl;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  letter-spacing: 0.1em;
  line-height: 1;
}

.reason-num {
  font-family: var(--font-en);
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary-dark);
}

/* 見出し＆マーカー線 */
.feature-row-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
  margin: 0;
}

.feature-row-heading .marker {
  background: linear-gradient(transparent 65%, #ffeb99 65%);
  padding-bottom: 2px;
}

/* 本文テキスト */
.feature-text-block p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.85;
  margin-bottom: 10px;
}

.feature-text-block p:last-child {
  margin-bottom: 0;
}

.feature-text-block .feature-note {
  font-size: 14px !important;
  color: var(--color-text-muted) !important;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
  padding-left: 1.15em;
  text-indent: -1.15em;
}

/* 右側画像プレースホルダー（画像をもう少し拡大） */
.feature-img-side {
  width: 100%;
}

.feature-img,
.feature-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 250px;
  max-height: 330px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* レスポンシブ＆SP用サファリ対応 */
@media (max-width: 768px) {
  .sec-feature {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .sec-feature::before {
    /* SP用固定背景：spbackground.jpeg（Safari完全対応・GPU加速） */
    background-image: url('../img/spbackground.jpeg');
    background-size: cover;
    background-position: center center;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .feature-header {
    margin-bottom: 35px;
  }
  .feature-pill-badge {
    font-size: 0.95rem;
    padding: 6px 20px;
  }
  .feature-main-title {
    font-size: 1.75rem;
  }
  .feature-num {
    font-size: 2.7rem;
  }
  .feature-list {
    gap: 24px;
  }
  .feature-row-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 20px;
  }
  .feature-row-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .feature-row-card:nth-child(even) .feature-content-side {
    order: 1;
  }
  .feature-row-card:nth-child(even) .feature-img-side {
    order: 2;
  }
  .feature-title-wrap {
    gap: 12px;
    margin-bottom: 16px;
  }
  .reason-num {
    font-size: 2.1rem;
  }
  .feature-row-heading {
    font-size: 1.15rem;
  }
  .feature-text-block p {
    font-size: 14px;
  }
  .feature-text-block .feature-note {
    font-size: 12px !important;
    padding-left: 1.15em;
    text-indent: -1.15em;
  }
  .feature-img-placeholder {
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   ⑤ PRICE | 料金案内
   ========================================================================== */
.sec-price {
  background-color: #ffffff; /* 背景を白に変更 */
  padding-top: 0; /* タイトルバーを最上部に全幅配置 */
  padding-bottom: 90px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* 全幅タイトルバー（背景グラデーションをやめて単色青に変更） */
.price-header-banner {
  width: 100%;
  background-color: var(--color-primary); /* 単色青 */
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 114, 188, 0.18);
  margin-bottom: 50px;
}

.price-banner-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
}

/* 添付画像2枚目スタイルの各プランカード（白背景・左丸写真・中央料金・右説明文） */
.price-item-card {
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: 0 8px 24px rgba(0, 50, 100, 0.06);
  display: grid;
  grid-template-columns: 140px 240px 1fr;
  gap: 32px;
  align-items: center;
  transition: var(--transition);
}

.price-item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 114, 188, 0.12);
  border-color: #b9d8eb;
}

/* 形は丸（正円写真） */
.price-col-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

img.price-img-circle,
.price-img-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #eaf3f8;
  box-shadow: 0 4px 12px rgba(0, 50, 100, 0.1);
  background: linear-gradient(135deg, #eef5fa 0%, #e1edf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  object-fit: cover;
}

.price-img-circle .placeholder-icon {
  width: 44px;
  height: 44px;
  color: #8daec5;
}

/* 中央：プラン名バッジ ＆ 目立つ特大料金 */
.price-col-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/* 添付画像風のプラン名バッジ */
.price-badge {
  background-color: #243038;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 18px;
  border-radius: 4px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 添付画像2枚目のように目立つ料金表示 */
.price-amount-wrap {
  display: flex;
  align-items: baseline;
  line-height: 1;
}

/* 無料の特大表示 */
.price-highlight-free {
  font-size: 3.4rem;
  font-weight: 900;
  color: #d93025; /* 添付画像風の赤系インパクトカラー */
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(217, 48, 37, 0.15);
}

/* ￥記号 */
.price-symbol {
  font-size: 1.8rem;
  font-weight: 900;
  color: #d93025;
  margin-right: 2px;
}

/* 数字（特大・斜体・極太） */
.price-num {
  font-family: var(--font-en);
  font-size: 3.4rem;
  font-weight: 900;
  color: #d93025;
  letter-spacing: 0.02em;
  font-style: italic; /* 添付画像風のイタリック表示 */
}

/* 単位 */
.price-unit {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4a5568;
  margin-left: 4px;
}

/* 右側：説明文 */
.price-col-desc {
  border-left: 2px solid #edf2f7;
  padding-left: 28px;
}

.price-col-desc p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.85;
  margin: 0;
}

/* レスポンシブ（SP時） */
@media (max-width: 860px) {
  .sec-price {
    padding-bottom: 60px;
  }
  .price-header-banner {
    padding: 16px 16px;
    margin-bottom: 35px;
  }
  .price-banner-title {
    font-size: 1.35rem;
  }
  .price-item-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
    text-align: center;
  }
  .price-img-circle {
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }
  .price-col-main {
    align-items: center;
  }
  .price-highlight-free {
    font-size: 2.8rem;
  }
  .price-symbol {
    font-size: 1.5rem;
  }
  .price-num {
    font-size: 2.8rem;
  }
  .price-unit {
    font-size: 1rem;
  }
  .price-col-desc {
    border-left: none;
    border-top: 1px dashed #e2e8f0;
    padding-left: 0;
    padding-top: 16px;
    text-align: left;
  }
  .price-col-desc p {
    font-size: 14px;
  }
}

/* ==========================================================================
   ⑥ FLOW｜ご相談から施工まで（添付画像スタイル準拠）
   ========================================================================== */
.sec-flow {
  background-color: var(--color-bg-alt); /* 背景は現在のまま */
  padding-top: 0; /* タイトルバーを最上部に全幅配置 */
  padding-bottom: 90px;
}

/* 全幅タイトルバー（料金案内と同様の単色青バー） */
.flow-header-banner {
  width: 100%;
  background-color: var(--color-primary); /* 単色青 */
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 114, 188, 0.18);
  margin-bottom: 50px;
}

.flow-banner-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flow-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.flow-item-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 白背景カード */
.flow-item-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dce8ef;
  border-radius: 6px;
  padding: 24px 32px;
  box-shadow: 0 4px 16px rgba(0, 50, 100, 0.04);
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
  box-sizing: border-box;
  transition: var(--transition);
}

.flow-item-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 114, 188, 0.08);
}

.flow-content-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flow-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

/* 黒バッジ STEP.1 等 */
.step-badge {
  background-color: #1e262c;
  color: #ffffff;
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1.4;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2228;
  margin: 0;
}

.flow-body p {
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1.85;
  margin: 0;
}

/* 右側画像枠 */
.flow-img-side {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flow-img,
.flow-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 110px;
  max-height: 140px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* カード間の下向き黒三角矢印 */
.flow-arrow {
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 13px solid #1e262c;
  margin: 14px auto;
}

@media (max-width: 768px) {
  .sec-flow {
    padding-top: 0;
    padding-bottom: 60px;
  }
  .flow-header-banner {
    padding: 16px 16px;
    margin-bottom: 35px;
  }
  .flow-banner-title {
    font-size: 1.35rem;
  }
  .flow-item-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px;
  }
  .flow-header {
    gap: 10px;
    margin-bottom: 8px;
  }
  .step-badge {
    font-size: 0.85rem;
    padding: 3px 10px;
  }
  .step-title {
    font-size: 1.12rem;
  }
  .flow-body p {
    font-size: 14px;
    line-height: 1.75;
  }
  .flow-img,
  .flow-placeholder {
    min-height: 140px;
    max-height: 180px;
    object-fit: cover;
  }
  .flow-arrow {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #1e262c;
    margin: 10px auto;
  }
}

/* ==========================================================================
   ⑦ GREETING｜ご挨拶
   （固定背景：message.jpeg・ぼかし処理・Safari対応・センター配置）
   ========================================================================== */
.sec-greeting {
  position: relative;
  padding-top: 90px;
  padding-bottom: 100px;
  background-color: #f8fafc;
  /* Safari・全ブラウザ完全互換の固定背景クリップ */
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* 固定背景レイヤー（Safari対応 position: fixed ＆ GPU加速 ＆ ぼかし処理） */
.sec-greeting::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../img/message.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  pointer-events: none;
  -webkit-transform: translateZ(0) scale(1.06); /* GPU加速 ＆ ぼかし端欠け防止 */
  transform: translateZ(0) scale(1.06);
  will-change: transform;
  filter: blur(5px);
  -webkit-filter: blur(5px);
  opacity: 0.35; /* 爽やかなリビング背景を程よく薄く上品に */
}

.greeting-content {
  display: block;
  max-width: 820px;
  margin: 0 auto;
}

.greeting-text {
  background: transparent; /* テキストの薄い背景削除 */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
  text-align: center; /* テキストをセンター揃えで配置 */
}

.greeting-lead {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 28px;
  text-align: center;
  border-left: none; /* オレンジの縦線削除 */
  padding-left: 0;   /* パディング削除 */
}

.greeting-text p {
  font-size: 16px;
  margin-bottom: 18px;
  color: #1e262c;
  line-height: 2.0;
}

.greeting-text p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: #0f172a;
}

@media (max-width: 860px) {
  .sec-greeting {
    padding-top: 60px;
    padding-bottom: 70px;
  }
  .sec-greeting::before {
    /* SP用固定背景：spmessage.jpeg（Safari完全対応・ぼかし・GPU加速） */
    background-image: url('../img/spmessage.jpeg');
    background-size: cover;
    background-position: center center;
    -webkit-transform: translateZ(0) scale(1.08);
    transform: translateZ(0) scale(1.08);
  }
  .greeting-content {
    max-width: 100%;
  }
  .greeting-text {
    text-align: left; /* SP時は左揃え */
    padding: 0;
  }
  .greeting-lead {
    text-align: left; /* SP時は左揃え */
    font-size: 1.35rem;
    margin-bottom: 20px;
  }
  .greeting-text p {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 14px;
  }
}

/* ==========================================================================
   ⑧ ACCESS｜店舗情報（画面2分割・左側全面マップ・枠線なし）
   ========================================================================== */
.sec-access {
  background-color: var(--color-bg-alt);
  padding: 0; /* 左側全面マップのため上下パディングなし */
}

.access-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  align-items: stretch;
}

/* 左側全面マップ */
.access-map-side {
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 480px;
}

.access-map-side .map-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.access-map-side .map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* 右側テキスト情報（枠なし） */
.access-info-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.access-info-inner {
  max-width: 480px;
  width: 100%;
}

.access-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: baseline;
  padding: 8px 0;
  border: none; /* テキスト部分の枠削除 */
}

.access-term {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
}

.access-desc {
  color: var(--color-text-main);
  line-height: 1.75;
  font-size: 16px;
}

/* 電話番号（枠削除・プレーンテキストリンク） */
.tel-link {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  letter-spacing: 0.05em;
  display: inline-block;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: var(--transition);
}

.tel-link:hover {
  background: none;
  color: var(--color-accent);
}

@media (max-width: 860px) {
  .access-split {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }
  .access-info-side {
    order: 1; /* 店舗情報テキストを上（先）へ */
    padding: 40px 24px 32px;
  }
  .access-map-side {
    order: 2; /* マップをテキストの下へ */
    min-height: 320px;
    height: 320px;
    width: 100%;
  }
  .access-row {
    grid-template-columns: 96px 1fr;
    padding: 6px 0;
  }
  .access-term, .access-desc {
    font-size: 14px;
  }
  .tel-link {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .access-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ==========================================================================
   Footer Styles (クジョーズ風ディープネイビー背景)
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #d1e5f2;
  padding-top: 50px;
  padding-bottom: 30px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  max-width: 480px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0;
  letter-spacing: 0.05em;
}

.footer-nav {
  margin-left: auto;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  max-width: 460px;
}

.footer-nav-list li a {
  font-size: 14px;
  color: #a3c4db;
  transition: var(--transition);
}

.footer-nav-list li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 26px;
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  color: #7296b0;
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 36px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); /* ②SP下部電話ボタンに隠れないよう十分な余白を確保 */
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 28px;
  }
  .footer-nav {
    margin-left: 0;
    width: 100%;
  }
  .footer-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    width: 100%;
    max-width: 340px;
  }
  .footer-nav-list li a {
    display: inline-block;
    padding: 4px 0;
  }
  .footer-bottom {
    padding-top: 22px;
    padding-bottom: 6px;
  }
  .footer-copyright {
    font-size: 12px;
    color: #9bbcd4; /* ②SP時も背景に埋もれずくっきり見えるように文字色を調整 */
    line-height: 1.5;
  }
}

/* ==========================================================================
   ③ TOPに戻るボタン（単色オレンジ・グラデーションなし）
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  background: var(--color-accent); /* 単色オレンジ */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 122, 0, 0.35);
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.2s ease;
}

.back-to-top .arrow-up-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent-dark); /* 単色濃いオレンジ */
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.45);
  transform: translateY(-4px);
}

.back-to-top:hover .arrow-up-icon {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)); /* SP下部電話ボタンと被らないよう上へ配置 */
    width: 44px;
    height: 44px;
  }
  .back-to-top .arrow-up-icon {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   ② SP専用 下部固定電話ボタン（FV表示中は非表示・ハンバーガーメニューでも隠れない）
   ========================================================================== */
.sp-fixed-tel {
  display: none; /* PC時は完全非表示 */
}

@media (max-width: 768px) {
  .sp-fixed-tel {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1100; /* ハンバーガーメニュー(1000)よりも前面で絶対に隠れない */
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(100%); /* 初期状態：下へ隠れて非表示 */
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.35s ease;
  }

  /* FV通過時に付与される表示クラス */
  .sp-fixed-tel.is-show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sp-fixed-tel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    background: var(--color-accent-gradient);
    color: #ffffff;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 122, 0, 0.4);
    transition: var(--transition);
  }

  .sp-fixed-tel-link:active {
    transform: scale(0.98);
  }

  .sp-fixed-tel-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transform: rotate(-10deg);
  }

  .sp-fixed-tel-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
  }

  .sp-fixed-tel-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    opacity: 0.95;
  }

  .sp-fixed-tel-num {
    font-family: var(--font-en);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.04em;
  }
}

/* ユーティリティ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Animations & Interaction Enhancements
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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