:root {
  --bg1:#fff8f8;
  --bg2:#f8fffe;
  --accent1:#ffa7c4;
  --accent2:#a7d8ff;
  --text:#333;
}
body {
  margin:0;
  font-family:"Segoe UI","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;
  color:var(--text);
  background:linear-gradient(135deg,var(--bg1),var(--bg2));
  display:flex;
  flex-direction:column;
  align-items:center;
  min-height:100vh;
  overflow-x:hidden;
}
header {
  text-align:center;
  padding:32px 20px 16px;
}
header h1 {
  font-family:'Kaisei Decol', serif;
  font-size:clamp(24px,6vw,40px);
  margin:0;
  color:var(--accent1);
}
header p {
  font-size:15px;
  color:#555;
  margin:8px 0 14px;
  line-height:1.6;
}
.group-nav {
  display:flex;
  justify-content:center;
  gap:16px;
  margin:20px 0;
}
.group-btn {
  background:white;
  border:none;
  padding:10px 20px;
  border-radius:20px;
  font-size:16px;
  cursor:pointer;
  box-shadow:0 4px 8px rgba(0,0,0,.1);
  transition:all .25s;
}
.group-btn.active {
  background:var(--accent1);
  color:white;
  transform:scale(1.05);
}
.container {
  width:min(90%, 920px);
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:16px 0 40px;
}
.group {
  opacity:0;
  visibility:hidden;
  transition:opacity .5s ease;
  width:100%;
  position:absolute;
  left:0;
}
.group.active {
  opacity:1;
  visibility:visible;
  position:relative;
}
.nav {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:18px;
  flex-wrap:wrap;
  z-index:10;
}
.nav-btn {
  background:white;
  border:none;
  width:42px;
  height:42px;
  border-radius:50%;
  font-size:20px;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
  cursor:pointer;
  transition:background .2s;
}
.nav-btn:hover {
  background:#ffeef3;
}
.icon-bar {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}
.icon {
  width:56px;
  height:56px;
  border-radius:50%;
  overflow:hidden;
  filter:brightness(.6);
  cursor:pointer;
  transition:filter .2s, transform .15s;
}
.icon img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.icon.active {
  filter:brightness(1);
  transform:scale(1.08);
  box-shadow:0 0 0 4px #fff,0 0 12px rgba(255,150,200,.6);
}
.character-area {
  position:relative;
  width:100%;
  max-width:920px;
  height:auto;
}
.character {
  opacity:0;
  visibility:hidden;
  position:absolute;
  left:0; right:0;
  margin:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  transition:opacity .4s ease;
}

.character.active {
  opacity:1;
  visibility:visible;
  position:relative;
}


.character::before {
  content:"";
  position:absolute;
  top:40%;
  left:50%;
  transform:translate(-50%, -50%) scale(.6);
  width:360px;
  height:360px;
  border-radius:50%;
  background:radial-gradient(circle, var(--accent1) 20%, transparent 70%);
  opacity:0;
  filter:blur(60px);
  transition:opacity .6s ease, transform .6s ease;
  z-index:0;
}
.character.active::before {
  opacity:.8;
  transform:translate(-50%, -50%) scale(1);
}




.figure {
  width:100%;
  max-width:720px;
  aspect-ratio:1/1.1;
  margin:0 auto;
  position:relative;
}
.figure img {
  width:100%;
  height:100%;
  object-fit:contain;
  position:absolute;
  top:0;
  left:0;
  opacity:0;
  transition:opacity .4s ease;
}
.figure img.active {
  opacity:1;
}
.variant-bar {
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:8px;
}
.variant-btn {
  width:50px;
  height:50px;
  border-radius:50%;
  overflow:hidden;
  cursor:pointer;
  filter:brightness(.5);
  transition:filter .2s;
}
.variant-btn img {
  width:100%;
  height:100%;
  object-fit:cover;
}
.variant-btn.active {
  filter:brightness(1);
  box-shadow:0 0 0 3px #fff,0 0 10px rgba(255,150,200,.6);
}
.name {
  font-size:clamp(26px,5vw,38px);
  font-weight:800;
  margin:10px 0 6px;
  color:var(--accent1);
}
.desc {
  margin:0 auto;
  width:90%;
  font-size:15px;
  line-height:1.7;
  color:#555;
}
footer {
  margin:40px 0 20px;
  font-size:13px;
  color:#777;
  text-align:center;
}

.credit-link {
  position:absolute;
  bottom:8px;         /* ← 画像の右下寄り */
  right:10px;
  background:rgba(255,255,255,0.7);
  color:#555;
  font-size:13px;
  border-radius:8px;
  padding:3px 8px;
  text-decoration:none;
  z-index:5;          /* ← 画像より前に表示 */
  transition:all .25s ease;
  backdrop-filter: blur(6px); /* うっすらガラス感 */
}
.credit-link:hover {
  background:rgba(255,170,200,0.85);
  color:white;
}


.group-desc-middle {
  text-align: center;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  background: rgba(255,255,255,0.7);
  padding: 10px 18px;
  margin: 10px auto 20px;
  width: min(90%, 700px);
  border-radius: 12px;
  border: 1px solid rgba(255,170,200,0.3);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: opacity 0.3s ease;
}