/* LP専用のスタイル。共通の色・ヘッダー・料金表・フッターはsite.cssを使う。 */

/* ---------- 端末フレーム ---------- */

/* 枠の太さを除いた内側が、実画面の比率（660:1434）になる外形にする。 */
.nk-device {
  position: relative;
  aspect-ratio: 1 / 2.1115;
  border-radius: 13.5% / 6.2%;
  background: #1d1a15;
  padding: 2.6%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 40px 70px -36px rgba(60, 40, 12, 0.7),
    0 18px 30px -20px rgba(60, 40, 12, 0.45);
}

.nk-device img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 11.4% / 5.2%;
  object-fit: cover;
  background: #f2f2f7;
}

/* ---------- ヒーロー ---------- */

.nk-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60% 55% at 82% 28%, rgba(0, 121, 107, 0.16), transparent 70%),
    radial-gradient(46% 50% at 6% 4%, rgba(232, 163, 60, 0.22), transparent 72%),
    linear-gradient(180deg, #fdf8ee 0%, var(--bg) 100%);
}

.nk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.nk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  border: 1px solid rgba(0, 121, 107, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 16px 7px 12px;
  color: var(--green-deep);
  font-size: 13.5px;
  font-weight: 700;
}

.nk-kicker::before {
  width: 8px;
  height: 8px;
  flex: none;
  content: "";
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 121, 107, 0.16);
}

.nk-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(33px, 4vw, 56px);
  font-weight: 900;
  font-feature-settings: "palt";
  line-height: 1.26;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.nk-hero h1 span {
  color: var(--green);
}

.nk-hero-lead {
  max-width: 34em;
  margin: 24px 0 30px;
  color: var(--text);
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.95;
}

.nk-hero-lead b {
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(232, 163, 60, 0.42) 62%);
}

.nk-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.nk-trust li {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 1px var(--line) inset;
  padding: 7px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.nk-trust b {
  color: var(--green-deep);
}

.nk-trust .trust-stars {
  color: var(--gold-deep);
  font-weight: 900;
}

.nk-try-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  border-bottom: 2px solid rgba(0, 121, 107, 0.28);
  padding-bottom: 3px;
  color: var(--green-deep);
  font-size: 14.5px;
  font-weight: 800;
  transition: border-color 0.2s ease, gap 0.2s ease;
}

.nk-try-link:hover {
  gap: 13px;
  border-color: var(--green);
}

.nk-hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(430px, 50vw, 640px);
}

.nk-hero-stage::before {
  position: absolute;
  inset: 8% 4%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), transparent);
}

.nk-device-center {
  z-index: 2;
  width: clamp(212px, 23vw, 292px);
  animation: nk-float 7s ease-in-out infinite;
}

.nk-device-left,
.nk-device-right {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: clamp(168px, 18vw, 232px);
}

.nk-device-left {
  left: 0;
  transform: translateY(-46%) rotate(-7deg);
}

.nk-device-right {
  right: 0;
  transform: translateY(-54%) rotate(7deg);
}

.nk-hero-character {
  position: absolute;
  bottom: -12px;
  left: 2%;
  z-index: 3;
  width: clamp(104px, 12vw, 168px);
}

@keyframes nk-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- 悩みと答え ---------- */

.nk-problem {
  padding: clamp(64px, 8vw, 104px) 0;
}

.nk-problem-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.nk-problem-head .section-heading {
  margin: 0;
  text-align: left;
}

.nk-problem-character {
  width: clamp(92px, 11vw, 148px);
  flex: none;
}

.nk-problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.nk-problem-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  padding: 26px 22px 24px;
  transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.nk-problem-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.nk-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: #fdebdf;
  color: var(--orange);
}

.nk-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.nk-problem-card h3 {
  margin: 18px 0 8px;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.nk-problem-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
}

.nk-answer {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  margin-top: 28px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(120deg, var(--green-deep), var(--green) 70%, #1a9384);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px);
  color: #fff;
}

.nk-answer > img {
  width: clamp(96px, 13vw, 168px);
  flex: none;
}

.nk-answer h2 {
  margin: 0;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(25px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.34;
}

.nk-answer h2 span {
  color: #ffd98a;
}

.nk-answer p {
  max-width: 40em;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.95;
}

.nk-answer p b {
  color: #fff;
}

/* ---------- できること ---------- */

.nk-showcase {
  background: var(--surface);
  padding: clamp(64px, 8vw, 104px) 0;
}

.nk-steps {
  display: grid;
  gap: 56px;
}

.nk-step {
  display: grid;
  justify-items: center;
  gap: 28px;
}

.nk-step-copy {
  width: 100%;
}

.nk-step-number {
  display: inline-block;
  color: var(--gold-deep);
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.nk-step-number::after {
  display: inline-block;
  width: 34px;
  height: 2px;
  margin-left: 12px;
  content: "";
  background: currentColor;
  vertical-align: middle;
  opacity: 0.5;
}

.nk-step h3 {
  margin: 12px 0 14px;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(25px, 3.3vw, 38px);
  font-weight: 900;
  line-height: 1.36;
}

.nk-step p {
  max-width: 32em;
  margin: 0 0 22px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.95;
}

.nk-step-device {
  width: min(64vw, 264px);
}

.nk-stage {
  display: none;
}

/* ---------- そのほかの機能 ---------- */

.nk-more {
  padding: clamp(64px, 8vw, 104px) 0;
}

.nk-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.nk-bento-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 26px 24px;
}

.nk-bento-card h3 {
  margin: 0 0 10px;
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
}

.nk-bento-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.85;
}

.nk-bento-wide {
  grid-column: span 2;
  justify-content: center;
  padding: 32px 30px;
}

.nk-bento-wide h3,
.nk-bento-gold h3 {
  font-size: clamp(21px, 2.3vw, 27px);
}

.nk-bento-wide p,
.nk-bento-gold p {
  font-size: 15px;
}

.nk-bento-green {
  border-color: transparent;
  background: var(--green-soft);
}

.nk-bento-gold {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  border-color: transparent;
  background: linear-gradient(135deg, #fbe7bd, #f8d9a0);
  padding: 32px 36px;
}

.nk-bento-gold .button {
  flex: none;
}

.nk-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.nk-platforms li {
  border-radius: 999px;
  background: var(--surface);
  padding: 7px 16px;
  color: var(--green-deep);
  font-size: 13.5px;
  font-weight: 800;
}

/* ---------- スマホ用の固定ダウンロード導線 ---------- */

.nk-sticky-cta {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px -18px rgba(60, 40, 12, 0.5);
  padding: 10px 12px;
  backdrop-filter: saturate(1.4) blur(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nk-sticky-cta[hidden] {
  display: none;
}

.nk-sticky-cta:not(.is-shown) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.nk-sticky-cta img {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
}

.nk-sticky-cta div {
  display: grid;
  min-width: 0;
  flex: 1;
  line-height: 1.35;
}

.nk-sticky-cta strong {
  font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.nk-sticky-cta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nk-sticky-cta .button {
  min-height: 42px;
  flex: none;
  padding: 9px 16px;
  font-size: 13.5px;
}

/* ---------- 広い画面：画面が切り替わる固定表示 ---------- */

@media (min-width: 900px) {
  .nk-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: clamp(32px, 6vw, 96px);
  }

  .nk-steps {
    gap: 0;
  }

  .nk-step {
    min-height: 74vh;
    align-content: center;
    justify-items: start;
  }

  .nk-js .nk-step {
    opacity: 0.32;
    transition: opacity 0.4s ease;
  }

  .nk-js .nk-step.is-active {
    opacity: 1;
  }

  .nk-js .nk-step-device {
    display: none;
  }

  .nk-js .nk-stage {
    position: sticky;
    top: calc(50vh - min(37vh, 330px));
    display: grid;
    height: min(74vh, 660px);
    align-self: start;
    justify-items: center;
    align-content: center;
    gap: 20px;
    border-radius: 40px;
    background:
      radial-gradient(70% 60% at 50% 40%, rgba(255, 255, 255, 0.9), transparent),
      linear-gradient(160deg, var(--green-soft), #f8ecd2);
  }

  .nk-stage-device {
    display: grid;
    height: min(60vh, 540px);
  }

  .nk-stage-device img {
    grid-area: 1 / 1;
    min-height: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .nk-stage-device img.is-active {
    opacity: 1;
    transform: none;
  }

  .nk-stage-dots {
    display: flex;
    gap: 7px;
  }

  .nk-stage-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(0, 121, 107, 0.22);
    transition: background 0.3s ease, width 0.3s ease;
  }

  .nk-stage-dots span.is-active {
    width: 22px;
    background: var(--green);
  }

  .nk-sticky-cta {
    display: none;
  }
}

/* ---------- 狭い画面 ---------- */

@media (max-width: 899px) {
  .nk-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nk-hero h1 {
    font-size: clamp(26px, 8.4vw, 46px);
  }

  .nk-hero-stage {
    min-height: 0;
    margin: 12px -24px 0;
    padding: 20px 0 8px;
  }

  .nk-device-center {
    width: min(56vw, 250px);
  }

  .nk-device-left,
  .nk-device-right {
    width: min(42vw, 190px);
  }

  .nk-device-left {
    left: -5%;
  }

  .nk-device-right {
    right: -5%;
  }

  .nk-hero-character {
    left: 6%;
    width: min(26vw, 124px);
  }

  .nk-problem-grid,
  .nk-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nk-step-copy {
    max-width: 34em;
  }
}

@media (min-width: 561px) and (max-width: 899px) {
  .nk-device-left {
    left: 7%;
  }

  .nk-device-right {
    right: 7%;
  }
}

/* 狭い端末でも、ヘッダーのダウンロード導線が切れないようにする。 */
@media (max-width: 380px) {
  .site-nav .brand-name {
    display: none;
  }
}

@media (max-width: 560px) {
  .nk-problem-grid,
  .nk-bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .nk-bento-wide {
    grid-column: auto;
  }

  .nk-bento-gold {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .nk-answer {
    flex-direction: column;
    align-items: flex-start;
  }

  .nk-problem-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }

  .nk-problem-character {
    width: 84px;
  }

  .nk-hero .store-buttons {
    justify-content: flex-start;
    gap: 10px;
  }

  /* 英語のバッジは横に長いため、2つが1行に収まる高さにする。 */
  .nk-hero .store-button {
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nk-device-center {
    animation: none;
  }

  .nk-js .nk-step,
  .nk-stage-device img,
  .nk-sticky-cta,
  .nk-problem-card {
    transition: none;
  }
}
