html, body {
  overflow-x: hidden;
}

body {
  /* background-color: rgb(251, 251, 251); */
  color: white;
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

.centerTxt{
  font-size: 2rem;
  text-align: center;
  /* text-decoration: none; */
  color: inherit;
}

.centerTxt2{
  text-align: center;
  /* text-decoration: none; */
  color: inherit;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #222;
  color: white;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px; /* アイコンとリンクの間に余白 */
}

.header-link a{
  cursor: pointer;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
}

/* ヘッダーロゴ画像 */
.logo-img {
  height: 60px;
  width: auto;
}  

.top-section {
  text-align: center;
  padding: 1rem;
  /* background-color: rgba(37, 37, 37, 0.453); */
  position: relative; /* ← ロゴの絶対配置のために必要 */
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.top-container {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ← 左寄せ */
  gap: 1rem;
  padding: 0 2rem; /* 左右にちょっと余白 */
}

/* .logo-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  height: 60px;
} */

/* .site-logo {
  margin-left: 2rem;
  height: auto;
  width: 120px;
} */

/* .top-text {
  display: inline-block;
} */

/* スマホ専用ロゴ（トップ最上部） */
/* .sp-logo {
  text-align: center;
  margin-bottom: 0.5rem;
}
.sp-logo-img {
  max-width: 80%;
  height: auto;
}

/* 表示切り替え */
/* .sp-only {
  display: none;
}
.pc-only {
  display: block;
} */

.profile-id {
  font-size: 0.8rem;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: bold;
  margin-top: 1rem;   /* 上の余白を狭く */
  margin-bottom: 0.2rem; /* 下の余白を狭く */
  line-height: 1.1;     /* 行間も詰め気味に */
}

.catchphrase {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

.profile-section {
  display: flex;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 2rem;
  box-sizing: border-box;
  align-items: stretch;
  max-width: 1300px;        /* 最大幅を制限 */
  margin: 0 auto;          /* 中央寄せ */
}

.profile-left {
  flex: 1 1 300px;
  box-sizing: border-box;
}

.profile-right {
  flex: 1 1 300px;
  box-sizing: border-box;
  display: flex;          /* 画像を中央配置したい場合 */
  align-items: center;    /* 垂直中央 */
  justify-content: center; /* 横中央 */
  max-height: 650px;
}

.profile-table {
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  box-sizing: border-box;
}

.profile-table th {
  max-width: 140px;
  padding: 0.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgb(37, 37, 37);
}
.profile-table td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(0, 0, 0, 0.338);
}

.profile-media {
  height: 100%;  /* 親の高さいっぱい */
  width: auto;   /* 縦横比維持しつつ幅自動調整 */
  max-width: 100%; /* 横幅ははみ出さない */
  object-fit: contain;
  border-radius: 1rem;
  display: block;
}

/* 自己PRセクション */
.selfpr-section {
  width: 72%;
  padding: 1rem;
  margin: 0rem auto;
  margin-bottom: 2rem;
  border-radius: 10px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  /* background-color: rgba(37, 37, 37, 0.453); */
}

.selfpr-section h2{
  font-size: 2rem;
  text-align: center;
}

.slefpr-section-text{
  width: 80%;
  margin: 1rem auto;
  padding-bottom: 2rem;
}

/* リンクセクション */
.link-section {
  width: 73%;
  padding: 0.5rem;
  /* background-color: rgba(37, 37, 37, 0.453); */
  margin: 0rem auto;
  margin-bottom: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  padding-bottom: 2rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  max-width: 600px;
  margin: 0 auto;
  gap: 1.5rem;
  justify-items: center;
}

.link-grid img {
  width: 100px;
  height: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
}

.link-grid a:hover img {
  transform: scale(1.1);
}

/* PR動画セクション */
.pr-video-section {
  width: 70%;
  margin: 1rem auto;
  margin-bottom: 2rem;
  padding: 2rem;
  /* background-color: rgba(37, 37, 37, 0.453); */
  border-radius: 10px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  padding-bottom: 2rem;
}

.pr-video-section h2{
  font-size: 2rem;
  text-align: center;
}

/* 動画のラッパー */
.video-wrapper {
  display: flex;
  position: relative;
  width: 80%;
  padding-bottom: 56.25%; /* 16:9 の比率 */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  margin: 0 auto;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1rem;
}

/* 
.pr-video-section video,
.pr-video-section iframe {
  display: block;
  width: 720px;
  height: 480px;
  max-width: 800px;
  margin: 1rem auto;
} */

/* ギャラリーセクション */
.gallery-section {
  width: 70%;
  padding: 2rem;
  margin: 1rem auto;
  /* background-color: rgba(37, 37, 37, 0.453); */
  border-radius: 10px;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.gallery-section h2 {
  font-size: 2rem;
  text-align: center;
}

.gallery-grid {
  width: 80%;
  margin: 1rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  cursor: pointer;
}

/* サムネイル画像 */
.gallery-thumb {
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  cursor: pointer;
}

/* モーダル全体 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

/* モーダル画像 */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 1rem;
}

/* キャプション */
.modal-caption {
  margin: auto;
  text-align: center;
  color: white;
  padding: 0.5rem 0;
}

/* クローズボタン */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* 矢印 */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  user-select: none;
  border-radius: 0 3px 3px 0;
  background-color: rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover, .close:hover {
  background-color: rgba(255,255,255,0.4);
}

/* ユニットグループセクション */
.unitGroup-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
  width: 73%;
  margin: 3rem auto;
  margin-top: 120px;
  background-color: rgba(37, 37, 37, 0.453);
}

.unitGroup-box img{
  width: 400px;
  height: auto;
}

.unitGroup-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: white;
  color: rgb(90, 26, 95);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

/* 他のメンバーボックス */
.members-box {
  padding-top: 2rem;
  padding-bottom: 2rem;
  width: 100%;
  background: rgb(37, 37, 37);
}

.members-section h2{
  text-align: center;
}

.members-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.member-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  width: 150px;
  text-decoration: none;      /* aタグでも下線なし */
  color: inherit;             /* リンクカラーを継承 */
  display: block;             /* ブロック化してdiv風に */
  transition: background 0.2s;
}
.member-card img {
  width: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
}

.member-card:hover {
  background: rgba(255, 255, 255, 0.2); /* hover演出追加してもOK */
}

.member-card a {
  color: inherit;
  text-decoration: none;      /* aタグでも下線なし */
}


/* 事務所セクション */
.agency-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
  width: 73%;
  margin: 3rem auto;
  margin-top: 120px;
  background-color: rgba(37, 37, 37, 0.453);
}

.agency-box{
  width: 80%;
  margin: 1rem auto;
}

.agency-box img{
  width: 400px;
  height: auto;
  }

.agency-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem 1rem;
  background: white;
  color: rgb(90, 26, 95);
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
}

/* プレミアムスタイル */
#premium .profile-name {
  color: gold;
}
#premium .gallery-grid img {
  border: 2px solid gold;
}

/* フッター */
.footer {
  background-color: #252525;
  /* gray-900 */
  color: white;
  padding: 16px 0;
  font-size: 14px;
  text-align: center;
}

.footer-text {
  max-width: 960px;
  margin: 0 auto;
  gap: 12px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-credit a {
  color: inherit; /* リンク色を白のままに */
  text-decoration: none;
  margin: 0 8px; /* 左右に余白を追加 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .selfpr-section h2{
    font-size: 1.4rem;
  }

  .top-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .top-text {
    text-align: center;
  }

  /* スマホ用ロゴ表示、PC用ロゴ非表示 */
  .sp-only {
    display: block;
  }

  .pc-only {
    display: none;
  }

  .profile-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 1rem;   /* 上の余白を狭く */
    margin-bottom: 0.2rem; /* 下の余白を狭く */
    line-height: 1.1;     /* 行間も詰め気味に */
  }

  .catchphrase {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .profile-section {
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
  }

  .profile-left,
  .profile-right {
    order: initial;
    width: 100%;
    max-width: 100%;
  }

  .profile-left {
    order: 2;
  }

  .profile-right {
    order: 1;
  }

  .profile-table {
    width: 100%;
    max-width: 100%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .pr-video-section {
    width: 90%;
    padding: 1rem;
  }

  .pr-video-section video,
  .pr-video-section iframe {
    width: 100%;
    height: 100%;
  }

  .gallery-section {
    width: 75%;
  }

  .gallery-grid {
    width: 100%;
    margin: 1rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .selfpr-section {
    width: 82%;
  }

  .link-section {
    width: 86%;
  }

  .unitGroup-section{
    width: 90%;
  }

  .agency-section{
    width: 90%;
  }

  .unitGroup-box img{
    width: 80%;
    height: auto;
  }

  .agency-box img{
    width: 80%;
    height: auto;
  }
}



