/* ================================================================
 * Base / Reset / Typography
 * ============================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* ページ遷移演出：トップ簡易フォーム→料金シミュレーションへ送信する直前にフェードアウト */
html.is-leaving body {
  opacity: 0;
  transition: opacity .22s ease-out;
  pointer-events: none;
}

body {
  margin: 0;
  font-family: var(--font-jp-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: opacity var(--dur-fast) var(--ease); }
a:hover { opacity: .75; }

button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-jp-heading); font-weight: var(--fw-black); line-height: var(--lh-tight); }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

input, select, textarea {
  font: inherit;
  color: inherit;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31, 166, 193, .15);
}

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 24px;
}

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

/* モバイル/PCの出し分け */
.pc-only { display: block; }
.sp-only { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}

/* Section common */
.section { padding-block: var(--sp-100); position: relative; }
.section--light { background: var(--color-tint-lightest); }
.section--teal  { background: var(--color-primary); color: var(--color-white); }
.section--yellow{ background: var(--color-accent-yellow); }

.section-title {
  text-align: center;
  font-family: var(--font-jp-heading);
  font-weight: var(--fw-black);
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-48);
}
.section-title--on-dark { color: var(--color-white); }

@media (max-width: 768px) {
  .section { padding-block: var(--sp-60); }
  .section-title { margin-bottom: var(--sp-32); }
}
