.profile-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff0f6;
  color: #333;
}

.profile-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-image {
  width: 240px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-name {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 1rem;
  color: #c71585;
  font-family: 'Potta One', cursive;
}

.reading {
  font-size: 1rem;
  color: #666;
  display: block;
  margin-top: 0.2rem;
}

.profile-info h2 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  color: #ff66b2;
  border-left: 5px solid #ffccf0;
  padding-left: 0.5rem;
}

.profile-info p {
  margin: 0.3rem 0 1rem 0.5rem;
  line-height: 1.6;
}

.profile-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 1rem;
}

.detail-button {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}

.detail-button:hover {
  background: #d4a1a1;
}

.next-talent-button {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
  gap: 0.5rem;
}

.next-talent-button img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
.next-talent-button:hover {
  background: #eee;
}
.back-button {
  display: flex;               /* ← アイコン＋テキストを制御するためにflexを使う */
  justify-content: center;    /* ← 水平方向に中央揃え */
  align-items: center;        /* ← 垂直方向にも中央揃え */
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  border-radius: 10px;
  min-width: 100px;
  max-height: 44px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  text-align: center;         /* ← 念のため中央揃え */
  line-height: 1.4;
}

.back-button:hover {
  background: #f7c3c3;
}
.profile-image-wrapper {
  position: relative;
  display: inline-block;
}

.zoom-button {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}
.zoom-button:hover {
  background: #ffeef6;
}

/* モーダル全体 */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

/* 拡大画像 */
.image-modal .modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* 閉じるボタン */
.close-modal {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.footer-info {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #c71585;
  line-height: 1.6;
  background: #fff0f8;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.1);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-info a {
  color: #c71585;
  text-decoration: underline dotted;
}

.footer-title {
  font-family: 'Potta One', cursive;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.page-nav {
  background: #fff0fa;
  border-top: 1px dashed #ffddee;
  padding: 1rem;
  text-align: center;
  position: sticky;
  bottom: 0;
  z-index: 99;
}

.page-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.page-nav a {
  color: #c71585;
  text-decoration: none;
  font-weight: bold;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: #ffffffcc;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-nav a:hover {
  background: #ffccf0;
  color: #fff;
}


.highlight-profile {
  font-weight: bold;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #ffe0f0, #e0f7ff);
  padding: 1rem;
  border-left: 6px solid #ff66b2;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(255, 105, 180, 0.15);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  animation: fadeHighlight 1.5s ease;
}

@keyframes fadeHighlight {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.sns-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.sns-icons a img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.sns-icons a img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(255, 105, 180, 0.4);
}

.sns-youtube-link {
  font-weight: bold;
  font-size: 1.1rem;
  color: #c71585;
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  background: #ffe0f4;
  border-radius: 20px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.sns-youtube-link:hover {
  background: #ff99cc;
  color: white;
}

.closeup-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0 2rem;
}

.photo-frame {
  background: linear-gradient(145deg, #ffe6f0, #f6f0ff);
  border: 4px dotted #ff99cc;
  padding: 0.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 153, 204, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 240px;
  aspect-ratio: 3 / 4; /* ← ここを追加！比率統一 */

}



.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
a.pretty-link {
  display: inline-block;
  background: #ffe0f4;
  color: #c71585;
  font-weight: bold;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  margin: 0.3rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(255, 105, 180, 0.1);
  font-size: 0.95rem;
  line-height: 1.6;
}

a.pretty-link::before {
  color: #ff66b2;
}

a.pretty-link:hover {
  background: #ffccf0;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 105, 180, 0.2);
}

/* ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
   スマホ版 SNS リンクボタン修正（ボタン統一＋横書き）
   ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */
@media (max-width: 820px) {

  /* SNSアイコン全体を1列に整列＆中央揃え */
  .sns-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  /* 各リンクボタン（背景の四角）を統一 */
  .sns-icons a.pretty-link {
    width: 90px;               /* ボタン横幅統一 */
    height: 90px;              /* ボタン縦幅統一 */
    padding: 0;                /* 余白リセット */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;       /* 角丸統一 */
    background: #ffe0f4;
    box-shadow: 0 2px 8px rgba(255,105,180,0.2);
  }

  /* アイコン画像 */
  .sns-icons a.pretty-link img {
    width: 48px;               /* 画像サイズ統一 */
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
  }

  /* 名前の文字を小さめに調整 */
  .next-talent-button span {
    font-size: 1rem;
    white-space: nowrap;       /* 改行しない */
  }

  /* ボタンの高さを統一 */
  .next-talent-button {
    height: 70px;
    padding: 0 1rem;
    border-radius: 14px;
    font-size: 1rem;
    gap: 0.5rem;
  }

  .next-talent-button img {
    width: 48px;
    height: 48px;
  }
}

/* =====================================
   シンプルな ← 戻る → ナビ
   ===================================== */
.simple-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.simple-nav a {
  color: #444;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: bold;
}

.nav-center {
  font-size: 1.4rem;
  padding: 0.3rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.simple-nav a:hover {
  opacity: 0.6;
}

/* スマホ版も完璧に中央揃え */
@media (max-width: 820px) {
  .simple-nav {
    gap: 1.5rem;
  }

  .simple-nav a {
    font-size: 1.8rem; /* スマホでは少しだけ大きく見えて綺麗 */
  }

  .nav-center {
    font-size: 1.5rem;
  }
}
/* ===========================================
   ← 戻る → ナビ（3つともボタン）
   =========================================== */
.profile-nav.simple-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

/* 3つ共通のボタン枠 */
.profile-nav.simple-nav .nav-btn {
  display: flex;
  justify-content: center;
  align-items: center;

  background: #ffffff;
  border-radius: 14px;
  padding: 0.5rem 1.2rem;

  min-width: 60px;
  height: 48px;

  font-weight: bold;
  color: #333;
  text-decoration: none;
  font-size: 1.3rem;

  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}

/* ホバー */
.profile-nav.simple-nav .nav-btn:hover {
  background: #ffe6f3;
  box-shadow: 0 3px 10px rgba(255,105,180,0.3);
  transform: translateY(-2px);
}

/* 矢印ボタン（少し小さめ） */
.profile-nav.simple-nav .nav-arrow {
  min-width: 55px;
  padding: 0 1rem;
  font-size: 1.5rem;
}

/* 戻るボタン（ちょい大きめ） */
.profile-nav.simple-nav .nav-center {
  font-size: 1.25rem;
  min-width: 90px;
}

/* スマホ対応 */
@media (max-width: 820px) {
  .profile-nav.simple-nav {
    gap: 1rem;
  }

  .profile-nav.simple-nav .nav-btn {
    height: 52px;
    font-size: 1.4rem;
  }

  .profile-nav.simple-nav .nav-arrow {
    font-size: 1.7rem;
  }

  .profile-nav.simple-nav .nav-center {
    font-size: 1.35rem;
    min-width: 100px;
  }
}
/* ────────────────
   スマホ版：YouTube の2つだけ横長にする
──────────────── */
@media (max-width: 820px) {

  /* 上2つ（X・Instagram）は元のままにするため、pretty-link には触らない */

  /* YouTube の2つだけ対象 */
  .sns-icons a.yt-link {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 260px;
    padding: 12px 16px;
    border-radius: 20px;
    background: #ffe0f4;
    margin: 0 auto;
  }

  .sns-icons a.yt-link img {
    width: 32px !important;
    height: 32px !important;
    margin-right: 8px;
  }

  .sns-icons a.yt-link span {
    white-space: nowrap; /* 一行で表示 */
    font-size: 1rem;
  }

  /* SNS アイコンの並びは縦並びのまま */
  .sns-icons {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}