/* ==========================================================================
   DAILY Works / Home
   トップページだけで使うヒーロー、コンセプト、AX概要、3つの変化、動画モーダル。
   ========================================================================== */

.home-hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--ag-space-20) var(--ag-space-24);
  color: var(--ag-ink);
}

.home-hero::before {                    /* 写真 */
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("../images/hero_bg.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  content: "";
}

.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(255, 255, 255 0.8);
  background: color-mix(in srgb, var(--ag-white) 16%, transparent);
  content: "";
}

.home-hero > .site-shell {
  position: relative;
}

.home-hero .eyebrow {
  color: var(--ag-brand);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-video-teaser {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* .hero-video-teaser .video-teaser__media::after {
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0) 0%, rgba(18, 18, 18, 0.12) 48%, rgba(18, 18, 18, 0.76) 100%),
    linear-gradient(90deg, rgba(18, 18, 18, 0.18), rgba(18, 18, 18, 0));
} */

.hero-video-teaser .video-teaser__label {
  text-shadow: 0 1px 8px rgba(18, 18, 18, 0.72);
}

.video-teaser {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--ag-ink);
  color: var(--ag-white);
  cursor: pointer;
  text-align: left;
}

.video-teaser__media {
  position: absolute;
  inset: 0;
  display: block;
  border: 8px solid var(--ag-line-strong);
}

.video-teaser__media::after {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(180deg, rgba(18, 18, 18, 0.04), rgba(18, 18, 18, 0.54)); */
  content: "";
}

.video-teaser__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.video-teaser__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ag-brand-counter) 88%, transparent);
  color: var(--ag-white);
  font-size: 36px;
  transform: translate(-50%, -50%);
}

.video-teaser__play::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid currentColor;
  content: "";
}

.video-teaser__label {
  position: absolute;
  right: var(--ag-space-6);
  bottom: var(--ag-space-5);
  left: var(--ag-space-6);
  z-index: 1;
  color: var(--ag-white);
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-compact);
}

.video-teaser:hover .video-teaser__media img,
.video-teaser:focus-visible .video-teaser__media img {
  transform: scale(1.025);
}

.video-teaser:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ag-brand) 70%, var(--ag-white));
  outline-offset: 3px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin-top: var(--ag-space-5);
  font-size: 56px;                        /* Guide: DISPLAY H1 最大56px */
  font-weight: var(--ag-weight-display);
  letter-spacing: 0.015em;
  line-height: var(--ag-leading-display);
}

.hero-copy h1 em {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--ag-brand);
  font-style: normal;
  line-height: inherit;
  white-space: nowrap;
  isolation: isolate;
}

.hero-copy h1 em::before {
  position: absolute;
  z-index: -1;
  inset: 0 -0.08em;
  background: var(--ag-brand);
  content: "";
  transform: scaleX(1);
  transform-origin: left center;
}

.hero-copy h1 em::after {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  color: var(--ag-white);
  content: attr(data-text);
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}

html.home-hero-pending .hero-copy h1 em::before {
  transform: scaleX(0);
}

html.home-hero-pending .hero-copy h1 em::after {
  clip-path: inset(0 100% 0 0);
}

html.home-hero-ready .hero-copy h1 em::before {
  animation: hero-marker-fill 950ms linear both;
}

html.home-hero-ready .hero-copy h1 em::after {
  animation: hero-marker-text 880ms linear 70ms both;
}

@keyframes hero-marker-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes hero-marker-text {
  from {
    clip-path: inset(0 100% 0 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.hero-lead {
  margin-top: var(--ag-space-6) !important;
  padding: var(--ag-space-4);
  color: var(--ag-ink);
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: 1.9;
  background: color-mix(in srgb, var(--ag-paper) 48%, transparent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--ag-space-8);
}

/* --------------------------------------------------------------------------
   トップ再構成：DAILY Worksのコンセプト
   4枚の独立カードではなく、DAILY Worksという一つの製品面として見せる。
   変更前は revisions/20260821_top_before_usecase_style/ に保存。
   -------------------------------------------------------------------------- */

.concept-lead {
  margin-top: var(--ag-space-5);
  color: var(--ag-ink);
  font-size: 24px;
  font-weight: var(--ag-weight-heading);
  line-height: 1.75;
}

.concept-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  margin-top: var(--ag-space-16);
  overflow: hidden;
  border-top: 1px solid var(--ag-line-strong);
  border-bottom: 1px solid var(--ag-line-strong);
  background: transparent;
}

.concept-panel__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--ag-space-12);
  border-right: 1px solid var(--ag-line-strong);
  background: transparent;
  color: var(--ag-ink);
}

.concept-panel__identity img {
  display: block;
  width: 170px;
  height: auto;
  padding: 0;
  background: transparent;
}

.concept-panel__identity span {
  margin-top: var(--ag-space-8);
  color: var(--ag-brand);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
}

.concept-panel__identity strong {
  display: block;
  margin-top: var(--ag-space-3);
  font-size: 27px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.concept-panel__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.concept-feature {
  display: flex;
  gap: var(--ag-space-4);
  align-items: flex-start;
  min-width: 0;
  padding: var(--ag-space-8);
}

.concept-feature:nth-child(even) {
  border-left: 1px solid var(--ag-line-strong);
}

.concept-feature:nth-child(n + 3) {
  border-top: 1px solid var(--ag-line-strong);
}

.concept-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  background: transparent;
  color: var(--ag-brand);
  font-size: 22px;
}

.concept-feature h3 {
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.concept-feature h3 .ag-badge {
  margin-left: 8px;
  vertical-align: 2px;
}

.concept-feature p {
  margin-top: var(--ag-space-2);
  color: var(--ag-text-2);
  font-size: 15px;
  line-height: var(--ag-leading-compact);
}

@media (max-width: 1100px) {
  .concept-panel__identity {
    padding: var(--ag-space-10);
  }

  .concept-panel__identity strong {
    font-size: 24px;
  }

  .concept-feature {
    padding: var(--ag-space-6);
  }
}

@media (max-width: 900px) {
  .concept-panel {
    grid-template-columns: 1fr;
  }

  .concept-panel__identity {
    padding: var(--ag-space-8);
    border-right: 0;
    border-bottom: 1px solid var(--ag-line-strong);
  }

  .concept-panel__features {
    grid-template-columns: 1fr;
  }

  .concept-feature,
  .concept-feature:nth-child(even),
  .concept-feature:nth-child(n + 3) {
    border-top: 1px solid var(--ag-line-strong);
    border-left: 0;
  }
}

/* トップ：活用例へのCTA */
.ag-body .site-cta.site-cta--usecase {
  background: var(--ag-brand-pale);
  color: var(--ag-ink);
}

.site-cta--usecase .cta-inner {
  border-left-color: var(--ag-brand);
}

.site-cta--usecase .cta-inner p {
  color: var(--ag-text-2);
}

.ag-body .usecase-cta__button {
  background: var(--ag-brand);
  color: var(--ag-white);
}

.ag-body .usecase-cta__button:hover {
  background: var(--ag-ink);
}

/* --------------------------------------------------------------------------
   トップ再構成：AXプラットフォームのHTMLフロー
   -------------------------------------------------------------------------- */

.ag-body .diagram.platform-diagram {
  margin: var(--ag-space-16) 0 0 !important;
}

.ag-body .diagram.platform-diagram > .diagram__conclusion {
  margin-top: var(--ag-space-16) !important;
  padding-top: 0 !important;
}

.platform-flow {
  display: grid;
  grid-template-columns: minmax(250px, 270px) 72px minmax(300px, 320px) minmax(340px, 1fr);
  column-gap: var(--ag-space-6);
  align-items: stretch;
}

.platform-flow__node {
  min-width: 0;
}

.platform-flow__node--data {
  display: flex;
  flex-direction: column;
  padding: var(--ag-space-8) var(--ag-space-6);
  border-radius: var(--ag-radius-xl);
  background: var(--ag-sage-light);
}

.platform-flow__node--data h3 {
  text-align: center;
  color: var(--ag-ink);
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.platform-flow__data-groups {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--ag-space-12);
  margin-top: var(--ag-space-6);
}

.platform-flow__data-group h4 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: var(--ag-space-4);
  color: var(--ag-ink);
  font-size: 15px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-compact);
}

.platform-flow__data-group h4 > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--ag-ink);
  color: var(--ag-white);
  font-size: 14px;
}

.platform-flow__list {
  display: grid;
  gap: 6px;
  margin-top: var(--ag-space-2);
}

.platform-flow__list li {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  background: var(--ag-white);
  color: var(--ag-ink);
  font-size: 14px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-compact);
}

.platform-flow__list li > span {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--ag-ink);
  font-size: 16px;
}

.platform-flow__connector {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  color: var(--ag-brand);
}

.platform-flow__connector svg,
.platform-flow__output-arrow svg,
.platform-flow__mobile-output-arrow svg {
  display: block;
  width: 20px;
  height: 28px;
}

.platform-flow__connector span {
  margin-top: var(--ag-space-6);
  text-align: center;
  white-space: nowrap;
  color: var(--ag-brand);
  font-size: 16px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-display);
}

.ag-body .platform-flow__node--core {
  padding: var(--ag-space-6)  var(--ag-space-8) !important;
  border: 4px solid var(--ag-brand);
  border-radius: 0;
  background: var(--ag-white);
  color: var(--ag-ink);
}

.platform-flow__label {
  display: block;
  text-align: center;
  color: var(--ag-brand);
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.platform-flow__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--ag-space-3);
  margin-bottom: var(--ag-space-4);
}

.platform-flow__logo img {
  display: block;
  width: 120px;
  height: auto;
}

.platform-flow__core-list {
  display: grid;
  gap: var(--ag-space-2);
  margin-top: var(--ag-space-8);
}

.platform-flow__core-list li {
  display: flex;
  gap: var(--ag-space-3);
  align-items: center;
  min-height: 48px;
  padding: 8px 12px;
  background: var(--ag-brand-pale);
  color: var(--ag-brand);
  font-size: 16px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-compact);
}

.platform-flow__core-list li > span {
  color: var(--ag-brand);
  font-size: 22px;
}

.platform-flow__agent-icon {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.platform-flow__llm {
  margin-top: var(--ag-space-8);
}

.platform-flow__llm h4 {
  text-align: center;
  color: var(--ag-brand);
  font-size: 16px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.platform-flow__llm ul {
  display: grid;
  gap: 8px;
  max-width: 100%;
  margin: var(--ag-space-2) auto 0;
}

.platform-flow__llm li {
  padding: 8px 12px;
  text-align: center;
  background: var(--ag-sage-light);
  color: var(--ag-ink);
  font-size: 18px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-heading);
}

.platform-flow__llm li + li {
  border-top: 0;
}

.platform-flow__outputs {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--ag-space-6);
  min-width: 0;
}

.platform-flow__mobile-output-arrow {
  display: none;
}

.platform-flow__output-row {
  display: grid;
  grid-template-columns: 44px minmax(230px, 1fr);
  column-gap: var(--ag-space-5);
  align-items: stretch;
  min-width: 0;
}

.platform-flow__output-arrow {
  display: grid;
  place-items: center;
  min-width: 0;
}

.platform-flow__output-row--standard .platform-flow__output-arrow {
  color: var(--ag-brand);
}

.platform-flow__output-row--tailored .platform-flow__output-arrow {
  color: var(--ag-brand);
}

.platform-flow__agent-card {
  min-width: 0;
  padding: var(--ag-space-4) var(--ag-space-6);
  border-radius: var(--ag-radius-xl);
}

.platform-flow__agent-card--standard {
  background: var(--ag-sage-light);
  color: var(--ag-ink);
}

.platform-flow__agent-card--standard > span {
  display: block;
  text-align: center;
  color: var(--ag-brand);
  font-size: 14px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-compact);
}

.platform-flow__agent-card--standard h3 {
  margin-top: 2px;
  text-align: center;
  color: var(--ag-brand);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.platform-flow__agent-card--standard ul {
  display: grid;
  gap: 6px;
  margin-top: var(--ag-space-4);
}

.platform-flow__agent-card--standard li {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
  padding: 8px 12px;
  background: var(--ag-white);
  color: var(--ag-ink);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
  line-height: 1.35;
}

.platform-flow__agent-card--standard li > span {
  font-size: 16px;
}

.platform-flow__agent-card--tailored {
  display: grid;
  gap: var(--ag-space-6);
  align-content: center;
  background: var(--ag-brand-pale);
  color: var(--ag-ink);
}

.platform-flow__agent-card--tailored strong {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ag-brand);
  font-size: 15px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.platform-flow__agent-card--tailored strong > span {
  font-size: 18px;
}

.platform-flow__agent-card--tailored p {
  margin: 5px 0 0 27px;
  color: var(--ag-text-2);
  font-size: 13px;
  line-height: var(--ag-leading-compact);
}

@media (max-width: 1100px) {
  .platform-flow {
    grid-template-columns: minmax(210px, 0.85fr) 54px minmax(250px, 1fr) minmax(280px, 1.05fr);
    column-gap: var(--ag-space-3);
  }

  .platform-flow__node--data,
  .platform-flow__agent-card {
    padding: var(--ag-space-4);
  }

  .ag-body .platform-flow__node--core {
    padding: var(--ag-space-8) var(--ag-space-5) !important;
  }

  .platform-flow__connector span {
    font-size: 15px;
  }

  .platform-flow__output-row {
    grid-template-columns: 36px minmax(220px, 1fr);
    column-gap: var(--ag-space-3);
  }
}

@media (max-width: 900px) {
  .platform-flow {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .platform-flow__node--data,
  .platform-flow__agent-card {
    padding: var(--ag-space-6);
  }

  .ag-body .diagram.platform-diagram {
    margin-top: var(--ag-space-12) !important;
  }

  .ag-body .diagram.platform-diagram > .diagram__conclusion {
    margin-top: var(--ag-space-12) !important;
  }

  .ag-body .platform-flow__node--core {
    padding: var(--ag-space-8) var(--ag-space-6) !important;
  }

  .platform-flow__connector {
    padding-block: var(--ag-space-8);
  }

  .platform-flow__connector svg {
    transform: rotate(90deg);
  }

  .platform-flow__connector span {
    margin-top: var(--ag-space-2);
    font-size: 16px;
  }

  .platform-flow__list {
    gap: 5px;
  }

  .platform-flow__data-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--ag-space-6);
  }

  .platform-flow__outputs {
    gap: var(--ag-space-4);
  }

  .platform-flow__mobile-output-arrow {
    display: grid;
    min-height: 84px;
    place-items: center;
    color: var(--ag-brand);
  }

  .platform-flow__mobile-output-arrow svg {
    transform: rotate(90deg);
  }

  .platform-flow__output-row {
    grid-template-columns: 1fr;
  }

  .platform-flow__output-arrow {
    display: none;
  }

  .platform-flow__agent-card--tailored {
    min-height: 180px;
  }
}

@media (max-width: 620px) {
  .platform-flow__node--data,
  .platform-flow__agent-card {
    padding: var(--ag-space-5);
  }

  .ag-body .platform-flow__node--core {
    padding: 28px var(--ag-space-5) !important;
  }

  .platform-flow__list {
    grid-template-columns: 1fr;
  }

  .platform-flow__data-groups {
    grid-template-columns: 1fr;
  }

  .platform-flow__connector span {
    font-size: 15px;
  }
}

/* DAILY Worksでどう変わるか：3テーマを独立した背景面として見せる */
.change-suite__intro {
  padding-bottom: var(--ag-space-12);
}

.change-section {
  position: relative;
  padding-block: var(--ag-space-16) var(--ag-space-20);
}

.change-block > h3 {
  display: block;
  max-width: 820px;
  padding-left: var(--ag-space-4);
  border-left: 4px solid var(--ag-brand);
  color: var(--ag-ink);
  font-size: 32px;
  font-weight: var(--ag-weight-display);
  line-height: var(--ag-leading-section);
}

.change-block > p {
  max-width: 960px;
  margin-top: var(--ag-space-5);
  color: var(--ag-text-2);
  font-size: 18px;
  line-height: 1.85;
}

.change-block .diagram {
  margin-top: var(--ag-space-10);
}

@media (max-width: 900px) {
  .change-suite__intro {
    padding-bottom: var(--ag-space-8);
  }

  .ag-body .change-section {
    padding-block: var(--ag-space-12) var(--ag-space-16);
  }

  .change-block > h3 {
    font-size: 27px;
  }

  .change-block > p {
    font-size: 16px;
  }

}

/* DAILY Worksでどう変わるか：導入前／導入後の比較を3本 */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ag-space-6);
  align-items: stretch;
}

.governance-panel {
  padding: var(--ag-space-8);
}

.governance-panel--before {
  background: var(--ag-white);
}

.governance-panel--after {
  background: var(--ag-brand-pale);
}

.governance-label {
  color: var(--ag-brand);
  font-size: 16px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-compact);
}

.governance-panel--before .governance-label {
  color: var(--ag-signal);
}

.governance-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--ag-space-4);
}

.governance-list {
  display: grid;
  gap: var(--ag-space-3);
  margin-top: var(--ag-space-6)!important;
  list-style: none;
}

.governance-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ag-ink-soft);
  font-size: 16px;
  line-height: var(--ag-leading-compact);
}

.governance-panel--after .governance-list li {
  font-weight: var(--ag-weight-heading);
}

.governance-list li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--ag-brand);
  content: "";
}

.governance-panel--before .governance-list li::before {
  background: var(--ag-signal);
}

@media (max-width: 900px) {
  .governance-grid {
    grid-template-columns: 1fr;
  }

  .governance-panel {
    padding: var(--ag-space-6) var(--ag-space-5);
  }

}

/* AI格差の解消：導入前から、AIエージェントを業務へ組み込むまで */
.ai-gap-layout {
  display: grid;
  gap: var(--ag-space-8);
}

.ai-gap-stage {
  padding: var(--ag-space-6);
}

.ai-gap-stage--before {
  padding: var(--ag-space-8);
  /* background: var(--ag-sage-light); */
}

.ai-gap-group-label {
  font-size: 18px;
  font-weight: var(--ag-weight-strong);
  line-height: var(--ag-leading-heading);
}

.ai-gap-group-label--problem {
  color: var(--ag-signal);
}

.ai-gap-group-label--solution {
  color: var(--ag-brand);
}

.ai-gap-before__content {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: var(--ag-space-10);
  align-items: center;
  margin-top: var(--ag-space-6);
}

.ai-gap-before__content .ai-gap-image {
  margin-top: 0;
}

.ai-gap-stage__copy h4 {
  margin-top: 0;
}

.ai-gap-stage__copy p {
  margin-top: var(--ag-space-3);
  color: var(--ag-text-2);
  font-size: 15px;
  line-height: var(--ag-leading-body);
}

.ai-gap-solution {
  padding: var(--ag-space-8);
  background: var(--ag-brand-pale);
}

.ai-gap-solution__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ag-space-6);
  align-items: stretch;
  margin-top: var(--ag-space-6);
}

/* .ai-gap-stage--agents {
  background: var(--ag-white);
} */

.ai-gap-stage--workflow {
  background: var(--ag-brand);
  color: var(--ag-white);
}

.ai-gap-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--ag-space-5);
}

.ai-gap-stage--agents .ai-gap-image,
.ai-gap-stage--workflow .ai-gap-image {
  margin-top: 0;
}

.ai-gap-stage h4 {
  margin-top: var(--ag-space-5);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.ai-gap-stage--agents > p,
.ai-gap-stage--workflow > p {
  margin-top: var(--ag-space-3);
  color: var(--ag-text-1);
  font-size: 15px;
  line-height: var(--ag-leading-body);
}

.ai-gap-stage--workflow > p {
  color: var(--ag-line-strong);
}

@media (max-width: 900px) {
  .ai-gap-before__content,
  .ai-gap-solution__steps {
    grid-template-columns: 1fr;
  }

  .ai-gap-stage,
  .ai-gap-solution {
    padding: var(--ag-space-5);
  }
}

/* 費用対効果：画像ではなく、算定根拠を文字の階層で見せる */
.roi-panel {
  min-width: 0;
}

.roi-panel__title {
  margin-top: var(--ag-space-4);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.roi-list {
  margin-top: var(--ag-space-6) !important;
}

.roi-factors {
  margin-top: var(--ag-space-6);
}

.roi-factor {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--ag-space-4);
  align-items: baseline;
  border-bottom: 1px solid var(--ag-line-strong);
  padding-block: var(--ag-space-4);
}

.roi-factor:first-child {
  border-top: 1px solid var(--ag-line-strong);
}

.roi-factor span {
  color: var(--ag-text-2);
  font-size: 14px;
  font-weight: var(--ag-weight-heading);
}

.roi-factor strong {
  color: var(--ag-ink);
  font-size: 16px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-compact);
}

.roi-result {
  margin-top: var(--ag-space-6);
  padding: var(--ag-space-5) var(--ag-space-6);
  background: var(--ag-brand);
  color: var(--ag-white);
}

.roi-result__label {
  display: block;
  color: var(--ag-brand-tint);
  font-size: 14px;
  font-weight: var(--ag-weight-strong);
}

.roi-result strong {
  display: block;
  margin-top: var(--ag-space-2);
  font-size: 20px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

@media (max-width: 520px) {
  .roi-factor {
    grid-template-columns: 1fr;
    gap: var(--ag-space-1);
  }
}

/* --------------------------------------------------------------------------
   トップ：AXプラットフォームの概要
   -------------------------------------------------------------------------- */

.is-core li {
  color: var(--ag-line-strong);
}

.is-core li::before {
  background: var(--ag-brand-tint);
}

/* --------------------------------------------------------------------------
   トップ：DAILY Worksでどう変わるか（導入前→DAILY Works→導入後）
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   トップ：ノーススターラボの強み（濃色面）
   -------------------------------------------------------------------------- */

body.video-modal-open {
  overflow: hidden;
}

.video-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--ag-space-5);
  color: var(--ag-ink);
}

.video-modal[hidden] {
  display: none;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 18, 18, 0.72);
  cursor: pointer;
}

.video-modal__panel {
  position: relative;
  overflow: hidden;
  width: min(960px, 100%);
  border: 1px solid var(--ag-line-strong);
  border-radius: var(--ag-radius-md);
  background: var(--ag-white);
}

.video-modal__header {
  display: flex;
  gap: var(--ag-space-5);
  align-items: center;
  justify-content: space-between;
  padding: var(--ag-space-4) var(--ag-space-5);
  background: var(--ag-white);
}

.video-modal__header h2 {
  font-size: 18px;
  font-weight: var(--ag-weight-heading);
  line-height: var(--ag-leading-heading);
}

.video-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 50%;
  background: var(--ag-paper);
  color: var(--ag-ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.video-modal__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: var(--ag-ink);
}

.video-modal__notice {
  margin: 0;
  padding: var(--ag-space-5);
  color: var(--ag-white);
  text-align: center;
}

.video-modal__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
