/* ===== Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "BIZ UDPGothic", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  color: #172033;
  background: #ffffff;
  line-height: 1.85;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, p, ol, ul {
  margin: 0;
}

dl, dt, dd {
  margin: 0;
}

h1, h2, h3, p, li, a, span, th, td, dd, dt {
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

:root {
  --ink: #172033;
  --muted: #667085;
  --navy: #003b73;
  --blue: #0077c8;
  --blue-soft: #e8f7ff;
  --primary: #0094d9;
  --primary-dark: #005fae;
  --phone-blue: #008cff;
  --phone-blue-dark: #005ed8;
  --accent: #38bdf8;
  --accent-soft: #dff5ff;
  --line-green: #22b857;
  --line-green-dark: #159447;
  --line: #c9ecff;
  --soft: #e8f7ff;
  --warm: #f6fcff;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 119, 200, 0.16);
  --shadow-soft: 0 10px 30px rgba(0, 148, 217, 0.1);
}

:focus-visible {
  outline: 3px solid rgba(14, 92, 173, 0.4);
  outline-offset: 4px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.line {
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(7, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  display: block;
  width: 132px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: #fff;
}

.brand__text {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.brand__sub {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
}

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

.header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 900;
}

.header-actions__line {
  padding: 0 18px;
  background: var(--line-green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(6, 199, 85, 0.22);
}

.header-actions__tel {
  flex-direction: column;
  align-items: flex-end;
  color: var(--navy);
  line-height: 1.2;
}

.header-actions__tel small {
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--muted);
}

.breadcrumb {
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
  list-style: none;
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 6px;
  color: #98a2b3;
}

.breadcrumb a {
  color: var(--blue);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.35;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--phone-blue), var(--phone-blue-dark));
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 140, 255, 0.32);
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn--line {
  background: linear-gradient(135deg, var(--line-green), var(--line-green-dark));
  color: #fff;
  box-shadow: 0 16px 32px rgba(34, 184, 87, 0.22);
}

.btn--line:hover {
  filter: brightness(1.05);
}

.btn--light {
  flex-direction: column;
  background: #fff;
  color: var(--navy);
}

.btn--light small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.btn--mail {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn--mail:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    url("img/service-hikkoshi.jpg") center right / cover no-repeat,
    var(--navy);
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: block;
  padding: 64px 0 68px;
}

.hero__copy {
  width: min(690px, 100%);
  animation: heroFadeUp 0.65s ease both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero__title {
  max-width: 690px;
  margin-top: 20px;
  font-size: clamp(2rem, 3.4vw, 2.82rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 25, 48, 0.66);
}

.hero__title .line {
  white-space: normal;
}

.hero__title-line span {
  display: inline;
}

.hero__title em {
  color: #b9f0ff;
  font-style: normal;
}

.hero__lead {
  width: min(620px, 100%);
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.85;
  text-shadow: 0 2px 12px rgba(0, 25, 48, 0.72);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero__note {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-shadow: 0 2px 10px rgba(0, 25, 48, 0.72);
}

.case-card__photo {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(91, 192, 235, 0.24), rgba(14, 92, 173, 0.08)),
    repeating-linear-gradient(135deg, #eef7fd 0 14px, #dff0fb 14px 28px);
  color: #586574;
  font-weight: 900;
  text-align: center;
  overflow: hidden;
}

.case-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Proof ===== */
.proof {
  background: linear-gradient(90deg, var(--blue), var(--primary));
  color: #fff;
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 26px 0;
}

.proof__grid div {
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
}

.proof__grid div:last-child {
  border-right: 0;
}

.proof__grid strong,
.proof__grid span {
  display: block;
}

.proof__grid strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.proof__grid span {
  margin-top: 3px;
  font-size: 0.82rem;
  opacity: 0.9;
}

/* ===== Sections ===== */
.section {
  padding: 82px 0;
}

.section--soft {
  background: linear-gradient(180deg, var(--soft), #f7fcff);
}

.section--warm {
  background: linear-gradient(180deg, var(--warm), #ffffff);
}

.section-title {
  margin-top: 16px;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.38;
  font-weight: 900;
  text-align: center;
}

.section-title--left {
  text-align: left;
}

.section-title__mobile {
  display: none;
}

.section-subtitle {
  width: min(780px, 100%);
  margin: 14px auto 42px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
  text-align: center;
}

.section-title--left + p,
.area-box p {
  color: var(--muted);
}

.problem-grid,
.reason-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.trouble-card {
  padding: 24px;
  border: 1px solid rgba(7, 24, 39, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--accent);
}

.trouble-card h3 {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.55;
}

.trouble-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.85;
}

.problem-card,
.reason-card,
.case-card,
.price-note,
.flow-item div,
.definition {
  border: 1px solid rgba(7, 24, 39, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.problem-card {
  padding: 24px;
}

.problem-card__icon,
.reason-card span,
.flow-item > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.problem-card h3,
.reason-card h3,
.case-card h3,
.flow-item h3 {
  margin-top: 16px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.55;
}

.problem-card p,
.reason-card p,
.case-card p,
.flow-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.85;
}

.definition {
  margin-top: 34px;
  padding: 30px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}

.founder-message {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid rgba(7, 24, 39, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.founder-message__name {
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 14px;
}

.founder-message p + p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.9;
}

.service-visual {
  margin-top: 30px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.service-visual img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.definition__title {
  color: #b9ecff;
  font-weight: 900;
  margin-bottom: 10px;
}

.definition p:last-child {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.9;
}

.reason-card {
  padding: 28px 24px;
  text-align: center;
}

.reason-card span {
  margin: 0 auto;
  background: var(--primary);
  color: #fff;
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

/* ===== Tables ===== */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.compare-table,
.price-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table thead,
.price-table thead {
  background: var(--navy);
  color: #fff;
}

.compare-table th,
.compare-table td,
.price-table th,
.price-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.compare-table td:not(:first-child),
.compare-table th:not(:first-child),
.price-table td:last-child,
.price-table th:last-child {
  text-align: center;
}

.compare-table tbody tr:nth-child(even) td,
.price-table tbody tr:nth-child(even) td {
  background: #f8fbfd;
}

.mark-ok {
  color: var(--primary);
  font-weight: 900;
}

.mark-tri {
  color: var(--accent);
  font-weight: 900;
}

.mark-ng {
  color: #98a2b3;
  font-weight: 900;
}

/* ===== Cases / Price / Flow / Area ===== */
.case-grid {
  grid-template-columns: repeat(3, 1fr);
}

.case-card {
  overflow: hidden;
}

.case-card__photo {
  height: 180px;
  min-height: 180px;
  border-radius: 10px 10px 0 0;
}

.case-card__body {
  padding: 22px;
}

.case-card__area {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 900;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.case-meta li {
  font-size: 0.86rem;
  color: var(--ink);
}

.case-meta li span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ===== Before After / Photo Estimate ===== */
.before-after-grid,
.estimate-grid {
  display: grid;
  gap: 22px;
}

.before-after-grid {
  grid-template-columns: repeat(2, 1fr);
}

.estimate-grid {
  grid-template-columns: repeat(2, 1fr);
}

.estimate-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.before-after-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 260px;
  overflow: hidden;
  background: #f8fbfd;
  isolation: isolate;
}

.before-after-slider__image,
.before-after-slider__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.before-after-slider__image {
  display: block;
}

.before-after-slider__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.before-after-slider--portrait .before-after-slider__image {
  object-position: center 42%;
}

.before-after-slider__label {
  position: absolute;
  top: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 59, 115, 0.86);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.before-after-slider__label--before {
  left: 12px;
}

.before-after-slider__label--after {
  right: 12px;
  background: rgba(34, 184, 87, 0.9);
}

.before-after-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--position);
  z-index: 4;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 59, 115, 0.16), 0 0 20px rgba(0, 59, 115, 0.22);
  pointer-events: none;
}

.before-after-slider__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 59, 115, 0.22);
}

.before-after-slider__range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.estimate-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(0, 59, 115, 0.9);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.estimate-card__photo {
  position: relative;
  height: 260px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #f8fbfd;
}

.estimate-badge--ok {
  background: rgba(0, 95, 174, 0.92);
}

.estimate-badge--ng {
  background: rgba(102, 112, 133, 0.92);
}

.price-note {
  padding: 24px 26px;
  margin-bottom: 24px;
  border-color: rgba(15, 139, 111, 0.32);
}

.price-note strong {
  color: var(--primary);
}

.price-note p {
  margin-top: 8px;
  color: var(--muted);
}

.price-caution {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.flow-list {
  width: min(820px, 100%);
  margin: 0 auto;
}

.flow-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
  position: relative;
  padding-bottom: 26px;
}

.flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: var(--line);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.72s ease;
}

.flow-list.is-drawn .flow-item:not(:last-child)::after {
  transform: scaleY(1);
}

.flow-list.is-drawn .flow-item:nth-child(2)::after {
  transition-delay: 0.12s;
}

.flow-list.is-drawn .flow-item:nth-child(3)::after {
  transition-delay: 0.24s;
}

.flow-item > span {
  position: relative;
  z-index: 1;
  background: var(--accent);
  color: #fff;
}

.flow-item div {
  padding: 22px 24px;
}

.flow-item h3 {
  margin-top: 0;
}

.area-box {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 44px;
  align-items: center;
}

.area-box .tag {
  margin-bottom: 0;
}

.area-box__map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  min-height: 240px;
  padding: 0;
  background: #fff;
  color: var(--navy);
}

.area-box__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  border: 0;
}

/* ===== FAQ ===== */
.faq-list {
  width: min(920px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 18px 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 900;
  cursor: pointer;
}

.faq-q::after {
  content: "+";
  margin-left: auto;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.q-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
}

.faq-a {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 0 0 44px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.85;
  opacity: 0;
  transition: max-height 0.28s ease, padding 0.28s ease, opacity 0.22s ease;
}

.faq-item.open .faq-q::after {
  content: "-";
}

.faq-item.open .faq-a {
  max-height: 420px;
  padding: 0 0 22px 44px;
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ===== Final CTA / Footer ===== */
.final-cta {
  padding: 82px 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, var(--primary), var(--navy));
}

.final-cta__eyebrow {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
}

.final-cta h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.35;
}

.final-cta p:not(.final-cta__eyebrow):not(.final-cta__note) {
  width: min(720px, 100%);
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.9);
}

.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.final-cta__note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
}

.site-footer {
  background: #061f3d;
  color: #aab6c3;
  padding: 54px 0 30px;
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
}

.footer-logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-logo-img {
  display: block;
  width: 132px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  border-radius: 6px;
  background: #fff;
}

.footer-company,
.footer-heading {
  margin-top: 8px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 900;
}

.site-footer a {
  display: block;
  color: #aab6c3;
}

.site-footer a:hover {
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 8px;
}

.footer-contact div {
  display: grid;
  grid-template-columns: 4.2em minmax(0, 1fr);
  gap: 10px;
}

.footer-contact dt {
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.footer-contact dd {
  min-width: 0;
}

.footer-contact a {
  display: inline;
  word-break: normal;
  overflow-wrap: anywhere;
}

.footer-map {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map iframe {
  display: block;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #7f8b98;
}

.mobile-sticky-cta {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__grid,
  .area-box {
    grid-template-columns: 1fr;
  }

  .hero__title .line {
    white-space: normal;
  }

  .problem-grid,
  .reason-grid,
  .trouble-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof__grid,
  .case-grid,
  .before-after-grid,
  .estimate-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof__grid div:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  body {
    padding-bottom: 74px;
  }

  .container {
    width: calc(100% - 48px);
    max-width: 1120px;
    min-width: 0;
  }

  .site-header__inner {
    justify-content: center;
    min-height: 62px;
  }

  .brand__logo {
    width: 112px;
    height: 40px;
  }

  .header-actions {
    display: none;
  }

  h1,
  h2,
  h3,
  p,
  li,
  dt,
  dd,
  a,
  span,
  th,
  td,
  small {
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }

  body * {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-break: strict;
  }

  .breadcrumb {
    display: none;
  }

  .hero__grid {
    padding: 42px 0 38px;
  }

  .hero {
    background:
      url("img/service-hikkoshi.jpg") 42% center / cover no-repeat,
      var(--navy);
  }

  .hero,
  .section,
  .proof,
  .final-cta,
  .site-footer {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero__copy,
  .proof__grid,
  .problem-grid,
  .reason-grid,
  .trouble-grid,
  .case-grid,
  .before-after-grid,
  .estimate-grid,
  .footer-grid {
    min-width: 0;
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.68rem, 7vw, 2rem);
    line-height: 1.26;
  }

  .hero__lead {
    margin-top: 18px;
    font-size: 0.94rem;
    line-height: 1.8;
  }

  .hero__title .line {
    white-space: normal;
  }

  .hero__title-line span {
    display: block;
  }

  .hero__cta,
  .final-cta__buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-height: 54px;
    padding: 14px 20px;
  }

  .problem-card,
  .reason-card,
  .trouble-card,
  .case-card,
  .before-after-card,
  .estimate-card,
  .definition,
  .price-note,
  .flow-item,
  .flow-item div,
  .faq-item {
    min-width: 0;
  }

  .proof__grid,
  .problem-grid,
  .reason-grid,
  .trouble-grid,
  .case-grid,
  .before-after-grid,
  .estimate-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .estimate-card__photo {
    aspect-ratio: 4 / 3;
    min-height: 210px;
    height: auto;
  }

  .proof__grid {
    gap: 0;
    padding: 8px 0;
  }

  .proof__grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    padding: 16px 0;
  }

  .proof__grid div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section-title,
  .section-title--left {
    max-width: 100%;
    font-size: clamp(1.34rem, 6.2vw, 1.68rem);
    line-height: 1.45;
    text-align: center;
  }

  .section-title__desktop {
    display: none;
  }

  .section-title__mobile {
    display: block;
  }

  .section-subtitle {
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.9;
    margin-bottom: 30px;
  }

  .tag,
  .eyebrow {
    max-width: 100%;
  }

  .problem-card,
  .reason-card,
  .definition,
  .price-note,
  .flow-item div {
    padding: 20px;
  }

  .problem-card p,
  .reason-card p,
  .case-card p,
  .definition p,
  .flow-item p,
  .faq-a,
  .hero__lead,
  .hero__note,
  .section-subtitle {
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
  }

  .compare-table,
  .price-table {
    min-width: 680px;
    font-size: 0.86rem;
  }

  .flow-item {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }

  .flow-item > span {
    width: 40px;
    height: 40px;
  }

  .flow-item:not(:last-child)::after {
    left: 19px;
    top: 46px;
  }

  .faq-q {
    gap: 10px;
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .faq-a {
    padding-left: 40px;
    font-size: 0.94rem;
    line-height: 1.85;
  }

  .final-cta {
    padding: 58px 0;
  }

  .site-footer {
    padding-bottom: 92px;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(7, 24, 39, 0.16);
    backdrop-filter: blur(14px);
  }

  .mobile-sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    font-size: 0.88rem;
  }

  .mobile-sticky-cta__tel {
    background: linear-gradient(135deg, var(--phone-blue), var(--phone-blue-dark));
  }

  .mobile-sticky-cta__line {
    background: var(--line-green);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .flow-item:not(:last-child)::after {
    transform: scaleY(1);
  }
}

