.profile-hero {
  background: var(--black);
  color: #fff;
  padding: 3rem 1.5rem;
}

.profile-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: center;
}

.profile-avatar {
  width: 280px;
  height: 360px;
  border-radius: 4px;
  background: rgba(204,0,0,0.2);
  border: 3px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
}

.profile-name {
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.layout {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.qa-block {
  margin-bottom: 2.5rem;
}

.qa-q {
  font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--red);
  line-height: 1.6;
}

.qa-a {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 2.15;
}

.qa-a strong {
  color: var(--red);
}

.iv-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.iv-nav a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--red);
}

.iv-nav a:hover {
  text-decoration: underline;
}

@media (max-width:600px) {
  .profile-inner {
    grid-template-columns:1fr;
    text-align:center;
    justify-items:center;
  }

}

/* ── スマホ共通補完 ── */
@media (max-width: 900px) {
  /* サイドバーを本文の後ろに移動 */
  .layout {
    grid-template-columns: 1fr !important;
  }

  /* 2カラム系を全て1カラムに */
  .profile-inner {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

}

@media (max-width: 480px) {
  .layout {
    padding: 2.5rem 1rem !important;
  }

  /* voice: プロフィール */
  .profile-inner {
    grid-template-columns: 1fr !important;
    text-align: center;
    justify-items: center;
  }

  .profile-avatar {
    width: 100% !important;
    max-width: 280px;
  }

}

