@charset "utf-8";

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "游ゴシック", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  color: #222;
  background-color: #FFF;
  line-height: 1.8;
  font-size: 16px;
  word-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.font_mincho {
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, serif;
}

img { max-width: 100%; height: auto; vertical-align: top; }
li { list-style: none; }
a { color: #0088CC; text-decoration: none; transition: 0.2s; }
a:hover { opacity: 0.8; }

/* =========================================
   Color Tokens
   ========================================= */
:root {
  --c-red: #E50112;
  --c-red-dark: #B8010E;
  --c-navy: #002040;
  --c-navy-light: #223D58;
  --c-pink: #DA1849;
  --c-yellow: #FFE249;
  --c-yellow-bright: #FFF04A;
  --c-teal: #008E8E;
  --c-bg: #F6F6F6;
  --c-bg-alt: #EEF2F6;
  --c-text: #222;
  --c-text-soft: #555;
  --c-border: #DDE3EB;
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
}

/* =========================================
   Layout
   ========================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title .eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--c-red);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--c-navy);
}

.section-title h2 .accent {
  color: var(--c-red);
  border-bottom: 3px solid var(--c-red-dark);
}

.section-title .sub {
  font-size: 15px;
  color: var(--c-text-soft);
  margin-top: 16px;
}

/* =========================================
   Header
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(0, 32, 64, 0.92);
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.header-logo img {
  height: 44px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-tel {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFF;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 10px;
}

.header-tel i {
  color: var(--c-yellow);
}

.header-tel-num {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.btn-contact-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-red);
  color: #FFF;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.2s;
}

.btn-contact-header:hover {
  background: var(--c-red-dark);
  opacity: 1;
  transform: translateY(-1px);
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 84px 20px 36px;
  background:
    linear-gradient(100deg,
      rgba(0,18,36,0.96) 0%,
      rgba(0,24,48,0.92) 30%,
      rgba(0,32,64,0.70) 55%,
      rgba(0,32,64,0.35) 78%,
      rgba(0,32,64,0.12) 100%
    ),
    url('../img/index_top_v2.jpg') center right / cover no-repeat;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 背景ウォーターマーク英字 */
.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-family: "Georgia", "ヒラギノ明朝 ProN W3", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(90px, 18vw, 260px);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
  z-index: 0;
}

.hero-inner {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 680px;
  text-align: left;
}

/* 技術パターン（左側の装飾） */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

/* ブランドマーク */
.hero-brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  line-height: 1;
}

.hero-brand-mark .hbm-name {
  font-family: "Georgia", "ヒラギノ明朝 ProN W3", serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #FFF;
  line-height: 1;
}

.hero-brand-mark .hbm-en {
  font-family: "Georgia", serif;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 4px;
  margin-bottom: 6px;
}

/* 英字スクリプトアクセント */
.hero-script {
  font-family: "Brush Script MT", "Lucida Handwriting", "Georgia", serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--c-yellow);
  margin: 8px 0 26px;
  opacity: 0.92;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
  font-weight: 400;
}

/* 金ラベル型eyebrow */
.hero-eyebrow-row {
  display: inline-block;
  margin-bottom: 16px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 14px;
  background: linear-gradient(180deg, #FFF2A8 0%, #FFD84A 50%, #E8A600 100%);
  color: var(--c-navy);
  border-radius: 3px;
  box-shadow: 0 6px 16px rgba(232,166,0,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
  font-weight: 900;
  font-family: "ヒラギノ明朝 ProN W3", serif;
  position: relative;
}

.hero-eyebrow > i {
  color: var(--c-red);
  font-size: 14px;
}

.hero-eyebrow .he-text {
  font-size: 13px;
  letter-spacing: 0.1em;
}

.hero-eyebrow .he-text b {
  font-family: "Georgia", "ヒラギノ明朝 ProN W3", serif;
  font-size: 1.25em;
  color: var(--c-red);
  margin-left: 4px;
  letter-spacing: 0;
}

.hero-eyebrow .he-sub {
  padding: 2px 8px;
  background: rgba(0, 32, 64, 0.15);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: "ヒラギノ角ゴ ProN W3", sans-serif;
}

/* 3つの評判チップ */
.hero-chips {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-chips .hc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--c-yellow);
  letter-spacing: 0.08em;
}

.hero-chips .hc-chip i {
  font-size: 12px;
  opacity: 0.9;
}

.hero-chips .hc-sep {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
}

.hero-chips .hc-suffix {
  font-size: 12px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 0.1em;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.25);
}

/* タイトル */
.hero-title {
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "游明朝", YuMincho, serif;
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

.hero-title .ht-sub {
  display: block;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  opacity: 0.88;
  margin-bottom: 8px;
  letter-spacing: 0.2em;
}

.hero-title .ht-main {
  display: block;
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 900;
  margin-bottom: 12px;
  color: #FFF;
  letter-spacing: 0.05em;
  line-height: 1.22;
}

.hero-title .ht-particle {
  display: inline-block;
  padding: 0 4px;
  font-size: 0.75em;
  opacity: 0.95;
  vertical-align: baseline;
}

.hero-title .ht-nara {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.95;
  color: #FFF;
}

.hero-title .ht-tail {
  display: inline-block;
  margin-left: 12px;
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.92;
  color: #FFF;
  vertical-align: baseline;
}

.hero-title .ht-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  position: relative;
  padding-top: 6px;
}

.hero-title .big {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  color: #FFF;
  letter-spacing: 0.08em;
}

/* 安心 チップ型ハイライト（黄×紺） */
.hero-title .hl-chip {
  display: inline-block;
  background: linear-gradient(180deg, #FFEB5C 0%, #FFD84A 100%);
  color: var(--c-navy);
  padding: 4px 18px 6px;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(255,216,74,0.45), inset 0 1px 0 rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  position: relative;
  top: -4px;
  margin-right: 2px;
  text-shadow: none;
}

/* 大規模修繕工事 白+赤アクセント */
.hero-title .hl {
  position: relative;
  display: inline-block;
  color: #FFF;
  padding: 0 4px;
}

.hero-title .hl::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -4px;
  height: 2px;
  background: var(--c-red);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(229,1,18,0.6);
}

/* ブランド行（英字重ね） */
.hero-title .ht-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  position: relative;
  padding-top: 6px;
}

.hero-title .ht-en {
  font-family: "Georgia", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--c-yellow);
  letter-spacing: 0.4em;
  opacity: 0.85;
  margin-bottom: 10px;
  padding-left: 0.4em;
  position: relative;
}

.hero-title .ht-en::before,
.hero-title .ht-en::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--c-yellow);
  vertical-align: middle;
  margin: 0 14px;
  opacity: 0.6;
}

.hero-title .big {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  color: #FFF;
  letter-spacing: 0.08em;
}

.hero-lead {
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.9;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 500;
}

/* =========================================
   Roof Divider (逆三角形▼・紺塗りつぶし)
   ========================================= */
.roof-divider {
  position: relative;
  height: 70px;
  margin-top: -70px;
  margin-bottom: 0;
  background: var(--c-navy);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 20;
  pointer-events: none;
}

/* 無料サークル */
.hero-free {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 24px;
  flex-wrap: wrap;
}

.hf-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFF04A 0%, #FFD84A 50%, #E8B300 100%);
  color: var(--c-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.6),
    inset 0 -3px 6px rgba(164,122,0,0.35);
  border: 2px solid rgba(255,255,255,0.35);
  text-align: center;
  flex-shrink: 0;
}

.hf-circle .hfc-top {
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 4px;
}

.hf-circle .hfc-big {
  font-family: "ヒラギノ明朝 ProN W3", serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.hero-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  letter-spacing: 0.03em;
  text-align: left;
  margin: 0;
}

/* スラント台形の特徴バッジ */
.hero-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 860px;
  margin: 0 auto 32px;
  padding: 0;
}

.hero-feats .feat {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(0,32,64,0.45) 100%);
  border: 1.5px solid rgba(255,226,73,0.45);
  padding: 14px 10px 16px;
  text-align: center;
  transform: skewX(-10deg);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}

.hero-feats .feat > span {
  display: block;
  transform: skewX(10deg);
}

.hero-feats .feat-sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.hero-feats .feat-main {
  font-family: "ヒラギノ明朝 ProN W3", serif;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 900;
  color: var(--c-yellow);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: 0.03em;
}

/* 旧ステータス: Hero Badges — 認定メダル風（未使用になったが残す） */
.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 920px;
  margin: 12px 0 22px;
}

.hero-badge {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(0,32,64,0.45) 100%);
  border: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 18px 12px 14px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: 0.25s;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.hero-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.45);
  box-shadow:
    0 14px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ゴールドリボン */
.hero-badge .hb-ribbon {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFF2A8 0%, #FFD84A 50%, #E8A600 100%);
  color: var(--c-navy);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.6);
  white-space: nowrap;
}

/* アイコン */
.hero-badge .hb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
  margin-bottom: 2px;
}

/* スター（4バッジ共通で同じ高さを予約） */
.hero-badge .hb-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14px;
  color: #FFB400;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 2px;
  text-shadow: 0 0 6px rgba(255,180,0,0.55);
}

/* 大きな数字 */
.hero-badge .num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 900;
  color: #FFF;
  line-height: 1;
  margin-bottom: 6px;
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-badge .num .unit {
  font-size: 0.48em;
  margin-left: 2px;
  color: #FFF;
  opacity: 0.9;
  font-family: "ヒラギノ角ゴ ProN W3", sans-serif;
  letter-spacing: 0;
}

.hero-badge .num b {
  font-size: 1.15em;
  font-weight: 900;
}

/* セパレータ */
.hero-badge .hb-sep {
  display: block;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  margin: 0 auto 6px;
}

.hero-badge .label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  font-size: 10.5px;
  color: #FFF;
  letter-spacing: 0.04em;
  line-height: 1.5;
  opacity: 0.92;
  font-weight: 500;
}

/* Hero CTA */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.hero-cta-group .btn-primary,
.hero-cta-group .btn-tel {
  flex: 1 1 300px;
  min-width: 300px;
  height: 72px;
  padding: 0 24px;
  box-sizing: border-box;
  font-size: 16px;
  white-space: nowrap;
}

.hero-cta-group .btn-primary span,
.hero-cta-group .btn-tel .tel-num {
  white-space: nowrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #FF2838 0%, var(--c-red) 60%, var(--c-red-dark) 100%);
  color: #FFF !important;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.05em;
  padding: 22px 40px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 8px 24px rgba(229,1,18,0.35), 0 2px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  min-width: 300px;
  animation: pulse 2.4s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229,1,18,0.45), 0 4px 8px rgba(0,0,0,0.2);
  opacity: 1;
}

.btn-primary .arrow {
  font-size: 14px;
  transition: 0.2s;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(229,1,18,0.35), 0 2px 4px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 8px 24px rgba(229,1,18,0.6), 0 2px 4px rgba(0,0,0,0.15), 0 0 0 8px rgba(229,1,18,0.08); }
}

.btn-tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FFF;
  color: var(--c-navy) !important;
  font-weight: 900;
  padding: 22px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  min-width: 280px;
  border: 2px solid #FFF;
}

.btn-tel i {
  color: var(--c-red);
  font-size: 22px;
}

.btn-tel .tel-num {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.btn-tel .tel-time {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-soft);
  margin-top: 2px;
}

.hero-trust {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  font-size: 13px;
  opacity: 0.9;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust i {
  color: var(--c-yellow);
}

/* =========================================
   Pickup (実績ハイライト)
   ========================================= */
.pickup {
  background: var(--c-navy);
  color: #FFF;
  padding: 48px 20px;
  text-align: center;
}

.pickup p {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.7;
}

.pickup p strong {
  color: var(--c-yellow);
  font-size: 1.15em;
  border-bottom: 2px solid var(--c-yellow);
  padding-bottom: 2px;
}

.pickup-images {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 1100px;
  margin: 0 auto;
}

.pickup-images img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
}

/* =========================================
   悩み
   ========================================= */
.trouble {
  background: linear-gradient(rgba(34,61,88,0.78), rgba(0,32,64,0.85)), url('../img/nayami_bg.jpg') center / cover no-repeat;
  background-attachment: fixed;
  color: #FFF;
  padding: 100px 20px;
}

.trouble .section-title h2 {
  color: #FFF;
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
}

.trouble .section-title .eyebrow {
  color: var(--c-yellow);
}

.trouble .section-title h2 .accent {
  color: var(--c-yellow);
  border-bottom-color: var(--c-yellow);
}

.trouble-list {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 40px 48px;
  backdrop-filter: blur(4px);
}

.trouble-list li {
  position: relative;
  padding: 14px 0 14px 40px;
  font-size: clamp(16px, 2vw, 20px);
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}

.trouble-list li:last-child {
  border-bottom: none;
}

.trouble-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--c-yellow);
  color: var(--c-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
}

/* Bridge — yellow pill sits on the navy↔white boundary */
.bridge-arrow {
  background: var(--c-navy);
  padding: 40px 20px 0;
  text-align: center;
  position: relative;
  overflow: visible;
  z-index: 3;
}

.bridge-arrow-inner {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-navy);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 900;
  padding: 20px 44px;
  border-radius: 999px;
  position: relative;
  letter-spacing: 0.05em;
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
  transform: translateY(50%);
  z-index: 5;
}

.bridge-arrow-inner::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border: 14px solid transparent;
  border-top-color: var(--c-yellow);
  border-bottom: 0;
}

/* Solution section gets padding-top to accommodate the overlapping pill */
.solution {
  padding-top: 110px !important;
}

/* =========================================
   Solution (悩み→解決 対比カード)
   ========================================= */
.solution {
  background: var(--c-bg);
  padding: 80px 20px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.sol-card {
  position: relative;
  background: #FFF;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: 0 4px 18px rgba(0,32,64,0.06);
  transition: 0.3s ease;
}

.sol-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-red), #FF3B4C, var(--c-red));
  z-index: 3;
}

.sol-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229,1,18,0.3);
  box-shadow: 0 18px 40px rgba(229,1,18,0.14), 0 4px 8px rgba(0,0,0,0.04);
}

.sol-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
  font-size: 60px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(229,1,18,0.22);
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

/* Problem area (画像のみ表示) */
.sol-problem {
  min-height: 160px;
  padding: 0;
  background: linear-gradient(180deg, #F4F6FA 0%, #E9EDF3 100%);
  position: relative;
  overflow: hidden;
}

/* 背景写真（灰色背景の上に重ねる） */
.sol-problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
}

.sol-bg-01::before { background-image: url('../img/ace-flow04.jpg'); }
.sol-bg-02::before { background-image: url('../img/ace-flow07.jpg'); }
.sol-bg-03::before { background-image: url('../img/ace-flow06.jpg'); }
.sol-bg-04::before { background-image: url('../img/ace-bill02.jpg'); }
.sol-bg-05::before { background-image: url('../img/ace-flow02.jpg'); }
.sol-bg-06::before { background-image: url('../img/ace-flow03.jpg'); }

/* 灰色オーバーレイ（テキストの可読性確保） */
.sol-problem::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.12) 100%);
  z-index: 1;
}

/* コンテンツは最上層 */
.sol-problem > * {
  position: relative;
  z-index: 2;
}

.sol-problem-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #A4AEBC 0%, #7A8593 100%);
  color: #FFF;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(122,133,147,0.4);
  margin-bottom: 12px;
}

.sol-problem-body {
  /* reset flex; children are now centered via text-align on parent */
}

.sol-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  margin: 0 auto 10px;
}

.sol-tag i {
  font-size: 11px;
}

.tag-problem {
  background: #6B7684;
  color: #FFF;
}

.tag-answer {
  background: var(--c-red);
  color: #FFF;
}

.sol-problem-body p {
  font-size: 15px;
  color: #3A4452;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* SOLUTION badge — sits exactly on the seam between gray (problem) and white (answer) */
.sol-divider {
  position: relative;
  height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  z-index: 5;
}

.sol-divider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-navy-light) 0%, var(--c-navy) 100%);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3em;
  padding: 7px 18px 7px calc(18px + 0.3em);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,32,64,0.28), 0 0 0 4px #FFF;
  line-height: 1;
  white-space: nowrap;
}

/* Answer area */
.sol-answer {
  padding: 30px 26px 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(229,1,18,0.04) 0%, transparent 50%),
    #FFF;
  position: relative;
  text-align: center;
}

.sol-answer h3 {
  font-size: 19px;
  color: var(--c-navy);
  line-height: 1.5;
  margin-top: 4px;
  margin-bottom: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.sol-answer h3 .em {
  color: var(--c-red);
  background: linear-gradient(transparent 60%, rgba(229,1,18,0.12) 60%);
  padding: 0 3px;
  font-weight: 900;
}

.sol-answer p {
  font-size: 13.5px;
  color: var(--c-text-soft);
  line-height: 1.8;
}

/* =========================================
   Reasons (選ばれる理由)
   ========================================= */
.reasons {
  background: var(--c-navy);
  padding: 90px 20px;
  color: #FFF;
}

.reasons .section-title h2 {
  color: #FFF;
}

.reasons .section-title h2 .accent {
  color: var(--c-yellow);
  border-bottom-color: var(--c-yellow);
}

.reasons .section-title .eyebrow {
  color: var(--c-yellow);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.reason-card {
  background: #FFF;
  color: var(--c-text);
  border-radius: 14px;
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: 0.25s;
}

.reason-card:hover {
  transform: translateY(-4px);
}

.reason-num {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--c-red);
  color: #FFF;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.reason-num .small {
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1;
}

.reason-num .big {
  font-size: 20px;
  line-height: 1;
  font-family: "ヒラギノ明朝 ProN W3", serif;
}

.reason-icon {
  font-size: 36px;
  color: var(--c-red);
  margin: 16px 0 14px;
  text-align: center;
}

.reason-card h3 {
  font-size: 20px;
  color: var(--c-navy);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 14px;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-bg);
}

.reason-card h3 .em {
  color: var(--c-red);
}

.reason-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text-soft);
}

.reason-card p strong {
  color: var(--c-navy);
  background: linear-gradient(transparent 65%, var(--c-yellow) 65%);
  font-weight: 800;
}

/* =========================================
   About (社長紹介 + 数字バッジ)
   ========================================= */
.about {
  background: #FFF;
  padding: 90px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto 56px;
}

.stat {
  text-align: center;
  padding: 28px 16px;
  background: linear-gradient(180deg, #FFF 0%, var(--c-bg-alt) 100%);
  border-radius: 12px;
  border: 1px solid var(--c-border);
}

.stat .num {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--c-red);
  line-height: 1;
  font-family: "ヒラギノ明朝 ProN W3", serif;
}

.stat .num .unit {
  font-size: 0.5em;
  margin-left: 4px;
  color: var(--c-navy);
}

.stat .label {
  display: block;
  font-size: 13px;
  color: var(--c-text-soft);
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 0.05em;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--c-bg);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--c-border);
}

.about-img {
  text-align: center;
}

.about-img img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.about-img .caption {
  font-size: 13px;
  margin-top: 12px;
  color: var(--c-text-soft);
  font-weight: 700;
}

.about-img .jisseki {
  margin-top: 16px;
}

.about-text h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--c-navy);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 900;
  font-family: "ヒラギノ明朝 ProN W3", serif;
}

.about-text h3 .em {
  color: var(--c-red);
  background: linear-gradient(transparent 65%, rgba(229,1,18,0.12) 65%);
}

.about-text p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 14px;
  color: var(--c-text);
}

.about-text p strong {
  background: linear-gradient(transparent 65%, var(--c-yellow) 65%);
  font-weight: 700;
}

/* =========================================
   Works (施工事例)
   ========================================= */
.works {
  background: var(--c-bg);
  padding: 90px 20px;
}

.google-review-bar {
  max-width: 720px;
  margin: 0 auto 48px;
  background: #FFF;
  border-radius: 14px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.google-review-bar .stars {
  color: #FFB400;
  font-size: 24px;
  letter-spacing: 2px;
}

.google-review-bar .rate {
  font-size: 32px;
  font-weight: 900;
  color: var(--c-navy);
  font-family: "ヒラギノ明朝 ProN W3", serif;
}

.google-review-bar .meta {
  font-size: 13px;
  color: var(--c-text-soft);
  line-height: 1.5;
}

.google-review-bar .meta strong {
  color: var(--c-red);
  font-size: 18px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.work-card {
  background: #FFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.25s;
  border: 1px solid var(--c-border);
}

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

.work-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.work-card .body {
  padding: 18px 18px 20px;
}

.work-card .price {
  font-size: 16px;
  color: var(--c-red);
  font-weight: 900;
  margin-bottom: 6px;
  font-family: "ヒラギノ明朝 ProN W3", serif;
}

.work-card .name {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 10px;
}

.work-card .comment {
  font-size: 12px;
  color: var(--c-text-soft);
  line-height: 1.7;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-card .scope {
  font-size: 11px;
  color: var(--c-navy);
  background: var(--c-bg);
  padding: 6px 10px;
  border-radius: 6px;
  line-height: 1.5;
}

/* =========================================
   追伸
   ========================================= */
.postscript {
  background: var(--c-navy-light);
  padding: 80px 20px;
  color: #FFF;
}

.postscript .section-title h2 {
  color: #FFF;
}

.postscript-body {
  max-width: 780px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  padding: 40px 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
}

.postscript-body p {
  font-size: 15px;
  line-height: 2;
  margin-bottom: 14px;
  opacity: 0.92;
}

.postscript-body p strong {
  color: var(--c-yellow);
  font-weight: 800;
}

.postscript-sign {
  text-align: right;
  margin-top: 24px;
}

.postscript-sign img {
  max-width: 220px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* =========================================
   Contact Form
   ========================================= */
.contact {
  position: relative;
  background: linear-gradient(135deg, rgba(229,1,18,0.96) 0%, rgba(184,1,14,0.96) 100%), url('../img/form_bg.jpg') center / cover no-repeat;
  padding: 80px 20px 120px;
}

.contact.slim {
  padding: 60px 20px 80px;
}

.contact-inner {
  max-width: 780px;
  margin: 0 auto;
  background: #FFF;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  position: relative;
}

.contact-head {
  text-align: center;
  margin-bottom: 28px;
}

.contact-head .eyebrow {
  display: inline-block;
  background: var(--c-yellow);
  color: var(--c-navy);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.contact-head h2 {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--c-navy);
  font-weight: 900;
  line-height: 1.4;
}

.contact-head h2 .em {
  color: var(--c-red);
  font-size: 1.1em;
}

.contact-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 32px;
}

.contact-benefit {
  text-align: center;
  background: var(--c-bg);
  padding: 14px 8px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
}

.contact-benefit i {
  display: block;
  font-size: 22px;
  color: var(--c-red);
  margin-bottom: 6px;
}

.contact-benefit .t {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-navy);
  line-height: 1.4;
}

.form-table {
  width: 100%;
}

.form-row {
  margin-bottom: 20px;
}

.form-row label.fl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 8px;
}

.req {
  display: inline-block;
  background: var(--c-red);
  color: #FFF;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.optional {
  display: inline-block;
  background: #999;
  color: #FFF;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--c-border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #FDFDFD;
  transition: 0.2s;
}

.form-row input:focus {
  outline: none;
  border-color: var(--c-red);
  background: #FFF;
  box-shadow: 0 0 0 4px rgba(229,1,18,0.08);
}

.form-check {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-check label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.15s;
}

.form-check label:hover {
  border-color: var(--c-red);
}

.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-red);
}

.form-note {
  font-size: 12px;
  color: var(--c-text-soft);
  margin-left: 8px;
}

.form-submit {
  display: block;
  width: 100%;
  background: linear-gradient(180deg, #FF2838 0%, var(--c-red) 60%, var(--c-red-dark) 100%);
  color: #FFF;
  font-size: 18px;
  font-weight: 900;
  padding: 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 24px;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(229,1,18,0.3);
  transition: 0.2s;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229,1,18,0.45);
}

.form-guarantee {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--c-text-soft);
}

.form-guarantee i {
  color: var(--c-red);
  margin-right: 4px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background: var(--c-navy);
  color: #FFF;
  padding: 60px 20px 120px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-width: 200px;
}

.footer-info {
  font-size: 13px;
  line-height: 1.9;
  opacity: 0.8;
  margin-bottom: 24px;
}

.footer-info strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  opacity: 1;
}

.footer-nav {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.footer-nav a {
  color: #FFF;
  margin: 0 8px;
}

.footer-copy {
  font-size: 11px;
  opacity: 0.5;
}

/* =========================================
   Sticky Mobile CTA
   ========================================= */
.sp-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: #FFF;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
  padding: 8px 10px;
  gap: 8px;
}

.sp-sticky-cta a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.3;
  gap: 4px;
  text-decoration: none;
}

.sp-sticky-cta .tel-btn {
  background: var(--c-navy);
  color: #FFF;
}

.sp-sticky-cta .form-btn {
  background: var(--c-red);
  color: #FFF;
}

.sp-sticky-cta i {
  font-size: 18px;
}

.sp-sticky-cta .sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.9;
}

/* To top */
.to-top {
  position: fixed;
  bottom: 90px;
  right: 16px;
  z-index: 300;
  width: 44px;
  height: 44px;
  background: var(--c-navy);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.85;
  box-shadow: var(--shadow-md);
}

/* =========================================
   Cost Compare v2 (シンプル・中間マージンゼロ訴求)
   ========================================= */
.cost-simple {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto 28px;
}

/* エース列のみバージョン（比較なしで中央配置） */
.cost-simple.cost-simple-ace {
  display: block;
  max-width: 420px;
  margin: 0 auto 28px;
}

.cs-col {
  position: relative;
  text-align: center;
}

.cs-label {
  font-size: 16px;
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1.4;
  margin-bottom: 12px;
}

.cs-label small {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-soft);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.cs-label-brand {
  color: var(--c-red);
}

.cs-label-brand strong {
  font-size: 1.25em;
  letter-spacing: 0.05em;
}

.cs-bar {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.cs-seg {
  padding: 28px 16px;
  color: #FFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  line-height: 1.3;
}

.cs-seg-title {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.cs-seg-sub {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 4px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.cs-margin {
  background: repeating-linear-gradient(
    135deg,
    #B84848 0 12px,
    #A03838 12px 24px
  );
  position: relative;
  padding: 34px 16px;
}

.cs-margin::before {
  content: "＋";
  position: absolute;
  top: 6px;
  left: 14px;
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,0.6);
}

.cs-core {
  background: linear-gradient(180deg, #2A5A8A 0%, var(--c-navy-light) 100%);
  padding: 48px 16px;
}

.cs-ace .cs-core {
  background: linear-gradient(180deg, var(--c-navy-light) 0%, var(--c-navy) 100%);
  border: 3px solid var(--c-red);
  border-radius: 12px;
  padding: 62px 16px;
}

.cs-ace .cs-core .cs-seg-title {
  color: var(--c-yellow);
  font-size: clamp(17px, 1.8vw, 20px);
}

/* 矢印 */
.cs-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--c-red);
}

.cs-arrow-text {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.05em;
  background: var(--c-red);
  color: #FFF;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(229,1,18,0.3);
}

.cs-arrow i {
  font-size: 28px;
}

/* エースリボン（cs-core ボックス内に表示） */
.cs-ribbon {
  display: inline-block;
  background: linear-gradient(180deg, #FFF2A8 0%, #FFD84A 50%, #E8A600 100%);
  color: var(--c-navy);
  font-weight: 900;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.cs-ribbon em {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.5em;
  color: var(--c-red);
  margin-left: 4px;
  letter-spacing: 0;
}

.cs-note {
  text-align: center;
  font-size: 11px;
  color: var(--c-text-soft);
  margin-top: 12px;
}

/* =========================================
   Cost Compare (中間マージン比較) - OLD kept as fallback
   ========================================= */
.cost-compare {
  background:
    radial-gradient(ellipse at 50% 50%, #EAF2FB 0%, transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F7FAFD 50%, #FFFFFF 100%);
  padding: 90px 20px;
  position: relative;
}

.cost-chart {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 22px;
  align-items: end;
  max-width: 980px;
  margin: 0 auto 40px;
}

.cost-col {
  position: relative;
  text-align: center;
}

.cost-col-label {
  background: #6B7684;
  color: #FFF;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px 6px 0 0;
  line-height: 1.4;
  margin-bottom: 0;
  position: relative;
}

.cost-col-label::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #6B7684;
  border-bottom: 0;
}

.cost-col-label-brand {
  background: var(--c-red);
  font-size: 15px;
  padding: 14px 6px;
}

.cost-col-label-brand::after {
  border-top-color: var(--c-red);
}

.cost-col-label-brand strong {
  font-size: 1.25em;
  color: #FFF;
  letter-spacing: 0.05em;
}

.cost-col-ribbon {
  color: var(--c-red);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: block;
  animation: shake 3s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.cost-bar {
  display: flex;
  flex-direction: column;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  margin-top: 14px;
}

.cost-bar-full { height: 440px; }
.cost-bar-mid { height: 370px; }
.cost-bar-ace {
  height: 280px;
  box-shadow: 0 14px 40px rgba(229,1,18,0.28), 0 0 0 3px var(--c-red);
  position: relative;
  z-index: 2;
}

.cost-seg {
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* 外壁塗装・大規模修繕の費目カラー */
.seg-sales  { background: #C94545; }   /* 営業・広告費 : 削るべき赤 */
.seg-margin { background: #5B6473; }   /* 中間マージン : 暗いネイビーグレー */
.seg-mat    { background: #5E8F6B; }   /* 材料費（塗料） : 塗料の緑 */
.seg-labor  { background: #C98848; }   /* 施工費（職人） : 職人のオレンジブラウン */

.cost-seg.seg-zero {
  position: relative;
  background: repeating-linear-gradient(
    -45deg,
    #5B6473 0 6px,
    #474F5C 6px 12px
  );
  font-size: 10px !important;
  line-height: 1.2;
}

.cost-seg.seg-zero .zero-mark {
  display: inline-block;
  font-family: "ヒラギノ明朝 ProN W3", serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--c-yellow);
  margin-left: 4px;
  vertical-align: middle;
}

.cost-callouts {
  max-width: 820px;
  margin: 0 auto;
  background: #FFF;
  border-radius: 14px;
  padding: 16px 28px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 1px solid var(--c-border);
}

.callout-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--c-border);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.7;
}

.callout-item:last-child { border-bottom: none; }

.callout-item b {
  color: var(--c-red);
  font-weight: 900;
  margin-right: 4px;
}

.ci-dot {
  width: 14px;
  height: 40px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* =========================================
   Flow Section (お問い合わせの流れ)
   ========================================= */
.flow-section {
  background: #FFF;
  padding: 90px 20px;
}

.flow-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  position: relative;
}

.flow-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 0 0 24px;
  position: relative;
}

.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 60px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--c-red) 0 6px,
    transparent 6px 12px
  );
  opacity: 0.35;
  z-index: 0;
}

.flow-marker {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--c-navy-light) 0%, var(--c-navy) 100%);
  color: var(--c-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "ヒラギノ明朝 ProN W3", serif;
  font-weight: 900;
  box-shadow: 0 6px 16px rgba(0,32,64,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}

.flow-marker .flow-num {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.flow-marker-last {
  background: linear-gradient(180deg, #FF3B4C, var(--c-red));
  color: #FFF;
}

.flow-marker-last .flow-num {
  font-size: 24px;
}

.flow-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  background: var(--c-bg);
  border-radius: 0 12px 12px 0;
  border-left: 4px solid var(--c-red);
  padding: 18px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: 0.2s;
}

.flow-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateX(2px);
}

.flow-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFF;
  border: 2px solid var(--c-red);
  color: var(--c-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.flow-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.flow-card-head h3 {
  font-size: 19px;
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1.3;
}

.flow-time {
  font-size: 11px;
  padding: 2px 10px;
  background: var(--c-navy);
  color: #FFF;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.flow-card-body p {
  font-size: 14px;
  color: var(--c-text-soft);
  line-height: 1.85;
}

.flow-card-body p strong {
  color: var(--c-navy);
  background: linear-gradient(transparent 65%, rgba(255,226,73,0.55) 65%);
  font-weight: 800;
}

/* =========================================
   Flow Divider (逆三角形の繋ぎ)
   ========================================= */
.flow-divider {
  position: relative;
  height: 56px;
  margin-top: -2px;
  margin-bottom: -2px;
  z-index: 2;
  pointer-events: none;
}

.flow-divider::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: calc(100% + 2px);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.flow-divider.from-navy::before       { background: var(--c-navy); }
.flow-divider.from-navy-light::before { background: var(--c-navy-light); }
.flow-divider.from-light::before      { background: var(--c-bg); }
.flow-divider.from-white::before      { background: #FFF; }
.flow-divider.from-red::before        { background: var(--c-red); }

.flow-divider.to-navy       { background: var(--c-navy); }
.flow-divider.to-navy-light { background: var(--c-navy-light); }
.flow-divider.to-light      { background: var(--c-bg); }
.flow-divider.to-white      { background: #FFF; }
.flow-divider.to-red        { background: var(--c-red); }

/* =========================================
   Animations
   ========================================= */
.effect {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.effect.inview {
  opacity: 1;
  transform: translateY(0);
}

.d_01 { transition-delay: 0.1s; }
.d_02 { transition-delay: 0.2s; }
.d_03 { transition-delay: 0.3s; }
.d_04 { transition-delay: 0.4s; }
.d_05 { transition-delay: 0.5s; }

/* Show/Hide helpers */
.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 900px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 900px) {
  .header-tel { display: none; }
  .btn-contact-header { display: none; }
  .hero {
    min-height: auto;
    padding: 90px 16px 70px;
    background:
      linear-gradient(180deg,
        rgba(0,18,36,0.18) 0%,
        rgba(0,18,36,0.10) 22%,
        rgba(0,24,48,0.22) 50%,
        rgba(0,28,56,0.55) 78%,
        rgba(0,32,64,0.88) 100%
      ),
      url('../img/index_top_v2.jpg') center 30% / cover no-repeat;
  }
  /* 黄黒ハザードのアクセント帯（工事看板の雰囲気） */
  .hero::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 6px;
    background-image: repeating-linear-gradient(
      135deg,
      #FFD200 0 14px,
      #1A1A1A 14px 28px
    );
    z-index: 3;
    pointer-events: none;
  }
  .hero-pattern { display: none; }
  .hero-title { text-shadow: 0 2px 12px rgba(0,0,0,0.75), 0 1px 4px rgba(0,0,0,0.6); }
  .hero-eyebrow { box-shadow: 0 6px 16px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.5); }
  .hero-badges { backdrop-filter: blur(2px); }
  .hero-content { max-width: 100%; text-align: center; margin: 0 auto; }
  .hero-brand-mark { justify-content: center; }
  .hero-brand-mark .hbm-en { display: none; }
  .hero-script { text-align: center; }
  .hero-watermark { font-size: 100px; }
  .hero-eyebrow { padding: 5px 14px; gap: 8px; }
  .hero-eyebrow .he-text { font-size: 11px; letter-spacing: 0.05em; }
  .hero-eyebrow .he-sub { display: none; }
  .hero-chips { padding: 8px 14px; gap: 6px; }
  .hero-chips .hc-chip { font-size: 11px; }
  .hero-chips .hc-suffix { margin-left: 0; padding-left: 0; border-left: none; display: block; width: 100%; text-align: center; font-size: 11px; }
  .hero-title { text-align: center; }
  .hero-title .ht-main { font-size: 34px; }
  .hero-title .hl-chip { padding: 3px 12px 4px; top: -2px; }
  .hero-title .ht-nara { margin-left: 14px; }
  .hero-title .ht-tail { margin-left: 16px; }
  .hero-feats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-feats .feat-main { font-size: 16px; }
  .hero-title .ht-en::before,
  .hero-title .ht-en::after { width: 18px; margin: 0 8px; }
  /* === Mobile: バッジを横一列のコンパクトなチップに === */
  .hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 5px;
    grid-template-columns: unset;
    margin: 14px auto 20px;
    backdrop-filter: none;
    max-width: 100%;
  }
  .hero-badge {
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    padding: 6px 11px 6px 9px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
  }
  /* リボン → ピル内のラベルに */
  .hero-badge .hb-ribbon {
    position: static;
    transform: none;
    background: none;
    color: #FFD84A;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
  }
  /* 数字を小さく、インライン配置 */
  .hero-badge .num {
    height: auto;
    font-size: 14px;
    font-weight: 900;
    margin: 0;
    text-shadow: none;
    font-family: "ヒラギノ角ゴ ProN W3", sans-serif;
    line-height: 1;
    letter-spacing: 0;
  }
  .hero-badge .num .unit { font-size: 0.7em; opacity: 0.9; margin-left: 1px; }
  .hero-badge .num b { font-size: 1em; }
  /* 装飾要素は非表示（コンパクト化） */
  .hero-badge .hb-icon { display: none; }
  .hero-badge .hb-stars { display: none; }
  .hero-badge .hb-sep { display: none; }
  .hero-badge .label { display: none; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-tel {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
    max-width: 340px;
    height: 58px;
    padding: 0 18px;
    font-size: 15px;
    border-radius: 12px;
  }
  .btn-tel .tel-num { font-size: 18px; }
  .roof-divider { height: 48px; margin-top: -48px; }
  .pickup-images { grid-template-columns: repeat(3, 1fr); }
  .reasons-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-body { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .about-img img { max-width: 220px; }
  .trouble-list { padding: 28px 24px; }
  .contact-inner { padding: 32px 20px; }
  .contact-benefits { grid-template-columns: 1fr; }
  .postscript-body { padding: 28px 22px; }
  .section { padding: 60px 0; }
  .sp-sticky-cta { display: flex; }
  .to-top { bottom: 82px; }
  .works-grid { gap: 12px; }
  .work-card .body { padding: 14px; }
  .solution-grid { grid-template-columns: 1fr; }
  .solution { padding-top: 90px !important; }
  .sol-num { font-size: 50px; top: 12px; right: 16px; }
  .sol-problem { padding: 24px 20px 30px; }
  .sol-problem-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
  .sol-problem-body p { font-size: 14px; }
  .sol-divider-badge { font-size: 10px; padding: 6px 16px 6px calc(16px + 0.3em); letter-spacing: 0.25em; }
  .sol-answer { padding: 26px 20px 26px; }
  .sol-answer h3 { font-size: 17px; }
  .bridge-arrow-inner { font-size: 17px; padding: 16px 28px; }
  .flow-divider { height: 40px; }

  /* Cost compare v2 mobile */
  .cost-simple { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .cs-arrow { flex-direction: row; justify-content: center; align-self: center; width: 100%; }
  .cs-arrow i { transform: rotate(90deg); }
  .cs-seg { padding: 20px 12px; }
  .cs-margin { padding: 26px 12px; }
  .cs-core { padding: 36px 12px; }
  .cs-ace .cs-core { padding: 46px 12px; }

  /* Flow mobile */
  .flow-step { grid-template-columns: 52px 1fr; gap: 12px; }
  .flow-marker { width: 52px; height: 52px; }
  .flow-marker .flow-num { font-size: 18px; }
  .flow-step:not(:last-child)::before { left: 25px; top: 54px; }
  .flow-card { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
  .flow-card-icon { width: 44px; height: 44px; font-size: 18px; }
  .flow-card-head h3 { font-size: 17px; }
  .flow-time { font-size: 10px; padding: 2px 8px; }
  .flow-card-body p { font-size: 13px; }
}

@media (max-width: 500px) {
  .works-grid { grid-template-columns: 1fr; }
  .pickup-images { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 28px; }
  .btn-contact-header { padding: 8px 12px; font-size: 12px; }
  .header-logo img { height: 36px; }
  .google-review-bar { padding: 16px; gap: 14px; }
  .google-review-bar .rate { font-size: 26px; }
}
