* {
  box-sizing: border-box;
}
body {
  position: relative;
  margin: 0;
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #2a2a35;
  background: #C5DBFF;
  line-height: 1.7;
  /* 本文(標準テキスト)の基準サイズ。以前はセクションごとに12/13/14pxがバラバラに
     指定されていたため、ここを唯一の基準にして統一。新しい本文テキストは個別に
     font-sizeを指定せず、ここから継承させること。ボタン等のUI文字(.pl-cta等)は
     この影響を受けないよう個別にfont-sizeを明示してある。 */
  font-size: 14px;
}

/* 広い画面の左右余白にだけ流す、縦のうねうね波線(SVGタイルをrepeat-yで縦に繰り返す)。
   ヒーロー下端の波型区切りと呼応させて、サイト全体で「波」のモチーフに統一する。 */
.pl-side-wave {
  /* WordPress管理バーのように画面に固定して常に同じ位置に見せる。
     ヘッダー・ヒーロー・プランは自前の不透明な背景を持つので、
     マイナスのz-indexで後ろに回せば、それらの下では自然に隠れて
     見える(top/bottomの余白計算やフェード処理は不要になった)。 */
  position: fixed;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
  background-repeat: repeat-y;
  background-position: center top;
  /* 心電図(ECG)風の波形。医療系サイトらしいモチーフに変更。 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='140' viewBox='0 0 40 140'%3E%3Cpath d='M20,0 L20,25 L26,32 L20,39 L20,45 L10,50 L32,60 L12,68 L20,73 L20,85 L27,95 L20,105 L20,140' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pl-side-wave-left {
  left: 60px;
}
.pl-side-wave-right {
  right: 60px;
}

/* ヒーロー下端の波型区切り(テンプレート固定版)。ヘッダー高さ(45px)+ヒーローの
   min-height(min(72vh,560px))の下端に合わせて計算済み。position:absoluteなので
   ページと一緒にスクロールする(bodyがposition:relativeなので基準はページ全体)。 */
.pl-hero-wave-fixed {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(min(72vh, 560px) - 2px);
  width: 100%;
  height: 48px;
  z-index: 3;
  display: block;
}

/* スクロールで画面に入ったセクションがふわっと下から出てくる演出(reveal.js) */
.pl-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.pl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* テーマ全体の共通ルール: ベージュの背景の上に、文章は白いカードに乗せて浮かせる。
   ヒーロー(青グラデ)・プラン(濃紺)のようにフルブリードで意図的に色をつけている
   セクションはこの対象外。 */
.pl-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.pl-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  background: #1c1c22;
  color: #fff;
}
.pl-header-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.pl-header-title {
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.pl-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  /* ぼかした光の玉2つ+斜めの薄い線パターン+ベースのグラデーション。
     動画の読み込み中/失敗時のフォールバック、かつ動画の隙間から透けて見える下地。 */
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,0.22), transparent 45%),
    radial-gradient(circle at 6% 88%, rgba(255,255,255,0.14), transparent 42%),
    repeating-linear-gradient(125deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 36px),
    linear-gradient(160deg, #6bb0f0 0%, #2f7dd9 55%, #1f5fb0 100%);
}
/* フルブリード背景動画版: 動画がヒーロー全体を覆い、文字はその上に重なる */
.pl-hero-fullbleed {
  min-height: min(72vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 72px;
}
.pl-hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.pl-hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15,30,55,0.48);
  z-index: 1;
}
.pl-hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.pl-hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 48px;
  z-index: 3;
  display: block;
}
.pl-hero-copy {
  font-size: clamp(24px, 5.5vw, 38px);
  margin: 0 0 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.pl-hero-sub {
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 24px;
  opacity: 0.95;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.pl-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #2f7dd9;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 32px 10px 10px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.pl-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pl-section-title {
  text-align: center;
  font-size: 22px;
  margin: 0 0 28px;
}
/* 見出しルール(サイト全体で統一): h1=白い箱の外、h2=箱の外+背景に直置きの白文字、
   h3=箱の中+背景色(#C5DBFF)の文字。h2は必ずこのクラスで白文字にする
   (「オンライン勉強会のすすめ」も2026-07-20に例外をやめて統一した)。 */
.pl-exam > .pl-section-title,
.pl-history > .pl-section-title,
.pl-features > .pl-section-title,
.pl-philosophy > .pl-section-title,
.pl-dedication > .pl-section-title,
.pl-study-group > .pl-section-title {
  color: #fff;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(31,102,191,0.25);
}

/* セクション間の縦の余白を1つの基準(48px)に統一。以前はセクションごとにmargin/padding
   がバラバラ(0px〜48pxが混在、隣接セクション同士の余白が二重に加算される箇所もあった)
   だったため、外側の余白はここに一本化した。新しいセクションを追加する場合もこの
   リストに加えれば同じ間隔になる(個別にmargin-top/padding-topを設定しないこと)。 */
.pl-exam,
.pl-history,
.pl-features,
.pl-philosophy,
.pl-dedication,
.pl-study-group,
.pl-pricing {
  margin-top: 48px;
}

.pl-features {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.pl-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.pl-feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  /* 本文はタグで囲まれていない素のテキストなので、親側をleftにして
     アイコン・タイトルだけ個別にcenterへ戻す形にする */
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pl-feature-icon {
  /* カードの縦横幅が画像ごとにバラつかないよう、高さ基準で揃えて幅は縦横比を保ったまま自動調整 */
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto 8px;
}
.pl-feature-card h3 {
  text-align: center;
  margin: 8px 0;
  font-size: 21px;
  color: #C5DBFF;
}
.pl-feature-card p {
  color: #555;
  margin: 0;
}

/* H2(見出し)は箱の外、本文は下の白カード(.pl-solo-card)の中、という構成に統一 */
.pl-exam {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.pl-history {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.pl-solo-card {
  padding: 32px 28px;
}
.pl-exam-text {
  text-align: left;
  color: #555;
}
.pl-history-text {
  text-align: left;
  color: #555;
}

/* YOKARO作成のこだわり(旧: 解説をあえて…/AIとの正しい距離感/続けられる仕掛けを統合)。
   中身は.pl-gamify-grid/.pl-gamify-itemをそのまま再利用して見た目を揃える。 */
.pl-dedication {
  padding: 0 20px;
}

.pl-philosophy {
  /* 個々のpl-philosophy-itemが既に白カードなので、外枠にも背景色を付けると
     「白い箱の中に白い箱」の入れ子構造になってしまう。外枠は素の背景のままにする。 */
  padding: 0 20px;
}
.pl-philosophy-lead {
  text-align: center;
  color: #555;
  max-width: 500px;
  margin: -16px auto 28px;
}
.pl-philosophy-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.pl-philosophy-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
/* タイトルは黒・中央寄せに統一(feature-card/gamify-itemと揃える)。
   青は「押せる要素」専用の色にするため、見出しには使わない。 */
.pl-philosophy-item h3 {
  text-align: center;
  margin: 0 0 6px;
  font-size: 21px;
  color: #C5DBFF;
}
.pl-philosophy-item p {
  margin: 0;
  color: #555;
}

.pl-study-group {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.pl-study-group-text {
  text-align: left;
  color: #555;
}
.pl-video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin: 24px 0 0;
  border-radius: 14px;
  overflow: hidden;
}
.pl-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pl-gamify {
  padding: 48px 20px;
}
.pl-gamify-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pl-gamify-item {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  /* 本文は素のテキストなので、親側をleftにしてアイコン・タイトルだけ個別にcenterへ戻す */
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
/* Dr.ヨカロウ&Nsクロエの枠だけ、1・2枠目の下で2枠分の横幅いっぱいに広がる */
.pl-gamify-item-wide {
  grid-column: span 2;
}
.pl-gamify-item h3 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 21px;
  color: #C5DBFF;
}
.pl-gamify-item p {
  margin: 0;
  color: #555;
}
.pl-gamify-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 10px;
}
.pl-gamify-icon-lg {
  width: 96px;
  height: 96px;
}
.pl-gamify-comic {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 0 auto 12px;
  border: 3px solid #1c1c22;
  border-radius: 10px;
}
@media (max-width: 480px) {
  .pl-gamify-grid {
    grid-template-columns: 1fr;
  }
  .pl-gamify-item-wide {
    grid-column: span 1;
  }
}

.pl-pricing {
  /* 波線(z-index:1)より手前に出して、下に隠れないようにする */
  position: relative;
  z-index: 2;
  background: #1c1c22;
  color: #f3ead0;
  padding: 48px 20px;
}
.pl-pricing .pl-section-title {
  color: #fff;
}
.pl-pricing-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pl-price-card {
  background: #2a2a35;
  border: 1px solid #c9a24b;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.pl-price-card-highlight {
  border-width: 2px;
}
.pl-price-card h3 {
  margin: 0 0 8px;
  /* このカードだけ料金プラン専用の濃紺デザインで、h3=枠内背景色の統一ルールの対象外
     (意図的な例外)。本文の基準サイズ変更で見た目が変わらないよう明示している。 */
  font-size: 18px;
}
.pl-price {
  font-size: 28px;
  font-weight: bold;
  margin: 8px 0;
  color: #f3ead0;
}
.pl-price-desc {
  color: #d9c489;
  min-height: 40px;
}
.pl-price-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 14px;
  background: #2f7dd9;
  color: #fff;
  text-decoration: none;
}
.pl-price-btn:hover {
  filter: brightness(1.08);
}
.pl-price-btn-disabled {
  background: #444;
  color: #999;
}
.pl-pricing-note {
  text-align: center;
  color: #aaa;
  margin-top: 24px;
}

.pl-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #fff;
  font-weight: bold;
}

.pl-header-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.pl-page-wrap {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}
.pl-page {
  padding: 28px 32px;
}
.pl-page-title {
  font-size: 28px;
  font-weight: 800;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 24px;
  text-align: center;
  color: #C5DBFF;
  background: #fff;
  border: 1px solid #e5e2da;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.pl-page-content {
  font-size: 14px;
  color: #333;
  /* クラシックエディターの「ビジュアル」タブで保存すると、属性の無い<p>タグは
     TinyMCEのremovep処理で自動的にプレーンテキスト(改行のみ)へ戻されてしまう
     (2026-07-19に実際発生、確認済み)。<p>タグの有無に関わらず空行で段落が
     分かるよう、白紙テキストの改行をそのまま見た目に反映させる。 */
  white-space: pre-line;
}
.pl-page-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px auto;
  border-radius: 10px;
}
.pl-intro-box {
  margin: 0 0 24px;
  padding: 20px 24px;
  border: 1px solid #e5e2da;
  border-radius: 14px;
  white-space: pre-line;
}
.pl-page-wrap > h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 24px 0;
  text-shadow: 0 2px 8px rgba(31,102,191,0.25);
}
.pl-page-content h3 {
  font-size: 21px;
  font-weight: 800;
  color: #C5DBFF;
  text-align: center;
  margin: 32px 0 16px;
}
.pl-page-content h3:first-child {
  margin-top: 0;
}
.pl-page-content ol,
.pl-page-content ul {
  padding-left: 22px;
}
.pl-page-content li {
  margin-bottom: 10px;
}
.pl-page-content p {
  margin: 0 0 16px;
  line-height: 1.8;
}
.pl-flow-note {
  text-align: center;
  font-size: 15px;
  margin: 20px 0;
  padding: 14px;
  background: #f5f3ee;
  border-radius: 8px;
}
.pl-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.pl-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 13px;
}
.pl-page-content th,
.pl-page-content td {
  border: 1px solid #e5e2da;
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
}

.pl-step {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e2da;
}
.pl-step:last-child {
  border-bottom: none;
}
.pl-page-content .pl-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  color: #1c1c22;
  margin: 0 0 12px;
}
.pl-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2f7dd9;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}
.pl-step p {
  margin: 0 0 12px;
  line-height: 1.9;
}
.pl-step-img {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.pl-step-img a {
  display: inline-block;
  border: 1px solid #e5e2da;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}
.pl-step-img img {
  max-height: 160px;
  width: auto;
  display: block;
}

/* アイコン(GIF等)+「Read More」だけのリンクタグ。何箇所にも貼って使う用途。 */
.pl-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  padding: 1px 14px 1px 1px;
  border: 1px solid #f3cdd6;
  border-radius: 999px;
  background: #fdeef1;
  transition: box-shadow .12s ease, transform .12s ease;
}
.pl-icon-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}
/* 詳細ページ(page.php)の本文内では.pl-page-content imgが margin:16px auto 等を
   全imgに効かせてしまい、Read Moreアイコンだけ縦幅がTOPページと変わってしまう
   (2026-07-20に発覚)。.pl-page-content内でもTOPページと同じ見た目に戻す。 */
.pl-page-content .pl-icon-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin: 0;
  border-radius: 0;
}
.pl-icon-link-more {
  font-size: 13px;
  font-weight: bold;
  color: #c65b73;
}
.pl-icon-link:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.pl-form-row {
  margin-bottom: 18px;
}
.pl-form-row label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}
.pl-form-row input,
.pl-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}
.pl-form-submit {
  display: inline-block;
  background: #2f7dd9;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.pl-form-submit:hover {
  filter: brightness(1.05);
}

/* .pl-page-content(page.php)はTinyMCEの素テキスト編集用にwhite-space:pre-lineを
   持たせているため、フォーム本文の改行・インデントがそのまま余白として表示されて
   間隔が異常に空いてしまう(2026-07-20に発覚)。フォームを使う箇所は通常に戻す。 */
.pl-apply-form,
.pl-form {
  white-space: normal;
}
.pl-form-message {
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: bold;
}
.pl-form-message-success {
  background: #e7f5ec;
  color: #2f9e60;
}
.pl-form-message-error {
  background: #fdeef1;
  color: #c65b73;
}
.pl-apply-error {
  background: #fdeef1;
  color: #c65b73;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: bold;
}
.pl-apply-quiz {
  margin: 28px 0;
  padding-top: 20px;
  border-top: 1px solid #e5e2da;
}
.pl-apply-quiz-question {
  font-weight: bold;
  margin: 0 0 12px;
}
.pl-apply-quiz-choices {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.pl-apply-quiz-choices li {
  margin-bottom: 8px;
}
.pl-apply-quiz-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
}
.pl-apply-quiz-choices input {
  width: auto;
  flex-shrink: 0;
}
