@charset "UTF-8";
/* ==========================================================================
   top.css : トップページ専用スタイル
   ========================================================================== */

/* --------------------------------------------------------------------------
   ファーストビュー
   -------------------------------------------------------------------------- */
.p-top-fv {
  position: relative;
  height: 112.2rem;
  background-image: linear-gradient(90deg, #e00000 0%, #cf0101 8.7666%, #a10202 56.008%, #850000 100%);
  overflow: hidden;
}

.p-top-fv__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: 84.6rem;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* サイドバー */
.p-top-fv__side {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.3rem;
  width: 16.1rem;
  height: 100%;
  padding: 5.8rem 0;
  background-color: var(--color-white);
  line-height: 1;
}

.p-top-fv__name {
  position: relative;
  width: 8.6rem;
  height: 48.4rem;
}

.p-top-fv__name-catch,
.p-top-fv__name-en,
.p-top-fv__name-service {
  position: absolute;
  writing-mode: vertical-rl;
}

.p-top-fv__name-catch {
  top: 0;
  left: 4.5rem;
  width: 4.1rem;
  font-size: 2.6rem;
  letter-spacing: 0.01em;
  color: var(--color-black);
}

.p-top-fv__name-en {
  top: 13.8rem;
  left: 0.3rem;
  width: 3.5rem;
  font-size: 3.5rem;
  letter-spacing: 0.02em;
  color: var(--color-red);
  white-space: nowrap;
}

.p-top-fv__name-service {
  top: 0.3rem;
  left: 0;
  width: 3.5rem;
  font-size: 3.1rem;
  letter-spacing: 0.02em;
  color: var(--color-black);
  text-orientation: sideways;
  white-space: nowrap;
}

.p-top-fv__index {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-red);
}

.p-top-fv__index-num {
  font-size: 7.6rem;
  line-height: normal;
  letter-spacing: 0.03em;
}

.p-top-fv__index-label {
  margin-top: 0.2rem;
  font-size: 2.4rem;
  line-height: normal;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.p-top-fv__index-line {
  width: 3.2rem;
  height: 0.5rem;
  margin-top: 1.7rem;
}

/* メインコピー */
.p-top-fv__copy {
  position: absolute;
  top: 29rem;
  left: 26.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4.9rem;
  width: 105.7rem;
  color: var(--color-white);
}

.p-top-fv__catch {
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0.4rem 0.63rem rgba(0, 0, 0, 0.5);
}

.p-top-fv__catch-line {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.p-top-fv__catch-line + .p-top-fv__catch-line {
  margin-top: 3.3rem;
}

.p-top-fv__catch-em {
  font-weight: 600;
  font-size: 11.4rem;
  letter-spacing: 0.04em;
  padding-left: 0.4rem;
}

.p-top-fv__catch-line:nth-child(2) .p-top-fv__catch-em {
  margin-right: 0.5rem;
  padding-left: 0;
  font-size: 14.1rem;
  letter-spacing: -0.04em;
}

.p-top-fv__catch-txt {
  font-size: 7.9rem;
  letter-spacing: 0.04em;
}

.p-top-fv__catch-line:nth-child(2) .p-top-fv__catch-txt {
  letter-spacing: 0.03em;
}

.p-top-fv__sub {
  width: 73.7rem;
  height: 11.1rem;
  padding: 3.6rem 0 0 4rem;
  border-radius: 0.3rem;
  background-color: var(--color-white);
  box-shadow: 0 0.4rem 0.63rem rgba(0, 0, 0, 0.25);
  font-weight: 500;
  font-size: 4.2rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-red);
}

.p-top-fv__sub .u-sans {
  font-weight: 400;
  letter-spacing: 0.0076em;
}

.p-top-fv__lead {
  font-weight: 400;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0.07em;
}

/* SCROLL */
.p-top-fv__scroll {
  position: absolute;
  top: 95.8rem;
  left: 55.7rem;
  width: 9.4rem;
  height: 7rem;
  color: var(--color-white);
}

.p-top-fv__scroll-txt {
  display: block;
  font-size: 2.8rem;
  line-height: normal;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.p-top-fv__scroll-arrow {
  position: absolute;
  top: 4.7rem;
  left: 2.1rem;
  width: 4.1rem;
  height: 2.1rem;
}

.p-top-fv__scroll-arrow img {
  position: absolute;
  max-width: none;
  height: 0.4rem;
}

.p-top-fv__scroll-arrow img:nth-child(1) {
  top: calc(1.05rem - 0.2rem);
  left: calc(0.95rem - 1.416rem);
  width: 2.83196rem;
  transform: rotate(47.86deg);
}

.p-top-fv__scroll-arrow img:nth-child(2) {
  top: calc(0.1rem + 1rem - 0.2rem);
  left: calc(1.9rem + 1.1rem - 1.4866rem);
  width: 2.97321rem;
  transform: rotate(-42.27deg);
}

/* --------------------------------------------------------------------------
   CONCEPT
   -------------------------------------------------------------------------- */
.p-top-concept {
  position: relative;
  height: 123rem;
  overflow: hidden;
}

.p-top-concept__img {
  position: absolute;
  top: 51.2rem;
  left: 0;
  width: 104.2rem;
  height: 71.8rem;
  object-fit: cover;
  pointer-events: none;
}

.p-top-concept__inner {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 18.4rem;
  padding: 9.2rem 4rem 8.9rem;
}

.p-top-concept__title {
  flex-shrink: 0;
  width: 81.7rem;
}

.p-top-concept__title .c-sec-title__en {
  margin-left: 0.6rem;
  font-size: 3.2rem;
}

.p-top-concept__heading {
  margin-top: 3.7rem;
  font-size: 10.6rem;
  line-height: 1.264;
  letter-spacing: 0.07em;
  color: var(--color-black);
}

.p-top-concept__heading-line {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.p-top-concept__heading-line:nth-child(1) {
  margin-left: 0.6rem;
}

.p-top-concept__heading-line:nth-child(2) {
  margin-top: 0.6rem;
}

.p-top-concept__heading-line:nth-child(3) {
  margin-top: 1rem;
  margin-left: 0.2rem;
}

.p-top-concept__heading-no {
  font-size: 8.9rem;
}

.p-top-concept__heading-em {
  margin-right: -1.4rem;
  font-size: 17.5rem;
  line-height: 1.18;
  color: var(--color-red);
}

.p-top-concept__txt {
  width: 82.8rem;
  font-size: 3.4rem;
  line-height: 6.7rem;
  letter-spacing: 0.07em;
  color: var(--color-text);
}

.p-top-concept__txt p + p {
  margin-top: 6.7rem;
}

.p-top-concept__txt strong {
  font-weight: 700;
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   WORKS
   -------------------------------------------------------------------------- */
.p-top-works {
  position: relative;
  padding: 14.9rem 2.5rem 10.9rem;
  background-color: var(--color-gray-bg);
  overflow: hidden;
}

.p-top-works__bg-txt {
  position: absolute;
  top: -3.3rem;
  left: 6.8rem;
  font-size: 37.8rem;
}

.p-top-works__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-top-works__title {
  flex-shrink: 0;
  width: 85.9rem;
  margin-right: -14.3rem;
  white-space: nowrap;
}

.p-top-works__title .c-sec-title__ja {
  height: 13.4rem;
}

.p-top-works__title .c-sec-title__lead {
  margin-top: 1rem;
}

.p-top-works__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.5rem;
}

.p-top-works__slider {
  margin-top: 9rem;
}

/* --------------------------------------------------------------------------
   SERVICE
   -------------------------------------------------------------------------- */
.p-top-service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9.8rem;
  min-height: 175.6rem;
  padding: 5rem var(--side-padding) 8rem;
  background-color: var(--color-black);
}

.p-top-service__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.p-top-service__title {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  width: 106.9rem;
  padding: 0 5rem;
}

.p-top-service__title .c-sec-title__ja {
  color: var(--color-white);
}

.p-top-service__title .c-sec-title__lead {
  font-size: 3.8rem;
  color: var(--color-white);
}

.p-top-service__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 57rem);
  gap: 4.1rem 3.4rem;
  align-items: start;
}

/* VIEW MORE：カード一覧の右下に置く（セクションの gap 9.8rem を詰めて 5rem に） */
.p-top-service__more {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: -4.8rem;
}

/* --------------------------------------------------------------------------
   UNIQUE POINT
   -------------------------------------------------------------------------- */
.p-top-point {
  display: flex;
  flex-direction: column;
  gap: 10rem;
  padding: 5rem var(--side-padding) 9rem;
}

.p-top-point__head {
  display: flex;
  align-items: center;
  gap: 11.1rem;
  padding: 0 5.7rem;
}

.p-top-point__title {
  flex-shrink: 0;
  width: 69.3rem;
}

.p-top-point__title .c-sec-title__en {
  font-size: 3.8rem;
  letter-spacing: 0.1em;
}

.p-top-point__heading {
  margin-top: 3.3rem;
  font-size: 10rem;
  line-height: 13.3rem;
  letter-spacing: 0.03em;
  color: var(--color-black);
}

.p-top-point__heading .u-sans {
  font-weight: 600;
  font-size: 11.7rem;
}

.p-top-point__lead {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mincho);
  font-weight: 700;
  font-size: 4.1rem;
  line-height: 6.9rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.p-top-point__list {
  display: flex;
  justify-content: center;
  gap: 2.7rem;
}

/* --------------------------------------------------------------------------
   ABOUT / STORY
   -------------------------------------------------------------------------- */
.p-top-about {
  display: flex;
  align-items: flex-start;
  gap: 6.5rem;
}

.p-top-about__img {
  flex-shrink: 0;
  width: 94.4rem;
  height: 117.5rem;
  object-fit: cover;
}

.p-top-about__body {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: 91.1rem;
  padding: 4rem 2.8rem;
}

.p-top-about__title .c-sec-title__en {
  margin-left: 0.6rem;
  font-size: 2.8rem;
  letter-spacing: 0.1em;
}

.p-top-about__heading {
  margin-top: 3.1rem;
  font-size: 7.6rem;
  line-height: 9.9rem;
  letter-spacing: 0.03em;
  color: var(--color-black);
  white-space: nowrap;
}

.p-top-about__txt {
  width: 79.9rem;
  font-weight: 500;
  font-size: 2.9rem;
  line-height: 5rem;
  letter-spacing: 0.03em;
  color: var(--color-text);
}

.p-top-about__txt p + p {
  margin-top: 5rem;
}

.p-top-about__txt strong {
  font-weight: 700;
  font-size: 3.9rem;
  color: var(--color-red);
}

.p-top-about__more {
  width: 85.5rem;
  height: 8rem;
  padding: 1.2rem 0 0 36.4rem;
}

/* ==========================================================================
   [共通]レスポンシブ対応
   ========================================================================== */
/*960px以下*/
@media only screen and (max-width: 960px) {
  /* ファーストビュー */
  .p-top-fv {
    height: auto;
    min-height: 100svh;
    padding: 18rem var(--side-padding) 20rem;
  }

  .p-top-fv__visual {
    width: 55%;
    opacity: 0.85;
  }

  .p-top-fv__side {
    display: none;
  }

  .p-top-fv__copy {
    position: relative;
    top: auto;
    left: auto;
    gap: 5rem;
    width: 100%;
  }

  .p-top-fv__catch-em {
    font-size: 9rem;
  }

  .p-top-fv__catch-line:nth-child(2) .p-top-fv__catch-em {
    font-size: 11rem;
  }

  .p-top-fv__catch-txt {
    font-size: 4.8rem;
  }

  .p-top-fv__sub {
    width: auto;
    height: auto;
    padding: 2.6rem 3.2rem;
    font-size: 3.6rem;
  }

  .p-top-fv__lead {
    font-size: 3rem;
  }

  .p-top-fv__scroll {
    top: auto;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
  }

  /* CONCEPT */
  /* 画像を画面に固定した背景にし、セクションの範囲だけ見せる
     （background-attachment: fixed は iOS で効かないため、
       position: fixed の画像を clip-path でセクション内に切り抜く） */
  .p-top-concept {
    height: auto;
    padding-bottom: 12rem;
    clip-path: inset(0);
  }

  .p-top-concept__img {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    object-position: center bottom;
    /* 文字が読めるよう写真を薄くする（opacity は表示アニメーションで使うため filter で薄くする） */
    filter: opacity(0.2);
  }

  .p-top-concept__inner {
    flex-direction: column;
    gap: 6rem;
    padding: 12rem var(--side-padding) 0;
  }

  .p-top-concept__title,
  .p-top-concept__txt {
    width: 100%;
  }

  .p-top-concept__heading {
    font-size: 7.6rem;
  }

  .p-top-concept__heading-no {
    font-size: 6.4rem;
  }

  .p-top-concept__heading-em {
    margin-right: -0.8rem;
    font-size: 12.4rem;
  }

  .p-top-concept__txt {
    font-size: 2.8rem;
    line-height: 1.9;
  }

  .p-top-concept__txt p + p {
    margin-top: 1.9em;
  }

  /* WORKS */
  .p-top-works {
    padding: 14rem var(--side-padding) 12rem;
  }

  .p-top-works__bg-txt {
    top: 2rem;
    left: 2rem;
    font-size: 20rem;
  }

  .p-top-works__head {
    flex-direction: column;
    align-items: stretch;
    gap: 5rem;
  }

  .p-top-works__title {
    width: 100%;
    margin-right: 0;
    white-space: normal;
  }

  .p-top-works__title .c-sec-title__ja {
    height: auto;
  }

  .p-top-works__slider {
    margin-top: 6rem;
  }

  /* SERVICE */
  .p-top-service {
    gap: 6rem;
    min-height: 0;
    padding: 12rem var(--side-padding);
  }

  .p-top-service__title {
    width: 100%;
    padding: 0;
  }

  .p-top-service__title .c-sec-title__lead {
    font-size: 2.5rem;
  }

  .p-top-service__list {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  /* SP では3つ目までを表示し、残りは VIEW MORE の先で見せる */
  .p-top-service__list .c-service-card:nth-child(n + 4) {
    display: none;
  }

  .p-top-service__more {
    margin-top: -1rem;
  }

  /* UNIQUE POINT */
  .p-top-point {
    gap: 6rem;
    padding: 12rem var(--side-padding);
  }

  .p-top-point__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4rem;
    padding: 0;
  }

  .p-top-point__title {
    width: 100%;
  }

  .p-top-point__heading {
    font-size: 8rem;
    line-height: 1.35;
  }

  .p-top-point__heading .u-sans {
    font-size: 9.2rem;
  }

  /* 2行目（21文字）が収まるサイズ（21文字 × 2.8rem × 1.04 ≒ 61rem） */
  .p-top-point__lead {
    font-size: 2.8rem;
    line-height: 1.7;
  }

  .p-top-point__list {
    flex-direction: column;
    gap: 4rem;
  }

  /* 2枚目・4枚目は左に画像、右に文章（カードの基本は左に文章・右に画像） */
  .p-top-point__list .c-point-card:nth-child(even) {
    flex-direction: row;
  }

  /* ABOUT / STORY */
  /* PC 用のビジュアル画像は隠し、SP 用の写真をセクションの背景にする
     （人物が右側にあるので右上基準で高さいっぱいに広げ、左の白いぼかし部分に文章を重ねる） */
  .p-top-about {
    flex-direction: column;
    gap: 0;
    /* 写真：高さの85%に縮め、下揃えで右に4remはみ出させる
       上：写真の上端が白い背景となじむよう、白→透明のグラデーションを重ねる */
    background-color: var(--color-white);
    background-image:
      linear-gradient(to bottom, var(--color-white) 0%, rgba(255, 255, 255, 0) 25%),
      url("../../img/top/profile-sp.webp");
    background-repeat: no-repeat;
    background-position: right bottom, right -4rem bottom;
    background-size: 100% 85%, auto 85%;
  }

  .p-top-about__img {
    display: none;
  }

  .p-top-about__body {
    width: 100%;
    gap: 5rem;
    padding: 6rem var(--side-padding) 12rem;
  }

  /* リンクの下線・丸矢印は画像なので、文字と同じ白い影を filter で付ける */
  .p-top-about__more .c-link-circle__line,
  .p-top-about__more .c-link-circle__icon {
    filter: drop-shadow(0 0 0.6rem var(--color-white)) drop-shadow(0 0 1.2rem var(--color-white));
  }

  .p-top-about__heading {
    white-space: normal;
    font-size: 5.6rem;
    line-height: 1.4;
  }

  .p-top-about__txt {
    width: 100%;
    font-size: 2.8rem;
    line-height: 1.8;
  }

  .p-top-about__txt p + p {
    margin-top: 1.8em;
  }

  .p-top-about__txt strong {
    font-size: 3.4rem;
  }

  .p-top-about__more {
    width: 100%;
    height: auto;
    padding: 0;
    text-align: right;
  }
}
