@charset "UTF-8";

/* =========================================================
   TOP ページ固有
   ========================================================= */

/* =========================================================
   A ローディング（TOPのみ。JSが動くときだけ出す）
   時刻は body に .is-loaded が付いた瞬間を 0ms とした transition-delay
   ========================================================= */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: var(--color-loading);
  /* ロゴの高さ。幕の高さとせり上がる距離も、この値に合わせて動く */
  --loading-logo-h: 72px;
  opacity: 1;
  transition:
    opacity 500ms cubic-bezier(0.4, 0.4, 0, 1) 1000ms,
    z-index 500ms cubic-bezier(0.4, 0.4, 0, 1) 1000ms;
}

.is-js .loading {
  display: flex;
}

.loading.is-done {
  pointer-events: none;
}

body.is-loaded .loading {
  opacity: 0;
  z-index: -3;
}

.loading__inner {
  position: relative;
  height: var(--loading-logo-h);
  overflow: hidden;
}

/* 200ms：ロゴがせり上がって現れる */
.loading__logo {
  width: auto;
  height: var(--loading-logo-h);
  opacity: 0;
  translate: 0 var(--loading-logo-h);
  transition:
    opacity 1000ms cubic-bezier(0.19, 1, 0.22, 1) 200ms,
    translate 1000ms cubic-bezier(0.19, 1, 0.22, 1) 200ms;
}

body.is-loaded .loading__logo {
  opacity: 1;
  translate: 0 0;
}

/* 1400ms：幕が下からせり上がり、ロゴを覆い隠す */
.loading__curtain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--loading-logo-h);
  background-color: var(--color-loading);
  translate: 0 var(--loading-logo-h);
  transition: translate 1000ms cubic-bezier(0.19, 1, 0.22, 1) 1400ms;
}

body.is-loaded .loading__curtain {
  translate: 0 0;
}

@media (max-width: 540px) {
  .loading {
    --loading-logo-h: 48px;
  }
}

/* 動きを減らす設定のときは出さない */
@media (prefers-reduced-motion: reduce) {
  .is-js .loading {
    display: none;
  }
}

/* ===== ① FV ===== */
.p-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 925px;
  overflow: hidden;
  background-color: var(--color-navy);
  color: var(--color-bg-soft);
}

.p-hero__bg {
  position: absolute;
  inset: 0;
}

.p-hero__bg-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 75% center;
}

/* 写真の上に濃紺 70% */
.p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: var(--color-navy);
  opacity: 0.7;
}

/* 下端 160px を地色に溶かす */
.p-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 160px;
  background: linear-gradient(to top, var(--color-navy) 0%, transparent 100%);
}

.p-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gutter);
  text-align: center;
}

.p-hero__heading-line {
  overflow: hidden;
}

.p-hero__heading-img {
  width: 806px;
}

.p-hero__tagline {
  margin-top: 32px;
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.p-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 120px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  translate: -50% 0;
}

.p-hero__scroll-text {
  font-family: var(--font-en);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.p-hero__scroll-icon {
  display: block;
  width: 32px;
  height: 32px;
}

@media (max-width: 1140px) {
  .p-hero__heading-img {
    width: 640px;
  }
}

@media (max-width: 840px) {
  .p-hero {
    height: 100vh;
    height: 100svh;
    min-height: 560px;
  }

  .p-hero__heading-img {
    width: 480px;
  }

  .p-hero__tagline {
    font-size: 24px;
  }

  .p-hero__scroll {
    bottom: 64px;
  }
}

@media (max-width: 540px) {
  .p-hero__bg-img {
    object-position: right center;
  }

  .p-hero__heading-img {
    width: 333px;
  }

  .p-hero__tagline {
    margin-top: 20px;
    font-size: 18px;
  }

  .p-hero__scroll {
    bottom: 40px;
  }
}

/* ===== ② MESSAGE ===== */
.p-message {
  padding: 240px 0 200px;
}

.p-message__inner {
  display: grid;
  grid-template-columns: 56% 1fr;
  gap: 48px;
  align-items: start;
}

.p-message__heading {
  font-family: var(--font-mincho);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.p-message__heading-line {
  display: block;
  overflow: hidden;
}

.p-message__heading-text {
  display: block;
}

.p-message__body {
  padding-top: 16px;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: justify;
}

@media (max-width: 1140px) {
  .p-message__inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .p-message__heading {
    font-size: 56px;
  }

  .p-message__body {
    padding-top: 0;
    padding-left: 32%;
  }
}

@media (max-width: 840px) {
  .p-message {
    padding: 160px 0 120px;
  }

  .p-message__heading {
    font-size: 48px;
  }

  .p-message__body {
    padding-left: 0;
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .p-message {
    padding: 64px 0 40px;
  }

  .p-message__inner {
    gap: 40px;
  }

  /* 指定は 32px。12字×32px が幅 375px の画面に収まらないため、狭い画面だけ幅に合わせて縮める */
  .p-message__heading {
    font-size: min(
      32px,
      calc((100vw - 48px) / 12.4)
    );
  }

  .p-message__body {
    font-size: 14px;
  }
}
