/* 色は3つだけ: 黄 #FFD426、インク #17150f、白。カードの地だけ少し黄みの白 */
:root {
  --y: #FFD426;
  --ink: #17150f;
  --white: #ffffff;
  --paper: #fffdf2;
  --dot: "DotGothic16", "Hiragino Sans", monospace;
  --text: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --frame: 3px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --w: 880px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--y); color: var(--ink); font-family: var(--text); line-height: 1.8; overflow-wrap: anywhere; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, li { word-break: auto-phrase; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
main, .nav, .foot p { max-width: var(--w); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3, .lbl, .btn, .btn-apply, .nav, .stats, .ev-meta, .next-meta, .back, .me-role, .me-links, .soon, .later { font-family: var(--dot); font-weight: 400; letter-spacing: .04em; }
.lbl { font-size: 13px; letter-spacing: .14em; }

/* ナビ */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; border-bottom: var(--frame); font-size: 14px; }
.nav a { text-decoration: none; }
.nav-sub { margin-left: 10px; padding: 1px 7px; background: var(--ink); color: var(--y); font-size: .85em; letter-spacing: .08em; }
.nav nav { display: flex; gap: 16px; white-space: nowrap; }
.nav-sub { white-space: nowrap; }
.nav nav a:hover, .nav nav a:focus-visible { background: var(--ink); color: var(--y); outline: 0; }

/* 最初の画面 */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-block: 48px 30px; }
.hero h1 { font-size: clamp(24px, 5.2vw, 46px); line-height: 1.35; margin-block: 10px 12px; }
.seg { display: inline-block; }
.hero-desc { max-width: 30em; font-size: 16px; }
.chara { position: relative; width: 168px; aspect-ratio: 24 / 21; flex: none; }
.chara-wrap { display: grid; justify-items: center; gap: 6px; }
.chara-name { font-family: var(--dot); font-size: 11px; letter-spacing: .12em; line-height: 1; opacity: .6; }
.chara img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.chara .blink { opacity: 0; }

/* 次回イベント */
.next { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--ink); color: var(--y); padding: 22px 24px; box-shadow: 6px 6px 0 var(--white); }
.next h2 { color: var(--white); font-size: clamp(21px, 3.8vw, 30px); line-height: 1.4; margin-block: 4px; }
.next-meta { font-size: 15px; }
.next-sum { color: var(--white); font-size: 15px; margin-top: 6px; max-width: 34em; }
.btn, .btn-apply { display: inline-block; background: var(--y); color: var(--ink); border: 3px solid var(--y); padding: 12px 20px; font-size: 18px; text-decoration: none; white-space: nowrap; box-shadow: 4px 4px 0 var(--white); }
.btn:hover, .btn-apply:hover, .btn:focus-visible, .btn-apply:focus-visible { background: var(--white); border-color: var(--white); outline: 0; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--y); }
.soon { font-size: 14px; border: 2px dashed var(--y); padding: 8px 12px; white-space: nowrap; }
.later { margin-top: 22px; }
.later ul { list-style: none; border-top: var(--frame); }
.later li { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; padding: 10px 0; border-bottom: var(--frame); }
.later .t { flex: 1; min-width: 10em; }

/* これまでの開催 */
.archive { padding-top: 64px; }
.archive > h2, .about h2 { font-size: 28px; line-height: 1.4; }
.archive > h2 { margin-bottom: 18px; }
.ev { display: grid; grid-template-columns: 240px 1fr; background: var(--paper); border: var(--frame); box-shadow: var(--shadow); margin-bottom: 22px; }
.ev-nophoto { grid-template-columns: 1fr; }
.ev-photo { width: 100%; height: 100%; min-height: 160px; object-fit: cover; border-right: var(--frame); }
.ev-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.ev-meta { font-size: 13px; }
.ev h3 { font-size: 22px; line-height: 1.45; }
.ev-sum { font-size: 15px; }
.ev-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 10px; }
.stats { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.stats li { background: var(--ink); color: var(--y); padding: 1px 9px; }
.ev-report { font-family: var(--dot); font-size: 15px; margin-left: auto; text-underline-offset: 4px; }
.ev-report:hover, .ev-report:focus-visible { background: var(--ink); color: var(--y); outline: 0; }
.none { border: 3px dashed var(--ink); padding: 18px; }

/* 自己紹介 */
.about { padding-block: 56px 64px; }
.me { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--paper); border: var(--frame); box-shadow: var(--shadow); padding: 20px; margin-top: 10px; }
.me:not(:has(.me-photo)) { grid-template-columns: 1fr; }
.me-photo { width: 104px; height: 104px; object-fit: cover; border: var(--frame); background: var(--white); }
.me-role { font-size: 14px; }
.me-bio { font-size: 15px; margin-top: 8px; }
.me-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 15px; }
.me-links a { text-underline-offset: 4px; }
.me-links a:hover, .me-links a:focus-visible { background: var(--ink); color: var(--y); outline: 0; }

/* レポート */
.report { padding-block: 28px 64px; }
.report h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.4; margin-block: 6px 14px; }
.rep-meta { font-family: var(--dot); font-size: 14px; letter-spacing: .04em; margin-top: 2px; }
.lead { font-size: 17px; font-weight: 700; margin-bottom: 14px; max-width: 36em; }
.back { font-size: 14px; margin-block: 0 22px; }
.back a { text-underline-offset: 4px; }
.rep-photo { width: 100%; border: var(--frame); box-shadow: var(--shadow); margin-top: 22px; }
.prose { background: var(--paper); border: var(--frame); box-shadow: var(--shadow); padding: 26px 26px 30px; margin-block: 26px 30px; font-size: 16.5px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 22px; line-height: 1.5; margin-top: 1.8em; padding-left: 10px; border-left: 8px solid var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { border: var(--frame); }
.photos { display: grid; gap: 10px; }
.photos-2 { grid-template-columns: repeat(2, 1fr); }
.photos-3 { grid-template-columns: repeat(3, 1fr); }
.photos img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 640px) { .photos-2, .photos-3 { grid-template-columns: 1fr; } }
.prose video { width: 100%; display: block; border: var(--frame); background: var(--ink); }
.prose blockquote { border-left: 4px solid var(--ink); padding-left: 14px; }
.prose a { text-underline-offset: 4px; }

/* フッター */
.foot { background: var(--ink); color: var(--y); font-size: 13px; padding-block: 18px; }

@media (max-width: 640px) {
  .nav { font-size: 12px; }
  .nav-sub { display: block; width: fit-content; margin: 4px 0 0; }
  .nav nav { gap: 10px; }
  /* スマホではシマエナガを次回イベントの枠の右上に止まらせる */
  .hero { grid-template-columns: 1fr; padding-block: 28px 0; gap: 0; }
  .chara { width: 92px; }
  .chara-wrap { justify-self: end; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 8px; margin: 4px 14px -5px 0; position: relative; z-index: 1; }
  .chara-name { padding-bottom: 12px; }
  .next-meta .sep { display: none; }
  .next-meta .seg { display: block; }
  .next { grid-template-columns: 1fr; padding: 18px; }
  .btn, .btn-apply { text-align: center; }
  .ev { grid-template-columns: 1fr; }
  .ev-photo { border-right: 0; border-bottom: var(--frame); max-height: 220px; }
  .me { grid-template-columns: 1fr; }
  .prose { padding: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .chara { animation: bob 1.2s steps(2, jump-none) infinite; }
  .chara .blink { animation: blink 4s steps(1) infinite; }
  @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-6px); } }
  @keyframes blink { 0%, 94% { opacity: 0; } 95%, 100% { opacity: 1; } }
}
