@charset "UTF-8";

/* ===== TOP共通：見出しの並び（左に2色の英字、右にリード） ===== */

.homeHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40rem 80rem;
  margin-bottom: 72rem;
}

.homeHeadText {
  max-width: 520rem;
}

.homeHeadCatch {
  font-size: 26rem;
  font-weight: 700;
  line-height: 1.6;
}

.homeHeadLead {
  max-width: 520rem;
  font-size: 15rem;
  line-height: 2;
  color: var(--color-text-sub);
}

.homeHeadCatch + .homeHeadLead {
  margin-top: 16rem;
}

.homeMore {
  display: flex;
  justify-content: flex-end;
  margin-top: 56rem;
}

@media (max-width: 767px) {
  .homeHead {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 44rem;
  }

  .homeHeadCatch {
    font-size: 20rem;
  }

  .homeMore {
    justify-content: center;
    margin-top: 40rem;
  }
}

/* ===== ① FV（青のグラデーション＋斜めの写真の壁） ===== */

.homeFv {
  position: relative;
  height: 100svh;
  min-height: 680rem;
  overflow: hidden;
  color: var(--color-white);
  background-color: var(--color-navy);
  background-image: linear-gradient(
    120deg,
    var(--color-navy) 0%,
    #1F5BD6 48%,
    var(--color-sky) 100%
  );
}

/* うっすら縦の罫線 */
.homeFv::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, .08) 1px,
    transparent 1px
  );
  background-size: 120rem 100%;
  pointer-events: none;
}

/* 写真の壁：右側に、奥へ傾けて置く。左（文字側）は青に溶かす */
.homeFvWall {
  position: absolute;
  top: -10%;
  right: -12%;
  bottom: -10%;
  left: 30%;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  mask-image: linear-gradient(to right, transparent 0%, #000 28%);
  perspective: 2400rem;
}

/* 写真の上に青を薄く重ね、文字側（左）とヘッダー側（上）は濃くする */
.homeFvShade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 28, 145, .55) 0,
      rgba(0, 28, 145, 0) 200rem
    ),
    linear-gradient(
      90deg,
      rgba(0, 28, 145, .95) 0%,
      rgba(0, 28, 145, .75) 38%,
      rgba(20, 80, 200, .25) 62%,
      rgba(60, 160, 240, .1) 100%
    );
  pointer-events: none;
}

.homeFvWallInner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24rem;
  height: 100%;
  transform: rotateX(22deg) rotateY(-16deg) rotateZ(-10deg);
  transform-origin: 30% 50%;
}

.homeFvCol {
  overflow: hidden;
}

/* 列ごとに上下逆向きに流す（同じ4枚を2組つないで、半分動いたら最初に戻す） */
.homeFvTrack {
  display: flex;
  flex-direction: column;
  gap: 24rem;
  animation: homeFvUp 48s linear infinite;
}

.homeFvCol--2 .homeFvTrack,
.homeFvCol--4 .homeFvTrack {
  animation-name: homeFvDown;
  animation-duration: 56s;
}

.homeFvCol--3 .homeFvTrack {
  animation-duration: 64s;
}

.homeFvTile {
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14rem;
  box-shadow: 0 24rem 48rem rgba(0, 20, 90, .3);
}

.homeFvTile picture,
.homeFvTile img {
  width: 100%;
  height: 100%;
}

.homeFvTile img {
  object-fit: cover;
}

@keyframes homeFvUp {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(calc(-50% - 12rem));
  }
}

@keyframes homeFvDown {
  0% {
    transform: translateY(calc(-50% - 12rem));
  }

  100% {
    transform: translateY(0);
  }
}

.homeFvInner {
  position: absolute;
  bottom: 120rem;
  left: max(var(--gutter), calc((100% - var(--inner-w)) / 2));
  z-index: 1;
  width: 640rem;
}

.homeFvLabel {
  font-family: var(--font-en);
  font-size: 15rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  color: #BDEBFF;
}

.homeFvHeading {
  margin-top: 28rem;
  font-size: 64rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
}

.homeFvLine {
  display: block;
  overflow: hidden;
}

.homeFvHeading [data-line] {
  display: inline-block;
}

.homeFvLead {
  margin-top: 32rem;
  font-size: 16rem;
  line-height: 2;
}

.homeFvTags {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10rem;
  margin-top: 32rem;
}

.homeFvTag {
  padding: 6rem 16rem;
  text-align: center;
  font-size: 13rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  background-color: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 100rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.homeFvScroll {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--inner-w)) / 2));
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16rem;
}

.homeFvScrollText {
  font-family: var(--font-en);
  font-size: 12rem;
  font-weight: 600;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}

.homeFvScrollLine {
  position: relative;
  display: block;
  width: 1px;
  height: 96rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, .35);
}

.homeFvScrollLine::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  content: "";
  background-color: var(--color-white);
  animation: homeFvScroll 2s ease-in-out infinite;
}

@keyframes homeFvScroll {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(250%);
  }
}

@media (max-width: 767px) {
  .homeFv {
    min-height: 600rem;
  }

  /* SPは写真の壁を全面に敷き、文字の下だけ青を濃くする */
  .homeFvWall {
    top: -6%;
    right: -30%;
    bottom: 20%;
    left: -10%;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 92%);
  }

  .homeFvShade {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 28, 145, .5) 0,
        rgba(0, 28, 145, 0) 120rem
      ),
      linear-gradient(
        to top,
        rgba(0, 28, 145, .96) 0%,
        rgba(0, 28, 145, .85) 42%,
        rgba(20, 80, 200, .25) 75%,
        rgba(60, 160, 240, .1) 100%
      );
  }

  .homeFvWallInner {
    gap: 12rem;
    transform: rotateX(18deg) rotateY(-10deg) rotateZ(-10deg);
  }

  .homeFvTrack {
    gap: 12rem;
  }

  .homeFvTile {
    border-radius: 8rem;
  }

  @keyframes homeFvUp {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(calc(-50% - 6rem));
    }
  }

  @keyframes homeFvDown {
    0% {
      transform: translateY(calc(-50% - 6rem));
    }

    100% {
      transform: translateY(0);
    }
  }

  .homeFvInner {
    right: var(--gutter);
    bottom: 88rem;
    left: var(--gutter);
    width: auto;
  }

  .homeFvLabel {
    font-size: 11rem;
    letter-spacing: .12em;
  }

  .homeFvHeading {
    margin-top: 14rem;
    font-size: 34rem;
    line-height: 1.5;
  }

  .homeFvLead {
    margin-top: 16rem;
    font-size: 13rem;
    line-height: 1.9;
  }

  .homeFvTags {
    gap: 6rem;
    margin-top: 18rem;
  }

  .homeFvTag {
    padding: 4rem 10rem;
    font-size: 11rem;
  }

  .homeFvScroll {
    display: none;
  }
}

/* ローディングの後、FVの文字を下から出す（js/page-top.js） */

/* ===== ② 事業内容（写真に色を重ねたカード） ===== */

.homeBusinessList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24rem;
}

.homeBusinessCard {
  --card-color: 0, 28, 145;
  --card-color-2: 0, 28, 145;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 340rem;
  overflow: hidden;
  color: var(--color-white);
  border-radius: var(--radius-card);
  isolation: isolate;
}

/* 4枚を色分けする（紺／青紫／青／青緑）。左側は濃く、右に向かって写真を見せる */
.homeBusinessCard--01 {
  --card-color: 0, 28, 145;
  --card-color-2: 20, 60, 190;
}

.homeBusinessCard--02 {
  --card-color: 62, 52, 168;
  --card-color-2: 104, 92, 206;
}

.homeBusinessCard--03 {
  --card-color: 0, 104, 214;
  --card-color-2: 48, 160, 240;
}

.homeBusinessCard--04 {
  --card-color: 0, 128, 140;
  --card-color-2: 40, 180, 170;
}

.homeBusinessPhoto {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-light);
}

.homeBusinessPhoto::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    100deg,
    rgba(var(--card-color), .97) 0%,
    rgba(var(--card-color), .9) 38%,
    rgba(var(--card-color-2), .45) 70%,
    rgba(var(--card-color-2), .1) 100%
  );
}

/* 斜めの光の帯（カードが出てくるときと、カーソルを合わせたときに横切る） */
.homeBusinessShine {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-120%) skewX(-16deg);
  pointer-events: none;
}

.homeBusinessImg,
.homeBusinessImg img {
  width: 100%;
  height: 100%;
}

.homeBusinessImg img {
  object-fit: cover;
  object-position: 70% 30%;
  transition: transform .8s cubic-bezier(.19, 1, .22, 1);
}

.homeBusinessBody {
  width: 66%;
  padding: 40rem 0 40rem 44rem;
}

.homeBusinessEn {
  display: flex;
  align-items: baseline;
  gap: 12rem;
  font-family: var(--font-en);
  font-size: 13rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .75);
}

.homeBusinessNum {
  font-size: 15rem;
  color: var(--color-sky);
}

.homeBusinessTitle {
  margin-top: 12rem;
  font-size: 30rem;
  font-weight: 700;
  line-height: 1.4;
}

.homeBusinessText {
  margin-top: 16rem;
  font-size: 14rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, .85);
}

.homeBusinessArrow {
  position: absolute;
  right: 28rem;
  bottom: 28rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52rem;
  height: 52rem;
  overflow: hidden;
  font-size: 18rem;
  color: var(--color-navy);
  background-color: var(--color-white);
  border-radius: 50%;
}

@media (hover: hover) {
  .homeBusinessCard:hover .homeBusinessImg img {
    transform: scale(1.06);
  }

  .homeBusinessCard:hover .homeBusinessShine {
    animation: homeBusinessShine 1s cubic-bezier(.19, 1, .22, 1);
  }

  .homeBusinessCard:hover .btnArrowIcon {
    animation: btnArrow .6s ease-out;
  }
}

@keyframes homeBusinessShine {
  0% {
    transform: translateX(-120%) skewX(-16deg);
  }

  100% {
    transform: translateX(260%) skewX(-16deg);
  }
}

@media (max-width: 767px) {
  .homeBusinessList {
    grid-template-columns: 1fr;
    gap: 14rem;
  }

  .homeBusinessCard {
    min-height: 220rem;
  }

  .homeBusinessBody {
    width: 100%;
    padding: 28rem 72rem 28rem 22rem;
  }

  .homeBusinessEn {
    font-size: 11rem;
  }

  .homeBusinessNum {
    font-size: 13rem;
  }

  .homeBusinessTitle {
    margin-top: 6rem;
    font-size: 21rem;
  }

  .homeBusinessText {
    margin-top: 10rem;
    font-size: 12rem;
    line-height: 1.8;
  }

  .homeBusinessArrow {
    right: 16rem;
    bottom: 16rem;
    width: 40rem;
    height: 40rem;
    font-size: 15rem;
  }
}

/* ===== ③ 設備のご案内（写真なし。大きな数字で大型設備を見せる） ===== */

.homeFacility {
  position: relative;
  overflow: hidden;
}

/* 後ろでゆっくり流れる大きな英字 */
.homeFacilityMarquee {
  position: absolute;
  bottom: 88rem;
  left: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.homeFacilityMarqueeTrack {
  display: flex;
  width: max-content;
  animation: homeFacilityMarquee 40s linear infinite;
}

.homeFacilityMarqueeText {
  padding-right: .4em;
  font-family: var(--font-en);
  font-size: 200rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: rgba(0, 28, 145, .035);
  white-space: nowrap;
}

@keyframes homeFacilityMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.homeFacility .inner {
  position: relative;
}

.homeFacilityList {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24rem;
}

.homeFacilityItem {
  position: relative;
  padding: 44rem 40rem 40rem;
  overflow: hidden;
  background-color: var(--color-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

/* 上辺にグラデーションの線 */
.homeFacilityItem::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4rem;
  content: "";
  background-image: var(--gradient-brand-h);
}

.homeFacilityLabel {
  font-size: 13rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-caption);
}

.homeFacilityValue {
  display: flex;
  align-items: baseline;
  margin-top: 16rem;
  font-family: var(--font-num);
  font-weight: 500;
  line-height: 1;
  color: var(--color-navy);
  background-image: var(--gradient-brand-h);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.homeFacilityPre {
  margin-right: 4rem;
  font-size: 40rem;
}

.homeFacilityNum {
  font-size: 76rem;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.homeFacilityUnit {
  margin-left: 6rem;
  font-size: 24rem;
}

.homeFacilityName {
  margin-top: 28rem;
  padding-top: 24rem;
  font-size: 20rem;
  font-weight: 700;
  line-height: 1.5;
  border-top: 1px solid var(--color-line);
}

.homeFacilitySpec {
  margin-top: 6rem;
  font-size: 14rem;
  line-height: 1.7;
  color: var(--color-text-sub);
}

@media (max-width: 767px) {
  .homeFacilityMarquee {
    bottom: 16rem;
  }

  .homeFacilityMarqueeText {
    font-size: 96rem;
  }

  .homeFacilityList {
    grid-template-columns: 1fr;
    gap: 14rem;
  }

  .homeFacilityItem {
    padding: 28rem 24rem 26rem;
  }

  .homeFacilityPre {
    font-size: 34rem;
  }

  .homeFacilityNum {
    font-size: 60rem;
  }

  .homeFacilityUnit {
    font-size: 22rem;
  }

  .homeFacilityName {
    margin-top: 18rem;
    padding-top: 16rem;
    font-size: 17rem;
  }
}

/* ===== ④ 強み（青の帯） ===== */

.homeStrengthCtt {
  display: grid;
  grid-template-columns:
    480rem
    1fr;
  align-items: center;
  gap: 96rem;
}

.homeStrengthPhoto {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background-color: rgba(255, 255, 255, .1);
  border-radius: var(--radius-card);
}

.homeStrengthImg,
.homeStrengthImg img {
  width: 100%;
  height: 100%;
}

.homeStrengthImg img {
  object-fit: cover;
}

.homeStrengthList {
  margin-top: 56rem;
  border-top: 1px solid var(--color-line-white);
}

.homeStrengthItem {
  display: flex;
  align-items: baseline;
  gap: 28rem;
  padding: 24rem 0;
  border-bottom: 1px solid var(--color-line-white);
}

.homeStrengthNum {
  font-family: var(--font-en);
  font-size: 22rem;
  font-weight: 500;
  color: var(--color-sky);
}

.homeStrengthItemText {
  font-size: 17rem;
  line-height: 1.6;
}

.homeStrengthBody .btnText {
  margin-top: 44rem;
}

@media (max-width: 767px) {
  .homeStrengthCtt {
    grid-template-columns: 1fr;
    gap: 40rem;
  }

  .homeStrengthPhoto {
    aspect-ratio: 4 / 3;
  }

  .homeStrengthList {
    margin-top: 28rem;
  }

  .homeStrengthItem {
    gap: 16rem;
    padding: 18rem 0;
  }

  .homeStrengthNum {
    font-size: 17rem;
  }

  .homeStrengthItemText {
    font-size: 15rem;
  }

  .homeStrengthBody .btnText {
    margin-top: 32rem;
  }
}

/* ===== ⑤ お知らせ ===== */

.homeNews .homeHead {
  margin-bottom: 48rem;
}

.newsList {
  border-top: 1px solid var(--color-line);
}

.newsItem {
  border-bottom: 1px solid var(--color-line);
}

.newsLink {
  display: grid;
  grid-template-columns:
    170rem
    150rem
    1fr;
  align-items: center;
  padding: 30rem 8rem;
}

.newsDate {
  font-family: var(--font-num);
  font-size: 15rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-btn-text);
}

.newsTitle {
  font-size: 16rem;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .homeNews .homeHead {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32rem;
  }

  .newsLink {
    grid-template-columns:
      auto
      1fr;
    gap: 8rem 16rem;
    padding: 22rem 0;
  }

  .newsTitle {
    grid-column: 1 / -1;
    font-size: 15rem;
  }
}

/* ===== ⑥ 採用情報（横いっぱい） ===== */

.homeRecruit .ctaPanel {
  min-height: 560rem;
}

.homeRecruit .ctaPanelBody {
  justify-content: center;
  padding-top: 120rem;
  padding-bottom: 140rem;
}

.homeRecruit .enHeadLight {
  color: rgba(255, 255, 255, .45);
}

.homeRecruit .enHeadMain {
  color: var(--color-white);
}

.homeRecruit .ctaPanelText {
  max-width: 560rem;
  margin-top: 28rem;
}

.homeRecruit .ctaPanelBtn {
  margin-top: 0;
}

@media (max-width: 767px) {
  .homeRecruit .ctaPanel {
    min-height: 0;
  }

  .homeRecruit .ctaPanelBody {
    padding-top: 80rem;
    padding-bottom: 96rem;
  }
}
