/* ===================================================================
   創薬専門英語（Advanced Self-promotion）サイト  見た目の設定

   ・色を変えたいときは、すぐ下の :root の中の色番号を書き換えます
   ・書体は Google Fonts の Plus Jakarta Sans（英語）と Murecho（日本語）
     明朝体・Serif 体は使っていません
   ・作りは「専門英語（Advanced English）」のサイトと同じ。色だけ
     紺＋ラズベリーに変えてあります（2026年9月20日、案 P9 を採用）
   =================================================================== */

:root {
  --deep:      #10306e;   /* 表紙と帯の紺（背景に使う） */
  --purple:    #1b4fa0;   /* 見出し・リンクの青 */
  --accent:    #b8336a;   /* 差し色（ラズベリー。専門英語サイトと同じ色）。ボタン・丸・再生 */
  --accent-ink: var(--accent); /* 白地の上の小さな文字に使う差し色（黄色など薄い差し色のときだけ濃くする） */
  --on-accent: #ffffff;   /* 差し色のボタンの上の文字色 */
  --mauve:     #a9d4ff;   /* 濃い背景の上に置く薄い水色 */
  --pale:      #e6f1fc;   /* 薄い水色の下地（札など） */
  --sand:      #f4f8fd;   /* 帯の背景 */

  --ink:       #141d30;   /* 本文の文字色 */
  --ink-soft:  #52607a;   /* 補足の文字色 */
  --ink-faint: #96a2b8;   /* さらに薄い文字色 */
  --paper:     #ffffff;   /* ページの背景 */
  --panel:     #ffffff;   /* カードの背景 */
  --line:      #d7e3f2;

  --font:    "Plus Jakarta Sans", "Murecho", system-ui, sans-serif;
  --shadow:  0 16px 40px color-mix(in srgb, var(--deep) 12%, transparent);
  --radius:  18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --deep:    #081633;   --purple: #8fb4ef;  --accent: #e8659a;
    --mauve:   #7fb3e8;   --pale:   #16243f;  --sand:   #0f1a30;
    --ink:     #e8edf6;   --ink-soft: #b3bfd3; --ink-faint: #7f8ba3;
    --paper:   #0c1527;   --panel:  #16213a;  --line:   #2a3a5c;
    --shadow:  0 16px 40px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  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(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.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", "Plus Jakarta Sans", "Hiragino Sans", system-ui, sans-serif; }

/* ---------- 上のバー ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--deep) 92%, transparent);
  backdrop-filter: blur(10px);
  color: #fff;
}
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.brand small { font-weight: 500; opacity: .75; font-size: 12px; margin-left: 4px; }
.bar-right { display: flex; align-items: center; gap: 18px; }
.bar nav { display: flex; gap: 4px; }
.bar nav a { color: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bar nav a:hover, .bar nav a.current { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.langswitch { display: flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.langswitch button { white-space: nowrap; border: 0; background: transparent; color: rgba(255,255,255,.8); padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.langswitch button[aria-pressed="true"] { background: #fff; color: var(--deep); }
.burger { display: none; border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer; padding: 4px 8px; }

@media (max-width: 1000px) {   /* メニューが6項目あるので、専門英語サイト（860px）より広めで「≡」に切り替える */
  .bar nav { display: none; }
  .burger { display: inline-block; }
  .brand small { display: none; }
  .bar-right { gap: 8px; }
  body.nav-open .bar nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 60px;
    background: var(--deep); padding: 10px 16px 16px; border-top: 1px solid rgba(255,255,255,.15);
  }
  body.nav-open .bar nav a { padding: 10px 12px; font-size: 16px; }
}
/* さらに狭い画面では、長い題名（Advanced Self-promotion）を詰めて、はみ出す分は「…」に */
@media (max-width: 560px) {
  .brand { min-width: 0; font-size: 14px; }
  .brand > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bar-right { flex: none; }
  .langswitch button { padding: 5px 9px; font-size: 12px; }
}

/* ---------- 表紙 ---------- */
.hero {
  background: var(--deep);
  color: #fff;
  position: relative; overflow: hidden;
  padding: 72px 0 64px;
}
.hero::before {              /* 右上のやわらかい光 */
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--mauve); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.for { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 14px; font-size: 13.5px; color: #fff; margin: 0 0 16px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -.02em; }
.hero h1 .sub { display: block; font-size: .42em; font-weight: 600; color: var(--mauve); margin-top: 10px; letter-spacing: 0; }
.hero .lead { font-size: 17px; color: rgba(255,255,255,.85); max-width: 560px; margin: 24px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.ghost:hover { border-color: #fff; }

/* 表紙の右側：成果動画のサムネイルの寄せ集め */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; transform: rotate(-3deg); }
.mosaic-tile { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.35); aspect-ratio: 16/10; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mosaic-tile:hover img { transform: scale(1.05); }
.mosaic-tile:nth-child(odd) { transform: translateY(18px); }

/* （いまは使っていない）この授業で作る3つのもののカード。表紙の右側を動画でなくこれにしたいときに使う */
.outputs { display: grid; gap: 14px; transform: rotate(-3deg); }
.output {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 16px;
  padding: 18px 22px; backdrop-filter: blur(6px); box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.output .tag { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mauve); margin-bottom: 4px; }
.output h3 { font-size: 20px; color: #fff; margin: 0 0 4px; }
.output p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.75); line-height: 1.6; }
.output:nth-child(1) { margin-right: 36px; }
.output:nth-child(2) { margin-left: 24px; margin-right: 12px; }
.output:nth-child(3) { margin-left: 48px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .mosaic { transform: none; }
  .mosaic-tile:nth-child(odd) { transform: none; }
  .outputs { transform: none; }
  .output:nth-child(n) { margin: 0; }
}

/* ---------- 各セクション ---------- */
section { padding: 72px 0; }
section.alt { background: var(--sand); }
.sec-head { max-width: 720px; margin: 0 0 36px; }
.sec-head .kicker { color: var(--accent-ink); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--purple); }
.sec-head p { color: var(--ink-soft); margin: 12px 0 0; }
.nw { display: inline-block; }   /* 見出しの句の途中で改行しないようにする */

/* 特色のカード */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 20px; position: relative; overflow: hidden;
}
.feature .num { color: var(--accent-ink); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.feature h3 { font-size: 19px; margin: 8px 0 10px; color: var(--purple); }
.feature p { font-size: 15px; color: var(--ink-soft); margin: 0; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* 到達目標 */
.goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; counter-reset: goal; }
.goal { background: var(--deep); color: #fff; border-radius: var(--radius); padding: 28px 24px; }
.goal::before { counter-increment: goal; content: "0" counter(goal); display: block; color: var(--mauve); font-weight: 800; font-size: 28px; letter-spacing: -.02em; margin-bottom: 8px; }
.goal p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.6; }
@media (max-width: 700px) { .goals { grid-template-columns: 1fr; } }

/* 授業の流れ（縦の時間軸） */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.step { position: relative; padding: 0 0 30px 22px; }
.step::before { content: ""; position: absolute; left: -26px; top: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
section.alt .step::before { box-shadow: 0 0 0 4px var(--sand); }
.step .weeks { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-ink); letter-spacing: .1em; text-transform: uppercase; }
.step h3 { font-size: 20px; color: var(--purple); margin: 2px 0 8px; }
.step p { color: var(--ink-soft); margin: 0; max-width: 720px; }
.step .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.step .tags span { font-size: 12px; background: var(--pale); color: var(--purple); border-radius: 999px; padding: 2px 10px; }

/* 2段組み */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 18px; }
.box h3 { color: var(--purple); font-size: 18px; margin-bottom: 10px; }
.box ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.box li { margin-bottom: 6px; }

/* ---------- 成果動画 ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-grid .video-year { grid-column: 1 / -1; color: var(--accent-ink); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 -6px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.video-grid .video-year:first-child { margin-top: 0; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .video-grid { grid-template-columns: 1fr; } }

.video { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.video-thumb { display: block; width: 100%; border: 0; padding: 0; background: #000; cursor: pointer; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.video-thumb:hover img { transform: scale(1.04); }
.video-thumb .play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.video-thumb .play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 18px solid var(--on-accent); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.video-frame { aspect-ratio: 16/9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-body { padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; flex-wrap: wrap; }
.video-ay { color: var(--accent-ink); font-weight: 800; letter-spacing: .08em; }
.video-kind { background: var(--pale); color: var(--purple); border-radius: 999px; padding: 1px 9px; font-weight: 600; }
.video-title { font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.video-student { font-size: 13.5px; color: var(--ink-soft); font-weight: 600; margin: 0; line-height: 1.5; }
.video-lab { font-size: 13px; color: var(--ink-faint); margin: 0; line-height: 1.5; }
.video-links { margin: auto 0 0; padding-top: 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; line-height: 1.5; }
.video-links .yt { color: var(--ink-faint); }

/* 年度のボタン */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--ink-soft); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.chip-n { font-size: 11px; opacity: .7; }

.more { text-align: center; margin-top: 36px; }

/* 注意書き */
.note { font-size: 14px; color: var(--ink-soft); background: var(--pale); border-radius: 12px; padding: 14px 18px; }

/* ---------- 講師 ---------- */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 700px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; gap: 18px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.person h3 { font-size: 18px; color: var(--purple); }
.person .role { font-size: 13px; color: var(--accent-ink); font-weight: 700; margin: 0 0 6px; }
.person p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.others { background: var(--pale); border-radius: var(--radius); padding: 22px 24px; font-size: 14.5px; color: var(--ink-soft); }
.others h3 { font-size: 15px; color: var(--purple); margin-bottom: 6px; }
.others p { margin: 0; }

/* ---------- 下の部分 ---------- */
footer { background: var(--deep); color: rgba(255,255,255,.8); padding: 44px 0 28px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; letter-spacing: .06em; text-transform: uppercase; }
footer a { color: #fff; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }
footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; margin-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.6); }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* ---------- 下層ページの見出し ---------- */
.page-head { background: var(--deep); color: #fff; padding: 56px 0 44px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 46px); }
.page-head p { color: rgba(255,255,255,.8); max-width: 680px; margin: 14px 0 0; }
