@charset "UTF-8";

.profile-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(56px, 7vw, 120px);
  align-items: start;
  max-width: var(--content);
}

:where(.profile-intro) .photo {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
}

:where(.profile-intro) .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50% 50% 12px 12px;
}

:where(.profile-intro) .body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

:where(.profile-intro) .title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

:where(.profile-intro) .role-en {
  font-size: var(--text-xs);
  line-height: 1;
  letter-spacing: var(--ls-label);
  color: var(--accent);
}

:where(.profile-intro) .role {
  font-size: var(--h3-size);
  line-height: 1.6;
  font-weight: var(--fw-medium);
}

:where(.profile-intro) .skills {
  line-height: 1.7;
}

:where(.profile-intro) .name {
  margin-top: 8px;
  font-size: var(--h3-size);
  line-height: 1.6;
}

:where(.profile-intro) .name-en {
  margin-left: 16px;
  font-size: var(--text-sm);
  letter-spacing: .2em;
  color: var(--accent);
}

.profile-data {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px 24px;
  line-height: 1.7;
}

:where(.profile-data) .term {
  padding-top: 3px;
  font-size: var(--text-sm);
  letter-spacing: .2em;
  color: var(--accent);
}

:where(.profile-data) .desc {
  margin: 0;
}

:where(.profile-data) .hobby {
  transition: transform .4s var(--ease-bounce), background .3s ease;
}

:where(.profile-data) .hobby:hover {
  transform: translateY(-6px) rotate(-3deg);
  background: var(--mist);
}

:where(.profile-data) .hobby small {
  margin-left: 8px;
  font-size: var(--text-xs);
  color: var(--accent);
}

:where(.profile-data) .mbti {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

:where(.profile-data) .mbti-type {
  font-family: var(--font-en);
  font-size: var(--h3-size);
  line-height: 1;
  letter-spacing: .04em;
}

:where(.profile-data) .mbti-text {
  display: block;
  margin-top: 12px;
  line-height: var(--lh-body);
  color: var(--ink);
}

/* 2列は 961px 以上のときだけ。狭い画面では1列にして固定（sticky）を外し、本文と重ならないようにする */

.profile-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  max-width: var(--content);
}

:where(.profile-story) .side {
  position: static;
}

@media (min-width: 961px) {
  .profile-story {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: clamp(56px, 6vw, 96px);
  }

  :where(.profile-story) .side {
    position: sticky;
    top: 120px;
  }
}

:where(.profile-story) .timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

:where(.profile-story) .event {
  display: flex;
  align-items: center;
  gap: 18px;
}

:where(.profile-story) .event::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: var(--mist);
  border-radius: 50% 50% 12px 12px;
}

:where(.profile-story) .event.is-now::before {
  background: var(--accent);
}

:where(.profile-story) .year {
  flex-shrink: 0;
  width: 92px;
  font-size: var(--text-sm);
  letter-spacing: .16em;
  color: var(--accent);
}

:where(.profile-story) .label {
  line-height: 1.6;
}

:where(.profile-story) .body {
  --stack-gap: 24px;
  line-height: var(--lh-body);
}

:where(.profile-story) .chapter {
  margin-top: 40px;
}

:where(.profile-story) .chapter:first-child {
  margin-top: 0;
}

:where(.profile-intro) .role,
:where(.profile-intro) .name {
  font-family: var(--font-ja);
}

:where(.profile-story) .chapter {
  padding-top: 32px;
  border-top: 1px solid var(--mist);
}

@media (max-width: 760px) {
  :where(.profile-intro) .photo {
    max-width: 320px;
    margin-inline: auto;
  }

  .profile-data {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
  }
}
