@charset "UTF-8";

/* =========================================================
   TOPページ
   ========================================================= */

/* ---------- FV：固定した写真 ---------- */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: 100vh;
  border: var(--frame) solid var(--color-base);
  border-radius: 24px;
}

.hero__slider {
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: relative;
  width: 100%;
  height: calc(100vh - 0.625rem);
  max-height: 67.5rem;
}

.hero__slide img {
  position: absolute;
  inset: 0;
}

/* ---------- FV：縦書きのキャッチ（写真の外にあり、ページと一緒に流れる） ---------- */
.hero-copy {
  position: absolute;
  top: 56%;
  left: 0;
  z-index: 5;
  width: 100%;
  transform: translateY(-50%);
}

.hero-copy__title {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  padding-left: 5.7142857143vw;
  color: var(--color-base);
  font-family: var(--font-mincho);
  font-feature-settings: "palt" 1, "liga" 1;
  font-size: 4rem;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-copy__col {
  display: flex;
  writing-mode: vertical-rl;
}

/* 2行目は少し下げて、行の間をあける */
.hero-copy__col:nth-child(2) {
  margin-right: 1.4375rem;
  padding-top: 3.375rem;
}

/* 1文字ずつ表示（--char は文字の番号。main.js が is-shown を付ける） */
.hero-copy__col span {
  display: inline-block;
  opacity: var(--shown, 0);
  letter-spacing: -0.05em;
  transition: opacity 1s var(--ease-in-out);
  transition-delay: calc(0.12s * var(--char));
}

.hero-copy__title.is-shown {
  --shown: 1;
}

/* 2回目以降の表示では演出しない */
.hero-copy__title.is-instant .hero-copy__col span {
  transition: none;
}

@media (width < 750px) {
  .hero-copy {
    top: 50%;
  }

  .hero-copy__title {
    padding-top: 1.5625rem;
    padding-left: 2rem;
    font-size: 2.75rem;
  }

  .hero-copy__col:nth-child(2) {
    margin-right: 0.4375rem;
    padding-top: 2.375rem;
  }
}

/* ---------- ごあいさつの間だけ写真にかける色の膜（main.js が is-veiled を付ける） ---------- */
body::after {
  content: "";
  position: fixed;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 2;
  width: calc(100% - 1.25rem);
  height: calc(100vh - 1.25rem);
  border-radius: 15px;
  background: rgba(61, 133, 198, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s;
}

body.is-veiled::after {
  opacity: 1;
}

/* 額縁の下辺 */
.frame-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  height: var(--frame);
  background-color: var(--color-base);
}

/* ---------- ごあいさつ ---------- */
.greeting {
  --corner: 1.25rem;
  position: relative;
  z-index: 10;
  margin-top: 100vh;
  padding: 8.75rem 0 13.75rem;
  color: var(--color-base);
}

/* 下端の左右の内側の角丸（下の白い面につなぐ） */
.greeting::before,
.greeting::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: var(--corner);
  height: var(--corner);
}

.greeting::before {
  left: 0;
  background: radial-gradient(
    circle var(--corner) at 100% 0%,
    transparent 98%,
    #fff 100%
  );
}

.greeting::after {
  right: 0;
  background: radial-gradient(
    circle var(--corner) at 0% 0%,
    transparent 98%,
    #fff 100%
  );
}

.greeting__action {
  margin-top: 5rem;
}

@media (width < 750px) {
  .greeting {
    --corner: 0.625rem;
    padding: 5.1875rem 0.5rem 6rem;
  }

  .greeting .heading {
    margin-bottom: 1.875rem;
  }

  .greeting .heading__ja {
    letter-spacing: -0.05em;
  }

  .greeting__action {
    margin-top: 1.875rem;
  }
}

/* ---------- ABOUT US（写真とカードを左右交互に） ---------- */
.intro {
  padding: 10rem 0 9.1875rem;
  background-color: var(--color-base);
}

.intro__lead {
  display: grid;
  grid-template-columns: 562fr 607fr;
  align-items: flex-end;
  gap: 4.4375rem;
  margin-bottom: 5.5rem;
}

.intro__rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.intro__row {
  display: flex;
  gap: 0.625rem;
}

.intro__row:nth-child(odd) {
  flex-direction: row-reverse;
}

.intro__photo {
  overflow: hidden;
  width: 64.7101449275%;
  height: 34.375rem;
  border-radius: var(--radius-l);
}

.intro__card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34.5652173913%;
  min-height: 34.375rem;
  padding: 3rem 4.5714285714vw;
  border-radius: var(--radius-l);
  background-color: var(--color-gray);
}

.intro__card-title {
  margin-bottom: 2.5rem;
  font-size: 2.75rem;
  font-weight: 500;
  line-height: 1.2;
}

.intro__card-title .heading__en {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.intro__card-text {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.intro__card-action {
  margin-top: 2rem;
}

.intro__card-action .btn {
  width: 11.375rem;
  padding: 0.9375rem 2.625rem 1rem 1.5rem;
  border-width: 2px;
  font-size: 0.9375rem;
}

.intro__card-action .btn__arrow {
  right: 1.125rem;
}

@media (width < 750px) {
  .intro {
    padding: 3.75rem 0 5.4375rem;
  }

  .intro__lead {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3.125rem;
  }

  .intro__row,
  .intro__row:nth-child(odd) {
    flex-direction: column;
  }

  .intro__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 355 / 172;
    border-radius: var(--radius-m);
  }

  .intro__card {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 2rem 1.5rem 2.875rem;
    border-radius: var(--radius-m);
  }

  .intro__card-title {
    margin-bottom: 1rem;
    font-size: 2.5rem;
  }

  .intro__card-title .heading__en {
    margin-top: 0.75rem;
  }

  .intro__card-action {
    margin-top: 1.5rem;
  }

  .intro__card-action .btn {
    width: 7.875rem;
    padding: 0.625rem 2.25rem 0.625rem 1.5rem;
    border-width: 1.5px;
    font-size: 0.75rem;
  }

  .intro__card-action .btn__arrow {
    right: 0.8125rem;
  }
}

/* ---------- RECRUIT（見出し＋ボタン、その下に写真） ---------- */
.recruit {
  padding-bottom: 4.5rem;
}

.recruit__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.recruit__heading {
  flex-shrink: 0;
}

.recruit__side {
  max-width: 49.0322580645%;
}

.recruit__action {
  margin-top: 1.875rem;
}

.recruit-photo {
  padding-bottom: 5rem;
}

.recruit-photo__frame {
  display: block;
  overflow: hidden;
  height: 37.5rem;
  border-radius: 12px;
}

.recruit-photo__frame img {
  object-position: top;
  transition: 0.5s ease;
}

@media (hover: hover) {
  .recruit-photo__frame:hover img {
    transform: scale(1.1);
  }
}

@media (width < 750px) {
  .recruit {
    padding-bottom: 2rem;
  }

  .recruit__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .recruit__side {
    width: 100%;
    max-width: 100%;
  }

  .recruit__action {
    display: flex;
    justify-content: center;
  }

  .recruit-photo {
    padding-bottom: 0;
  }

  .recruit-photo__frame {
    height: 9.625rem;
  }
}

/* ---------- 動きを減らす設定のとき ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-copy__col span {
    opacity: 1;
  }
}
