/* ============================================================
   top.css — トップページ専用スタイル
   読み込み順: reset.css → common.css → top.css
   ============================================================ */

/* ------------------------------------------------------------
   ローディングカーテン演出
   ------------------------------------------------------------ */
body.is-loading > *:not(.header):not(#curtain-wrap) {
  visibility: hidden;
}

#curtain-wrap {
  position: fixed;
  width: 1.875rem;
  height: 1.875rem;
  top: 50%;
  left: 50%;
  z-index: 9999;
  pointer-events: none;
}

.curtain {
  will-change: transform;
}

.curtain--red {
  fill: var(--black);
}

.curtain--yellow {
  fill: var(--red);
}

/* ------------------------------------------------------------
   ヒーロー(スライダー)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 36.25rem;
  margin-top: var(--header-h);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero__slider {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
}

.hero__scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 3.75rem 3.75rem;
  mask-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 75%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 75%);
}

.hero__content {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem 12rem;
  width: 100%;
}

.hero__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--red);
  margin-bottom: 1.125rem;
}

.hero__headline {
  font-family: var(--font-ja);
  font-size: clamp(1.4rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 1.125rem;
  text-shadow: 0 0.125rem 0.75rem rgba(0,0,0,0.6), 0 0.0625rem 0.1875rem rgba(0,0,0,0.8);
}

.hero__rule {
  width: 3.75rem;
  height: 0.1875rem;
  background: var(--red);
  margin: 0 auto 1.75rem;
}

.hero__scroll {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}

.hero__scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0));
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.9);
  animation: scroll-drop 1.8s cubic-bezier(0.4,0,0.6,1) infinite;
}

@keyframes scroll-drop {
  0%   { top: -100%; opacity: 1; }
  80%  { top: 100%;  opacity: 0.6; }
  100% { top: 100%;  opacity: 0; }
}

.hero__sub {
  font-family: var(--font-ja);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.88);
  line-height: 2;
  margin-bottom: 2.25rem;
  text-shadow: 0 0.0625rem 0.375rem rgba(0,0,0,0.7);
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__seekbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: 0.25rem;
  background: #111;
}

.hero__seekbar-fill {
  height: 100%;
  width: 0%;
  background: #fff000;
}

.hero__seekbar-fill.is-running {
  animation: seekbar-progress 7s linear forwards;
}

@keyframes seekbar-progress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ------------------------------------------------------------
   サービス(事業紹介セクション)
   ------------------------------------------------------------ */
.service {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.service .section-head { margin-bottom: 4rem; }

.section-head--service {
  --section-label-size: clamp(1.8rem, 4vw, 3rem); /* 配下のlabel・rule(1文字幅)が連動 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.section-head--service .section-head__title {
  text-align: left;
}

.service__deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  top: -23.125rem;
  right: -31.875rem;
  width: 81.25rem;
  opacity: 0.02;
  transform: rotate(16deg);
}

.service__grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.service__row {
  display: flex;
  gap: 1.25rem;
}

.service__row--2 .service-card {
  flex: 0 0 calc((100% - 1.25rem) / 2);
}

/* ------------------------------------------------------------
   採用ティザー
   ------------------------------------------------------------ */
.recruit {
  position: relative;
  height: 32.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.recruit__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.recruit__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.recruit__bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0.375rem;
  background: var(--red);
  z-index: 2;
}

.recruit__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.recruit__content {
  max-width: 36.25rem;
}

.recruit__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.recruit__headline {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.recruit__body {
  font-family: var(--font-ja);
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.9;
  margin-bottom: 2.25rem;
}

/* ------------------------------------------------------------
   ISO / プライバシーマーク
   ------------------------------------------------------------ */
.iso { padding: 5rem 0 7.5rem; }

.iso .section-head { margin-bottom: 2rem; }

.iso > .container {
  max-width: 80rem;
  padding: 0 2.5rem;
}

.iso__cols {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.iso__col {
  flex: 1;
  padding: 0;
}

.iso__col:first-child {
  padding-right: 1.5rem;
}

.iso__col:last-child {
  padding-left: 1.5rem;
}

.iso__divider {
  width: 1px;
  background: var(--gray-light);
  align-self: stretch;
  flex-shrink: 0;
}

.iso__row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.iso__badge {
  width: 8.75rem;
  flex-shrink: 0;
  margin: 0;
}

.iso__badge img {
  display: block;
  width: 100%;
  height: auto;
}

.iso__heading {
  font-family: var(--font-ja);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
  padding-bottom: 0.625rem;
  border-bottom: 0.125rem solid var(--red);
  display: inline-block;
}

.iso__body {
  flex: 1;
  font-family: var(--font-ja);
  font-size: 0.88rem;
  line-height: 2;
  color: #444;
}

/* 本文中のテキストリンク(赤文字・下線) */
.iso__body a {
  color: var(--red);
  text-decoration: underline;
}

/* ------------------------------------------------------------
   LINEスタンプ(マスコット演出)
   ------------------------------------------------------------ */
.line-stamp {
  padding: 6rem 0;
  background: var(--gray-lightest);
}

.line-stamp__inner {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6rem;
}

.line-stamp__mascot {
  flex: 0 0 17.5rem;
  height: 17.5rem;
  position: relative;
  overflow: visible;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 0.5rem 2.5rem rgba(0,0,0,0.10);
}

.line-stamp__mascot img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  max-width: none;
  height: auto;
}

.line-stamp__content {
  max-width: 25rem;
}

.line-stamp__headline {
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.line-stamp__headline-sub {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

.line-stamp__headline-main {
  display: block;
  font-family: var(--font-ja);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--black);
}

.line-stamp__selling {
  font-family: var(--font-ja);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.line-stamp__body {
  font-family: var(--font-ja);
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--black);
  margin-bottom: 2.25rem;
}

/* ============================================================
   メディアクエリ
   ============================================================ */
@media (max-width: 64rem) {
  /* ヒーロー: タブレット・モバイルは16:9固定(縦長画面での背景画像の見切れ防止)。
     見出しは下部配置、スクロール促進は非表示 */
  .hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero__content {
    padding: 0 1.5rem 3.5rem;
  }

  .hero__scroll {
    display: none;
  }

  .line-stamp__mascot {
    flex: 0 0 17.5rem;
  }

  .iso__cols {
    flex-direction: column;
    gap: 2.5rem;
  }

  .iso__col,
  .iso__col:first-child,
  .iso__col:last-child {
    padding: 0;
  }

  .iso__divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
}

@media (max-width: 40rem) {
  .hero__content {
    max-width: 100%;
    padding-bottom: 1.2rem;
  }

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

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

  .service__row {
    display: contents;
  }

  .recruit {
    height: auto;
    padding: 3rem 0;
  }

  .recruit__headline {
    font-size: 3rem;
  }

  .iso > .container {
    padding: 0 1.25rem;
  }

  .iso__row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .iso__badge {
    align-self: center;
  }

  .line-stamp__inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .line-stamp__mascot {
    flex: 0 0 auto;
    width: 12rem;
    height: 12rem;
    max-width: none;
    margin: 0 auto;
  }

  .line-stamp__headline-main {
    font-size: 2.2rem;
  }
}
