: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;
}
.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-img { max-width: 140px; height: 48px; }
  .logo-text span:last-child { display: none; }
  .logo-text span:first-child {
    font-size: 1.15rem; font-weight: 900; color: var(--blue-900); letter-spacing: 0.02em;
  }
  .header-cta .btn-line-header { display: none; }
}
.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%; }

.btn-hint { position: relative; overflow: visible; }
.btn-click-hint {
  position: absolute; left: 50%; top: 50%; margin-left: -0.2em; margin-top: -0.5em;
  font-size: 1.7rem; line-height: 1; pointer-events: none;
}
.btn-click-hint::after {
  content: ""; position: absolute; left: 4px; top: 2px; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.9); border-radius: 50%;
  opacity: 0; animation: btnHintRipple 2s infinite;
}
@keyframes btnHintRipple {
  0%, 20% { opacity: 0; transform: scale(0.4); }
  25% { opacity: 0.9; transform: scale(0.6); }
  50% { opacity: 0; transform: scale(2.4); }
  100% { opacity: 0; transform: scale(2.4); }
}

/* Hero */
.hero {
  margin-top: var(--header-h);
  background: linear-gradient(105deg, rgba(8, 32, 64, 0.9) 0%, rgba(14, 58, 110, 0.75) 55%, rgba(10, 30, 58, 0.55) 100%);
  color: var(--white); padding: 2.5rem 0 3.5rem; position: relative; overflow: hidden;
}
.hero-bg-slideshow { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: heroBgFade 40s infinite; animation-fill-mode: backwards;
}
@keyframes heroBgFade {
  0%, 100% { opacity: 0; }
  5% { opacity: 1; }
  20% { opacity: 1; }
  30% { opacity: 0; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, rgba(8, 32, 64, 0.82) 0%, rgba(14, 58, 110, 0.6) 55%, rgba(10, 30, 58, 0.4) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-badge-row { display: flex; flex-wrap: wrap; justify-content: center; 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: 1.05rem; font-weight: 700; margin-bottom: 1rem;
  padding: 0.45rem 0.95rem; border-radius: 6px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 { margin-top: 0.5rem; margin-bottom: 0.4rem; }
.hero-h1-line1 {
  display: block; font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 700;
  line-height: 1.4; margin-bottom: 0.35rem; opacity: 0.95;
}
.hero-h1-line2 {
  display: block; font-size: clamp(2.6rem, 8.5vw, 5rem); font-weight: 900; line-height: 1.2;
  color: #fff; -webkit-text-stroke: 2.5px var(--blue-900); paint-order: stroke fill;
  text-shadow: 0 3px 16px rgba(0,0,0,0.5), 0 0 3px rgba(0,0,0,0.6);
}
.hero-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.hero-phone {
  display: inline-block; font-size: clamp(1.15rem, 3.5vw, 1.6rem); font-weight: 800;
  margin-top: 0.4rem; padding-bottom: 0.15rem; border-bottom: 3px solid #e53935;
}
.hero-phone a { color: #ffeb3b; font-weight: 900; }
.tel-group { white-space: nowrap; }
.staff-note-break { display: none; }
.hero-staff-note {
  margin-top: 1rem; margin-inline: auto; max-width: 40em;
  padding: 0.65rem 1rem; border-radius: 6px;
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.2);
}
.staff-note-line1 {
  display: block; font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 800; margin-bottom: 0.3rem;
  color: #fff; -webkit-text-stroke: 1.5px var(--blue-900); paint-order: stroke fill;
}
.staff-note-line2 {
  display: inline-block; font-size: clamp(1.3rem, 3.6vw, 1.8rem); font-weight: 900;
  color: #fff; -webkit-text-stroke: 2px #e53935; paint-order: stroke fill;
}

.call-now-band { background: var(--blue-50); padding: 2rem 0; }
.call-now-inner { text-align: center; }
.call-now-band h2 {
  display: inline-block; font-size: 1.35rem; font-weight: 800; color: var(--blue-900);
  letter-spacing: 0.03em; margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 2.5px solid #ffca28;
}
.call-now-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1.75rem;
}
.call-now-list li { padding-left: 1.35rem; position: relative; font-weight: 600; }
.call-now-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue-600); 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;
  border: 2px solid #e53935;
  box-shadow: var(--shadow); font-weight: 700; font-size: 1.1rem;
}
.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: clamp(1.1rem, 1.8vw, 1.25rem); margin-bottom: 0.5rem; }
.flow-step p  { font-size: clamp(1.05rem, 1.6vw, 1.18rem); line-height: 1.85; }

/* 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);
  display: flex; flex-direction: column;
}
.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.35rem 1.4rem;
  display: flex;
  align-items: center;
  flex: 1;
}
.service-point {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.85;
  color: var(--gray-700);
  margin: 0;
}
.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-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.testimonial-box {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--blue-600);
  display: flex; flex-direction: column;
}
.testimonial-box > p { flex: 1; }
.testimonial-box > footer { margin-top: auto; }
.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-content { max-width: 640px; }
  .problems-layout { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  /* ── ヘッダー ── */
  .btn-tel-header { display: none; }
  .header-cta .btn { padding: 0.5rem 0.7rem; font-size: 0.76rem; }

  /* ── ベース ── */
  body { font-size: 0.94rem; line-height: 1.6; padding-bottom: 72px; }
  .container { width: 94%; padding-inline: 0.75rem; }
  section { padding: 2.25rem 0; }

  /* ── ヒーロー ── */
  .hero { padding-top: 1.75rem; padding-bottom: 2rem; }
  .hero-bg-img { top: 50%; bottom: auto; height: auto; min-height: 100%; transform: translateY(-50%); }
  .hero-badge-row { gap: 0.35rem; }
  .badge { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
  .hero-cert { font-size: 0.92rem; }
  .hero-phone { font-size: 1.05rem; }
  .staff-note-break { display: inline; }
  .hero-cta-row {
    flex-direction: column; align-items: stretch; gap: 0.6rem;
  }
  .hero-cta-row .btn { text-align: center; font-size: 1rem; padding: 0.9rem 1rem; }

  /* ── 今すぐご連絡を ── */
  .call-now-list { flex-direction: column; align-items: center; gap: 0.6rem; }

  /* ── お悩み ── */
  .problems-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .problems-figure { display: none; }
  .problems-grid {
    grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: none;
  }
  .problem-item { font-size: 0.98rem; padding: 0.7rem 0.75rem; }

  /* ── ご依頼の流れ ── */
  .flow-steps { grid-template-columns: 1fr; gap: 0.85rem; }
  .flow-step { padding: 1.15rem 1.25rem; }
  .flow-step h3 { font-size: 1.2rem; }
  .flow-step p  { font-size: 1.1rem; }

  /* ── 選ばれる理由 ── */
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .trust-card { padding: 1.1rem 0.85rem; }
  .trust-card .icon { font-size: 1.8rem; }
  .trust-card h3 { font-size: 0.9rem; }
  .trust-card p { font-size: 0.82rem; }
  .guarantee-box { padding: 1rem; }

  /* ── サービスカード ── */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card-media { aspect-ratio: 16 / 9; }
  .service-card-head { padding: 0.75rem 1rem; }
  .service-card-body { padding: 1.1rem 1.15rem; }
  .service-point { font-size: 1.02rem; }

  /* ── 施工事例 ── */
  .cases-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .case-img { aspect-ratio: 4 / 3; }
  .case-body { padding: 0.75rem; }
  .case-body h3 { font-size: 0.86rem; }
  .case-body p { font-size: 0.78rem; }

  /* ── 料金表 ── */
  table.pricing th, table.pricing td { padding: 0.65rem 0.75rem; font-size: 0.82rem; }

  /* ── お客様の声 ── */
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-box { padding: 1.25rem; }
  .testimonial-box p { font-size: 0.92rem; }

  /* ── FAQ ── */
  .faq-item summary { font-size: 0.9rem; padding: 0.85rem 1rem; }
  .faq-item p { font-size: 0.85rem; }

  /* ── CTAバンド ── */
  .cta-band h2 { font-size: 1.05rem; }
  .cta-band .btn-row { flex-direction: column; align-items: center; }
  .cta-band .btn { width: 100%; max-width: 320px; text-align: center; }

  /* ── 会社概要・地図 ── */
  .company-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .company-info dl { font-size: 0.86rem; }
  .map-box iframe { height: 210px; }

  /* ── 料金が心配な方へ ── */
  .materials-cards { grid-template-columns: 1fr; gap: 0.85rem; }
  .materials-card { padding: 1rem; }
}

/* ── 資格証セクション ───────────────────────────── */
.cred-section {
  margin-top: 2.75rem;
}
.cred-eyebrow {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--blue-600);
  margin-bottom: 0.55rem;
}
.cred-heading {
  text-align: center;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 900;
  color: var(--blue-900);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

/* 資格カード 2枚 */
.cred-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.cred-card {
  background: linear-gradient(145deg, #0a2a4a 0%, var(--blue-900) 100%);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 10px 36px rgba(10, 61, 107, 0.28), inset 0 1px 0 rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.cred-card::after {
  content: '';
  position: absolute;
  bottom: -28px; right: -28px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.025);
  pointer-events: none;
}
.cred-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cred-emblem {
  flex-shrink: 0;
  width: 54px; height: 54px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.cred-emblem-kanji {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #e85d04 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 900; color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
  position: relative; z-index: 1;
}
.cred-emblem-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: ring-spin 12s linear infinite;
}
@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.cred-label { flex: 1; min-width: 0; }
.cred-category {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.cred-title {
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.45;
}
.cred-number-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.85rem;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.22);
  border-radius: 8px;
}
.cred-number-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
  white-space: nowrap;
}
.cred-number {
  font-size: 1.18rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.12em;
}
.cred-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
}

/* 作業スタイル */
.workstyle {
  background: var(--white);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 28px rgba(10,61,107,0.1);
  border: 1px solid rgba(21,101,184,0.08);
}
.workstyle-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}
.workstyle-ornament {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(21,101,184,0.25));
  max-width: 80px;
}
.workstyle-title-wrap .workstyle-ornament:last-child {
  background: linear-gradient(to left, transparent, rgba(21,101,184,0.25));
}
.workstyle-title {
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 900;
  color: var(--blue-900);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.workstyle-lead {
  text-align: center;
  color: var(--gray-500);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
  line-height: 1.75;
}
.workstyle-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.workstyle-card {
  padding: 1.5rem 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--blue-50);
  text-align: center;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.workstyle-card:nth-child(1) { border-bottom-color: var(--tel-orange); }
.workstyle-card:nth-child(2) { border-bottom-color: var(--blue-600); }
.workstyle-card:nth-child(3) { border-bottom-color: var(--line-green); }
.workstyle-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,61,107,0.12); }
.ws-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.85rem;
}
.ws-icon-wrap svg { width: 22px; height: 22px; }
.ws-icon-wrap--orange { background: rgba(232,93,4,0.1); color: var(--tel-orange); }
.ws-icon-wrap--blue   { background: rgba(26,122,212,0.1); color: var(--blue-600); }
.ws-icon-wrap--green  { background: rgba(6,199,85,0.1);  color: var(--line-green); }
.workstyle-card h4 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--blue-900);
  margin-bottom: 0.55rem;
}
.workstyle-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.75;
  text-align: left;
}

/* モバイル：資格・作業スタイル */
@media (max-width: 767px) {
  .cred-cards { grid-template-columns: 1fr; gap: 1rem; }
  .cred-card { padding: 1.35rem 1.1rem 1.1rem; }
  .cred-emblem { width: 46px; height: 46px; }
  .cred-emblem-kanji { width: 34px; height: 34px; font-size: 1rem; }
  .workstyle { padding: 1.5rem 1rem; }
  .workstyle-title { font-size: 1.15rem; white-space: normal; text-align: center; }
  .workstyle-ornament { display: none; }
  .workstyle-cards { grid-template-columns: 1fr; gap: 0.85rem; }
  .workstyle-card { padding: 1.15rem 1rem 1rem; text-align: left; display: flex; flex-direction: column; }
  .ws-icon-wrap { margin-left: 0; }
  .workstyle-card p { text-align: left; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .cred-title { font-size: 1.05rem; }
  .workstyle-title { white-space: normal; text-align: center; }
  .workstyle-cards { gap: 0.85rem; }
  .workstyle-card { padding: 1.25rem 0.85rem 1rem; }
  .workstyle-card p { font-size: 0.86rem; }
}

/* ── 信頼バッジストリップ ─────────────────────── */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid rgba(21, 101, 184, 0.12);
  padding: 0.85rem 0;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--blue-900);
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}
.trust-badge-item strong { color: var(--blue-700); }
.tbadge-icon { font-size: 1.1rem; }
.trust-badge-sep {
  width: 1px;
  height: 1.2em;
  background: rgba(21, 101, 184, 0.2);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .trust-strip-inner { gap: 0; }
  .trust-badge-item { font-size: 0.78rem; padding: 0.25rem 0.45rem; }
  .trust-badge-sep { display: none; }
}

/* ═══════════════════════════════════════════════
   ペープサート シアター（アニメ台本.txt 2026-06改訂版）
   ═══════════════════════════════════════════════ */

.story-section {
  background: linear-gradient(160deg, #0d1b3e 0%, #1b2d6b 55%, #0a3d6b 100%);
  padding: 3rem 0 2.5rem;
}
.story-section .section-title h2 { color: #fff; }
.story-section .section-title p  { color: rgba(255,255,255,0.72); }
.story-section .section-title .line { background: #ffeb3b; }

/* ── Wrapper & Frame ───────────────────── */
.theater-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
}

#theater {
  position: relative;
  border-radius: 12px;
  box-shadow:
    0 0 0 7px #8B4513,
    0 0 0 13px #5a2f0a,
    0 0 0 17px #3a1d06,
    0 28px 80px rgba(0,0,0,0.6);
  background: #3a1d06;
}

/* ── Screen (16:9 viewing area) ────────── */
#screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border-radius: 8px 8px 0 0;
}

/* ── Stage floor (decorative wood) ─────── */
.stage-floor {
  position: relative;
  width: 100%;
  height: clamp(44px, 9vw, 80px);
  background: linear-gradient(to bottom, #6b3a10, #3a1d06);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
.stage-floor::before,
.stage-floor::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.05);
}
.stage-floor::before { top: 30%; }
.stage-floor::after  { top: 65%; }

/* ── Blackout overlay ───────────────────── */
#blackout {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
#blackout.on { opacity: 1; }

/* ── Backgrounds ───────────────────────── */
.bg-layer {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 1;
}
.bg-layer.active { display: block; }

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ── Puppets ────────────────────────────
   bottom:0 + translateY(110%) → 画面下に隠れている
   .show → translateY(0) で登場（棒が下端に見える）
   .fly-high → translateY(-180%) 画面上端外（※ .show より後に定義してカスケードで勝つ）
   奥さん系は .flip-x クラスで常に scaleX(-1)（左向き）を維持
   ─────────────────────────────────────── */
.puppet {
  position: absolute;
  bottom: 0;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.34, 1.35, 0.64, 1);
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 10;
}
.puppet-img {
  width: 100%;
  height: auto;
  display: block;
}
/* flip-x: 奥さん系（左向き）のベース・表示・上飛び状態 */
.puppet.flip-x          { transform: translateY(110%)  scaleX(-1); }
.puppet.flip-x.show     { transform: translateY(0)     scaleX(-1); }
.puppet.flip-x.fly-high { transform: translateY(-180%) scaleX(-1); }

/* .show / .fly-high は .puppet より後に定義 → カスケード順で勝つ */
.puppet.show     { transform: translateY(0); }
.puppet.fly-high { transform: translateY(-180%); }

/* bounce: 噴水 */
.puppet.bounce {
  animation: p-bounce 0.55s ease-in-out infinite alternate;
}
@keyframes p-bounce {
  from { transform: translateY(0);   }
  to   { transform: translateY(-5%); }
}

/* fall: スコップが空から落下 */
.puppet.fall {
  animation: p-fall 0.8s cubic-bezier(0.55, 0, 0.85, 0.5) forwards;
}
@keyframes p-fall {
  0%   { transform: translateY(-300%); opacity: 0.7; }
  80%  { transform: translateY(3%);    opacity: 1;   }
  100% { transform: translateY(0);     opacity: 1;   }
}

/* fly-exit: カット3 作業員が屋根突き破って上へ消える */
.puppet.fly-exit {
  animation: p-fly-exit 0.7s ease-in forwards;
}
@keyframes p-fly-exit {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(-400%); opacity: 0; }
}

/* walk-left-exit: カット9 作業員が左へ歩いて消える */
.puppet.walk-left-exit {
  animation: p-walk-left 2.0s ease-in forwards;
}
@keyframes p-walk-left {
  0%   { transform: translateY(0) translateX(0);     }
  100% { transform: translateY(0) translateX(-300%); }
}

/* truck-approach: 遠くから急接近（カット3） */
.puppet.truck-approach {
  animation: p-truck-in 2.6s cubic-bezier(0.25, 0.1, 0.6, 1) forwards;
}
@keyframes p-truck-in {
  0%   { transform: translateY(-42%) scale(0.08); opacity: 0.3; }
  60%  { transform: translateY(-7%)  scale(0.76); opacity: 1;   }
  88%  { transform: translateY(0)    scale(1.04);               }
  100% { transform: translateY(0)    scale(1);                  }
}

/* drive-away: 遠くへ走り去る（カット10） */
.puppet.drive-away {
  animation: p-truck-out 3.2s ease-in forwards;
}
@keyframes p-truck-out {
  0%   { transform: translateY(0)    scale(1)    translateX(0);    opacity: 1; }
  65%  { transform: translateY(-9%)  scale(0.28) translateX(14%);  opacity: 1; }
  100% { transform: translateY(-14%) scale(0.04) translateX(22%);  opacity: 0; }
}

/* ── Y回転キャラ切替（くるっと回転） ──────
   回転前半: rotateY(0→90) → JS でキャラ差し替え → 回転後半: rotateY(90→0)
   .spin-out / .spin-in クラスを JS から付け外しする
   ─────────────────────────────────────── */
.puppet.spin-out {
  animation: p-spin-out 0.25s ease-in forwards;
}
@keyframes p-spin-out {
  from { transform: translateY(0) rotateY(0deg);   }
  to   { transform: translateY(0) rotateY(90deg);  }
}
.puppet.spin-in {
  animation: p-spin-in 0.25s ease-out forwards;
}
@keyframes p-spin-in {
  from { transform: translateY(0) rotateY(-90deg); }
  to   { transform: translateY(0) rotateY(0deg);   }
}

/* 吹き出し連動キャラ動作: 吹き出しが出た瞬間キャラが下から突き上がる */
.puppet.nudge {
  animation: p-nudge 0.45s ease-out;
}
@keyframes p-nudge {
  0%   { transform: translateY(0);   }
  35%  { transform: translateY(-8%); }
  70%  { transform: translateY(-3%); }
  100% { transform: translateY(0);   }
}

/* カット1 噴水: 窓内（y=60%〜y=23%）を往復ループ */
.puppet.fountain-loop {
  animation: p-fountain-loop 4s ease-in-out infinite;
}
@keyframes p-fountain-loop {
  0%   { bottom: 0; }
  50%  { bottom: 20%; }
  100% { bottom: 0%; }
}

/* scaleX(-1) 付き奥さん: spin-out/in でも左向き維持 */
.puppet.flip-x.spin-out {
  animation: p-spin-out-flip 0.25s ease-in forwards;
}
@keyframes p-spin-out-flip {
  from { transform: translateY(0) scaleX(-1) rotateY(0deg);   }
  to   { transform: translateY(0) scaleX(-1) rotateY(-90deg); }
}
.puppet.flip-x.spin-in {
  animation: p-spin-in-flip 0.25s ease-out forwards;
}
@keyframes p-spin-in-flip {
  from { transform: translateY(0) scaleX(-1) rotateY(90deg);  }
  to   { transform: translateY(0) scaleX(-1) rotateY(0deg);   }
}

/* ── 6000ぽっきり 起き上がり演出（カット8） ──
   最初は rotateX(85deg) で倒れた状態、徐々に rotateX(0) へ
   ─────────────────────────────────────── */
#billboard-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  pointer-events: none;
  opacity: 0;
}
#billboard-layer.active { opacity: 1; }

#billboard-img {
  width: clamp(120px, 55%, 320px);
  height: auto;
  transform: perspective(500px) rotateX(85deg) scaleY(0.05);
  transform-origin: bottom center;
}
#billboard-layer.active #billboard-img {
  animation: bb-standup 5s 0.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes bb-standup {
  from { transform: perspective(500px) rotateX(85deg) scaleY(0.05); }
  to   { transform: perspective(500px) rotateX(0deg)  scaleY(1);    }
}

/* ── SFX Layer ──────────────────────────── */
#sfx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.sfx-item {
  position: absolute;
  animation: sfx-pop 0.2s cubic-bezier(0.34, 1.8, 0.64, 1);
}
.sfx-item img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.45));
}
@keyframes sfx-pop {
  from { transform: scale(0.2) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

/* ── Card Layer (カット6・10 テロップ) ─────── */
.card-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.card-layer.show { opacity: 1; }

.card-layer.pos-br {
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 4% 5%;
}

.card-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.2rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9);
  letter-spacing: 0.15em;
}
.card-layer.pos-br .card-text {
  font-size: clamp(0.9rem, 3vw, 1.6rem);
}
.card-layer.card-finish .card-text {
  font-size: clamp(2.7rem, 9vw, 4.8rem);
}

/* ── Progress Bar ───────────────────────── */
.theater-bar {
  margin-top: 0.7rem;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.theater-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffeb3b, #ff9800);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 767px) {
  .puppet       { transition-duration: 0.35s; }
  .theater-wrap { padding: 0 0.5rem; }
}

/* ── シアター内 ローディングオーバーレイ ──────────── */
#theater-loading {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(5, 10, 30, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
#theater-loading.fade-out { opacity: 0; }
.theater-loading-text {
  color: #fff;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: "Noto Sans JP", sans-serif;
}
#theater-loading-dots {
  display: inline-block;
  min-width: 2em;
  text-align: left;
}

/* ── 紹介動画セクション ────────────────────────────── */
.intro-video-section {
  background: linear-gradient(160deg, #0d1b3e 0%, #1b2d6b 55%, #0a3d6b 100%);
  padding: 3.5rem 0;
}
.intro-video-section .section-title h2 { color: #fff; }
.intro-video-section .section-title p  { color: rgba(255,255,255,0.72); }
.intro-video-section .section-title .line { background: #ffeb3b; }

.video-theater-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem;
}
.video-player-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow:
    0 0 0 7px #8B4513,
    0 0 0 13px #5a2f0a,
    0 0 0 17px #3a1d06,
    0 28px 80px rgba(0,0,0,0.6);
}
.video-player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 動画ローディングオーバーレイ（デフォルト: 表示） */
.video-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(5, 10, 30, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease;
}
.video-loading-text {
  color: #fff;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}
#video-loading-dots {
  display: inline-block;
  min-width: 2em;
  text-align: left;
}

/* 再生ボタンオーバーレイ（デフォルト: 非表示） */
.video-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.video-play-btn {
  pointer-events: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 0;
  transition: transform 0.15s;
}
.video-play-btn:hover { transform: scale(1.1); }
.video-play-btn svg {
  width: clamp(60px, 14vw, 96px);
  height: clamp(60px, 14vw, 96px);
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

/* is-ready: ローディング非表示 + 再生ボタン表示 */
.video-player-wrap.is-ready .video-loading-overlay {
  opacity: 0;
  pointer-events: none;
}
.video-player-wrap.is-ready .video-play-overlay {
  opacity: 1;
}
.video-player-wrap.is-ready .video-play-btn {
  pointer-events: auto;
}

/* is-playing: 両方非表示 */
.video-player-wrap.is-playing .video-loading-overlay {
  opacity: 0;
  pointer-events: none;
}
.video-player-wrap.is-playing .video-play-overlay {
  opacity: 0;
}

@media (max-width: 767px) {
  .intro-video-section { padding: 2.25rem 0; }
  .video-theater-wrap  { padding: 0 0.5rem; }
  .video-player-wrap {
    box-shadow:
      0 0 0 4px #8B4513,
      0 0 0 8px #5a2f0a,
      0 16px 40px rgba(0,0,0,0.5);
  }
}