@font-face {
  font-family: "Zen Maru Gothic";
  src: url("../fonts/ZenMaruGothic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("../fonts/ZenMaruGothic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* おみせデザイン — 共通スタイル */
:root {
  --paper: #F7F3EC;
  --green: #2E5E4E;
  --sand: #DCCDB7;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-space: clamp(3.5rem, 7vw, 7rem);
  --radius: 1.25rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  color: var(--green);
  background: var(--paper);
  font: 500 1rem/1.85 "Zen Maru Gothic", sans-serif;
}
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.nw { white-space: nowrap; }
.center { text-align: center; margin-top: 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.36; line-break: strict; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4.75rem); letter-spacing: -.035em; }
h2 { margin-bottom: 1.5rem; font-size: clamp(1.75rem, 3.6vw, 3.25rem); letter-spacing: -.025em; }
h3 { margin-bottom: .55rem; font-size: clamp(1.125rem, 1.8vw, 1.4rem); }
.note { font-size: .875rem; }
section { padding-block: var(--section-space); scroll-margin-top: 5rem; }
main > section:nth-of-type(even) { background: var(--sand); }
section + section { border-top: 1px solid var(--sand); }
.page-title {
  position: relative;
  width: auto;
  padding: clamp(3.5rem, 8vw, 7.5rem) max(var(--gutter), calc((100% - 72rem) / 2));
  background: var(--green);
  color: var(--paper);
}
.page-title p { max-width: 46rem; margin: 1rem 0 0; }
.page-title h1::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: .25rem;
  margin-bottom: 1.25rem;
  background: var(--sand);
}

/* ナビゲーション */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
}
.site-header > .wrap {
  min-height: 4.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 1.25rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  border: 1px solid var(--green);
  border-radius: .75rem;
  background: var(--paper);
  color: var(--green);
  cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block;
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}
.bars::before, .bars::after { content: ""; position: absolute; }
.bars::before { transform: translateY(-6px); }
.bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: rotate(-45deg); }
.site-nav { display: none; border-top: 1px solid var(--sand); }
.site-nav.is-open { display: block; max-height: calc(100dvh - 10rem); overflow-y: auto; }
.site-nav ul { margin: 0; padding: .5rem 0 1rem; list-style: none; }
.site-nav a {
  display: block;
  padding: .75rem;
  border-radius: .5rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--sand); }

/* トップのメインビジュアル */
.hero { padding-block: clamp(2.75rem, 6vw, 6rem); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .for {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .25rem .75rem;
  border-radius: .375rem;
  background: var(--sand);
  font-size: .875rem;
  font-weight: 700;
}
.hero h1 { margin-bottom: 1.25rem; font-size: clamp(1.8rem, 9.2vw, 3.5rem); }
.hero h1 .nw { display: block; }
.hero p:not(.note) { font-size: clamp(1.05rem, 2vw, 1.375rem); }
.hero-note { margin: 1rem 0 0; padding-left: .85rem; border-left: 3px solid var(--sand); }
.hero .phone {
  position: relative;
  width: 100%;
  padding: 1.5rem 1rem 1.25rem;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
}
.hero .phone::before, .hero .phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 110%;
  aspect-ratio: 1;
  border: 1px solid var(--sand);
  border-radius: 50%;
  pointer-events: none;
}
.hero .phone::before { top: -45%; right: -50%; }
.hero .phone::after { bottom: -70%; left: -45%; }
.hero .phone-frame { width: clamp(8.25rem, 16vw, 13rem); margin-inline: auto; border-color: var(--paper); }
.hero .phone-screen { background: var(--sand); color: var(--green); }

/* カードと比較図 */
.items, .compare, .promises, .worries { display: grid; gap: 1rem; }
.box, .compare-col, .worries li, .promises li, .important {
  padding: clamp(1.125rem, 3vw, 2rem);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--paper);
}
main > section:nth-of-type(even) :is(.box, .compare-col, .worries li, .promises li, .important) {
  border-color: var(--green);
}
.box p:last-child, .compare-col p:last-child, .important li:last-child { margin-bottom: 0; }
.box ul, .important ul { margin: .5rem 0 0; padding-left: 1.25em; }
.box li + li, .important li + li { margin-top: .4em; }
.worries, .promises { padding: 0; margin: 0 0 1.5rem; list-style: none; }
.worries li { display: grid; grid-template-columns: .7rem 1fr; gap: .75rem; align-items: baseline; }
.worries li::before { content: ""; width: .65rem; height: .65rem; border: 2px solid; border-radius: 50%; }
.compare { margin-bottom: 1rem; }
.compare-col h3 { padding-bottom: .65rem; border-bottom: 1px solid var(--sand); }
.compare-col.next { background: var(--green); color: var(--paper); }
.compare-col p + p { padding-top: .65rem; border-top: 1px solid var(--sand); }
.promises strong { display: block; margin-bottom: .25rem; }
.important { border-left: 4px solid var(--green); }

/* 差し替え用の端末フレーム */
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-block: 1.5rem; }
.phone { width: min(14rem, 100%); margin: 0; text-align: center; }
.phone-frame {
  position: relative;
  aspect-ratio: 9 / 19.5;
  padding: .375rem;
  border: 1px solid var(--green);
  border-radius: 1.75rem;
  background: var(--green);
}
.phone-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: .75rem;
  translate: -50%;
  width: 26%;
  height: .3rem;
  border-radius: 1rem;
  background: var(--green);
}
.phone-screen {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 1.375rem;
  background: var(--sand);
  color: var(--green);
  font-size: .875rem;
}
.phone-screen img { width: 100%; height: 100%; object-fit: contain; }
.phone figcaption { margin-top: .85rem; font-size: .875rem; line-height: 1.6; }

/* 実績・料金・進め方 */
.result {
  padding: clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--paper);
}
.result h2 { font-size: clamp(1.25rem, 2.8vw, 2.25rem); }
.result-numbers { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.result-numbers div { display: grid; padding-right: .75rem; }
.result-numbers div + div { border-left: 1px solid var(--sand); padding-left: clamp(.75rem, 4vw, 3rem); }
.result .label { color: var(--sand); }
.result .num { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; line-height: 1.15; }
.result .num small { margin-left: .25em; font-size: 1rem; }
.result p:last-child { margin-bottom: 0; }
.price-table {
  width: 100%;
  table-layout: fixed;
  border: 1px solid var(--green);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.price-table th, .price-table td { padding: clamp(.625rem, 2vw, 1.25rem) .25rem; text-align: center; }
.price-table thead th { background: var(--green); color: var(--paper); }
.price-table thead th:first-child { width: 37%; }
.price-table tbody tr + tr > * { border-top: 1px solid var(--green); }
.price-table tbody td { font-size: clamp(.9375rem, 2.6vw, 2rem); font-weight: 700; white-space: nowrap; }
.price-table tbody th { font-size: clamp(.8125rem, 2.2vw, 1.125rem); }
.price-table .monitor { background: var(--sand); }
.price-table .tag {
  display: inline-block;
  margin-top: .3rem;
  padding: .15rem .375rem;
  border-radius: .375rem;
  background: var(--green);
  color: var(--paper);
  font-size: clamp(.6875rem, 2.2vw, .875rem);
}
.steps { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; counter-reset: flow; }
.steps li {
  position: relative;
  counter-increment: flow;
  padding: 1rem 1rem 1rem 3.75rem;
  border: 1px solid var(--green);
  border-radius: .875rem;
  background: var(--paper);
}
.steps li::before {
  content: counter(flow);
  position: absolute;
  top: 1rem;
  left: .875rem;
  display: grid;
  place-items: center;
  width: 2.125rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-weight: 700;
}
.steps li + li::after {
  content: "";
  position: absolute;
  top: -1.0625rem;
  left: 1.9375rem;
  width: 1px;
  height: 1.0625rem;
  background: var(--green);
}
.steps p { margin: 0; }

/* 質問・相談 */
.faq { display: grid; max-width: 56rem; gap: .75rem; }
.faq-item { border: 1px solid var(--sand); border-radius: .75rem; }
.faq-q {
  width: 100%;
  min-height: 3.5rem;
  padding: 1rem 3rem 1rem 1rem;
  position: relative;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.faq-q:hover, .faq-q[aria-expanded="true"] { background: var(--sand); border-radius: .6875rem; }
.faq-q::after {
  content: "";
  position: absolute;
  inset: 50% 1.25rem auto auto;
  width: .625rem;
  height: .625rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-70%) rotate(45deg);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(225deg); }
.faq-a { padding: 1rem; }
.faq-a p { margin: 0; }
.btn {
  display: inline-grid;
  place-items: center;
  width: min(100%, 21rem);
  min-height: 3.25rem;
  padding: .625rem 1rem;
  border: 1px solid var(--green);
  border-radius: .625rem;
  background: var(--green);
  color: var(--paper);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--sand); color: var(--green); }
.btn:focus-visible { outline-color: var(--green); }
.cta-block { padding: clamp(1.5rem, 5vw, 4rem); border-radius: var(--radius); background: var(--green); color: var(--paper); text-align: center; }
.cta-block .btn { background: var(--paper); color: var(--green); }
.cta-block .btn:hover { background: var(--sand); }
.cta-block .btn:focus-visible { outline-color: var(--paper); }
.line-id { display: inline-block; margin-bottom: 1.25rem; padding: .35rem 1rem; border: 1px solid var(--sand); border-radius: .5rem; font-size: 1.375rem; font-weight: 700; }
.float-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  justify-items: center;
  padding: .625rem var(--gutter) calc(.625rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sand);
  background: var(--paper);
}
.float-cta .btn { width: 100%; }
.site-footer { padding-block: 2rem; border-top: 1px solid var(--sand); font-size: .875rem; }
.site-footer p { margin: 0 0 .375rem; }
.site-footer .name { font-size: 1.15rem; font-weight: 700; }
.site-footer .btn { margin-block: .75rem; }

@media (min-width: 45rem) {
  .items.two, .worries, .promises, .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: 4.25rem 1.25rem 1.5rem; }
  .steps li::before { left: 1.25rem; }
  .steps li + li::after { top: 2.0625rem; left: -1.0625rem; width: 1.0625rem; height: 1px; }
}
@media (min-width: 58rem) {
  body { padding-bottom: 0; }
  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-inline: max(var(--gutter), calc((100% - 72rem) / 2));
  }
  .site-header .wrap { width: auto; margin: 0; }
  .site-header > .wrap { min-height: 5rem; }
  .menu-toggle { display: none; }
  .float-cta { position: static; justify-items: start; padding: 0 max(var(--gutter), calc((100% - 72rem) / 2)) 2rem; border: 0; }
  .site-nav, .site-nav.is-open { display: block; border: 0; overflow: visible; }
  .site-nav ul { display: flex; align-items: center; gap: .15rem; padding: 0; }
  .site-nav a { padding: .5rem .625rem; font-size: .875rem; white-space: nowrap; }
  .site-nav li:last-child a { border: 1px solid var(--green); margin-left: .5rem; }
  .float-cta .btn { width: min(100%, 21rem); }
  .hero h1 { font-size: clamp(2.25rem, 3.8vw, 4rem); }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
  .hero .phone { padding: 2.5rem 1.25rem 1.5rem; }
  .hero .phone-frame { width: clamp(10rem, 15vw, 13rem); }
  .faq-q, .faq-a { padding-left: 1.5rem; }
}
