/* eriko-miura.com · Water Basin
   Paper, ink, one blue line. The basin mark is a 30x20 glyph. */

:root {
  --paper: #e9dfc9;
  --ink: #1e1a15;
  --gray: #58503f;
  --blue: #33415e;
  --line: #d6c9b1;
  --panel: #f4ecdb;
  --mat: #fffdf7;
  --display: "Kaisei Tokumin", "Yu Mincho", "Hiragino Mincho ProN", "Songti SC", serif;
  --body: "M PLUS 2", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  --shell: 1060px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.76;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: inherit; }

.shell { width: min(var(--shell), calc(100% - 48px)); margin: 0 auto; }
.shell-wide { width: min(1104px, calc(100% - 48px)); margin: 0 auto; }
.shell-1000 { width: min(1000px, calc(100% - 48px)); margin: 0 auto; }
.shell-1080 { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.shell-900 { width: min(900px, calc(100% - 48px)); margin: 0 auto; }

.basin { display: block; color: var(--blue); }

/* ---------------------------------------------------------------- header */
.site-header { padding-top: 26px; }

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 14px;
}

.wordmark {
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

.wordmark .jp {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gray);
  text-transform: none;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.main-nav a {
  color: var(--ink);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible { border-bottom-color: var(--blue); }

.main-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--paper);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.main-nav a.btn {
  color: var(--paper);
  padding: 8px 14px;
  border-bottom: 0;
  font-size: 9.5px;
}

.main-nav a.btn:hover,
.main-nav a.btn:focus-visible {
  color: var(--paper);
  background: var(--ink);
  border-bottom-color: transparent;
}

.header-rule {
  position: relative;
  height: 1px;
  background: var(--line);
}

.header-rule .basin {
  position: absolute;
  right: 0;
  bottom: -10px;
  background: var(--paper);
  padding-left: 8px;
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 0 0 64px; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  min-height: 520px;
}

.hero-rail {
  grid-column: 1;
  position: relative;
  height: 520px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.hero-rail .basin {
  position: absolute;
  left: -15px;
  top: -10px;
  background: var(--paper);
}

.rail-label {
  writing-mode: vertical-rl;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
  margin-top: 24px;
}

.hero-photo {
  grid-column: 2 / span 4;
  margin: 80px 0 0;
  width: 278px;
  padding: 24px;
  background: var(--mat);
  outline: 1px solid var(--line);
}

.hero-photo img {
  display: block;
  width: 230px;
  height: 300px;
  object-fit: cover;
  object-position: 50% 10%;
}

.hero-copy {
  grid-column: 7 / span 6;
  margin-top: 60px;
}

.kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero-title {
  margin: 16px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 66.5px;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title span { display: block; }

.hero-title span:last-child { color: var(--blue); }

.hero-lead {
  margin: 22px 0 0;
  max-width: 30ch;
  font-size: 16.5px;
  line-height: 1.55;
}

.hero-copy .btn { margin-top: 22px; }

.hero-index {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  max-width: 340px;
}

.hero-index li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 5px 0;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

/* --------------------------------------------------------------- section */
.section { padding: 74px 0 0; }

.sec-partners { padding-top: 56px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section h2 {
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------- partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.partner-cell {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.partner-cell:hover .p-name { color: var(--blue); }

.p-name {
  flex: 1;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.p-no {
  min-width: 22px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--gray);
}

.partner-cell:first-child .p-no { color: var(--blue); }

.partner-cell img {
  width: 110px;
  height: 66px;
  object-fit: contain;
}

/* ----------------------------------------------------------------- facts */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}

.fact {
  height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fact .k {
  font-size: 8px;
  letter-spacing: 0.24em;
  color: var(--gray);
}

.fact .v {
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.35;
}

/* ----------------------------------------------------------------- about */
.about-grid {
  display: grid;
  grid-template-columns: 200px 48px minmax(0, 560px);
  align-items: start;
}

.about-year {
  font-family: var(--display);
  font-weight: 500;
  font-size: 96px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--line);
}

.about-mark {
  position: relative;
  width: 48px;
  height: 40px;
}

.about-mark .basin {
  position: absolute;
  left: -4px;
  top: 0;
}

.about-copy p {
  margin: 0 0 15px;
  max-width: 46ch;
}

.about-notes {
  margin-top: 26px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
}

.about-notes p { margin: 0 0 3px; max-width: 56ch; }

/* -------------------------------------------------------------- timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1000px;
}

.career-mark { margin: 0 0 12px; height: 20px; }

.tl-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: stretch;
}

.tl-first { border-top: 1px solid var(--line); }

.tl-year {
  font-family: var(--display);
  font-weight: 500;
  font-size: 40px;
  line-height: 1;
  text-align: right;
  padding: 4px 20px 0 0;
  letter-spacing: 0.01em;
}

.tl-year.hl { color: var(--blue); }

.tl-body {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0 10px 20px;
}

.tl-month {
  flex: 0 0 104px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}

.tl-event { font-size: 13px; line-height: 1.55; }

/* --------------------------------------------------------------- gallery */
.gallery-top { display: flex; gap: 20px; align-items: flex-start; }
.g-pair { display: flex; gap: 20px; }

.g {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.g::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -9px;
  width: 1px;
  height: 5px;
  background: var(--blue);
}

.g img { display: block; width: 100%; height: 100%; object-fit: cover; }

.g4 img { object-position: 50% 20%; }

.g3 { width: 400px; height: 268px; }
.g1, .g2 { width: 230px; height: 322px; }
.g4 { width: 180px; height: 200px; }
.g5 { width: 160px; height: 200px; }

.gallery-bottom {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  margin-left: 400px;
}

/* --------------------------------------------------------------- archive */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-cell {
  padding: 0 30px;
  border-left: 1px solid var(--line);
}

.archive-cell:first-child { border-left: 0; padding-left: 0; }

.archive-cell .k {
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
}

.archive-cell .v {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
}

.archive-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--gray);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 0;
  padding: 72px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 0;
  align-items: start;
}

.footer-brand {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
}

.footer-mark { grid-row: span 2; color: var(--blue); }

.footer-name {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-line { font-size: 11px; color: var(--gray); line-height: 1.5; }

.language-nav {
  border-left: 1px solid var(--line);
  padding-left: 48px;
  font-size: 11px;
  line-height: 2;
}

.language-nav a {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.language-nav a:hover { color: var(--blue); }

.language-nav .sep { color: var(--line); padding: 0 5px; }

.footer-legal {
  margin: 0;
  border-left: 1px solid var(--line);
  padding-left: 48px;
  text-align: right;
  font-size: 11px;
  line-height: 1.8;
  color: var(--gray);
}

.footer-fine {
  margin-top: 26px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--gray);
}

.footer-fine p { margin: 0; }

/* -------------------------------------------------------------- subpages */
.page-head { padding: 66px 0 52px; }

.page-head h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.page-head .lead {
  margin: 24px 0 0;
  max-width: 54ch;
  color: var(--gray);
  font-size: 17px;
  line-height: 1.7;
}

.page-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 640px);
  gap: 80px;
  padding-bottom: 20px;
}

.page-rail {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.reading { min-width: 0; }

.story { margin-bottom: 46px; }

.story h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 27px;
  line-height: 1.22;
}

.story p {
  margin: 0 0 15px;
  max-width: 52ch;
}

.story .note {
  font-size: 12px;
  color: var(--gray);
  max-width: 56ch;
}

/* tables */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
}

.data-table caption {
  text-align: left;
  font-size: 11px;
  color: var(--gray);
  padding-bottom: 8px;
}

.data-table th {
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: left;
  padding: 8px 14px 8px 0;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}

.data-table td {
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table .num { text-align: right; padding-right: 0; }

/* faq */
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 0;
}

.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 17px 34px 17px 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.35;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-family: var(--body);
  font-size: 20px;
  color: var(--blue);
}

.faq-list details[open] summary::after { content: "-"; }

.faq-list .answer p {
  margin: 0 0 20px;
  max-width: 56ch;
  font-size: 15px;
  color: var(--gray);
}

/* 404 */
.notfound { padding: 110px 0 130px; }

.notfound h1 {
  margin: 0;
  max-width: 720px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.notfound p {
  margin: 24px 0 0;
  max-width: 46ch;
  color: var(--gray);
}

.notfound .btn { margin-top: 28px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .shell, .shell-wide, .shell-1000, .shell-1080, .shell-900 {
    width: min(960px, calc(100% - 40px));
  }

  .hero-rail { display: none; }
  .hero-photo { grid-column: 1 / span 4; margin-top: 64px; }
  .hero-copy { grid-column: 6 / span 7; margin-top: 52px; }
  .hero-title { font-size: 56px; }
  .hero-grid { min-height: 0; }

  .partner-grid { grid-template-columns: minmax(0, 1fr); }
  .partner-cell { max-width: 640px; }

  .about-grid { grid-template-columns: 160px 40px minmax(0, 1fr); }
  .about-year { font-size: 76px; }

  .g3 { width: 420px; height: 281px; }
  .g1, .g2 { width: 240px; height: 336px; }
  .gallery-bottom { margin-left: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .footer-legal { grid-column: 1 / -1; border-left: 0; padding-left: 0; text-align: left; }

  .page-head h1 { font-size: 46px; }
  .page-layout { grid-template-columns: 90px minmax(0, 1fr); gap: 48px; }
}

@media (max-width: 720px) {
  .shell, .shell-wide, .shell-1000, .shell-1080, .shell-900 {
    width: calc(100% - 32px);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .main-nav { gap: 12px 16px; }
  .main-nav a { font-size: 9.5px; letter-spacing: 0.1em; }
  .main-nav a.btn { padding: 7px 12px; font-size: 9px; }

  .hero { padding-bottom: 56px; }
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .kicker { order: 1; margin-top: 34px; }
  .hero-title { order: 2; font-size: 48px; margin-top: 14px; }
  .hero-lead { order: 3; max-width: 34ch; }
  .hero-copy .btn { order: 4; margin-top: 22px; align-self: flex-start; }
  .hero-photo { order: 5; margin: 34px auto 0; width: 278px; }
  .hero-index { order: 6; margin-top: 30px; max-width: 100%; }

  .section { padding-top: 56px; }
  .section h2 { font-size: 28px; }

  .partner-cell { height: 84px; max-width: 100%; }
  .partner-cell img { width: 96px; height: 58px; }

  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact { height: auto; padding: 14px 0; border-bottom: 1px solid var(--line); }

  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-year { font-size: 64px; margin-bottom: 18px; }
  .about-mark { display: none; }
  .about-copy p { max-width: 52ch; }

  .tl-row { grid-template-columns: 76px minmax(0, 1fr); }
  .tl-year { font-size: 26px; padding-top: 10px; }
  .tl-body { flex-direction: column; gap: 3px; padding: 10px 0 12px; }
  .tl-month { flex: none; }

  .gallery-top { flex-direction: column; gap: 16px; }
  .g3 { width: 100%; height: auto; aspect-ratio: 800 / 536; }
  .g-pair { gap: 16px; }
  .g1, .g2 { width: calc(50% - 8px); height: auto; aspect-ratio: 360 / 504; }
  .gallery-bottom { gap: 16px; margin-left: 0; }
  .g4, .g5 { width: calc(50% - 8px); height: auto; aspect-ratio: 360 / 400; }

  .archive-grid { grid-template-columns: minmax(0, 1fr); }
  .archive-cell {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0;
  }
  .archive-cell:first-child { border-top: 0; padding-top: 0; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .language-nav { border-left: 0; padding-left: 0; }
  .footer-legal { grid-column: auto; }

  .page-head { padding: 46px 0 34px; }
  .page-head h1 { font-size: 38px; }
  .page-head .lead { font-size: 16px; }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page-rail { display: none; }
  .story h2 { font-size: 23px; }
  .notfound h1 { font-size: 44px; }
}

/* partner logo plate: guarantee legibility of supplied marks on any ground */
a img[src*="/assets/partners/"] {
  background: #f4efe6;
  object-fit: contain;
  padding: 6px;
  box-sizing: border-box;
  filter: none;
  opacity: 1;
}
