/* Homepage refinements from the annotated September 2026 brief. */
[data-page="home"] .site-header--over-hero { background: rgb(17 20 23 / .62); backdrop-filter: blur(26px) saturate(96%) brightness(.65); -webkit-backdrop-filter: blur(26px) saturate(96%) brightness(.65); }
.home-intro { padding-block: clamp(84px, 10vw, 156px); background: var(--surface); text-align: center; }
.home-intro h2, .home-intro p { max-width: 23ch; margin-inline: auto; font-family: var(--font-body); font-size: clamp(26px, 4.35vw, 56px); font-weight: 500; letter-spacing: var(--track); line-height: 1.08; text-wrap: balance; }
.home-intro p { margin: 32px auto 0; }
.request-choice[hidden] { display: none; }
.home-services-head { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.home-services-title { flex: 0 0 auto; font-size: clamp(24px, 2.5vw, 36px); }
.home-services-head .deck__rail { margin: 0; padding: 0 0 15px; flex-wrap: wrap; overflow: visible; gap: 22px 12px; }
.capabilities .service-trigger { position: relative; max-width: 100%; min-height: 52px; padding: 10px 20px; border-radius: 999px; font-size: clamp(14px, 1.45vw, 22px); line-height: 1.2; text-transform: none; white-space: normal; }
.capabilities .service-trigger::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; transform: translateX(-50%); transition: opacity 160ms ease; }
.capabilities .service-item.is-active .service-trigger::after { opacity: 1; }
.capabilities .deck__stage { height: auto; container-type: normal; }
.capabilities .deck__track { height: auto; }
.capabilities .deck__card { width: 100%; height: auto; min-height: clamp(480px, 38vw, 600px); margin: 0; padding: clamp(28px, 3.2vw, 48px); display: grid; grid-template-columns: 1.15fr 1fr; align-self: start; align-items: start; gap: clamp(30px, 5vw, 90px); background: linear-gradient(180deg, rgb(17 23 28 / .72), rgb(17 23 28 / .58) 62%, rgb(17 23 28 / .12)); }
.capabilities .deck__card[aria-hidden="true"] { position: absolute; top: 0; left: 0; }
.home-service-title { min-width: 0; }
.capabilities .deck__card-title { max-width: 14ch; font-size: clamp(38px, 4.8vw, 72px); line-height: .99; text-transform: uppercase; text-wrap: balance; }
.capabilities .deck__card-index { font-size: 16px; margin-bottom: 24px; color: #fff; }
.home-service-detail { align-self: start; padding: 0; margin: 40px 0 0; border: 0; background: transparent; }
.capabilities .deck__card-body { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; color: #f6f6f6; }
.home-service-detail .more-button { width: min(100%, 320px); min-width: 0; min-height: 76px; margin-top: 28px; padding: 22px 28px; font-size: 18px; }
.home-service-detail .service-mode-links { margin-top: 24px; }
.home-service-detail .service-mode-link { min-height: 48px; font-size: clamp(13px, 1.1vw, 16px); }
.home-partners { background: var(--surface); padding-bottom: clamp(44px, 5vw, 72px); }
.home-partners__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 72px); }
.home-partners__head h2 { max-width: 20ch; font-size: clamp(32px, 4.2vw, 60px); }
.home-action svg { width: 100%; stroke: currentColor; stroke-width: 1.5; }
.home-partners__viewport { --partner-card-width: calc((100vw - 2 * var(--edge) - 72px) / 5); overflow: hidden; }
.home-partners__belt { display: flex; width: max-content; }
.home-partners__belt.is-ready { animation: partner-drift var(--partner-duration, 85s) linear infinite; }
.home-partners__track { display: flex; flex: 0 0 auto; gap: 18px; width: max-content; list-style: none; margin: 0; padding: 0 18px 0 0; }
.home-partner { display: grid; place-items: center; width: var(--partner-card-width); flex: 0 0 var(--partner-card-width); aspect-ratio: 1.05; background: #f3f3f1; clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%); }
@keyframes partner-drift { to { transform: translateX(-50%); } }
.home-partner img { width: 100%; height: auto; filter: brightness(0); opacity: .7; }
.home-partner img.home-partner__logo--enplus { width: 70%; filter: grayscale(1) contrast(8); mix-blend-mode: multiply; }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: 40px; background: var(--surface); }
.home-action { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; min-height: clamp(180px, 17vw, 250px); padding: clamp(24px, 2.5vw, 36px); border: 1px solid transparent; text-align: left; color: var(--ink); background: #dedfdd; font-size: clamp(28px, 3.6vw, 52px); letter-spacing: var(--track); line-height: 1.06; transition: background-color 160ms ease; }
.home-action span { max-width: 16ch; }
.home-action svg { flex: 0 0 44px; width: 44px; height: 44px; }
.home-action--dark { background: var(--ink); color: var(--paper); }
.home-footer { display: grid; grid-template-columns: 1.65fr 1fr .8fr 1.4fr; gap: clamp(28px, 4vw, 64px); padding: 48px var(--edge) clamp(80px, 9vw, 140px); background: var(--surface); font-size: 16px; line-height: 1.4; }
.home-footer__company p { margin: 0 0 8px; }
.home-footer__company > .lang-switch { width: fit-content; margin: 24px 0; }
.home-footer__cookies { display: block; width: min(100%, 270px); margin-top: 26px; padding: 18px 0; border: 0; border-block: 1px solid var(--line-dark); background: transparent; color: var(--ink); text-align: left; }
.home-footer__privacy { display: block; max-width: 24ch; color: #62676a; font-size: 14px; }
.home-footer__column { display: flex; flex-direction: column; align-items: start; gap: 12px; }
.home-footer__column h2 { margin: 0 0 10px; color: #62676a; font-size: 12px; letter-spacing: 0; text-transform: uppercase; }
.home-footer__column a { max-width: 25ch; text-wrap: pretty; }
.home-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.cookie-dialog { width: min(760px, calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-dark); margin: auto; color: var(--ink); background: var(--surface); overflow-y: auto; overscroll-behavior: contain; }
.cookie-dialog::backdrop { background: rgb(20 25 30 / .75); }
body:has(.cookie-dialog[open]) { overflow: hidden; }
.cookie-dialog__head { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.cookie-dialog__head h2 { font-size: clamp(26px, 3vw, 38px); }
.cookie-dialog__head button { padding: 10px 14px; min-height: 44px; border: 1px solid var(--line-dark); background: transparent; color: var(--ink); font-size: 14px; }
.cookie-dialog__intro { margin: 26px 0 16px; line-height: 1.45; font-size: 16px; }
.cookie-dialog__privacy { display: inline-block; margin-bottom: 26px; font-size: 14px; text-decoration: underline; text-underline-offset: .2em; }
.cookie-category { padding: 22px 0; border-top: 1px solid var(--line); }
.cookie-category__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-category h3 { margin: 0; font-size: 22px; font-weight: 500; }
.cookie-category__head > span { font-size: 13px; color: #62676a; }
.cookie-category p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #62676a; }
.cookie-toggle { position: relative; display: block; width: 54px; height: 32px; flex: 0 0 auto; }
.cookie-toggle input { width: 100%; height: 100%; position: absolute; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cookie-toggle span { display: block; width: 100%; height: 100%; border-radius: 18px; background: #818589; transition: background-color 160ms ease; }
.cookie-toggle span::after { position: absolute; content: ''; width: 24px; height: 24px; top: 4px; left: 4px; background: #fff; border-radius: 50%; transition: transform 160ms ease; }
.cookie-toggle input:checked + span { background: var(--ink); }
.cookie-toggle input:checked + span::after { transform: translateX(22px); }
.cookie-toggle input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.cookie-dialog__actions button { flex: 1 1 auto; min-height: 48px; padding: 12px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; }
.cookie-dialog__actions button:first-child { background: var(--ink); color: var(--paper); }
.cookie-dialog__note { margin: 20px 0 0; color: #62676a; font-size: 13px; line-height: 1.4; }
html[lang="ja"] body { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", var(--font-body); letter-spacing: 0; }
html[lang="ja"] .home-intro h2, html[lang="ja"] .home-intro p, html[lang="ja"] .deck__card-title { line-height: 1.3; letter-spacing: -.02em; }
html[lang="ja"] .home-intro h2, html[lang="ja"] .home-intro p { max-width: 21ch; }
@media (hover: hover) {
  .home-action:hover { background: #cbcfcf; }
  .home-action--dark:hover { background: #3b4145; }
  .home-footer__cookies:hover { background: #f3f3f1; }
  .cookie-dialog button:hover { background: #e8e8e2; color: var(--ink); }
}
@media (max-width: 1000px) {
  .home-services-head { flex-direction: column; align-items: flex-start; }
  .capabilities .deck__card { gap: 24px; grid-template-columns: 1fr 1fr; }
  .capabilities .deck__card-title { font-size: clamp(34px, 4.8vw, 48px); }
  .home-service-detail { padding: 0; }
  .home-partners__viewport { --partner-card-width: calc((100vw - 2 * var(--edge) - 36px) / 3); }
  .home-footer { grid-template-columns: 1.3fr 1fr 1fr; }
  .home-footer__column:last-child { grid-column: 2 / 4; }
}
@media (max-width: 700px) {
  .home-services-head .deck__rail { width: 100%; }
  .capabilities .deck__stage { height: auto; container-type: normal; }
  .capabilities .deck__track { height: auto; }
  .capabilities .deck__card { display: flex; flex-direction: column; justify-content: flex-start; height: auto; min-height: 0; padding: 24px 24px 32px; gap: 24px; }
  .capabilities .deck__card-title { font-size: clamp(30px, 8.8vw, 50px); max-width: 17ch; }
  .home-service-detail { width: 100%; margin: 0; align-self: stretch; }
  .home-service-detail .more-button { width: 100%; padding-inline: 20px; gap: 20px; font-size: 16px; }
  .capabilities .deck__card-body { font-size: 18px; }
  .home-service-title { padding-top: 0; }
  .home-partners__head { align-items: center; }
  .home-partners__viewport { --partner-card-width: clamp(180px, 58vw, 260px); }
  .home-partner { aspect-ratio: 1.1; }
  .home-actions { grid-template-columns: 1fr; gap: 14px; }
  .home-action { min-height: 180px; font-size: clamp(32px, 7vw, 48px); }
  .home-footer { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .home-footer__company { grid-column: 1 / -1; }
  .home-footer__column:last-child { grid-column: 1 / -1; }
  .home-footer__column a { font-size: 16px; }
  .cookie-dialog { width: calc(100% - 24px); padding: 24px; }
  .cookie-dialog__head { gap: 16px; }
  .cookie-dialog__head h2 { font-size: 26px; }
  .cookie-dialog__actions { flex-direction: column; }
  html[lang="ja"] .capabilities .deck__card-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-action, .cookie-toggle span, .cookie-toggle span::after { transition: none; }
  .home-partners__belt.is-ready { animation: none; transform: none; }
  .home-partners__belt, .home-partners__track { width: 100%; }
  .home-partners__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; padding: 0; }
  .home-partner { width: 100%; min-width: 0; }
  .home-partners__track--copy { display: none; }
}
