/* Homepage: clear daylight, expressive type, and unframed photography. */
.home-page {
  --ink: #15221d;
  --yellow: #ffdc24;
  --teal: #00745b;
  --front-line: #d8e0dc;
  --front-muted: #51615a;
  --front-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Noto Sans JP", "Yu Gothic", sans-serif;
  background: #fff;
  font-family: var(--font-body);
}

.home-page ::selection { background: var(--yellow); color: var(--ink); }
.home-page a:focus-visible,
.home-page button:focus-visible { outline: 3px solid var(--teal); outline-offset: 6px; }
.home-page .front-container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.home-page .front-section { padding-block: 112px; }
.home-page .front-label { margin: 0; font-size: 13px; line-height: 1.6; font-weight: 700; }
.home-page .front-title { margin: 0; font: 800 44px/1.55 var(--font-display); letter-spacing: 0; }
.home-page .front-title em { color: var(--teal); font-style: normal; }
.front-section-heading { display: flex; gap: 20px; align-items: center; margin-bottom: 56px; }
.front-section-heading::before { content: ""; width: 24px; height: 3px; background: var(--yellow); }
.front-section-heading > span { color: var(--front-muted); font-size: 13px; }

.home-page .site-header,
.home-page .site-header.is-scrolled,
.home-page .site-header.is-open { height: 92px; padding-inline: 48px; background: rgba(255,255,255,.93); box-shadow: none; border-bottom: 1px solid rgba(21,34,29,.1); backdrop-filter: blur(18px); }
.home-page .site-header::after { display: none; }
.home-page .brand__logo-stack { width: 142px; height: 70px; }
.home-page .desktop-nav { gap: 27px; }
.home-page .desktop-nav a { font-size: 12px; font-family: var(--font-body); }
.home-page .desktop-nav a:last-child,
.home-page .site-header:not(.is-scrolled):not(.is-open) .desktop-nav a:last-child { background: var(--ink); color: #fff; padding: 13px 23px; }
.home-page .desktop-nav a:last-child:hover { background: var(--teal); }
.home-page .menu-toggle { width: 48px; height: 48px; border: 1px solid var(--front-line); background: #fff; }
.home-page .menu-toggle span { height: 2px; }
.home-page .drawer { inset: 92px 0 0; align-content: start; gap: 0; padding: 30px 48px; overflow-y: auto; background: #fff; box-shadow: none; }
.home-page .drawer a { display: flex; align-items: center; width: 100%; min-height: 62px; border-bottom: 1px solid var(--front-line); }
.home-page .loader { background: #fff; }
.home-page .loader__logo { filter: none; }
.home-page .loader__bar { background: var(--front-line); }

.home-page .hero.intro-scene { position: relative; display: flex; align-items: center; min-height: 640px; height: calc(100svh - 96px); max-height: 1020px; background: #eff8fb; overflow: hidden; }
.intro-scene__poster,
.intro-scene__video,
.intro-scene__veil { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-scene__poster img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.intro-scene__video { object-fit: cover; object-position: center; opacity: 0; transition: opacity .8s ease; }
.intro-scene__video.is-playing { opacity: 1; }
.intro-scene__veil { background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.84) 24%, rgba(255,255,255,.64) 52%, rgba(255,255,255,.18) 80%, rgba(255,255,255,.08) 100%); }
.intro-scene__inner { position: relative; width: min(1200px, calc(100% - 96px)); margin-inline: auto; padding: 140px 0 124px; }
.intro-scene__copy { width: 100%; }
.intro-scene__copy > .front-label { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.intro-scene__copy > .front-label::before { content: ""; width: 36px; height: 3px; background: var(--teal); }
.home-page .intro-scene__headline { max-width: none; margin: 0; font: 800 58px/1.5 var(--font-display); color: var(--ink); text-shadow: none; letter-spacing: 0; }
.home-page .intro-scene__headline > span { display: block; white-space: nowrap; }
.intro-scene__headline em { position: relative; z-index: 0; font-style: normal; }
.intro-scene__headline em::after { position: absolute; z-index: -1; content: ""; inset: auto -2px 7% -2px; height: 15%; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 1.7s var(--front-ease) 1.25s; }
.home-is-ready .intro-scene__headline em::after { transform: scaleX(1); }
.intro-scene__lead { margin: 28px 0 0; font-size: 17px; line-height: 2; color: #35463d; font-weight: 500; }
.intro-scene__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; margin-top: 30px; }
.front-button,
.front-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 54px; font-size: 14px; font-weight: 600; }
.front-button { min-width: 200px; padding: 14px 22px; color: var(--ink); background: var(--yellow); border: 1px solid transparent; transition: background .3s, color .3s; }
.front-button:hover { background: var(--ink); color: #fff; }
.front-button > span,
.front-link > span { font-family: sans-serif; font-size: 26px; line-height: 1; transition: transform .45s var(--front-ease); }
.front-button:hover > span,
.front-link:hover > span { transform: translate(3px, -3px); }
.front-link { border-bottom: 1px solid currentColor; }
.front-link:hover { color: var(--teal); }
.intro-scene__bottom { position: absolute; bottom: 24px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(21,34,29,.2); }
.intro-scene__bottom > span { font-size: 12px; font-weight: 600; }
.intro-scene__controls { display: flex; align-items: center; gap: 26px; }
.intro-scene__controls > a { display: flex; gap: 16px; align-items: center; font-size: 12px; font-weight: 600; }
.intro-scene__controls > a span { display: inline-block; font-size: 24px; animation: front-scroll 2.6s ease-in-out infinite; }
.front-motion-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--ink); background: transparent; border: 1px solid rgba(21,34,29,.4); border-radius: 50%; cursor: pointer; font: 700 15px/1 sans-serif; }
.front-motion-toggle:hover { background: #fff; }
@keyframes front-scroll { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

.work-scenes { padding: 52px 0 72px; overflow: hidden; background: #fff; scroll-margin-top: 92px; }
.work-scenes__head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 34px; }
.work-scenes__head > p:last-child { margin: 0; color: var(--front-muted); font-size: 14px; }
.home-page .work-scenes .river-track { --river-gap: 20px; --river-half-gap: 10px; padding: 0; animation: riverFlowRight 60s linear infinite; will-change: transform; }
.home-page .work-scenes .river-track img { flex: 0 0 350px; width: 350px; height: 256px; object-fit: cover; filter: none; box-shadow: none; border: 0; transform: none; border-radius: 0; }
.home-page .work-scenes .river-track img:nth-child(even) { transform: none; }
.home-page .work-scenes .river-track:hover { animation-play-state: paused; }

.front-philosophy__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.front-philosophy__copy p { margin: 0; color: var(--front-muted); font-size: 17px; line-height: 2.05; }
.front-philosophy__copy p:first-child { color: var(--ink); font-size: 21px; font-weight: 500; }
.front-philosophy__copy p { text-wrap: pretty; }
.front-business-item__body > p { text-wrap: balance; }
.front-philosophy__copy p + p { margin-top: 22px; }
.front-philosophy__copy .front-link { margin-top: 26px; }
.front-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 76px 0 0; padding: 0; list-style: none; }
.front-values li { display: flex; flex-direction: column; align-items: start; padding: 24px 0 8px; border-top: 1px solid var(--front-line); }
.front-values__number { color: var(--teal); font-size: 12px; font-weight: 600; }
.front-values strong { margin: 16px 0 10px; font: 700 28px/1.25 Arial, sans-serif; }
.front-values li > span:last-child { color: var(--front-muted); font-size: 16px; }

.front-business { background: #f4f7f5; }
.front-business__heading { display: flex; gap: 30px; justify-content: space-between; align-items: end; }
.front-business__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; row-gap: 54px; margin-top: 58px; padding-bottom: 58px; }
.front-business-item { display: block; min-width: 0; }
.front-business-item:nth-child(even) { position: relative; top: 58px; }
.front-business-item__image { height: 286px; overflow: hidden; background: #e0e9e4; }
.front-business-item__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--front-ease); }
.front-business-item:hover img { transform: scale(1.045); }
.front-business-item__body { position: relative; padding: 22px 64px 24px 0; border-bottom: 1px solid #becdc4; }
.front-business-item__body .front-label { color: var(--teal); font-size: 12px; }
.front-business-item__body h3 { margin: 8px 0 10px; font: 700 29px/1.4 var(--font-display); }
.front-business-item__body p { margin: 0; color: var(--front-muted); font-size: 15px; line-height: 1.9; }
.front-business-item__arrow { position: absolute; top: 42px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #a9b9b0; border-radius: 50%; font: 26px/1 sans-serif; transition: background .35s, border-color .35s, transform .35s; }
.front-business-item:hover .front-business-item__arrow { background: var(--yellow); border-color: var(--yellow); transform: rotate(45deg); }

.front-message { background: var(--yellow); }
.front-message .front-section-heading::before { background: var(--ink); }
.front-message .front-section-heading > span { color: #49501e; }
.front-message__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.front-message .front-title em { color: var(--ink); }
.front-message__copy > p { margin: 0; font-size: 17px; line-height: 2.1; }
.front-message__copy .desktop-only { display: none; }
.front-message__signature { display: flex; align-items: center; gap: 18px; margin-top: 26px !important; font-size: 13px !important; }
.front-message__signature .representative-signature { width: 180px; min-width: 0; flex: 0 1 180px; }
.front-message .front-link { margin-top: 28px; }

.front-recruit { background: #142c23; color: #fff; }
.front-recruit .front-section-heading > span { color: #b8cbc1; }
.front-recruit__layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; }
.front-recruit__copy > p { margin: 28px 0; max-width: 470px; color: #bacdc3; font-size: 16px; line-height: 2; }
.front-recruit .front-button:hover { background: #fff; color: var(--ink); }
.front-recruit__values > span { display: grid; grid-template-columns: 28px 1fr; gap: 10px 16px; padding: 24px 0; border-top: 1px solid #3a5046; }
.front-recruit__values > span:last-child { border-bottom: 1px solid #3a5046; }
.front-recruit__values small { padding-top: 9px; color: var(--yellow); font-size: 12px; }
.front-recruit__values strong { font: 700 28px/1.4 var(--font-display); }
.front-recruit__values em { grid-column: 2; font-size: 12px; color: #9db7a8; font-style: normal; }

.front-contact { background: #fff; }
.front-contact__link { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 76px 0; }
.front-contact h2 { margin: 16px 0; font: 800 38px/1.5 var(--font-display); }
.front-contact p { margin: 0; color: var(--front-muted); font-size: 15px; }
.front-contact__arrow { flex: 0 0 96px; display: grid; place-items: center; height: 96px; border: 1px solid var(--front-line); border-radius: 50%; font: 54px/1 sans-serif; transition: transform .6s var(--front-ease), background .35s; }
.front-contact__link:hover .front-contact__arrow { transform: rotate(45deg); background: var(--yellow); }
.home-page .site-footer { padding: 54px 48px 34px; background: #14201b; border-top: 0; }
.home-page .site-footer nav a { font-family: var(--font-body); font-size: 12px; }
.home-page .brand__logo--footer { width: 156px; height: auto; }

/* The homepage reveal waits for the existing logo loader. */
.home-page .reveal { filter: none; clip-path: none; transform: translate3d(var(--front-reveal-x, 0px), 36px, 0); transition: opacity 1.5s ease var(--reveal-delay, 0s), transform 1.7s var(--front-ease) var(--reveal-delay, 0s); }
.home-page .reveal-left { --front-reveal-x: -32px; }
.home-page .reveal-right { --front-reveal-x: 32px; }
.home-page .reveal.is-visible { opacity: 1; transform: none; }
.home-page:not(.home-is-ready) .intro-scene .reveal { opacity: 0; transform: translate3d(-36px, 0, 0); }
.home-page .intro-scene .reveal { transition-duration: 1.7s, 2.1s; }
.home-page.home-motion-paused .river-track,
.home-page.home-motion-paused .intro-scene__controls > a span { animation-play-state: paused; }

@media (min-width: 1600px) {
  .home-page .front-container,
  .intro-scene__inner { width: min(1320px, calc(100% - 128px)); }
  .home-page .intro-scene__headline { font-size: 64px; }
}

@media (max-width: 1199px) {
  .home-page .site-header { padding-inline: 32px; }
  .home-page .desktop-nav { gap: 18px; }
  .home-page .front-title { font-size: 37px; }
  .home-page .intro-scene__headline { font-size: 48px; }
  .front-values strong { font-size: 24px; }
  .front-philosophy__intro,
  .front-message__layout,
  .front-recruit__layout { gap: 48px; }
  .front-business__grid { column-gap: 36px; }
  .front-business-item__image { height: 256px; }
}

@media (max-width: 959px) {
  .home-page .front-container,
  .intro-scene__inner { width: calc(100% - 64px); }
  .home-page .site-header,
  .home-page .site-header.is-scrolled,
  .home-page .site-header.is-open { height: 80px; padding-inline: 32px; }
  .home-page .desktop-nav { display: none; }
  .home-page .menu-toggle { display: flex; }
  .home-page .drawer { top: 80px; }
  .home-page .brand__logo-stack { width: 130px; height: 64px; }
  .home-page .hero.intro-scene { min-height: 620px; }
  .home-page .intro-scene__headline { font-size: 40px; }
  .home-page .front-section { padding-block: 88px; }
  .home-page .front-title { font-size: 32px; }
  .home-page .front-philosophy .front-title { font-size: 32px; }
  .front-philosophy__intro,
  .front-message__layout,
  .front-recruit__layout { gap: 32px; grid-template-columns: minmax(0, 1fr); }
  .front-philosophy__copy p:first-child { font-size: 18px; }
  .front-values { gap: 20px; }
  .front-values strong { font-size: 21px; }
  .front-business__heading { align-items: start; flex-direction: column; gap: 22px; }
  .front-business-item__image { height: 230px; }
  .front-business-item__body h3 { font-size: 24px; }
  .front-business-item__body { padding-right: 50px; }
  .front-business-item__arrow { width: 36px; height: 36px; }
  .front-contact h2 { font-size: 32px; }
  .intro-scene__bottom > span { font-size: 11px; }
}

@media (max-width: 699px) {
  .home-page .front-container,
  .intro-scene__inner { width: calc(100% - 40px); }
  .home-page .site-header,
  .home-page .site-header.is-scrolled,
  .home-page .site-header.is-open { height: 72px; padding-inline: 20px; }
  .home-page .brand__logo-stack { width: 118px; height: 58px; }
  .home-page .menu-toggle { width: 42px; height: 42px; }
  .home-page .drawer { top: 72px; padding: 22px 28px 32px; background: #fff; }
  .home-page .drawer a { font-size: 24px; font-family: var(--font-body); }
  .home-page .hero.intro-scene { height: calc(100svh - 90px); min-height: 600px; max-height: 840px; }
  .intro-scene__video, .intro-scene__poster img { object-position: center 42%; }
  .intro-scene__veil { background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.88) 24%, rgba(255,255,255,.74) 45%, rgba(255,255,255,.12) 76%, rgba(255,255,255,.55) 100%); }
  .intro-scene__inner { padding: 72px 0 210px; }
  .intro-scene__copy > .front-label { font-size: 11px; gap: 10px; margin-bottom: 23px; }
  .intro-scene__copy > .front-label::before { width: 24px; }
  .home-page .intro-scene__headline { font-size: 30px; line-height: 1.65; }
  .intro-scene__lead { margin-top: 24px; font-size: 15px; line-height: 1.95; }
  .intro-scene__actions { gap: 22px; margin-top: 28px; }
  .front-button { min-width: 164px; padding: 12px 16px; }
  .front-button, .front-link { gap: 20px; font-size: 13px; min-height: 50px; }
  .intro-scene__bottom { bottom: 20px; padding-top: 15px; gap: 12px; }
  .intro-scene__bottom > span { max-width: 185px; font-size: 10px; line-height: 1.9; }
  .intro-scene__controls { gap: 12px; }
  .intro-scene__controls > a { font-size: 10px; gap: 8px; }
  .front-motion-toggle { width: 32px; height: 32px; }
  .work-scenes { padding: 32px 0 42px; }
  .work-scenes__head { display: block; margin-bottom: 24px; }
  .work-scenes__head > .front-label { font-size: 11px; }
  .work-scenes__head > p:last-child { margin-top: 6px; font-size: 12px; }
  .home-page .work-scenes .river-track { --river-gap: 12px; --river-half-gap: 6px; animation-duration: 52s; }
  .home-page .work-scenes .river-track img { flex-basis: 262px; width: 262px; height: 192px; }
  .home-page .front-section { padding-block: 72px; }
  .front-section-heading { gap: 14px; margin-bottom: 36px; }
  .front-section-heading > span { font-size: 12px; }
  .home-page .front-title { font-size: 30px; line-height: 1.6; }
  .home-page .front-philosophy .front-title { font-size: 26px; }
  .front-philosophy__intro,
  .front-message__layout,
  .front-recruit__layout { grid-template-columns: 1fr; gap: 32px; }
  .front-philosophy__copy p { font-size: 16px; }
  .front-philosophy__copy p:first-child { font-size: 18px; }
  .front-values { grid-template-columns: 1fr; gap: 0; margin-top: 44px; }
  .front-values li { display: grid; grid-template-columns: 28px 1fr; gap: 8px 10px; padding: 24px 0; }
  .front-values li:last-child { border-bottom: 1px solid var(--front-line); }
  .front-values__number { padding-top: 4px; }
  .front-values strong { margin: 0; font-size: 27px; }
  .front-values li > span:last-child { grid-column: 2; font-size: 14px; }
  .front-business__heading { gap: 20px; }
  .front-business__grid { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; padding-bottom: 0; }
  .front-business-item:nth-child(even) { top: 0; }
  .front-business-item__image { height: auto; aspect-ratio: 1.55; }
  .front-business-item__body { padding-top: 19px; padding-bottom: 21px; }
  .front-business-item__body h3 { font-size: 26px; }
  .front-business-item__body p { font-size: 14px; }
  .front-message__copy > p { font-size: 16px; }
  .front-recruit__values > span { padding: 20px 0; }
  .front-recruit__values strong { font-size: 25px; }
  .front-contact__link { padding: 52px 0; gap: 20px; }
  .front-contact h2 { margin: 14px 0 10px; font-size: 24px; }
  .front-contact p { font-size: 13px; line-height: 1.8; }
  .front-contact__arrow { flex-basis: 50px; height: 50px; font-size: 32px; }
  .home-page .site-footer { padding: 44px 20px 26px; }
  .home-page .site-footer nav { gap: 18px 24px; }
  .home-page .reveal-left,
  .home-page .reveal-right { --front-reveal-x: 0px; }
}

@media (max-width: 479px) {
  .home-page .intro-scene__headline { font-size: 26px; }
}
@media (max-width: 389px) {
  .home-page .intro-scene__headline { font-size: 24px; }
  .home-page .front-title { font-size: 27px; }
  .home-page .front-philosophy .front-title { font-size: 24px; }
  .front-values strong { font-size: 25px; }
  .front-contact h2 { font-size: 22px; }
}
@media (max-width: 349px) {
  .home-page .intro-scene__headline { font-size: 21px; }
  .home-page .front-title { font-size: 24px; }
  .home-page .front-philosophy .front-title { font-size: 21px; }
  .intro-scene__actions { gap: 16px; }
  .intro-scene__actions .front-button { min-width: 146px; }
  .intro-scene__actions .front-link { gap: 10px; font-size: 12px; }
  .front-contact h2 { font-size: 19px; }
}

@media (max-width: 699px) and (max-height: 740px) {
  .home-page .hero.intro-scene { min-height: 500px; height: calc(100svh - 72px); }
  .intro-scene__inner { padding-top: 44px; padding-bottom: 158px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-scene__video, .intro-scene__video.is-playing { opacity: 0; transition: none; }
  .home-page .reveal,
  .home-page:not(.home-is-ready) .intro-scene .reveal { opacity: 1; transform: none; transition: none; }
  .home-page .intro-scene__headline em::after { transform: none; transition: none; }
  .home-page .work-scenes .river-track,
  .intro-scene__controls > a span { animation: none; }
  .front-business-item__image img,
  .front-business-item__arrow,
  .front-contact__arrow,
  .front-button > span,
  .front-link > span { transition: none; }
}

/* 2026-10: Welfare and AI, with the established brand preserved. */
.home-page .intro-scene__headline { font-size: clamp(36px, 4.45vw, 60px); }
.home-page .intro-scene__headline > span { white-space: normal; }
.home-page .intro-scene__headline .hero-phrase,
.home-page .intro-scene__headline em { display: inline-block; }
.home-page .intro-scene__headline .hero-cross { display: inline; margin-inline: .16em; }
.home-page .intro-scene__lead { max-width: 760px; }
.home-page .front-business-item:nth-child(even) { top: 0; }
.home-page .front-business__grid { padding-bottom: 0; }
.home-page .front-values strong { font-size: clamp(19px, 2.2vw, 28px); }
@media (max-width: 767px) {
  .home-page .intro-scene__headline { font-size: clamp(28px, 6.8vw, 44px); line-height: 1.65; }
  .home-page .intro-scene__copy > .front-label { font-size: 11px; gap: 9px; }
  .home-page .intro-scene__copy > .front-label::before { width: 18px; flex: 0 0 18px; }
  .home-page .intro-scene__lead { font-size: 14px; line-height: 1.95; }
}
