/* =====================================================
   profile.css — プロフィールページ専用スタイル
   ===================================================== */

/* .page-hero は news.css と共通のため、
   ここでは PROFILE 版の色調整のみ */
.profile-hero .marquee-track span:nth-child(odd) {
  -webkit-text-stroke-color: var(--pink-main);
}

/* =====================
   グループ紹介
   ===================== */
.profile-hero {
    width: 80%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}
.profile-hero img {
    width: 90%;
    height: 650px;
    object-fit: cover;
    object-position: center top;
    display: block;
  padding-top: 20px;
}

.profile-intro {
  max-width: 800px;
  margin: 40px auto 0;
  font-size: 16px;
  line-height: 1.8;
  background: var(--group-border);
  border-radius: 12px;
  padding: 20px 30px;
}

/* =====================
   MEMBER セクション
   ===================== */
.member-section {
  background: var(--white);
  padding: 50px 20px 80px;
  background-image: var(--dot-pattern);
  background-size: 28px 28px;
  background-color: var(--pink-bg);
}

.member-wrap {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px 48px;
  box-shadow: 0 4px 24px rgba(233,30,140,.1);
}

.member-heading {
  font-family: var(--font-logo);
  font-size: clamp(26px, 5vw, 36px);
  color: var(--pink-main);
  letter-spacing: .04em;
  margin-bottom: 28px;
}

/* グリッド: 2列 */
.member-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 28px;
}

/* メンバーカード */
.member-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
  transition: transform .2s;
}
.member-card:hover { transform: translateY(-4px); }
.member-card:focus-visible {
  outline: 3px solid var(--pink-main);
  outline-offset: 4px;
  border-radius: 8px;
}

.member-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--pink-pale);
  box-shadow: 0px 5px 15px 0px rgba(233, 30, 140, 0.19);
}
.member-photo-empty {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--pink-light), var(--pink-pale));
  border-radius: 8px;
}

.member-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 10px;
  letter-spacing: .03em;
}

/* =====================
   モーダル
   ===================== */
.member-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.member-modal[hidden] { display: none; }

/* オーバーレイ */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  cursor: pointer;
  backdrop-filter: blur(3px);
}

/* ダイアログ本体 */
.modal-inner {
  position: relative;
  z-index: 1;
  background: var(--pink-bg);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  animation: modal-in .25s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 40px;
  line-height: 1;
  color: #bbb;
  cursor: pointer;
  z-index: 2;
  transition: color .2s;
}
.modal-close:hover { color: var(--pink-main); }

/* 2カラムレイアウト */
.modal-body {
  display: flex;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

/* 写真カラム */
.modal-photo-col {
  flex: 1;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}
.modal-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  background: #333;
}

/* 情報カラム */
.modal-info-col {
  flex: 1;
  padding: 28px 28px 28px 24px;
  color: var(--white);
}

.modal-name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  color: var(--pink-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.modal-yomi {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: .05em;
}

.modal-basic {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--pink-main);
  margin-bottom: 14px;
  line-height: 1.7;
}

.modal-bio {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.8;
  color: var(--dark);
  margin-bottom: 16px;
}

/* プロフィール表 */
.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-heading);
  font-size: 13px;
  margin-bottom: 18px;
}
.modal-table tr + tr td,
.modal-table tr + tr th {
  border-top: 1px solid rgba(255,255,255,.1);
}
.modal-table th {
  color: var(--pink-main);
  font-weight: 500;
  width: 90px;
  padding: 5px 0;
  vertical-align: top;
  white-space: nowrap;
}
.modal-table td {
  color: var(--dark);
  padding: 5px 0 5px 8px;
  vertical-align: top;
}

/* SNS */
.modal-sns {
  display: flex;
  gap: 12px;
}
.modal-sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--pink-main);
  transition: background .2s;
}
.modal-sns a:hover { background: var(--pink-light); }

.member-sns-logo{
  height: 24px;
  width: auto;
  display: block;
}


/* =====================
   レスポンシブ
   ===================== */
@media (max-width: 680px) {
    .profile-hero {
    width: 100% !important;
    height: 250px;
  }
  .profile-hero img {
  width: 100%;
  height: 100%; 
  }

  .profile-intro {
    margin: 20px;
    font-size: 14px;
    line-height: 1.9;
  }

}
  .member-wrap { padding: 28px 16px 36px; }
  .member-grid { gap: 18px 14px; }
  .member-name { font-size: 13px; }

  /* モーダル: 縦積み */
  .modal-body { grid-template-columns: 1fr; }
  .modal-photo-col { border-radius: 16px 16px 0 0; max-height: 240px; }
  .modal-photo { height: 240px; min-height: unset; }
  .modal-info-col { padding: 20px 18px 24px; }

@media (max-width: 420px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
