/* プロフィール（about.html）だけのCSS */

/* ===== 基本情報 ===== */
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3.5rem;
  align-items: start;
}

.about-portrait {
  width: min(100%, 360px);
  justify-self: center;
  padding: 0 14px 14px 0;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--pink-soft);
}

.about-name span {
  display: inline-block;
  margin-left: 0.3em;
  color: var(--gray);
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.about-facts {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6rem;
}

.about-facts tr {
  border-bottom: 2px dotted var(--line);
}

.about-facts tr:first-child {
  border-top: 2px dotted var(--line);
}

.about-facts th,
.about-facts td {
  padding: 0.75rem 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.about-facts th {
  width: 5.5em;
  padding-right: 1rem;
  color: var(--pink-ink);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.about-facts td {
  font-weight: 700;
}

.about-lead {
  margin-bottom: 1.2rem;
}

.about-intro p,
.about-timeline p {
  text-wrap: pretty;
}

.about-note {
  margin-bottom: 1.4rem;
  padding: 0.8rem 1rem;
  background: var(--bg-alt);
  border-radius: 12px;
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.7;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.about-tags span {
  padding: 0.1rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ===== これまでの歩み（縦の年表） ===== */
.about-timeline {
  position: relative;
  margin: 2rem 0 0;
  padding: 0 0 0 3rem;
  list-style: none;
}

.about-step {
  position: relative;
}

.about-step + .about-step {
  margin-top: 1.6rem;
}

.about-step::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 11px);
  top: 1.55rem;
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
}

/* 点と点をつなぐ線 */
.about-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(-2rem - 2px);
  top: calc(1.55rem + 22px);
  bottom: calc(-1.6rem - 1.55rem);
  border-left: 4px dotted var(--pink);
}

.about-step-now::before {
  background: var(--green);
}

.about-step-body > p + p {
  margin-top: 0.8rem;
}

.about-when {
  margin-bottom: 0.35rem;
  color: var(--green-ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.3;
}

.about-when b {
  padding-right: 0.08em;
  color: var(--green-display);
  font-family: var(--font-num);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.about-when,
.about-step h3 {
  word-break: auto-phrase;
}

.about-step h3 {
  margin-bottom: 0.7rem;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.5;
}

.about-step-note {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* 「現在」はトップの .frame と同じ形の囲み（黒の破線＋桃のずらした枠） */
.about-step-now {
  z-index: 0;
  padding-left: 7px;
}

.about-step-frame {
  position: relative;
  padding: 1.6rem 1.5rem;
  border: 2px dashed var(--ink);
  background: #fff;
}

.about-step-frame::after {
  content: "";
  position: absolute;
  inset: -7px 7px 7px -7px;
  border: 3px solid var(--pink-soft);
  z-index: -1;
}

/* 写真 */
.about-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.about-pic {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-alt);
}

.about-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 横向きに保存された写真を縦に戻す（元のページの rotate(-90deg) と同じ向き） */
.about-pic-turn img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 75%;
  height: 133.34%;
  transform: translate(-50%, -50%) rotate(-90deg);
}

/* ===== 最後の案内（.join） ===== */
.about-keep {
  display: inline-block;
}

@media (max-width: 880px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .about-portrait {
    width: min(72%, 280px);
  }

  .about-timeline {
    padding-left: 2.2rem;
  }

  .about-step::before {
    left: calc(-1.5rem - 9px);
    width: 18px;
    height: 18px;
  }

  .about-step:not(:last-child)::after {
    left: calc(-1.5rem - 2px);
    top: calc(1.55rem + 18px);
    bottom: calc(-1.6rem - 1.55rem);
  }

  .about-step-body.panel,
  .about-step-frame {
    padding: 1.3rem 1.1rem;
  }

  .about-when b {
    font-size: 2.2rem;
  }

  .about-step h3 {
    font-size: 1.1rem;
  }

  .about-photos {
    gap: 0.4rem;
  }

  .about-pic {
    border-radius: 8px;
  }
}
