/* カラクリ LP ― 色と文字は支給ロゴ「ステップK」から */
:root {
  --green: #14b26a; /* メイン：ボタン・強調（上に乗せる文字はインク色） */
  --green-hover: #2cc27e;
  --step-1: #14955b; /* ロゴの外側の四角 */
  --step-2: #12774b; /* リンク・白地の上の緑の文字 */
  --ink: #10201f;
  --ink-soft: #3c4c49;
  --base: #f4f5f2;
  --white: #ffffff;
  --line: #dfe3dd;
  --mint: #e3f4ea;
  --on-dark: #c9d6d2; /* 濃い背景の上の補足文字 */

  --font-display: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --font-body: 'BIZ UDPGothic', 'Hiragino Sans', 'Yu Gothic', sans-serif;

  --wrap: 1160px;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--step-2);
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.4;
  margin: 0;
}
p,
ul,
ol,
figure {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: 820px;
}
.center {
  text-align: center;
}
.sp {
  display: inline;
}
.pc {
  display: none;
}

/* アイコン */
.i {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex: none;
}
.icon .i {
  width: 26px;
  height: 26px;
}
.icon-green {
  background: var(--mint);
  color: var(--step-2);
}
.icon-ink {
  background: var(--ink);
  color: var(--green);
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition:
    background-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn-primary {
  background: var(--green);
  color: var(--ink);
  border: 1px solid var(--green);
}
.btn-primary:hover {
  background: var(--green-hover);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-sm {
  padding: 7px 18px;
  font-size: 14px;
}
.btn-lg {
  padding: 16px 44px;
  font-size: 19px;
  min-height: 64px;
  box-shadow: 0 10px 28px -10px rgba(20, 178, 106, 0.7);
}
.btn-lg:hover {
  box-shadow: 0 14px 32px -10px rgba(20, 178, 106, 0.85);
}
.btn-arrow {
  transition: transform 0.15s;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}
.btn-block {
  display: flex;
  width: 100%;
  padding: 14px 20px;
  font-size: 17px;
}
.btn small {
  font-size: 12px;
  opacity: 0.75;
}

/* ヘッダー（濃い色で統一） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 32, 31, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-word {
  height: 21px;
  width: auto;
}
.header-nav {
  display: none;
  gap: 28px;
}
.header-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.header-nav a:hover {
  color: var(--green);
}

/* 1. ファーストビュー */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(60% 70% at 78% 55%, rgba(20, 178, 106, 0.32), transparent 70%),
    linear-gradient(165deg, #10201f 0%, #0f2d25 55%, #0f4a33 100%);
  padding: 48px 0 64px;
}
/* 背景：ロゴの四角を薄く並べた模様 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect x='20' y='20' width='16' height='16' rx='3.5' fill='%2314B26A' fill-opacity='0.07'/%3E%3C/svg%3E");
  mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  gap: 44px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid rgba(20, 178, 106, 0.5);
  border-radius: 999px;
  padding: 2px 14px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 8.2vw, 48px);
  font-weight: 900;
  line-height: 1.26;
}
.hero h1 .line {
  display: block;
  white-space: nowrap;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.lead {
  margin-top: 18px;
  font-size: 16px;
  color: var(--on-dark);
  max-width: 32em;
}
.free-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 26px;
  padding: 16px 22px;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  max-width: 460px;
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.6);
  border-left: 8px solid var(--green);
}
.free-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: var(--step-2);
  flex: none;
}
.free-price span {
  font-size: 56px;
  letter-spacing: -0.02em;
}
.free-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.4;
}
.free-points {
  list-style: none;
  padding: 0;
  margin-top: 6px;
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.free-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.free-points .i {
  width: 16px;
  height: 16px;
  color: var(--step-1);
  stroke-width: 2.6;
}

/* パソコンとスマートフォンのモック */
.devices {
  position: relative;
  padding: 0 0 8% 12%;
}
.laptop-screen {
  background: #1b2826;
  border: 2px solid #33423f;
  border-radius: 14px 14px 4px 4px;
  padding: 10px 10px 12px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.laptop-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-radius: 4px;
}
.laptop-base {
  height: 14px;
  margin: 0 -6%;
  background: linear-gradient(#c8d0cd, #8e9a97);
  border-radius: 2px 2px 14px 14px;
  position: relative;
}
.laptop-base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 5px;
  transform: translateX(-50%);
  background: #7b8784;
  border-radius: 0 0 6px 6px;
}
.phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 27%;
  min-width: 108px;
  background: #0b1413;
  border-radius: 28px;
  padding: 7px;
  border: 2px solid #3a4845;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.85);
}
.phone-screen {
  position: relative;
  border-radius: 21px;
  overflow: hidden;
  background: var(--white);
}
.phone-screen::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 34%;
  height: 12px;
  transform: translateX(-50%);
  background: #0b1413;
  border-radius: 999px;
  z-index: 1;
}
.phone-screen img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
  padding-top: 22px;
  background: var(--white);
}

/* セクション共通 */
.section {
  padding: 72px 0;
}
.section-white {
  background: var(--white);
}
.section-title {
  font-size: clamp(24px, 5.6vw, 36px);
  font-weight: 900;
}
.section-lead {
  margin-top: 14px;
  color: var(--ink-soft);
}
.section-lead.center {
  margin-left: auto;
  margin-right: auto;
  max-width: 40em;
}

/* カードの段組（高さ・余白・文字の開始位置をそろえる） */
.card-grid {
  list-style: none;
  padding: 0;
  margin-top: 36px;
  display: grid;
  gap: 18px;
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
}
.section-white .card {
  background: var(--base);
  border-color: transparent;
}
.card h3 {
  font-size: 19px;
  font-weight: 900;
}
.card p {
  color: var(--ink-soft);
}

/* 2. 悩み */
.pains .card p {
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.75;
}

/* こんな方に */
.person {
  align-items: center;
  text-align: center;
  padding-top: 0;
  overflow: hidden;
}
.person-photo {
  width: calc(100% + 48px);
  max-width: none;
  margin: 0 -24px 6px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.person-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--step-2) !important;
  background: var(--mint);
  border-radius: 999px;
  padding: 2px 14px;
}
.person h3 {
  font-size: 20px;
}

/* 4. TPL と 7日間の階段 */
.tpl-layout {
  display: grid;
  gap: 36px;
}
.tpls {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.tpl {
  background: var(--base);
  border-radius: 14px;
  padding: 18px 20px;
  border-left: 5px solid var(--green);
}
.tpl-kind {
  font-size: 13px;
  font-weight: 700;
  color: var(--step-2);
}
.tpl h3 {
  font-size: 19px;
  font-weight: 900;
}
.tpl-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}
.ladder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 24px 50px -34px rgba(16, 32, 31, 0.45);
}
.ladder-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.ladder-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--white);
  border-radius: 4px;
  padding: 1px 7px;
}
.ladder-steps {
  list-style: none;
  padding: 0;
  --rise: 7px;
}
.ladder-steps li {
  display: grid;
  grid-template-columns: 22px 92px 1fr;
  align-items: center;
  column-gap: 10px;
  padding: 7px 0;
  margin-left: calc(var(--i) * var(--rise));
  font-size: 14px;
  line-height: 1.5;
}
.ladder-steps .when {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--step-2);
  font-size: 13px;
}
.sq {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--on, var(--step-1));
  background: var(--on, var(--step-1));
}
.ladder-steps li:nth-child(even) .sq {
  --on: var(--step-2);
}
.ladder.play .sq {
  animation: light 0.5s both;
  animation-delay: calc(0.2s + var(--i) * 0.22s);
}
.sq-branch {
  display: grid;
  gap: 2px;
  width: 22px;
  height: auto;
  border: 0;
  background: none !important;
}
.ladder.play .sq-branch {
  animation: none;
}
.sq-branch i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--green);
}
.ladder.play .sq-branch i {
  animation: light-branch 0.5s both;
  animation-delay: calc(0.2s + var(--i) * 0.22s);
}
/* 分岐の3つの四角は、ロゴの「K」の開き方と同じ並び */
.sq-branch i:nth-child(1),
.sq-branch i:nth-child(3) {
  justify-self: end;
  background: var(--step-1);
}
.branch {
  background: var(--mint);
  border-radius: 10px;
  padding: 10px !important;
  margin: 4px 0;
}
.branch .what {
  font-weight: 700;
}
.branch-tags {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.branch-tags b {
  font-size: 12px;
  background: var(--white);
  border: 1px solid #b9dcc8;
  border-radius: 999px;
  padding: 1px 10px;
}
@keyframes light {
  from {
    background: transparent;
    border-color: var(--line);
    transform: scale(0.7);
  }
}
@keyframes light-branch {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
}

/* 5. 本体の画面と機能 */
.screens {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}
.screen img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 40px -28px rgba(16, 32, 31, 0.5);
}
.screen figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.screen figcaption b {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}
.screens-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-soft);
}
.features {
  margin-top: 40px;
}
.feature {
  gap: 10px;
}
.feature h3 {
  font-size: 17px;
}
.feature p {
  font-size: 14px;
  line-height: 1.7;
}

/* 6. 始め方 */
.start-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.start-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--green);
}
.start-note {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 7. 安心 */
.safe-list .card {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.safe-list h3 {
  font-size: 16px;
}
.safe-list p {
  font-size: 14px;
  line-height: 1.6;
}
.screen-stop {
  margin-top: 24px;
}
.screen-stop img {
  border-radius: 12px;
}


/* 他社との比較 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.compare-scroll {
  margin-top: 36px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px;
}
.compare {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1.55;
}
.compare th,
.compare td {
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  background: var(--base);
}
.compare thead th:first-child {
  width: 30%;
  border-radius: 18px 0 0 0;
}
.compare thead th:last-child {
  border-radius: 0 18px 0 0;
}
.compare thead th.col-us {
  background: var(--ink);
  color: var(--white);
}
.compare thead th.col-us img {
  display: inline-block;
  vertical-align: -3px;
  margin-right: 8px;
  filter: brightness(0) invert(1);
}
.compare tbody th {
  font-weight: 700;
  font-family: var(--font-display);
  background: var(--base);
}
.compare td {
  background: var(--white);
  color: var(--ink-soft);
}
.compare td.col-us {
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  border-left: 3px solid var(--green);
  border-right: 3px solid var(--green);
}
.compare tbody tr:last-child td.col-us {
  border-bottom: 3px solid var(--green);
}
.compare small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
}
.mk {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -1px;
  border-radius: 50%;
}
.mk-yes {
  border: 3px solid var(--step-1);
}
.mk-no {
  position: relative;
  border-radius: 0;
}
.mk-no::before,
.mk-no::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -1px;
  width: 3px;
  height: 16px;
  margin-left: -1.5px;
  background: #9aa5a2;
  transform: rotate(45deg);
}
.mk-no::after {
  transform: rotate(-45deg);
}
.scroll-hint {
  margin-top: 24px;
  text-align: right;
  font-size: 12px;
  color: var(--ink-soft);
}
.scroll-hint + .compare-scroll {
  margin-top: 8px;
}
@media (min-width: 760px) {
  .scroll-hint {
    display: none;
  }
  .scroll-hint + .compare-scroll {
    margin-top: 36px;
  }
}
@media (max-width: 759px) {
  .compare {
    min-width: 560px;
    font-size: 14px;
  }
  .compare th,
  .compare td {
    padding: 12px 12px;
  }
  .compare thead th {
    font-size: 16px;
  }
  .compare thead th:first-child {
    width: 112px;
  }
  /* 横にスクロールしても項目名が見えるように固定 */
  .compare thead th:first-child,
  .compare tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    font-size: 13px;
    box-shadow: 2px 0 6px -3px rgba(16, 32, 31, 0.25);
  }
}
.compare-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 8. 料金 */
.section-ink {
  background: var(--ink);
  color: var(--white);
}
.plans {
  display: grid;
  gap: 18px;
  margin: 36px auto 0;
  max-width: 900px;
}
.plan {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 30px 26px;
}
.plan h3 {
  font-size: 21px;
  font-weight: 900;
}
.plan-free {
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--green);
}
.plan-pro {
  background: #1a302d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
}
.plan-badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  background: var(--green);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 10px;
}
.plan-badge-muted {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}
.price {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.price .num {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-right: 2px;
}
.pro-lead {
  margin-top: 8px;
  color: var(--on-dark);
}
.plan-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 8px;
}
.plan-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.6;
}
.plan-list .i {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--green);
  stroke-width: 2.6;
}
.plan-free .plan-list .i {
  color: var(--step-1);
}
.plan .btn {
  margin-top: auto;
}
.plan-note {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.soon {
  margin-top: auto;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--on-dark);
}
.pricing-foot {
  margin: 24px auto 0;
  max-width: 900px;
  font-size: 13px;
  color: var(--on-dark);
}

/* 9. よくある質問 */
.faq {
  margin-top: 32px;
  display: grid;
  gap: 10px;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 3px;
  background: var(--step-1);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--green);
}
.faq details p {
  padding: 0 0 20px;
  color: var(--ink-soft);
}

/* 10. 最後の呼びかけ */
.final {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(50% 80% at 50% 110%, rgba(20, 178, 106, 0.35), transparent 70%),
    var(--ink);
  color: var(--white);
  padding: 84px 0 92px;
  text-align: center;
}
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.final-mark {
  width: 46px;
  height: auto;
  margin-bottom: 20px;
}
.final h2 {
  font-size: clamp(28px, 7vw, 44px);
  font-weight: 900;
}
.final p {
  margin-top: 14px;
  color: var(--on-dark);
}
.final .btn {
  margin-top: 30px;
}
.final .final-note {
  font-size: 13px;
}

/* フッター */
.site-footer {
  background: var(--base);
  padding: 40px 0 110px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  gap: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand .logo-word {
  height: 17px;
}
.footer-info {
  margin: 0;
  display: grid;
  gap: 4px;
}
.footer-info div {
  display: flex;
  gap: 14px;
}
.footer-info dt {
  color: var(--ink-soft);
  min-width: 6em;
}
.footer-info dd {
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.copy {
  color: var(--ink-soft);
  font-size: 12px;
}

/* スマートフォン：画面下の固定ボタン */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 245, 242, 0.95);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s;
}
.sticky-cta.show {
  transform: none;
}

/* 600px以上 */
@media (min-width: 600px) {
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* タブレット以上 */
@media (min-width: 760px) {
  :root {
    --gutter: 32px;
  }
  .sp {
    display: none;
  }
  .pc {
    display: inline;
  }
  .header-nav {
    display: flex;
  }
  .cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .safe-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .screens {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .ladder-steps {
    --rise: 12px;
  }
  .ladder {
    padding: 26px 28px 22px;
  }
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: start;
    column-gap: 48px;
  }
  .copy {
    grid-column: 1 / -1;
  }
  .site-footer {
    padding-bottom: 40px;
  }
  .sticky-cta {
    display: none;
  }
}

/* パソコン */
@media (min-width: 1040px) {
  .hero {
    padding: 72px 0 96px;
  }
  .hero-inner {
    grid-template-columns: 0.86fr 1.14fr;
    align-items: center;
    gap: 48px;
  }
  .devices {
    padding: 0 0 10% 14%;
    margin-right: -24px;
  }
  .section {
    padding: 104px 0;
  }
  .cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .safe-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .tpl-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 64px;
  }
}


/* 質問ボット（右下に常に表示） */
.bot-launcher {
  position: fixed;
  right: 16px;
  bottom: 92px; /* スマホでは画面下の「無料で始める」の上 */
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(16, 32, 31, 0.6);
  transition: transform 0.15s;
}
.bot-launcher:hover {
  transform: translateY(-2px);
}
.bot-launcher .i {
  width: 24px;
  height: 24px;
  color: var(--green);
}
.bot-launcher[aria-expanded='true'] {
  display: none;
}
.bot-panel {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--base);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px -10px rgba(16, 32, 31, 0.45);
  overflow: hidden;
}
.bot-panel[hidden] {
  display: none;
}
.bot-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--white);
}
.bot-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.3;
}
.bot-sub {
  font-size: 12px;
  color: var(--on-dark);
  line-height: 1.4;
}
.bot-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.bot-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
}
.bot-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
}
.bot-msg-bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
}
.bot-msg-user {
  align-self: flex-end;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  border-top-right-radius: 4px;
}
.bot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bot-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  line-height: 1.5;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #b9dcc8;
  background: var(--white);
  color: var(--step-2);
  cursor: pointer;
}
.bot-chip:hover {
  background: var(--mint);
}
.bot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bot-link {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}
.bot-link-primary {
  background: var(--green);
  border-color: var(--green);
}
.bot-form {
  display: flex;
  gap: 8px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
}
.bot-input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px; /* iPhoneで拡大されないように16px */
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--base);
}
.bot-send {
  width: 46px;
  height: 46px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
body.bot-open .sticky-cta {
  display: none;
}
@media (min-width: 760px) {
  .bot-launcher {
    right: 24px;
    bottom: 24px;
  }
  .bot-panel {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 380px;
    height: min(620px, calc(100vh - 110px));
    border-radius: 20px;
    box-shadow: 0 24px 60px -20px rgba(16, 32, 31, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bot-launcher {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .ladder.play .sq,
  .ladder.play .sq-branch i {
    animation: none;
  }
  .sticky-cta,
  .btn,
  .btn-arrow {
    transition: none;
  }
}
