/* Profile page / Yutaka Hirata / external CSS */
:root {
  color-scheme: light;
  --bg: #fff8e8;
  --bg-deep: #ffe4ae;
  --paper: rgba(255, 253, 246, 0.88);
  --paper-solid: #fffdf7;
  --text: #352312;
  --muted: #765d43;
  --line: rgba(127, 82, 33, 0.18);
  --mango: #ffb22e;
  --mango-deep: #ed761f;
  --peach: #ff9174;
  --leaf: #5f9f6b;
  --cream: #fff0bd;
  --shadow: 0 24px 72px rgba(149, 83, 20, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at var(--mouse-x, 78%) var(--mouse-y, 18%), rgba(255, 178, 46, 0.36), transparent 24rem),
    radial-gradient(circle at 10% 12%, rgba(255, 145, 116, 0.25), transparent 24rem),
    radial-gradient(circle at 82% 90%, rgba(95, 159, 107, 0.20), transparent 22rem),
    linear-gradient(135deg, var(--bg) 0%, #fff1c9 52%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(127, 82, 33, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 82, 33, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.74), rgba(0,0,0,0.05));
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-bg span {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.72;
  animation: float-shape 12s ease-in-out infinite alternate;
}

.page-bg span:nth-child(1) {
  width: 260px;
  height: 260px;
  left: -70px;
  top: 180px;
  background: rgba(255, 178, 46, 0.30);
}

.page-bg span:nth-child(2) {
  width: 120px;
  height: 120px;
  right: 7vw;
  top: 140px;
  background: rgba(255, 145, 116, 0.24);
  animation-delay: -4s;
}

.page-bg span:nth-child(3) {
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: 120px;
  background: rgba(95, 159, 107, 0.17);
  animation-delay: -7s;
}

.site-header {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 18px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango));
  box-shadow: 0 14px 30px rgba(237, 118, 31, 0.24), inset 0 1px 0 rgba(255,255,255,0.48);
  font-size: 1.35rem;
  font-weight: 900;
}

.brand-text {
  display: grid;
  min-width: 0;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.76);
  box-shadow: 0 12px 32px rgba(142, 86, 27, 0.10);
  backdrop-filter: blur(16px);
}

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #3f250f;
  background: var(--cream);
  transform: translateY(-1px);
  outline: none;
}

.language-switch {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.76);
  box-shadow: 0 12px 32px rgba(142, 86, 27, 0.10);
}

.lang-button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 850;
  cursor: pointer;
}

.lang-button.is-active {
  color: #fffaf0;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango));
  box-shadow: 0 10px 22px rgba(237, 118, 31, 0.22);
}

main {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 6px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: stretch;
  margin: 8px 0 20px;
}

.hero-copy,
.portrait-card,
.panel,
.highlight-band,
.stats {
  border: 1px solid rgba(127, 82, 33, 0.15);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  position: relative;
  padding: clamp(32px, 5vw, 62px);
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -44px;
  top: -44px;
  width: 180px;
  height: 180px;
  border-radius: 42% 58% 46% 54%;
  background: rgba(255, 178, 46, 0.30);
  animation: soft-blob 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--mango-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--leaf);
  box-shadow: 0 0 0 6px rgba(95, 159, 107, 0.13);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  font-size: clamp(3.3rem, 7vw, 6.35rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

h1 small {
  display: block;
  margin-top: 10px;
  color: var(--mango-deep);
  font-size: clamp(1.75rem, 3.2vw, 3.1rem);
  letter-spacing: -0.04em;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 680;
  line-height: 1.82;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: #fffaf1;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango), #ffd36a);
  box-shadow: 0 18px 42px rgba(237, 118, 31, 0.24);
}

.button.secondary {
  border: 1px solid rgba(127, 82, 33, 0.18);
  color: #5f3c1f;
  background: rgba(255, 253, 246, 0.75);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #fff9e8;
}

.portrait-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.portrait-card figure {
  margin: 0;
  padding: 20px 20px 0;
}

.portrait-card img {
  display: block;
  width: min(100%, 310px);
  margin: 0 auto;
  border-radius: 26px;
  background: var(--paper-solid);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(142, 86, 27, 0.16);
}

.portrait-body {
  padding: 18px 24px 26px;
}

.portrait-label {
  margin-bottom: 8px;
  color: var(--mango-deep);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-body p:not(.portrait-label) {
  color: var(--muted);
  font-weight: 680;
  line-height: 1.7;
}

.photo-note {
  margin: 14px 0 0;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 240, 189, 0.72);
  font-size: 0.88rem;
}

.highlight-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.highlight-band article {
  min-height: 180px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255, 240, 189, 0.44));
  border: 1px solid rgba(127, 82, 33, 0.12);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 15px;
  color: #fffaf0;
  background: linear-gradient(135deg, var(--mango-deep), var(--mango));
  font-weight: 950;
}

.highlight-band h2,
.panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.highlight-band p,
.panel p,
.panel li {
  color: var(--muted);
  line-height: 1.72;
  font-weight: 650;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 246, 0.70);
  border: 1px solid rgba(127, 82, 33, 0.12);
}

.stat-card strong {
  display: block;
  color: var(--mango-deep);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.content-grid.single-column {
  grid-template-columns: minmax(0, 1fr);
}

.panel {
  padding: clamp(22px, 3vw, 32px);
  margin-bottom: 18px;
}

.content-grid .panel {
  margin-bottom: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--mango-deep) !important;
  font-size: 0.78rem;
  font-weight: 950 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--leaf);
}

.profile-list,
.timeline,
.book-list,
.columns ul {
  margin: 0;
  padding-left: 1.1em;
}

.profile-list li + li,
.timeline li + li,
.book-list li + li,
.columns li + li {
  margin-top: 0.55rem;
}

.timeline-heading {
  margin: 24px 0 12px;
  font-size: 1.05rem;
}

.contact-links,
.simple-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-links a,
.simple-links a,
.columns a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #5f3c1f;
  background: rgba(255, 240, 189, 0.72);
  border: 1px solid rgba(127, 82, 33, 0.15);
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible,
.simple-links a:hover,
.simple-links a:focus-visible,
.columns a:hover,
.columns a:focus-visible {
  transform: translateY(-2px);
  background: #fff7d9;
  outline: none;
}

.section-heading {
  margin-bottom: 16px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.activity-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(127, 82, 33, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.58);
}

.activity-card.featured {
  background: linear-gradient(145deg, rgba(255, 178, 46, 0.24), rgba(255,255,255,0.62));
}

.activity-card h3,
.book-summary h3,
.columns h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.activity-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.book-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.book-summary article {
  padding: 20px;
  border: 1px solid rgba(127, 82, 33, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.58);
}

.book-summary p {
  margin-bottom: 0;
}

.inline-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 14px;
  padding: 0 14px;
  border-radius: 999px;
  color: #5f3c1f;
  background: rgba(255, 240, 189, 0.78);
  border: 1px solid rgba(127, 82, 33, 0.15);
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.inline-link:hover,
.inline-link:focus-visible {
  transform: translateY(-2px);
  background: #fff7d9;
  outline: none;
}

.book-list-block {
  border: 1px solid rgba(127, 82, 33, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 246, 0.58);
  overflow: hidden;
}

.book-list-block summary {
  padding: 18px 20px;
  color: #5f3c1f;
  cursor: pointer;
  font-weight: 900;
}

.book-list {
  padding: 0 22px 22px 42px;
  columns: 2;
  column-gap: 36px;
}

.book-list li {
  break-inside: avoid;
  color: var(--muted);
  font-size: 0.93rem;
}

.timeline {
  list-style: none;
  padding-left: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(127, 82, 33, 0.12);
}

.timeline li:first-child {
  padding-top: 0;
}

.timeline time {
  color: var(--mango-deep);
  font-weight: 950;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.compact {
  margin-bottom: 0;
}

.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.business-link {
  color: #5f3c1f;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
}

body.is-loaded .reveal-item.is-visible,
body.is-loaded .site-header.reveal-item,
body.is-loaded .hero.reveal-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms ease, transform 650ms ease;
}

@keyframes float-shape {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(42px, -58px, 0) rotate(18deg) scale(1.08); }
}

@keyframes soft-blob {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(-36px, 28px, 0) rotate(28deg) scale(1.16); }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: center;
  }

  .portrait-card figure {
    padding: 20px;
  }

  .portrait-card img {
    width: 180px;
  }

  .highlight-band,
  .activity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --radius-xl: 26px;
    --radius-lg: 20px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 26px, var(--max));
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .language-switch {
    justify-self: stretch;
    justify-content: space-between;
  }

  .lang-button {
    flex: 1;
  }

  .site-nav a {
    min-height: 40px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .hero-copy,
  .panel {
    padding: 22px;
  }

  .portrait-card,
  .highlight-band,
  .stats,
  .activity-grid,
  .book-summary,
  .columns {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    display: block;
  }

  .book-list {
    columns: 1;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Current / past activity grouping */
.activity-groups {
  display: grid;
  gap: 18px;
}

.activity-group {
  padding: 16px;
  border: 1px solid rgba(127, 82, 33, 0.10);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 246, 0.42);
}

.activity-group.current {
  background: linear-gradient(145deg, rgba(255, 244, 199, 0.66), rgba(255,255,255,0.42));
}

.activity-group-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  margin: 0 0 12px;
  border-radius: 999px;
  color: #fffaf1;
  background: var(--mango-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-activity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.past-activity-grid {
  grid-template-columns: minmax(0, 1fr);
}

.book-list-block + .book-list-block {
  margin-top: 12px;
}

.book-list.single-column {
  columns: 1;
}

@media (max-width: 620px) {
  .current-activity-grid,
  .past-activity-grid {
    grid-template-columns: 1fr;
  }
}
