/*
  さつきシステム ホームページ専用スタイルシート
  参考デザインシステム: Refero Styles「Billow」
  https://refero.design/styles/377c8f42-1b22-42e3-afb5-dbdb57e8a37d
  （Stripe ベースの base.css に依存せず、Billow のトークンと構成で一貫して設計）
*/

:root {
  /* 色（Billow ベース × さつきシステム ロゴ紺 #0c1725） */
  --bg-canvas: #fcfdff;
  --bg-surface: #ffffff;
  --bg-tint: #f3f9fe;
  --bg-ice: #dbf3ff;
  --bg-sky: #e8f7ff;
  --bg-topbar: #eef7ff;

  --ink-navy: #0c1725;
  --ink-strong: #33506a;
  --ink-body: #446278;
  --ink-muted: #557085;

  --blue-action: #007bff;
  --blue-num: #1a55e0;
  --blue-badge: #0b4a8f;
  --blue-pill-top: #2a7dfb;
  --blue-pill-bottom: #1a2fe6;
  --cyan-glow: #00d8ed;

  --border-hairline: #e8ebee;
  --border-frame: #d5dee6;
  --border-sky: #bfe0f7;
  --border-doc: #b9c2cf;

  /* 書体 */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-num: "Inter", "Noto Sans JP", sans-serif;

  /* 余白・幅 */
  --width-frame: 1280px;
  --side: 24px;
  --section-y: 80px;

  /* 角丸・影（Billow 仕様） */
  --radius-card: 16px;
  --radius-stage: 22px;
  --radius-inner: 15px;
  --radius-pill: 9999px;

  --shadow-paper:
    rgba(1, 27, 46, 0.16) 0 0.5px 0.35px -1.75px,
    rgba(1, 27, 46, 0.07) 0 4px 2.8px -3.5px;
  --shadow-pill:
    rgba(0, 64, 255, 0.22) 0 0.7px 2.7px -1.2px,
    rgba(0, 64, 255, 0.19) 0 2.7px 10.4px -2.3px,
    rgba(0, 64, 255, 0.10) 0 12px 45.6px -3.5px;
  --shadow-glass:
    rgba(1, 27, 46, 0.05) 0 0.6px 1.7px -0.5px,
    rgba(1, 27, 46, 0.05) 0 1.7px 5.1px -1px,
    rgba(1, 27, 46, 0.06) 0 4.5px 13.4px -1.5px,
    rgba(1, 27, 46, 0.07) 0 14px 42px -2px;
}

/* ---------- リセット・基本 ---------- */

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

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

body.home {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

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

a {
  color: var(--blue-num);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--blue-num);
  outline-offset: 2px;
}

.nowrap {
  display: inline-block;
  white-space: nowrap;
}

.frame {
  width: 100%;
  max-width: var(--width-frame);
  margin: 0 auto;
  padding-inline: var(--side);
}

main section[id] {
  scroll-margin-top: 84px;
}

/* ---------- 共通ボタン・見出し ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px 12px 28px;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, var(--blue-pill-top) 0%, var(--blue-pill-bottom) 100%);
  color: #fcfdff;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--shadow-pill);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.pill:hover {
  filter: brightness(1.07);
}

.pill:active {
  transform: translateY(1px);
}

.pill svg {
  flex: none;
}

.pill--sm {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
}

.reassure {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.reassure a {
  color: var(--blue-num);
  font-weight: 500;
  margin-left: 10px;
  white-space: nowrap;
}

.sec-title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink-navy);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.sec-lead {
  margin: 14px auto 0;
  max-width: 740px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-body);
  text-align: left;
}

@media (min-width: 900px) {
  .sec-lead {
    text-align: center;
  }
}

.section {
  padding-block: var(--section-y);
}

/* ---------- ヘッダー（#header） ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(252, 253, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.header__inner {
  max-width: var(--width-frame);
  margin: 0 auto;
  padding: 12px var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}

.header__logo img {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand {
  display: block;
}

.brand b {
  display: block;
  color: var(--ink-navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.brand small {
  display: none;
  color: var(--ink-body);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

@media (min-width: 1460px) {
  .brand small {
    display: block;
  }
}

.nav {
  display: none;
  align-items: center;
  gap: 20px;
  flex: none;
}

@media (min-width: 1200px) {
  .nav {
    display: flex;
  }
}

.nav a {
  color: var(--ink-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--ink-navy);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.telbox {
  display: block;
  text-decoration: none;
  text-align: right;
  line-height: 1.25;
}

.telbox small {
  display: block;
  color: var(--ink-body);
  font-size: 12px;
  white-space: nowrap;
}

.telbox b {
  display: block;
  color: var(--ink-navy);
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(336deg, #0c1725 5%, #1a2fe6 278%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25);
  transition: filter 0.15s ease;
}

.nav-cta:hover {
  filter: brightness(1.12);
}

@media (max-width: 767px) {
  .header__inner {
    padding: 10px var(--side);
    min-height: 58px;
    gap: 10px;
  }
  .header__logo img {
    width: 28px;
    height: 28px;
  }
  .brand b {
    font-size: 16px;
  }
  .telbox small {
    display: none;
  }
  .telbox b {
    font-size: 16px;
  }
  .nav-cta {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }
  .header__actions {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .telbox {
    display: none;
  }
}

/* ---------- 冒頭（#hero） ---------- */

.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 52px 0 40px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: min(1400px, 120vw);
  height: 400px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 60% at 22% 60%, rgba(0, 216, 237, 0.28), transparent 72%),
    radial-gradient(ellipse 34% 66% at 50% 50%, rgba(0, 123, 255, 0.20), transparent 72%),
    radial-gradient(ellipse 30% 60% at 78% 62%, rgba(0, 216, 237, 0.26), transparent 72%);
  filter: blur(32px);
}

.hero > .frame {
  text-align: center;
}

.capsule {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  padding: 7px 16px 7px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-frame);
  color: var(--ink-navy);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: var(--shadow-paper);
  max-width: 100%;
  transition: border-color 0.15s ease;
}

.capsule:hover {
  border-color: #9fc6ee;
}

.capsule b {
  background: var(--bg-ice);
  color: var(--blue-badge);
  border-radius: var(--radius-pill);
  padding: 2px 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.capsule i {
  font-style: normal;
  color: var(--blue-num);
  font-size: 18px;
  line-height: 1;
}

.hero__for {
  margin: 34px auto 0;
  color: #205ec4;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  max-width: 780px;
}

.hero h1 {
  margin: 14px auto 0;
  max-width: 960px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink-navy);
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.42;
  letter-spacing: 0.01em;
}

.hero__lead {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-strong);
  text-align: left;
}

@media (min-width: 900px) {
  .hero__lead {
    font-size: 18px;
    text-align: center;
  }
}

.hero__lead mark {
  background: rgba(219, 243, 255, 0.92);
  color: var(--ink-navy);
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 6px;
}

.hero__cta {
  margin-top: 30px;
}

.feats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 48px auto 0;
  max-width: 1120px;
  text-align: left;
}

@media (min-width: 900px) {
  .feats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feat {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 24px 24px 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-paper);
}

.feat__tag {
  display: inline-block;
  background: var(--bg-ice);
  color: var(--blue-badge);
  border-radius: var(--radius-pill);
  padding: 2px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.feat h3 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-navy);
}

.feat p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-body);
}

/* ---------- 特別枠の案内（#campaign / Billow 空色カード） ---------- */

.sky {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-frame);
  border-radius: 20px;
  padding: 56px 24px 48px;
  text-align: center;
  box-shadow: var(--shadow-paper);
}

.sky::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 62%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 22% 60% at 12% 78%, #ffffff 0, transparent 70%),
    radial-gradient(ellipse 26% 70% at 38% 96%, #ffffff 0, transparent 72%),
    radial-gradient(ellipse 24% 60% at 66% 86%, #ffffff 0, transparent 70%),
    radial-gradient(ellipse 20% 56% at 90% 92%, #ffffff 0, transparent 70%),
    radial-gradient(ellipse 50% 90% at 82% 0%, rgba(0, 216, 237, 0.25), transparent 70%),
    linear-gradient(#cfeeff, #e9f7ff 60%, #ffffff);
}

.sky > * {
  position: relative;
}

@media (min-width: 900px) {
  .sky {
    padding: 76px 56px 64px;
  }
}

.sky__limit {
  display: inline-block;
  background: var(--bg-surface);
  color: var(--blue-badge);
  border: 1px solid var(--border-sky);
  border-radius: var(--radius-pill);
  padding: 5px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  max-width: 100%;
}

.sky h2 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink-navy);
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.42;
}

.sky__lead {
  margin: 16px auto 0;
  max-width: 740px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink-strong);
  text-align: left;
}

@media (min-width: 900px) {
  .sky__lead {
    text-align: center;
  }
}

.sky__terms {
  list-style: none;
  margin: 34px auto 32px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 960px;
  text-align: left;
}

@media (min-width: 900px) {
  .sky__terms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.sky__terms li {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 18px 18px 18px 52px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-body);
}

.sky__terms li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1f6ff0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 0 0 3px #ffffff, 0 2px 6px rgba(0, 64, 255, 0.24);
}

.sky__terms strong {
  display: block;
  color: var(--ink-navy);
  font-size: 18px;
  line-height: 1.45;
  margin-bottom: 4px;
}

/* ---------- 現状の悩み（#problem） ---------- */

.cards3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 44px;
}

@media (min-width: 900px) {
  .cards3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pcard {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-paper);
}

.pcard h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink-navy);
  padding-left: 14px;
  border-left: 3px solid #7ab5ec;
}

.pcard p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-body);
}

.answer {
  margin-top: 20px;
  border-radius: var(--radius-card);
  padding: 28px 28px;
  background: linear-gradient(100deg, #e4f4ff, #f6fbff 70%);
  border: 1px solid var(--border-sky);
}

@media (min-width: 900px) {
  .answer {
    padding: 32px 36px;
  }
}

.answer h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--ink-navy);
}

.answer p {
  margin-top: 10px;
  font-size: 16.5px;
  line-height: 1.9;
  max-width: 920px;
  color: var(--ink-strong);
}

/* ---------- 3つの理由（#reason） ---------- */

.reasons {
  list-style: none;
  margin: 44px auto 0;
  padding: 0;
  max-width: 980px;
  display: grid;
  gap: 16px;
}

.reasons li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-paper);
}

@media (min-width: 768px) {
  .reasons li {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 34px 40px 36px 34px;
  }
}

.reasons__no {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  color: var(--blue-num);
}

.reasons__body {
  min-width: 0;
}

.reasons h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(20px, 2.1vw, 25px);
  line-height: 1.55;
  color: var(--ink-navy);
}

.reasons p {
  margin-top: 10px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-body);
}

.reasons .reasons__note {
  margin-top: 14px;
  background: var(--bg-tint);
  border: 1px solid #e0effc;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-strong);
}

/* ---------- デモ画面（#sample / Billow 光の中の製品ステージ） ---------- */

.stage {
  position: relative;
  padding: 76px 0 84px;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(1480px, 125vw);
  height: 820px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 46% at 20% 46%, rgba(0, 216, 237, 0.56), transparent 72%),
    radial-gradient(ellipse 34% 52% at 50% 34%, rgba(0, 123, 255, 0.48), transparent 72%),
    radial-gradient(ellipse 30% 46% at 80% 50%, rgba(0, 216, 237, 0.52), transparent 72%);
  filter: blur(36px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.stage > .frame {
  position: relative;
}

.stage__head {
  margin: 0 auto 30px;
}

.glass {
  max-width: 1152px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-stage);
  padding: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-glass);
}

.demo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-inner);
  padding: 24px;
  text-align: left;
  box-shadow: rgba(0, 28, 46, 0.08) 0 0 0 1px;
}

@media (min-width: 1024px) {
  .demo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.demo__in,
.demo__out {
  min-width: 0;
}

.demo__in {
  background: #f5f9fd;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 20px;
}

.demo__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-navy);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
}

.demo__tag {
  flex: none;
  padding: 2px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-ice);
  color: var(--blue-badge);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.demo__memo {
  border-bottom: 1px dashed #c8d5e3;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.demo__field {
  display: block;
  margin-bottom: 12px;
  min-width: 0;
}

.demo__field > span {
  display: block;
  color: var(--ink-navy);
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 4px;
}

.field__input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #c2cfdc;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-navy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

.field__input.r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.demo__memo textarea.field__input {
  min-height: 106px;
  line-height: 1.7;
  resize: vertical;
}

.demo__msg {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-body);
  min-height: 3.3em;
}

.demo__two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .demo__two {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.demo__rows-head,
.demo__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 86px 46px;
  gap: 6px;
  align-items: center;
}

@media (max-width: 479px) {
  .demo__rows-head,
  .demo__row {
    grid-template-columns: minmax(0, 1fr) 54px 74px 40px;
    gap: 4px;
  }
  .demo__row .field__input {
    padding: 6px 6px;
    font-size: 14px;
  }
}

.demo__rows-head {
  color: var(--ink-navy);
  font-size: 14px;
  font-weight: 500;
  margin: 8px 0 4px;
}

.demo__rows-head span:nth-child(2),
.demo__rows-head span:nth-child(3) {
  text-align: right;
  padding-right: 6px;
}

.demo__row {
  margin-bottom: 6px;
}

.demo__del,
.demo__add {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--blue-num);
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}

.demo__add {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
}

@keyframes filled {
  from {
    background: #dbe6f8;
    box-shadow: 0 0 0 2px #1a55e0;
  }
  to {
    background: #ffffff;
    box-shadow: 0 0 0 0 rgba(26, 85, 224, 0);
  }
}

.demo .is-filled,
.demo .is-filled .field__input {
  animation: filled 1.1s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .demo .is-filled,
  .demo .is-filled .field__input {
    animation: none;
  }
}

/* デモ出力（帳票タブと紙面） */

.demo__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-end;
  border-bottom: 1px solid var(--ink-navy);
}

.demo__tabs [role="tab"] {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-navy);
  background: #ffffff;
  border: 1px solid var(--border-frame);
  border-bottom: 0;
  padding: 10px 18px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.demo__tabs [role="tab"]:hover {
  background: var(--bg-tint);
}

.demo__tabs [role="tab"][aria-selected="true"] {
  background: var(--ink-navy);
  border-color: var(--ink-navy);
  color: #ffffff;
}

.demo__paper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-frame);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #ffffff;
  padding: 24px;
  min-height: 470px;
  box-shadow: 0 2px 0 rgba(12, 23, 37, 0.04);
}

.demo__paper::after {
  content: "見本　　見本　　見本";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(12, 23, 37, 0.065);
  transform: rotate(-24deg);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.doc {
  color: #1b2533;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.doc__title {
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-navy);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink-navy);
  margin-bottom: 16px;
}

.doc__title--left {
  text-align: left;
  letter-spacing: 0.04em;
}

.doc__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .doc__head {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.doc__to {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-navy);
  border-bottom: 1px solid var(--ink-navy);
  padding-bottom: 4px;
}

.doc__sum {
  margin-top: 12px;
  font-size: 15px;
}

.doc__sum strong {
  font-family: var(--font-num);
  font-size: 26px;
  color: var(--ink-navy);
  letter-spacing: 0.01em;
}

.doc__meta {
  font-size: 14px;
  line-height: 1.7;
}

.doc__from {
  margin-top: 6px;
  font-weight: 700;
  color: var(--ink-navy);
  font-size: 15px;
}

.doc__table,
.doc__grid,
.doc__week {
  width: 100%;
  border-collapse: collapse;
}

.doc__table th,
.doc__table td,
.doc__grid th,
.doc__grid td {
  border: 1px solid var(--border-doc);
  padding: 6px 9px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.doc__table th,
.doc__grid th {
  background: #eef3f8;
  color: var(--ink-navy);
  font-weight: 700;
  white-space: nowrap;
}

.doc .r {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.doc .c {
  text-align: center;
}

.doc .empty {
  color: var(--ink-muted);
  text-align: center;
  padding: 20px;
}

.doc__total {
  margin: 14px 0 0 auto;
  border-collapse: collapse;
  min-width: 240px;
  max-width: 100%;
}

.doc__total th,
.doc__total td {
  border-bottom: 1px solid var(--border-doc);
  padding: 5px 10px;
  text-align: right;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.doc__total th {
  text-align: left;
  color: var(--ink-navy);
}

.doc__total tr:last-child th,
.doc__total tr:last-child td {
  border-bottom: 2px solid var(--ink-navy);
  font-size: 16.5px;
}

.doc__foot {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-body);
}

.doc__format {
  font-size: 14px;
  color: var(--ink-body);
  margin-bottom: 12px;
}

.doc__grid {
  margin-bottom: 14px;
}

.doc__sign {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.doc__sign div {
  border: 1px solid var(--border-doc);
  height: 74px;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--ink-body);
}

.doc__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.doc__week {
  min-width: 540px;
  table-layout: fixed;
}

.doc__week th,
.doc__week td {
  border: 1px solid var(--border-doc);
  padding: 6px;
  vertical-align: top;
  font-size: 14px;
}

.doc__week th {
  background: #eef3f8;
  color: var(--ink-navy);
  font-weight: 700;
  text-align: center;
}

.doc__week th span {
  display: block;
  font-weight: 400;
  font-size: 13px;
}

.doc__week tr > th:first-child {
  width: 52px;
}

.doc__week td {
  height: 90px;
}

.job {
  font-size: 13px;
  line-height: 1.45;
  padding: 4px 6px;
  border-left: 3px solid #8795ab;
  background: #f3f5f8;
  margin-bottom: 4px;
  word-break: break-word;
}

.job--new {
  border-left-color: var(--blue-num);
  background: #e4efff;
  color: var(--ink-navy);
  font-weight: 700;
}

.stage__note {
  margin: 18px auto 0;
  max-width: 920px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-body);
  text-align: left;
}

@media (max-width: 767px) {
  .stage {
    padding: 56px 0 64px;
  }
  .glass {
    padding: 5px;
    border-radius: 18px;
  }
  .demo {
    padding: 14px;
    gap: 18px;
  }
  .demo__in {
    padding: 14px;
  }
  .demo__tabs [role="tab"] {
    padding: 9px 12px;
    font-size: 14.5px;
  }
  .demo__paper {
    padding: 14px;
    min-height: 400px;
  }
  .doc {
    font-size: 14px;
  }
  .doc__sum strong {
    font-size: 22px;
  }
  .doc__table th,
  .doc__table td,
  .doc__grid th,
  .doc__grid td {
    padding: 5px 6px;
  }
}

@media print {
  .demo {
    display: none;
  }
}

/* ---------- 開発体制と4つの約束（#policy） ---------- */

.promises {
  margin: 44px auto 0;
  max-width: 900px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}

.promises > div {
  position: relative;
  padding: 24px 28px 24px 64px;
  border-bottom: 1px solid var(--border-hairline);
}

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

.promises > div::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 28px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1f6ff0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 0 0 3px #eaf4ff;
}

.promises dt {
  color: var(--ink-navy);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
}

.promises dd {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-body);
}

@media (max-width: 639px) {
  .promises > div {
    padding: 20px 18px 20px 54px;
  }
  .promises > div::before {
    left: 18px;
    top: 24px;
  }
}

/* ---------- 進め方と費用（#cost） & 会社概要（#company） ---------- */

.paper {
  margin: 44px auto 0;
  max-width: 1000px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}

.paper--narrow {
  max-width: 820px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 16px;
  line-height: 1.75;
}

.table th {
  background: var(--bg-tint);
  color: var(--ink-navy);
  font-weight: 700;
  font-size: 15px;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: 0;
}

.flow th:first-child,
.flow td:first-child {
  width: 56px;
  text-align: center;
  padding-inline: 12px;
}

.flow__no {
  color: var(--blue-num);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
}

.flow__desc strong {
  display: block;
  color: var(--ink-navy);
  font-size: 17px;
  margin-bottom: 3px;
}

.flow__price {
  white-space: nowrap;
  color: var(--ink-navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flow__term {
  white-space: nowrap;
  color: var(--ink-strong);
}

.flow-note {
  margin: 16px auto 0;
  max-width: 1000px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-body);
}

@media (max-width: 767px) {
  .flow thead {
    display: none;
  }
  .flow,
  .flow tbody,
  .flow tr,
  .flow td {
    display: block;
    width: 100%;
  }
  .flow tr {
    padding: 18px 18px;
    border-bottom: 1px solid var(--border-hairline);
  }
  .flow tr:last-child {
    border-bottom: 0;
  }
  .flow td {
    border: 0;
    padding: 0;
    text-align: left;
    white-space: normal;
  }
  .flow td.flow__no {
    width: auto;
    text-align: left;
    padding: 0;
    font-size: 14px;
    font-family: var(--font-sans);
    display: inline-block;
    background: var(--bg-ice);
    color: var(--blue-badge);
    border-radius: var(--radius-pill);
    padding: 1px 10px;
    margin-bottom: 8px;
  }
  .flow td.flow__no::before {
    content: "段階 ";
  }
  .flow td.flow__desc {
    margin-bottom: 10px;
  }
  .flow td.flow__price,
  .flow td.flow__term {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px dashed var(--border-hairline);
    font-size: 15px;
  }
  .flow td.flow__price::before,
  .flow td.flow__term::before {
    content: attr(data-label);
    font-weight: 500;
    color: var(--ink-body);
    font-size: 14px;
    flex: none;
  }
}

.info th {
  width: 168px;
  white-space: nowrap;
}

.info .num-link {
  font-family: var(--font-num);
  font-weight: 500;
  color: var(--ink-navy);
  text-decoration: none;
}

.info .num-link:hover,
.info .mail-link:hover {
  text-decoration: underline;
}

.info .mail-link {
  color: var(--blue-num);
  word-break: break-all;
}

@media (max-width: 639px) {
  .info,
  .info tbody,
  .info tr,
  .info th,
  .info td {
    display: block;
    width: 100%;
  }
  .info tr {
    border-bottom: 1px solid var(--border-hairline);
  }
  .info tr:last-child {
    border-bottom: 0;
  }
  .info th {
    border-bottom: 0;
    padding: 12px 18px 4px;
    font-size: 14px;
  }
  .info td {
    border-bottom: 0;
    padding: 4px 18px 14px;
    font-size: 15.5px;
  }
}

/* ---------- よくあるご質問（#faq） ---------- */

.qgroup {
  margin: 44px auto 0;
  max-width: 860px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}

.qgroup details {
  border-bottom: 1px solid var(--border-hairline);
}

.qgroup details:last-child {
  border-bottom: 0;
}

.qgroup summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 20px 24px;
  color: var(--ink-navy);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
}

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

.qgroup summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 9v12M9 15h12' stroke='%231a55e0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 30px no-repeat;
  transition: transform 0.2s ease;
}

.qgroup details[open] summary::after {
  transform: rotate(45deg);
}

.qgroup details > div {
  padding: 0 24px 22px;
}

.qgroup details p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-body);
}

@media (max-width: 639px) {
  .qgroup summary {
    padding: 18px 16px 18px 18px;
    font-size: 16px;
  }
  .qgroup details > div {
    padding: 0 18px 18px;
  }
}

/* ---------- 無料算定とご相談（#contact） & フッター ---------- */

.contact-sec {
  position: relative;
  background: linear-gradient(180deg, #fcfdff 0%, #e6f5ff 100%);
  overflow: hidden;
}

.contact-sec::before {
  content: "";
  position: absolute;
  inset: 20% 0 0 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 26% 50% at 10% 100%, #ffffff, transparent 70%),
    radial-gradient(ellipse 30% 60% at 40% 110%, #ffffff, transparent 70%),
    radial-gradient(ellipse 28% 56% at 72% 104%, #ffffff, transparent 70%),
    radial-gradient(ellipse 24% 50% at 96% 100%, #ffffff, transparent 70%);
}

.contact-sec > .frame {
  position: relative;
}

.ways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 44px auto 0;
  max-width: 980px;
}

@media (min-width: 860px) {
  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.way {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 30px 28px 32px;
  text-align: center;
  box-shadow: var(--shadow-paper);
}

.way h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink-navy);
  line-height: 1.5;
}

.way > p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-body);
  text-align: left;
}

.way__action {
  margin-top: auto;
  padding-top: 22px;
}

.way .tel {
  display: inline-block;
  font-family: var(--font-num);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: 0.02em;
  color: var(--ink-navy);
  text-decoration: none;
  line-height: 1.2;
}

.way .tel:hover {
  color: var(--blue-num);
}

.way .way__note {
  margin-top: 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-body);
  text-align: center;
}

.way .way__note a {
  color: var(--blue-num);
}

/* フッター */

.footer {
  background: #e6f5ff;
  color: var(--ink-body);
  padding: 36px 0 48px;
  border-top: 1px solid rgba(191, 224, 247, 0.7);
}

.footer > .frame {
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.footer__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-navy);
}

.footer__meta {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-body);
}

.footer__meta a {
  color: var(--ink-strong);
}

/* ---------- モバイル余白微調整 ---------- */

@media (max-width: 767px) {
  :root {
    --side: 18px;
    --section-y: 56px;
  }
  .hero {
    padding: 36px 0 28px;
  }
  .capsule {
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 16px;
    gap: 6px 8px;
  }
  .capsule i {
    display: none;
  }
  .hero__for {
    margin-top: 24px;
    font-size: 15px;
  }
  .pill {
    width: 100%;
    max-width: 360px;
    font-size: 16px;
    padding: 12px 20px;
  }
  .pill--sm {
    width: auto;
    max-width: none;
  }
  .sky {
    padding: 40px 18px 36px;
  }
  .answer {
    padding: 22px 20px;
  }
  .way {
    padding: 24px 20px 26px;
  }
}
