/* ========================================================
   Learning Platform CSS  —  style.css の変数・デザイン継承
   ======================================================== */

.lp-body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-top: 80px;
}

/* ========================================================
   Header  ―  メインサイトの hero-nav と同じ意匠
   ======================================================== */
.lp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 80px;
  background: rgba(251,250,245,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.lp-header-inner {
  max-width: none;              /* ロゴを画面左端に寄せるため全幅に */
  margin: 0 auto;
  padding: 0 5vw 0 16px;        /* 左端に寄せる */
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}

/* ロゴ：LPトップへのリンク。ナビ（講座トップ）とは間隔を空けて分離 */
.lp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 48px;           /* 講座トップと離す */
}
.lp-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* ナビ：メインサイトの nav-items と同じ色・文字サイズ */
.lp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.lp-nav a {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--c-ink-soft);
  text-decoration: none;
  transition: color .2s;
  position: relative;
}
.lp-nav a:hover { color: var(--c-ink); }
.lp-nav a[aria-current="page"] {
  color: var(--c-ink);
}
.lp-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--c-ink);
}

/* 認証ボタン：メインサイトの nav-cta と同じ pill 形状 */
.lp-header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.lp-member-name {
  font-size: 12px;
  color: var(--c-ink-soft);
  letter-spacing: .05em;
}
.lp-btn-login {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--c-ink-soft);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  transition: border-color .2s, color .2s;
}
.lp-btn-login:hover { border-color: var(--c-ink-soft); color: var(--c-ink); }
.lp-btn-signup {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(46,58,42,.85);
  transition: background .2s;
}
.lp-btn-signup:hover { background: rgba(46,58,42,1); }
.lp-btn-mypage {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--c-ink-soft);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  transition: border-color .2s;
}
.lp-btn-mypage:hover { border-color: var(--c-ink-soft); color: var(--c-ink); }
.lp-btn-logout {
  font-size: 12px;
  color: var(--c-ink-mute);
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: .05em;
  padding: 4px 0;
  font-family: var(--font-sans);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-btn-logout:hover { color: var(--c-ink-soft); }

/* ハンバーガー */
.lp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.lp-hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--c-ink);
  transition: .25s;
}

@media (max-width: 768px) {
  .lp-hamburger { display: flex; }
  .lp-header-auth { display: none; }
  .lp-nav {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: rgba(251,250,245,.98);
    border-top: 1px solid var(--c-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 5vw;
  }
  .lp-nav.open { display: flex; }
  .lp-nav a { padding: 12px 0; width: 100%; font-size: 14px; }
}

/* ========================================================
   汎用ボタン（フォーム内など）
   メインサイトの pill 形状に合わせる
   ======================================================== */
.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: rgba(46,58,42,.85);
  color: #fff;
  font-family: var(--font-sans);
  transition: background .2s;
  white-space: nowrap;
}
.lp-btn-primary:hover { background: rgba(46,58,42,1); }
.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--c-line);
  background: transparent;
  color: var(--c-ink-soft);
  font-family: var(--font-sans);
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.lp-btn-ghost:hover { border-color: var(--c-ink-soft); color: var(--c-ink); }
.lp-btn-lg { padding: 14px 36px; font-size: 14px; }
.lp-btn-full { width: 100%; }

/* ========================================================
   アラート
   ======================================================== */
.alert {
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.alert-success { background: #eef5ea; color: #3a5e2f; border: 1px solid #c3ddb8; }
.alert-error   { background: #fdf0f0; color: #8b2c2c; border: 1px solid #f0c4c4; }

/* ========================================================
   コンテナ
   ======================================================== */
.lp-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5vw;
}
.lp-container-sm {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 5vw;
}
.lp-section { padding: 72px 0; }

/* メインサイトと同じ kicker / heading スタイル */
.lp-kicker {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--c-ink-mute);
  margin-bottom: 16px;
  font-family: var(--font-sans);
}
.lp-section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: normal;
  color: var(--c-ink);
  line-height: 1.6;
  margin-bottom: 8px;
}
.lp-section-desc {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 1.9;
  margin-bottom: 40px;
}

/* ========================================================
   LP トップ ヒーロー
   メインサイトのセクションと同じ佇まい
   ======================================================== */
.lp-hero {
  background: var(--c-bg-soft);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--c-line);
}
.lp-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lp-hero h1 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: normal;
  line-height: 1.75;
  margin-bottom: 24px;
  color: var(--c-ink);
}
.lp-hero-lead {
  font-size: 14px;
  color: var(--c-ink-soft);
  line-height: 2;
  margin-bottom: 32px;
}
.lp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-hero-deco {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}
.lp-deco-c {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  opacity: .38;
  mix-blend-mode: multiply;
}
.lp-deco-c1 { background: #a5c9b5; left: 10px;  top: 70px; }
.lp-deco-c2 { background: #e0b0c0; left: 70px;  top: 30px; }
.lp-deco-c3 { background: #f0c4a0; left: 130px; top: 70px; }
@media (max-width: 768px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero h1 { font-size: 22px; }
  .lp-hero-deco { display: none; }
}

/* ========================================================
   講座カード
   ======================================================== */
.lp-course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* 講座数に応じた分割：1件=横いち / 2件=2分割 / 3件以上=3分割（4件以上は自動で段が分かれる） */
.lp-course-grid-1 { grid-template-columns: 1fr; }
.lp-course-grid-2 { grid-template-columns: repeat(2, 1fr); }
.lp-course-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .lp-course-grid, .lp-course-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-course-grid, .lp-course-grid-2, .lp-course-grid-3 { grid-template-columns: 1fr; } }

.lp-course-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-ink);
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.lp-course-card:hover {
  box-shadow: 0 8px 32px rgba(46,58,42,.08);
  transform: translateY(-2px);
}
.lp-course-card-thumb {
  aspect-ratio: 16/9;
  background: var(--c-bg-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.lp-course-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lp-course-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lp-course-card-thumb-placeholder span {
  font-size: 11px; letter-spacing: .2em; color: var(--c-ink-mute);
}
.lp-course-card-body {
  padding: 20px;
  display: flex; flex-direction: column; flex: 1; gap: 8px;
}
.lp-course-card-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .06em;
}
.lp-badge-free   { background: var(--c-bg-sky);  color: #3a6650; }
.lp-badge-paid   { background: var(--c-bg-petal); color: #8b4560; }
.lp-badge-single { background: var(--c-bg-sun);  color: #6b5420; }
.lp-badge-series { background: #f0eaf8; color: #5a3878; }
.lp-badge-online  { background: #e8f2f8; color: #2f5a78; }
.lp-badge-offline { background: #f5ede2; color: #7a5a28; }
.lp-badge-finished { background: #f1efe7; color: #7a7a70; }   /* 開催終了（期間から自動判定） */
.lp-badge-private  { background: #eee; color: #666; }          /* 非公開（プレビュー表示用） */
.lp-badge-closed   { background: #fdeceb; color: #b03a3a; }    /* 定員に達しました（受付終了） */
.lp-badge-early    { background: #fdf3e6; color: #9a6a20; margin-left: 6px; vertical-align: middle; }   /* 割引受付中（早割など） */
.lp-badge-installment { background: #eef2f6; color: #5a6a78; margin-left: 6px; vertical-align: middle; }   /* 分割払い可 */
/* 分割払い（自動引き落とし）の状態と操作（講座ページの申込ボックス・マイページのカード） */
.lp-installment-box { border: 1px solid #d9d6cc; background: #f7f6f1; border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; text-align: left; }
.lp-installment-box.lp-inst-ok     { border-color: #cfdcc6; background: #f3f7ef; }
.lp-installment-box.lp-inst-warn   { border-color: #e8d9bd; background: #fdf8ee; }
.lp-installment-box.lp-inst-danger { border-color: #e8c4c1; background: #fdf1f0; }
.lp-installment-box.lp-inst-muted  { border-color: #e2e0d8; background: #f6f5f0; }
.lp-installment-box-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.lp-inst-text { min-width: 0; }
.lp-inst-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.lp-installment-box-card .lp-inst-actions { margin-top: 0; flex-direction: row; flex-wrap: wrap; }
.lp-inst-form { margin: 0; }
.lp-inst-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #e2e0d8; color: #5a5a52; margin-right: 6px; vertical-align: middle; }
.lp-inst-ok .lp-inst-badge     { background: #eef5ea; color: #3a5e2f; }
.lp-inst-warn .lp-inst-badge   { background: #fdf3e6; color: #9a6a20; }
.lp-inst-danger .lp-inst-badge { background: #fdeceb; color: #b03a3a; }
.lp-installment-status { font-size: 13px; font-weight: 500; color: var(--c-ink); margin: 0; }
.lp-installment-due { font-size: 12px; color: var(--c-ink-soft); margin: 4px 0 0; line-height: 1.7; }
.lp-inst-danger .lp-installment-due { color: #8a2e2e; }
.lp-inst-warn .lp-installment-due   { color: #7a5a1a; }
.lp-badge-inst-ok     { background: #eef5ea; color: #3a5e2f; }
.lp-badge-inst-warn   { background: #fdf3e6; color: #9a6a20; }
.lp-badge-inst-danger { background: #fdeceb; color: #b03a3a; }
.lp-badge-inst-muted  { background: #f1efe7; color: #7a7a70; }

/* 受講料の選択（申込ボックス） */
.lp-price-options { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 14px; }
.lp-price-option  { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; line-height: 1.5; }
.lp-price-option:has(input:checked) { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent) inset; }
.lp-price-option input { margin-top: 3px; flex-shrink: 0; }
.lp-price-option-label  { font-weight: 500; color: var(--c-ink); }
.lp-price-option-amount { margin-left: auto; font-weight: 600; color: var(--c-accent); white-space: nowrap; padding-left: 12px; }
.lp-price-option-note   { display: block; font-size: 11px; color: #9a6a20; margin-top: 2px; }
.lp-price-list { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; text-align: left; }
.lp-price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--c-line); }
.lp-price-list li:last-child { border-bottom: none; }
.lp-price-list .lp-price-list-note { font-size: 11px; color: #9a6a20; }

/* 講座カードの補足（満席・残り枠・開催終了）。旧 inline style を置き換え */
.lp-course-card-note { font-size: 12px; color: var(--c-ink-mute); margin-left: 8px; font-weight: normal; }
.lp-course-card-note-full { color: #b03a3a; font-weight: 600; }
.lp-course-card-note-few  { color: #b03a3a; }
.lp-course-card-past .lp-course-card-thumb img { filter: grayscale(.35); opacity: .9; }
.lp-course-card-past h3 { color: var(--c-ink-soft); }
.lp-section-lead { font-size: 13px; color: var(--c-ink-mute); margin: -8px 0 24px; }

/* ========================================================
   講座カード：申し込み済みの強調・残り枠・ロゴプレースホルダ
   ======================================================== */
.lp-course-card-enrolled { border: 2px solid var(--c-accent); }
.lp-course-card-thumb { position: relative; }
.lp-course-card-enrolled-ribbon {
  position: absolute; top: 10px; left: 10px;
  background: var(--c-accent); color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .05em;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
/* .lp-course-card-thumb img の width/height:100% を上書き（ロゴは小さく中央表示） */
.lp-course-card-thumb img.lp-course-card-thumb-logo {
  width: auto; height: auto; max-height: 96px; max-width: 55%;
  object-fit: contain; opacity: .75;
}

/* ========================================================
   マイページ「受講申し込み済みの講座」カード
   ======================================================== */
.myc-list { display: flex; flex-direction: column; gap: 10px; }
.myc-card { background: #fff; border: 1px solid var(--c-line); border-radius: 10px; padding: 14px 20px; }
.myc-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.myc-badges { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.myc-title { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; }
.myc-title a { color: var(--c-ink); text-decoration: none; }
.myc-date { font-size: 12px; color: var(--c-ink-soft); margin-top: 2px; }
.myc-sessions { margin-top: 10px; }
/* 回の行：スマホは [回 | タイトル+日時 | アクション]、PCは日時を独立カラムにして1行 */
.myc-srow {
  display: grid; grid-template-columns: 46px minmax(0,1fr) auto;
  gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--c-line);
}
.myc-sn { font-size: 12px; font-weight: 600; white-space: nowrap; }
.myc-stitle { font-size: 13px; line-height: 1.5; }
.myc-sdt { font-size: 12px; color: var(--c-ink-mute); }
.myc-saction { text-align: right; white-space: nowrap; }
.myc-sdt-pc { display: none; }
@media (min-width: 820px) {
  .myc-srow { grid-template-columns: 46px minmax(0,1fr) 225px auto; }
  .myc-sdt-sp { display: none; }
  .myc-sdt-pc { display: block; white-space: nowrap; }
  .myc-stitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.lp-course-card h3 { font-size: 15px; font-weight: 500; line-height: 1.5; margin: 0; }
.lp-course-card-date { font-size: 12px; color: var(--c-ink-mute); }
.lp-course-card-price { font-size: 14px; font-weight: 500; color: var(--c-accent); margin-top: auto; padding-top: 8px; }

/* ========================================================
   カルーセル
   ======================================================== */
.lp-carousel-wrap { position: relative; }
.lp-carousel {
  display: flex; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.lp-carousel::-webkit-scrollbar { display: none; }
.lp-carousel .lp-course-card { flex: 0 0 320px; scroll-snap-align: start; }
.lp-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(251,250,245,.95); border: 1px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: box-shadow .2s;
  font-size: 16px; color: var(--c-ink-soft);
}
.lp-carousel-btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.lp-carousel-btn-prev { left: -20px; }
.lp-carousel-btn-next { right: -20px; }
@media (max-width: 768px) {
  .lp-carousel-btn { display: none; }
  .lp-carousel .lp-course-card { flex: 0 0 280px; }
}

/* ========================================================
   お知らせ
   ======================================================== */
.lp-notice-list {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden;
}
.lp-notice-item {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 20px; align-items: center;
  padding: 18px 24px; background: #fff;
  text-decoration: none; color: var(--c-ink); transition: background .15s;
}
.lp-notice-item:hover { background: var(--c-bg-soft); }
.lp-notice-date { font-size: 12px; color: var(--c-ink-mute); flex-shrink: 0; }
.lp-notice-title { font-size: 14px; line-height: 1.6; }
@media (max-width: 560px) {
  .lp-notice-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ========================================================
   認証フォーム（ログイン・登録等）
   ======================================================== */
.lp-form-wrap {
  max-width: 480px; margin: 60px auto; padding: 0 5vw;
}
/* メッセージ欄のある問い合わせフォームは少し広く（ログイン/登録は480pxのまま） */
.lp-form-wrap-md { max-width: 620px; }
.lp-form-wrap h1 {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: normal;
  margin-bottom: 8px; color: var(--c-ink);
}
.lp-form-wrap .lp-form-sub {
  font-size: 13px; color: var(--c-ink-soft); margin-bottom: 36px;
}
.lp-form { display: flex; flex-direction: column; gap: 20px; }
.lp-field { display: flex; flex-direction: column; gap: 6px; }
.lp-field label { font-size: 12px; color: var(--c-ink-soft); letter-spacing: .05em; }
.lp-field input[type="text"],
.lp-field input[type="email"],
.lp-field input[type="tel"],
.lp-field input[type="password"],
.lp-field textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--c-line); border-radius: 4px;
  background: #fff; font-size: 15px; color: var(--c-ink);
  font-family: var(--font-sans); transition: border-color .2s; appearance: none;
}
.lp-field textarea { resize: vertical; line-height: 1.7; }
.lp-field input:focus, .lp-field textarea:focus { outline: none; border-color: var(--c-accent); }
.lp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-form-links {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 8px; text-align: center;
}
.lp-form-links a {
  font-size: 13px; color: var(--c-ink-soft);
  text-decoration: underline; text-underline-offset: 3px;
}
.lp-form-links a:hover { color: var(--c-ink); }
.lp-form-divider {
  text-align: center; font-size: 12px; color: var(--c-ink-mute); margin: 4px 0;
}

/* ========================================================
   ページヘッダー / マイページ
   ======================================================== */
.lp-page-header {
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-line);
  padding: 48px 0 40px;
}
.lp-page-header h1 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: normal; color: var(--c-ink);
}
.lp-empty {
  text-align: center; padding: 64px 24px;
  color: var(--c-ink-mute); font-size: 14px;
}
.lp-rich-content { line-height: 2; color: var(--c-ink); }
.lp-rich-content p { margin-bottom: 1em; }
.lp-rich-content h2, .lp-rich-content h3 { font-family: var(--font-serif); font-weight: 700; margin: 1.5em 0 .5em; clear: both; }
.lp-rich-content img { max-width: 100%; height: auto; border-radius: 8px; }
.lp-rich-content img.lp-zoomable { cursor: zoom-in; }
/* 本文画像のクリック拡大（foot.php の #lpLightbox） */
.lp-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 24, 18, .88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lp-lightbox[hidden] { display: none; }
.lp-lightbox img { max-width: min(96vw, 1200px); max-height: 92vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.5); cursor: default; background: #fff; }
.lp-lightbox-close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 44px; cursor: pointer; }
.lp-lightbox-close:hover { background: rgba(255,255,255,.3); }
/* 画像の回り込み（編集画面で画像クリックで切替）。プロフィール写真は左寄せ＋テキスト右回り込み */
.lp-rich-content img.img-left  { float: left;  clear: both;  max-width: min(40%, 200px); margin: 6px 24px 16px 0; }
.lp-rich-content img.img-right { float: right; clear: both;  max-width: min(40%, 200px); margin: 6px 0 16px 24px; }
/* 横長図版用：半分サイズ・本文と同じ左揃え（回り込みなし。一日の流れ図など） */
.lp-rich-content img.img-half { display: block; max-width: 50%; margin: 6px 0 16px; }
/* 旧：半分サイズで右に回り込み（2026-09-27 以降は未使用。過去データ互換のため残す） */
.lp-rich-content img.img-half-right { float: right; clear: both; max-width: 50%; margin: 6px 0 16px 24px; }
.lp-rich-content::after { content: ""; display: block; clear: both; }
/* 回り込み画像を含む段落は、前の回り込みを解除してから始める（2人目の写真が1人目の横に並ばないように）。
   ※ display:flow-root は付けない。付けると回り込みがその段落（エディタでは「名前」だけの段落になる）で
     打ち切られ、次の段落のプロフィール文が写真の下に落ちる（2026-09-27 修正） */
.lp-rich-content p:has(> img.img-left),
.lp-rich-content p:has(> img.img-right),
.lp-rich-content p:has(> img.img-half-right) { clear: both; }
@media (max-width: 640px) {
  .lp-rich-content img.img-left, .lp-rich-content img.img-right { max-width: min(50%, 160px); }
  /* スマホでは図版が読めなくなるため全幅に戻す */
  .lp-rich-content img.img-half,
  .lp-rich-content img.img-half-right { float: none; max-width: 100%; margin: 6px 0 16px; }
}

/* ========================================================
   フッター
   ======================================================== */
.lp-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.55);
  padding: 56px 0 36px;
  margin-top: 80px;
}
.lp-footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 5vw; }
.lp-footer-logo {
  margin-bottom: 32px;
}
.lp-footer-logo img { height: 40px; width: auto; opacity: .7; }
.lp-footer-nav { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.lp-footer-nav a {
  font-size: 12px; color: rgba(255,255,255,.45);
  text-decoration: none; letter-spacing: .06em; transition: color .2s;
}
.lp-footer-nav a:hover { color: rgba(255,255,255,.85); }
.lp-footer-copy { font-size: 11px; color: rgba(255,255,255,.25); letter-spacing: .1em; }
