/* ============================================================
   about.css — Aboutページ専用スタイル
   ============================================================ */

.page-hero-bg {
  font-size: clamp(6rem, 18vw, 18rem);
}

/* PROFILE LAYOUT */
.profile-section {
  padding: 6rem 2.5rem;
  border-bottom: 2.5px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}

.profile-left {
  position: sticky;
  top: 6rem;
  height: calc(100vh - 6rem);
  /* ← 追加：ナビ分を引いた高さ */
  display: flex;
  flex-direction: column;
}

/* PHOTO BOX */
.profile-img-box {
  width: 100%;
  flex: 1;
  /* ← aspect-ratio をやめて残りの高さを占有 */
  background: linear-gradient(135deg, var(--surface2), var(--surface));
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.profile-img-box::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.profile-img-placeholder {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 2;
}

.profile-img-box img {
  width: 100%;
  height: 100%;
  object-fit:
    cover;
  display: block;
}

/* NAME BOX */
.profile-name-box {
  border: 2.5px solid var(--border);
  padding: 1.2rem;
  background: var(--surface);
  margin-bottom: 2rem;
  /* ← 追加：下に余白 */
}

.profile-name-ja {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.profile-name-en {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* PROFILE BLOCKS */
.profile-block {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 2.5px solid var(--border);
}

.profile-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.block-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1.5rem;
}

.block-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.block-text {
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--text-sub);
}

.block-text+.block-text {
  margin-top: 1rem;
}

.block-text strong {
  font-weight: 700;
  color: var(--text);
}

/* INFO TABLE */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.info-table tr {
  border-bottom: 1.5px dashed var(--border);
}

.info-table tr:first-child {
  border-top: 1.5px dashed var(--border);
}

.info-table td {
  padding: 1rem 0.5rem;
  font-size: 0.88rem;
  vertical-align: top;
}

.info-table td:first-child {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-right: 2rem;
  width: 120px;
}

.info-table td:last-child {
  color: var(--text-sub);
  line-height: 1.8;
}

.info-table tr.no-border,
.info-table tr.no-border td {
  border-top: 1.5px dashed var(--border);
}

/* SKILLS GRID */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-item {
  border: 2.5px solid var(--border);
  padding: 1.2rem 1.2rem 1rem;
  background: var(--surface);
  position: relative;
  transition: transform .15s, box-shadow .15s;
}

.skill-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--border);
}

.skill-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
}

.skill-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.skill-item-level {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  color: var(--bg);
}

.lv-advanced {
  background: var(--accent);
}

.lv-intermediate {
  background: var(--accent3);
}

.lv-beginner {
  background: var(--accent2);
}

.skill-bar-bg {
  height: 4px;
  background: var(--border);
  margin-top: 0.5rem;
}

.skill-bar {
  height: 4px;
  background: var(--accent4);
  transition: width 1s ease;
}

.skill-item-desc {
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-sub);
  margin-top: 0.6rem;
}

/* TIMELINE */
.timeline {
  margin-top: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1.5px solid var(--border);
}

.timeline-item:first-child {
  border-top: 2.5px solid var(--border);
}

.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.1rem;
}

.timeline-content-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.timeline-content-desc {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-sub);
}

/* INTEREST TAGS */
.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.interest-tag {
  font-size: 0.75rem;
  font-weight: 700;
  border: 2.5px solid var(--border);
  padding: 0.4rem 1rem;
  background: var(--bg);
  transition: all .15s;
}

.interest-tag:nth-child(3n+1):hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.interest-tag:nth-child(3n+2):hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.interest-tag:nth-child(3n+3):hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* CTA */
.about-cta {
  padding: 5rem 2.5rem;
  background: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2.5px solid var(--border);
  gap: 2rem;
}

.cta-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.2;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cta-btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  text-decoration: none;
  border: 2.5px solid var(--bg);
  transition: all .15s;
}

.cta-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.cta-btn-primary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.cta-btn-secondary {
  color: var(--bg);
}

.cta-btn-secondary:hover {
  background: var(--bg);
  color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .profile-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 1.2rem;
  }

  .profile-left {
    position: static;
  }

  .profile-img-box {
    aspect-ratio: 4/3;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 4rem 1.2rem;
  }
}