/* ===================================================================
   Meeting-Style Classroom サイト  見た目の設定（案L2「ノート」・色1）

   ・方眼ノートの上に書いたようなデザイン。2026年9月20日に決定
   ・色を変えたいときは、すぐ下の :root の中の色番号を書き換えます
       --ink     紺のインク（文字・枠線）
       --accent  朱（余白線・小見出し・差し色）
       --marker  蛍光ペンの黄（見出しの下のマーカー）
     design/l2-colors.html に、ほかの色の組み合わせが残してあります
   ・前のデザイン（3色の帯）は design/style-3色の帯版-2026-09-20.css
   ・書体は Google Fonts の Nunito（英語）と Murecho（日本語）
     明朝体・Serif 体は使っていません
   =================================================================== */

:root {
  --ink:      #1e2a5a;   /* 紺のインク。文字・枠線・ボタン */
  --accent:   #e5503c;   /* 朱。小見出し・余白線・差し色 */
  --marker:   #ffe23f;   /* 蛍光ペンの黄。マーカー線 */
  --paper:    #fdfcf8;   /* 紙の色（ページの背景） */
  --card:     #ffffff;   /* カードの中 */
  --nav:      #4a5482;   /* メニューの文字 */
  --soft:     #3b4570;   /* 本文の補足 */
  --faint:    #8a90ad;   /* さらに薄い文字 */
  --line:     #eceef5;   /* 薄い罫線 */
  --tab2:     #e5503c;   /* ノートの端のタブ（2枚目） */
  --tab3:     #1e2a5a;
  --tab4:     #8fd3c7;
  --grid:     rgba(30, 42, 90, .08);   /* 方眼の線 */
  --shadow:   rgba(30, 42, 90, .15);   /* カードの落ち影 */
  --marker-t: rgba(255, 226, 63, .85); /* 半透明のマーカー */
  --onink:    #ffffff;                 /* 紺の上に置く文字 */

  --font: "Nunito", "Murecho", system-ui, sans-serif;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1f8; --accent: #ffb74a; --marker: #ffe23f; --paper: #141a2e; --card: #1e2640;
    --nav: #aab3cc; --soft: #c5cce0; --faint: #7f88a6; --line: #2f3a58; --tab4: #6fd3c2;
    --grid: rgba(255,255,255,.07); --shadow: rgba(0,0,0,.4); --marker-t: rgba(255,226,63,.7); --onink: #141a2e;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 900; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.3em; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

/* ---------- 日本語 / English の切り替え ----------
   選ばれていないほうの言語を隠しています。触らなくて大丈夫です */
html[data-lang="ja"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="ja"] { display: none !important; }
html[data-lang="ja"] body { font-family: "Murecho", "Nunito", "Hiragino Sans", system-ui, sans-serif; }

/* ---------- 蛍光ペンのマーカー（小見出しの下に引く） ---------- */
.kicker, .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(transparent 45%, var(--marker) 45%); padding: 0 4px; margin: 0 0 12px;
}

/* ---------- 上のバー ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.bar-right { display: flex; align-items: center; gap: 18px; }
.bar nav { display: flex; gap: 2px; }
.bar nav a { color: var(--nav); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.bar nav a:hover, .bar nav a.current { background: var(--marker-t); color: var(--ink); text-decoration: none; }
.langswitch { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.langswitch button { white-space: nowrap; border: 0; background: transparent; color: var(--ink); padding: 4px 12px; font-size: 13px; font-weight: 800; cursor: pointer; }
.langswitch button[aria-pressed="true"] { background: var(--ink); color: var(--onink); }
.langswitch .short { display: none; }
.burger { display: none; border: 0; background: transparent; color: var(--ink); font-size: 24px; cursor: pointer; padding: 4px 8px; }

@media (max-width: 1000px) {
  .bar nav { display: none; }
  .burger { display: inline-block; }
  .bar-right { gap: 8px; }
  body.nav-open .bar nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 62px;
    background: var(--paper); padding: 10px 16px 16px; border-bottom: 2px solid var(--ink); box-shadow: 0 14px 30px var(--shadow);
  }
  body.nav-open .bar nav a { padding: 10px 12px; font-size: 16px; }
}
@media (max-width: 560px) {            /* スマホの幅では、名前を小さく、言語ボタンを JA / EN に */
  .bar .wrap { gap: 8px; }
  .brand { font-size: 14px; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 24px; height: 24px; flex: none; }
  .langswitch .full { display: none; }
  .langswitch .short { display: inline; }
  .langswitch button { padding: 3px 10px; font-size: 12px; }
  .burger { padding: 4px 4px; }
}

/* ---------- 表紙 ---------- */
.hero { padding: 56px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.02em; }
.hero h1 .sub { display: block; font-size: .42em; font-weight: 800; color: var(--accent); margin-top: 14px; letter-spacing: 0; }
.hero .lead { font-size: 16.5px; color: var(--soft); max-width: 540px; margin: 22px 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font-weight: 900; font-size: 15px;
  background: var(--ink); color: var(--onink); border: 2px solid var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px var(--shadow); }
.btn.ghost { background: var(--card); color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* 表紙の右の「ノート」（Agenda の表） */
.book {
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px 16px 16px 6px;
  padding: 24px 26px 24px 40px; position: relative; box-shadow: 8px 8px 0 var(--shadow);
}
.book::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 2px dashed var(--accent); opacity: .6; }
.book h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.book .who { font-size: 12.5px; color: var(--soft); margin: 0 0 12px; font-weight: 800; }
.book table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.book td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.book td:first-child { width: 52px; font-weight: 900; color: var(--ink); }
.book td:nth-child(2) { width: 100px; font-weight: 800; color: var(--accent); }
.book .foot { font-size: 12px; color: var(--faint); margin: 12px 0 0; }
.tabs { position: absolute; right: -14px; top: 24px; display: grid; gap: 8px; }
.tabs span { display: block; width: 14px; height: 44px; border-radius: 0 6px 6px 0; background: var(--marker); }
.tabs span:nth-child(2) { background: var(--tab2); }
.tabs span:nth-child(3) { background: var(--tab3); }
.tabs span:nth-child(4) { background: var(--tab4); }

@media (max-width: 860px) {
  .hero { padding: 36px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .book { margin-right: 14px; }
}

/* ---------- 各セクションの共通 ---------- */
section { padding: 72px 0; }
section.band { background: color-mix(in srgb, var(--card) 70%, transparent); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.sec-head { max-width: 760px; margin: 0 0 36px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.sec-head p { color: var(--soft); }
h3 { font-size: 20px; }
.note { font-size: 14px; color: var(--soft); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.two.one { grid-template-columns: 1fr; max-width: 720px; }
@media (max-width: 860px) { section { padding: 52px 0; } .two { grid-template-columns: 1fr; gap: 24px; } }

/* 動画と説明文の横並び（とは） */
.media-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; margin-top: 40px; }
.media-row > div:first-child { order: 2; }   /* 動画を右に */
.media-row h3 { margin-top: 0; }
.origin { max-width: 820px; margin-top: 44px; padding-top: 32px; border-top: 2px dashed var(--line); }
@media (max-width: 860px) { .media-row { grid-template-columns: 1fr; gap: 24px; } .media-row > div:first-child { order: 0; } }

/* 紹介動画 */
.video { margin: 0; }
.video video, .video .yt { width: 100%; display: block; border-radius: 12px; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); background: #000; overflow: hidden; }
.video .yt { aspect-ratio: 16 / 9; }
.video .yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.video figcaption { font-size: 13px; color: var(--soft); margin-top: 12px; }

/* 日英併記の定義文（大きめ） */
.definition { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.75; font-weight: 800; max-width: 820px; }
.definition strong { background: linear-gradient(transparent 55%, var(--marker-t) 55%); font-weight: 900; }
.source { font-size: 14px; color: var(--soft); border-left: 3px solid var(--accent); padding-left: 14px; margin-top: 22px; }

/* ---------- 役割のカード（上にマーカーの線） ---------- */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 22px 20px; position: relative; }
.role::before { content: ""; position: absolute; left: 14px; right: 14px; top: -8px; height: 14px; background: var(--marker-t); transform: rotate(-2deg); }
.role .tag { display: block; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.role h3 { font-size: 18px; margin-bottom: 6px; }
.role p { font-size: 14.5px; color: var(--soft); margin: 0; }
.role.teacher { border-style: dashed; }
@media (max-width: 960px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }

/* ---------- 1回の授業の流れ（前・中・後） ---------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.flow > div { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px 22px; }
.flow .when { font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.flow h3 { font-size: 19px; margin-bottom: 10px; }
.flow ul { font-size: 14.5px; color: var(--soft); }
.flow li + li { margin-top: 4px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }

/* ---------- 3本の柱（流れ図の3色は、図と合わせてそのまま） ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.pillar-list { display: grid; gap: 14px; }
.pillar { display: grid; grid-template-columns: 12px 1fr; gap: 16px; align-items: start; }
.pillar i { display: block; width: 12px; height: 100%; min-height: 48px; border-radius: 6px; background: #d5607a; margin-top: 4px; }
.pillar.p2 i { background: #5f5b9c; }
.pillar.p3 i { background: #e2a520; }
.pillar h3 { font-size: 18px; margin-bottom: 4px; }
.pillar p { font-size: 14.5px; color: var(--soft); margin: 0; }
.pillars figure { margin: 0; }
.pillars figure img { border-radius: 10px; border: 2px solid var(--ink); background: #fff; padding: 12px; }
.pillars figcaption { font-size: 13px; color: var(--soft); margin-top: 10px; text-align: center; }
.pillars.one { grid-template-columns: 1fr; max-width: 720px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- 教材・授業例のタイル ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  display: block; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 20px; color: var(--ink); transition: transform .15s, box-shadow .15s;
}
.tile:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.tile .num { font-size: 13px; font-weight: 900; color: var(--accent); letter-spacing: .1em; }
.tile h3 { font-size: 18px; margin: 6px 0 8px; }
.tile p { font-size: 14.5px; color: var(--soft); margin: 0 0 10px; }
.tile .more { font-size: 14px; font-weight: 900; color: var(--accent); }
.tile img { border-radius: 8px; border: 1px solid var(--line); margin-bottom: 14px; aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr !important; } }

/* ---------- 写真つきの紹介（PEP・講師） ---------- */
.feature { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: center; }
.feature img { border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); }
.feature .name { font-size: 22px; font-weight: 900; margin-bottom: 2px; }
.feature .title { font-size: 14px; color: var(--soft); margin-bottom: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-block; border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 800; background: var(--card); color: var(--ink); }
.links a:hover { background: var(--marker-t); text-decoration: none; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } .feature img { max-width: 320px; } }

/* ---------- 下のほう ---------- */
footer { background: var(--ink); color: color-mix(in srgb, var(--onink) 80%, transparent); padding: 44px 0 36px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: flex-start; }
footer .brand { color: var(--onink); margin-bottom: 8px; }
footer a { color: var(--onink); }
footer .cols { display: flex; flex-wrap: wrap; gap: 32px; }
footer .cols div { display: grid; gap: 4px; }
footer .cols b { display: block; color: color-mix(in srgb, var(--onink) 55%, transparent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
footer .copy { width: 100%; border-top: 1px solid color-mix(in srgb, var(--onink) 15%, transparent); padding-top: 18px; margin-top: 8px; color: color-mix(in srgb, var(--onink) 55%, transparent); font-size: 13px; }

/* ===================================================================
   サブページ（教材・授業例）で使うもの
   =================================================================== */
.page-head { padding: 48px 0 36px; border-bottom: 2px solid var(--ink); }
.page-head h1 { font-size: clamp(30px, 4.2vw, 44px); }
.page-head p { color: var(--soft); max-width: 720px; margin-top: 10px; }
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--soft); }

/* 教材の1件（説明＋画像） */
.material { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; padding: 40px 0; border-top: 2px dashed var(--line); }
.material:first-of-type { border-top: 0; }
.material h2 { font-size: 26px; margin-bottom: 4px; }
.material .en-title { font-size: 14px; color: var(--accent); font-weight: 800; letter-spacing: .06em; margin-bottom: 14px; }
.material h3 { font-size: 16px; color: var(--accent); margin: 20px 0 6px; }
.material ol, .material ul { color: var(--soft); font-size: 15px; }
.material li + li { margin-top: 4px; }
.material figure { margin: 0; }
.material figure img { border-radius: 10px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); background: #fff; }
.material figcaption { font-size: 13px; color: var(--soft); margin-top: 12px; }
.material .dl { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .material { grid-template-columns: 1fr; gap: 20px; } .material figure { max-width: 420px; } }

/* 授業例（科目ごと） */
.course { padding: 48px 0; border-top: 2px dashed var(--line); }
.course:first-of-type { border-top: 0; }
.course .year { display: inline-block; background: var(--marker); color: #1e2a5a; border-radius: 6px; padding: 2px 12px; font-size: 13px; font-weight: 900; letter-spacing: .06em; margin-bottom: 10px; }
.course h2 { font-size: 26px; margin-bottom: 4px; }
.course .en-title { font-size: 15px; color: var(--accent); font-weight: 800; margin-bottom: 16px; }
.course .intro { max-width: 800px; }
.course h3 { font-size: 17px; color: var(--accent); margin: 26px 0 8px; }
.goals { list-style: none; padding: 0; display: grid; gap: 8px; max-width: 800px; }
.goals li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.goals li::before { content: "☑"; color: var(--accent); font-weight: 900; }

/* 週ごとの表（ノートの罫線のように） */
.weeks { list-style: none; margin: 0; display: grid; gap: 0; background: var(--card); border: 2px solid var(--ink); border-radius: 6px 12px 12px 6px; padding: 6px 22px 6px 40px; position: relative; }
.weeks::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; border-left: 2px dashed var(--accent); opacity: .6; }
.weeks li { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.weeks li:first-child { border-top: 0; }
.weeks .wk { font-weight: 900; color: var(--accent); font-size: 14px; letter-spacing: .04em; padding-top: 3px; }
.weeks h4 { font-size: 16px; margin-bottom: 4px; }
.weeks p, .weeks ul { font-size: 14.5px; color: var(--soft); margin: 0; }
.weeks ul { padding-left: 1.2em; }
.weeks .ref { font-size: 13.5px; margin-top: 4px; }
.weeks .ref a { font-weight: 800; }
@media (max-width: 560px) { .weeks li { grid-template-columns: 1fr; gap: 4px; } .weeks { padding-left: 28px; } }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.gallery img { border-radius: 10px; border: 2px solid var(--ink); aspect-ratio: 16/9; object-fit: cover; }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
