
.p-profile {
  --profile-gray: #33373d;
  --profile-gray-light: #d9dcd9;
}

/* ---------- Hero */
.p-profile-hero {
  position: relative;
  min-height: 100dvh;
  background: var(--color-navy);
  color: #fff;
  overflow: hidden;
  padding: clamp(64px, 12vw, 80px) 0 0;
}

.p-profile-hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.p-profile-hero__script {
  display: block;
  width: clamp(240px, 40vw, 420px);
  height: auto;
}

.p-profile-hero__name-ja {
  margin-top: clamp(8px, 1.4vw, 14px);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.p-profile-hero__role {
  margin-top: clamp(6px, 1vw, 10px);
  font-size: clamp(16px, 1.4vw, 17px);
  font-weight: 500;
  color: var(--color-text-on-dark-sub);
  letter-spacing: 0.04em;
}

.p-profile-hero__catch {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.p-profile-hero__info {
  padding-top: 20%;
}

.p-profile-hero__photo {
  width: clamp(220px, 28vw, 500px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.p-profile-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.p-profile-hero__wordmark {
  margin-top: clamp(24px, 4vw, 48px);
  font-family: var(--font-en);
  font-weight: 800;
  /* 最長の語「VIDEO / PHOTO」がスペース込みで全幅に収まる傾きに調整 */
  font-size: clamp(44px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
}

/* ---------- 見出し */
.p-profile__head {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(24px, 4vw, 44px);
}

.p-profile__head-title {
  font-family: var(--font-en);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.p-profile__head-line {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ---------- MESSAGE */
.p-profile-message {
  background: var(--color-bg);
  color: var(--color-text);
  padding: clamp(56px, 9vw, 120px) 0;
}

.p-profile-message__inner,
.p-profile-career__inner,
.p-profile-works__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.p-profile-message__text {
  max-width: 720px;
  margin-left: auto;
  font-size: clamp(18px, 17.2px + 0.22vw, 20px);
  line-height: 2.1;
  font-weight: 500;
}

/* ---------- CAREER */
.p-profile-career {
  background: var(--profile-gray);
  color: #fff;
  padding: clamp(56px, 9vw, 120px) 0;
}

.p-profile-career__list {
  max-width: 720px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 16px);
}

.p-profile-career__list li {
  font-size: clamp(18px, 17.2px + 0.22vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* ---------- WORKS */
.p-profile-works {
  background: var(--profile-gray-light);
  color: var(--color-text);
  padding: clamp(56px, 9vw, 120px) 0;
}

.p-profile-works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

.p-profile-works__card {
  aspect-ratio: 16 / 10;
  background: #fff;
  border-radius: var(--radius-sm);
}

/* 投稿ありのカード */
a.p-profile-works__card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.p-profile-works__thumb,
.p-profile-works__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

a.p-profile-works__card:hover .p-profile-works__thumb,
a.p-profile-works__card:hover .p-profile-works__video {
  transform: scale(1.05);
}

/* サムネイル未設定時のフォールバック */
.p-profile-works__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--color-text);
}

.p-profile-works__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 16px 40px;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-pill);
  color: var(--color-navy);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.p-profile-works__home:hover {
  background: var(--color-navy);
  color: #fff;
}

.p-profile-works__home svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.p-profile-works__home-wrap {
  text-align: center;
}

/* ---------- レスポンシブ */
@media screen and (max-width: 768px) {
  .p-profile-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: clamp(16px, 4vw, 32px);
  }

  /* SP */
  .p-profile-hero__photo {
    order: -1;
    width: min(70vw, 320px);
    margin-inline: auto;
  }

  .p-profile-hero__script {
    width: min(78vw, 360px);
    margin-inline: auto;
  }

  .p-profile-hero__info {
    padding-top: clamp(20px, 5vw, 36px);
  }

  /* SP */
  .p-profile-hero__wordmark {
    font-size: clamp(40px, 13vw, 120px);
  }

  .p-profile-message__text,
  .p-profile-career__list {
    margin-left: 0;
  }

  .p-profile-works__grid {
    grid-template-columns: 1fr;
  }
}
