:root {
  color-scheme: light;
  --paper: #f8f4ea;
  --ink: #2b241c;
  --muted: #5d5145;
  --rule: #d9ccb9;
  --accent: #89551d;
  --amber: #f5b91d;
  --display: "Songti SC", "Hiragino Mincho ProN", "Noto Serif CJK SC", SimSun, Baskerville, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans", sans-serif;
}

:lang(ja) { --display: "Hiragino Mincho ProN", "Noto Serif CJK JP", "Yu Mincho", serif; }
:lang(en) { --display: Baskerville, Georgia, serif; }
*, *::before, *::after { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); margin: 0; font: 16px/1.55 var(--body); }
.poster { overflow: clip; }
.wrap { width: min(calc(100% - 144px), 1296px); margin-inline: auto; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }

.top {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 37px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 4;
}
.topnav, .locales { display: flex; align-items: center; font-size: 14px; }
.topnav { justify-self: end; gap: 26px; font-weight: 530; }
.topnav [aria-current] { border-bottom: 1px solid var(--accent); padding-bottom: 3px; margin-bottom: -4px; }
.locales { gap: 4px; border-left: 1px solid var(--rule); padding-left: 18px; }
.locales a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; }
.locales a:hover { background: #efe5d3; }
.locales [aria-current] { box-shadow: inset 0 -2px var(--amber); }
.locale-flag { width: 24px; height: auto; border-radius: 1px; box-shadow: 0 0 0 1px #2b241c24; }
.topnav a:hover, .project-link:hover, .game-link:hover, .web-list a:hover { color: var(--accent); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 481px;
  border-bottom: 1px solid var(--rule);
}
.hero-copy { position: relative; z-index: 3; width: 53%; padding-block: 43px; }
.hero-greeting { font: 600 clamp(61px, 5.9vw, 85px)/1.06 var(--display); letter-spacing: -.055em; }
html[lang="en"] .hero-greeting {
  font-size: clamp(70px, 6.85vw, 100px);
  font-weight: 400;
  letter-spacing: -.073em;
  margin-left: -.025em;
}
html[lang="ja"] .hero-greeting { font-size: clamp(55px, 5.82vw, 85px); }
.hero-greeting .line { display: block; white-space: nowrap; }
.greeting-line { font-size: .79em; }
.introduction-name { margin-top: .035em; }
.introduction-name span { color: #8c531c; }
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  width: fit-content;
  margin: 23px 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #e9dfd0; }
.byline strong { font-weight: 670; color: var(--ink); }
.byline i { width: 10px; height: 1px; background: #a99476; }
.byline:hover strong { color: var(--accent); }
.intro { max-width: 458px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 22px; }
.button, .plain, .email { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 660; }
.button { background: #262017; color: #fdf7e9; padding: 11px 15px; border-radius: 3px; }
.button:hover { background: #49321f; }
.button span { color: #f6c537; }
.plain { border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.plain:hover, .plain span { color: var(--accent); }
.glass { position: absolute; z-index: 1; inset: 0 -72px 0 41%; pointer-events: none; }
.glass-image {
  width: auto;
  height: 100%;
  margin-left: auto;
  object-fit: contain;
  object-position: right center;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent 1%, #000 23%), linear-gradient(180deg, transparent, #000 5%, #000 93%, transparent);
  mask-composite: intersect;
}

.section-top { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 24px 0 19px; }
.section-top h2, .contact h2 { font: 600 44px/1.12 var(--display); letter-spacing: -.035em; }
html[lang="en"] .section-top h2, html[lang="en"] .contact h2 { font-weight: 400; }
.section-top p { font-size: 13px; color: var(--muted); }
.lead-cases, .later-cases { display: grid; gap: 28px; }
.lead-cases { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.later-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 27px; padding-top: 17px; }
.case { min-width: 0; }
.case-heading { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; margin-bottom: 13px; }
.case-heading h3 { font: 600 31px/1.14 var(--display); letter-spacing: -.025em; }
html[lang="en"] .case-heading h3 { font-size: 34px; font-weight: 400; }
.platform { font: 600 11px/1.35 Menlo, monospace; letter-spacing: .105em; color: var(--accent); white-space: nowrap; }
.case-picture { overflow: hidden; position: relative; height: 298px; }
.case > p { font-size: 14px; line-height: 1.65; color: var(--muted); margin-top: 10px; }
.case-links { display: flex; flex-wrap: wrap; gap: 7px 14px; }
.case-links a, .project-link { font-size: 13px; font-weight: 650; color: var(--accent); padding: 5px 0 3px; border-bottom: 1px solid var(--rule); }
.case-links a:hover, .project-link:hover { border-color: var(--accent); }
.ledger-picture {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  background: radial-gradient(ellipse at 31% 35%, #f6df9c, #e5b651 88%);
}
.ledger-icon { width: 104px; border-radius: 22%; box-shadow: 10px 14px 25px #83582065; }
.phone { overflow: hidden; padding: 5px; background: #231f1a; border-radius: 20px; border: 1px solid #7a6853; box-shadow: 0 19px 43px #3a261f56; }
.phone img { border-radius: 15px; width: 100%; }
.ledger-phone { flex: 0 0 122px; transform: rotate(-6deg) translateY(12px); border-color: #6e6252; box-shadow: 5px 17px 32px #5e3c236f; }
html[lang="en"] .ledger-phone img { width: 119%; max-width: none; margin: -29.8% 0 -11.4% -9.5%; }
.docs-picture { display: grid; place-items: center; background: radial-gradient(ellipse at 48% 55%, #e9eff1, #bdcbd1 93%); }
.docs-screen { width: min(91%, 480px); border: 1px solid #324048; border-radius: 6px; overflow: hidden; box-shadow: 0 13px 25px #27383965; }
.docs-screen img, .device img { width: 100%; height: auto; }
.later-cases .case-picture { height: 217px; }
.merit-picture { background: linear-gradient(153deg, #587060, #304a40); }
.detail-web {
  position: absolute;
  width: 85%;
  left: 8%;
  top: 24px;
  transform: rotate(-3deg);
  border: 1px solid #99a291;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 19px 45px #5b3d2544;
}
.family-picture { background: linear-gradient(140deg, #d9ece8, #a9cfc7); }
.family-phone { position: absolute; width: 113px; left: calc(50% - 56.5px); top: 16px; transform: rotate(7deg); }

.index { margin-top: 23px; padding: 26px 0 31px; border-top: 1px solid var(--rule); }
.index h3 { font: 600 28px/1.15 var(--display); margin-bottom: 13px; }
.catalog { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.catalog h4 { font-size: 12px; color: var(--accent); }
.catalog ul { list-style: none; padding: 0; margin-top: 4px; }
.catalog li { border-bottom: 1px solid var(--rule); min-height: 30px; font-size: 13px; padding: 5px 4px 5px 0; }
.web-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
.web-list a { display: flex; gap: 5px; justify-content: space-between; }
.web-list span, .game-link span { color: var(--accent); }
.games { position: relative; padding-right: 44%; }
.game-images { position: absolute; right: 0; top: 4px; width: 40%; height: 85px; display: flex; gap: 5px; }
.game-images img { width: calc(50% - 2.5px); object-fit: cover; border: 1px solid var(--rule); }
.bio-teaser {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-block: 22px;
  margin-bottom: 31px;
  border-block: 1px solid var(--rule);
}
.bio-teaser h2 { font: 600 30px/1.2 var(--display); }
.bio-teaser p { font-size: 14px; color: var(--muted); margin-top: 5px; }
.project-link { display: inline-block; padding-block: 5px; }

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, .82fr);
  gap: 56px;
  align-items: center;
  min-height: 412px;
  padding-block: 41px 47px;
}
.profile-heading { display: flex; align-items: baseline; gap: clamp(12px, 2.1vw, 28px); }
.profile h1 { font: 600 clamp(58px, 7vw, 87px)/1.03 var(--display); letter-spacing: -.056em; white-space: nowrap; }
html[lang="en"] .profile h1 { font-size: clamp(56px, 7.4vw, 103px); font-weight: 400; }
.profile-role {
  color: var(--muted);
  font: 500 clamp(17px, 1.8vw, 25px)/1.2 var(--display);
  border-inline-start: 1px solid #be9d72;
  padding-inline-start: clamp(10px, 1.4vw, 17px);
}
html[lang="en"] .profile-role { max-width: 13ch; }
.profile-bio { max-width: 560px; color: var(--muted); margin-top: 16px; line-height: 1.74; }
.profile-portrait {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1.22;
  margin-inline: auto;
  background: radial-gradient(ellipse 52% 51% at 48% 49%, #ddd6cd 0%, #ebe4da 52%, transparent 100%);
}
.profile-portrait img {
  position: absolute;
  inset: auto auto 0 6%;
  width: 84%;
  height: auto;
  mask-image: linear-gradient(#000 97%, transparent);
}
.experience { border-top: 1px solid var(--rule); padding-bottom: 28px; }
.job { display: grid; grid-template-columns: .85fr 2fr; gap: 17px; align-items: baseline; padding-block: 13px; border-bottom: 1px solid var(--rule); }
.job:first-child { border-top: 1px solid var(--rule); }
.job h3 { font-size: 15px; font-weight: 650; }
.job p { font-size: 14px; color: var(--muted); }
.offers { border-top: 1px solid var(--rule); padding-bottom: 41px; }
.offers-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.offers-list article { padding-block: 13px; border-block: 1px solid var(--rule); }
.offers-list h3 { font-size: 16px; margin-bottom: 6px; }
.offers-list p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.contact { background: #302219; color: #fcf3e3; }
.contact .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 139px; padding: 26px 0; }
.contact h2 { font-size: 39px; }
.contact p { color: #e1d0b9; font-size: 14px; margin-top: 9px; }
.email { padding: 12px 15px; border-radius: 3px; background: #f1c275; color: #241a0f; overflow-wrap: anywhere; }
.email:hover { background: #f8d493; }
.email:focus-visible { outline-color: #f1c275; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 84px); }
  .hero { min-height: 425px; }
  .glass { right: -42px; }
  .hero-greeting, html[lang="ja"] .hero-greeting { font-size: clamp(50px, 6.5vw, 69px); }
  html[lang="en"] .hero-greeting { font-size: clamp(56px, 8vw, 80px); }
  .case-picture { height: 253px; }
  .docs-screen { width: min(87%, 415px); }
  .ledger-picture { gap: 30px; }
  .ledger-phone { flex-basis: 108px; }
  .ledger-icon { width: 85px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 44px); }
  .top { display: flex; flex-wrap: wrap; gap: 4px 14px; min-height: 60px; padding-block: 8px; }
  .topnav { gap: clamp(8px, 2.5vw, 18px); flex-wrap: wrap; }
  .locales { padding-left: 0; border-left: 0; margin-inline-start: auto; }
  .hero { display: block; min-height: 0; }
  .hero-copy { width: auto; padding: 34px 0 5px; }
  .hero-greeting, html[lang="en"] .hero-greeting, html[lang="ja"] .hero-greeting { font-size: clamp(44px, 11.4vw, 72px); }
  .hero-greeting .introduction-name { white-space: normal; }
  .byline { column-gap: 8px; font-size: 13px; }
  .intro { max-width: 36ch; }
  .glass { position: relative; inset: auto; height: min(61vw, 375px); margin-inline: -14px; }
  .glass-image { mask-image: linear-gradient(180deg, transparent, #000 6%, #000 91%, transparent); }
  .section-top { display: block; padding-block: 22px 16px; }
  .section-top h2, .contact h2 { font-size: 35px; }
  .section-top p { margin-top: 6px; }
  .lead-cases, .later-cases { grid-template-columns: 1fr; gap: 24px; }
  .case-picture, .later-cases .case-picture { height: min(56vw, 285px); }
  .case-heading h3, html[lang="en"] .case-heading h3 { font-size: 26px; }
  .ledger-phone { flex-basis: 95px; }
  .ledger-icon { width: 72px; }
  .catalog { display: block; }
  .games { margin-top: 20px; }
  .profile { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 22px; min-height: 0; padding-block: 27px 30px; }
  .profile-portrait { margin: 0; width: min(72%, 270px); }
  .profile h1 { font-size: clamp(44px, 11.5vw, 71px); }
  html[lang="en"] .profile h1 { font-size: clamp(37px, 10.6vw, 71px); }
  .profile-role { font-size: clamp(16px, 4.4vw, 21px); }
  html[lang="en"] .profile-role { font-size: clamp(14px, 3.6vw, 21px); }
  .job { grid-template-columns: 1fr; gap: 4px; }
  .offers-list { grid-template-columns: 1fr; gap: 10px; }
  .contact .wrap { flex-wrap: wrap; }
}

@media (max-width: 375px) {
  html[lang="en"] .byline { display: grid; grid-template-columns: 36px 1fr; row-gap: 0; }
  html[lang="en"] .byline img { grid-row: span 2; }
  html[lang="en"] .byline i { display: none; }
  html[lang="en"] .byline span { grid-column: 2; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero.is-entering .greeting-line,
  .hero.is-entering .introduction-name,
  .hero.is-entering .byline,
  .hero.is-entering .intro,
  .hero.is-entering .actions {
    animation: intro-enter var(--duration) cubic-bezier(.33, 1, .68, 1) var(--delay, 0ms) both;
  }
  .greeting-line { --duration: 610ms; --rise: 13px; --start-opacity: .25; }
  .introduction-name { --duration: 650ms; --delay: 110ms; --rise: 16px; --start-opacity: .13; }
  .hero .byline { --duration: 640ms; --delay: 290ms; --rise: 10px; --start-opacity: .19; }
  .hero .intro { --duration: 640ms; --delay: 380ms; --rise: 11px; --start-opacity: .14; }
  .hero .actions { --duration: 600ms; --delay: 520ms; --rise: 9px; --start-opacity: .17; }
  .hero.is-entering .glass-image {
    transform-origin: right center;
    animation: glass-enter 1180ms cubic-bezier(.33, 1, .68, 1) 40ms both;
  }
  .case-picture.is-in-view .ledger-icon,
  .case-picture.is-in-view .ledger-phone,
  .case-picture.is-in-view .docs-screen {
    animation: project-settle 640ms cubic-bezier(.22, 1, .36, 1) both;
  }

  @keyframes intro-enter {
    from { translate: 0 var(--rise); opacity: var(--start-opacity); }
    to { translate: 0 0; opacity: 1; }
  }
  @keyframes glass-enter {
    from { transform: translateY(7px) scale(1.024); opacity: .72; }
    to { transform: translateY(0) scale(1); opacity: 1; }
  }
  @keyframes project-settle {
    from { translate: 0 8px; }
    to { translate: 0 0; }
  }
}
