/* ==============================
   基本設定
============================== */
body {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  margin: 0;
  padding: 0;
  background-image: url("../images/background.webp");
  background-color: #f5f2e8;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

header {
  text-align: center;
  padding: 20px 10px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(240,240,240,0.7));
  border-bottom: 2px solid #ddd;
}

.group-title {
  font-family: 'Kiwi Maru', sans-serif;
  font-weight: 700;
  color: #333;
  font-size: 2em;
  margin: 10px 0;
}

.group-logo {
  width: 120px;
  height: auto;
}


/* ==============================
   メンバー詳細
============================== */
.member-detail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 30px;
  padding: 30px 20px;
}

.member-photo-large {
  width: 230px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.member-profile {
  max-width: 500px;
  text-align: left;
  font-family: 'Shippori Mincho', serif;
}

.member-name {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 0 5px;
  color: #222;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
  text-align: center;
}

.member-furigana {
  display: block;
  font-size: 0.7em;
  color: #555;
  font-weight: normal;
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-align: center;
}

.member-generation {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 15px;
}

.member-bio {
  font-family: 'Kiwi Maru', sans-serif;
  font-size: 1.1em;
  color: #444;
}

/* 舞い降りの湯（カード表示） */
/* 舞い降りの湯（カード表示） */
.member-onsen {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(180, 120, 180, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(2px);
  font-size: 0.95rem;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.member-onsen-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #6a3a6a;
  background: rgba(210, 160, 210, 0.18);
  border: 1px solid rgba(180, 120, 180, 0.25);
  white-space: nowrap;
}

/* ♨をCSSだけで付ける（HTML変更不要） */
.member-onsen-label::before {
  content: "♨";
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.9;
}

.member-onsen-link {
  color: #7b2f7b;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(180, 120, 180, 0.20);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.member-onsen-link:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
  text-decoration: none;
}

.member-onsen-link:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}


/* ==============================
   プロフィール表
============================== */
.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 1em;
  border-radius: 8px;
}

.profile-table th,
.profile-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #ccc;
  text-align: left;
  font-family: 'Kiwi Maru', sans-serif;
}

.profile-table th {
  width: 30%;
  color: #555;
  font-weight: 600;
}

.profile-table td {
  color: #222;
}

.profile-table td.unit {
  font-weight: bold;
}

/* ==============================
   コメント
============================== */
.member-comment {
  display: inline-block;
  padding: 10px 15px;
  font-style: italic;
}

/* ==============================
   前／次メンバーリンク
============================== */
.member-nav {
  text-align: center;
  margin: 30px 0;
}

.member-nav a {
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  color: #333;
}

/* ==============================
   フッター
============================== */
footer {
  text-align: center;
  padding: 20px;
  background: #eee;
  font-size: 0.9em;
}

/* ==============================
   スマホ用
============================== */
@media (max-width: 600px) {

  /* 画像2枚を横並びのままにする */
  .member-detail {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* 画像の幅をスマホ向けに調整（2枚並ぶサイズ） */
  .member-photo-large {
    width: calc(50% - 20px);
  }

  /* プロフィールを画像の下に回す */
  .member-profile {
    width: 100%;
    order: 3; /* ← 画像より後ろに配置 */
    text-align: center;
    margin-top: 20px;
  }

  /* 左寄せに戻したい要素を上書き */
  .member-bio,
  .profile-table td,
  .member-comment {
    text-align: left;
    font-family: var(--font-mincho);
    line-height: 1.8;
  }
  .profile-table td {
    white-space: normal;   /* 通常の改行 */
    word-break: keep-all;  /* 日本語の途中で切らない */
  }
}
