/* =========================
   PROFILEページ
========================= */

.profile-page {
  color: #333333;
  background-color: #ffffff;
}

/* =========================
   ヒーロー
========================= */

.profile-hero {
  display: grid;
  place-items: center;

  min-height: clamp(25rem, 48vw, 36rem);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;

  text-align: center;

  background-image:
    url("../images/common/hero-bg.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.profile-hero__inner {
  width: min(100%, 50rem);
}

.profile-hero__title {
  margin: 0;

  color: #283457;

  font-family:
    "Times New Roman",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.profile-hero__subtitle {
  margin: 0.75rem 0 0;

  color: #333333;

  font-size: clamp(0.875rem, 1.5vw, 1rem);
  letter-spacing: 0.12em;
}

/* =========================
   ページ内リンク
========================= */

.profile-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: clamp(1rem, 3vw, 2rem);

  width: min(90%, 52rem);
  margin: clamp(2rem, 4vw, 3.5rem) auto;
}

.profile-nav__link {
  display: grid;
  place-items: center;

  min-width: clamp(8rem, 16vw, 10rem);
  padding: 0.75rem 1.5rem;

  color: #ffffff;

  font-family:
    "Times New Roman",
    "Yu Mincho",
    serif;

  font-size: clamp(0.875rem, 1.5vw, 1rem);
  letter-spacing: 0.05em;
  text-decoration: none;

  border: 0.0625rem solid #59638a;
  border-radius: 0.75rem;

  background:
    linear-gradient(
      180deg,
      #efbdc8 0%,
      #c798aa 48%,
      #667198 100%
    );

  box-shadow:
    inset 0 0.0625rem 0 rgba(255, 255, 255, 0.7),
    0 0.2rem 0.45rem rgba(40, 52, 87, 0.18);

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.profile-nav__link:hover {
  transform: translateY(-0.15rem);
  opacity: 0.88;
}



/* =========================
   スマートフォン
========================= */

@media (max-width: 48rem) {

  .profile-hero {
    min-height: 25rem;
    background-position: center;
  }

  .profile-nav {
    gap: 0.75rem;
    margin-block: 2rem 3rem;
  }

  .profile-nav__link {
    min-width: 7.25rem;
    padding-inline: 1rem;
  }
}

/* =========================
   自己紹介
========================= */

.profile-introduction {
  padding:
    clamp(3rem, 6vw, 5.5rem)
    1.25rem
    clamp(5rem, 8vw, 8rem);
}

.profile-section-title {
  display: grid;
  grid-template-columns:
    minmax(2rem, 1fr)
    auto
    minmax(2rem, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);

  width: min(100%, 76rem);
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.profile-section-title__line {
  display: block;
  width: 100%;
  height: 0.0625rem;
  background-color: #c99b4d;
}

.profile-section-title__text {
  text-align: center;
}

.profile-section-title__text h2 {
  margin: 0;

  color: #283457;

  font-family:
    "Inria Serif",
    "Times New Roman",
    serif;

  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}

.profile-section-title__text p {
  margin: 0.6rem 0 0;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.12em;
}

/* 写真＋文章 */

.profile-introduction__inner {
  display: grid;
  grid-template-columns:
    minmax(11rem, 15rem)
    minmax(0, 1fr);
  align-items: start;

  gap: clamp(2rem, 4vw, 3.5rem);

  width: min(94%, 78rem);
  margin-inline: auto;
}

/* プロフィール写真枠 */

.profile-photo-frame {
  width: min(100%, 14rem);
  aspect-ratio: 0.72;
  margin-inline: auto;

  padding: 0.25rem;

  border-radius:
    50% 50% 0 0 /
    24% 24% 0 0;

  background:
    linear-gradient(
      90deg,
      #a37b56 0%,
      #d2c277 40%,
      #f5f991 49%,
      #b8b66b 52%,
      #af9c62 75%,
      #a37b56 100%
    );
}

.profile-photo-frame__inner {
  width: 100%;
  height: 100%;

  padding: 0.15rem;

  border-radius:
    50% 50% 0 0 /
    24% 24% 0 0;

  background-color: #ffffff;
}

.profile-photo-placeholder {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;

  overflow: hidden;

  border-radius:
    50% 50% 0 0 /
    24% 24% 0 0;

  background-color: #d9d9d9;
}

.profile-photo-placeholder span {
  color: #999999;

  font-family:
    "Inria Serif",
    "Times New Roman",
    serif;

  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

/* 撮影後に使用する写真用 */

.profile-photo-frame img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border-radius:
    50% 50% 0 0 /
    24% 24% 0 0;
}

/* 右側文章 */

.profile-introduction__content {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

/* 文章周りの枠 */

.profile-text-box {
  position: relative;
  display: block;

  width: 100%;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible;

  padding:
    clamp(2.75rem, 4vw, 3.75rem)
    clamp(2rem, 5vw, 4rem);

  background-color: #ffffff;
}

.profile-text-box--pink {
  background-image: url("../images/profile/profile-frame-pink.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.profile-text-box--navy {
  background-image: url("../images/profile/profile-frame-navy.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

/* 名前 */

.profile-name {
  position: relative;
  z-index: 1;

  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.profile-name__ruby {
  margin: 0 0 0.35rem;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.15em;
}

.profile-name h3 {
  margin: 0;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.profile-name__divider,
.profile-text-box__divider {
  display: block;

  width: min(100%, 15rem);
  height: auto;

  margin:
    clamp(0.7rem, 1.5vw, 1rem)
    auto
    0;
}

/* Webデザインを始めた理由 */

.profile-text-box__heading {
  position: relative;
  z-index: 1;

  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.profile-text-box__heading h3 {
  margin: 0;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* 本文 */

.profile-text {
  position: relative;
  z-index: 1;

  margin: 0;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.85;
  letter-spacing: 0.025em;
}

.profile-text--reason {
  display: grid;
  gap: 1.35rem;
}

.profile-text--reason p {
  margin: 0;
}

/* =========================
   タブレット・スマホ
========================= */

@media (max-width: 72rem) {

  .profile-introduction__inner {
    grid-template-columns: 1fr;
    width: min(92%, 58rem);
  }

  .profile-photo-frame {
    width: min(50vw, 15rem);
  }
}

/* =========================
   スマホ：文章枠の高さ調整
========================= */

@media (max-width: 48rem) {

  .profile-introduction__content {
    display: grid;
    grid-auto-rows: auto;
    gap: 2.5rem;
  }

  .profile-text-box {
    display: flow-root;

    width: 100%;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;

    padding:
      3rem
      1.75rem
      3.75rem;

    overflow: visible;
  }

  .profile-text-box--pink,
  .profile-text-box--navy {
    background-size: 100% 100%;
    background-position: center;
  }

  .profile-text {
    width: 100%;
    margin: 0;

    font-size: 0.875rem;
    line-height: 2;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

/* 四隅の装飾 */

.profile-text-box--pink .profile-name,
.profile-text-box--pink .profile-text,
.profile-text-box--navy .profile-text-box__heading,
.profile-text-box--navy .profile-text {
  color: #333333;
}

/* =========================
   STRENGTH
========================= */

.strength-section {
  padding:
    clamp(4rem, 7vw, 7rem)
    1.25rem
    clamp(5rem, 8vw, 8rem);
  background-color: #ffffff;
}

.strength-section .profile-section-title {
  width: min(100%, 76rem);
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

.strength-section__lead {
  width: min(92%, 56rem);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(0.84rem, 1vw, 0.96rem);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* 3つの経験カード */

.strength-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
  width: min(100%, 68rem);
  margin-inline: auto;
}

.strength-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 25rem;
  padding:
    clamp(1.5rem, 2.5vw, 2rem)
    clamp(1.25rem, 2vw, 1.75rem)
    1.5rem;
  text-align: center;
  border: 0.0625rem solid #52649a;
  border-radius: 0.9rem;
  background-color: #ffffff;
}

.strength-card__icon {
  width: clamp(5.5rem, 7vw, 6.5rem);
  margin-bottom: 1.25rem;
}

.strength-card__icon img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.strength-card__title {
  width: 100%;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  color: #ef8595;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.025em;
  border-bottom: 0.0625rem dashed #efb0ba;
}

.strength-card__text {
  margin: 0;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(0.76rem, 0.9vw, 0.86rem);
  line-height: 1.95;
  letter-spacing: 0.015em;
  flex: 1;
}

.strength-card__badge {
  min-width: 7.5rem;
  margin: 1.25rem 0 0;
  padding: 0.5rem 1.2rem;
  color: #ffffff;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  letter-spacing: 0.04em;
  border: 0.0625rem solid #637099;
  border-radius: 999rem;
  background:
    linear-gradient(
      180deg,
      #efc2ca 0%,
      #cd9dae 48%,
      #68749a 100%
    );
}

/* デザインに活かす3つの力 */

.strength-power {
  display: grid;
  grid-template-columns:
    minmax(12rem, 1.15fr)
    minmax(0, 2.7fr)
    minmax(12rem, 1.1fr);
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2rem);
  width: min(100%, 72rem);
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  padding:
    clamp(1.75rem, 3vw, 2.5rem)
    clamp(1.5rem, 2.8vw, 2.25rem);
  border: 0.0625rem solid #f1d4d9;
  border-radius: 0.9rem;
  background-color: #fff8f9;
}

.strength-power__intro {
  min-width: 0;
}

.strength-power__intro h3 {
  margin: 0 0 1rem;
  color: #ef8595;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
}

.strength-power__intro h3 span {
  color: #283457;
  font-family:
    "Inria Serif",
    "Times New Roman",
    serif;
  font-size: clamp(3rem, 4.5vw, 4.25rem);
  line-height: 1;
}

.strength-power__intro p {
  margin: 0;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(0.72rem, 0.85vw, 0.82rem);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.strength-power__flow {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);
  align-items: start;
  gap: clamp(0.75rem, 1vw, 1rem);
  min-width: 0;
}

.strength-power__item {
  min-width: 0;
  text-align: center;
}

.strength-power__icon {
  width: clamp(4.5rem, 5.5vw, 5.5rem);
  margin: 0 auto 0.75rem;
}

.strength-power__icon img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.strength-power__item h4 {
  margin: 0 0 0.65rem;
  color: #ef8595;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  font-weight: 400;
  line-height: 1.5;
}

.strength-power__item p {
  margin: 0;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(0.68rem, 0.78vw, 0.76rem);
  line-height: 1.75;
}

.strength-power__multiply {
  display: block;
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  color: #8b8b8b;
  font-family:
    "Inria Serif",
    "Times New Roman",
    serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.strength-power__result {
  width: 100%;
  min-width: 0;
  padding:
    clamp(1.5rem, 2.5vw, 2rem)
    clamp(1rem, 1.5vw, 1.25rem);
  text-align: center;
  border: 0.0625rem solid #52649a;
  border-radius: 0.9rem;
  background-color: #ffffff;
}

.strength-power__result-icon {
  width: clamp(3.75rem, 4.8vw, 4.5rem);
  margin: 0 auto 0.8rem;
}

.strength-power__result-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.strength-power__result h4 {
  margin: 0 0 0.8rem;
  color: #ef8595;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 400;
  line-height: 1.65;
  word-break: keep-all;
}

.strength-power__result p {
  margin: 0;
  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(0.68rem, 0.78vw, 0.76rem);
  line-height: 1.75;
}

@media (min-width: 64.0625rem) {
  .strength-power__item p br {
    display: none;
  }
}

@media (max-width: 64rem) {
  .strength-cards {
    width: min(94%, 58rem);
  }

  .strength-power {
    grid-template-columns: 1fr;
    width: min(94%, 58rem);
  }

  .strength-power__intro {
    text-align: center;
  }

  .strength-power__flow {
    width: min(100%, 38rem);
    margin-inline: auto;
  }

  .strength-power__result {
    width: min(100%, 20rem);
    margin-inline: auto;
  }
}

@media (max-width: 48rem) {
  .strength-section__lead {
    text-align: left;
  }

  .strength-section__lead br {
    display: none;
  }

  .strength-cards {
    grid-template-columns: 1fr;
    width: min(94%, 34rem);
  }

  .strength-card {
    min-height: auto;
  }

  .strength-power {
    width: min(94%, 34rem);
    padding: 2rem 1.25rem;
  }

  .strength-power__flow {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .strength-power__multiply {
    display: block;
    padding: 0;
    margin: 1rem auto;
    transform: none;
    line-height: 1;
    text-align: center;
  }

  /* 3つの力（スマホ） */

.strength-power__item {
  width: 100%;
}

.strength-power__icon {
  width: 7rem;
  height: 7rem;
  margin: 0 auto 1rem;
}

.strength-power__icon img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.strength-power__item h4 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.strength-power__item p {
  font-size: 1rem;
  line-height: 1.8;
}

.strength-power__multiply {
  margin: 0.6rem auto;
  font-size: 1.8rem;
}
}

/* =========================
   CAREER
========================= */

.career-section {
  padding:
    clamp(4rem, 7vw, 7rem)
    1.25rem
    clamp(5rem, 8vw, 8rem);

  background-color: #ffffff;
}

.career-timeline {
  --career-gutter: 4.75rem;
  --career-line-left: 1.25rem;
  --career-line-width: 0.22rem;
  --career-dot-size: 1rem;

  position: relative;

  width: min(92%, 68rem);
  margin-inline: auto;
  padding-left: var(--career-gutter);
}

/* 薄いベース線 */

.career-timeline__rail {
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: var(--career-line-left);

  width: var(--career-line-width);
  overflow: hidden;

  border-radius: 999rem;
  background-color: #efd5dc;
}

/* 上から下へ常に流れる光 */

.career-timeline__progress {
  position: absolute;
  top: -35%;
  left: 0;

  width: 100%;
  height: 38%;

  border-radius: inherit;

  background:
    linear-gradient(
      180deg,
      rgba(239,111,156,0) 0%,
      rgba(239,111,156,.45) 20%,
      #EF6F9C 50%,
      rgba(255,255,255,.95) 58%,
      #EF6F9C 66%,
      rgba(239,111,156,.45) 80%,
      rgba(239,111,156,0) 100%
    );

  animation: career-line-flow 2.6s linear infinite;
}

@keyframes career-line-flow {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(470%);
  }
}

.career-item {
  position: relative;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.career-item:last-child {
  margin-bottom: 0;
}

/* 丸を縦線の中心へ配置 */

.career-item__dot {
  position: absolute;
  top: 50%;
  left: calc(
    var(--career-line-left)
    - var(--career-gutter)
    + (var(--career-line-width) / 2)
    - (var(--career-dot-size) / 2)
  );

  z-index: 2;

  width: var(--career-dot-size);
  aspect-ratio: 1;

  border-radius: 50%;
  background-color: #283457;

  transform: translateY(-50%);
}

.career-item__card {
  display: grid;
  grid-template-columns:
    minmax(9rem, 12rem)
    minmax(0, 1fr);

  min-height: 6.25rem;
  overflow: hidden;

  border: 0.0625rem solid #ef6f9c;
  border-radius: 1rem;

  background-color: #ffffff;
}

.career-item__title {
  display: grid;
  place-items: center;
  align-content: center;

  margin: 0;
  padding: 1.25rem;

  color: #ef8595;
  text-align: center;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;

  border-right: 0.0625rem solid #ef6f9c;
}

.career-item__title span {
  display: block;
}

.career-item__text {
  align-self: center;

  margin: 0;
  padding:
    clamp(1.25rem, 2vw, 1.75rem)
    clamp(1.5rem, 2.5vw, 2.25rem);

  color: #555555;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(0.8rem, 1vw, 0.94rem);
  line-height: 1.9;
  letter-spacing: 0.02em;
}



/* =========================
   CAREER スマートフォン
========================= */

@media (max-width: 48rem) {

  .career-section {
    padding:
      3.5rem
      0.9rem
      5rem;
  }

  .career-timeline {
    --career-gutter: 2.75rem;
    --career-line-left: 0.8rem;
    --career-line-width: 0.18rem;
    --career-dot-size: 0.8rem;

    width: min(100%, 34rem);
  }

  .career-timeline__rail {
    top: 1.25rem;
    bottom: 1.25rem;
  }

  .career-item {
    margin-bottom: 1rem;
  }

  .career-item__card {
    grid-template-columns: 1fr;
    min-height: auto;

    border-radius: 0.8rem;
  }

  .career-item__title {
    padding: 0.9rem 1rem;

    font-size: 1rem;

    border-right: 0;
    border-bottom: 0.0625rem solid #ef6f9c;
  }

  .career-item__title span {
    display: inline;
  }

  .career-item__text {
    padding: 1rem 1.1rem 1.2rem;

    font-size: 0.84rem;
    line-height: 1.85;
  }
}

/* =========================
   HOBBY
========================= */

.hobby-section {
  padding:
    clamp(4rem, 7vw, 7rem)
    0
    clamp(4.5rem, 7vw, 6.5rem);

  overflow: hidden;
  background-color: #ffffff;
}

.hobby-section .profile-section-title {
  width: min(calc(100% - 2.5rem), 76rem);
}

.hobby-section__lead {
  width: min(calc(100% - 2.5rem), 58rem);
  margin:
    calc(clamp(2.25rem, 4vw, 3.5rem) * -1)
    auto
    clamp(3rem, 6vw, 5rem);

  text-align: center;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 2;
  letter-spacing: 0.035em;
}

/* 右から左へ流れる写真 */

.hobby-gallery {
  width: 100%;
  overflow: hidden;
}

.hobby-gallery__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: hobby-gallery-scroll 34s linear infinite;
}

.hobby-gallery__group {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  padding-right: clamp(0.75rem, 1.4vw, 1.25rem);
}

.hobby-gallery__group img {
  display: block;
  flex: 0 0 auto;

  height: clamp(18rem, 32vw, 27rem);
  width: auto;
  max-width: none;

  object-fit: cover;
  background-color: #f7f7f7;
}

@keyframes hobby-gallery-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-25%);
  }
}

/* ==================================================
   WordPress版：タブレット・スマホ最終補強
================================================== */

@media (max-width: 64rem) {
  .profile-page .profile-introduction__inner {
    grid-template-columns: 1fr;
    width: min(92%, 58rem);
  }

  .profile-page .career-timeline {
    width: min(94%, 48rem);
  }
}

@media (max-width: 48rem) {

  /* ① ヒーローと3ボタン */
  .profile-page .profile-hero {
    min-height: 17rem;
    padding: 2.75rem 1rem;
  }

  .profile-page .profile-hero__title {
    font-size: 2rem;
  }

  .profile-page .profile-hero__subtitle {
    margin-top: 0.4rem;
    font-size: 0.75rem;
  }

  .profile-page .profile-nav {
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: min(94%, 22rem);
    margin: 1.5rem auto 3rem;
  }

  .profile-page .profile-nav__link {
    min-width: 0;
    padding: 0.45rem 0.65rem;
    font-size: 0.68rem;
    border-radius: 0.5rem;
  }

  /* ② 自己紹介 */
  .profile-page .profile-introduction {
    padding: 2.75rem 0.9rem 4.5rem;
  }

  .profile-page .profile-introduction__inner {
    width: min(100%, 34rem);
  }

  .profile-page .profile-introduction__content {
    grid-auto-rows: auto;
    gap: 1.5rem;
  }

  .profile-page .profile-text-box {
    display: flow-root;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 2.65rem 1.3rem 3.1rem;
    overflow: visible;
    background-size: 100% 100%;
    background-position: center;
  }

  .profile-page .profile-text {
    width: 100%;
    margin: 0;
    font-size: 0.875rem;
    line-height: 2;
    overflow-wrap: break-word;
    word-break: normal;
  }

  /* ③ STRENGTH */
  .profile-page .strength-cards {
    grid-template-columns: 1fr;
    width: min(100%, 32rem);
  }

  .profile-page .strength-card {
    min-height: auto;
  }

  .profile-page .strength-power {
    grid-template-columns: 1fr;
    width: min(100%, 32rem);
    padding: 1.75rem 1.15rem;
  }

  .profile-page .strength-power__flow {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .profile-page .strength-power__icon {
    width: 7rem;
    height: auto;
    margin: 0 auto 0.8rem;
  }

  .profile-page .strength-power__icon img {
    width: 100%;
    height: auto;
    max-width: none;
  }

  .profile-page .strength-power__item h4 {
    font-size: 1.25rem;
  }

  .profile-page .strength-power__item p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .profile-page .strength-power__multiply {
    margin: 0.25rem auto;
    padding: 0;
    font-size: 1.45rem;
    transform: none;
  }

  .profile-page .strength-power__result {
    width: 100%;
    margin: 0.75rem auto 0;
    padding: 1.15rem 1rem;
  }

  .profile-page .strength-power__result-icon {
    width: 5.5rem;
  }

  .profile-page .strength-power__result h4 {
    font-size: 1.2rem;
  }

  .profile-page .strength-power__result p {
    font-size: 0.9rem;
  }

  /* ④ CAREER */
  .profile-page .career-timeline {
    --career-gutter: 2.75rem;
    --career-line-left: 0.8rem;
    --career-line-width: 0.18rem;
    --career-dot-size: 0.8rem;
    width: min(100%, 34rem);
  }

  .profile-page .career-item__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    min-height: auto;
  }

  .profile-page .career-item__title {
    display: block;
    width: 100%;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed;
    white-space: normal;
    word-break: normal;
    border-right: 0;
    border-bottom: 0.0625rem solid #ef6f9c;
  }

  .profile-page .career-item__title span {
    display: inline;
  }

  .profile-page .career-item__text {
    display: block;
    width: 100%;
    min-width: 0;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

/* ==================================================
   スマホ：文章枠は画像を使わず二重線にする
================================================== */
@media (max-width: 48rem) {

  .profile-page .profile-text-box--pink,
  .profile-page .profile-text-box--navy {
    background-image: none !important;
    background-color: #ffffff;
  }

  .profile-page .profile-text-box--pink {
    border: 1px solid #f3d2cd;
    box-shadow: inset 0 0 0 4px #ffffff,
                inset 0 0 0 5px #f3d2cd;
  }

  .profile-page .profile-text-box--navy {
    border: 1px solid #555e7a;
    box-shadow: inset 0 0 0 4px #ffffff,
                inset 0 0 0 5px #555e7a;
  }

  .profile-page .profile-text-box {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 2.75rem 1.35rem 3rem;
  }
}

/* ==================================================
   CAREER縦線アニメーションを全デバイスで有効化
================================================== */
.profile-page .career-timeline__progress {
  top: -35%;
  height: 38%;
  animation: career-line-flow 2.6s linear infinite !important;
  background:
    linear-gradient(
      180deg,
      rgba(239, 111, 156, 0) 0%,
      rgba(239, 111, 156, 0.45) 20%,
      #ef6f9c 50%,
      rgba(255, 255, 255, 0.95) 58%,
      #ef6f9c 66%,
      rgba(239, 111, 156, 0.45) 80%,
      rgba(239, 111, 156, 0) 100%
    ) !important;
}



/* ==================================================
   PROFILE写真 最終調整
   長方形写真をCSSでアーチ型に切り抜き、枠と完全一致させる
================================================== */
.profile-page .profile-photo-frame,
.profile-page .profile-photo-frame__inner,
.profile-page .profile-photo {
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
}

.profile-page .profile-photo-frame {
  width: min(100%, 16.625rem);
  aspect-ratio: 266 / 341;
  padding: 0.25rem;
  overflow: hidden;
}

.profile-page .profile-photo-frame__inner {
  width: 100%;
  height: 100%;
  padding: 0.15rem;
  overflow: hidden;
  background: #fff;
}

.profile-page .profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 24%;
}

/* PC：写真を左、紹介文を右 */
@media (min-width: 64.0625rem) {
  .profile-page .profile-introduction__inner {
    display: grid;
    grid-template-columns: 16.625rem minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 5rem);
    width: min(92%, 78rem);
  }

  .profile-page .profile-photo-frame {
    margin-inline: 0;
  }
}

/* タブレット・スマホ：中央で縦並び */
@media (max-width: 64rem) {
  .profile-page .profile-introduction__inner {
    display: grid;
    grid-template-columns: 1fr;
    width: min(92%, 58rem);
  }

  .profile-page .profile-photo-frame {
    width: min(62vw, 16.625rem);
    margin-inline: auto;
  }
}
