@charset "utf-8";

/* =============================================
ナイトプランLP
front-page.css を読み込んだ上で、このファイルで差分だけ上書きする。
「夜」をLPの背骨にする：ネイビー=夜、黄=夜に灯るお得、赤=行動。
バッジで確立した意匠（赤丸・金リボン・黄数字・キラキラ）を反復する。
============================================= */

/* SPのみ表示するインライン要素（display--only-sp は block になるため使えない） */
.nd-inline-sp {
  display: none;
}
/* .heading--large は英字ラベルを縦積みするための column flex。
   .wrap-unit を置くと縦一列になってしまうので、本文側だけ行方向に戻す
   （英字ラベルは flex-basis 100% で従来どおり単独行） */
.nd-diff .heading--large,
.feature .heading--large {
  flex-flow: row wrap;
  justify-content: center;
  column-gap: 0;
}
.nd-diff .heading--large::before,
.feature .heading--large::before {
  flex: 0 0 100%;
}

/* --- 画像プレースホルダ（支給後は <img> に差し替える） --- */
.lp-ph {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40'%3E%3Crect width='48' height='40' rx='5' fill='%23e2e8f0'/%3E%3Ccircle cx='14.5' cy='13' r='4' fill='%23ffffff'/%3E%3Cpath d='M6 33.5 18 20l7.5 8.2L31 22.6 42 33.5z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: clamp(72px, 18%, 120px) auto;
}
.lp-ph--square {
  aspect-ratio: 1;
}
.lp-ph--wide {
  aspect-ratio: 16 / 6;
}
/* 特長カード内は .feature__image と同じ寸法に合わせる */
.feature__box-inner .lp-ph {
  width: 25vw;
  max-width: 290px;
}


/* --- FV：LPでは次の比較セクションとの間隔を広げる --- */
.fv {
  padding-bottom: 80px;
}
/* FV先頭の告知バー */
.nd-fv-flash {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  /* 上辺にピルが半分はみ出すぶんの外余白と内余白 */
  margin: 18px auto 22px;
  padding: 14px 16px 10px;
  border: solid 2px var(--white);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 2px 6px var(--night-shadow-weak);
}
/* プラン名ピル：吹き出しの上辺に半分はみ出して乗る */
.nd-fv-flash__pill {
  --clamp-max: 16;
  --clamp-min: 12;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -52%);
  padding: 6px 10px;
  border: 2px solid var(--red);
  border-radius: 999em;
  background: var(--white);
  color: var(--red);
  line-height: 1;
  white-space: nowrap;
}
.nd-fv-flash__deal {
  --clamp-max: 22;
  --clamp-min: 15;
  line-height: 1.1;
  white-space: nowrap;
}
.nd-fv-flash__deal-num {
  --clamp-max: 32;
  --clamp-min: 21;
  color: var(--yellow);
}
/* メインコピーに向けた吹き出しのしっぽ（白フチ＋赤本体） */
.nd-fv-flash::before,
.nd-fv-flash::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-color: transparent;
  border-bottom-width: 0;
}
.nd-fv-flash::before {
  top: 100%;
  border-width: 14px 14px 0;
  border-top-color: var(--white);
}
.nd-fv-flash::after {
  top: calc(100% - 3px);
  border-width: 14px 14px 0;
  border-top-color: var(--red);
}

/* テキスト列とKVの間隔を広げる */
.fv__inner {
  gap: 50px;
}
/* KVをテキスト側の告知バーと高さを揃えるぶん下げる */
.fv__image {
  padding-top: 26px;
}
/* メインコピーが長いぶんテキスト列を広げ、字間を詰める */
.fv__text {
  flex: 0 0 680px;
}
.fv__maincopy {
  --clamp-max: 39;
  --clamp-min: 20;
  letter-spacing: 0;
}
.fv__maincopy .font--red {
  --clamp-max: 56;
  --clamp-min: 31;
}
/* FVのリード文（上下の罫線で挟む） */
.nd-fv-lead {
  --clamp-max: 20;
  --clamp-min: 16;
  margin: 0 auto 30px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--dark-blue);
  border-bottom: 1px solid var(--dark-blue);
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}

/* --- 料金：LPはNIGHTが主役。赤枠にし、「1番人気」バッジは付けない --- */
#standard-night.pricing__card {
  border-color: var(--red);
}
/* リボンの色は枠色に合わせる（NIGHT=赤、スタンダードは既定の紺のまま） */
#standard-night .pricing__ribbon {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* --- 特長：LPは見出し直下にカードが来る（lead-boxなし）ため、
   上に飛び出す番号バッジぶんの間隔を確保する --- */
.feature__inner {
  margin-top: clamp(48px, 9vw, 100px);
}

/* =============================================
他のオンライン英会話との違い
夜の中でアレバ列だけが灯っている構図。他社はゴーストパネルで沈める
============================================= */
.nd-diff__grid {
  --clamp-max: 18;
  --clamp-min: 16;
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
  gap: 0 16px;
  align-items: stretch;
}
.nd-diff__labels,
.nd-diff__col {
  display: grid;
  grid-row: 1 / span 4;
  grid-template-rows: subgrid;
}
.nd-diff__labels {
  grid-column: 1;
}
.nd-diff__label {
  --clamp-max: 16;
  --clamp-min: 14;
  display: flex;
  /* .wrap-unit は flex item になるので、折り返せるようにしておく */
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: center;
  padding: 18px 16px;
  border-left: 1px solid var(--night-line);
  text-align: center;
  border-right: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line-weak);
  background: var(--night-panel);
  color: var(--night-text);
  font-weight: 700;
  line-height: 1.5;
}
/* 先頭（見出し行）は空セルなので面を持たせない */
.nd-diff__label:first-child {
  border: none;
  background: transparent;
}
.nd-diff__label:nth-child(2) {
  border-top: 1px solid var(--night-line);
}
.nd-diff__label:last-child {
  border-bottom: 1px solid var(--night-line);
}
.nd-diff__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 24px 16px;
  font-weight: 700;
  text-align: center;
}
.nd-diff__col--ghost {
  border: 1px solid var(--night-line);
  background: var(--night-panel-weak);
  color: var(--night-text-weak);
}
.nd-diff__col--ghost .nd-diff__cell {
  border-bottom: 1px solid var(--night-line-weak);
}
.nd-diff__col--ghost .nd-diff__cell:last-child {
  border-bottom: none;
}
.nd-diff__col--own {
  position: relative;
  z-index: 1;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 14px 44px var(--night-shadow), 0 0 70px var(--night-glow);
}
.nd-diff__col--own .nd-diff__cell {
  border-bottom: 1px solid var(--light-blue);
}
.nd-diff__col--own .nd-diff__cell:last-child {
  border-bottom: none;
}
.nd-diff__ribbon {
  --clamp-max: 15;
  --clamp-min: 13;
  white-space: nowrap;
  align-self: stretch;
  padding: 10px 0;
  background: var(--gold-yellow);
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%, 6px 50%);
  color: var(--black);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}
.nd-diff__cell--head {
  justify-content: flex-start;
  padding: 14px 14px 20px;
}
.nd-diff__col--ghost .nd-diff__cell--head {
  justify-content: center;
}
.nd-diff__brand {
  --clamp-max: 25;
  --clamp-min: 16;
  color: var(--red);
  font-weight: 900;
}
.nd-diff__ghost-name {
  --clamp-max: 18;
  --clamp-min: 16;
}
/* 定価→キャンペーン価格の併記（料金カードの取り消し意匠に合わせる） */
.nd-diff__price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nd-diff__price-strike {
  --clamp-max: 15;
  --clamp-min: 12;
  position: relative;
  display: inline-block;
  color: var(--navy-a55);
  line-height: 1.2;
  white-space: nowrap;
}
.nd-diff__price-strike::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1px),
    currentColor calc(50% - 1px),
    currentColor calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}
.nd-diff__price-arrow {
  --clamp-max: 16;
  --clamp-min: 13;
  color: var(--navy-a55);
  line-height: 1;
}
.nd-diff__price-num {
  --clamp-max: 31;
  --clamp-min: 25;
  color: var(--red);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.nd-diff__price-unit {
  --clamp-max: 18;
  --clamp-min: 15;
  color: var(--red);
}
.nd-diff__note {
  --clamp-max: 12;
  --clamp-min: 11;
  color: var(--navy-a55);
  font-weight: 500;
}
.nd-diff__ghost-price {
  --clamp-max: 18;
  --clamp-min: 15;
}
.nd-diff__mark {
  --clamp-max: 41;
  --clamp-min: 34;
  color: var(--red);
  line-height: 1;
}
.nd-diff__mark--ghost {
  color: var(--night-text-mute);
}

/* =============================================
よくあるお悩み → 転換
悩みは彩度を落として沈ませ、くさびで背景ごと夜に切り替える
============================================= */
.nd-problem__lead {
  --clamp-max: 18;
  --clamp-min: 14;
  margin-bottom: clamp(30px, 4vw, 50px);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.9;
  text-align: center;
}
.nd-problem__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 32px);
}
.nd-problem__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 18px 24px;
  border: 3px solid var(--white);
}
.nd-problem__img {
  display: block;
  width: 100%;
  height: auto;
}
.nd-problem__text {
  --clamp-max: 16;
  --clamp-min: 15;
  position: relative;
  margin-top: auto;
  padding: 14px 10px;
  background: var(--white);
  color: var(--dim-navy);
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}
.nd-problem__text::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 0 9px 11px;
  border-color: transparent transparent var(--white);
}
.nd-pivot {
  position: relative;
  padding: 130px 0 54px;
}
.nd-pivot::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 72px;
  background: var(--pale-blue);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.nd-pivot__card {
  --clamp-max: 24;
  --clamp-min: 16;
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto;
  padding: 22px 46px;
  border: 3px solid var(--red);
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  line-height: 1.8;
  text-align: center;
  box-shadow: 0 14px 40px var(--night-shadow);
}
/* 黄色マーカー（見出し・転換カードで共用。改行をまたいでも各行に引く） */
.nd-marker {
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* =============================================
アレバが選ばれる理由
夜空に白カードを浮かべ、バッジ意匠の赤丸メダルで番号を打つ
============================================= */
.nd-reason {
  padding: 0 0 100px;
}
.nd-reason__inner {
  display: grid;
  /* 上に26px飛び出す番号メダルと前のカードが密着しない間隔 */
  gap: 50px;
}
.nd-reason__card {
  position: relative;
  padding: 44px 56px 44px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 50px var(--night-shadow);
}
.nd-reason__medal {
  --clamp-max: 30;
  --clamp-min: 24;
  position: absolute;
  top: -26px;
  left: -18px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M17 27.5Q17 34 23.5 34Q17 34 17 40.5Q17 34 10.5 34Q17 34 17 27.5Z'/%3E%3Cpath d='M83 63Q83 70 90 70Q83 70 83 77Q83 70 76 70Q83 70 83 63Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px var(--night-shadow-weak);
}
.nd-reason__head {
  --clamp-max: 30;
  --clamp-min: 20;
  margin-bottom: clamp(12px, 1.6vw, 18px);
  color: var(--navy);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.5;
}
.nd-reason__body {
  display: grid;
  grid-template-columns: 1fr clamp(240px, 36%, 340px);
  gap: clamp(20px, 2.6vw, 36px);
  align-items: center;
}
.nd-reason__text {
  --clamp-max: 14;
  --clamp-min: 14;
  display: grid;
  gap: 1em;
  color: var(--navy);
  line-height: 2;
}
.nd-reason__figure {
  /* margin:auto でストレッチが切れるため、幅は明示する */
  width: 100%;
  margin: auto;
}
.nd-reason__figure--sm {
  max-width: 250px;
}
.nd-reason__img {
  display: block;
  width: 100%;
  height: auto;
}
/* =============================================
SP
============================================= */
@media screen and (max-width: 1079px) {
  /* front-page はこの幅でFVを縦積みにし、.fv__text を可変（0 1 auto）に戻している。
     LPは基準幅だけ 630px → 680px に広げた上で、その可変指定を引き継ぐ。
     引き継がないと flex-basis の 680px が縦積み後は「高さ」として効いてしまう */
  .fv__text {
    flex: 0 1 auto;
    max-width: 680px;
  }
}


@media screen and (max-width: 767px) {
  .nd-inline-sp {
    display: inline;
  }

  .nd-fv-flash {
    margin-bottom: 16px;
    /* ピルのはみ出しぶんの上余白は確保しつつ、横は345px内に収める */
    padding: 13px 8px 8px;
  }
  .nd-fv-flash__pill {
    padding: 4px 10px;
  }

  .fv {
    padding-bottom: 40px;
  }

  /* 基底のgap:50pxはPC用。SPはfront-pageのgap:0に合わせ直す */
  .fv__inner {
    gap: 0;
  }

  .fv__maincopy {
    letter-spacing: -1px;
  }

  .nd-fv-flash::before {
    top: 100%;
    border-width: 12px 12px 0;
    border-top-color: var(--white);
  }
  .nd-fv-flash::after {
    top: calc(100% - 3px);
    border-width: 12px 12px 0;
    border-top-color: var(--red);
  }
  .fv__maincopy,
  .fv__appeal {
    margin-bottom: 18px;
  }

  /* KVを画面幅いっぱいにせず、少し余白を残す */
  .fv__image {
    width: 90%;
  }

  .nd-fv-lead {
    margin-bottom: 20px;
    padding: 12px 0 16px;
  }

  .feature__box-inner .lp-ph {
    width: 60%;
    max-width: 250px;
    margin-inline: auto;
  }

  /* 比較テーブルはPCと同じレイアウトのまま横スクロールで見せる */
  .nd-diff__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .nd-diff__grid {
    min-width: 560px;
    /* ラベル列は「21時以降の」が1行で入る幅を確保する */
    grid-template-columns: 88px 1fr 1fr 1fr;
    gap: 0 8px;
  }
  .nd-diff__label {
    --clamp-min: 13;
    padding: 4px;
  }
  /* 狭いラベル列では、塊ごとに必ず行を分ける */
  .nd-diff__label .wrap-unit {
    flex-basis: 100%;
  }
  .nd-diff__ribbon {
    --clamp-min: 12;
    align-self: auto;
    padding: 8px 12px;
  }
  .nd-diff__cell {
    padding: 8px;
    gap: 2px;
  }
  .nd-diff__price-row {
    flex-direction: column;
    gap: 0;
  }
  .nd-diff__price-arrow {
    transform: rotate(90deg);
  }

  .nd-problem__list {
    grid-template-columns: 1fr;
  }
  .nd-problem {
    padding-bottom: 40px;
  }
  .nd-problem__item {
    padding: 0px 14px 14px;
  }
  .nd-problem__img {
    max-width: 210px;
    margin-inline: auto;
  }

  .nd-pivot {
    padding: 76px 0 24px;
  }
  .nd-pivot::before {
    height: 48px;
  }
  .nd-pivot__card {
    --clamp-max: 15;
    --clamp-min: 15;
    padding: 16px 20px;
  }

  /* 1frのmin-content下限でカードが345pxを超えて横スクロールが出るのを防ぐ */
  .pricing__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .nd-reason {
    padding-top: 10px;
  }
  .nd-reason__inner {
    gap: 20px;
  }
  .nd-reason__card {
    padding: 16px;
  }
  .nd-reason__body {
    grid-template-columns: 1fr;
  }
  .nd-reason__figure {
    width: 60%;
  }
  .nd-reason__card:nth-child(2) .nd-reason__figure {
    width: 80%;
  }
  /* SPは円をカード角ではなく見出しの左に置き、折り返し時も縦中央に揃える */
  .nd-reason__copy {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }
  /* 見出しのmarginごと縦中央に揃ってしまうため、行間はgapに寄せる */
  .nd-reason__copy .nd-reason__head {
    margin-bottom: 0;
  }
  .nd-reason__copy .nd-reason__text {
    grid-column: 1 / -1;
  }
  .nd-reason__medal {
    --clamp-max: 22;
    --clamp-min: 22;
    position: static;
    width: 56px;
    height: 56px;
    box-shadow: 0 2px 6px var(--night-shadow-faint);
  }
}
