/* eimifukadaweb.com · Unconformity
   Washi ground, ink text, one blue accent, one erosion surface. */

:root {
  --bg: #f3f0e9;
  --panel: #faf7f0;
  --ink: #1b1a18;
  --grey: #5f5b54;
  --accent: #2b4a6f;
  --line: #ded8cc;
  --line-strong: #8b857a;
  --wrap: 1160px;
  --serif: 'Zen Old Mincho', 'Times New Roman', 'Songti SC', serif;
  --sans: 'Zen Kaku Gothic New', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.005em;
  font-feature-settings: 'kern' 1;
}

img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1.15em; max-width: 56ch; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.wrap {
  width: min(var(--wrap), 100% - 64px);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-head { border-bottom: 1px solid var(--line); }

.head-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.045em;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }
.main-nav a.on { border-bottom-color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 20px 12px;
  border: 0;
  transition: background 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }

/* explicit override: .main-nav a would otherwise win on specificity */
.main-nav a.btn { color: var(--bg); border-bottom: 0; padding: 13px 20px 12px; }
.main-nav a.btn:hover { color: var(--bg); background: var(--ink); border-bottom: 0; }

/* ---------- hero ---------- */

.hero { padding: 40px 0 0; }

.hero-inner {
  width: auto;
  margin-left: max(32px, calc((100vw - 1160px) / 2));
  margin-right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 600px;
  gap: 28px;
  align-items: start;
}

.hero-copy { position: relative; padding-left: 56px; padding-top: 8px; }

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 18px;
}

.kicker-v {
  position: absolute;
  left: 0;
  top: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.22em;
  margin: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin: 0 0 26px;
}
.hero h1 span { display: block; }

.lede {
  font-size: 18px;
  line-height: 1.9;
  max-width: 30ch;
  color: var(--ink);
  margin: 0 0 30px;
}

.hero-cta { margin-top: 2px; }

.hero-erosion {
  width: 100%;
  margin-top: 54px;
  color: var(--line-strong);
}

.hero-photo {
  width: 600px;
  font-size: 0;
}
.hero-photo img {
  display: block;
  width: 600px;
  height: 900px;
  object-fit: cover;
}

/* erosion surface */
.unconformity { display: block; width: 100%; overflow: visible; }
.unconformity path { stroke: currentColor; }
.unconformity .ticks line { stroke: var(--accent); }

/* ---------- sections ---------- */

.sec { padding: 86px 0 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 34px;
}
.sec-head .num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--grey);
  min-width: 22px;
}
.sec-head .num-first { color: var(--accent); }
.sec-head h2 {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* ---------- 01 partners ---------- */

.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.p-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 176px;
  padding: 22px 18px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.p-card:nth-child(3n + 2),
.p-card:nth-child(3n + 3) { border-left: 1px solid var(--line); }
.p-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 8px;
  height: 2px;
  background: var(--bg);
}
.p-card:hover { background: var(--panel); text-decoration: none; }

.p-num {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  font-size: 9px;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--grey);
}
.p-card:first-child .p-num { color: var(--accent); border-color: var(--accent); }

.p-logo { display: block; width: 250px; max-width: 100%; height: 150px; margin: 6px 0 8px; }
.p-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.p-name {
  margin-top: auto;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- 02 quick profile ---------- */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.fact {
  display: flex;
  align-items: stretch;
  gap: 18px;
  min-height: 76px;
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid var(--line);
}
.fact:nth-child(odd) { padding-right: 36px; }
.fact:nth-child(even) { padding-left: 36px; border-left: 1px solid var(--line); }

.f-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  width: 20px;
  flex: 0 0 20px;
  align-self: center;
}

.f-value {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  align-self: center;
}

/* ---------- 03 about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0 52px;
  align-items: start;
}

.about-media img { display: block; width: 360px; height: 540px; object-fit: cover; }
.about-erosion { margin-top: 12px; color: var(--line-strong); }

.about-text {
  border-left: 1px solid var(--accent);
  padding-left: 44px;
}
.about-text p { max-width: 46ch; }
.note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 60ch;
  margin: 18px 0 0;
}

/* ---------- 04 career bands ---------- */

.band-grid { display: grid; position: relative; }
.band-grid.cols-3 { grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
.band-grid.cols-8 { grid-template-columns: repeat(8, 1fr); gap: 0 18px; }

.band-top .band-grid::before,
.band-bot .band-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}
.band-top .band-grid::before { top: 0; }
.band-bot .band-grid::after { bottom: 0; }

.band-cell { position: relative; }
.band-top .band-cell { padding-top: 26px; min-height: 104px; }
.band-bot .band-cell { padding-bottom: 30px; min-height: 126px; }

.b-year {
  position: absolute;
  left: 0;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg);
  padding-right: 10px;
}
.band-top .b-year { top: -9px; }
.band-bot .b-year { bottom: -9px; color: var(--grey); }
.b-year.hi { color: var(--accent); }

.b-event {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--grey);
  max-width: 22ch;
}
.band-bot .b-event { font-size: 12.5px; line-height: 1.55; max-width: 18ch; }

.band-erosion { margin: 30px 0 38px; color: var(--line-strong); }

/* ---------- 05 gallery ---------- */

.g-row { display: flex; gap: 28px; }
.g-row.g-top { align-items: flex-end; }
.g-row.g-bot { margin-left: 80px; align-items: flex-start; }

.g { margin: 0; width: var(--w); height: var(--h); flex: 0 0 auto; }
.g img { display: block; width: 100%; height: 100%; object-fit: cover; }

.g-break {
  width: calc(100% - 100px);
  margin: 20px 0 20px 0;
  color: var(--line-strong);
}

/* ---------- 06 social ---------- */

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 60px;
  border-bottom: 1px solid var(--line);
}

.s-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.s-row:hover { color: var(--accent); text-decoration: none; }
.s-label {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  flex: 0 0 auto;
}
.s-value { font-family: var(--serif); font-size: 15px; line-height: 1.4; text-align: right; word-break: break-word; }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 96px;
  border-top: 1px solid var(--line-strong);
  padding: 16px 0 34px;
}

.foot-mark { width: 160px; color: var(--line-strong); margin-bottom: 16px; }
.foot-mark .unconformity { height: 22px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 4px 0 16px;
}
.footer-grid-404 { grid-template-columns: 1.4fr auto; }

.f-brand { display: flex; flex-direction: column; gap: 3px; }
.f-brand strong { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.f-brand span { font-size: 11.5px; color: var(--grey); }

.f-lang { font-size: 12px; color: var(--grey); }
.f-lang a { color: var(--grey); padding: 0 2px; }
.f-lang a:hover { color: var(--accent); }
.f-lang a.on { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.f-lang .sep { padding: 0 7px; color: var(--grey); }

.f-copy { font-size: 12px; color: var(--grey); text-align: right; white-space: nowrap; }

.credits { border-top: 1px solid var(--line); padding-top: 14px; }
.credit-lead { font-size: 11px; line-height: 1.7; color: var(--grey); max-width: none; margin: 0 0 8px; }
.credit-head {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 6px;
}
.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px 28px;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--grey);
}
.credit-list a { color: var(--grey); text-decoration: underline; text-underline-offset: 2px; }
.credit-list a:hover { color: var(--accent); }
.c-num { color: var(--accent); }
.c-note { color: var(--grey); font-style: italic; }
.credit-note { font-size: 10.5px; line-height: 1.7; color: var(--grey); margin: 10px 0 0; max-width: 90ch; }

/* ---------- subpage head ---------- */

.page-head { padding: 44px 0 34px; border-bottom: 1px solid var(--line); }
.page-head .kicker { margin-bottom: 14px; }
.page-head h1 {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: 0.015em;
  max-width: 18ch;
  margin: 0 0 16px;
}
.page-head .lede { font-size: 17px; max-width: 52ch; margin: 0; color: var(--grey); }

/* ---------- prose / bio ---------- */

.bio-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 0 56px;
  align-items: start;
}
.bio-media img { display: block; width: 360px; height: 540px; object-fit: cover; }

.prose { max-width: 720px; }
.prose h2 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0.015em;
  margin: 40px 0 14px;
  max-width: 26ch;
}
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 64ch; }
.prose .note { max-width: 64ch; }

/* ---------- tables ---------- */

.tbl { margin: 36px 0 0; border-bottom: 1px solid var(--line); }
.tbl-row {
  display: grid;
  grid-template-columns: 1.15fr 1.4fr 1.55fr;
  gap: 24px;
  padding: 14px 0 13px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
}
.tbl-head { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.tbl-row span:first-child { font-family: var(--serif); }
.tbl-film .tbl-row { grid-template-columns: 0.7fr 1.5fr 1.9fr; }

.awards { margin-top: 8px; }
.award {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.a-year { font-family: var(--serif); font-size: 14px; color: var(--ink); }
.a-text { font-size: 14.5px; line-height: 1.7; color: var(--grey); max-width: 66ch; }

/* ---------- faq ---------- */

.qa { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; padding: 26px 0 24px; border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa h3 { font-family: var(--serif); font-size: 19px; line-height: 1.4; font-weight: 600; }
.qa p { font-size: 15.5px; line-height: 1.8; color: var(--grey); max-width: 62ch; margin: 0; }

/* ---------- 404 ---------- */

.err { padding: 92px 0 40px; }
.err h1 { font-family: var(--serif); font-size: 64px; line-height: 1.1; margin: 0 0 18px; }
.err .lede { max-width: 40ch; }
.err-mark { width: min(420px, 100%); margin: 34px 0; color: var(--line-strong); }
.text-link { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* ---------- 1024 ---------- */

@media (max-width: 1180px) {
  .g-top .g1 { flex: 0 0 29.5%; }
  .g-top .g2 { flex: 0 0 38.3%; }
  .g-top .g3 { flex: 0 0 26.2%; }
  .g-bot .g4 { flex: 0 0 36.2%; }
  .g-bot .g5 { flex: 0 0 32.8%; }
  .g { width: auto; height: auto; }
  .g img { height: auto; }
}

@media (max-width: 1024px) {
  .wrap { width: min(var(--wrap), 100% - 56px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 520px; }
  .hero-photo { width: 520px; }
  .hero-photo img { width: 520px; height: 780px; }
  .hero-copy { padding-left: 0; }
  .kicker-v { position: static; writing-mode: horizontal-tb; transform: none; margin-bottom: 18px; }
  .hero h1 { font-size: 54px; }
  .about-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 0 40px; }
  .about-media img { width: 320px; height: 480px; }
  .about-text { padding-left: 32px; }
  .bio-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 0 40px; }
  .bio-media img { width: 320px; height: 480px; }
  .band-grid.cols-8 { gap: 0 12px; }
  .band-bot .b-event { font-size: 12px; }
  .social-grid { column-gap: 40px; }
  .credit-list { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 900 ---------- */

@media (max-width: 900px) {
  .head-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 0 14px; }
  .main-nav { justify-content: flex-start; gap: 16px; }
  .main-nav a { font-size: 11.5px; }
  .hero-inner { grid-template-columns: 1fr 460px; }
  .hero-photo { width: 460px; }
  .hero-photo img { width: 460px; height: 690px; }
  .hero h1 { font-size: 46px; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .p-card:nth-child(3n + 2), .p-card:nth-child(3n + 3) { border-left: 0; }
  .p-card:nth-child(even) { border-left: 1px solid var(--line); }
  .p-card:nth-child(5) { border-left: 0; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .f-lang { grid-column: 1 / 2; grid-row: 2; }
  .f-copy { grid-column: 2 / 3; grid-row: 1; }
  .credit-list { grid-template-columns: repeat(2, 1fr); }
  .g-row { gap: 18px; }
  .g-top .g1 { flex-basis: 29%; }
  .g-top .g2 { flex-basis: 38%; }
  .g-top .g3 { flex-basis: 26%; }
  .g-bot { margin-left: 60px; }
}

/* ---------- 820 ---------- */

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .hero-photo { width: 360px; }
  .hero-photo img { width: 360px; height: 540px; }
  .hero h1 { font-size: 42px; }
  .lede { font-size: 17px; }
}

/* ---------- 720 ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; line-height: 1.8; }
  .wrap { width: min(var(--wrap), 100% - 40px); }
  .hero { padding-top: 26px; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; margin-left: 20px; margin-right: 20px; }
  .hero-copy { order: 1; }
  .hero-photo { order: 2; width: 100%; margin-right: 0; }
  .hero-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 17px; max-width: 34ch; }
  .hero-erosion { margin-top: 38px; }
  .sec { padding-top: 56px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head h2 { font-size: 23px; }

  .partners { grid-template-columns: 1fr; }
  .p-card { min-height: 0; border-left: 0 !important; padding: 18px 0 16px; }
  .p-logo { width: 210px; height: 126px; }

  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { padding-right: 0; }
  .fact:nth-child(even) { padding-left: 0; border-left: 0; }
  .f-label { writing-mode: horizontal-tb; transform: none; width: 96px; flex: 0 0 96px; letter-spacing: 0.12em; }

  .about-grid { display: flex; flex-direction: column; gap: 0; }
  .about-text { order: 1; border-left: 0; padding-left: 0; }
  .about-media { order: 2; margin-top: 28px; width: 100%; }
  .about-media img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .about-text p { max-width: 58ch; }

  .band-grid.cols-3, .band-grid.cols-8 { grid-template-columns: 1fr; gap: 0; }
  .band-top .band-grid::before, .band-bot .band-grid::after { display: none; }
  .band-cell, .band-top .band-cell, .band-bot .band-cell {
    min-height: 0;
    padding: 12px 0 12px 18px;
    border-left: 1px solid var(--line);
  }
  .b-year, .band-top .b-year, .band-bot .b-year {
    position: static;
    display: block;
    background: none;
    padding: 0;
    font-size: 13px;
    margin-bottom: 2px;
  }
  .b-event, .band-bot .b-event { max-width: none; font-size: 14px; line-height: 1.65; }
  .band-erosion { margin: 24px 0 28px; }

  .g-row.g-bot { margin-left: 0; }
  .g-row { gap: 16px; }
  .gallery { display: flex; flex-wrap: wrap; gap: 14px; }
  .g-row { display: contents; }
  .g { width: auto; height: auto; flex: 0 0 auto; }
  .g img { width: 100%; height: auto; }
  .g1, .g2 { order: 1; flex: 0 0 calc(50% - 7px); }
  .g1 { order: 1; }
  .g2 { order: 2; }
  .g-break { order: 3; flex: 0 0 100%; width: 100%; margin: 8px 0; }
  .g3 { order: 4; flex: 0 0 calc(33.333% - 10px); }
  .g4 { order: 5; flex: 0 0 calc(33.333% - 10px); }
  .g5 { order: 6; flex: 0 0 calc(33.333% - 10px); }

  .social-grid { display: block; border-bottom: 0; }
  .s-row { border-bottom: 1px solid var(--line); }

  .page-head { padding: 30px 0 26px; }
  .page-head h1 { font-size: 34px; }
  .page-head .lede { font-size: 16px; }

  .bio-grid { display: flex; flex-direction: column; gap: 26px; }
  .bio-media { width: 100%; }
  .bio-media img { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .prose h2 { font-size: 21px; margin-top: 30px; }

  .tbl-row, .tbl-film .tbl-row { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .tbl-head { display: none; }
  .tbl-row span:first-child { font-size: 12px; color: var(--grey); }
  .award { grid-template-columns: 1fr; gap: 6px; }
  .a-year { font-size: 12px; }
  .qa { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .qa h3 { font-size: 18px; }
  .qa p { font-size: 15px; }

  .site-foot { margin-top: 64px; padding-bottom: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 10px; padding-bottom: 14px; }
  .f-copy { text-align: left; white-space: normal; grid-column: auto; grid-row: auto; }
  .f-lang { grid-column: auto; grid-row: auto; }
  .credit-list { grid-template-columns: 1fr; gap: 3px; }
  .credit-note { max-width: none; }

  .err { padding: 60px 0 30px; }
  .err h1 { font-size: 42px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 35px; }
  .main-nav { gap: 10px 14px; }
  .main-nav a { font-size: 11px; letter-spacing: 0.06em; }
  .main-nav a.btn { padding: 10px 14px 9px; }
  .page-head h1 { font-size: 31px; }
  .sec-head h2 { font-size: 22px; }
  .g3, .g4, .g5 { flex: 0 0 calc(50% - 7px); }
  .g3 { order: 4; }
  .g4 { order: 5; }
  .g5 { order: 6; flex: 0 0 100%; }
}
