/* =========================================================
   Home CSS
   - HOME固有のレイアウトとビジュアル表現
   - v9: Hero slideshow対応 / 行ごとの蛍光ペン / visualカードサイズ統一
========================================================= */

/* =========================
   Home header override
========================= */
.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  right: clamp(26px, 3vw, 48px);
  bottom: clamp(26px, 3vw, 40px);
  z-index: 4;
  width: 1px;
  height: clamp(88px, 11vw, 132px);
  background: rgba(255, 255, 255, 0.52);
  transform-origin: top center;
  animation: heroScrollLine 1.8s ease-in-out infinite;
}

.hero::after {
  content: "SCROLL";
  position: absolute;
  right: clamp(12px, 1.8vw, 24px);
  bottom: clamp(170px, 16vw, 224px);
  z-index: 4;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-family-en);
  font-size: 1.2rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

@keyframes heroScrollLine {
  0% {
    transform: scaleY(0.24);
    opacity: 0.28;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.24);
    opacity: 0.28;
  }
}

.hero__media {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: #c7d4d8;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.72) saturate(0.94);
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.16) 0%, rgba(17, 17, 17, 0.42) 100%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.4) 0%, rgba(17, 17, 17, 0.16) 42%, transparent 76%);
}

.hero__media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.04), rgba(17, 17, 17, 0.1));
}

.hero__media-placeholder {
  position: absolute;
  right: clamp(24px, 3vw, 42px);
  bottom: clamp(28px, 4vw, 42px);
  z-index: 3;
  display: grid;
  gap: 0.6rem;
  justify-items: end;
  max-width: 34rem;
  text-align: right;
}

.hero__media-label,
.hero__media-caption {
  color: rgba(255, 255, 255, 0.88);
}

.hero__media-label {
  font-family: var(--font-family-en);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

.hero__media-caption {
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.hero__inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
}

.hero__content {
  max-width: none;
  display: grid;
  gap: 1.4rem;
  padding-bottom: clamp(54px, 7vw, 92px);
}

.hero__eyebrow {
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-family-en);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.hero__title {
  max-width: none;
  white-space: nowrap;
  color: var(--color-text-on-dark);
  font-size: clamp(4rem, 4.5vw, 6.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero__lead {
  max-width: none;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.5rem, 1.36rem + 0.08vw, 1.72rem);
  line-height: 1.8;
}

.hero__actions {
  display: none;
}

/* =========================
   Intro / About
========================= */
.home-intro {
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 128px);
  padding-bottom: clamp(72px, 8vw, 120px);
}

.home-intro .bg-word {
  top: 1.2rem;
  left: clamp(12px, 2vw, 32px);
  color: rgba(255, 255, 255, 0.62);
  z-index: 0;
}

.home-intro__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.52fr);
  gap: clamp(56px, 6vw, 112px);
  align-items: start;
}

.home-intro__body,
.home-intro__aside {
  position: relative;
  z-index: 1;
}

.home-intro__statement {
  max-width: 82rem;
}

.home-intro__statement p {
  font-size: clamp(1.65rem, 1.55rem + 0.12vw, 1.85rem);
  line-height: 2;
}

.home-intro__aside {
  position: relative;
  padding-top: clamp(12px, 1.8vw, 32px);
  padding-right: clamp(64px, 6vw, 132px);
  display: flex;
  justify-content: flex-end;
}

.home-intro__aside::after {
  display: none;
}

.home-intro__aside-copy {
  display: flex;
  gap: 0.18em;
}

.home-intro__copy-line {
  position: relative;
  display: none;
  /* display: inline-block; */
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(3rem, 2.2rem + 1vw, 4.8rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.34;
  letter-spacing: 0.06em;
  z-index: 1;
}

.home-intro__copy-line::before {
  content: "";
  position: absolute;
  top: 0.2em;
  bottom: 0.22em;
  right: 0.08em;
  width: 0.72em;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 236, 102, 0.78), rgba(255, 244, 168, 0.68));
  border-radius: 0.18em;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top center;
}

.home-intro__aside.is-visible .home-intro__copy-line::before {
  animation: markerGrow 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.home-intro__aside.is-visible .home-intro__copy-line:nth-child(2)::before {
  animation-delay: 0.12s;
}

.home-intro__aside.is-visible .home-intro__copy-line:nth-child(3)::before {
  animation-delay: 0.24s;
}

@keyframes markerGrow {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes markerGrowHorizontal {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

.home-intro__principles {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.home-intro__principles .feature-card {
  position: relative;
  isolation: isolate;
  min-height: 22rem;
  overflow: hidden;
  gap: 1.2rem;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(17, 17, 17, 0.08);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
}

.home-intro__principles .feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-brand);
}

.home-intro__principles .feature-card::after {
  content: "";
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 129, 204, 0.08), transparent 70%);
  opacity: 0.8;
}

.home-intro__principles .feature-card > * {
  position: relative;
  z-index: 1;
}

.home-intro__principles .feature-card__number {
  font-family: var(--font-family-en);
  font-size: clamp(3.2rem, 4.2vw, 4.8rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(17, 17, 17, 0.14);
}

.home-intro__principles .feature-card:nth-child(1) .feature-card__number,
.home-intro__principles .feature-card:nth-child(3) .feature-card__number {
  color: rgba(230, 0, 19, 0.2);
}

.home-intro__principles .feature-card:nth-child(2) .feature-card__number,
.home-intro__principles .feature-card:nth-child(4) .feature-card__number {
  color: rgba(0, 129, 204, 0.24);
}

.home-intro__principles .feature-card__title {
  font-family: var(--font-family-en);
  font-size: clamp(2.4rem, 2rem + 0.48vw, 3.2rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.home-intro__principles .feature-card__text {
  max-width: 36rem;
}

/* =========================
   Visual Slider
========================= */
.home-visuals {
  padding-top: 0;
  padding-bottom: clamp(72px, 7vw, 120px);
}

.home-visuals .site-container,
.home-visuals .site-container--wide {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.visual-slider {
  position: relative;
}

.visual-slider__viewport {
  overflow: hidden;
}

.visual-slider__track {
  display: flex;
  gap: clamp(14px, 2vw, 24px);
  width: max-content;
  will-change: transform;
}

.visual-slider__item {
  flex: 0 0 clamp(320px, 30vw, 480px);
}

.home-visual-card {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: unset;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(145deg, #bfd2d4 0%, #97b0a1 45%, #6f8874 100%);
  box-shadow: var(--shadow-md);
}

.home-visual-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.02) 0%, rgba(17, 17, 17, 0.22) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 28%);
}

.home-visual-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.home-visual-card__placeholder {
  position: absolute;
  left: 1.6rem;
  bottom: 1.4rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.94);
  font-family: var(--font-family-en);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
}

/* =========================
   Section label accent
========================= */
.home-intro .section-heading__eyebrow {
  color: var(--color-brand-blue);
  z-index: 1;
}

.home-issues .section-heading__eyebrow {
  color: var(--color-brand-red);
}

.home-pages .section-heading__eyebrow {
  color: var(--color-brand-blue);
}

/* =========================
   Issues
========================= */
.home-issues {
  padding-top: clamp(72px, 7vw, 120px);
  padding-bottom: clamp(72px, 7vw, 112px);
}

.home-issues .section-heading {
  max-width: 74rem;
  margin-inline: auto;
  text-align: center;
}

.home-issues .section-heading__lead {
  max-width: 58rem;
  margin-inline: auto;
}

.home-issues .issues__accordion {
  max-width: 110rem;
  margin-inline: auto;
}

/* =========================
   Pages
========================= */
.home-pages {
  overflow: hidden;
  padding-top: clamp(72px, 8vw, 128px);
  padding-bottom: clamp(72px, 8vw, 128px);
}

.home-pages .bg-word {
  top: 3.2rem;
  right: clamp(12px, 2vw, 28px);
  left: auto;
  color: rgba(255, 255, 255, 0.58);
}

.page-links__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.page-link-card {
  min-height: 22rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 248, 1));
}

/* =========================
   INFORMATION
========================= */

.information-card {
  min-height: 22rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 250, 248, 1));
  margin-bottom: 10px;
}

.information__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}


/* =========================
   Responsive
========================= */
@media (max-width: 1199px) {
  .home-intro__layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .home-intro__aside {
    justify-content: flex-start;
    padding-top: 0;
    padding-right: 0;
  }

  .home-intro__aside-copy {
    display: grid;
    gap: 0.6rem;
  }

  .home-intro__copy-line {
    writing-mode: horizontal-tb;
    font-size: clamp(2.2rem, 1.8rem + 0.5vw, 3rem);
    letter-spacing: 0.06em;
    line-height: 1.8;
  }

  .home-intro__copy-line::before {
    top: auto;
    bottom: 0.12em;
    left: 0.08em;
    right: 0.08em;
    width: auto;
    height: 0.48em;
    transform: scaleX(0);
    transform-origin: left center;
  }

  .home-intro__aside.is-visible .home-intro__copy-line::before {
    animation: markerGrowHorizontal 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }

  .home-intro__aside.is-visible .home-intro__copy-line:nth-child(2)::before {
    animation-delay: 0.12s;
  }

  .home-intro__aside.is-visible .home-intro__copy-line:nth-child(3)::before {
    animation-delay: 0.24s;
  }

  .page-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .information__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .hero::before {
    right: 28px;
    bottom: 28px;
    height: 96px;
  }

  .hero::after {
    right: 14px;
    bottom: 140px;
  }

  .hero__media {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero__title {
    font-size: clamp(3.4rem, 6vw, 4.8rem);
  }

  .hero__lead {
    max-width: 48rem;
  }

  .home-intro,
  .home-issues,
  .home-pages {
    padding-top: 7.2rem;
    padding-bottom: 7.2rem;
  }

  .home-intro__principles {
    grid-template-columns: 1fr;
  }

  .visual-slider__item {
    flex-basis: clamp(280px, 68vw, 420px);
  }

  .home-visual-card {
    aspect-ratio: 4 / 3;
    min-height: unset;
  }
}

@media (max-width: 767px) {
  .page-home .site-header {
    background: rgba(255, 255, 255, 0.96);
  }

  .hero::before {
    right: 20px;
    bottom: 20px;
    height: 80px;
  }

  .hero::after {
    right: 8px;
    bottom: 116px;
    font-size: 1.1rem;
  }

  .hero__media {
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero__media-placeholder {
    right: 1.6rem;
    bottom: 1.6rem;
    max-width: 22rem;
  }

  .hero__content {
    gap: 1.2rem;
    padding-bottom: 4.2rem;
  }

  .hero__title {
    font-size: clamp(2.3rem, 7.2vw, 3.4rem);
    line-height: 1.12;
    white-space: normal;
  }

  .hero__lead {
    font-size: 1.35rem;
    line-height: 1.8;
  }

  .home-intro .bg-word,
  .home-pages .bg-word {
    top: 0.4rem;
  }

  .home-intro__statement p {
    font-size: 1.55rem;
    line-height: 1.9;
  }

  .visual-slider__item {
    flex-basis: 86vw;
  }

  .home-visual-card {
    aspect-ratio: 4 / 3;
    min-height: unset;
  }

  .page-links__grid {
    grid-template-columns: 1fr;
  }

  .information__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-intro__aside.is-visible .home-intro__copy-line::before,
  .hero::before,
  .hero__slide {
    animation: none;
    transition: none;
  }

  .visual-slider__track,
  .hero .button--primary,
  .hero .button--secondary {
    transition: none;
  }
}
