/* ==========================================
   NEIGHBOR プレ入門
   scope: .neighbor-prebeginner
========================================== */

/* ==========================================
   テーマカラー（ページごとに差し替え）
   <main class="neighbor-prebeginner np-theme-◯◯">
   指定なし = はじめて韓国語入門（ピンク）
========================================== */

.neighbor-prebeginner {
  --np-main: #ec6e77;
  --np-main-dark: #9d313d;
  --np-soft: #fff0f0;
  --np-softer: #fff8f8;
  --np-light: #edf9fa;
  --np-border: #f8c8ca;
  --np-accent: #9dd8dc;
  --np-note: #fff9b5;
  --np-cta-from: #ee747d;
  --np-cta-to: #e85d69;
  --np-cta-shadow: #c74653;
}

/* ハングル入門：グリーン */
.neighbor-prebeginner.np-theme-hangul {
  --np-main: #6aa32a;
  --np-main-dark: #3d6a14;
  --np-soft: #f1f8e6;
  --np-softer: #f8fcf1;
  --np-light: #e8f4d6;
  --np-border: #cfe5a8;
  --np-accent: #a8d26a;
  --np-note: #fdf6b0;
  --np-cta-from: #7bb83a;
  --np-cta-to: #5f9a22;
  --np-cta-shadow: #437414;
}

/* 単語・文法入門：ティール */
.neighbor-prebeginner.np-theme-tango {
  --np-main: #2fa08e;
  --np-main-dark: #1a665a;
  --np-soft: #e6f5f2;
  --np-softer: #f2faf8;
  --np-light: #def1ed;
  --np-border: #b3e0d8;
  --np-accent: #7fcdbf;
  --np-note: #fff9b5;
  --np-cta-from: #3db3a0;
  --np-cta-to: #279080;
  --np-cta-shadow: #1a6b5e;
}

/* シーン会話入門：ブルー */
.neighbor-prebeginner.np-theme-scene {
  --np-main: #2e8fc4;
  --np-main-dark: #1a5f8a;
  --np-soft: #e4f2f9;
  --np-softer: #f1f8fc;
  --np-light: #daeef8;
  --np-border: #b0d9ee;
  --np-accent: #7ec0e0;
  --np-note: #fff9b5;
  --np-cta-from: #40a0d6;
  --np-cta-to: #2680b2;
  --np-cta-shadow: #185f86;
}

/* 初級文法：オレンジ */
.neighbor-prebeginner.np-theme-shokyu {
  --np-main: #e8922c;
  --np-main-dark: #9a5710;
  --np-soft: #fff3e0;
  --np-softer: #fffaf2;
  --np-light: #fdecc8;
  --np-border: #f6d4a0;
  --np-accent: #f3b862;
  --np-note: #fff3b0;
  --np-cta-from: #f0a042;
  --np-cta-to: #d9801a;
  --np-cta-shadow: #a85f0c;
}

/* トピックトーク・フリートーク：パープル */
.neighbor-prebeginner.np-theme-topic {
  --np-main: #8a7bc4;
  --np-main-dark: #55478f;
  --np-soft: #efecf8;
  --np-softer: #f7f5fb;
  --np-light: #e6e1f4;
  --np-border: #cfc7e8;
  --np-accent: #b4a9db;
  --np-note: #fff9b5;
  --np-cta-from: #9a8cd0;
  --np-cta-to: #7766b6;
  --np-cta-shadow: #54458f;
}

.neighbor-prebeginner {
  color: #333;
  font-family:
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

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

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

.neighbor-prebeginner a {
  color: inherit;
  text-decoration: none;
}

.np-container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* HERO */

.np-hero {
  padding: 10px 0 72px;
  background:
    radial-gradient(circle at 10% 20%,
      rgba(248, 200, 202, 0.4) 0,
      rgba(248, 200, 202, 0) 22%),
    radial-gradient(circle at 90% 80%,
      rgba(157, 216, 220, 0.25) 0,
      rgba(157, 216, 220, 0) 24%),
    #fff;
}

.np-page-title {
  margin: 0 0 36px;
  color: var(--np-main-dark);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.04em;
}

.np-page-title span {
  display: block;
  margin-top: 5px;
  font-size: 0.52em;
  font-weight: 700;
}

.np-hero-image {
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(136, 71, 77, 0.1);
}

.np-hero-image img {
  width: 100%;
}

.np-lead {
  max-width: 840px;
  margin: 34px auto 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 2;
}

/* POINT NAV */

.np-point-nav {
  padding: 0 0 88px;
  background: #fff;
}

.np-point-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, calc((100% - 48px) / 3));
  gap: 24px;
}

.np-point-nav-card {
  position: relative;
  display: flex;
  min-height: 210px;
  padding: 32px 28px 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--np-border);
  border-radius: 24px;
  background: #fff;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.np-point-nav-card:hover {
  transform: translateY(-4px);
  background: var(--np-soft);
  box-shadow: 0 12px 28px rgba(117, 68, 74, 0.1);
}

.np-point-nav-number {
  margin-bottom: 15px;
  color: var(--np-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.np-point-nav-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  padding-bottom: 1rem;
}

.np-point-nav-arrow {
  position: absolute;
  bottom: 17px;
  color: var(--np-main);
  font-size: 22px;
  font-weight: 700;
}

/* CTA */

.np-cta-area {
  text-align: center;
  color: #fff;
  display: flex;
  margin-top: 48px;
  justify-content: center;
}

.np-cta {
  position: relative;
  display: flex;
  width: min(580px, 100%);
  min-height: 88px;
  padding: 18px 70px 18px 38px;
  flex-direction: column;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background:
    linear-gradient(135deg,
      var(--np-cta-from) 0%,
      var(--np-cta-to) 100%);
  box-shadow:
    0 8px 0 var(--np-cta-shadow),
    0 14px 28px rgba(213, 75, 88, 0.2);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.np-cta:hover {
  transform: translateY(3px);
  box-shadow:
    0 5px 0 var(--np-cta-shadow),
    0 10px 22px rgba(213, 75, 88, 0.2);
}

.np-cta-small {
  font-size: 14px;
  font-weight: 700;
}

.np-cta-main {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.4;
}

.np-cta-arrow {
  position: absolute;
  top: 50%;
  right: 30px;
  font-size: 36px;
  transform: translateY(-52%);
}

/* POINT SECTION */

.np-point-section {
  padding: 36px 0;
  background: var(--np-light);
}

.np-point-section-pink {
  background: var(--np-soft);
}

.np-section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.np-section-label {
  display: inline-flex;
  min-width: 122px;
  height: 38px;
  margin-bottom: 14px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--np-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.np-section-label strong {
  font-size: 18px;
}

.np-section-heading h2 {
  margin: 0;
  color: var(--np-main-dark);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.5;
}

.np-point-content {
  display: grid;
  padding: 48px;
  grid-template-columns:
    minmax(0, calc((100% - 60px) * 0.525)) minmax(320px, calc((100% - 60px) * 0.475));
  gap: 60px;
  align-items: center;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(85, 92, 93, 0.08);
}

.np-point-content-reverse .np-point-image {
  order: 2;
}

.np-point-content-reverse .np-point-text {
  order: 1;
}

.np-point-image {
  overflow: hidden;
  border-radius: 22px;
  background: #f7f7f7;
}

.np-point-image img {
  width: 100%;
}

.np-point-image:not(.np-point-image-wide) {
  max-height: 600px;
}

.np-point-image:not(.np-point-image-wide) img {
  object-fit: cover;
  object-position: top;
}

.np-point-text::before {
  content: "";
  display: block;
  width: 52px;
  height: 5px;
  margin-bottom: 25px;
  border-radius: 999px;
  background: var(--np-accent);
}

.np-point-copy {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.9;
}

.np-point-note {
  margin: 22px 0 0;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--np-note);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

/* CURRICULUM */

.np-curriculum {
  padding: 50px 0;
  background: #fff;
}

.np-section-heading-center {
  margin-bottom: 48px;
}

.np-section-en {
  display: block;
  margin-bottom: 5px;
  color: var(--np-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.np-table-wrap {
  overflow-x: auto;
  border: 1px solid #eee7e5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(91, 78, 73, 0.07);
}

.np-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.np-table th,
.np-table td {
  padding: 20px 22px;
  border-bottom: 1px solid #eee7e5;
  vertical-align: middle;
  text-align: left;
}

.np-table thead th {
  color: #fff;
  background: var(--np-main);
  font-size: 14px;
  font-weight: 700;
}

.np-table tbody tr:last-child td {
  border-bottom: 0;
}

.np-table tbody tr:nth-child(even) {
  background: var(--np-softer);
}

.np-table tbody tr:hover {
  background: var(--np-light);
}

.np-table td {
  font-size: 15px;
}

.np-table td:nth-child(2) {
  font-weight: 700;
}

.np-lesson {
  display: inline-flex;
  min-width: 86px;
  padding: 6px 10px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--np-main-dark);
  background: var(--np-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.np-cta-bottom {
  margin-top: 60px;
}

.np-sp {
  display: none;
}

@media (max-width: 900px) {
  .np-point-nav-grid {
    gap: 14px;
  }

  .np-point-nav-card {
    min-height: 195px;
    padding-inline: 18px;
  }

  .np-point-nav-text {
    font-size: 16px;
  }

  .np-point-content {
    padding: 38px;
    grid-template-columns: 100%;
    gap: 35px;
  }

  .np-point-content-reverse .np-point-image,
  .np-point-content-reverse .np-point-text {
    order: initial;
  }
}

@media (max-width: 767px) {
  .np-container {
    width: min(100% - 32px, 1120px);
  }

  .np-hero {
    padding: 38px 0 50px;
  }

  .np-page-title {
    margin-bottom: 24px;
  }

  .np-lead {
    margin-top: 25px;
    font-size: 15px;
    line-height: 1.9;
  }

  .np-point-nav {
    padding-bottom: 64px;
  }

  .np-point-nav-grid {
    grid-template-columns: 100%;
  }

  .np-point-nav-card {
    min-height: auto;
    padding: 25px 38px 38px;
  }

  .np-cta {
    min-height: 78px;
    padding: 14px 55px 14px 26px;
  }

  .np-cta-main {
    font-size: 17px;
  }

  .np-point-section {
    padding: 64px 0;
  }

  .np-point-content {
    padding: 20px;
    gap: 28px;
    border-radius: 22px;
  }

  .np-point-copy {
    font-size: 18px;
  }

  .np-curriculum {
    padding: 65px 0;
  }

  .np-sp {
    display: block;
  }
}

/* TICKET BANNER */

.np-ticket-banner {
  max-width: 800px;
  margin: 40px auto 0;
}

.np-ticket-banner a {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.np-ticket-banner a:hover {
  opacity: 0.85;
}

.np-ticket-banner br {
  display: none;
}

.np-ticket-banner img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* ==========================================
   受講方法・無料会員登録
   NEIGHBORデザイン統一版
========================================== */

.np-howto {
  margin-top: 80px;
  padding: 48px;
  border-radius: 32px;
  background: var(--np-soft);
}

/* 見出し */

.np-howto-heading {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  color: var(--np-main-dark);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

/* 冒頭説明 */

.np-howto-text {
  max-width: 900px;
  margin: 0 auto 12px;
  font-size: 16px;
  line-height: 1.9;
}

/* STEP画像 */

.np-howto-steps {
  max-width: 940px;
  margin: 36px auto 28px;
  padding: 28px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(85, 92, 93, 0.07);
}

.np-howto-steps picture {
  display: block;
}

.np-howto-steps img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 無料会員登録までの流れ */

.np-howto-flow {
  display: flex;
  justify-content: center;
  margin: 0 0 36px;
}

.np-howto-flow a {
  position: relative;
  display: inline-flex;
  min-width: 300px;
  min-height: 52px;
  padding: 12px 40px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--np-main);
  border-radius: 999px;
  background: #fff;
  color: var(--np-main);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.np-howto-flow a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 20px;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-52%);
}

.np-howto-flow a:hover {
  background: var(--np-main);
  color: #fff;
  transform: translateY(-2px);
}

/* 下部説明 */

.np-howto-body {
  max-width: 940px;
  margin: 0 auto;
  padding: 28px 32px 8px;
  border-radius: 24px;
  background: var(--np-light);
}

.np-howto-body>div {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.9;
}

/*
  HTML内に追加したCTAは非表示。
  この直後にある既存 .np-cta を使用する。
*/
.np-howto-cta {
  display: none;
}

/* Tablet */

@media (max-width: 900px) {
  .np-howto {
    padding: 38px;
  }

  .np-howto-steps {
    padding: 24px;
  }
}

/* Smartphone */

@media (max-width: 767px) {
  .np-howto {
    margin-top: 56px;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .np-howto-heading {
    margin-bottom: 24px;
    font-size: 25px;
  }

  .np-howto-text {
    font-size: 15px;
    line-height: 1.9;
  }

  .np-howto-steps {
    margin: 28px auto 22px;
    padding: 18px 14px;
    border-radius: 16px;
  }

  .np-howto-flow {
    margin-bottom: 28px;
  }

  .np-howto-flow a {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 11px 42px 11px 20px;
    font-size: 14px;
  }

  .np-howto-flow a::after {
    right: 18px;
  }

  .np-howto-body {
    padding: 22px 20px 4px;
    border-radius: 16px;
  }

  .np-howto-body>div {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.8;
  }
}

/* ==========================================
   単語入門などで追加したパーツ
   （特長・レッスンの流れ・対象者・フレーズ・FAQ）
========================================== */

/* POINT NAV 説明文 */
.np-point-nav-desc {
  margin-top: 8px;
  padding-bottom: 1rem;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

/* 特長セクション本文 */
.np-point-image-stack {
  display: grid;
  gap: 16px;
  background: transparent;
}

.np-point-image-stack img {
  border-radius: 16px;
}

.np-point-body {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.9;
}

.np-point-caption {
  margin: 0 0 12px;
  color: #666;
  font-size: 13px;
}

.np-hl {
  background: linear-gradient(transparent 60%, var(--np-note) 60%);
  font-weight: 700;
}

.np-em {
  color: var(--np-main-dark);
  font-weight: 700;
}

/* レッスンの流れ */
.np-flow {
  padding: 100px 0;
  background: #fff;
}

.np-flow-step {
  margin-bottom: 40px;
  padding: 36px 40px;
  border-radius: 24px;
  background: var(--np-soft);
}

.np-flow-step:last-child {
  margin-bottom: 0;
}

.np-flow-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.np-flow-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--np-main);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.np-flow-head h3 {
  margin: 0;
  color: var(--np-main-dark);
  font-size: 24px;
  font-weight: 800;
}

.np-flow-text {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.9;
}

.np-flow-images {
  display: grid;
  gap: 16px;
}

.np-flow-images-4 {
  grid-template-columns: repeat(4, 1fr);
}

.np-flow-images-2 {
  grid-template-columns: repeat(2, 1fr);
}

.np-flow-images-1 {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.np-flow-images img {
  width: 100%;
  border-radius: 14px;
  background: #fff;
}

/* 対象者 */
.np-target {
  padding: 0 0 100px;
  background: #fff;
}

.np-target-box {
  padding: 36px 40px;
  border: 2px solid var(--np-border);
  border-radius: 24px;
  background: #fff;
}

.np-target-box p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
}

.np-target-box p:last-child {
  margin-bottom: 0;
}

/* フレーズ例 */
.np-phrases {
  padding: 100px 0;
  background: var(--np-light);
}

.np-phrases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.np-phrase-card {
  padding: 28px 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(85, 92, 93, 0.08);
}

.np-phrase-card h3 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--np-accent);
  color: var(--np-main-dark);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.5;
}

.np-phrase-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-phrase-card li {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px dashed var(--np-border);
}

.np-phrase-card li:last-child {
  border-bottom: 0;
}

.np-phrase-ko {
  color: var(--np-main-dark);
  font-size: 20px;
  font-weight: 800;
}

.np-phrase-read {
  color: #777;
  font-size: 13px;
}

.np-phrase-ja {
  font-size: 15px;
  font-weight: 600;
}

.np-phrases-note {
  margin: 28px 0 0;
  font-size: 14px;
  text-align: center;
}

/* FAQ */
.np-faq {
  padding: 100px 0;
  background: #fff;
}

.np-faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.np-faq-item {
  margin-bottom: 14px;
  border: 2px solid var(--np-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.np-faq-item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  color: var(--np-main-dark);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

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

.np-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--np-main);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.np-faq-item[open] summary::after {
  content: "−";
}

.np-faq-item[open] summary {
  background: var(--np-soft);
}

.np-faq-answer {
  padding: 20px 24px 24px;
}

.np-faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .np-flow-images-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .np-phrases-grid {
    grid-template-columns: 100%;
  }
}

@media (max-width: 767px) {

  .np-flow,
  .np-phrases,
  .np-faq {
    padding: 65px 0;
  }

  .np-target {
    padding-bottom: 65px;
  }

  .np-flow-step,
  .np-target-box {
    padding: 22px 18px;
  }

  .np-flow-images-2 {
    grid-template-columns: 100%;
  }

  .np-faq-item summary {
    padding: 16px 48px 16px 16px;
    font-size: 15px;
  }

  .np-faq-answer {
    padding: 16px;
  }
}