:root {
  color-scheme: light;
  --ink: #151515;
  --accent: #f39800;
  --line: #e5e5e5;
  --hero-background: #f6f2eb;
  --gutter: clamp(24px, 6vw, 96px);
  --content-width: 960px;
  --content-inset: max(var(--gutter), calc((100% - var(--content-width)) / 2));
  --wave-height: 56px;
  --service-edge-height: clamp(28px, 3.2vw, 68px);
  --hero-boundary-height: clamp(72px, 10vw, 168px);
  --hero-drips-width: clamp(176px, 32vw, 480px);
  --hero-drips-inset: clamp(8px, 1.2vw, 28px);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px var(--content-inset);
  background: var(--hero-background);
}
.wordmark {
  color: var(--accent);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.06em;
}
main, footer { margin-inline: auto; }
.hero {
  --hero-line-gap: clamp(12px, 1.25vw, 24px);
  position: relative;
  padding: clamp(40px, 6svh, 72px) var(--content-inset) calc(clamp(128px, 16svh, 220px) + var(--hero-boundary-height) - var(--hero-line-gap));
  overflow: hidden;
  background: var(--hero-background);
}
.hero-english {
  margin: 0 0 24px;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 700;
  letter-spacing: -.025em;
}
h1 {
  margin: 0;
  font-size: clamp(42px, 7.4vw, 118px);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: 1.2;
}
h1 span { display: inline-block; white-space: nowrap; }
.hero h1 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.4;
  color: #493C33;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero-rotator {
  --hero-word-1-width: 7.175em;
  --hero-word-2-width: 3.075em;
  --hero-word-3-width: 3.075em;
  --hero-mask-12-width: max(var(--hero-word-1-width), var(--hero-word-2-width));
  --hero-mask-23-width: max(var(--hero-word-2-width), var(--hero-word-3-width));
  --hero-mask-31-width: max(var(--hero-word-3-width), var(--hero-word-1-width));
  position: relative;
  display: grid;
  width: max-content;
  max-width: 100%;
  margin-top: var(--hero-line-gap);
  overflow: hidden;
}
.hero-word {
  position: relative;
  grid-area: 1 / 1;
  width: max-content;
  overflow: hidden;
  opacity: 0;
}
.hero-word:first-child { opacity: 1; }
.hero-word:nth-child(2) { --word-delay: -6s; }
.hero-word:nth-child(3) { --word-delay: -3s; }
.hero-rotator::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: .12em auto .08em 0;
  width: var(--hero-word-1-width);
  background: currentColor;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}
.hero-rotator.is-rotating .hero-word {
  animation: hero-word-cycle 9s step-end var(--word-delay, 0s) infinite;
}
.hero-rotator.is-rotating::after {
  animation: hero-word-mask 9s cubic-bezier(.87, 0, .13, 1) infinite;
}
.hero-rotator.is-paused .hero-word,
.hero-rotator.is-paused::after { animation-play-state: paused; }
@keyframes hero-word-cycle {
  0% { opacity: 1; }
  33.333333%, 100% { opacity: 0; }
}
/* Change width only when fully clipped. Both reveal and cover sweep left to right. */
/* Three seconds per phrase: 400ms masked hold, 400ms reveal, 1.8s read, 400ms return. */
@keyframes hero-word-mask {
  0%, 4.444444% { width: var(--hero-mask-31-width); clip-path: inset(0); }
  8.888889% { width: var(--hero-mask-31-width); clip-path: inset(0 0 0 100%); }
  8.889889%, 28.888889% { width: var(--hero-mask-12-width); clip-path: inset(0 100% 0 0); }
  33.333333%, 37.777778% { width: var(--hero-mask-12-width); clip-path: inset(0); }
  42.222222% { width: var(--hero-mask-12-width); clip-path: inset(0 0 0 100%); }
  42.223222%, 62.222222% { width: var(--hero-mask-23-width); clip-path: inset(0 100% 0 0); }
  66.666667%, 71.111111% { width: var(--hero-mask-23-width); clip-path: inset(0); }
  75.555556% { width: var(--hero-mask-23-width); clip-path: inset(0 0 0 100%); }
  75.556556%, 95.555556% { width: var(--hero-mask-31-width); clip-path: inset(0 100% 0 0); }
  100% { width: var(--hero-mask-31-width); clip-path: inset(0); }
}
h1, h2, h3, h4 { color: #493C33; }
h2 { font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 700; }
[lang="en"] { font-family: "Inter", sans-serif; font-weight: 700; }
.section { margin-inline: var(--content-inset); padding-block: 80px 110px; }
h2 {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.1;
}
h3 { margin: 0; font-size: clamp(18px, 1.5vw, 24px); font-weight: 700; line-height: 1.6; }
.member-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: space-between; gap: 48px; margin-top: 40px; }
.portrait {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f0f0f0;
  color: #b9b9b9;
  -webkit-mask: var(--portrait-mask, none) center / 100% 100% no-repeat;
  mask: var(--portrait-mask, none) center / 100% 100% no-repeat;
}
.portrait-oishi {
  --portrait-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cpath fill='white' d='M17 8C82 1 129 15 195 8S323 2 403 8C411 9 415 12 415 22V399C415 409 411 413 401 412C330 406 284 418 215 411S83 417 18 412C8 411 5 407 5 398V22C5 13 8 9 17 8Z'/%3E%3C/svg%3E");
}
.portrait-ooka {
  --portrait-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cpath fill='white' d='M17 8C82 15 129 1 195 8S323 1 403 8C411 9 415 12 415 22V399C415 409 411 413 401 412C330 418 284 406 215 412S83 405 18 412C8 413 5 407 5 398V22C5 13 8 9 17 8Z'/%3E%3C/svg%3E");
}
.wordmark img { display: block; width: clamp(160px, 16vw, 200px); max-width: 100%; height: auto; mix-blend-mode: multiply; }
.portrait span { font-size: clamp(48px, 7vw, 104px); font-weight: 700; letter-spacing: -.06em; }
.portrait img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 1; object-fit: cover; }
/* Match face size and eye level without changing either source photo. */
.portrait-oishi img { transform: scale(1.25); transform-origin: center top; }
.portrait-ooka img { object-position: center 28%; }
.member-role { margin: 20px 0 8px; font-size: 13px; line-height: 1.6; }
.member h3 { font-size: 24px; letter-spacing: .04em; line-height: normal; }
.member-english { margin: 8px 0 0; color: #686868; font-size: 13px; }
.biography { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.biography h4 { margin: 0; font-size: 13px; }
.biography-placeholder { color: #686868; }
.information { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 48px; }
.section-heading p { margin: 18px 0 0; font-size: 13px; }
.biography p, .company-introduction p { font-size: 14px; line-height: 2; overflow-wrap: anywhere; }
.biography p { margin: 16px 0 0; }
.company-introduction { margin-bottom: 48px; }
.company-introduction p { margin: 0 0 16px; }
.service-link { display: flex; justify-content: space-between; gap: 24px; font-size: clamp(36px, 4vw, 56px); font-weight: 700; }
.service-link[aria-disabled="true"] { cursor: default; }
.service-logo { display: block; width: clamp(140px, 18vw, 200px); max-width: 100%; }
.service-logo img { display: block; width: 100%; height: auto; }
.service-logo .service-logo-black { display: none; }
.service-link[aria-disabled="true"]:hover { color: inherit; }
.service p { margin: 18px 0 0; font-size: 13px; color: #686868; }
.services {
  --service-inset: var(--content-inset);
  --service-content-offset: clamp(12px, 2.5vw, 48px);
  position: relative;
  isolation: isolate;
  width: 100%;
  margin-inline: 0;
  padding: clamp(48px, 6vw, 72px) var(--service-inset);
  aspect-ratio: 945 / 406;
  max-height: 640px;
  min-height: 220px;
  align-items: stretch;
  color: #fff;
  overflow: hidden;
  background: #252b21;
  border-top: 0;
}
.service-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .36), rgba(0, 0, 0, .18)), url("Soup Sup イメージ.png") center 70% / cover;
  transform: scale(1.04);
  transition: transform 2800ms cubic-bezier(.2, .65, .3, 1), opacity 2200ms ease, filter 1200ms ease;
  pointer-events: none;
}
.services.reveal-pending { opacity: 1; transform: none; }
.services.reveal-pending .service-background { transform: scale(1); opacity: .35; }
@media (hover: hover) and (pointer: fine) {
  .services:not(.reveal-pending):hover .service-background { transform: scale(1.075); filter: brightness(1.08); }
}
.hero::after,
.services::before, .services::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  height: var(--wave-height);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 0H1440V18C1180 8 1110 68 760 52S280 10 0 34Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.services::before, .services::after {
  height: var(--service-edge-height);
  transform: none;
}
/* Broad, low-amplitude asymmetrical curves avoid both repetition and sharp folds. */
.services::before {
  top: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 34C130 44 218 24 348 28C480 32 566 54 706 45C846 36 908 24 1038 30C1180 36 1264 20 1364 27C1395 29 1418 33 1440 32V0H0Z'/%3E%3C/svg%3E");
}
.services::after {
  bottom: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 96' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 60C164 62 242 42 380 43C518 44 628 60 780 55C926 50 1010 36 1146 40C1280 44 1348 58 1440 53V96H0Z'/%3E%3C/svg%3E");
}
.hero::after { bottom: -1px; }
/* Keep the wave full-width, but size the liquid motif independently of the viewport. */
.hero::after {
  height: var(--hero-boundary-height);
  transform: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 30C90 30 150 12 240 16C330 20 395 34 465 28C488 26 495 28 520 28H1440V180H0Z'/%3E%3C/svg%3E");
}
.hero::before {
  --hero-drip-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 180' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 28C35 28 57 29 73 43C87 55 91 70 91 87C91 101 85 111 84 122C83 135 89 142 100 144C112 147 123 140 124 128C125 115 117 106 115 94C112 78 116 60 126 47C137 34 153 31 168 35C196 41 210 44 220 64C229 84 230 105 228 126C227 141 221 154 222 165C223 174 230 179 238 177C248 175 253 166 251 155C249 143 245 134 246 121C248 96 251 73 261 54C271 37 286 35 301 40C316 45 328 56 334 71C339 84 335 93 341 102C346 111 354 113 361 110C369 106 372 97 370 87C367 73 373 56 384 45C389 32 395 28 400 28V0H0Z'/%3E%3C/svg%3E");
  content: "";
  position: absolute;
  z-index: 2;
  right: var(--hero-drips-inset);
  bottom: -1px;
  width: var(--hero-drips-width);
  height: var(--hero-boundary-height);
  background-color: inherit;
  pointer-events: none;
  -webkit-mask: var(--hero-drip-mask) center / 100% 100% no-repeat;
  mask: var(--hero-drip-mask) center / 100% 100% no-repeat;
}
.services .service-link { justify-content: flex-end; }
.services > .section-heading { padding-top: var(--service-content-offset); }
.services h2 { color: #fff; }
.services .service {
  position: absolute;
  inset-block: calc(2 * var(--service-content-offset)) 0;
  right: var(--service-inset);
  max-width: calc(50% - var(--gutter));
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.services .service-link { border-color: rgba(255, 255, 255, .5); }
.services .service p { color: inherit; }
.reveal-pending {
  opacity: 0;
  transform: translate(var(--reveal-x, 0px), var(--reveal-y, 64px));
}
.reveal-ready {
  transition: opacity 1800ms ease, transform 1800ms cubic-bezier(.2, .65, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready.reveal-pending { transition: none; }
/* Reveal each photo, name and biography block independently, from its card's side. */
.members > h2, .member { --reveal-x: clamp(-80px, -6vw, -40px); --reveal-y: 0px; }
.member:nth-child(even) { --reveal-x: clamp(40px, 6vw, 80px); }
.member > :nth-child(2), .biography > :nth-child(2),
.company-introduction > :nth-child(2), .company-details > :nth-child(2) { --reveal-delay: 80ms; }
.member > :nth-child(3), .biography > :nth-child(3),
.company-details > :nth-child(3) { --reveal-delay: 160ms; }
.member > :nth-child(4), .company-details > :nth-child(n + 4) { --reveal-delay: 240ms; }
.company-details { margin: 0; }
.company-details > div { display: grid; grid-template-columns: 100px 1fr; gap: 28px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.company-details > div:first-child { padding-top: 0; }
dt, dd { font-size: 14px; line-height: 2; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }
footer { padding: 36px var(--content-inset); font-size: 12px; text-align: center; }

@media (min-width: 2400px) {
  .service-background { background-position: center 80%; }
}
@media (max-width: 640px) {
  :root { --wave-height: 18px; }
  .site-header { padding-block: 14px; }
  .wordmark { font-size: 20px; }
  .hero { padding-block: 52px calc(120px + var(--hero-boundary-height) - var(--hero-line-gap)); }
  .hero h1 { font-size: clamp(24px, 6.8vw, 32px); }
  .hero-english { margin-bottom: 18px; }
  .section { padding-block: 48px 64px; }
  .member-grid { grid-template-columns: minmax(0, 420px); gap: 40px; margin-top: 28px; }
  .portrait span { font-size: 72px; }
  .member-role { margin-top: 22px; }
  .information { grid-template-columns: 1fr; gap: 36px; }
  .services { grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 40px; }
  .services::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 96' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 34C112 40 190 24 308 29C426 34 512 47 640 35V0H0Z'/%3E%3C/svg%3E");
  }
  .services::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 96' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 59C138 60 228 42 358 46C468 50 550 58 640 50V96H0Z'/%3E%3C/svg%3E");
  }
  .service-background { background-position: center, 60% 70%; }
  .services h2 { font-size: clamp(20px, 5vw, 32px); }
  .services .service-logo { width: clamp(64px, 18vw, 115px); }
  .company-details > div { grid-template-columns: 64px 1fr; gap: 20px; padding-block: 14px; }
  footer { padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-pending { opacity: 1; transform: none; }
  .reveal-ready { transition: none; }
  .services .service-background, .services:hover .service-background { transform: none; opacity: 1; filter: none; transition: none; }
  .hero-rotator.is-rotating .hero-word { animation: none; opacity: 0; transform: none; }
  .hero-rotator .hero-word:first-child { opacity: 1; }
  .hero-rotator.is-rotating::after { animation: none; clip-path: inset(0 100% 0 0); }
}
