.about-page {
  --about-blue: var(--accent, #0071e3);
  --about-muted: #86868b;
  padding-bottom: 40px;
}

.about-page p {
  line-height: 1.9;
}

.eyebrow {
  color: var(--about-blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
}

/* Hero */
.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 100px 24px 90px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.about-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1.18;
}

.about-hero h2 span {
  color: var(--about-blue);
}

.hero-description {
  position: relative;
  z-index: 1;
  margin: 28px auto 0;
  color: var(--about-muted);
  font-size: 1rem;
}

.hero-tags {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span,
.tech-list span {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
}

.hero-decoration {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 50%;
  width: min(65vw, 600px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--about-blue) 16%, transparent),
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
}

/* Section headings */
.profile-section,
.story-section {
  padding: 90px 0 0;
}

.section-heading {
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2,
.site-section h2,
.closing-section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.section-heading > p:last-child {
  margin: 14px 16px 0;
  color: var(--about-muted);
  font-size: 0.9rem;
}

/* Profile cards */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-card {
  min-width: 0;
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card-bg, var(--bg));
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--about-blue);
}

.intro-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--about-blue) 9%, var(--bg)),
    var(--bg) 75%
  );
}

.card-number {
  color: var(--about-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.profile-card h3 {
  margin: 22px 0 14px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.profile-card p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--about-muted);
}

.profile-card p:last-child {
  margin-bottom: 0;
}

.interest-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.interest-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--about-blue);
  background: color-mix(in srgb, var(--about-blue) 10%, transparent);
  font-size: 1rem;
}

.goal-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.8;
}

.goal-list li::marker {
  color: var(--about-blue);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tech-list span {
  font-weight: 600;
}

/* Website description */
.site-section {
  margin-top: 90px;
  padding: 52px 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--border) 18%, var(--bg));
}

.site-section h2 {
  max-width: 650px;
}

.site-section > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--about-muted);
  font-size: 0.93rem;
}

.text-link,
.closing-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--about-blue);
  font-weight: 650;
  text-decoration: none;
}

.text-link span,
.closing-link span {
  transition: transform 0.2s ease;
}

.text-link:hover span,
.closing-link:hover span {
  transform: translateX(4px);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 48px auto 0;
}

/* タイムラインの縦線 */
.timeline::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 89px; /* 年表示（80px）＋ギャップ・調整分の中央に配置 */
  width: 2px;
  background: var(--accent);
  transform: scaleY(var(--timeline-scale, 0));
  transform-origin: top;
  transition: transform 0.1s linear;
  pointer-events: none;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  column-gap: 48px;
  margin-bottom: 28px;
}

.timeline-year {
  padding-top: 24px;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-align: right;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.timeline-content {
  position: relative;
  min-width: 0;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

/* タイムラインのドット */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 85px; /* 縦線の中心に合わせるよう微調整 */
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent);
  z-index: 2;
}

/* スクロールで選択された項目 */
.timeline-item.is-active .timeline-year {
  color: var(--accent);
  transform: scale(1.05);
}

.timeline-item.is-active .timeline-content {
  border-color: var(--accent);
}

.timeline-item.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(0 113 227 / 15%);
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .timeline-year,
  .timeline-content,
  .timeline-item::before {
    transition: none;
  }
}

.timeline-label {
  color: #86868b;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.timeline-content h3 {
  margin: 10px 0;
  font-size: 1.15rem;
}

.timeline-content p {
  margin: 0;
  color: var(--text);
  opacity: 0.75;
  font-size: 0.9rem;
  line-height: 1.9;
}

@media (max-width: 768px) {
  /* プロフィールカードを1列に */
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* タイムラインをスマホ用レイアウトに変更 */
  .timeline {
    margin-top: 36px;
  }

  .timeline::after {
    left: 5px;
  }

  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-left: 20px;
    margin-bottom: 28px;
  }

  .timeline-year {
    padding-top: 0;
    text-align: left;
    font-size: 1.2rem;
  }

  .timeline-content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 20px;
  }

  .timeline-item::before {
    top: 5px;
    left: 0;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
