/* Soft/Hard 2026 — 立命館レッドを基調にした再設計（2026-11-04）
   コンセプト：題字の1文字ごとに書体の「Soft」軸を100→0へ，字の太さを細→太へ変え，
   「柔らかい（Soft）」から「硬い（Hard）」へ移る様子を字形そのもので表す。
   ヒーロー下の波線も，左は正弦波，右は角ばった矩形波へ移る。 */
:root {
  --red: #b0111e;          /* 立命館レッド（近似値。公式の値が分かればこの1行だけ差し替える） */
  --red-deep: #6e0a14;     /* 硬い側・フッター */
  --red-ink: #8f0e19;      /* 白地の上の小さな赤文字（コントラスト確保） */
  --ink: #221c1d;
  --muted: #6a6162;
  --paper: #fff;
  --tint: #f6f2f1;
  --line: #e0d8d6;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.hero :focus-visible, footer :focus-visible, .poster-hero :focus-visible { outline-color: #fff; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- ヒーロー ---------- */
.hero, .poster-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(100deg, var(--red) 0%, var(--red) 38%, var(--red-deep) 100%); }
.hero { padding: 76px 0 64px; }
.hero-content { position: relative; max-width: 1120px; }
.eyebrow { margin: 0 0 clamp(28px, 6vw, 56px); font-size: .95rem; font-weight: 500; letter-spacing: .02em; }
.hero h1, .poster-hero h1 { margin: 0; font-family: var(--serif); font-optical-sizing: auto; line-height: .86; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(3.7rem, 13.4vw, 10.6rem); white-space: nowrap; }
.hero h1 .ch { display: inline-block; font-variation-settings: 'opsz' 144, 'SOFT' calc(100 - var(--t) * 100), 'WONK' 0; font-weight: calc(200 + var(--t) * 700); }
.hero h1 .yr { margin-left: .14em; font-size: .3em; font-weight: 300; letter-spacing: 0; vertical-align: .55em; font-variation-settings: 'opsz' 72, 'SOFT' 50; }
.subtitle { max-width: 40ch; margin: clamp(28px, 4vw, 44px) 0 10px; font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 400; font-variation-settings: 'opsz' 36, 'SOFT' 50; line-height: 1.3; }
.theme { margin: 0; font-size: 1.05rem; opacity: .9; }
.wave { display: block; width: 100%; height: 64px; margin: 34px 0 30px; overflow: visible; }
.wave path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: miter; stroke-linecap: butt; vector-effect: non-scaling-stroke; }
.hero-facts { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.event-details p { margin: 0; }
.event-details .when { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 400; font-variation-settings: 'opsz' 72, 'SOFT' 30; line-height: 1.15; letter-spacing: -.01em; }
.event-details .where { margin-top: 10px; font-size: 1.02rem; line-height: 1.5; }
.event-details .where span { opacity: .85; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ボタン ---------- */
.button { display: inline-block; border: 2px solid var(--red); border-radius: 3px; padding: 12px 22px; color: var(--red); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.button:hover { background: var(--red); color: #fff; }
.button--primary { background: var(--red); color: #fff; }
.button--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.hero .button--primary { background: #fff; border-color: #fff; color: var(--red); }
.hero .button--primary:hover { background: transparent; color: #fff; }
.hero .button--secondary { border-color: rgba(255,255,255,.85); color: #fff; }
.hero .button--secondary:hover { background: #fff; color: var(--red); }

/* ---------- ナビ ---------- */
.section-nav { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.section-nav .container { display: flex; align-items: center; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.section-nav .container::-webkit-scrollbar { display: none; }
.nav-mark { margin-right: auto; padding: 13px 0; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; font-variation-settings: 'opsz' 36, 'SOFT' 0; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.section-nav a:not(.nav-mark) { position: relative; padding: 14px 0; color: var(--muted); font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.section-nav a:not(.nav-mark)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.section-nav a:not(.nav-mark):hover, .section-nav a.is-current { color: var(--red-ink); }
.section-nav a:not(.nav-mark):hover::after, .section-nav a.is-current::after { transform: scaleX(1); }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--tint); }
.two-column { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 7vw, 112px); }
.section h2, footer h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 400; font-variation-settings: 'opsz' 72, 'SOFT' 40; letter-spacing: -.012em; line-height: 1.1; }
.section h2::after { content: ''; display: block; width: 44px; height: 3px; margin-top: 22px; background: var(--red); }
.section p { margin: 0 0 18px; max-width: 62ch; }
.text-link { color: var(--red-ink); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.text-link:hover { color: var(--red-deep); }
.fine-print { margin: 28px 0 0; color: var(--muted); font-size: .95rem; }
.section .deadline { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; color: var(--muted); font-size: .98rem; }
.deadline strong { color: var(--red-ink); font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 500; font-variation-settings: 'opsz' 72, 'SOFT' 30; line-height: 1.15; letter-spacing: -.015em; }

/* ---------- トピック ---------- */
.topics-grid { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.topics-grid li { padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-variation-settings: 'opsz' 48, 'SOFT' 40; line-height: 1.25; transition: color .18s ease, padding-left .18s ease; }
.topics-grid li:hover { padding-left: 10px; color: var(--red-ink); }

/* ---------- 招待講演者 ---------- */
.section-head { margin-bottom: clamp(32px, 5vw, 52px); }
.speaker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3.4vw, 44px) clamp(22px, 3vw, 40px); }
.speaker-card { padding-top: 18px; border-top: 3px solid var(--red); }
.speaker-affiliation { margin: 0 0 8px !important; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.speaker-card h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 500; font-variation-settings: 'opsz' 48, 'SOFT' 30; line-height: 1.2; letter-spacing: -.01em; }

/* ---------- プログラム ---------- */
.programme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.programme-day { border-top: 3px solid var(--red); padding-top: 18px; }
.programme-day .date { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; font-variation-settings: 'opsz' 72, 'SOFT' 30; line-height: 1.15; }
.programme-day ul { margin: 0; padding: 0; list-style: none; }
.programme-day li { padding: 11px 0; border-top: 1px solid var(--line); }

/* ---------- フッター ---------- */
footer { padding: 76px 0 24px; color: #fff; background: var(--red-deep); }
footer .section-label { margin: 0 0 14px; color: #f0c9cc; font-size: .95rem; font-weight: 500; }
.footer-content { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-content h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.footer-content p { margin: 16px 0 0; }
.footer-link { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.copyright { margin-top: 64px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.28); color: #ecd3d5; font-size: .85rem; }

/* ---------- ポスター発表ページ ---------- */
.poster-hero { padding: 80px 0 64px; }
.poster-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 600; font-variation-settings: 'opsz' 144, 'SOFT' 20; line-height: .95; }
.poster-hero .subtitle { margin-bottom: 0; }
.poster-hero .wave { margin: 34px 0 0; }
.poster-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; margin-bottom: 32px; }
.poster-intro p { margin: 0; }
.section-label { margin: 0 0 12px; color: var(--red-ink); font-size: .95rem; font-weight: 700; }
label.section-label { display: block; }
.poster-count { margin: 0 0 14px !important; color: var(--red-ink); font-weight: 700; }
.poster-search { width: min(100%, 460px); border: 1px solid var(--line); border-radius: 3px; padding: 13px 15px; color: var(--ink); background: #fff; font: inherit; }
.poster-search:focus { outline: 3px solid rgba(176,17,30,.22); border-color: var(--red); }
.poster-table-wrap { overflow-x: auto; border-top: 3px solid var(--red); }
.poster-table { width: 100%; border-collapse: collapse; text-align: left; }
.poster-table th, .poster-table td { padding: 17px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.poster-table th { color: var(--red-ink); font-size: .92rem; font-weight: 700; white-space: nowrap; }
.poster-table tbody tr:hover { background: var(--tint); }
.poster-table td:first-child { width: 66px; color: var(--red-ink); font-weight: 700; }
.poster-table td:nth-child(2) { min-width: 160px; font-weight: 700; }
.poster-table td:nth-child(3) { min-width: 180px; color: var(--muted); }
.poster-table td:last-child { min-width: 390px; font-family: var(--serif); font-size: 1.08rem; font-variation-settings: 'opsz' 18, 'SOFT' 30; line-height: 1.45; }
.poster-table tr[hidden] { display: none; }
.no-results { margin: 24px 0 0; color: var(--muted); }


/* ---------- プログラムページ ---------- */
.schedule { border-top: 3px solid var(--red); }
.slot { display: grid; grid-template-columns: minmax(130px, 180px) minmax(0, 1fr); gap: 0 28px; padding: 17px 16px; border-bottom: 1px solid var(--line); }
.slot p { margin: 0; max-width: none; }
.slot-time { color: var(--red-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.slot h3 { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; font-variation-settings: 'opsz' 36, 'SOFT' 30; line-height: 1.25; }
.slot .slot-body p { margin-top: 3px; color: var(--muted); font-size: .98rem; }
.slot .slot-body p:has(.text-link) { margin-top: 8px; }
.slot--event { background: #f0e9e7; }
.slot--event h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; font-variation-settings: normal; }
.slot--break .slot-time { color: var(--muted); }
.slot--break h3 { font-family: var(--sans); font-size: 1.02rem; font-style: italic; font-weight: 400; color: var(--muted); font-variation-settings: normal; }
.slot--opt h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; font-variation-settings: normal; }
.section--tint .slot:not(.slot--event) { background: transparent; }
.actions--page { margin-top: 26px; }
.fine-print--top { margin: 0 0 22px; }
.poster-download { margin-top: 12px !important; }
@media (max-width: 680px) { .slot { grid-template-columns: 1fr; gap: 4px; padding: 15px 12px; } }

/* ---------- 動き：題字の下の波線が左から1回だけ描かれる ---------- */
@media (prefers-reduced-motion: no-preference) {
  .wave { clip-path: inset(-4px 100% -4px 0); animation: reveal 2.2s cubic-bezier(.5, 0, .2, 1) .25s forwards; }
  @keyframes reveal { to { clip-path: inset(-4px 0 -4px 0); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .topics-grid li, .topics-grid li:hover { transition: none; padding-left: 0; } }

/* ---------- 画面幅への対応 ---------- */
@media (max-width: 900px) {
  .speaker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, 1120px); }
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: 19vw; }
  .hero h1 .yr { display: block; margin: 10px 0 0; font-size: .26em; vertical-align: baseline; }
  .wave { height: 44px; margin: 26px 0 24px; }
  .two-column, .programme-grid, .speaker-grid { grid-template-columns: 1fr; }
  .two-column { gap: 22px; }
  .speaker-grid { gap: 24px; }
  .section-nav .container { gap: 20px; }
  .nav-mark { display: none; }
  .footer-content { flex-direction: column; }
  .poster-intro { grid-template-columns: 1fr; }
  .poster-hero { padding: 56px 0 48px; }
  .poster-table th, .poster-table td { padding: 14px 12px; }
}
