/* NeXtep / KDH のサイト共通スタイル */

:root {
  --text: #16181d;
  --sub: #555d6b;
  --mute: #8a92a0;
  --line: #e2e6ec;
  --bg: #ffffff;
  --soft: #f4f6f9;
  --blue: #1d57d8;
  --blue-dark: #1746b0;
  --red: #d92c2c;
  --navy: #101828;
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif;
  --wrap: 1120px;
  --pad: clamp(20px, 4vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- ヘッダー ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1;
}

.logo .mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
}

.logo .mark i:first-child {
  background: var(--red);
}

.logo .mark i:last-child {
  background: var(--blue);
}

.logo small {
  font-weight: 500;
  font-size: 12px;
  color: var(--mute);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--text);
}

.nav a:not(.btn):hover {
  color: var(--blue);
}

.nav a[aria-current='page'] {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 860px) {
  .nav a:not(.btn) {
    display: none;
  }

  .nav a.keep {
    display: inline;
  }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav .btn {
  color: #fff;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn.line {
  background: #fff;
  border-color: #c9d0da;
  color: var(--text);
}

.btn.line:hover {
  background: var(--soft);
  border-color: #b3bcc9;
}

.btn.small {
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 見出し ---------- */

.kicker {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.h1 {
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.32;
  letter-spacing: 0.01em;
}

.h2 {
  font-weight: 900;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.h1,
.h2,
.h3 {
  text-wrap: balance;
  word-break: auto-phrase;
}

.h3 {
  font-weight: 700;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}

.lead {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--sub);
}

.nobr {
  display: inline-block;
}

.sec {
  padding: clamp(64px, 8vw, 112px) 0;
}

.sec.soft {
  background: var(--soft);
}

.sec-top {
  max-width: 44em;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.sec-top .lead {
  margin-top: 14px;
}

.sec-top.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- 画面の枠 ---------- */

.screen {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(16, 24, 40, 0.05),
    0 24px 48px -24px rgba(16, 24, 40, 0.28);
}

.screen img {
  width: 100%;
}

.phone {
  width: 100%;
  border-radius: 12% / 5.6%;
  padding: clamp(4px, 0.55vw, 8px);
  background: #111317;
  box-shadow: 0 30px 50px -28px rgba(16, 24, 40, 0.55);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 10.5% / 4.8%;
}

/* ---------- KDH トップ ---------- */

.hero {
  padding: clamp(40px, 6vw, 80px) 0 0;
  text-align: center;
}

.hero .lead {
  max-width: 36em;
  margin: 20px auto 30px;
}

.hero .btns {
  justify-content: center;
}

.hero-shot {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 4vw, 56px) clamp(16px, 5vw, 72px) 0;
  background: var(--soft);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.hero-shot .screen {
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
}

.hero-shot .phone {
  position: absolute;
  right: clamp(12px, 5%, 64px);
  top: 34%;
  width: clamp(100px, 17%, 200px);
}

.hero-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--mute);
  text-align: center;
}

/* できること(3 枚) */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.card .pic {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.sec.soft .card .pic {
  background: #fff;
}

.card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.card .pic.is-dark {
  background: #02051a;
}

.card .pic.is-dark img {
  object-fit: contain;
  object-position: center;
}

.card .pic.is-phone {
  align-items: start;
  padding-top: 9%;
}

.card .pic.is-phone .phone {
  width: 44%;
}

.card .who {
  display: inline-block;
  margin-top: 16px;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
}

.card .h3 {
  margin-top: 8px;
}

.card p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--sub);
}

@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .card .pic {
    aspect-ratio: 16 / 10;
  }

  .card .pic.is-phone .phone {
    width: 30%;
  }
}

/* 左右に並べる説明 */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split + .split {
  margin-top: clamp(56px, 8vw, 104px);
}

.split.flip > :first-child {
  order: 2;
}

.split .h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.split .lead {
  margin-top: 14px;
}

.checks {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}

.phones .phone:nth-child(2) {
  margin-top: 12%;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split.flip > :first-child {
    order: 0;
  }
}

/* 点数 */

.points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.points li {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.points li b {
  margin-left: 6px;
  color: var(--blue);
}

/* 8 つの指標 */

.axes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.axes li {
  padding: 12px 8px;
  border-radius: 10px;
  background: var(--soft);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.sec.soft .axes li {
  background: #fff;
}

@media (max-width: 520px) {
  .axes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 道場に見える範囲 */

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

.scope > div {
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.scope h4 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.scope .yes h4 {
  color: var(--blue);
}

.scope .no h4 {
  color: var(--red);
}

.scope li {
  font-size: 14px;
  color: var(--sub);
  padding: 3px 0;
}

@media (max-width: 520px) {
  .scope {
    grid-template-columns: 1fr;
  }
}

/* はじめ方 */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 26px 22px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.steps p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--sub);
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* 補足の 4 項目 */

.notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.notes li {
  padding: 22px 22px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.notes .h3 {
  font-size: 17px;
}

.notes p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--sub);
}

@media (max-width: 860px) {
  .notes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .notes {
    grid-template-columns: 1fr;
  }
}

/* よくある質問 */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 26px 1fr 18px;
  gap: 12px;
  align-items: start;
  padding: 20px 22px;
  font-weight: 700;
}

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

.faq summary::before {
  content: 'Q';
  color: var(--blue);
  font-weight: 900;
}

.faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-right: 2px solid var(--mute);
  border-bottom: 2px solid var(--mute);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 12px;
}

.faq .a {
  padding: 0 22px 22px 60px;
  color: var(--sub);
  font-size: 15px;
}

/* 問い合わせ */

.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: clamp(56px, 7vw, 96px) 0;
}

.cta .lead {
  color: #c3cad6;
  max-width: 34em;
  margin: 14px auto 28px;
}

.cta .btn {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.cta .btn:hover {
  background: #e6ebf3;
  border-color: #e6ebf3;
}

.cta .mail {
  margin-top: 16px;
  font-size: 14px;
  color: #c3cad6;
}

.foot {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--sub);
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

/* ---------- 会社トップ ---------- */

.co-hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 88px);
}

.co-hero .lead {
  max-width: 34em;
  margin-top: 20px;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 24px;
  background: var(--soft);
}

.product .lead {
  margin: 12px 0 24px;
}

.product .name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.2;
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
  }
}

.table {
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.table > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.table dt {
  font-weight: 700;
  font-size: 15px;
}

.table dd {
  color: var(--sub);
}

@media (max-width: 520px) {
  .table > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- 使い方ページ ---------- */

.guide-top {
  padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 4vw, 48px);
  background: var(--soft);
}

.guide-top .lead {
  margin-top: 12px;
  max-width: 40em;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.guide {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(64px, 8vw, 112px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  font-size: 14px;
}

.toc p {
  font-weight: 700;
  font-size: 13px;
  color: var(--mute);
  margin: 18px 0 6px;
}

.toc p:first-child {
  margin-top: 0;
}

.toc a {
  display: block;
  padding: 6px 12px;
  border-left: 2px solid var(--line);
  text-decoration: none;
  color: var(--sub);
}

.toc a:hover {
  border-left-color: var(--blue);
  color: var(--blue);
}

.doc {
  max-width: 46em;
}

.doc section {
  padding: 8px 0 40px;
  scroll-margin-top: 88px;
}

.doc section + section {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.doc .part {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 10px;
}

.doc h2 {
  font-weight: 900;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.5;
  margin-bottom: 14px;
}

.doc h3 {
  font-weight: 700;
  font-size: 16px;
  margin: 26px 0 6px;
}

.doc p {
  color: var(--sub);
}

.doc p + p {
  margin-top: 0.8em;
}

.doc ol {
  counter-reset: s;
  margin: 14px 0;
  display: grid;
  gap: 10px;
}

.doc ol li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.doc ol li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.doc ul {
  margin: 12px 0;
}

.doc ul li {
  position: relative;
  padding: 3px 0 3px 18px;
  color: var(--sub);
}

.doc ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.doc table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.doc th,
.doc td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc thead th {
  background: var(--soft);
  font-size: 13px;
  color: var(--sub);
}

.doc td {
  color: var(--sub);
}

.doc td:first-child {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.doc .memo {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: #fff7e6;
  border: 1px solid #f5dfae;
  font-size: 15px;
  color: #5c4a1c;
}

.doc .shot {
  margin: 20px 0 4px;
}

@media (max-width: 860px) {
  .guide {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }

  .doc td:first-child {
    white-space: normal;
  }
}
