:root {
  color-scheme: light;
  --ai: #1b3a5c;
  --midori: #2f5d50;
  --sora: #4e8fc0;
  --shiro: #ffffff;
  --kinari: #f7f4ee;
  --ki: #8b6b4a;
  --sumi: #22262b;
  --usukei: #e3ded4;
  --line: #06c755;
  --mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Meiryo", sans-serif;
  --shadow: 0 16px 45px rgba(27, 58, 92, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 0;
  padding-bottom: calc(62px + env(safe-area-inset-bottom));
  background: var(--shiro);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

body.menu-open {
  position: fixed;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--sora);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--mincho);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

/* 改行で1〜2文字だけが次の行に取り残されるのを防ぐ（NANAMI Designの制作ルール）。
   対象は短い段落・リード文・キャプション。長い本文はブラウザ側の行数上限により
   自動的に適用外になるため、代表あいさつ等のレイアウトには影響しない。 */
p,
li,
figcaption,
.hero__label {
  text-wrap: balance;
}

/* 途中で改行させたくない語句を囲む。自動の行バランス調整は語の意味を見ないため、
   「ご縁」のように割れると意味が伝わりにくい語だけ、ここで分割を禁止する。 */
.nobreak {
  white-space: nowrap;
}

h1 {
  font-size: clamp(2rem, 8vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 4vw, 1.48rem);
}

svg {
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--shiro);
  color: var(--ai);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section--kinari {
  background-color: var(--kinari);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(139, 107, 74, 0.035) 0 1px, transparent 1px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.38), transparent 45%);
  background-size: 19px 19px, auto;
}

.section--work {
  color: var(--ai);
}

.section--people {
  color: var(--midori);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head__eyebrow {
  margin-bottom: 0.5rem;
  color: var(--ki);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-head h2 {
  position: relative;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
}

.section-head h2::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 72px;
  height: 3px;
  background: var(--ki);
  content: "";
  transform: translateX(-50%);
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--sumi);
}

.page-hero {
  padding: 62px 0 56px;
  background: var(--kinari);
  border-bottom: 1px solid var(--usukei);
}

.page-hero__inner {
  max-width: 850px;
}

.page-hero__kicker {
  margin-bottom: 0.65rem;
  color: var(--ki);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-hero h1 {
  margin-bottom: 1rem;
  color: var(--ai);
}

.page-hero p:last-child {
  margin-bottom: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(227, 222, 212, 0.9);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 5px 20px rgba(27, 58, 92, 0.05);
}

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

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  color: var(--ai);
  font-family: var(--mincho);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.brand img {
  width: 68px;
  height: 47px;
  object-fit: cover;
  object-position: center;
}

.menu-toggle {
  display: inline-grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--usukei);
  border-radius: 50%;
  background: var(--shiro);
  color: var(--ai);
}

.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle__lines {
  position: relative;
}

.menu-toggle__lines::before {
  position: absolute;
  top: -7px;
}

.menu-toggle__lines::after {
  position: absolute;
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  width: 100%;
}

html:not(.js) .site-header__inner {
  flex-wrap: wrap;
}

html:not(.js) .menu-toggle {
  display: none;
}

html:not(.js) .site-nav {
  padding-bottom: 0.75rem;
  border-top: 1px solid var(--usukei);
}

.js .site-nav {
  position: fixed;
  inset: 76px 0 auto;
  z-index: 950;
  padding: 20px 16px 28px;
  border-bottom: 4px solid var(--ki);
  background: var(--shiro);
  box-shadow: 0 18px 40px rgba(27, 58, 92, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.js .site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.site-nav ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--ai);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--kinari);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 var(--ki);
}

.hero {
  position: relative;
  background: var(--kinari);
}

.hero__inner {
  display: grid;
  min-height: calc(100svh - 76px);
  align-items: center;
  gap: 34px;
  padding-block: 52px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__crest {
  width: min(225px, 54vw);
  margin-bottom: 1.35rem;
}

.hero__label {
  display: inline-flex;
  margin-bottom: 1rem;
  align-items: center;
  /* gapは使わない。テキストを折り返し禁止のspanで分けているため、
     gapだと語と語の間にも隙間が入ってしまう（「八街市から、」と
     「ご縁をつなぐ〜」の間が不自然に空く）。間隔は線側のmarginで作る。 */
  color: var(--midori);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero__label::before {
  width: 36px;
  height: 2px;
  margin-right: 0.55rem;
  background: var(--ki);
  content: "";
}

/* 画面が狭いときの逃がし方（日本語の語を途中で割らないための調整）。
   飾り線は装飾なので、言葉が割れたり画面からはみ出したりするより優先度が低い。
   線を消して文字幅を確保し、それでも足りないぶんは文字を少しだけ詰める。 */
@media (max-width: 400px) {
  .hero__label::before {
    display: none;
  }

  .hero__label {
    /* 線を消したら通常のテキストの流れに戻す。inline-flexのままだと
       「八街市から、」と「ご縁をつなぐ清掃サービス」が別ブロック扱いになり、
       それぞれが勝手に折り返して語が割れてしまうため。 */
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }
}

.hero h1 {
  margin-bottom: 1.2rem;
  color: var(--ai);
}

.hero__sub {
  margin-bottom: 0.65rem;
  color: var(--midori);
  font-family: var(--mincho);
  font-size: clamp(1.12rem, 4vw, 1.5rem);
  font-weight: 600;
}

.hero__area {
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero__visual::before {
  position: absolute;
  inset: -12px 12px 12px -12px;
  border: 1px solid var(--ki);
  content: "";
}

.hero__visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  margin: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sumi);
  font-size: 0.75rem;
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-row .button {
  width: 100%;
}

.button {
  display: inline-flex;
  min-height: 52px;
  min-width: min(100%, 210px);
  padding: 0.75rem 1.45rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 2px solid var(--ai);
  border-radius: 999px;
  background: var(--ai);
  color: var(--shiro);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(27, 58, 92, 0.2);
}

.button--line {
  border-color: var(--line);
  background: var(--line);
}

.button--phone,
.button--light {
  background: var(--shiro);
  color: var(--ai);
}

.button--small {
  min-height: 46px;
  min-width: 170px;
  padding-inline: 1.1rem;
  font-size: 0.92rem;
}

.trust-strip {
  padding: 28px 0;
  background: var(--ai);
  color: var(--shiro);
}

.trust-strip__grid {
  display: grid;
  gap: 18px;
}

.trust-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: left;
}

.trust-item svg {
  width: 31px;
  height: 31px;
}

.trust-item span {
  line-height: 1.45;
}

.trust-item strong {
  display: block;
  font-family: var(--mincho);
  font-size: 1.08rem;
}

.card-grid,
.problem-grid,
.promise-grid,
.flow-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.problem-card,
.service-card,
.promise-card,
.flow-card,
.price-card,
.faq details,
.gallery-card {
  min-width: 0;
  border: 1px solid var(--usukei);
  background: var(--shiro);
}

.problem-card {
  display: grid;
  min-height: 170px;
  padding: 1.45rem;
  place-items: center;
  color: var(--ai);
  text-align: center;
}

.problem-card svg,
.service-card__icon svg,
.promise-card svg,
.flow-card svg {
  width: 38px;
  height: 38px;
  color: var(--sora);
}

.problem-card p {
  margin: 0.75rem 0 0;
  color: var(--sumi);
  font-weight: 700;
}

.service-card {
  display: flex;
  min-height: 100%;
  padding: 1.5rem;
  flex-direction: column;
  border-top: 3px solid var(--ai);
  box-shadow: 0 8px 26px rgba(27, 58, 92, 0.06);
}

.service-card--primary {
  border-top-color: var(--ki);
  background: linear-gradient(145deg, var(--shiro), var(--kinari));
}

.service-card__icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--kinari);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  color: var(--ai);
}

.service-card p:last-child {
  margin-bottom: 0;
}

.service-card__tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.7rem;
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--ki);
  border-radius: 999px;
  color: var(--ki);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-actions {
  margin-top: 34px;
  text-align: center;
}

.promises {
  background: var(--midori);
  color: var(--shiro);
}

.promises .section-head__eyebrow,
.promises .section-head p:last-child {
  color: var(--shiro);
}

.promises .section-head h2::after {
  background: var(--ki);
}

.promise-card {
  display: grid;
  padding: 1.45rem;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--shiro);
}

.promise-card svg {
  color: var(--shiro);
}

.promise-card h3 {
  margin-bottom: 0.35rem;
}

.promise-card p {
  margin-bottom: 0;
}

.greeting {
  display: grid;
  gap: 30px;
  align-items: start;
}

.portrait-placeholder {
  display: grid;
  min-height: 380px;
  padding: 2rem;
  place-items: center;
  border: 1px solid var(--usukei);
  background: var(--kinari);
  color: var(--midori);
  text-align: center;
}

.portrait-placeholder svg {
  width: 74px;
  height: 74px;
  margin-bottom: 1rem;
}

.portrait-placeholder p {
  margin-bottom: 0;
  color: var(--sumi);
  font-size: 0.9rem;
}

.greeting__body {
  min-width: 0;
}

.greeting__body h2 {
  margin-bottom: 1.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 3px solid var(--ki);
  color: var(--midori);
}

.greeting__body p {
  margin-bottom: 1rem;
}

.greeting__signature {
  margin-top: 1.6rem;
  color: var(--midori);
  font-family: var(--mincho);
  font-size: 1.1rem;
  text-align: right;
}

.service-detail-list {
  display: grid;
  gap: 20px;
}

.service-detail {
  display: grid;
  min-width: 0;
  padding: 1.5rem;
  gap: 1rem;
  border: 1px solid var(--usukei);
  border-left: 4px solid var(--ai);
  background: var(--shiro);
}

.service-detail--primary {
  border-left-color: var(--ki);
  box-shadow: var(--shadow);
}

.service-detail__title h2,
.service-detail__title h3 {
  margin-bottom: 0.5rem;
  color: var(--ai);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
}

.service-detail__title p {
  margin-bottom: 0;
}

.service-detail__notes {
  display: grid;
  gap: 0.8rem;
}

.service-detail__note {
  padding: 1rem;
  border: 1px solid var(--usukei);
  background: var(--kinari);
}

.service-detail__note strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ai);
}

.price-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.price-card {
  display: flex;
  min-width: 0;
  padding: 1.15rem 1.25rem;
  flex-direction: column;
  gap: 0.65rem;
  border-left: 4px solid var(--ai);
}

.price-card--main {
  border-left-color: var(--ki);
  background: var(--kinari);
}

.price-card h3 {
  margin: 0;
  color: var(--ai);
  font-family: var(--gothic);
  font-size: 1rem;
  line-height: 1.65;
}

.price-card__amount {
  margin: 0;
  color: var(--ai);
  font-family: var(--mincho);
  font-size: 1.35rem;
  font-weight: 700;
  white-space: normal;
}

.price-note {
  max-width: 860px;
  margin: 22px auto 0;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--usukei);
  background: var(--shiro);
}

.price-note p:last-child {
  margin-bottom: 0;
}

.flow-card {
  position: relative;
  padding: 1.55rem;
}

.flow-card__number {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ai);
  color: var(--shiro);
  font-family: var(--mincho);
  font-weight: 700;
}

.flow-card h3 {
  color: var(--ai);
}

.flow-card p:last-child {
  margin-bottom: 0;
}

.area-box {
  padding: 1.5rem;
  border: 1px solid var(--usukei);
  background: var(--shiro);
  box-shadow: var(--shadow);
}

.area-list {
  display: flex;
  margin: 0 0 1.25rem;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
}

.area-list li {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--usukei);
  border-radius: 999px;
  background: var(--kinari);
  color: var(--ai);
  font-weight: 700;
}

.area-box p:last-child {
  margin-bottom: 0;
}

.faq {
  display: grid;
  max-width: 880px;
  margin-inline: auto;
  gap: 12px;
}

.faq details {
  padding: 0;
}

.faq summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.2rem;
  color: var(--ai);
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 1.2rem;
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  transform: translateY(-50%);
}

.faq details[open] summary::after {
  content: "−";
}

.faq__answer {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid var(--usukei);
}

.faq__answer p {
  margin: 1rem 0 0;
}

.generated-disclaimer {
  margin-bottom: 22px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--ki);
  background: var(--kinari);
  color: var(--sumi);
  font-size: 0.92rem;
}

.ba-case {
  padding: 1.35rem;
  border: 1px solid var(--usukei);
  background: var(--shiro);
  box-shadow: var(--shadow);
}

.ba-case h2,
.ba-case h3 {
  margin-bottom: 0.75rem;
  color: var(--ai);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.ba-grid {
  display: grid;
  gap: 16px;
}

.ba-image {
  min-width: 0;
  margin: 0;
}

.ba-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.ba-image figcaption,
.gallery-card figcaption {
  padding: 0.7rem 0.85rem;
  border-top: 3px solid var(--ki);
  color: var(--ai);
  font-weight: 700;
  text-align: center;
}

.gallery-card {
  margin: 0;
}

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

/* 縦向きに撮影された写真用。横長の枠に収めると上下が切れるため、
   見せたいもの（床の仕上がり・養生したタオル）が写る下寄りを表示する。 */
.gallery-card--portrait img {
  object-position: center 68%;
}

.empty-state {
  padding: 1.5rem;
  border: 1px solid var(--usukei);
  background: var(--kinari);
  text-align: center;
}

.empty-state p:last-child {
  margin-bottom: 0;
}

.contact-section {
  background: var(--kinari);
}

.contact-panel {
  max-width: 900px;
  margin-inline: auto;
}

.contact-choice {
  margin-bottom: 30px;
  padding: 1.4rem;
  border: 1px solid var(--usukei);
  background: var(--shiro);
  text-align: center;
}

.contact-choice h3 {
  color: var(--midori);
}

.contact-choice p {
  max-width: 650px;
  margin-inline: auto;
}

.contact-choice p:last-child {
  margin-bottom: 0;
}

.contact-form-wrap {
  padding: 1.4rem;
  border: 1px solid var(--usukei);
  background: var(--shiro);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  margin-bottom: 1.2rem;
  color: var(--ai);
  text-align: center;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field {
  min-width: 0;
}

.form-field label,
.form-field legend {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ai);
  font-weight: 700;
}

.required {
  margin-left: 0.35rem;
  color: #a12626;
  font-size: 0.78rem;
}

.optional {
  margin-left: 0.35rem;
  color: #58616b;
  font-size: 0.78rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 0.72rem 0.85rem;
  border: 1px solid #8c949d;
  border-radius: 6px;
  background: var(--shiro);
  color: var(--sumi);
  font-size: 16px;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-consent {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.65rem;
}

.form-consent input {
  width: 20px;
  height: 20px;
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

.form-consent label {
  min-width: 0;
}

.form-submit {
  margin-top: 1.3rem;
  text-align: center;
}

.form-submit .button {
  width: min(100%, 360px);
}

.form-submit .button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.form-status {
  min-height: 1.8em;
  margin: 1rem 0 0;
  color: #9b2020;
  font-weight: 700;
  text-align: center;
}

.contact-fallback {
  margin: 1.3rem 0 0;
  text-align: center;
}

.contact-phone {
  margin-top: 24px;
  text-align: center;
}

.contact-phone p {
  max-width: 650px;
  margin-inline: auto;
}

.contact-phone__number {
  margin-bottom: 0.7rem;
  color: var(--ai);
  font-family: var(--mincho);
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  text-decoration: none;
}

.completion {
  max-width: 760px;
  margin-inline: auto;
  padding: 2rem 1.25rem;
  border: 1px solid var(--usukei);
  background: var(--shiro);
  box-shadow: var(--shadow);
  text-align: center;
}

.completion__icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 1.4rem;
  place-items: center;
  border: 2px solid var(--ai);
  border-radius: 50%;
  color: var(--ai);
}

.completion__icon svg {
  width: 48px;
  height: 48px;
}

.completion h1 {
  color: var(--ai);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
}

.completion__notice {
  margin: 1.5rem 0;
  padding: 1.2rem;
  border: 1px solid var(--usukei);
  background: var(--kinari);
  text-align: left;
}

.completion__notice p:last-child {
  margin-bottom: 0;
}

.policy {
  max-width: 860px;
  margin-inline: auto;
}

.policy section {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--usukei);
}

.policy h2 {
  color: var(--ai);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
}

.policy p:last-child,
.policy ul:last-child {
  margin-bottom: 0;
}

.policy a,
.site-footer a {
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 4px solid var(--ki);
  background: var(--ai);
  color: var(--shiro);
}

.site-footer__inner {
  display: grid;
  padding-block: 46px 32px;
  gap: 30px;
}

.site-footer__brand {
  font-family: var(--mincho);
  font-size: 1.35rem;
  font-weight: 700;
}

.site-footer__block h2 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.site-footer__block p {
  margin-bottom: 0.35rem;
}

.site-footer__nav {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  list-style: none;
}

.copyright {
  margin: 0;
  padding: 1rem 16px calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  text-align: center;
}

.mobile-contact-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 800;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--shiro);
  box-shadow: 0 -6px 22px rgba(27, 58, 92, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-contact-bar.is-visible {
  transform: translateY(0);
}

.mobile-contact-bar a {
  display: flex;
  min-width: 0;
  min-height: 62px;
  padding: 0.45rem 0.2rem;
  align-items: center;
  justify-content: center;
  color: var(--ai);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.mobile-contact-bar a + a {
  border-left: 1px solid var(--usukei);
}

.mobile-contact-bar .mobile-contact-bar__line {
  background: var(--line);
  color: var(--shiro);
}

.mobile-contact-bar .mobile-contact-bar__form {
  background: var(--ai);
  color: var(--shiro);
}

.js .fade {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .container {
    width: min(100% - 64px, 1120px);
  }

  .button-row .button {
    width: auto;
  }

  .section {
    padding: 96px 0;
  }

  .site-header__inner {
    min-height: 86px;
  }

  .brand {
    font-size: 1.12rem;
  }

  .brand img {
    width: 82px;
    height: 56px;
  }

  .menu-toggle {
    display: none;
  }

  .js .site-nav,
  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.75rem 0.8rem;
    font-size: 0.9rem;
  }

  .site-nav a[aria-current="page"] {
    box-shadow: inset 0 -3px var(--ki);
  }

  .hero__inner {
    min-height: 650px;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 54px;
    padding-block: 72px;
  }

  .hero__crest {
    width: 225px;
  }

  .trust-strip__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trust-item + .trust-item {
    border-left: 1px solid rgba(255, 255, 255, 0.28);
  }

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

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

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

  .promise-card:last-child {
    grid-column: 1 / -1;
  }

  .greeting {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 52px;
  }

  .service-detail {
    padding: 2rem;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
  }

  .price-card {
    padding: 1.2rem 1.5rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .price-card__amount {
    flex: 0 0 auto;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-choice,
  .contact-form-wrap {
    padding: 2rem;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }

  .form-field--full {
    grid-column: 1 / -1;
  }

  .completion {
    padding: 3.25rem;
  }

  .site-footer__inner {
    grid-template-columns: 1.35fr 1fr 0.8fr;
  }

  .mobile-contact-bar {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-nav a {
    padding-inline: 1.15rem;
    font-size: 0.96rem;
  }

  .hero__inner {
    min-height: 700px;
    gap: 72px;
  }

  .problem-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card--primary {
    grid-column: span 1;
    min-height: 310px;
  }

  .promise-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .promise-card,
  .promise-card:last-child {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-detail {
    padding: 2.25rem 2.5rem;
  }
}

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

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

  .js .fade {
    opacity: 1;
    transform: none;
  }
}
