/* 広告流入用LP（page-lp.php）
   スマートフォン版を先行して制作。PCは調整前のため、スマホ幅のカラムを中央に表示する。 */

.lp-body {
  --lp-primary: var(--color-primary, #3a93ca);
  --lp-primary-soft: var(--color-primary-soft, #e7f2f9);
  --lp-accent: var(--color-accent, #52b1af);
  --lp-red: var(--color-red, #ec7493);
  --lp-navy: var(--color-navy, #2c3e50);
  --lp-ink: var(--color-ink, #2e2e2e);
  --lp-muted: var(--color-ink-soft, #666);
  --lp-beige: var(--color-surface-soft, #f4f0e8);
  --lp-yellow: #fff59a;
  --lp-cream: #f8e7a8;
  --lp-cream-ink: #6b4f0e;
  --lp-heading: var(--font-heading, "Zen Maru Gothic", sans-serif);
  --lp-width: 480px;
  margin: 0;
  background: #fff;
  color: var(--lp-ink);
  font-family: var(--font-sans, "Noto Sans JP", sans-serif);
  line-height: 1.7;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

/* 追従CTAと重なるためチャットは出さない（通常ページの header.php と同じ指定） */
.lp-body #wp-chat-floating {
  display: none !important;
}

.lp-body img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.lp,
.lp-header,
.lp-footer {
  max-width: var(--lp-width);
  margin-inline: auto;
}

.lp em {
  font-style: normal;
  font-weight: 700;
  color: var(--lp-red);
}

/* 初期化は :where() で詳細度0にし、各パーツの margin / padding 指定を優先させる */
:where(.lp) :where(h1, h2, h3, p, ul, ol, dl, dd) {
  margin: 0;
  padding: 0;
}

:where(.lp) :where(ul, ol) {
  list-style: none;
}

/* /application/（.lp-application）は .lp の外なので、日程選択UIの部分にだけ同じ初期化を当てる
   （フォームの入力欄の dl / dd は application-redesign.css のレイアウトを崩さないよう対象外） */
:where(.lp-application) :where(.lp-picker, .lp-steps, .lp-selected),
:where(.lp-application) :where(.lp-picker, .lp-selected) :where(h1, h2, h3, p, ul, ol, dl, dd) {
  margin: 0;
  padding: 0;
}

:where(.lp-application) :where(.lp-steps, .lp-picker ul, .lp-picker ol) {
  list-style: none;
}

/* ===== ヘッダー・フッター ===== */
.lp-header {
  background: #fff;
}

.lp-header__inner {
  padding: 10px 16px;
}

.lp-header__logo {
  width: 186px;
}

.lp-footer {
  background: var(--lp-navy);
  color: #fff;
  font-size: .82rem;
}

.lp-footer__inner {
  padding: 28px 16px 32px;
}

.lp-footer__logo {
  width: 224px;
  margin-bottom: 18px;
}

.lp-footer__info {
  margin: 0 0 6px;
  opacity: .9;
}

.lp-footer__tel {
  margin: 0 0 6px;
  font-weight: 700;
}

.lp-footer__tel a {
  color: #fff;
  text-decoration: none;
}

.lp-footer__link {
  color: #fff;
  opacity: .9;
  text-decoration: none;
}

.lp-footer__copyright {
  margin: 18px 0 0;
  font-size: .72rem;
  opacity: .7;
}

/* ===== 追従CTA ===== */
.lp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  max-width: var(--lp-width);
  margin-inline: auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--lp-yellow);
  transition: transform .25s ease;
}

.lp-sticky.is-hidden {
  transform: translateY(110%);
}

.lp-sticky__button {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px 28px 6px 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.lp-sticky__button::after,
.lp-btn::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.lp-sticky__button--application {
  background: var(--lp-accent);
}

.lp-sticky__button--contact {
  background: var(--lp-red);
}

/* ===== 共通パーツ ===== */
.lp-section {
  padding: 40px 16px;
}

.lp-section--tight {
  padding-block: 12px;
}

.lp-section--flush {
  padding: 0 0 40px;
}

.lp-inner {
  padding-inline: 16px;
}

.lp-section--white {
  background: #fff;
}

.lp-section--blue {
  background: var(--lp-primary-soft);
}

.lp-section--beige {
  background: var(--lp-beige);
}

.lp-section--stripe {
  background: repeating-linear-gradient(-45deg, #e3f0f8 0 6px, #fff 6px 12px);
}

.lp-title {
  margin-bottom: 20px;
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.lp-title--sub {
  margin-top: 32px;
}

.lp-title--form {
  margin-top: 4px;
}

.lp-text {
  font-size: .95rem;
}

.lp-text + .lp-photo,
.lp-cards + .lp-photo {
  margin-top: 20px;
}

.lp-text--small {
  margin-top: 16px;
  font-size: .85rem;
}

.lp-section--blue > .lp-text {
  margin-top: 28px;
}

.lp-photo {
  display: block;
  width: 100%;
}

.lp-box {
  padding: 15px;
  background: #fff;
  border: 3px solid var(--lp-primary);
  border-radius: 20px;
}

.lp-checks li {
  position: relative;
  padding-left: 32px;
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.6;
}

.lp-checks li + li {
  margin-top: 14px;
}

.lp-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1em;
  width: 22px;
  height: 22px;
  border: 2px solid var(--lp-red);
  border-radius: 50%;
  box-sizing: border-box;
}

.lp-checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(.1em + 4px);
  width: 6px;
  height: 11px;
  border-right: 2.5px solid var(--lp-red);
  border-bottom: 2.5px solid var(--lp-red);
  transform: rotate(40deg);
}

.lp-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 40px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.lp-btn--accent {
  background: var(--lp-accent);
  color: var(--lp-yellow);
}

.lp-btn--red {
  background: var(--lp-red);
}

.lp-actions {
  display: grid;
  gap: 14px;
}

/* ===== ファーストビュー ===== */
.lp-band {
  margin: 0;
  padding: 6px 16px;
  background: var(--lp-primary);
  color: var(--lp-yellow);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}

.lp-band:empty {
  display: none;
}

.lp-hero img,
.lp-catch img {
  display: block;
  width: 100%;
}

/* 次回の説明会（[lp_next_schedule]） */
.lp-next {
  margin: 12px 0 14px;
}

.lp-next__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 10px 10px 0 0;
  background: var(--lp-primary);
  color: #fff;
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1rem;
}

.lp-next__area {
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--lp-primary);
}

.lp-next__body {
  padding: 10px 16px 14px;
  border-radius: 0 10px 10px 10px;
  background: #fff;
  text-align: center;
}

.lp-next__date {
  color: var(--lp-red);
  font-family: var(--lp-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.lp-next__date small {
  font-size: .45em;
}

.lp-next__place {
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1rem;
}

.lp-next__memo {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 24px;
  border-radius: 999px;
  background: var(--lp-yellow);
  color: var(--lp-red);
  font-family: var(--lp-heading);
  font-weight: 700;
}

/* 直近3件の日付と種別ラベルを縦に並べる（[lp_next_schedule_all]）
   左右の余白列＋日付列・ラベル列のグリッドにし、各行はsubgridで列幅を共有して日付の開始位置とラベル幅を揃える
   （余白列を含めて行を全幅にし、区切りの点線は枠いっぱいに引く） */
.lp-next__dates {
  display: grid;
  grid-template-columns: 1fr max-content max-content 1fr;
  column-gap: 10px;
  margin: 0;
  padding-block: 4px;
  list-style: none;
}

.lp-next__row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 6px 0;
}

.lp-next__row + .lp-next__row {
  border-top: 2px dotted var(--lp-primary);
}

.lp-next__dates .lp-next__date {
  grid-column: 2;
  font-size: 1.8rem;
  text-align: left;
  white-space: nowrap;
}

/* 予定一覧カードの種別ラベル（.lp-card__type）と同じ配色。幅は最長のラベルに揃える */
.lp-next__type {
  grid-column: 3;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--lp-red);
  color: #fff;
  font-family: var(--lp-heading);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
}

.lp-next__type--briefing {
  background: var(--lp-accent);
}

.lp-next__type--consultation {
  background: var(--lp-cream);
  color: var(--lp-cream-ink);
}

/* 日付＋ラベルが1行に収まるよう、狭い端末では文字を詰める */
@media (max-width: 380px) {
  .lp-next__dates .lp-next__date {
    font-size: 1.5rem;
  }

  .lp-next__type {
    padding-inline: 8px;
    font-size: .72rem;
  }
}

.lp-more {
  margin: 0;
  padding: 10px 16px 14px;
  text-align: right;
}

.lp-more a {
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}

.lp-more a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 4px 3px 8px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

/* ===== お悩み ===== */
.lp-worry + .lp-worry {
  margin-top: 24px;
}

.lp-worry__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1rem;
}

.lp-worry__head img {
  width: 55px;
  border-radius: 50%;
  background: #fff;
}

/* ===== 仕組み・ターゲット ===== */
.lp-features,
.lp-targets {
  display: grid;
  gap: 14px;
}

.lp-features li,
.lp-targets li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 8px;
  border-radius: 14px;
  background: #fff;
}

.lp-targets li {
  background: var(--lp-primary-soft);
}

.lp-features img {
  flex: 0 0 78px;
  width: 78px;
}

.lp-targets img {
  flex: 0 0 86px;
  width: 86px;
  border-radius: 50%;
}

.lp-features h3,
.lp-targets h3,
.lp-cards h3,
.lp-people h3,
.lp-voice h3,
.lp-flow h3 {
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}

.lp-features p,
.lp-targets p,
.lp-cards p {
  color: var(--lp-muted);
  font-size: .88rem;
}

/* ===== 単位の仕組み（自分のペースで〜セクション内、カード一覧の下。見出しは .lp-title--sub） ===== */
.lp-credit__text {
  font-size: .85rem;
}

.lp-credit__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.lp-credit__stats li {
  padding: 10px 4px;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.lp-credit__num {
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.lp-credit__num small {
  font-size: .6em;
}

.lp-credit__stats h3 {
  margin: 2px 0 4px;
  font-family: var(--lp-heading);
  font-size: .8rem;
  font-weight: 700;
}

.lp-credit__stats p:not(.lp-credit__num) {
  color: var(--lp-muted);
  font-size: .68rem;
  line-height: 1.5;
}

.lp-credit__notes {
  list-style: disc;
  margin: 0;
  padding-left: 1.2em;
  font-size: .8rem;
  line-height: 1.7;
}

/* ===== 学費 ===== */
.lp-price {
  font-size: 1.45em;
}

.lp-price small {
  font-size: .6em;
}

.lp-fee {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--lp-heading);
  font-weight: 700;
}

.lp-fee th,
.lp-fee td {
  padding: 12px;
  border: 1px solid #d8d8d8;
}

.lp-fee th {
  width: 45%;
  background: var(--lp-primary-soft);
  font-size: .9rem;
  text-align: center;
}

.lp-fee td {
  text-align: right;
}

.lp-fee__total th,
.lp-fee__total td {
  color: var(--lp-red);
  font-size: 1.1rem;
}

.lp-fee__total td {
  font-size: 1.4rem;
}

.lp-notes {
  margin-top: 16px;
  font-size: .88rem;
}

.lp-notes p + p {
  margin-top: 18px;
}

/* ===== 特別講座・人物 ===== */
.lp-cards {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.lp-cards li {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--lp-primary-soft);
}

.lp-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.lp-people li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px 16px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.lp-people p {
  margin-top: 4px;
  color: var(--lp-muted);
  font-size: .82rem;
  line-height: 1.5;
}

.lp-people img {
  width: 120px;
  height: 120px;
  margin-top: auto;
  padding-top: 10px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-sizing: content-box;
  background-clip: content-box;
}

/* ===== 保護者の声 ===== */
.lp-voice {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
}

.lp-voice + .lp-voice {
  margin-top: 20px;
}

.lp-voice__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-voice__head img {
  flex: 0 0 90px;
  width: 90px;
}

.lp-voice__head p {
  margin-top: 4px;
  font-weight: 700;
  font-size: .88rem;
}

.lp-voice__text {
  margin-top: 12px;
  color: var(--lp-muted);
  font-size: .88rem;
}

.lp-voice__text strong {
  color: var(--lp-ink);
}

/* ===== 説明会の詳細 ===== */
.lp-banner {
  margin: 0 0 28px;
}

.lp-banner img {
  display: block;
  width: 100%;
}

.lp-box--titled {
  position: relative;
  padding-top: 32px;
}

.lp-box__title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -55%);
  padding: 4px 18px;
  border-radius: 999px;
  background: var(--lp-primary);
  color: #fff;
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}

.lp-flow {
  display: grid;
  gap: 14px;
  counter-reset: lp-flow;
}

.lp-flow li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 14px 12px;
  border-radius: 14px;
  background: var(--lp-beige);
  counter-increment: lp-flow;
}

.lp-flow h3 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lp-flow h3::before {
  content: counter(lp-flow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  font-size: .95rem;
}

.lp-flow p {
  margin-top: 4px;
  padding-left: 32px;
  font-size: .85rem;
}

.lp-flow img {
  flex: 0 0 100px;
  width: 100px;
}

.lp-badge {
  position: relative;
  width: fit-content;
  margin: 36px auto 10px;
  padding: 2px 18px;
  border-radius: 999px;
  background: var(--lp-red);
  color: var(--lp-yellow);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: .9rem;
}

.lp-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom: 0;
  border-top-color: var(--lp-red);
}

/* ===== よくあるご質問 ===== */
.lp-faq dt,
.lp-faq dd {
  position: relative;
  padding-left: 40px;
}

.lp-faq dt {
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.55;
}

.lp-faq dd {
  margin-top: 14px;
  padding-bottom: 22px;
  border-bottom: 3px dotted var(--lp-primary);
  font-size: .9rem;
}

.lp-faq dd + dt {
  margin-top: 24px;
}

.lp-faq dt::before,
.lp-faq dd::before {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1rem;
}

.lp-faq dt::before {
  content: "Q";
  background: var(--lp-red);
}

.lp-faq dd::before {
  content: "A";
  background: var(--lp-primary);
}

/* ===== 最下部CTA ===== */
.lp-bubble {
  position: relative;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 4px 14px;
  border: 2px solid var(--lp-red);
  border-radius: 999px;
  background: #fff;
  color: var(--lp-red);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: .9rem;
}

.lp-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--lp-red);
  border-bottom: 2px solid var(--lp-red);
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.lp-tel {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #fff;
}

.lp-tel__label {
  font-family: var(--lp-heading);
  font-weight: 700;
}

.lp-tel__number a {
  color: var(--lp-red);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
}

.lp-tel__number small {
  color: var(--lp-red);
  font-weight: 700;
  font-size: .8rem;
}

/* /application/ でも日程選択UIを使う（functions/lp.php）。.lp-body と同じ変数を定義する */
.lp-application {
  --lp-primary: var(--color-primary, #3a93ca);
  --lp-primary-soft: var(--color-primary-soft, #e7f2f9);
  --lp-accent: var(--color-accent, #52b1af);
  --lp-red: var(--color-red, #ec7493);
  --lp-navy: var(--color-navy, #2c3e50);
  --lp-ink: var(--color-ink, #2e2e2e);
  --lp-muted: var(--color-ink-soft, #666);
  --lp-beige: var(--color-surface-soft, #f4f0e8);
  --lp-yellow: #fff59a;
  --lp-cream: #f8e7a8;
  --lp-cream-ink: #6b4f0e;
  --lp-heading: var(--font-heading, "Zen Maru Gothic", sans-serif);
  /* PCでも LP と同じ幅（スマホ幅のカラム）で中央に表示する */
  --lp-width: 480px;
  max-width: var(--lp-width);
  margin-inline: auto;
}

/* ===== 説明会フォーム（[lp_form] / MW WP Form 3446） ===== */
.lp-form.request-redesign {
  background: transparent;
  line-height: 1.7;
}

/* 日程選択 */
.lp-picker__heading,
.lp-form__heading {
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 5px solid var(--lp-primary);
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}

.lp-picker__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-picker__tab {
  min-width: calc((100% - 24px) / 4);
  padding: 4px 8px;
  border: 1.5px solid var(--lp-primary);
  border-radius: 999px;
  background: #fff;
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
}

.lp-picker__tab small {
  font-size: .72em;
}

.lp-picker__tab.is-active {
  background: var(--lp-primary);
  color: #fff;
}

.lp-picker__tab[hidden] {
  display: none;
}

.lp-picker__subheading {
  margin: 24px 0 10px;
  font-weight: 700;
}

.lp-picker__list {
  display: grid;
  gap: 14px;
}

.lp-card {
  padding: 14px 12px 12px;
  border: 2px solid #c9c9c9;
  border-radius: 14px;
  background: #fff;
}

.lp-card[hidden] {
  display: none;
}

.lp-card.is-selected {
  border-color: var(--lp-primary);
  border-width: 3px;
}

.lp-card__body {
  display: flex;
  align-items: center;
}

.lp-card__when {
  flex: 0 0 85px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 8px;
  border-right: 1px solid #ccc;
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.lp-card__area {
  font-size: 1.2rem;
}

.lp-card__date {
  font-size: 1.7rem;
}

.lp-card__weekday {
  font-size: .9rem;
}

.lp-card__time {
  margin-top: 4px;
  font-size: .78rem;
}

/* 複数回開催の日は時間の代わりに回数を出す */
.lp-card__count {
  width: fit-content;
  margin: 5px auto 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lp-primary-soft);
  font-size: .72rem;
}

.lp-card__info {
  min-width: 0;
  padding-left: 12px;
}

.lp-card__place {
  font-weight: 700;
  font-size: .82rem;
  line-height: 1.5;
}

/* 狭い画面でもタイトルと重ならないよう、本体の上の行で右寄せにする */
.lp-card__type {
  display: table;
  margin: -4px 0 2px auto;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--lp-red);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.6;
}

.lp-card__type--briefing {
  background: var(--lp-accent);
}

.lp-card__type--consultation {
  background: var(--lp-cream);
  color: var(--lp-cream-ink);
}

.lp-card__access {
  color: var(--lp-muted);
  font-size: .74rem;
  line-height: 1.5;
}

.lp-card__access-more[hidden] {
  display: none;
}

.lp-card__toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lp-primary);
  font-weight: 700;
  font-size: .8rem;
  text-decoration: underline;
  cursor: pointer;
}

.lp-card__memo span {
  display: inline-block;
  margin-top: 4px;
  padding: 0 6px;
  background: var(--lp-yellow);
  color: var(--lp-red);
  font-weight: 700;
  font-size: .85rem;
}

.lp-card__button {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 2px solid var(--lp-primary);
  border-radius: 6px;
  background: var(--lp-primary);
  color: #fff;
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.lp-card.is-selected .lp-card__button {
  background: #fff;
  color: var(--lp-primary);
}

/* 選択済みのチェック。1回開催は「選択中」、複数回開催は「11:00〜13:00 で選択中」の前に付く */
.lp-card.is-selected .lp-card__button.lp-slot::before,
.lp-card.is-selected .lp-card__open-text::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 12px;
  margin: 0 10px 4px 0;
  border-right: 2.5px solid var(--lp-red);
  border-bottom: 2.5px solid var(--lp-red);
  transform: rotate(40deg);
  vertical-align: middle;
}

.lp-card__button:focus-visible,
.lp-time:focus-visible {
  outline: 3px solid var(--lp-red);
  outline-offset: 2px;
}

/* 案B：複数回開催の「時間を選ぶ」（開閉ボタン）。白地で、開くと下に時間の一覧が出る */
.lp-card__open {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--lp-primary);
}

.lp-card__open-count {
  padding: 0 7px;
  border-radius: 999px;
  background: var(--lp-primary);
  color: #fff;
  font-size: .72rem;
  line-height: 1.6;
}

.lp-card.is-selected .lp-card__open-count {
  display: none;
}

.lp-card__chev {
  width: 8px;
  height: 8px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}

.lp-card.is-open .lp-card__chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.lp-times {
  margin-top: 8px;
  padding: 6px;
  border-radius: 10px;
  background: var(--lp-primary-soft);
}

.lp-times[hidden] {
  display: none;
}

/* 時間の行（ラジオボタン風）。押した時点で選択完了 */
.lp-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--lp-ink);
  text-align: left;
  cursor: pointer;
}

.lp-time + .lp-time {
  margin-top: 2px;
}

.lp-time.is-selected {
  background: #fff;
}

.lp-time__radio {
  flex: 0 0 20px;
  display: grid;
  place-items: center;
  height: 20px;
  border: 2px solid var(--lp-primary);
  border-radius: 50%;
  background: #fff;
}

.lp-time.is-selected .lp-time__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lp-primary);
}

.lp-time__range {
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.lp-time__memo {
  padding: 0 6px;
  background: var(--lp-yellow);
  color: var(--lp-red);
  font-weight: 700;
  font-size: .75rem;
  line-height: 1.6;
}

.lp-times__error {
  margin: 6px 4px 2px;
  color: var(--lp-red);
  font-weight: 700;
  font-size: .85rem;
}

.lp-times__error[hidden] {
  display: none;
}

.lp-picker__empty {
  padding: 16px;
  border-radius: 10px;
  background: var(--lp-primary-soft);
  text-align: center;
}

.lp-picker .mwform-error-message,
.lp-picker .error {
  margin-top: 8px;
}

/* 入力欄 */
.lp-form__box {
  padding: 14px 12px 22px;
  border: 3px solid var(--lp-primary);
  border-radius: 16px;
  background: #fff;
}

.lp-steps {
  display: flex;
  margin-bottom: 12px;
  background: #e0e0e0;
}

.lp-steps__item {
  position: relative;
  flex: 1;
  padding: 4px 0 4px 10px;
  color: var(--lp-ink);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
}

.lp-steps__item.is-active {
  background: var(--lp-primary);
  color: #fff;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
}

.lp-steps__item:first-child.is-active {
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}

.lp-selected {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--lp-primary-soft);
}

.lp-selected__title {
  color: var(--lp-primary);
  font-family: var(--lp-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.lp-selected__text {
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.6;
}

/* 時間は途中で折り返さない。複数回開催の部はマーカーで強調 */
.lp-selected__time {
  white-space: nowrap;
}

.lp-selected__time.is-marked {
  padding: 0 3px;
  background: var(--lp-yellow);
  color: inherit;
  font-style: normal;
}

.lp-selected__memo {
  display: table;
  margin-top: 2px;
  padding: 0 6px;
  background: var(--lp-yellow);
  color: var(--lp-red);
  font-size: .8rem;
}

.lp-selected:not(.is-selected) .lp-selected__text {
  color: var(--lp-muted);
  font-weight: 400;
}

.lp-form .request-form-wrap h3.hdg02 {
  display: none;
}

.lp-form .request-form-wrap dl {
  padding: 0;
  border: 0;
  border-radius: 0;
}

.lp-form .request-form-wrap dl + dl {
  margin-top: 18px;
}

/* グループ間には非表示の見出し（h3.hdg02）が挟まるため、隣接セレクタではなく ~ で判定する */
.lp-form .request-form-wrap .req-group ~ h3.hdg02 + .req-group {
  margin-top: 18px;
}

.lp-form .request-form-wrap dd {
  margin-bottom: 0;
}

/* 選択肢の後ろに hidden の input が続くため :last-child ではなく :last-of-type で判定する */
.lp-form .request-form-wrap dd .mwform-checkbox-field:last-of-type {
  margin-bottom: 0;
}

/* ラジオは折り返しても行間が揃うよう、選択肢側の余白ではなく gap で間隔を取る */
.lp-form .request-form-wrap dd:has(.mwform-radio-field) {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.lp-form .request-form-wrap dd .mwform-radio-field {
  margin: 0;
}

.lp-form .request-form-wrap textarea {
  display: block;
}

/* 長い設問でもバッジと設問文が同じ行から始まるよう、flexをやめてインライン配置にする */
.lp-form .request-form-wrap dt {
  display: block;
  line-height: 1.6;
  text-decoration: none;
}

.lp-form .request-form-wrap dt .req,
.lp-form .request-form-wrap dt .opt {
  margin-right: .5rem;
  border-radius: 4px;
  padding: .15rem .45rem;
  vertical-align: .1em;
}

.lp-form .request-form-wrap .req-select__trigger {
  min-height: 48px;
  border: 1px solid #aaa;
  border-radius: 6px;
}

.lp-form .request-form-wrap .req-select-group {
  row-gap: .75rem;
}

.lp-form .request-form-wrap dt .opt {
  border: 1px solid #969EAB;
  background: #969EAB;
  color: #fff;
}

.lp-form .request-form-wrap input[type="text"],
.lp-form .request-form-wrap input[type="email"],
.lp-form .request-form-wrap input[type="tel"],
.lp-form .request-form-wrap textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #fff;
  font-size: 16px; /* iOSの自動ズームを防ぐ */
  box-sizing: border-box;
}

/* 年齢・学年・在学状況の3つは横に入りきらないため、在学状況を2行目に回す */
.lp-form .request-form-wrap .req-select-group {
  flex-wrap: wrap;
}

.lp-form .request-form-wrap .req-select-group .req-select {
  flex: 1 1 calc(50% - .5rem);
}

.lp-form .request-form-wrap .req-select-group .req-select.size_m {
  flex-basis: 100%;
  max-width: none;
}

.lp-form .request-form-wrap .privacy {
  margin-top: 20px;
  font-size: .85rem;
}

.lp-form .request-form-wrap .btn02.form_button {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  border: 0;
  background: var(--lp-accent);
  font-family: var(--lp-heading);
  font-size: 1.1rem;
}

.lp-form .request-form-wrap .btn02.form_button::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ===== PC（暫定：スマホ幅のカラムを中央表示） ===== */
@media (min-width: 481px) {
  .lp-body {
    background: #eef3f7;
  }

  .lp {
    background: #fff;
  }

  /* 幅に余裕があるので、日付列と会場・住所の文字を少し大きくする */
  .lp-card__when {
    flex-basis: 90px;
  }

  .lp-card__place {
    font-size: .88rem;
  }

  .lp-card__access {
    font-size: .8rem;
  }
}
