/* ===================== 認証まわり（ログイン／仮登録／本登録） ===================== */
.demo-sw {
  display: none !important;
}
.au-view {
  display: none;
}
.au-view.on {
  display: block;
}
.au-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  padding-bottom: 40px;
}
/* フォーム部品 */
.f {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.f label,
.fl {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.req {
  color: var(--red);
  font-size: 11px;
  margin-left: 4px;
  font-weight: 700;
}
.opt {
  color: var(--muted);
  font-size: 11px;
  margin-left: 4px;
  font-weight: 500;
}
.f input,
.f select {
  height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  width: 100%;
  min-width: 0;
}
.f input:focus,
.f select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.f input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--bg) inset;
  -webkit-text-fill-color: var(--text);
}
.f input.err {
  border-color: var(--red);
}
.f .hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.f .emsg {
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  display: none;
}
.f .err + .emsg,
.f .err ~ .emsg {
  display: block;
}
.pw {
  position: relative;
}
.pw input {
  padding-right: 52px;
}
.pw button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.pw button:hover {
  background: var(--surface-2);
}
.f2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.chk {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  font-weight: 500 !important;
  cursor: pointer;
}
.chk input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex: none;
}
.link {
  color: var(--accent-dk);
  font-weight: 700;
}
[data-theme="dark"] .link {
  color: var(--accent);
}
.btn-lg {
  height: 54px;
  font-size: 16px;
  justify-content: center;
  width: 100%;
  border-radius: 14px;
}
.or {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin: 26px 0 18px;
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}
.info svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent-dk);
}
.info b {
  color: var(--text);
}
.au-legal {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}
.au-legal a {
  text-decoration: underline;
}
/* 仮登録LP */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.plan {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.plan.rec {
  border-color: var(--accent);
  position: relative;
}
.plan.rec::before {
  content: "おすすめ";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}
.plan h3 {
  font-size: 18px;
}
.plan .price {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 800;
  margin-top: 10px;
}
.plan .price small {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.plan ul {
  list-style: none;
  margin: 16px 0 22px;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.plan li svg {
  flex: none;
  color: var(--accent-dk);
  margin-top: 2px;
}
.plan li.no {
  color: var(--muted);
}
.plan li.no svg {
  color: var(--muted);
}
.plan .btn {
  margin-top: auto;
  justify-content: center;
  height: 50px;
}
/* 完了・確認系カード */
.au-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px clamp(24px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--shadow);
}
.au-ic {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent-dk);
}
.au-ic svg {
  width: 40px;
  height: 40px;
}
.au-card h1 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 22px;
  line-height: 1.5;
}
.au-card .mail {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-en);
  font-weight: 600;
  background: var(--surface-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.au-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 14px;
}
.au-card .btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.au-card .btns .btn {
  justify-content: center;
  height: 50px;
}
.au-tips {
  text-align: left;
  margin-top: 28px;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 18px 20px;
}
.au-tips b {
  font-size: 13px;
}
.au-tips ul {
  margin: 8px 0 0 18px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.au-tips code {
  font-family: var(--font-en);
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--text);
}
/* ステップ */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 620px;
  margin: 0 auto 24px;
}
.stepper .s {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  flex: none;
  width: 96px;
  text-align: center;
}
.stepper .s i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-family: var(--font-en);
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
  border: 1.5px solid var(--border);
}
.stepper .s.on {
  color: var(--text);
  font-weight: 700;
}
.stepper .s.on i {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.stepper .s.done i {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
.stepper .ln {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 22px;
  min-width: 16px;
}
.stepper .ln.done {
  background: var(--text);
}
/* 本登録フォーム */
.reg {
  max-width: 760px;
  margin: 0 auto;
}
.reg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px clamp(20px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.reg-card > h1 {
  font-size: 24px;
  font-weight: 700;
}
.reg-card > .lead {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.fs {
  border: 0;
  margin-top: 32px;
}
.fs legend {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
}
.fs legend::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
}
.fs .f {
  margin-top: 0;
}
.zip {
  display: flex;
  gap: 10px;
}
.zip input {
  flex: 1;
}
.zip .btn {
  height: 50px;
  flex: none;
}
.fixed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 50px;
  border-radius: 12px;
  background: var(--surface-2);
  padding: 0 16px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 500;
}
.fixed small {
  font-family: var(--font);
  font-size: 11px;
  color: var(--accent-dk);
  font-weight: 700;
}
.pcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pcard {
  position: relative;
  display: block !important;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 18px 50px;
  cursor: pointer;
  font-weight: 400 !important;
  transition: 0.15s;
}
.pcard input {
  position: absolute;
  left: 18px;
  top: 21px;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}
.pcard b {
  font-size: 15px;
  display: block;
}
.pcard .pr {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
  display: block;
}
.pcard .pr small {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.pcard span.d {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  display: block;
  margin-top: 6px;
}
.pcard .tag14 {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: 2px;
}
.pcard:has(input:checked) {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.agree {
  margin-top: 28px;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.agree .chk {
  margin-top: 10px;
  color: var(--text);
  font-size: 14px;
}
.reg-act {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.reg-act .btn {
  flex: 1;
  justify-content: center;
  height: 54px;
  font-size: 16px;
}
.cf {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.cf dt {
  padding: 14px 0;
  color: var(--muted);
}
.cf dd {
  padding: 14px 0;
  font-weight: 500;
  word-break: break-all;
}
.cf dt,
.cf dd {
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .au-wrap {
    padding-top: 16px;
  }
  .au-card,
  .reg-card {
    border-radius: 18px;
  }
  .f2,
  .pcards {
    grid-template-columns: 1fr;
  }
  .f2 {
    gap: 12px;
  }
  .stepper .s {
    width: 76px;
    font-size: 11px;
  }
  .cf {
    grid-template-columns: 110px 1fr;
    font-size: 13px;
  }
  .reg-act {
    flex-direction: column-reverse;
  }
}

.lb {
  display: flex;
  align-items: center;
  gap: 2px;
}
.lb .req,
.lb .opt {
  margin-left: 6px;
}
.req {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ===================== ログイン（既存の枠組みを維持） ===================== */
.au-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -40px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.au-band-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 72px) 44px;
  text-align: center;
}
.au-band .crumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  justify-content: center;
}
.au-band h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-top: 12px;
}
.au-band p {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-top: 10px;
}
.lg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 40px auto 0;
}
.lg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.lg-h {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.lg-h h2 {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
}
.lg-h p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.lg-txt {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 18px;
}
.lg-txt b {
  color: var(--text);
}
.lg-card .f {
  margin-top: 22px;
}
.lg-card .info {
  margin-top: 20px;
}
.lg-guest-act {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lg-guest-act .link {
  font-size: 13px;
}
.btn-dark {
  background: var(--text);
  color: var(--surface);
}
.btn-dark:hover {
  opacity: 0.9;
}
.btn-lg svg {
  width: 18px;
  height: 18px;
}
/* ===================== 仮登録LP（Netflix風） ===================== */
.lp {
  --lp-bg: #000;
  --lp-s: #141414;
  --lp-b: #2a2a2a;
  --lp-t: #fff;
  --lp-m: #a3a3a3;
  color: var(--lp-t);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -40px;
  margin-bottom: -40px;
  background: var(--lp-bg);
  line-break: strict;
}
.lp .au-legal,
.lp .nx-small {
  color: var(--lp-m);
}
.nx-hero {
  position: relative;
  min-height: max(640px, 88vh);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  padding: 80px 20px;
}

.nx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(0, 0, 0, 0.55) 0, rgba(0, 0, 0, 0.85) 70%, #000 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 30%, transparent 70%, #000);
}
.nx-hero-in {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
}
.nx-kick {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--lime);
}
.nx-hero h1 {
  font-size: clamp(23px, 4.2vw, 60px);
  font-weight: 800;
  line-height: 1.25;
  margin-top: 18px;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}
.nx-sub {
  font-size: clamp(16px, 1.8vw, 22px);
  margin-top: 22px;
  font-weight: 500;
}
.nx-sub b {
  color: var(--lime);
}
.nx-lead {
  font-size: 16px;
  margin-top: 26px;
  color: #e5e5e5;
}
.nx-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 16px auto 0;
  flex-wrap: wrap;
}
.nx-in {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.nx-in input {
  width: 100%;
  height: 60px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(20, 20, 20, 0.75);
  color: #fff;
  padding: 22px 18px 6px;
  font: inherit;
  font-size: 16px;
}
.nx-in input:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.nx-in label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #b3b3b3;
  transition: 0.15s;
  pointer-events: none;
}
.nx-in input:focus + label,
.nx-in input:not(:placeholder-shown) + label {
  top: 16px;
  font-size: 11px;
}
.nx-in input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #222 inset;
  -webkit-text-fill-color: #fff;
}
.nx-go {
  height: 60px;
  padding: 0 30px;
  font-size: 20px;
  border-radius: 8px;
  flex: none;
}
.nx-go svg {
  width: 22px;
  height: 22px;
}
.nx-form .emsg {
  flex-basis: 100%;
  text-align: left;
  font-size: 13px;
  color: #ff8a80;
  display: none;
}
.nx-form.bad .emsg {
  display: block;
}
.nx-form.bad input {
  border-color: #ff8a80;
}
.nx-note {
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 14px;
}
.nx-note a {
  color: #fff;
  text-decoration: underline;
}
.nx-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 64px);
  border-bottom: 8px solid #191919;
}
.nx-feat.rev .nx-ft-tx {
  order: 2;
}
.nx-no {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  color: var(--lime);
  letter-spacing: 0.14em;
}
.nx-ft-tx h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 800;
  line-height: 1.3;
  margin-top: 12px;
}
.nx-ft-tx p {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
  color: #cfcfcf;
  margin-top: 20px;
}
.nx-ft-vis {
  position: relative;
  min-height: 360px;
}
.nx-stack img {
  position: absolute;
  width: 62%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  border: 1px solid #2a2a2a;
}
.nx-stack img:nth-child(1) {
  left: 0;
  top: 4%;
  transform: rotate(-5deg);
}
.nx-stack img:nth-child(2) {
  left: 20%;
  top: 26%;
  z-index: 2;
}
.nx-stack img:nth-child(3) {
  right: 0;
  top: 52%;
  transform: rotate(5deg);
  z-index: 3;
}
.nx-grid4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}
.nx-grid4 img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
}
.nx-grid4 img:nth-child(2n) {
  transform: translateY(28px);
}
.nx-courses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.nx-courses span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11px;
  color: var(--lp-m);
}
.nx-courses b {
  font-family: var(--font-en);
  font-size: 13px;
  color: #fff;
}
.nx-phone {
  display: grid;
  place-items: center;
}
.ph-frame {
  width: min(280px, 70%);
  aspect-ratio: 9/18.5;
  border-radius: 38px;
  border: 10px solid #1f1f1f;
  background: #0d0d0d;
  box-shadow:
    0 30px 80px rgba(142, 184, 0, 0.15),
    0 0 0 1px #333;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 10px 10px;
}
.ph-frame img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 8px;
}
.ph-frame img:first-child {
  aspect-ratio: 4/5;
}
.nx-marquee {
  overflow: hidden;
  padding: 40px 0;
  border-bottom: 8px solid #191919;
}
.nx-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: nxMq 50s linear infinite;
}
.nx-marquee:hover .nx-track {
  animation-play-state: paused;
}
.mq {
  width: 280px;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  background: #1a1a1a;
}
.mq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes nxMq {
  to {
    transform: translateX(-50%);
  }
}
.nx-sec {
  max-width: 1000px;
  margin: 0 auto;
  padding: 88px clamp(20px, 5vw, 48px);
  border-bottom: 8px solid #191919;
}
.nx-sec:last-child {
  border-bottom: 0;
}
.nx-sec > h2 {
  font-size: clamp(24px, 2.9vw, 40px);
  font-weight: 800;
  text-align: center;
}
.lp .plans {
  margin-top: 40px;
}
.lp .plan {
  background: var(--lp-s);
  border-color: var(--lp-b);
  color: #fff;
}
.lp .plan.rec {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 20px 60px rgba(142, 184, 0, 0.12);
}
.lp .plan .price small,
.lp .plan li.no {
  color: var(--lp-m);
}
.lp .plan li svg {
  color: var(--lime);
}
.lp .plan .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #444;
}
.nx-small {
  font-size: 12px;
  text-align: center;
  margin-top: 16px;
}
.nx-faq {
  display: grid;
  gap: 8px;
  margin-top: 40px;
}
.nx-faq details {
  background: #2d2d2d;
}
.nx-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 28px;
  font-size: clamp(17px, 1.8vw, 22px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.nx-faq summary::-webkit-details-marker {
  display: none;
}
.nx-faq summary::after {
  content: "+";
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  transition: 0.2s;
}
.nx-faq details[open] summary::after {
  transform: rotate(45deg);
}
.nx-faq summary:hover {
  background: #414141;
}
.nx-faq p {
  padding: 24px 28px;
  border-top: 1px solid #000;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.8;
}
@media (prefers-reduced-motion: reduce) {
  .nx-track {
    animation-duration: 120s;
  }
  .nx-col {
    animation-duration: 160s !important;
  }
}
@media (max-width: 900px) {
  .lg-grid {
    grid-template-columns: 1fr;
  }
  .nx-feat {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 64px 20px;
    text-align: center;
  }
  .nx-feat.rev .nx-ft-tx {
    order: 0;
  }
  .nx-courses {
    justify-content: center;
  }
}
@media (max-width: 760px) {
  .au-band-in {
    padding: 32px 16px 30px;
  }
  .au-band .crumb {
    display: none;
  }
  .lg-grid {
    margin-top: 20px;
    gap: 16px;
  }
  .lg-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .lp {
    margin-top: -16px;
  }
  .nx-hero {
    min-height: 620px;
    padding: 56px 16px;
  }
  .nx-form {
    flex-direction: column;
  }
  .nx-go {
    width: 100%;
    justify-content: center;
  }
  .nx-ft-vis {
    min-height: 260px;
  }
  .nx-sec {
    padding: 64px 16px;
  }
  .nx-faq summary {
    padding: 18px;
  }
  .nx-faq p {
    padding: 18px;
  }
  .mq {
    width: 200px;
  }
}
html,
body {
  overflow-x: clip;
}

/* 日本語の改行：文節単位で折り返す */
.lp h1,
.lp h2,
.lp h3,
.lp summary,
.nx-sub,
.nx-lead {
  word-break: auto-phrase;
}
.lp p,
.lp li {
  text-wrap: pretty;
}
.lp h1,
.lp h2 {
  text-wrap: balance;
}
.nw {
  display: inline-block;
}
@media (max-width: 760px) {
  .nx-hero h1 {
    font-size: min(6.2vw, 30px);
  }
  .nx-ft-tx h2,
  .nx-sec > h2 {
    font-size: 24px;
  }
  .nx-ft-tx p {
    text-align: left;
  }
}

/* ===== SNSログイン／登録（LINE・Google） ===== */
.sns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.sns .yahoo {
  grid-column: 1/-1;
}
.sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition:
    filter 0.15s,
    border-color 0.15s;
}
.sns-btn svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.sns-btn.line {
  background: var(--line);
  border-color: var(--line);
  color: #fff;
}
.sns-btn.google:hover {
  border-color: var(--text);
}
.sns-btn:hover {
  filter: brightness(1.04);
}
.or {
  width: 100%;
}
.nx-sns {
  max-width: 640px;
  margin: 14px auto 0;
}
.nx-sns .sns-btn {
  height: 46px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.nx-sns .sns-btn.line {
  background: var(--line);
  border-color: var(--line);
}
@media (max-width: 760px) {
  .sns {
    grid-template-columns: 1fr;
  }
}

/* ===== 仮登録：ポスターウォール（列ごとに上下へ流れる） ===== */
.nx-wall {
  position: absolute;
  inset: -40% -25%;
  display: flex;
  gap: 12px;
  transform: rotate(-12deg);
}
.nx-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: nxUp 48s linear infinite;
}
.nx-col:nth-child(even) {
  animation-name: nxDown;
  animation-duration: 58s;
}
.nx-col div {
  flex: none;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}
.nx-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes nxUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
@keyframes nxDown {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}
@media (max-width: 760px) {
  .nx-wall {
    inset: -30% -70%;
  }
  .nx-col {
    animation-duration: 40s;
  }
  .nx-col:nth-child(even) {
    animation-duration: 48s;
  }
}

.sns-btn.yahoo:hover {
  border-color: #ff0033;
}
.nx-sns {
  grid-template-columns: 1fr 1fr 1fr;
}
.nx-sns .yahoo {
  grid-column: auto;
}
@media (max-width: 760px) {
  .nx-sns {
    grid-template-columns: 1fr;
  }
}
/* SNSログインは今回は非公開（auth.js の SNS_LOGIN で表示切替） */
body.sns-off .sns-part {
  display: none !important;
}
/* FAMILYの説明はツールチップ */
.tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0 2px;
  vertical-align: -3px;
  color: var(--muted);
  cursor: help;
  outline: 0;
}
.tip svg {
  width: 16px;
  height: 16px;
}
.tip:hover,
.tip:focus {
  color: var(--accent-dk);
}
.tip-b {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: 280px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1a1a1a;
  color: #eee;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  z-index: 20;
}
.tip-b b {
  display: block;
  color: #fff;
  margin-bottom: 4px;
  font-size: 12px;
}
.tip-b::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
}
.tip:hover .tip-b,
.tip:focus .tip-b {
  opacity: 1;
  transform: translateX(-50%);
}
@media (max-width: 760px) {
  .tip-b {
    left: auto;
    right: -60px;
    transform: translateY(4px);
    width: min(280px, 80vw);
  }
  .tip:hover .tip-b,
  .tip:focus .tip-b {
    transform: none;
  }
  .tip-b::after {
    left: auto;
    right: 62px;
    transform: none;
  }
}
/* 左右のボタン位置をそろえる */
.lg-card #loginForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.lg-card #loginForm > button {
  margin-top: auto;
}
.lg-guest-act {
  margin-top: auto;
  padding-top: 24px;
  gap: 0;
}
.lg-guest-act .btn {
  width: 100%;
}
.lg-more,
.lg-card .au-legal {
  display: block;
  height: 20px;
  line-height: 20px;
  margin-top: 16px;
  font-size: 12px;
  text-align: center;
}
.lg-more {
  color: var(--muted);
  font-weight: 700;
}
.lg-more:hover {
  color: var(--text);
}

body:not(.sns-off) #loginForm {
  margin-top: 0;
}

/* ログイン：Guestカード内の14日間無料（ホームのバナーと同じデザイン） */
.lgb {
  --b-bg: #f4f7ea;
  margin-top: 22px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(90% 60% at 80% 0, rgba(142, 184, 0, 0.18), transparent 70%), var(--b-bg);
  border: 1px solid #dde5c4;
}
[data-theme="dark"] .lgb {
  --b-bg: #0f110c;
  background: radial-gradient(90% 60% at 80% 0, rgba(142, 184, 0, 0.16), transparent 70%), var(--b-bg);
  border-color: #23271b;
  color: #fff;
}
.lgb-stage {
  position: relative;
  height: 132px;
  perspective: 900px;
  overflow: hidden;
}
.lgb-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--b-bg) 100%);
  pointer-events: none;
}
.lgb-stage figure {
  position: absolute;
  top: 16px;
  width: 36%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 12px 26px rgba(40, 50, 10, 0.22);
  margin: 0;
}
[data-theme="dark"] .lgb-stage figure {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
}
.lgb-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9);
}
.lgb-stage figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-family: var(--font-en);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.2;
}
.lgb-stage figcaption b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}
.lgb-stage i {
  position: absolute;
  right: 9px;
  top: 9px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 7l9 5-9 5z'/%3E%3C/svg%3E")
    center/11px no-repeat;
}
.lgb-stage .c1 {
  left: -12%;
  transform: rotateY(28deg) rotateZ(-4deg) scale(0.86);
  opacity: 0.7;
  top: 24px;
}
.lgb-stage .c2 {
  left: 14%;
  transform: rotateY(18deg) rotateZ(-3deg);
  z-index: 2;
}
.lgb-stage .c3 {
  left: 44%;
  transform: rotateY(-10deg) rotateZ(2deg) scale(1.06);
  z-index: 3;
  top: 10px;
}
.lgb-stage .c4 {
  left: 76%;
  transform: rotateY(-28deg) rotateZ(4deg) scale(0.86);
  opacity: 0.7;
  top: 24px;
}
.lgb-body {
  padding: 2px 22px 18px;
  position: relative;
}
.lgb-kick {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent-dk);
}
[data-theme="dark"] .lgb-kick {
  color: var(--lime-soft);
}
.lgb-head {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 6px;
  letter-spacing: 0.02em;
  word-break: auto-phrase;
}
.lgb-head em {
  font-style: normal;
  color: var(--accent-dk);
  font-size: 1.2em;
}
[data-theme="dark"] .lgb-head em {
  color: var(--lime);
}
.lgb-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.lgb-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.5;
}
.lgb-list li::before {
  content: "";
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E")
    center/10px no-repeat;
}
[data-theme="dark"] .lgb-list li::before {
  background-color: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F110C' stroke-width='3.5'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E");
}
.lgb-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
[data-theme="dark"] .lgb-note {
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 480px) {
  .lgb-stage {
    height: 112px;
  }
  .lgb-body {
    padding: 2px 16px 16px;
  }
  .lgb-head {
    font-size: 19px;
  }
  .lgb-list {
    font-size: 12px;
  }
}

/* 補助クラス（旧インラインスタイル） */
.nx-lead-c {
  text-align: center;
  margin-top: 48px;
}
.nx-lead-c + .signup-f {
  margin: 16px auto 0;
}
.cf-mt {
  margin-top: 24px;
}
.f-left {
  text-align: left;
}
.au-card .au-back {
  margin-top: 20px;
}
