/* ============================================================
   KTX 浸水対策カンタンAI診断 — 共通スタイル
   全画面（aishindan / step02-05 / loading / result）で共有
============================================================ */
:root {
  --teal:        #00b9a0;
  --teal-dark:   #2e7d6e;
  --teal-deep:   #1f9d8c;
  --teal-solid:  #069481;
  --mint:        #c7ebe0;
  --mint-light:  #e3f5ef;
  --green-lime:  #8ed04f;
  --orange:      #f15a24;
  --yellow:      #e9f46b;
  --gray-bg:     #ededed;
  --gray-input:  #e9e9e9;
  --gray-step:   #cfcfcf;
  --text:        #333;
  --text-soft:   #6b6b6b;
  --ink:         #1c2433;
  --white:       #fff;
  --danger:      #b5271a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic",
               "Meiryo", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   Header
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #00b9a0 0%, #00b9a0 50%, #edff60 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
/* Figma「モノトーンノイズ」再現: 白ノイズ */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='100'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='1'%20seed='7'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200.33%200.33%200.33%200%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%201%201%201%201%201%201%201%201'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 70px 70px;
}
.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text {
  margin-top: 0.45em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
  white-space: nowrap;
}
.brand-text .small { font-size: 13px; font-weight: 600; }
.brand-text .main  { font-size: 19px; color: #F5FFA8; }
.brand-text .beta  { font-size: 12px; font-weight: 600; }

.header-nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1c2433;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 4px;
}
.header-tel svg { color: var(--teal-dark); flex-shrink: 0; }
.header-tel__body { display: flex; flex-direction: column; line-height: 1.15; }
.header-tel__num { font-size: 21px; font-weight: 800; letter-spacing: .01em; }
.header-tel__hours { font-size: 11px; font-weight: 600; color: #3a4a45; }
.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  transition: opacity .2s, transform .2s;
}
.hbtn:hover { opacity: .9; transform: translateY(-1px); }
.hbtn svg { flex-shrink: 0; }
.hbtn__icon { flex-shrink: 0; height: 24px; width: auto; display: block; }
.hbtn--light  { background: #e2e6e5; color: #2c8b7c; }
.hbtn--dark   { background: var(--teal-dark); color: var(--white); }
.hbtn--orange { background: var(--orange); color: var(--white); }

/* ハンバーガー（SPのみ表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal-dark);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* モバイル オーバーレイメニュー（JSで生成） */
.mobile-menu {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 64px;          /* JSでヘッダー高さに合わせて上書き */
  bottom: 0;
  z-index: 90;
  background: linear-gradient(180deg, #cdeede 0%, #eafad5 55%, #f6ffce 100%);
  padding: 24px 28px 28px;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__list { margin-bottom: 22px; }
.mobile-menu__link {
  display: block;
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 800;
  color: #1c2a26;
  border-bottom: 1px solid rgba(0, 0, 0, .22);
}
.mobile-menu__link:active { opacity: .6; }
.mobile-menu__policy {
  display: block;
  text-align: center;
  margin: 8px 0 28px;
  font-size: 15px;
  font-weight: 700;
  color: #2f3b38;
  text-decoration: none;
}
.mobile-menu__btns {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu__btns .hbtn {
  height: 56px;
  width: 100%;
  justify-content: center;
  font-size: 15px;
  border-radius: 8px;
}
.mobile-menu__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1.5px solid #cfd3d2;
  border-radius: 8px;
  background: #fff;
  color: #1c2433;
  text-decoration: none;
}
.mobile-menu__tel svg { color: var(--teal-dark); flex-shrink: 0; }
.mobile-menu__tel-body { display: flex; flex-direction: column; line-height: 1.2; text-align: center; }
.mobile-menu__tel-hours { font-size: 11px; font-weight: 600; color: #3a4a45; }
.mobile-menu__tel-num { font-size: 22px; font-weight: 800; }
body.menu-open { overflow: hidden; }

/* ============================================================
   Hero
============================================================ */
.hero {
  background: var(--gray-bg);
  padding: 36px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  text-align: center;
}
.hero-left { padding-top: 60px; padding-bottom: 30px; }

.steps {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 26px;
}
.steps span {
  flex: 1;
  height: 14px;
  background: var(--gray-step);
  transform: skewX(-24deg);
}
.steps span.active { background: var(--teal-solid); }

.hero-q {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: .35em;
  color: #7a7a7a;
  margin-bottom: 14px;
  padding-left: .35em;
}
.hero-title {
  display: inline-block;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='100'%3E%3Cfilter%20id='nh'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='1'%20seed='7'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200.33%200.33%200.33%200%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200.2%200.2%200.2%200.2%200.2%200.2%200.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23nh)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, #00b9a0 0%, #00b9a0 50%, #edff60 100%);
  background-size: 70px 70px, 100% 100%;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  padding: 6px 34px 6px 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  min-width: 446px;
  max-width: 90%;
}

.hero-robot {
  position: absolute;
  right: 16px;
  bottom: 0;
  width: 272px;
  height: 241px;      /* 下側をカット（脚の手前あたりまで表示） */
  overflow: hidden;
}
.hero-robot img { width: 100%; height: auto; display: block; }

/* ============================================================
   Main / Form
============================================================ */
main.main { padding: 56px 0 64px; }
.form-wrap { max-width: 850px; margin: 0 auto; }

.form-heading {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #000;
  margin-bottom: 42px;
}
/* ヒーロー内に置いた見出し（Q1）— PCでは非表示、SPのみ表示 */
.hero-left .form-heading {
  display: none;
  text-align: left;
  margin: 28px 0 0;
}
.subtext {
  text-align: center;
  font-size: 15px;
  color: var(--text-soft);
  margin: 0 auto 36px;
  max-width: 640px;
}

.field-row {
  display: flex;
  align-items: stretch;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.field-label {
  flex: 0 0 160px;
  background: var(--teal-solid);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .4em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: .4em;
}
.field-input {
  flex: 1 1 auto;
  border: none;
  border-radius: 0 50px 50px 0;
  background: var(--gray-input);
  padding: 0px 22px;
  font-size: 22px;
  color: var(--text);
  min-height: 71px;
}
.field-input::placeholder { color: #a8a8a8; }
.field-input:focus { outline: 2px solid var(--teal); outline-offset: -2px; }

.field-note {
  text-align: right;
  font-size: 15px;
  color: var(--text-soft);
  margin: 10px 4px 14px;
}

/* lookup ページの管理者用CSVエクスポートリンク */
.admin-export {
  margin-top: 22px;
  text-align: center;
}
.admin-export__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  transition: background .15s, color .15s, border-color .15s;
}
.admin-export__link:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: #f2fbf9;
}

.info-band {
  background: #F5FFA8;
  color: #000;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 2px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1em;
}

/* ============================================================
   選択カード（チェックボックス / ラジオ）
============================================================ */
.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
}
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1.5px solid #e2e2e2;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.option:hover { border-color: var(--teal); }
.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option .box {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 2px solid #c5c5c5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.option .box.radio { border-radius: 50%; }
.option .box.check { border-radius: 7px; }
.option .box .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; transform: scale(0); transition: transform .15s;
}
.option .box svg { opacity: 0; transition: opacity .15s; }
.option input:checked ~ .box { border-color: var(--teal); background: var(--teal); }
.option input:checked ~ .box .dot { transform: scale(1); }
.option input:checked ~ .box svg { opacity: 1; }
.option:has(input:checked) {
  border-color: var(--teal);
  background: #effaf7;
  box-shadow: 0 3px 10px rgba(0,185,160,.15);
}
.option input:focus-visible ~ .box { box-shadow: 0 0 0 3px rgba(0,185,160,.3); }

/* ---- カード型チェックボックス（左上コーナー＋ドット） ---- */
.options--cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
}
.options--cards .option {
  justify-content: center;
  text-align: center;
  gap: 0;
  min-height: 96px;
  padding: 18px 22px;
  border: 1.5px solid var(--teal-dark);
  border-radius: 0;
  background: #eef1f0;
  color: var(--teal-dark);
  line-height: 1.5;
  overflow: hidden;
}
.options--cards .option::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  border-style: solid;
  border-width: 34px 34px 0 0;
  border-color: var(--teal-dark) transparent transparent transparent;
  transition: border-color .2s;
}
.options--cards .option::after {
  content: "";
  position: absolute;
  top: 7px; left: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  transition: background .2s;
}
.options--cards .option:hover { border-color: var(--teal-dark); }
.options--cards .option:has(input:checked) {
  background: var(--teal-dark);
  color: #fff;
  box-shadow: none;
}
.options--cards .option:has(input:checked)::before {
  border-color: #fff transparent transparent transparent;
}
.options--cards .option:has(input:checked)::after {
  background: var(--teal-dark);
}
/* 排他選択肢（特にない 等）は少し黄緑の地に */
.options--cards .option--exclusive { background: #f0Ffe8; }
.options--cards .option--exclusive:has(input:checked) { background: var(--teal-dark); }
.options--cols4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1100px;
}
.options--cols4 .option { min-height: 62px; padding: 7px 12px; }

/* ============================================================
   セレクト（ドロップダウン）
============================================================ */
.select-wrap {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.styled-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  padding: 22px 56px 22px 24px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}
.styled-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,185,160,.18);
}
.select-wrap .chev {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #9aa0ab;
}

/* ============================================================
   完了通知
============================================================ */
.notice-success {
  display: none;
  align-items: flex-start;
  gap: 12px;
  max-width: 700px;
  margin: 26px auto 0;
  background: #e9f7ef;
  border: 1px solid #c7ebd5;
  border-radius: 14px;
  padding: 16px 20px;
  color: #2f7d52;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}
.notice-success .ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #34b56a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   ボタン
============================================================ */
.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 54px;
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  height: 64px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn .arrow {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn--next {
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='100'%3E%3Cfilter%20id='nb'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.8'%20numOctaves='1'%20seed='7'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200.33%200.33%200.33%200%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200.2%200.2%200.2%200.2%200.2%200.2%200.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23nb)'/%3E%3C/svg%3E"),
    linear-gradient(0deg, #00b9a0 0%, #00b9a0 45%, #edff60 100%);
  background-size: 70px 70px, 100% 100%;
  color: var(--white);
  box-shadow: 0 6px 14px rgba(0,185,160,.35);
}
.btn--next .arrow { background: #fff; }
.btn--next:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,185,160,.45); }

.btn--back {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(to top right, #00b9a0 0%, #00b9a0 40%, #edff60 100%) border-box;
  color: var(--teal-deep);
  border: 2px solid transparent;
}
.btn--back .arrow { background: transparent; }
.btn--back .arrow svg { stroke: var(--teal-deep); }
.btn--back:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.1); }

/* 診断開始など強調CTA（オレンジ） */
.btn--cta {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 14px rgba(241,90,36,.35);
}
.btn--cta .arrow { background: rgba(255,255,255,.3); }
.btn--cta:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(241,90,36,.45); }

/* 診断結果を見る（やわらかいティール→ライムのグラデーション） */
.btn--result {
  background: linear-gradient(115deg, #2bbfa3 0%, #8ad88c 55%, #d2ef93 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,185,160,.3);
}
.btn--result .arrow { background: #fff; }
.btn--result .arrow svg { stroke: var(--teal); }
.btn--result:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,185,160,.42); }

/* ============================================================
   Loading（解析中）
============================================================ */
.loading {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.spinner {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 8px solid #e7eaf3;
  border-top-color: var(--teal);
  animation: spin 1s linear infinite;
  margin-bottom: 42px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading h1 {
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: .05em;
  color: var(--ink);
  margin-bottom: 14px;
}
.loading p {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #8a93a6;
}

/* ============================================================
   生成AI利用サービスポリシー
============================================================ */
.policy-hero {
  position: relative;
  overflow: hidden;
  background: #f1f4f2;
  padding: 64px 20px 64px;
  text-align: center;
}
.policy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%3E%3Cfilter%20id='phn'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.7'%20numOctaves='2'%20seed='7'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.55%200%200%200%200%200.6%200%200%200%200%200.57%200.5%200.5%200.5%200%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200%200.5%200.6%200.7%200.8%200.9%201'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23phn)'/%3E%3C/svg%3E");
  background-size: 110px 110px;
  -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 25%, #000 100%);
}
.policy-title {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(90deg, #2bb39c 0%, #5fc785 55%, #b6e684 100%);
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 0px 24px;
  border-radius: 6px;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.policy-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 24px 8px;
}
.policy-body p {
  font-size: 15px;
  line-height: 1.9;
  color: #222;
  margin: 0 0 24px;
}
.policy-date { margin-top: 32px; }
.policy-body .actions { margin-bottom: 100px; }

@media (max-width: 768px) {
  .policy-title { font-size: 6.2vw; padding: 12px 16px; }
  .policy-body { padding: 32px 20px 8px; }
  .policy-body p { font-size: 14px; }
}

/* ============================================================
   Result（診断結果）
============================================================ */
/* Answer バナー */
.answer-hero {
  position: relative;
  overflow: hidden;
  background: #f1f4f2;
  min-height: 300px;
  padding: 100px 24px 28px;
  display: block;
}
/* 下半分のザラついたノイズ地 */
.answer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%3E%3Cfilter%20id='ang'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.7'%20numOctaves='2'%20seed='7'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.55%200%200%200%200%200.6%200%200%200%200%200.57%200.5%200.5%200.5%200%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200%200.5%200.6%200.7%200.8%200.9%201'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23ang)'/%3E%3C/svg%3E");
  background-size: 110px 110px;
  -webkit-mask-image: linear-gradient(180deg, transparent 28%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 28%, #000 100%);
}
.answer-hero__inner {
  position: relative;
  z-index: 3;
  text-align: center;
  flex: 1 1 auto;
}
.answer-hero__en {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5em;
  color: #6b7a74;
  margin: 0 0 16px;
  text-indent: .5em;
}
.answer-hero__pill {
  display: inline-block;
  background: linear-gradient(90deg, #2bb39c 0%, #5fc785 55%, #b6e684 100%);
  color: #fff;
  border-radius: 4px;
  padding: 0px 40px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.answer-hero__robot {
  position: absolute;
  z-index: 3;
  height: 312px;
  width: 350px;
  margin: -28px -8px -28px 0;
  flex-shrink: 0;
  object-fit: cover;
  top: 56px;
  left: calc(50% + 167px);
  object-position: top;
}
.answer-hero__chev { display: none; }

/* グレード ＋ レーダー */
.grade-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 78px;
  margin: 8px 0 56px;
  flex-wrap: nowrap;
}
.grade-summary {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.grade-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(155deg, #7be0a3 0%, #00b39a 100%);
  box-shadow: 0 12px 26px rgba(0,179,154,.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
}
.grade-status {
  display: inline-block;
  min-width: 7em;
  text-align: center;
  margin-top: 22px;
  background: #F5FFA8;
  color: #000;
  font-weight: 800;
  font-size: 28px;
  border-radius: 4px;
  padding: 0px 24px;
}
.grade-advice {
  position: relative;
  display: inline-block;
  margin: 32px 0 0;
  padding: 6px 40px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1em;
}
.grade-advice::before,
.grade-advice::after {
  content: "+";
  position: absolute;
  color: #b9bfbd;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.grade-advice::before { top: -18px; left: 0; }
.grade-advice::after  { bottom: -18px; right: 0; }
/* グレード別の円の色: A/B=赤系, C/D=黄系, E=緑系（Aが最も高リスク） */
.grade-hero.is-high .grade-circle { background: linear-gradient(155deg, #ff8f7d 0%, #e23b2e 100%); box-shadow: 0 12px 26px rgba(226,59,46,.28); }
.grade-hero.is-mid  .grade-circle { background: linear-gradient(155deg, #ffe07a 0%, #f5a623 100%); box-shadow: 0 12px 26px rgba(245,166,35,.28); }
.grade-hero.is-low  .grade-circle { background: linear-gradient(155deg, #7be0a3 0%, #00b39a 100%); box-shadow: 0 12px 26px rgba(0,179,154,.28); }

.radar-card {
  position: relative;
  width: 550px;
  max-width: 100%;
  padding: 0px;
  border: 1.5px solid #e6e9e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.radar-svg { display: block; width: 100%; height: auto; }
.radar-label {
  position: absolute;
  font-size: 18px;
  font-weight: 700;
  color: var(--teal-dark);
  background: #eef4f2;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.radar-label--top { top: 24px; left: 50%; transform: translateX(-50%); }
.radar-label--bl  { bottom: 22px; left: 14px; }
.radar-label--br  { bottom: 22px; right: 14px; }

/* ピル型セクション見出し */
.pill-title {
  display: inline-block;
  background: linear-gradient(90deg, #3bbf9e 0%, #7fd07f 55%, #b6e26a 100%);
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  border-radius: 0;
  padding: 0px 24px;
  margin: 0 0 41px;
  font-size: 38px;
}
.pill-title--center { display: block; width: fit-content; margin-left: auto; margin-right: auto; line-height: 1.3; }
/* 総評見出し（止水板見出しより小さめ・角丸） */
.pill-title:not(.pill-title--center) {
  font-size: 22px;
  border-radius: 999px;
  padding: 8px 30px;
}

/* 注意書きボックス（淡いライムイエローの地） */
.disclaimer-box {
  max-width: 360px;
  margin: 30px auto 0 auto;
  background: #F5FFA8;
  border-radius: 6px;
  padding: 22px 24px;
  font-size: 14px;
  line-height: 2;
  color: #000;
  font-weight: bold;
  text-align: center;
}

/* 導入事例の見出し上のテキスト */
.cases-eyebrow {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #7B7B7B;
  margin: 0 0 16px;
}

/* 現地診断 CTA */
.onsite-cta {
  position: relative;
  overflow: hidden;
  background: #eef1f0;
  text-align: center;
  padding: 48px 0px 52px;
  margin-top: 56px;
}
.onsite-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='120'%3E%3Cfilter%20id='ocn'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.7'%20numOctaves='2'%20seed='7'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.55%200%200%200%200%200.6%200%200%200%200%200.57%200.5%200.5%200.5%200%200'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200%200.5%200.6%200.7%200.8%200.9%201'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23ocn)'/%3E%3C/svg%3E");
  background-size: 110px 110px;
}
.onsite-cta > * { position: relative; z-index: 1; }
.onsite-cta__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.onsite-cta__limit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #222;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}
.onsite-cta__limit b { font-size: 18px; font-weight: 800; }
.onsite-cta__free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  box-shadow: 0 6px 14px rgba(241,90,36,.3);
}
.onsite-cta__sub {
  position: relative;
  display: inline-block;
  background: #7B7B7B;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 26px;
}
.onsite-cta__sub::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: #7B7B7B;
}
.onsite-cta__title {
  font-size: 30px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.5;
}
.onsite-cta__title .hl {
  background: var(--orange);
  color: #fff;
  padding: 2px 12px;
  border-radius: 4px;
  font-size: 1.5em;
  display: inline-block;
  margin-top: 13px;
  line-height: 1.1;
}
.onsite-cta__lead {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}

/* 応募フォーム見出し */
.result-body--form { padding-top: 8px; }
.apply-lead {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--orange);
  margin: 0 0 14px;
}
.apply-note {
  text-align: left;
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 13px;
  line-height: 1.5;
  color: #222;
}

.result-body { max-width: 1000px; margin: 0 auto; padding: 48px 20px 72px; }
.result-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
}
.result-section-title::before {
  content: "";
  width: 6px;
  height: 26px;
  background: var(--teal);
  border-radius: 3px;
}
.summary-box {
  background: #f4f6f8;
  border-radius: 16px;
  padding: 28px 30px;
  font-size: 20px;
  font-style: italic;
  line-height: 2;
  color: #4a5568;
  margin-bottom: 40px;
}
.detail h3 {
  font-size: 16px;
  font-weight: 800;
  color: #000;
  margin: 22px 0 6px;
}
.detail p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 6px;
}

.result-addr {
  display: none;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.result-error {
  display: none;
  background: #fff3f1;
  border: 1px solid #f3c4ba;
  color: #b5271a;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
}

/* ハザード一覧 */
.hazard-section { display: none; margin-top: 44px; }
.hazard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hazard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid #e6e6e6;
  border-radius: 12px;
  background: #fafafa;
}
.hazard-item.is-hit {
  border-color: #f3c4ba;
  background: #fff4f1;
}
.hazard-item .hz-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.hazard-item .hz-val  { font-size: 14px; font-weight: 800; color: #888; white-space: nowrap; }
.hazard-item.is-hit .hz-val { color: var(--danger); }

/* 関連する導入事例カード（ktx-drr.com の product-list 準拠） */
.cases-section { display: none; margin-top: 48px; }
.cases-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 27px;
}
.case-card { width: calc((100% - 54px) / 3); }
.case-card__link {
  display: block;
  position: relative;
  color: inherit;
}
.case-card__link:hover .case-card__fig img { transform: scale(1.1); }
.case-card__link:hover .case-card__ttl { color: #39b977; }
.case-card__cat {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  min-width: 180px;
  max-width: 100%;
  color: #fff;
  background: #6a9bcd;
  font-weight: 700;
  font-size: 14px;
  padding: 5px 8px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-align: center;
}
.case-card__fig {
  overflow: hidden;
  width: 100%;
  background: #eef1f3;
  transform: translateZ(0);
}
.case-card__fig img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.case-card__ttl {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--ink);
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card__tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
  gap: 2px 10px;
}
.case-card__tagitem {
  color: #39b977;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .08em;
}
.case-card__company {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #cdcdd6;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .case-card { width: calc((100% - 20px) / 2); }
  .cases-grid { gap: 28px 20px; }
}
@media (max-width: 520px) {
  .case-card { width: 100%; }
}

/* ご相談・お見積りフォーム */
.contact-section { margin-top: 48px; }
.contact-lead {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 22px;
}
.form-embed {
  background: #fff;
  border: 1.5px solid #e6e6e6;
  border-radius: 16px;
  padding: 8px;
  overflow: hidden;
}
.form-embed iframe {
  display: block;
  width: 100%;
  height: 1340px;   /* フォーム全体が収まる固定高さ（別ドメインのため自動計測不可） */
  border: 0;
  border-radius: 10px;
}

/* ============================================================
   Footer
============================================================ */
.site-footer {
  background: linear-gradient(180deg, #A5FFF3 0%, #FFFFFF 100%);
  padding: 48px 0 24px;
  color: #000;
}
.footer-cols {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col { flex: 1 1 320px; }
.footer-col h3 {
  font-size: 20px;
  font-weight: 800;
  color: #000;
  margin-bottom: 16px;
}
.footer-col h3 a { color: inherit; text-decoration: none; }
.footer-col h3 a:hover { text-decoration: underline; }
.footer-col .sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  margin: 14px 0 18px;
}
.footer-link-list li { margin-bottom: 12px; }
.footer-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #000;
}
.footer-link-list a:hover { color: var(--orange); }
.bullet {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.corp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  color: #000;
  margin-top: 8px;
}
.copyright {
  text-align: center;
  font-size: 12px;
  color: #000;
  margin-top: 40px;
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 900px) {
  .header-inner { height: auto; padding: 10px 14px; gap: 8px; flex-wrap: wrap; align-items: center; }
  .brand { flex: 1 1 auto; gap: 8px; }
  /* ハンバーガー化する 900px 以下では常にブランド名を2段組みに
     （769〜900px の Android／Galaxy Z Flip5 等でヘッダーが1段化する不具合を防ぐ） */
  .brand-text { margin-top: 0; flex-wrap: wrap; row-gap: 0; overflow: hidden; }
  .brand-text .small { width: 100%; }   /* 「事業者様向け」を上段に */
  .brand-text .main  { white-space: nowrap; }
  .brand-text .beta  { font-size: 11px; }   /* PC同様 小さめの白文字で (β版) を表示 */
  .nav-toggle { display: flex; }
  .header-nav { display: none; }   /* SP はオーバーレイメニューを使用 */
}

/* タブレット帯（iPad Pro 12.9" 縦=1024px 等・901〜1024px）:
   デスクトップナビは残したまま、ブランド名を2段化しヘッダー高さを可変にして
   「事業者様向け」が見切れる不具合を防ぐ */
@media (min-width: 901px) and (max-width: 1024px) {
  .header-inner { height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .brand-text { margin-top: 0; flex-wrap: wrap; row-gap: 0; }
  .brand-text .small { width: 100%; }   /* 「事業者様向け」を上段に */
  .brand-text .main  { white-space: nowrap; }
  .brand-text .beta  { font-size: 11px; }   /* PC同様 小さめの白文字で (β版) を表示 */
}

.sp-only { display: none; }

@media (max-width: 768px) {
  .brand-text .main { font-size: 16px; }
  .brand-text .small { font-size: 11px; }

  .sp-only { display: inline; }
  .pill-title { font-size: 7.5vw; }
  .pill-title--center { font-size: 5.6vw; }          /* 事例見出しは1行に収まるよう小さめ */
  .onsite-cta__sub { font-size: 13px; }

  /* SPヘッダー: ロゴ＋「事業者様向け」/「名称 (β版)」の2段、トグルは常に右 */
  .header-inner { flex-wrap: nowrap; gap: 8px; padding: 0 12px; }
  .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .brand-text { flex-wrap: wrap; overflow: hidden; row-gap: 0; column-gap: 5px; }
  .brand-text .small { width: 100%; font-size: 10px; }   /* 事業者様向け を上段に */
  .brand-text .main  { white-space: nowrap; font-size: 16px; }
  .brand-text .beta { font-size: 10px; }   /* PC同様 小さめの白文字で 2段目に (β版) を表示 */
  .nav-toggle { flex-shrink: 0; }

  /* 住所入力: プレースホルダーがはみ出さないよう文字を小さく */
  .field-input { font-size: 15px; min-height: 60px; }
  .field-input::placeholder { font-size: 14px; }

  /* 注意書き: 各行に収まりやすく（太字はベースで適用済み） */
  .disclaimer-box { max-width: 92vw; padding: 20px 18px; font-size: 13px; line-height: 1.85; }

  .hero { padding: 24px 0 30px; }
  .hero-left { padding-top: 0; }
  .steps { margin: 0 auto 20px; max-width: 280px; }
  .hero-q { font-size: 22px; letter-spacing: .25em; }
  .hero-title { font-size: 21px; padding: 7px 26px 7px 18px; min-width: 0; width: auto; }
  /* SPでもabsoluteのまま。hero-leftと重なってよい */
  .hero-robot { width: 172px; height: 150px; right: -16px; bottom: -30px; }

  /* Q1の見出しはSPではヒーロー内に表示、main内は隠す */
  .hero-left .form-heading { display: block; font-size: 19px; padding-right: 130px; }
  main.main .form-heading { display: none; }

  main.main { padding: 40px 0 48px; }
  .form-heading { font-size: 19px; margin-bottom: 12px; }
  .subtext { font-size: 14px; margin-bottom: 26px; }

  .field-label { flex: 0 0 88px; font-size: 16px; letter-spacing: .2em; }
  .info-band { text-align: left; font-size: 13px; }

  .option { padding: 16px 18px; font-size: 15px; }
  .options--cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .styled-select { padding: 18px 50px 18px 18px; font-size: 16px; }

  .actions { margin-top: 38px; margin-bottom: 50px; }
  .btn { max-width: 100%; height: 58px; font-size: 16px; }

  .result-body { padding: 36px 20px 8px; }
  .result-section-title { font-size: 19px; }
  .summary-box { padding: 22px 20px; font-size: 15px; line-height: 1.9; }

  .answer-hero {
    min-height: 0;
    padding: 28px 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .answer-hero__inner { order: 1; }
  .answer-hero__en { font-size: 18px; margin-bottom: 10px; }
  .answer-hero__pill { font-size: 24px; padding: 8px 24px; }
  .answer-hero__robot {
    order: 2;
    position: static;
    width: 230px;
    height: 150px;
    margin: 10px auto 0;
    top: auto; left: auto;
  }
  .answer-hero__chev { display: none; }
  .grade-block { gap: 26px; margin-bottom: 40px; flex-wrap: wrap; }
  /* スマホ: グレード円を左、ステータス＋アドバイスを右に縦積み */
  .grade-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: start;
    column-gap: 18px;
    row-gap: 8px;
    text-align: left;
  }
  .grade-circle { width: 124px; height: 124px; font-size: 70px; grid-row: 1 / 3; grid-column: 1; }
  .grade-status { grid-column: 2; grid-row: 1; margin-top: 0; justify-self: center; }
  .grade-advice { grid-column: 2; grid-row: 2; margin: 0; justify-self: start; }
  .onsite-cta__title { font-size: 22px; }
  .onsite-cta__lead { font-size: 20px; }
  /* スマホ: 吹き出し→見出し→リード→（限定/無料）の縦並び */
  .onsite-cta {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: auto auto;
    grid-template-areas:
      "sub   sub"
      "title title"
      "lead  lead"
      "limit free";
    column-gap: 10px;
    row-gap: 18px;
  }
  .onsite-cta__head { display: contents; }
  .onsite-cta__sub   { grid-area: sub;   margin: 0 auto; position: relative; z-index: 1; }
  .onsite-cta__limit { grid-area: limit; position: relative; z-index: 1; justify-self: center; width: 120px; height: 120px; font-size: 16px; margin-left: 50px; }
  .onsite-cta__limit b { font-size: 22px; }
  .onsite-cta__free  { grid-area: free;  position: relative; z-index: 1; justify-self: center; width: 120px; height: 120px; font-size: 18px; margin-right: 50px; }
  .onsite-cta__title { grid-area: title; margin: 0; text-align: left; margin-left: 1em; }
  .onsite-cta__lead  { grid-area: lead;  margin: 0; }

  /* スマホ: 応募フォーム上部（リードは中央、注記は左寄せ） */
  .apply-lead { font-size: 20px; line-height: 1.6; }
  .apply-note { text-align: left; }

  .site-footer { padding: 36px 0 20px; }
  .footer-cols { gap: 8px; padding: 0 1em; }
  .footer-col { flex: 1 1 100%; }
  .footer-col:last-child { margin-top: 24px; }
}

@media (max-width: 420px) {
  .hbtn { font-size: 13px; }
  .options--cards { grid-template-columns: 1fr; }
  .brand-text .main { font-size: 15px; }
}
@media (max-width: 360px) {
  .brand-text .main { font-size: 13.5px; }
  .brand-logo { width: 40px; height: 40px; }
}
