/* ============================================================
   Blue Academy - page.css (固定ページ用)
   ============================================================
   依存: base.css, layout.css, components.css
   読み込み: is_page() && !is_front_page() 時のみ
   ============================================================ */

/* ============ PAGE HERO ============ */
.page-hero { padding: 120px 0 100px; border-bottom: 1px solid var(--border); }
.page-hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: end; }
.page-hero-meta { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--blue); text-transform: uppercase; margin-bottom: 40px; display: flex; align-items: center; gap: 14px; }
.page-hero-meta::before { content: ""; width: 32px; height: 1px; background: var(--blue); }
.page-hero-title { font-size: clamp(56px, 6.5vw, 88px); font-weight: 900; line-height: 1.05; letter-spacing: -0.04em; color: var(--ink); margin-bottom: 32px; }
.page-hero-title .blue { color: var(--blue); }
.page-hero-sub { font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; line-height: 1.7; color: var(--ink); margin-bottom: 24px; max-width: 640px; }
.page-hero-text { font-size: 15px; line-height: 1.95; color: var(--muted); font-weight: 500; max-width: 580px; }
.page-hero-visual { position: relative; aspect-ratio: 4 / 5; background: var(--soft-bg); border-radius: 4px; overflow: hidden; }
.page-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-visual-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: repeating-linear-gradient(135deg, transparent 0, transparent 14px, rgba(0,102,255,0.06) 14px, rgba(0,102,255,0.06) 15px), var(--soft-bg); color: var(--muted); font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.page-hero-visual-placeholder::before { content: ""; width: 32px; height: 32px; border: 1.5px solid var(--blue); border-radius: 50%; }
.page-hero-visual-caption { position: absolute; bottom: 20px; left: 24px; right: 24px; font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 10px; z-index: 2; }
.page-hero-visual-caption::before { content: ""; width: 24px; height: 1px; background: var(--blue); }

/* ============ PAGE PROSE ============ */
/* PROSE STYLE - 通常固定ページの本文エリア */
.page-prose-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding: 100px 0 120px;
  align-items: start;
}

.page-prose-wrap:has(.page-prose-aside[hidden]) {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-prose-wrap.has-no-toc {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-prose-aside {
  position: sticky;
  top: 100px;
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.page-prose-aside-num {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-prose-aside-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.page-prose-toc {
  list-style: none;
}
.page-prose-toc li { margin-bottom: 8px; }
.page-prose-toc a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border 0.15s;
}
.page-prose-toc a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.page-prose-meta {
  margin-top: 32px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.8;
}

.page-prose {
  max-width: 760px;
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  font-weight: 500;
}
.page-prose > p:first-child {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.85;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.page-prose p { margin-bottom: 24px; }
.page-prose h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-top: 80px;
  margin-bottom: 28px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.page-prose h2::before {
  content: attr(data-num);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.15em;
}
.page-prose h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.page-prose h3::before {
  content: "—";
  color: var(--blue);
  margin-right: 12px;
}
.page-prose strong {
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(to top, rgba(0,102,255,0.12) 35%, transparent 35%);
  padding: 0 2px;
}
.page-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.page-prose a:hover { text-decoration-thickness: 2px; }
.page-prose ul, .page-prose ol {
  margin: 24px 0;
  padding-left: 0;
  list-style: none;
}
.page-prose ul li, .page-prose ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.85;
}
.page-prose ul li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 4px;
  width: 12px;
  height: 1px;
  background: var(--blue);
}
.page-prose ol {
  counter-reset: item;
}
.page-prose ol li {
  counter-increment: item;
}
.page-prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
}
.page-prose blockquote {
  margin: 40px 0;
  padding: 32px 40px;
  background: var(--soft-bg);
  border-left: 3px solid var(--blue);
  border-radius: 4px;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 600;
  color: var(--ink);
  font-style: normal;
}
.page-prose blockquote p:last-child { margin-bottom: 0; }
.page-prose blockquote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 16px;
}
.page-prose img {
  width: 100%;
  border-radius: 4px;
  margin: 40px 0;
}
.page-prose figure {
  margin: 40px 0;
}
.page-prose figcaption {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
}
.page-prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 64px 0;
}
.page-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
}
.page-prose table th, .page-prose table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.page-prose table th {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--blue);
  text-transform: uppercase;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.page-prose code {
  font-family: var(--font-en);
  font-size: 0.92em;
  background: var(--soft-bg);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--blue);
}

@media (max-width: 1024px) {
  .page-prose-wrap { grid-template-columns: 1fr; gap: 32px; padding: 60px 0 80px; }
  .page-prose-aside { position: static; }
}


/* ============ HERO No-Visual ============ */
/* ヒーロービジュアル画像が無い時、テキストエリアを横幅いっぱいに */
.page-hero-inner.is-no-visual {
    grid-template-columns: 1fr;
    max-width: 900px;
}
.page-hero-inner.is-no-visual .page-hero-text-wrap {
    width: 100%;
}

/* ============ Responsive (page hero) ============ */
@media (max-width: 968px) {
    .page-hero { padding: 80px 0 60px; }
    .page-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .page-hero-visual { aspect-ratio: 16 / 9; }
}

@media (max-width: 600px) {
    .page-hero { padding: 60px 0 40px; }
    .page-hero-meta { margin-bottom: 24px; }
    .page-hero-title { margin-bottom: 20px; }
}
