/* Shared home / AI hero. Content sets a minimum height, never a clipped height. */
:where(.home, .ai-service) { --hero-header-height: 75px; --hero-paper: #f7fbfa; }
.ai-service:has(.video-hero) main { padding-top: 0; }
.video-hero,
.home #main-visual.video-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: var(--hero-header-height) 0 0;
  overflow: clip;
  background: var(--hero-paper);
  color: #1f2937;
  text-align: left;
}
.hero-media, .hero-poster, .hero-media video, .hero-poster img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero-media { z-index: -1; pointer-events: none; overflow: hidden; }
.hero-media video, .hero-poster img { object-fit: cover; object-position: right center; }
.hero-media video { opacity: 0; transition: opacity 700ms ease; }
.is-video-visible .hero-media video { opacity: 1; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f7fbfa 0, rgba(247,251,250,.94) 75px, rgba(247,251,250,0) 190px), linear-gradient(90deg, #f7fbfa 0%, rgba(247,251,250,.97) 25%, rgba(247,251,250,.78) 43%, rgba(247,251,250,0) 64%);
}
.video-hero .hero-body {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: clamp(36px, 6svh, 88px) clamp(24px, 4vw, 48px);
  box-sizing: border-box;
}
.video-hero .hero-copy { width: 58%; max-width: 720px; }
.video-hero .hero-label { margin: 0 0 24px; color: #37685f; font-size: clamp(.75rem, 1vw, .9rem); font-weight: 500; line-height: 1.9; letter-spacing: .045em; }
.video-hero h1, .home #main-visual.video-hero h1 {
  margin: 0 0 32px;
  color: #163d35;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.04em;
  text-align: left;
}
.video-hero h1 span { display: block; }
.video-hero .mv-award-proof { display: block; width: min(330px, 90%); margin: 0 0 30px; }
.video-hero .mv-award-logo { width: 100%; height: auto; }
.video-hero .btn { min-height: 54px; padding: 15px 25px; border-radius: 4px; font-size: .95rem; font-weight: 600; text-align: center; line-height: 1.6; white-space: normal; }
.video-hero .btn-primary { background: #047857; color: white; }
.video-hero .btn-primary:hover { background: #065f46; }
.video-hero .mv-cta-button { min-width: 270px; }
.hero-video-toggle {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 3vw, 48px);
  bottom: 24px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(4,120,87,.23);
  border-radius: 24px;
  background: rgba(247,251,250,.9);
  color: #305d52;
  font: 500 .75rem/1.4 "Noto Sans JP", sans-serif;
  cursor: pointer;
}
.hero-video-toggle[hidden] { display: none; }
.video-hero :where(a, button):focus-visible { outline: 3px solid #047857; outline-offset: 5px; }
.hero-art-space { display: contents; }
.video-hero .breadcrumb-wrap { position: relative; z-index: 2; width: 100%; max-width: 1240px; padding: 18px clamp(24px, 4vw, 48px) 0; margin-inline: auto; box-sizing: border-box; }
.video-hero .breadcrumb { margin: 0; }
.ai-service .video-hero h1 { font-size: clamp(1.8rem, 2.75vw, 2.85rem); line-height: 1.6; margin-bottom: 24px; }
.ai-service .video-hero .hero-copy { width: 58%; max-width: 740px; }
.ai-service .video-hero .page-lead { max-width: 32em; margin: 0; font-size: 1rem; line-height: 2; text-align: left; color: #4c645d; }
.ai-service .video-hero .ai-actions { justify-content: flex-start; margin-top: 30px; gap: 12px; }
.ai-service .video-hero .ai-caption { text-align: left; font-size: .78rem; }
@media (max-width: 1024px) {
  :where(.home, .ai-service) { --hero-header-height: 50px; }
  .video-hero .hero-body { padding-inline: 32px; }
}
@media (min-width: 768px) and (max-width: 1100px) and (orientation: landscape) {
  .hero-media::after {
    background: linear-gradient(180deg, #f7fbfa 0, rgba(247,251,250,.94) 75px, rgba(247,251,250,0) 190px), linear-gradient(90deg, #f7fbfa 0%, #f7fbfa 35%, rgba(247,251,250,.97) 50%, rgba(247,251,250,.65) 58%, rgba(247,251,250,0) 70%);
  }
}
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
  .video-hero .hero-body { flex-direction: column; align-items: flex-start; padding: 0 24px 36px; }
  .hero-art-space { display: flex; flex: 1; width: 100%; min-height: clamp(190px, 32svh, 410px); align-items: flex-end; justify-content: flex-end; padding-bottom: 18px; box-sizing: border-box; }
  .video-hero .hero-copy, .ai-service .video-hero .hero-copy { width: 100%; max-width: 640px; }
  .video-hero .hero-label { margin-bottom: 14px; font-size: .75rem; letter-spacing: .015em; }
  .video-hero h1, .home #main-visual.video-hero h1 { font-size: clamp(1.65rem, 6.3vw, 2.75rem); margin-bottom: 22px; line-height: 1.55; }
  .video-hero .mv-award-proof { width: min(285px, 85%); margin-bottom: 24px; }
  .video-hero .mv-cta-button { width: 100%; max-width: 340px; min-width: 0; }
  .hero-media::after { background: linear-gradient(180deg, #f7fbfa 0%, rgba(247,251,250,0) 18%, rgba(247,251,250,.84) 44%, #f7fbfa 56%); }
  .hero-media video, .hero-poster img { object-position: center top; }
  .hero-video-toggle { position: static; min-height: 44px; }
  .video-hero .breadcrumb-wrap { padding: 14px 24px 0; }
  .video-hero .breadcrumbs { font-size: .7rem; }
  .ai-service .video-hero .hero-art-space { min-height: clamp(150px, 25svh, 350px); }
  .ai-service .video-hero h1 { font-size: clamp(1.5rem, 5.7vw, 2.5rem); }
  .ai-service .video-hero .page-lead { font-size: .9rem; line-height: 1.9; }
  .ai-service .video-hero .ai-actions { flex-direction: row; align-items: stretch; margin-top: 24px; }
  .ai-service .video-hero .ai-actions .btn { flex: 1 1 220px; max-width: 340px; }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .ai-service .hero-media::after { background: linear-gradient(180deg, #f7fbfa 0%, rgba(247,251,250,0) 18%, rgba(247,251,250,.1) 43%, rgba(247,251,250,.9) 61%, #f7fbfa 68%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media video { display: none; transition: none; }
  .hero-video-toggle { display: none; }
}
/* The home film has its own frame so every business object remains legible. */
.home-business-hero .hero-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: 24px; max-width: 1600px; }
.home-business-hero .hero-copy { width: 100%; max-width: none; }
.home-business-hero h1 span { text-wrap: balance; }
.home-business-hero .hero-visual { min-width: 0; }
.home-business-hero .hero-scene { position: relative; isolation: isolate; width: 100%; aspect-ratio: 16 / 9; }
.home-business-hero .hero-media { z-index: 0; }
.home-business-hero .hero-media::after { background: none; }
.home-business-hero .hero-media video, .home-business-hero .hero-poster img { object-position: center; }
.home-business-hero .hero-media { mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.home-business-hero .hero-media video { transition: opacity 180ms ease; }
.home-business-hero[data-video-state="complete"] video { transition: none; }
.hero-consultation-note { margin: 16px 0 0; color: #49685f; font-size: .8rem; line-height: 1.85; }
@media (min-width: 768px) and (max-width: 1100px) and (orientation: landscape) {
  .home-business-hero .hero-body { gap: 18px; padding-inline: 28px; }
  .home #main-visual.home-business-hero h1 { font-size: clamp(1.8rem, 3.1vw, 2.4rem); }
}
@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
  .home-business-hero .hero-body { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 28px; padding-top: 12px; }
  .home-business-hero .hero-visual { order: -1; align-self: center; width: calc(100% + 32px); max-width: 640px; margin-inline: -16px; }
  .home-business-hero .hero-scene { aspect-ratio: 4 / 3; }
  .home-business-hero .hero-copy { max-width: 640px; width: 100%; margin-inline: auto; }
  .hero-consultation-note { margin-top: 12px; font-size: .75rem; }
}
/* Concrete work scenes pair each service with the experience behind it. */
.home #concept .concept-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(36px, 5vw, 76px); align-items: center; }
.home #concept .concept-text { padding-top: 0; order: 0; }
.home #concept .concept-text::before { display: none; }
.home #concept .concept-text .concept-eyebrow { color: #047857; font-size: .72rem; font-weight: 600; letter-spacing: .16em; margin-bottom: 24px; }
.home #concept .concept-text h2 { font-size: clamp(1.65rem, 2.1vw, 2.15rem); }
.home #concept .concept-text p + p { margin-top: 20px; }
.concept-contact { display: inline-flex; align-items: center; gap: 18px; margin-top: 26px; padding-block: 12px; border-bottom: 1px solid #047857; color: #065f46; font-size: .9rem; font-weight: 600; line-height: 1.8; }
.concept-experiences { min-width: 0; }
.concept-experience { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 18px; padding-block: 22px; color: #163d35; text-decoration: none; }
.concept-experience + .concept-experience { border-top: 1px solid #d8e5df; }
.concept-experience img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.concept-category { font-size: .68rem; letter-spacing: .07em; color: #426d5e; }
.concept-experience h3 { font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.6; margin: 7px 0 10px; font-weight: 600; letter-spacing: -.02em; }
.concept-experience p { font-size: .79rem; line-height: 1.9; margin: 0; color: #52665e; }
.concept-experience .concept-proof { margin-top: 7px; color: #315c4e; font-size: .73rem; }
.concept-link-hint { display: inline-block; margin-top: 12px; font-size: .72rem; color: #047857; }
.concept-experience:hover h3, .concept-contact:hover { text-decoration: underline; text-underline-offset: 5px; }
#concept a:focus-visible { outline: 3px solid #047857; outline-offset: 5px; }
@media (max-width: 900px) {
  .home #concept .concept-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home #concept .concept-text p { max-width: none; }
  .concept-experiences { width: 100%; max-width: 680px; margin-inline: auto; }
}
@media (max-width: 480px) {
  .concept-experience { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; padding-block: 24px; }
  .concept-experience h3 { font-size: 1rem; }
  .concept-experience p { font-size: .76rem; }
  .concept-experience .concept-proof { font-size: .7rem; }
}
@media (max-width: 380px) {
  .video-hero .hero-body { padding-inline: 20px; }
  .concept-experience { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .concept-experience img { max-width: 230px; margin-inline: auto; }
}
