/* The company story precedes the two business detail pages. */
.why-page { color: var(--ir-ink); }
.why-page a { color: inherit; text-decoration: none; }
.why-shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.why-top { padding-top: 32px; }
.why-breadcrumb { color: #8a8a86; font-size: 12px; letter-spacing: .04em; margin-bottom: 26px; }
.why-breadcrumb span { margin-inline: 6px; }
.why-ir-title { display: flex; align-items: baseline; gap: 24px; color: #161616; font-family: Inter, sans-serif; margin: 0 0 24px; }
.why-ir-title-main { font-size: 60px; line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.why-ir-title-divider { display: block; width: 1px; height: 32px; background: #cfcdc6; flex-shrink: 0; transform: translateY(5px); }
.why-ir-title-sub { color: #5a5a56; font-size: 18px; line-height: 1.6; font-weight: 400; letter-spacing: .02em; }
.why-ir-nav { display: flex; gap: 28px; align-items: stretch; border-bottom: 1px solid #d8d6d0; overflow-x: auto; }
.why-ir-nav a { display: flex; align-items: center; flex-shrink: 0; min-height: 58px; font-size: 13px; color: #5a5a56; }
.why-ir-nav [aria-current] { color: #161616; font-weight: 700; box-shadow: inset 0 -2px #161616; }
.why-eyebrow { margin: 0 0 48px; font: 500 11px/1.8 Inter, sans-serif; letter-spacing: .16em; color: #64716f; }
.why-eyebrow span { margin-left: 16px; font-family: "Noto Sans JP", sans-serif; font-size: 11px; letter-spacing: .04em; }
.why-business { padding-block: 24px 48px; }
.why-business-title { margin: 0 0 20px; color: var(--ir-ink); font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.why-business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.why-business-link { display: flex; flex-direction: column; align-items: flex-start; padding-block: 28px 24px; border-top: 1px solid #bfcac6; border-bottom: 1px solid #dce3df; }
.why-business-link h3 { color: var(--ir-ink); font: 600 clamp(26px, 3vw, 38px)/1.2 Inter, sans-serif; letter-spacing: -.035em; margin: 0 0 22px; }
.why-business-link p { font-size: 14px; line-height: 1.9; color: #65716e; margin: 0 0 26px; }
.why-business-link .why-business-lead { color: var(--ir-ink); font-size: 20px; line-height: 1.7; margin-bottom: 18px; }
.why-page a:focus-visible { outline: 2px solid #338478; outline-offset: 5px; }
@media (max-width: 1024px) {
  .why-shell { width: calc(100% - 40px); }
}
@media (max-width: 899px) {
  .why-top { padding-top: 20px; }
  .why-breadcrumb { font-size: 10px; margin-bottom: 20px; }
  .why-ir-title { gap: 16px; margin-bottom: 16px; white-space: nowrap; }
  .why-ir-title-main { font-size: 40px; line-height: 1.08; letter-spacing: -.02em; }
  .why-ir-title-divider { height: 24px; transform: translateY(3px); }
  .why-ir-title-sub { font-size: 13px; line-height: 1.7; }
  .why-ir-nav { gap: 22px; }
  .why-ir-nav a { min-height: 48px; font-size: 12px; }
  .why-eyebrow { margin-bottom: 32px; font-size: 10px; }
  .why-eyebrow span { font-size: 10px; margin-left: 10px; }
  .why-business { padding-block: 20px 32px; }
  .why-business-title { margin-bottom: 16px; font-size: 18px; }
  .why-business-grid { grid-template-columns: 1fr; gap: 28px; }
  .why-business-link h3 { font-size: 32px; }
  .why-business-link .why-business-lead { font-size: 19px; }
  .why-pc-break { display: none; }
}

/* Purpose and message remain readable text at every screen width. */
.why-original { padding-block: 64px 48px; }
.why-introduction { max-width: 840px; margin-inline: auto; }
.why-purpose-title {
  display: flex; justify-content: center; align-items: baseline; gap: .12em;
  margin: 0; font: 500 clamp(24px, 6.8vw, 64px)/1.5 "Noto Serif JP", serif;
  letter-spacing: .04em; white-space: nowrap; color: #5a5a56;
}
.why-purpose-title > span:first-child, .why-purpose-dot { color: #a4aaa7; }
.why-purpose-title > span:last-child {
  color: #237c6e; background: linear-gradient(100deg, #237c6e, #48a89d);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
/* Show the original flow artwork at source y=480..910 without its text. */
.why-purpose-flow { position: relative; width: 100%; aspect-ratio: 1920 / 430; overflow: hidden; margin-top: 20px; }
.why-purpose-flow img { position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto; margin-top: -25%; filter: brightness(1.035); }
.why-purpose-message {
  max-width: 840px; margin: 36px auto 0; color: var(--ir-ink);
  font: 500 18px/2.2 "Noto Serif JP", serif; letter-spacing: .03em;
}
.why-purpose-message span { display: block; text-wrap: balance; }
@media (max-width: 899px) {
  .why-original { padding-block: 36px 32px; }
  .why-purpose-flow { margin-top: 12px; }
  .why-purpose-message { margin-top: 24px; font-size: 16px; line-height: 2; }
}
.why-knowledge { padding-block: 0 48px; }
.why-knowledge figure { margin: 0; }
.why-knowledge img { display: block; width: 100%; height: auto; }
@media (max-width: 899px) {
  .why-knowledge { padding-block: 0 32px; }
}
.why-business-title.why-shell { margin-inline: auto; scroll-margin-top: calc(var(--ir-header-offset, 64px) + 16px); }

/* Business cards become a persistent pair of in-page tabs when opened. */
.why-business-bar { position: relative; z-index: 20; scroll-margin-top: 64px; }
.why-business-grid { position: relative; isolation: isolate; }
.why-business-grid::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: #edf2f0; transform: scaleX(0); transform-origin: left center;
  transition: transform .44s cubic-bezier(.22,.68,.2,1);
}
[data-selected="agentic-platform"] .why-business-grid::before { transform-origin: right center; }
button.why-business-link {
  width: 100%; min-width: 0; padding-inline: 0; border-inline: 0; border-radius: 0;
  background: transparent; font: inherit; text-align: left; cursor: pointer;
  transition: padding .4s, border-color .3s, background-color .25s;
}
.why-business-name {
  display: block; color: var(--ir-ink);
  font: 600 clamp(26px,3vw,38px)/1.2 Inter,sans-serif;
  letter-spacing: -.035em; margin: 18px 0 22px;
  transition: font-size .4s, margin .4s, color .3s;
}
.why-business-summary { display: block; width: 100%; max-height: 300px; opacity: 1; overflow: hidden; transition: max-height .4s, opacity .2s; }
.why-business-summary .why-business-lead { display: block; }
.why-business-description { display: block; font-size: 14px; line-height: 1.9; color: #65716e; margin-bottom: 0; }
.why-business:not(.is-open) .why-business-link:hover,
.why-business:not(.is-open) .why-business-link:focus-visible {
  border-color: #18a47f;
}
.why-business:not(.is-open) .why-business-link:hover .why-business-name,
.why-business:not(.is-open) .why-business-link:hover .why-business-lead,
.why-business:not(.is-open) .why-business-link:hover .why-business-description,
.why-business:not(.is-open) .why-business-link:focus-visible .why-business-name,
.why-business:not(.is-open) .why-business-link:focus-visible .why-business-lead,
.why-business:not(.is-open) .why-business-link:focus-visible .why-business-description {
  color: #168c70;
}
.why-business-lead,
.why-business-description {
  transition: color .25s ease;
}
.why-business-link:focus-visible, .why-business-panel:focus-visible, .why-business-retry:focus-visible { outline: 2px solid #338478; outline-offset: 4px; }
.why-business.is-open { padding-bottom: 0; }
.why-business.is-open .why-business-bar { position: sticky; top: var(--ir-header-offset, 64px); background: #fff; }
.why-business.is-open .why-business-grid { gap: 0; }
.why-business.is-open .why-business-grid::before { transform: scaleX(1); }
.why-business.is-open .why-business-link { padding: 16px 28px; border-top-color: transparent; border-bottom: 2px solid transparent; }
.why-business.is-open .why-business-link[aria-selected="true"] { background: #237c6e; color: #fff; }
.why-business.is-open .why-business-link[aria-selected="true"] .why-business-name { color: #fff; }
.why-business.is-open .why-business-link[aria-selected="false"] { color: #707b77; }
.why-business.is-open .why-business-link[aria-selected="false"] .why-business-name { color: #707b77; }
.why-business.is-open .why-business-link[aria-selected="false"]:hover .why-business-name { color: var(--ir-ink); }
.why-business.is-open .why-business-name { font-size: 26px; margin: 0; }
.why-business.is-open .why-business-summary { max-height: 0; opacity: 0; }
.why-business-panel[hidden] { display: none; }
.why-business-panel { min-height: 280px; animation: why-detail-in .35s ease-out both; }
.why-business-status { padding-block: 72px; color: #65716e; font-size: 14px; }
.why-business-retry { border: 0; background: transparent; padding: 8px; font: inherit; color: #237c6e; text-decoration: underline; cursor: pointer; }
/* Use compact, consistent section spacing for both inline business stories. */
.why-detail:is(.lc-page, .ap-page) .irdoc-pc > div[id]:nth-child(n+2) { padding: 28px 48px !important; }
.why-detail:is(.lc-page, .ap-page) .irdoc-pc > div[id]:nth-child(n+2) > div { padding-top: 0 !important; }
.why-detail .irdoc-pc > div[id], .why-detail .irdoc-sp > div[id] { scroll-margin-top: calc(var(--ir-header-offset, 64px) + var(--why-business-bar-height, 64px) + 20px); }
@keyframes why-detail-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) {
  .why-detail:is(.lc-page, .ap-page) .irdoc-sp > div[id]:nth-child(n+2) { padding: 20px !important; border-top: 0 !important; }
}
@media (max-width: 899px) {
  .why-purpose-message span { text-wrap: wrap; }
  .why-business-name { font-size: 32px; }
  .why-business.is-open .why-business-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .why-business.is-open .why-business-link { padding: 16px 10px; }
  .why-business.is-open .why-business-name { font-size: clamp(14px,4vw,22px); letter-spacing: -.04em; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .why-business-grid::before, .why-business-link, .why-business-name, .why-business-summary { transition: none !important; }
  .why-business-panel { animation: none; }
}

/* Keep the inline business story on one white canvas and the shared content grid. */
.why-detail { background: #fff; }
.why-detail.lc-page { --lc-gray: #fff; }
.why-detail .irdoc-pc > div[id],
.why-detail .irdoc-sp > div[id] { background: #fff !important; }
.why-detail :is(.lc-hero, .ap-hero) { padding-block: 28px 8px; }
.why-detail :is(.lc-hero-inner, .ap-hero-inner) {
  min-height: 340px;
  align-items: flex-start;
}
.why-detail :is(.lc-hero-copy, .ap-hero-copy) { padding-block: 0; }
.why-detail :is(.lc-hero-art, .ap-hero-art) {
  right: 0;
  width: 60%;
  height: 340px;
}
@media (max-width: 899px) {
  .why-detail :is(.lc-hero, .ap-hero) { padding-block: 24px 4px; }
  .why-detail :is(.lc-hero-inner, .ap-hero-inner) { min-height: 0; }
  .why-detail :is(.lc-hero-art, .ap-hero-art) {
    width: 100%;
    height: auto;
  }
}

/* Tighten the space around illustrations without shrinking their labels. */
.why-detail :is(.lc-hero, .ap-hero) h2 { margin-bottom: 20px; }
.why-detail .irdoc-pc > div[id] > div > p:has(+ figure) { margin-bottom: 12px !important; }
.why-detail.lc-page :is(#pc-s6, #pc-s9, #pc-s10) { padding-bottom: 28px !important; }
@media (max-width: 899px) {
  .why-detail :is(.lc-hero, .ap-hero) h2 { margin-bottom: 16px; }
  .why-detail :is(.lc-hero-art, .ap-hero-art) { margin-top: 8px; }
  .why-detail.lc-page :is(#sp-s5, #sp-sales) { padding-bottom: 20px !important; }
}
