/* =========================================================
   大西一史 オフィシャルサイト — shared styles
   Flat, rule-based layout: serif headings, hairlines, no shadows
   ========================================================= */

:root {
  --ink: #2E3952;
  --navy: #2E3952;
  --muted: #615C70;
  --hover: #7E7787;
  --line: #DDDADF;
  --field: #BDB7BF;
  --lav: #D2D7ED;
  --lav-2: #E9EBF6;
  --lav-3: #EEF0F8;
  --red: #EA5520;
  --foot: #2E3952;

  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --maxw: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --sec: clamp(64px, 9vw, 120px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .03em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--hover); }
h1, h2, h3 { word-break: auto-phrase; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow > * { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.accent { color: var(--red); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--ink); }
.site-header .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 14px 0; }
.logo { width: 44px; height: auto; flex: none; }
.stamp { width: 44px; height: 44px; background: var(--navy); color: #fff; display: grid; grid-template-rows: 1fr 1fr; place-items: center; padding: 4px 0; font-family: var(--serif); font-weight: 800; font-size: 16px; line-height: 1; flex: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .16em; color: var(--navy); }
.gnav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); margin-left: auto; font-size: 14px; font-weight: 500; }
.gnav a { text-decoration: none; white-space: nowrap; }
.gnav a[aria-current="page"] { text-decoration: underline; }
.cta { background: var(--navy); color: #fff; padding: 9px 18px; border-radius: 2px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.cta:hover { background: var(--hover); color: #fff; }

@media (max-width: 760px) {
  .site-header .wrap { min-height: 0; gap: 0; }
  .brand { padding: 10px 0; }
  .site-header .cta { padding: 7px 14px; font-size: 13px; }
  .gnav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 8px; padding: 9px 0 11px; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: 0; }
}

/* ---------- buttons / links ---------- */
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.6; padding: 14px 28px; border-radius: 2px; border: 0; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--hover); color: #fff; }
.btn--plain { background: #fff; color: var(--navy); border: 1px solid var(--navy); padding: 13px 27px; }
.btn--plain:hover { background: var(--lav-3); color: var(--navy); }
.links { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; font-weight: 500; font-size: 15px; }
.tlink { font-weight: 500; font-size: 15px; }
.note { font-weight: 400; color: var(--ink); margin-left: 8px; font-size: 13px; }

/* ---------- common headings ---------- */
.label { margin: 0 0 24px; font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: .12em; }
.h2 { margin: 0 0 48px; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.5; letter-spacing: .08em; color: var(--navy); }
.section { padding: var(--sec) 0; }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- home: hero ---------- */
/* the backdrop continues the studio background of hero.jpg (sampled down its left edge), so text and photo read as one picture */
.hero { border-bottom: 1px solid var(--ink); background: linear-gradient(#E5E8ED, #EAEFF3 10%, #EEF2F5 30%, #F0F5F8 50%, #F6F7FB 60%, #F8F9FA 75%, #FAFAFA 90%); }
.hero .row { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; }
.hero-text { flex: 1 1 380px; display: flex; justify-content: flex-end; align-items: stretch; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) 0; }
/* slogan hangs from the top; the name sits on the bottom edge of the photo */
.hero-v { display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 40px); }
.hero-text .who { align-self: flex-end; margin: 0 0 clamp(32px, 4vw, 56px); display: flex; flex-direction: row-reverse; align-items: flex-end; gap: .5em; font-family: var(--serif); line-height: 1.3; }
.hero-text .role, .hero-text .name { writing-mode: vertical-rl; }
.hero-text .role { display: inline-block; font-weight: 600; font-size: 15px; letter-spacing: .4em; color: var(--muted); }
.hero-text .name { display: inline-block; font-weight: 700; font-size: clamp(28px, 2.9vw, 40px); letter-spacing: .26em; color: var(--navy); }
.hero-text h1 { margin: 0; writing-mode: vertical-rl; font-family: var(--serif); font-weight: 800; font-size: clamp(38px, 5.1vw, 72px); line-height: 1.45; letter-spacing: .14em; color: var(--navy); }
.hero-text h1 .ln { display: inline-block; }
.hero-text h1 .ln2 { padding-top: 1em; }
.hero-photo { flex: 1 1 420px; max-height: 820px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
@media (max-width: 760px) {
  .hero .row { flex-wrap: nowrap; min-height: min(calc(100svh - 170px), 600px); }
  .hero-text { flex: none; justify-content: flex-start; padding: 28px 10px 0 var(--pad); }
  .hero-text .role { font-size: 12px; letter-spacing: .32em; }
  .hero-v { gap: 6px; }
  .hero-text .who { margin-bottom: 24px; }
  .hero-text .name { font-size: 22px; letter-spacing: .2em; }
  .hero-text h1 { font-size: clamp(26px, 8.2vw, 36px); letter-spacing: .1em; line-height: 1.38; }
  .hero-photo { flex: 1 1 auto; min-width: 0; max-height: none; }
  .hero-photo img { object-position: 22% 0; }
}

.notice { border-bottom: 1px solid var(--line); }
.notice .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap; font-size: 15px; }
.notice b { color: var(--navy); flex: none; font-weight: 600; }
.notice a { font-weight: 500; }
@media (max-width: 760px) { .notice .wrap { gap: 2px 16px; padding-top: 14px; padding-bottom: 14px; } }

/* ---------- home: manifesto ---------- */
.mf { background: var(--lav); }
.mf-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.mf-logo { width: clamp(220px, 34vw, 380px); height: auto; }
.mf .label { color: var(--navy); margin: 0 0 6px; }
.mf-slogan img { width: clamp(240px, 40vw, 500px); height: auto; }
.mf-row { display: flex; flex-wrap: wrap; gap: 40px clamp(40px, 6vw, 96px); align-items: flex-end; }
.mf-row h2 { flex: 1 1 440px; margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(34px, 5vw, 64px); line-height: 1.6; letter-spacing: .08em; color: var(--navy); }
.mf-row h2 .ln { display: block; }
.mf-side { flex: 1 1 340px; max-width: 480px; }
.mf-side p { margin: 0 0 20px; font-weight: 500; line-height: 2; color: var(--navy); }
.mf-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-weight: 500; font-size: 15px; }

/* ---------- home: pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: 48px; }
.pillar { border-top: 2px solid var(--navy); padding-top: 20px; }
.pillar .kicker { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .1em; }
.pillar h3 { margin: 2px 0 16px; font-family: var(--serif); font-weight: 700; font-size: 23px; line-height: 1.5; color: var(--navy); }
.numlist { list-style: none; margin: 0; padding: 0; }
.numlist li { display: grid; grid-template-columns: 2.2em 1fr; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.numlist li > span { font-variant-numeric: tabular-nums; color: var(--muted); }
.numlist a { color: var(--ink); text-decoration: none; }
.numlist a:hover { color: var(--hover); text-decoration: underline; }
.principle { margin: clamp(56px, 7vw, 88px) 0 0; max-width: 860px; }
.principle blockquote { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.9; color: var(--ink); }
.principle figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- home: message ---------- */
.split { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--top { align-items: flex-start; }
.photo { background: var(--lav-2); }
.photo img { width: 100%; height: auto; }
.message-photo { flex: 1 1 320px; max-width: 460px; }
.message-text { flex: 1.3 1 400px; }
.quote { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 1.7vw, 21px); line-height: 2.1; }
.quote p { margin: 0 0 1em; }
.quote p:last-child { margin: 0; }
.quote strong { font-weight: 700; color: var(--navy); font-size: 1.15em; }
.sign { margin: 32px 0 28px; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .3em; color: var(--navy); }

/* ---------- home: record ---------- */
.record { background: var(--lav-3); border-top: 1px solid var(--line); }
.record-head { display: flex; flex-wrap: wrap; gap: 24px clamp(40px, 6vw, 96px); margin-bottom: 56px; align-items: flex-end; }
.record-head .h2 { flex: 1 1 360px; margin: 0; }
.record-head p { flex: 1 1 420px; margin: 0; max-width: 560px; }
.record-body { display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 6vw, 96px); align-items: flex-start; }
.years { flex: 1.2 1 440px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.years li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.years .y { line-height: 1.4; }
.years .y b { display: block; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--navy); }
.years .y small { font-size: 12px; color: var(--muted); }
.years p { margin: 0; font-size: 15px; line-height: 1.75; }
.years p b { display: block; font-size: 16px; font-weight: 600; }
.result { flex: 1 1 340px; }
.result .t { margin: 0 0 4px; font-weight: 500; font-size: 15px; }
.result .s { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.bar { display: flex; height: 14px; background: var(--line); }
.bar span:nth-child(1) { background: var(--navy); }
.bar span:nth-child(2) { background: #A7A1AC; }
.bar span:nth-child(3) { background: #C9CACB; }
.legend { margin: 16px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; line-height: 1.6; }
.legend dt { font-weight: 500; font-variant-numeric: tabular-nums; }
.legend dt i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; }
.legend dd { margin: 0; }
.result .more { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.9; }

/* ---------- profile block (home + profile page) ---------- */
.prof-photo { flex: 0 1 340px; }
.prof-text { flex: 1 1 400px; max-width: 640px; }
.prof-name { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: .3em; color: var(--navy); line-height: 1.4; }
.prof-kana { margin: 4px 0 28px; font-size: 13px; letter-spacing: .3em; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: 4.5em 1fr; gap: 12px 20px; border-top: 1px solid var(--ink); padding-top: 20px; font-size: 15px; line-height: 1.85; }
.facts dt { font-weight: 500; color: var(--muted); }
.facts dd { margin: 0; }

/* ---------- home: join ---------- */
.join { border-top: 1px solid var(--ink); }
.join .wrap { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px 0; }
.two > div:first-child { padding-right: clamp(0px, 4vw, 56px); }
.two > div + div { border-left: 1px solid var(--line); padding-left: clamp(20px, 4vw, 56px); }
.two h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--navy); line-height: 1.5; }
.two p { margin: 0 0 28px; max-width: 30em; }
.two .links { gap: 16px 24px; }
.sns { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); max-width: 30em; }
.sns li { display: grid; grid-template-columns: 8em 1fr; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sns span { color: var(--muted); font-weight: 500; }
.sns a { font-weight: 500; }
@media (max-width: 560px) { .sns li { grid-template-columns: 1fr; } }

/* ---------- sub pages ---------- */
.page-head { border-bottom: 1px solid var(--ink); }
.page-head .wrap { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 48px); }
.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.page-head h1 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.45; letter-spacing: .1em; color: var(--navy); }
.tabs { display: flex; gap: 28px; margin: 0 0 48px; font-weight: 500; font-size: 15px; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; color: var(--muted); padding: 0 0 10px; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom: 2px solid var(--navy); }

.h3 { margin: 0 0 20px; font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: .1em; color: var(--navy); }
.history { list-style: none; margin: 0 0 64px; padding: 0; border-top: 1px solid var(--ink); }
.history li { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.75; }
.history time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
.history li.hl p { font-weight: 600; color: var(--navy); }
.history p { margin: 0; }
.history small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }

.datalist { margin: 0; border-top: 1px solid var(--ink); }
.datalist > div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.datalist dt { font-weight: 500; color: var(--muted); font-size: 15px; }
.datalist dd { margin: 0; line-height: 1.85; }
.datalist ul { margin: 0; padding: 0; list-style: none; }
.datalist li small { color: var(--muted); font-size: 13px; margin-left: 4px; }
.datalist .motto { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--navy); }
.datalist figure { margin: 14px 0 0; }
.datalist figure img { width: 200px; }

.prose { max-width: 46em; }
.prose h2 { margin: 56px 0 18px; padding-top: 20px; border-top: 2px solid var(--navy); font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.5; color: var(--navy); letter-spacing: .06em; }
.prose h2:first-child { margin-top: 0; }
.prose .lead { font-weight: 500; color: var(--navy); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--lav); }
.prose blockquote p:last-child { margin: 0; }
.rules { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 2.4em 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); line-height: 1.7; }
.rules li::before { content: counter(r); color: var(--muted); font-variant-numeric: tabular-nums; }

.smap { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.smap > li { border-bottom: 1px solid var(--line); padding: 16px 0; }
.smap a { font-weight: 500; }
.smap ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 1.4em; }
.smap ul li { padding: 4px 0; font-size: 15px; }

.fax { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.fax img { width: 200px; border: 1px solid var(--line); }
.fax p { margin: 0 0 8px; }

@media (max-width: 560px) {
  .history li, .datalist > div { grid-template-columns: 1fr; gap: 2px; }
  .two > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 40px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--foot); color: #fff; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.2); }
.foot-name { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: .16em; }
.foot-sub { margin: 6px 0 0; font-size: 13px; color: var(--lav); }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 6px 32px; font-size: 14px; }
.foot-nav a { color: #fff; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; color: #fff; }
.foot-sns { margin: 14px 0 0; display: flex; gap: 20px; font-size: 14px; }
.foot-sns a { color: #fff; }
.foot-sns a::after, .sns a::after { content: " ↗"; font-size: .85em; }
.copy { margin: 20px 0 0; font-size: 12px; color: var(--lav); }
@media (max-width: 560px) { .foot-nav { grid-template-columns: repeat(2, auto); } }

/* ---------- motion ----------
   Quiet by design: rules draw in, text rises a few pixels, photos open
   like a curtain. Only for no-preference users and when JS is running. */
a, .btn, .numlist a { transition: color .2s ease, background-color .2s ease; }

@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(.2, .7, .2, 1); }

  /* hero plays on load */
  .js .hero .ln { animation: reveal-down 1.2s var(--ease) both .15s; }
  .js .hero .ln2 { animation-delay: .5s; }
  .js .hero .who { animation: fade 1s ease both 1.1s; }
  .js .hero-photo img { animation: settle 1.8s var(--ease) both; }
  @keyframes reveal-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

  /* scroll-in states */
  .js [data-anim] { --delay: calc(var(--i, 0) * 110ms); }
  .js [data-anim~="up"] { opacity: 0; transform: translateY(14px); transition: opacity .9s ease var(--delay), transform .9s var(--ease) var(--delay); }
  .js [data-anim~="fade"] { opacity: 0; transition: opacity 1s ease var(--delay); }
  .js [data-anim~="up"].is-in, .js [data-anim~="fade"].is-in { opacity: 1; transform: none; }

  .js [data-anim~="stagger"] > * { opacity: 0; transform: translateY(10px); transition: opacity .8s ease, transform .8s var(--ease); transition-delay: calc(var(--j, 0) * 70ms + 150ms); }
  .js [data-anim~="stagger"].is-in > * { opacity: 1; transform: none; }

  .js .rule { position: relative; border-top-color: transparent !important; }
  .js .rule::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--rw, 1px) * -1); height: var(--rw, 1px); background: var(--rc, var(--ink)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) var(--delay, 0s); }
  .js .rule.is-in::before { transform: scaleX(1); }
  .js .pillar.rule { --rw: 2px; --rc: var(--navy); }

  /* a white sheet shrinks off to the right. Animating clip-path repaints the photo
     every frame and made scrolling stutter; a transform stays on the compositor. */
  .js [data-anim~="curtain"] { position: relative; overflow: hidden; }
  .js [data-anim~="curtain"]::after { content: ""; position: absolute; inset: -1px; background: #fff; transform-origin: right; transition: transform 1.3s var(--ease); }
  .js [data-anim~="curtain"] img { transform: scale(1.06); transition: transform 1.8s var(--ease); }
  .js [data-anim~="curtain"].is-in::after { transform: scaleX(0); }
  .js [data-anim~="curtain"].is-in img { transform: none; }

  .js [data-anim~="grow"] { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .3s; }
  .js [data-anim~="grow"].is-in { transform: none; }

  .numlist a { display: inline-block; transition: color .2s ease, transform .25s var(--ease); }
  .numlist a:hover { transform: translateX(4px); }
}

/* ---------- manifesto archive ---------- */
.archive-lead { max-width: 46em; margin: 0 0 24px; }
.archive-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 14px 0; margin: 0 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.archive-now span { font-size: 13px; color: var(--muted); }
.archive { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 48px clamp(24px, 3vw, 48px); }
.ed { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; border-top: 2px solid var(--navy); padding-top: 24px; }
.ed-cover { position: relative; display: block; width: 62%; max-width: 220px; margin: 0 0 22px; border: 1px solid var(--line); background: #fff; box-shadow: 4px 4px 0 var(--lav-2); transition: transform .25s ease, box-shadow .25s ease; }
.ed-cover img { display: block; width: 100%; height: auto; }
.ed-cover:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lav); }
.ed-badge { position: absolute; right: -1px; bottom: -1px; background: var(--navy); color: #fff; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1; padding: 6px 8px; }
.ed-year { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 34px; line-height: 1.15; color: var(--navy); }
.ed-title { margin: 8px 0 4px; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.55; color: var(--navy); }
.ed-sub { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.ed-body { display: flex; flex-direction: column; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ed-k { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.ed-k small { margin-left: 8px; font-size: 12px; font-weight: 400; }
.ed-items { margin: 0 0 16px; font-weight: 500; }
.ed-res { margin: 0 0 22px; }
.ed-res .bar { height: 10px; margin: 8px 0 10px; }
.ed-counts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ed-counts li { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ed-counts i { width: 10px; height: 10px; display: inline-block; }
.ed-counts .c1 { background: var(--navy); }
.ed-counts .c2 { background: #A7A1AC; }
.ed-counts .c3 { background: #C9CACB; }
.ed-counts .c4 { background: var(--line); }
.ed-btn { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ed-btn small { font-size: 12px; font-weight: 400; opacity: .8; }
.judge-legend { margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.judge-legend div { display: grid; grid-template-columns: 1.6em 1fr; }
.judge-legend dt { font-weight: 500; color: var(--navy); }
.judge-legend dd { margin: 0; }
@media (max-width: 560px) {
  .ed { grid-template-columns: 112px 1fr; grid-template-rows: auto; column-gap: 18px; }
  .ed-cover { width: 100%; margin: 0; align-self: start; }
  .ed-year { font-size: 28px; }
  .ed-title { font-size: 17px; }
  .ed-body { grid-column: 1 / -1; }
}
