/* ファーストビュー: セクション余白調整 */
.front-first-view {
  padding-top: 0;
  padding-bottom: 40px;
}

@media (min-width: 768px) {
  /* ファーストビュー: PCの上余白 */
  .front-first-view {
    padding-top: 60px;
  }
}

/* ヒーロー: 画像と縦書きコピーのレイアウト（SP） */
.front-first-view .hero-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  width: 90%;
  margin: 0 auto 0 0;
}

@media (min-width: 768px) {
  /* ヒーロー: 画像と縦書きコピーのレイアウト（PC） */
  .front-first-view .hero-visual {
    grid-template-columns: minmax(0, 775px) max-content;
    height: 523px;
    position: static;
    width: fit-content;
    max-width: min(1320px, calc(90vw + 120px));
    margin: 0 auto;
    padding-right: 120px;
    gap: clamp(48px, 8vw, 120px);
    justify-content: start;
    align-items: center;
  }
}

/* ヒーロー画像: 元画像の縦横比を維持（SP） */
.front-first-view .hero-image {
  border-radius: 2px;
  overflow: hidden;
  display: block;
  width: 100%;
}

.front-first-view .hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  /* ヒーロー画像: PCは775pxを上限に縦横比を維持 */
  .front-first-view .hero-image {
    width: min(100%, 775px);
  }
}

/* 縦書きコピー: 右側のキャッチ（SP） */
.front-first-view .hero-vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-title);
  font-weight: var(--weight-mincho-regular);
  font-style: var(--font-style-mincho-regular);
  font-size: 36px;
  align-self: flex-start;
  line-height: 1.2;
  letter-spacing: 0.08em;
  font-weight: 400;
  position: absolute;
  right: 16px;
  top: 16px;
}

@media (min-width: 768px) {
  /* 縦書きコピー: PCでサイズ/間隔/配置を調整 */
  .front-first-view .hero-vertical {
    gap: 21px;
    font-size: 48px;
    position: static;
    right: auto;
    top: auto;
  }
}

/* 縦書きコピー: 1文字ずつの背景枠 */
.front-first-view .hero-vertical span {
  background: var(--brand-white);
  padding: 8px 0;
  display: inline-block;
}

/* 縦書きコピー: 2行目/3行目の段差 */
.front-first-view .hero-vertical span:nth-child(2) {
  transform: translateY(30px);
}

.front-first-view .hero-vertical span:nth-child(3) {
  transform: translateY(60px);
}

/* タグライン: 黒帯のメッセージ（SP） */
.front-first-view .hero-tagline {
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-muted);
  color: var(--brand-white);
  font-size: 16px;
  font-weight: var(--weight-gothic-regular);
  width: 305px;
  height: 105px;
}

@media (min-width: 768px) {
  /* タグライン: PCは幅を自動に */
  .front-first-view .hero-tagline {
    font-size: 19px;
    width: 435px;
    height: 145px;
  }
}

/* タグライン: 中央寄せラッパー */
.front-first-view .hero-tagline-wrap {
  text-align: center;
  margin-top: 25px;
}

@media (min-width: 768px) {
  /* タグライン: PCではヒーロー直下に近づける */
  .front-first-view .hero-tagline-wrap {
    margin-top: 0;
  }
}

/* タグライン: ずらし枠の装飾 */
.front-first-view .hero-tagline::after {
  content: "";
  position: absolute;
  inset: 8px -7px -8px 7px;
  border: 1px solid var(--brand-gray-dark);
  z-index: -1;
}

@media (min-width: 768px) {
  /* タグライン: PCのずらし量 */
  .front-first-view .hero-tagline::after {
    inset: 14px -12px -14px 12px;
  }
}
