/* Teen NLP — ＜脳の取扱説明書＞ course site */

:root {
  --ink: #1c2333;
  --ink-soft: #4a5368;
  --paper: #faf8f4;
  --card: #ffffff;
  --accent: #e8641b;
  --accent-soft: #fdeee2;
  --indigo: #2b3a67;
  --indigo-deep: #1d2947;
  --line: #e6e1d8;
  --tag-bg: #eef1f8;
  --radius: 14px;
  --maxw: 1080px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
  letter-spacing: 0.02em;
}
.brand:hover { text-decoration: none; }
.brand .brand-mark { color: var(--accent); margin-right: 0.4rem; }
.site-nav { display: flex; gap: 1.4rem; align-items: center; }
.site-nav a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.site-nav a.active { color: var(--accent); font-weight: 700; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-cta {
  background: var(--indigo); color: #fff !important;
  padding: 0.45rem 1.1rem; border-radius: 999px; font-weight: 700;
}
.nav-cta:hover { background: var(--indigo-deep); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--indigo-deep) 0%, var(--indigo) 55%, #3c4f85 100%);
  color: #fff;
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,100,27,0.35), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem; letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  line-height: 1.4; font-weight: 800; letter-spacing: 0.02em;
}
.hero h1 .accent { color: #ffb27d; }
.hero-lead {
  margin-top: 1.6rem; max-width: 640px;
  font-size: 1.05rem; color: rgba(255,255,255,0.88);
}
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.85rem 2rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; transition: transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { border: 2px solid rgba(255,255,255,0.5); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: #f2efe8; }
.section-kicker {
  color: var(--accent); font-weight: 700; letter-spacing: 0.14em;
  font-size: 0.82rem; text-transform: uppercase;
}
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0.5rem 0 1.6rem; line-height: 1.5; font-weight: 800;
}
.section-lead { max-width: 720px; color: var(--ink-soft); }

/* ---------- cards ---------- */
.card-grid {
  display: grid; gap: 1.4rem; margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
  box-shadow: 0 2px 10px rgba(28,35,51,0.04);
}
.card h3 { font-size: 1.08rem; margin-bottom: 0.7rem; font-weight: 700; }
.card p { font-size: 0.93rem; color: var(--ink-soft); }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}

/* ---------- quote blocks ---------- */
.voice-quote {
  background: var(--card); border-left: 5px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2rem 2.2rem; margin: 2.2rem 0;
  box-shadow: 0 2px 12px rgba(28,35,51,0.05);
}
.voice-quote p { margin-bottom: 1rem; font-size: 1rem; }
.voice-quote p:last-child { margin-bottom: 0; }
.voice-quote .sig { color: var(--ink-soft); font-size: 0.85rem; margin-top: 1.2rem; }
.goroku {
  background: var(--indigo-deep); color: #fff;
  border-radius: var(--radius); padding: 2.2rem 2.4rem; margin: 2.2rem 0;
  font-size: 1.05rem; line-height: 2.1;
}
.goroku .label {
  color: #ffb27d; font-size: 0.8rem; letter-spacing: 0.14em;
  display: block; margin-bottom: 0.8rem; font-weight: 700;
}

/* ---------- week portal layout ---------- */
.portal { display: grid; grid-template-columns: 250px 1fr; gap: 2.4rem; padding: 3.5rem 0 5rem; }
.week-nav { position: sticky; top: 88px; align-self: start; }
.week-nav ol { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.week-nav button {
  width: 100%; text-align: left; border: 1px solid var(--line);
  background: var(--card); border-radius: 10px; cursor: pointer;
  padding: 0.7rem 0.95rem; font-family: inherit; font-size: 0.88rem;
  color: var(--ink-soft); line-height: 1.5; transition: all 0.15s ease;
}
.week-nav button .wk {
  display: block; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.1em; color: var(--accent);
}
.week-nav button:hover { border-color: var(--accent); }
.week-nav button.active {
  background: var(--indigo); border-color: var(--indigo); color: #fff;
}
.week-nav button.active .wk { color: #ffb27d; }

.week-panel { display: none; }
.week-panel.active { display: block; animation: fadein 0.3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.week-head { margin-bottom: 1.8rem; }
.week-head .wk-label {
  color: var(--accent); font-weight: 800; letter-spacing: 0.12em; font-size: 0.85rem;
}
.week-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.5; margin: 0.3rem 0; }
.week-head .theme { color: var(--ink-soft); font-size: 0.95rem; }

.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; }
.block h4 {
  font-size: 0.82rem; letter-spacing: 0.12em; color: var(--accent);
  font-weight: 800; margin-bottom: 0.7rem;
}
.block p { font-size: 0.95rem; color: var(--ink); }
.block p + p { margin-top: 0.7rem; }
.block.mission { background: var(--accent-soft); border-color: #f3cdaa; }
.block.mission h4 { color: #b34a0d; }
.block.coachnote { background: var(--tag-bg); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--tag-bg); color: var(--indigo);
  border-radius: 999px; padding: 0.25rem 0.9rem;
  font-size: 0.82rem; font-weight: 600;
}

.week-footer-q {
  background: var(--indigo-deep); color: #fff; border-radius: var(--radius);
  padding: 1.8rem 2rem; margin-top: 1.6rem; font-size: 1.02rem; line-height: 2;
}
.week-footer-q .label { color: #ffb27d; font-size: 0.78rem; letter-spacing: 0.14em; font-weight: 700; display: block; margin-bottom: 0.6rem; }

.pager { display: flex; justify-content: space-between; margin-top: 2rem; gap: 1rem; }
.pager button {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 0.6rem 1.5rem; font-family: inherit; font-size: 0.9rem; font-weight: 700;
  color: var(--indigo); cursor: pointer;
}
.pager button:hover { border-color: var(--accent); color: var(--accent); }
.pager button:disabled { opacity: 0.35; cursor: default; }

/* ---------- tables ---------- */
.info-table { width: 100%; border-collapse: collapse; margin-top: 2rem; background: var(--card); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.info-table th, .info-table td { padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { background: var(--indigo); color: #fff; font-weight: 700; white-space: nowrap; }
.info-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- lists ---------- */
.check-list { list-style: none; margin-top: 1.4rem; }
.check-list li { padding-left: 2rem; position: relative; margin-bottom: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}
.num-list { counter-reset: step; list-style: none; margin-top: 1.4rem; }
.num-list li {
  counter-increment: step; position: relative;
  padding: 1.2rem 1.4rem 1.2rem 3.6rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 0.8rem;
  font-size: 0.95rem;
}
.num-list li::before {
  content: counter(step);
  position: absolute; left: 1.1rem; top: 1.15rem;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem;
}
.num-list li strong { display: block; margin-bottom: 0.2rem; }
.num-list li span { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- callouts ---------- */
.callout {
  border-radius: var(--radius); padding: 1.6rem 1.9rem; margin: 2rem 0;
  font-size: 0.95rem;
}
.callout.safety { background: #fdf0ee; border: 1px solid #f0c8c0; }
.callout.safety h3 { color: #a83a26; font-size: 1rem; margin-bottom: 0.6rem; }
.callout.note { background: var(--tag-bg); border: 1px solid #d4dbec; }
.callout.note h3 { color: var(--indigo); font-size: 1rem; margin-bottom: 0.6rem; }

/* ---------- ecosystem diagram ---------- */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; margin-top: 2.4rem; }
.flow-node {
  background: var(--card); border: 1.5px solid var(--indigo);
  border-radius: 12px; padding: 0.8rem 1.6rem; text-align: center;
  font-size: 0.92rem; font-weight: 600; color: var(--indigo);
  min-width: 260px;
}
.flow-node.hot { background: var(--indigo); color: #fff; }
.flow-arrow { color: var(--accent); font-size: 1.3rem; line-height: 1.2; }
.flow-note { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--indigo-deep); color: rgba(255,255,255,0.75);
  padding: 3rem 0 2.5rem; margin-top: 0; font-size: 0.88rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.site-footer .foot-brand { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.foot-copy { width: 100%; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.4rem; margin-top: 0.6rem; font-size: 0.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .portal { grid-template-columns: 1fr; }
  .week-nav { position: static; }
  .week-nav ol { flex-direction: row; flex-wrap: wrap; }
  .week-nav li { flex: 1 1 45%; }
  .site-nav { gap: 0.9rem; }
  .site-nav a { font-size: 0.82rem; }
}
@media (max-width: 560px) {
  .hero { padding: 4rem 0 3.5rem; }
  .site-header .wrap { flex-direction: column; height: auto; padding-top: 0.7rem; padding-bottom: 0.7rem; gap: 0.4rem; }
}
