/* ============================================================
   Event Join LP — 販売サイト（テーマ）用スタイル
   設置場所: wp-content/themes/your-theme/assets/css/lp.css
   ============================================================ */

/* ============================================================
   リセット・ベース
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #1e3a4a;
  background: #fff;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   カラー変数
   ============================================================ */
:root {
  --primary:      #63bec6;
  --primary-dark: #4aa8b0;
  --primary-xd:   #2d8f97;
  --primary-light:#e6f7f9;
  --primary-pale: #f0fbfc;
  --dark:         #1e3a4a;
  --gray:         #64748b;
  --light-gray:   #f1f5f9;
  --white:        #ffffff;
  --green:        #16a34a;
  --red:          #dc2626;
  --radius:       12px;
  --shadow:       0 4px 24px rgba(99,190,198,.15);
  --shadow-lg:    0 8px 40px rgba(99,190,198,.22);
}

/* ============================================================
   ユーティリティ
   ============================================================ */
.lp-container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.lp-section   { padding: 80px 0; }
.lp-section--gray    { background: var(--light-gray); }
.lp-section--primary { background: var(--primary-pale); }
.lp-label {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary-dark); background: var(--primary-light);
  padding: 4px 14px; border-radius: 99px; margin-bottom: 16px;
}
.lp-h2 {
  font-size: clamp(24px, 4vw, 36px); font-weight: 800;
  line-height: 1.3; margin-bottom: 16px; color: var(--dark);
}
.lp-lead {
  font-size: 17px; color: var(--gray);
  max-width: 600px; margin: 0 auto 48px;
}
.lp-center { text-align: center; }

/* ============================================================
   ナビゲーション
   ============================================================ */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(99,190,198,.2);
}
.lp-nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: 1060px; margin: 0 auto; padding: 0 24px;
}
.lp-nav__logo {
  font-size: 20px; font-weight: 800; color: var(--primary-dark);
  display: flex; align-items: center; gap: 8px;
}
.lp-nav__logo span { color: var(--dark); }
.lp-nav__links { display: flex; align-items: center; gap: 24px; }
.lp-nav__link {
  font-size: 13px; color: var(--gray); font-weight: 500;
  transition: color .2s;
}
.lp-nav__link:hover         { color: var(--primary-dark); }
.lp-nav__link--active       { color: var(--primary-dark); font-weight: 700; }

/* ============================================================
   ボタン
   ============================================================ */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 99px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all .2s; border: 2px solid transparent;
  white-space: nowrap;
}
.lp-btn--primary {
  background: var(--primary); color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(99,190,198,.35);
}
.lp-btn--primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  box-shadow: 0 6px 24px rgba(99,190,198,.45);
  transform: translateY(-1px);
}
.lp-btn--outline {
  background: transparent; color: var(--primary-dark);
  border-color: var(--primary);
}
.lp-btn--outline:hover { background: var(--primary-light); }
.lp-btn--lg { padding: 16px 40px; font-size: 17px; }
.lp-btn--white {
  background: var(--white); color: var(--primary-dark);
  border-color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.lp-btn--white:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ============================================================
   ヒーロー
   ============================================================ */
.lp-hero {
  background: linear-gradient(135deg, var(--primary-xd) 0%, var(--primary) 50%, #8dd8de 100%);
  padding: 100px 24px 80px;
  text-align: center; position: relative; overflow: hidden;
}
.lp-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.lp-hero__badge {
  display: inline-block; background: rgba(255,255,255,.2);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 6px 18px; border-radius: 99px; margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.3);
}
.lp-hero__title {
  font-size: clamp(28px, 5vw, 52px); font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.lp-hero__title em {
  font-style: normal; background: rgba(255,255,255,.25);
  padding: 2px 12px; border-radius: 8px;
}
.lp-hero__sub {
  font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,.9);
  margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.lp-hero__actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 60px;
}
.lp-hero__note { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 12px; }
.lp-hero__stats {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.lp-hero__stat { text-align: center; color: #fff; }
.lp-hero__stat-num {
  font-size: 32px; font-weight: 900; display: block;
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.lp-hero__stat-label { font-size: 12px; opacity: .85; }

/* ============================================================
   こんな方に（4カラム固定）
   ============================================================ */
.lp-target__grid {
  display: grid;
  /* grid-template-columns: repeat(4, 1fr); */
  grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 40px;
}
.lp-target__card {
  background: var(--white); border: 2px solid var(--primary-light);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; align-items: flex-start; gap: 16px;
  transition: box-shadow .2s, transform .2s;
}
.lp-target__card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.lp-target__icon { font-size: 32px; flex-shrink: 0; }
.lp-target__text h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.lp-target__text p  { font-size: 13px; color: var(--gray); }

/* ============================================================
   機能紹介
   ============================================================ */
.lp-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px; margin-top: 48px;
}
.lp-feature {
  background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.lp-feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.lp-feature__icon {
  width: 52px; height: 52px; background: var(--primary-light);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.lp-feature__title { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--dark); }
.lp-feature__desc  { font-size: 14px; color: var(--gray); line-height: 1.8; }

/* ============================================================
   使い方（3ステップ）
   ============================================================ */
.lp-steps {
  display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap;
  margin-top: 48px; position: relative;
}
.lp-step { flex: 1; min-width: 200px; text-align: center; padding: 0 24px; position: relative; }
.lp-step + .lp-step::before {
  content: '→'; position: absolute; left: -8px; top: 28px;
  font-size: 24px; color: var(--primary);
}
.lp-step__num {
  width: 60px; height: 60px; background: var(--primary);
  color: #fff; font-size: 22px; font-weight: 900; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; box-shadow: 0 4px 16px rgba(99,190,198,.4);
}
.lp-step__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.lp-step__desc  { font-size: 14px; color: var(--gray); }
.lp-step__code  {
  display: inline-block; margin-top: 8px;
  background: var(--light-gray); color: var(--primary-xd);
  font-family: monospace; font-size: 13px;
  padding: 4px 12px; border-radius: 6px;
}

/* ============================================================
   料金プラン
   ============================================================ */
.lp-pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 720px; margin: 48px auto 0;
}
.lp-plan {
  background: var(--white); border: 2px solid #e2e8f0;
  border-radius: var(--radius); padding: 36px 32px;
  position: relative; transition: box-shadow .2s;
}
.lp-plan:hover     { box-shadow: var(--shadow); }
.lp-plan--pro      { border-color: var(--primary); box-shadow: var(--shadow); }
.lp-plan__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 20px; border-radius: 99px; white-space: nowrap;
}
.lp-plan__name   { font-size: 14px; font-weight: 600; color: var(--gray); margin-bottom: 8px; }
.lp-plan__price  { font-size: 42px; font-weight: 900; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.lp-plan__price span { font-size: 16px; font-weight: 500; color: var(--gray); }
.lp-plan__period { font-size: 13px; color: var(--gray); margin-bottom: 28px; }
.lp-plan__features { list-style: none; margin-bottom: 32px; }
.lp-plan__features li {
  font-size: 14px; padding: 9px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 10px;
}
.lp-plan__features li:last-child { border-bottom: none; }
.lp-check { color: var(--green); font-size: 16px; flex-shrink: 0; }
.lp-cross { color: #cbd5e1;      font-size: 16px; flex-shrink: 0; }

/* ============================================================
   アカデミックディスカウント（FAQリストと同幅・同センタリング）
   ============================================================ */
.lp-academic {
  width: 100%; max-width: 720px; margin: 20px auto 0;
  background: #fefce8;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
}
.lp-academic__icon { display: none; }
.lp-academic__title {
  display: inline; font-size: 14px; font-weight: 700;
  color: #92400e;
}
.lp-academic__desc {
  display: inline; font-size: 13px; color: #78350f; line-height: 1.8;
}
.lp-academic__desc a {
  color: var(--primary-xd); text-decoration: underline;
}
.lp-academic__desc a:hover { color: var(--primary-dark); }

/* ============================================================
   FAQ
   ============================================================ */
.lp-faq__list  { max-width: 720px; margin: 48px auto 0; }
.lp-faq__item  {
  border: 1px solid #e2e8f0; border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.lp-faq__q {
  width: 100%; text-align: left;
  background: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 15px; font-weight: 700; color: var(--dark);
  transition: background .2s;
}
.lp-faq__q:hover                     { background: var(--primary-pale); }
.lp-faq__q[aria-expanded="true"]     { background: var(--primary-light); color: var(--primary-xd); }
.lp-faq__icon {
  flex-shrink: 0; width: 24px; height: 24px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; transition: transform .3s;
}
.lp-faq__q[aria-expanded="true"] .lp-faq__icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.lp-faq__a {
  display: none;
  padding: 20px 24px 24px;
  font-size: 14px; color: var(--gray); line-height: 1.9;
}
.lp-faq__a.is-open { display: block; }

/* ============================================================
   CTA バナー
   ============================================================ */
.lp-cta {
  background: linear-gradient(135deg, var(--primary-xd), var(--primary));
  padding: 80px 24px; text-align: center;
}
.lp-cta__title {
  font-size: clamp(24px, 4vw, 38px); font-weight: 900; color: #fff;
  margin-bottom: 16px; line-height: 1.3;
}
.lp-cta__sub    { font-size: 17px; color: rgba(255,255,255,.85); margin-bottom: 40px; }
.lp-cta__actions {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.lp-cta__note   { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 20px; }

/* ============================================================
   フッター
   ============================================================ */
.lp-footer {
  background: var(--dark); color: rgba(255,255,255,.7);
  padding: 40px 24px; text-align: center; font-size: 13px;
}
.lp-footer a       { color: rgba(255,255,255,.6); }
.lp-footer a:hover { color: var(--primary); }
.lp-footer__links  { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }

/* ============================================================
   ボタン拡張
   ============================================================ */
.lp-btn--sm    { padding: 8px 20px; font-size: 13px; }
.lp-btn--block { width: 100%; justify-content: center; }
.lp-btn--outline-white { color: #fff; border-color: rgba(255,255,255,.6); }
.lp-btn--ghost { color: #fff; border: 2px solid rgba(255,255,255,.5); background: transparent; }

/* ============================================================
   料金プラン拡張
   ============================================================ */
.lp-check--pro        { color: var(--primary-dark); font-weight: 700; }
.lp-plan__feat-muted  { color: #94a3b8; }
.lp-pricing__note     { text-align: center; margin-top: 24px; font-size: 13px; color: var(--gray); }

/* ============================================================
   Pro バッジ（機能タイトル横）
   ============================================================ */
.lp-pro-badge { font-size: 11px; font-weight: 600; color: #2271b1; margin-left: 4px; vertical-align: middle; }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .lp-target__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lp-section { padding: 56px 0; }
  .lp-nav__links .lp-nav__link { display: none; }
  .lp-step + .lp-step::before { display: none; }
  .lp-step { min-width: 100%; }
  .lp-hero { padding: 72px 16px 60px; }
  .lp-hero__stats { gap: 24px; }
  .lp-target__grid { grid-template-columns: 1fr; }
  .lp-academic { flex-direction: column; gap: 12px; padding: 20px; }
}

/* ============================================================
   使い方ガイド（page-event-join-howto.php）固有スタイル
   ============================================================ */
.ht-hero {
  background: linear-gradient(135deg, var(--primary-xd) 0%, var(--primary) 100%);
  padding: 72px 24px 60px;
  text-align: center;
}
.ht-hero__title {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900; color: #fff;
  line-height: 1.25; margin-bottom: 16px;
}
.ht-hero__sub {
  font-size: 17px; color: rgba(255,255,255,.88);
  max-width: 560px; margin: 0 auto;
}

/* 目次 */
.ht-toc {
  background: var(--primary-pale);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 640px;
  margin: 0 auto 64px;
}
.ht-toc__title {
  font-size: 14px; font-weight: 700;
  color: var(--primary-xd); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .1em;
}
.ht-toc__list { list-style: none; counter-reset: toc; }
.ht-toc__list li {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px solid rgba(99,190,198,.15);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.ht-toc__list li:last-child { border-bottom: none; }
.ht-toc__list li::before {
  content: counter(toc);
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.ht-toc__list a { color: var(--primary-xd); font-weight: 500; }
.ht-toc__list a:hover { text-decoration: underline; }

/* ステップセクション */
.ht-step-section { padding: 64px 0; border-bottom: 1px solid #f1f5f9; }
.ht-step-section:last-of-type { border-bottom: none; }
.ht-step-section--alt { background: var(--light-gray); }
.ht-step__header { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.ht-step__num {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(99,190,198,.4);
}
.ht-step__heading { font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--dark); line-height: 1.3; }
.ht-step__heading span { display: block; font-size: 13px; font-weight: 500; color: var(--primary-dark); margin-bottom: 4px; }
.ht-step__body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ht-step__body--full { grid-template-columns: 1fr; }
.ht-step__text p { font-size: 15px; color: var(--gray); line-height: 1.9; margin-bottom: 16px; }
.ht-step__text p:last-child { margin-bottom: 0; }

/* 画像プレースホルダー */
.ht-img {
  background: #e8f4f5;
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 13px; font-weight: 600;
  text-align: center;
}
.ht-img__icon { font-size: 36px; opacity: .6; }
.ht-img__label { opacity: .75; }
.ht-img--mt { margin-top: 16px; }

/* サブステップリスト */
.ht-substeps { list-style: none; counter-reset: sub; margin-top: 20px; }
.ht-substeps li {
  counter-increment: sub;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px; color: var(--gray);
}
.ht-substeps li:last-child { border-bottom: none; }
.ht-substeps li::before {
  content: counter(sub);
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary-xd);
  border-radius: 50%; font-size: 12px; font-weight: 700;
}

/* コードブロック */
.ht-code {
  display: inline-block;
  background: var(--light-gray); color: var(--primary-xd);
  font-family: monospace; font-size: 14px;
  padding: 6px 16px; border-radius: 6px;
  margin: 8px 0;
}

/* ヒントボックス */
.ht-tip {
  background: #fff9e6;
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 13px; color: #92400e; line-height: 1.8;
}
.ht-tip strong { color: #b45309; }

/* グリッドスクリーンショット */
.ht-screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

/* 使い方ガイド CTA */
.ht-cta { background: linear-gradient(135deg, var(--primary-xd), var(--primary)); padding: 64px 24px; text-align: center; }
.ht-cta__title { font-size: clamp(22px, 3.5vw, 34px); font-weight: 900; color: #fff; margin-bottom: 12px; }
.ht-cta__sub { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 32px; }
.ht-cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .ht-step__body { grid-template-columns: 1fr; gap: 24px; }
  .ht-step__header { gap: 14px; }
  .ht-toc { padding: 20px; }
}
@media (max-width: 640px) {
  .ht-hero { padding: 56px 16px 48px; }
}
