/* ==========================================================================
   Pages : ページ固有のレイアウト（汎用化できるものは components.css へ）
   ========================================================================== */

/* ---- HOME : Hero ----------------------------------------------------------
   画面いっぱいの特大コピー。右側に斜めに切った建築の画像を置き、
   鋭い斜めラインが文字を横切る。下辺は斜めにカットして次のセクションへ。 */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header-h));
  padding-top: clamp(5rem, 3rem + 8vw, 9rem);
  padding-bottom: calc(var(--edge-h) + clamp(3rem, 2rem + 4vw, 5.5rem));
}

.hero__visual {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 100%;
  overflow: hidden;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  transform-origin: 50% 15%; /* 拡大時に山頂が切れないよう、上側を基準にする */
}

/* 文字を読みやすくするための暗幕 */
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 23, 36, 0.35) 0%, rgba(14, 23, 36, 0.85) 75%),
    linear-gradient(100deg, rgba(14, 23, 36, 0.9) 0%, rgba(14, 23, 36, 0.25) 70%);
}

/* スマートフォン：上部に富士山の山頂を見せ、文字は下半分に置く */
@media (max-width: 959px) {
  .hero {
    padding-top: max(13rem, 30svh);
  }

  .hero__visual {
    inset: 0 0 auto 0;
    height: 68%;
  }

  .hero__visual img {
    object-position: 58% 15%;
  }

  .hero__visual::after {
    background: linear-gradient(180deg, rgba(14, 23, 36, 0.05) 0%, rgba(14, 23, 36, 0.2) 40%, rgba(14, 23, 36, 0.8) 72%, var(--c-ink) 100%);
  }
}

@media (min-width: 960px) {
  .hero__visual {
    width: 66%;
    clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  }

  .hero__visual::after {
    background: linear-gradient(100deg, rgba(14, 23, 36, 0.92) 8%, rgba(14, 23, 36, 0.35) 55%, rgba(14, 23, 36, 0.05) 100%);
  }
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 4rem);
}

.hero__title {
  font-size: clamp(2.75rem, 0.5rem + 7.6vw, 8.75rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  word-break: keep-all;
  text-wrap: initial;
}

/* 1行ずつマスクの下からせり上がる */
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero__line > span {
  display: inline-block;
}

.hero__foot {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 960px) {
  .hero__foot {
    grid-template-columns: minmax(0, 32em) auto;
    justify-content: space-between;
    align-items: end;
  }
}

.hero__lead {
  max-width: 32em;
  font-size: var(--fs-md);
  line-height: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__line > span {
    animation: hero-line 1.25s var(--ease-out) both;
  }

  .hero__line:nth-child(2) > span {
    animation-delay: 0.16s;
  }

  .hero__foot {
    animation: hero-fade 1s var(--ease) 0.75s both;
  }

  .hero__visual {
    animation: hero-visual 1.6s var(--ease-sharp) both;
  }
}

@keyframes hero-line {
  from {
    transform: translateY(105%) skewY(7deg);
    transform-origin: left top;
  }
  to {
    transform: translateY(0) skewY(0);
  }
}

@keyframes hero-fade {
  from { opacity: 0; translate: 0 1rem; }
  to { opacity: 1; translate: 0 0; }
}

/* 右から斜めに切り込んで現れる */
@keyframes hero-visual {
  from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 135% 100%); }
}

@media (max-width: 959px) {
  @keyframes hero-visual {
    from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 135% 100%); }
    to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  }
}

/* ---- HOME : Encyclopedia feature ---- */
.feature-split {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 1200px) {
  .feature-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--space-8);
    align-items: start;
  }
}

/* ---- HOME : Brand message ---- */
.brand-message {
  display: grid;
  gap: var(--space-6);
}

.brand-message__text {
  max-width: 34em;
  font-family: var(--ff-serif);
  font-size: var(--fs-md);
  line-height: 2.2;
  color: var(--text);
}

.brand-message__text p + p {
  margin-top: 1.4em;
}

.brand-message__sign {
  color: var(--heading);
  font-family: var(--ff-serif);
  letter-spacing: 0.32em;
}

/* ---- Article（プライバシーポリシーなどの本文ページ） ---- */
.article {
  max-width: 44rem;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.article__body {
  margin-top: var(--space-7);
}

.article__body > * + * {
  margin-top: 1.4em;
}

.article__body h2 {
  margin-top: 2.4em;
  font-size: var(--fs-xl);
}

.article__body figure {
  margin-block: var(--space-7);
}

.article__body figcaption {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.placeholder-figure {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--c-ivory-deep);
  color: var(--c-charcoal-soft);
  font-size: var(--fs-sm);
}

.page-hero__title--article {
  font-size: var(--fs-2xl);
}
