:root {
  --blue-900: #0a3d6b;
  --blue-800: #0d4f8c;
  --blue-700: #1565b8;
  --blue-600: #1a7ad4;
  --blue-100: #e3f2fd;
  --blue-50: #f0f7ff;
  --line-green: #06c755;
  --tel-orange: #e85d04;
  --white: #fff;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-100: #f3f4f6;
  --shadow: 0 4px 24px rgba(10, 61, 107, 0.12);
  --radius: 12px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  background: var(--white);
  padding-bottom: 56px;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 92%); margin-inline: auto; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(21, 101, 184, 0.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 0.75rem;
}
.logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 900; font-size: clamp(0.8rem, 2.5vw, 1rem); color: var(--blue-900); line-height: 1.3;
}
.logo-img {
  height: 44px; width: auto; max-width: 120px; object-fit: contain;
  background: var(--blue-900); border-radius: 6px; padding: 4px 8px;
}
.logo-text span { display: block; }
.logo-text span:last-child { font-size: 0.68em; font-weight: 500; color: var(--blue-700); }
@media (max-width: 480px) {
  .logo-text { display: none; }
  .logo-img { max-width: 140px; height: 48px; }
}
.nav-desktop { display: none; gap: 1.25rem; font-size: 0.88rem; font-weight: 500; }
.nav-desktop a:hover { color: var(--blue-600); }
.header-cta { display: flex; gap: 0.45rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  padding: 0.7rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  border: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-tel { background: linear-gradient(135deg, #ff6b35, var(--tel-orange)); color: var(--white); }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: var(--white); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  margin-top: var(--header-h);
  --hero-bg: none;
  background:
    linear-gradient(105deg, rgba(10, 61, 107, 0.92) 0%, rgba(21, 101, 184, 0.78) 55%, rgba(26, 122, 212, 0.65) 100%),
    var(--hero-bg) center/cover no-repeat;
  color: var(--white); padding: 2.5rem 0 3.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08), transparent 45%);
}
.hero-grid { position: relative; display: grid; gap: 2rem; align-items: center; }
.hero-badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.badge {
  background: rgba(255,255,255,0.95); color: var(--blue-900); font-weight: 700;
  font-size: 0.8rem; padding: 0.4rem 0.85rem; border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.badge--hot { background: #ffeb3b; color: #b71c1c; }
.hero-cert {
  display: inline-block; font-size: 0.85rem; margin-bottom: 1rem;
  padding: 0.4rem 0.85rem; border-radius: 6px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
  font-size: clamp(1.65rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.28; margin-bottom: 1rem;
}
.hero-lead { font-size: 1rem; opacity: 0.95; margin-bottom: 1.25rem; max-width: 34em; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-phone { font-size: clamp(1.35rem, 4vw, 1.85rem); font-weight: 900; }
.hero-phone a { color: #ffeb3b; }
.hero-phone small { display: block; font-size: 0.5em; font-weight: 500; opacity: 0.9; margin-top: 0.2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; max-width: 400px;
}
.stat-box {
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius); padding: 0.65rem; text-align: center;
}
.stat-box strong { display: block; font-size: 1.35rem; color: #ffeb3b; }
.stat-box span { font-size: 0.72rem; opacity: 0.92; }
.hero-visual { position: relative; }
.hero-photo {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  object-fit: cover; aspect-ratio: 4/5; max-height: 420px;
}
.hero-card {
  margin-top: 1rem;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28);
  border-radius: var(--radius); padding: 1.15rem 1.25rem; backdrop-filter: blur(6px);
}
.hero-card h2 { font-size: 1rem; margin-bottom: 0.6rem; }
.hero-card ul { list-style: none; font-size: 0.85rem; }
.hero-card li { padding: 0.3rem 0; padding-left: 1.35rem; position: relative; }
.hero-card li::before { content: "✓"; position: absolute; left: 0; color: #ffeb3b; font-weight: 700; }

.problems-layout {
  display: grid; gap: 2rem; align-items: center;
}
.section-title--left { text-align: left; }
.section-title--left .line { margin-left: 0; margin-right: auto; }
.problems-figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.problems-figure img { width: 100%; height: auto; display: block; object-fit: cover; }
.problems-figure figcaption {
  padding: 0.65rem 1rem; font-size: 0.85rem; background: var(--white);
  color: var(--blue-800); font-weight: 600; text-align: center;
}

/* Sticky CTA */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.sticky-cta a {
  padding: 1rem; text-align: center; font-weight: 700; font-size: 0.92rem; color: var(--white);
}
.sticky-cta .tel { background: linear-gradient(135deg, #ff6b35, var(--tel-orange)); }
.sticky-cta .line { background: var(--line-green); }

/* Sections */
section { padding: 3.5rem 0; }
section.alt { background: var(--blue-50); }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); color: var(--blue-900); font-weight: 900; }
.section-title p { color: var(--gray-500); font-size: 0.92rem; margin-top: 0.4rem; }
.section-title .line {
  width: 56px; height: 4px; background: var(--blue-600);
  margin: 0.85rem auto 0; border-radius: 2px;
}

/* Problems */
.problems-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem;
  max-width: 800px; margin: 0 auto 1.5rem;
}
.problem-item {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--white); padding: 0.85rem 1rem; border-radius: 8px;
  box-shadow: var(--shadow); font-weight: 500; font-size: 0.92rem;
}
.problem-item::before { content: "⚠"; flex-shrink: 0; }

/* Flow */
.flow-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem;
  counter-reset: step;
}
.flow-step {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); text-align: center; position: relative;
}
.flow-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; margin: 0 auto 0.75rem;
  background: var(--blue-600); color: var(--white); font-weight: 900; border-radius: 50%;
}
.flow-step h3 { color: var(--blue-900); font-size: 1rem; margin-bottom: 0.4rem; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.trust-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow); border-top: 4px solid var(--blue-600); text-align: center;
}
.trust-card .icon { font-size: 2.2rem; margin-bottom: 0.5rem; }
.trust-card h3 { color: var(--blue-900); font-size: 1.05rem; margin-bottom: 0.4rem; }

.guarantee-box {
  margin-top: 2rem; background: var(--white); border: 2px solid var(--blue-600);
  border-radius: var(--radius); padding: 1.5rem; text-align: center; max-width: 640px; margin-inline: auto;
}
.guarantee-box strong { color: var(--blue-900); font-size: 1.1rem; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.service-card-media {
  aspect-ratio: 16/10; overflow: hidden; background: var(--blue-100);
}
.service-card-media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease;
}
.service-card:hover .service-card-media img { transform: scale(1.04); }
.service-card-head {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: var(--white); padding: 1rem 1.25rem;
}
.service-card-body { padding: 1.1rem 1.25rem; font-size: 0.92rem; }
.service-card-body > p { margin-bottom: 0.65rem; }
.service-sales {
  margin-top: 0.75rem; padding: 0.75rem; background: var(--blue-50);
  border-radius: 8px; font-size: 0.88rem; border-left: 3px solid var(--blue-600);
}
.service-sales strong { color: var(--blue-800); }
.service-card-media--placeholder { position: relative; }
.img-placeholder-label {
  position: absolute; bottom: 0.5rem; right: 0.5rem;
  background: rgba(10, 61, 107, 0.85); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.55rem; border-radius: 4px;
}
.service-card--placeholder .service-card-media img { object-fit: cover; opacity: 0.95; }

.materials-section { background: var(--blue-50); }
.materials-detail-box { max-width: 900px; margin: 0 auto; }
.materials-friendly-lead {
  text-align: center; font-size: 1rem; color: var(--gray-700);
  margin-bottom: 1.5rem; line-height: 1.7;
}
.materials-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.materials-card {
  background: var(--white); border-radius: var(--radius); padding: 1.35rem;
  box-shadow: var(--shadow); text-align: center;
  border-top: 4px solid var(--blue-600);
}
.materials-card-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.materials-card h3 {
  font-size: 1rem; color: var(--blue-900); margin-bottom: 0.5rem;
}
.materials-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.65; text-align: left; }

.materials-full {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid rgba(21, 101, 184, 0.15); overflow: hidden;
}
.materials-full > summary {
  padding: 1rem 1.25rem; cursor: pointer; font-weight: 700;
  color: var(--blue-800); list-style: none; text-align: center;
  background: var(--white);
}
.materials-full > summary::-webkit-details-marker { display: none; }
.materials-full > summary::after { content: " ＋"; color: var(--blue-600); }
.materials-full[open] > summary::after { content: " －"; }
.materials-full-inner {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  background: #fafcff;
}
.materials-intro {
  font-size: 0.95rem; line-height: 1.85; margin-bottom: 1rem;
  color: var(--gray-700);
}
.materials-accordion {
  background: var(--white); border-radius: 8px; margin-bottom: 1rem;
  border: 1px solid var(--gray-100); overflow: hidden;
}
.materials-accordion summary {
  padding: 0.85rem 1rem; cursor: pointer; list-style: none;
  color: var(--blue-900); line-height: 1.6; font-size: 0.9rem;
}
.materials-accordion summary::-webkit-details-marker { display: none; }
.materials-accordion--nested { margin: 0 0 0 1rem; border: none; border-top: 1px dashed var(--gray-100); }
.materials-accordion--nested summary { min-height: 0.5rem; padding: 0.5rem; }
.materials-point {
  margin-bottom: 1rem; font-size: 0.88rem; line-height: 1.8; color: var(--gray-700);
}
.materials-point:last-child { margin-bottom: 0; }
.materials-point strong { color: var(--blue-900); }

/* Pricing */
.pricing-note {
  background: var(--blue-100); border-left: 4px solid var(--blue-600);
  padding: 1rem 1.15rem; margin-bottom: 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
}
.pricing-table-wrap {
  overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white);
}
table.pricing { width: 100%; border-collapse: collapse; min-width: 500px; }
table.pricing th, table.pricing td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--gray-100); }
table.pricing thead { background: var(--blue-800); color: var(--white); }
table.pricing .price { font-weight: 900; color: var(--blue-800); white-space: nowrap; }
table.pricing .note { font-size: 0.82rem; color: var(--gray-500); }
.cta-center { text-align: center; margin-top: 1.75rem; }

/* Testimonial */
.testimonial-box {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); max-width: 700px; margin: 0 auto 2rem;
  border-left: 5px solid var(--blue-600);
}
.testimonial-box p { font-size: 1.02rem; margin-bottom: 1rem; }
.testimonial-meta { display: flex; align-items: center; gap: 0.85rem; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--blue-600); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.stars { color: #f59e0b; }

.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.case-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-img {
  aspect-ratio: 16/10; overflow: hidden; background: var(--blue-100);
}
.case-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.case-body { padding: 1.1rem; }
.case-tag {
  display: inline-block; background: var(--blue-100); color: var(--blue-800);
  font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 4px; margin-bottom: 0.4rem;
}
.case-body h3 { color: var(--blue-900); font-size: 0.98rem; margin-bottom: 0.35rem; }
.case-body p { font-size: 0.88rem; color: var(--gray-500); }

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--radius); margin-bottom: 0.65rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem; font-weight: 700; color: var(--blue-900); cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--blue-600); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 1.25rem 1rem; font-size: 0.92rem; color: var(--gray-500); }

.cta-band {
  background: var(--blue-800); color: var(--white); text-align: center; padding: 2.75rem 0;
}
.cta-band h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.25rem; }

/* Company */
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.company-info dl {
  display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; font-size: 0.92rem;
}
.company-info dt { font-weight: 700; color: var(--blue-800); }
.map-box {
  border-radius: var(--radius); overflow: hidden; min-height: 220px;
  border: 1px solid var(--gray-100);
}
.map-box iframe { width: 100%; height: 260px; border: 0; }

footer {
  background: var(--blue-900); color: rgba(255,255,255,0.85);
  padding: 1.75rem 0; text-align: center; font-size: 0.84rem;
}
footer a { color: #90caf9; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .nav-desktop { display: flex; }
  .btn-tel-header { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .problems-layout { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .btn-tel-header { display: none; }
  .hero-cta-row .btn { flex: 1; min-width: 100%; }
  .header-cta .btn { padding: 0.55rem 0.75rem; font-size: 0.78rem; }
  body {
    font-size: 0.94rem; /* 基本フォントサイズを少し小さく */
    line-height: 1.6;
    padding-bottom: 80px; /* スティッキーCTAの高さを考慮して調整 */
  }
  .container {
    width: 95%; /* モバイルでは横幅を広めに使う */
    padding-inline: 1rem; /* 左右のパディングを追加 */
  }
  .hero {
    padding-top: 2rem; /* ヘッダーの下に少しスペース */
    padding-bottom: 2.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
    gap: 1.5rem; /* グリッド間のギャップを調整 */
  }
  .hero-visual {
    order: 1; /* 画像をテキストの下に移動（デフォルトがテキストが先頭なので） */
    margin-top: 1.5rem; /* 画像とテキストの間にマージン */
  }
  .hero-photo {
    max-height: 300px; /* モバイルで高さを制限 */
    aspect-ratio: 16/9; /* モバイル向けにアスペクト比を調整 */
  }
  .hero-card {
    margin-top: 1rem; /* カードと画像の間のマージン */
    padding: 1rem;
  }
  .hero h1 {
    font-size: clamp(1.5rem, 8vw, 2.2rem); /* モバイルでのh1フォントサイズ調整 */
    text-align: center;
  }
  .hero-lead {
    font-size: 0.95rem;
    text-align: center;
  }
  .hero-badge-row {
    justify-content: center; /* バッジを中央揃え */
  }
  .hero-cert {
    display: block; /* 中央揃えのためにブロック要素に */
    text-align: center;
    margin-inline: auto;
  }
  .hero-cta-row {
    justify-content: center; /* CTAボタンを中央揃え */
    gap: 0.5rem;
  }
  .hero-phone {
    text-align: center;
  }
  .hero-phone small {
    text-align: center;
  }
  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* 3列を維持しつつ調整 */
    max-width: none;
    margin-inline: auto;
  }

  .problems-layout {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
  }
  .problems-grid {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
    gap: 1rem;
    max-width: none;
  }
  .flow-steps {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
    gap: 1rem;
  }
  .trust-grid {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
    gap: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
    gap: 1rem;
  }
  .cases-grid {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
    gap: 1rem;
  }
  .company-grid {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
    gap: 1.5rem;
  }
  .map-box iframe {
    height: 200px; /* モバイルでのiframeの高さを調整 */
  }
  section {
    padding: 2.5rem 0; /* モバイルでのセクションの上下パディングを調整 */
  }
  .materials-cards {
    grid-template-columns: 1fr; /* モバイルでは1列にする */
    gap: 1rem;
  }
}
