/* Ryo Yoshizawa — personal page */

:root {
  --ink: #1D1F2D;
  --ink-soft: #3C3F4F;
  --muted: #6F7280;
  --faint: #8A8C96;
  --line: #E2E1DB;
  --ground: #F7F6F2;
  --ground-2: #EFEDE8;
  --disc: #EFE9E2;
  --disc-line: #D9D3C9;
  --accent: #C4532F;
  --accent-deep: #A8441F;
  --accent-hover: #7E3015;

  --font-ja: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-sc: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --font-num: 'Cormorant Garamond', Georgia, serif;
  --font-en: 'Source Serif 4', Georgia, serif;

  --max: 1120px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { display: block; max-width: 100%; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }

.wrap {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- 欧文ラベル ---- */
.sc {
  font-family: var(--font-sc);
  font-weight: 600;
  letter-spacing: 0.22em;
}
.label {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.26em;
  color: var(--muted);
}
.label--accent { color: var(--accent); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.section-head h2 {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.22em;
  line-height: 1.2;
}
.section-head span {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
  white-space: nowrap;
}
.section-head--long {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.section-head--long h2 {
  font-size: 26px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ---- ヘッダー ---- */
.band--nav { background: var(--ground); border-bottom: 1px solid var(--line); }
.site-header {
  position: relative;
  z-index: 6;
  padding-top: 32px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand span {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.18em;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-left: auto;
}
.lang-switch {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding: 6px 0 6px 32px;
  border-left: 1px solid var(--line);
  margin-left: 4px;
  white-space: nowrap;
}
.lang-switch[lang="ja"] { font-family: var(--font-ja); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; }
.lang-switch:hover { color: var(--accent-deep); text-decoration: none; }
/* English page: Latin body type */
html[lang="en"] body { font-family: var(--font-en); font-size: 15.5px; letter-spacing: 0.01em; }
html[lang="en"] .intro__name { font-family: var(--font-sc); font-size: 32px; letter-spacing: 0.1em; }
html[lang="en"] .intro__name .intro__name-en { font-family: var(--font-ja); font-weight: 500; font-size: 20px; letter-spacing: 0.14em; }
html[lang="en"] .intro__role, html[lang="en"] .intro__label, html[lang="en"] .intro__lead { font-size: 15.5px; }
html[lang="en"] .work__desc, html[lang="en"] .media-list li, html[lang="en"] .timeline dd, html[lang="en"] .prose { font-size: 14.5px; }
html[lang="en"] .dense-list li { font-size: 13.5px; }
html[lang="en"] .dense-list__ref { color: var(--ink-soft); font-size: 13.5px; }
html[lang="en"] .media-list__outlet { font-size: 14.5px; }
html[lang="en"] [lang="ja"] { font-family: var(--font-ja); }
.site-nav a {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--ink);
  padding: 6px 0;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__disc,
.hero__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero__disc {
  top: -260px; right: -220px;
  width: 900px; height: 900px;
  background: var(--disc);
}
.hero__ring {
  top: -200px; right: -160px;
  width: 780px; height: 780px;
  border: 1px solid var(--disc-line);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 140px;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: end;
}
.hero__text {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__name {
  font-weight: 300;
  font-size: 64px;
  line-height: 1.3;
  letter-spacing: 0.18em;
}
.hero__romaji {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.3em;
  color: var(--muted);
}
.hero__lead {
  font-size: 16px;
  max-width: 600px;
  color: var(--ink-soft);
}
.hero__photo {
  grid-column: span 4;
  justify-self: end;
  width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--ground-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.2em;
  overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- ヒーロー直後の区切り ---- */
.band--1 > .two-col:first-child { padding-top: 96px; }

/* ---- 実績の数字 ---- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts__grid {
  padding-top: 40px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fact__num {
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
  color: var(--ink);
}
.fact__num small {
  font-size: 20px;
  color: var(--muted);
}
.fact__num--sc {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.fact__desc {
  font-size: 13px;
  color: var(--muted);
}

/* ---- 作品 ---- */
.works {
  padding-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.work {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:
    "media head"
    "media body";
  grid-template-rows: auto 1fr;
  gap: 14px 32px;
  align-items: start;
}
.work--flip {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "head media"
    "body media";
}
.work__head { grid-area: head; display: flex; flex-direction: column; gap: 14px; }
.work__media { grid-area: media; }
.work__body { grid-area: body; }
.work__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ground-2);
}
.work__media img { width: 100%; height: 100%; object-fit: cover; }
.work__media--video iframe { display: block; width: 100%; height: 100%; border: 0; }
.work__media--placeholder {
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.2em;
}
.work__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work__title {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.work__sub {
  font-family: var(--font-sc);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.work__desc {
  font-size: 15px;
  color: var(--ink-soft);
}
.work__meta {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faint);
}


.works-small {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.works-small article {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.works-small h3 {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* 作品ごとの詳細（担当・技術など） */
.work__facts {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  row-gap: 8px;
  column-gap: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.work__facts dt {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---- 自己紹介・経歴 ---- */
.two-col {
  padding-top: 140px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}
.two-col > .section-head { grid-column: span 4; }
.two-col > .col-body {
  grid-column: span 8;
  border-left: 1px solid var(--line);
  padding-left: 32px;
  margin-left: -32px;
}
.two-col--tight { padding-top: 120px; }
.two-col--nohead > .col-body { grid-column: 5 / span 8; }

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--ink-soft);
}
.prose .strong { color: var(--ink); }

/* ---- 冒頭の一言 ---- */
.intro { display: flex; flex-direction: column; gap: 4px; }
.intro__head { gap: 10px; }
.intro__figure {
  width: 100%;
  max-width: 216px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-sizing: border-box;
}
.intro__portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}
.intro-split {
  padding-top: 96px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px;
  align-items: stretch;
}
.intro__left { text-align: center; align-items: center; }
.intro__left .intro__name { align-items: center; }
.intro__right {
  justify-content: center;
}
.intro__right .intro__lead { margin-top: 0; }
.intro__name {
  margin: 0 0 14px;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.intro__name-en {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--ink);
  white-space: nowrap;
}
.intro__role, .intro__label, .intro__lead { font-size: 16px; color: var(--ink-soft); }
.intro__lead { margin-top: 16px; }
.intro__role { font-weight: 600; color: var(--ink); }

.timeline {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  row-gap: 16px;
  column-gap: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}
.timeline dt {
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---- メディア掲載 ---- */
.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.media-list li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 24px;
  padding: 0;
  font-size: 15px;
}
.media-list { gap: 20px; }
.media-list__date {
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.media-list__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-soft);
}
.media-list__outlet {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.media-list__body a { color: var(--ink-soft); }
.media-list__sub { font-size: 12px; letter-spacing: 0.08em; margin-top: 4px; }
.media-list__sub a { color: var(--accent-deep); }
.media-list__body a:hover { color: var(--accent-hover); }
a.media-list__outlet {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(168, 68, 31, 0.45);
}
a.media-list__outlet:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

/* ---- 1件1行リスト（Media / Patents） ---- */
.dense-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 70px fit-content(190px) minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 14px;
}
.dense-list li {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: baseline;
  font-size: 14px;
  line-height: 1.7;
}
.dense-list__date {
  font-family: var(--font-num);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-soft);
}
.dense-list__ref {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
a.dense-list__ref {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(168, 68, 31, 0.45);
}
a.dense-list__ref:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
.dense-list__title { color: var(--ink-soft); letter-spacing: 0.02em; }
.dense-list__note { color: var(--muted); font-size: 12px; margin-left: 4px; }

/* ---- 連絡先 ---- */
.contact {
  margin-top: 140px;
  border-top: 1px solid var(--line);
}
/* ---- 3つのまとまりの帯 ---- */
.band--1 { background: #F7F6F2; padding-bottom: 96px; }
.band--2 { background: #FBFAF8; padding-bottom: 112px; }
.band--3 { background: #EFEDE7; }
.band--2 > .two-col:first-child, .band--3 > .two-col:first-child { padding-top: 104px; }
.contact__inner {
  padding-top: 72px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.contact__main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact__main h2 {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.22em;
}
.contact__main a { font-size: 15px; letter-spacing: 0.06em; }
.contact__links {
  display: flex;
  gap: 28px;
}
.contact__links a {
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
}
.contact__links .icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 0;
}
.contact__links .icon-link:hover { color: var(--accent-deep); }
.icon-link__svg { display: block; }
.copyright {
  width: 100%;
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--faint);
}

/* ---- レスポンシブ ---- */
@media (max-width: 900px) {
  .hero__inner { padding-top: 96px; padding-bottom: 72px; }
  .hero__text { grid-column: span 12; }
  .hero__photo { grid-column: span 12; justify-self: start; width: 180px; }
  .hero__name { font-size: 48px; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work, .work--flip {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "media" "body";
  }
  .two-col > .section-head, .two-col > .col-body,
  .two-col--nohead > .col-body { grid-column: span 12; }
  .two-col > .col-body { border-left: 0; padding-left: 0; margin-left: 0; }
  .two-col { padding-top: 96px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; line-height: 1.85; }
  .site-header { padding-top: 16px; padding-bottom: 14px; gap: 12px; flex-wrap: nowrap; }
  .lang-switch { margin-left: auto; padding-left: 0; border-left: 0; }
  html[lang="en"] .intro__name { font-size: 28px; }
  html[lang="en"] .intro__name .intro__name-en { font-size: 18px; }
  .brand span { font-size: 15px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    margin-top: 1px;
    padding: 8px var(--gutter) 16px;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    z-index: 5;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { font-size: 15px; letter-spacing: 0.18em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .section-head h2 { font-size: 26px; letter-spacing: 0.18em; }
  .section-head--long h2 { font-size: 24px; }
  .intro-split { padding-top: 48px; grid-template-columns: 1fr; gap: 44px; }
  .intro__name { font-size: 26px; }
  .intro__name-en { font-size: 20px; }
  .band--1 > .two-col:first-child { padding-top: 48px; }
  .two-col, .two-col--tight { padding-top: 72px; gap: 20px; }
  .works { padding-top: 72px; gap: 36px; }
  .work { gap: 20px; }
  .work__title { font-size: 21px; letter-spacing: 0.06em; }
  .works-small h3 { font-size: 22px; }
  .media-list li { padding: 14px 0; }
  .contact { margin-top: 72px; }
  .band--1 { padding-bottom: 56px; }
  .band--2 { padding-bottom: 64px; }
  .band--2 > .two-col:first-child, .band--3 > .two-col:first-child { padding-top: 64px; }
  .contact__inner { padding-top: 48px; padding-bottom: 32px; }
  .contact__main h2 { font-size: 26px; }
  .hero__disc { top: -340px; right: -300px; width: 640px; height: 640px; }
  .hero__ring { top: -300px; right: -260px; width: 560px; height: 560px; }
  .hero__name { font-size: 40px; letter-spacing: 0.12em; }
  .facts__grid { grid-template-columns: 1fr; gap: 24px; }
  .works-small { grid-template-columns: 1fr; }
  .work__facts { grid-template-columns: 1fr; row-gap: 2px; }
  .work__facts dd { margin-bottom: 10px; }
  .timeline { grid-template-columns: 1fr; row-gap: 4px; }
  .media-list li { grid-template-columns: 1fr; row-gap: 4px; }
  .dense-list { row-gap: 16px; }
  .dense-list li { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
  .dense-list__title { grid-column: 1 / -1; }
  .timeline dd { margin-bottom: 14px; }
  /* スマホ: Awards / Exhibitions / Career を Media と同じ詰めた体裁に */
  .media-list { gap: 16px; }
  .media-list li { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 0; align-items: baseline; font-size: 14px; line-height: 1.7; }
  .media-list__date { font-size: 16px; line-height: 1.7; }
  .media-list__body { display: contents; }
  .media-list__body > * { grid-column: 1 / -1; }
  .media-list__body > :first-child { grid-column: 2; }
  .media-list__outlet { font-size: 13px; }
  .media-list__sub { margin-top: 2px; }
  .timeline { row-gap: 2px; font-size: 14px; line-height: 1.7; }
  .timeline dt { font-size: 16px; }
  .timeline dd { margin-bottom: 14px; }
  html[lang="en"] .media-list li, html[lang="en"] .timeline dd { font-size: 13.5px; }
  html[lang="en"] .media-list__outlet { font-size: 13px; }
}
