/* ==========================================================================
   sukisuki.club — 蓮ノ空のこと好き好きクラブのみなさんのポータル
   コンセプト「よく晴れた蓮ノ空」: ビビッドな空色×白×メンバーカラー11色。
   丸ゴシックとポップな動きで、ラブライブ！らしい明るさに。
   ========================================================================== */

:root {
  --font-display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;

  --navy: #253a63;
  --navy-soft: rgba(37, 58, 99, 0.72);
  --sky: #35b6ea;
  --sky-deep: #1c96cf;
  --pink: #ff5fa2;
  --star: #fad764; /* いちばん星色 */
  --cloud-white: #ffffff;
  --bg-blue: #e9f6fe;

  --card-border: #dbeefb;
  --shadow-soft: 0 10px 30px rgba(53, 182, 234, 0.16);
  --shadow-hover: 0 18px 40px rgba(53, 182, 234, 0.28);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius: 22px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(255, 95, 162, 0.3); }

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   スクロール出現アニメーション
   -------------------------------------------------------------------------- */

.rv {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s var(--bounce);
  transition-delay: var(--d, 0s);
}

.rv.show { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: clamp(90px, 13vh, 150px) 24px clamp(90px, 13vh, 150px);
  background: linear-gradient(180deg, #38b5ec 0%, #7fd2f5 55%, #c9ecfc 100%);
}

.hero-inner { position: relative; z-index: 3; max-width: 780px; }

.hero-inner::before {
  content: "";
  position: absolute;
  inset: -12% -20%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  z-index: -1;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--sky-deep);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 8px 22px;
  margin-bottom: 26px;
  box-shadow: 0 4px 14px rgba(28, 130, 180, 0.18);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 6.4vw, 4.2rem);
  line-height: 1.32;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 10px;
}

.hero-line { display: block; }

.ch {
  display: inline-block;
  animation: chpop 0.55s var(--bounce) both;
  animation-delay: calc(var(--i) * 42ms + 0.15s);
}

@keyframes chpop {
  from { opacity: 0; transform: translateY(28px) scale(0.6) rotate(-6deg); }
}

.c1 { color: #ff1a94; }
.c2 { color: #f8a000; }
.c3 { color: #0089c9; }
.c4 { color: #8d79dd; }

.hero-swoosh {
  width: min(320px, 62vw);
  margin: 0 auto 22px;
  display: block;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 999px;
  transition: transform 0.3s var(--bounce), box-shadow 0.3s ease;
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 95, 162, 0.45);
}

.btn-primary:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 14px 30px rgba(255, 95, 162, 0.55); }

.btn-ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(28, 130, 180, 0.2);
}

.btn-ghost:hover { transform: translateY(-3px) scale(1.06); }

/* 雲 */
.hero-clouds i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  animation: drift 60s linear infinite;
  z-index: 1;
}

.hero-clouds i:nth-child(1) { width: 520px; height: 150px; top: 12%; left: -10%; }
.hero-clouds i:nth-child(2) { width: 380px; height: 110px; top: 30%; right: -8%; animation-duration: 80s; animation-delay: -25s; }
.hero-clouds i:nth-child(3) { width: 620px; height: 170px; bottom: 6%; left: 12%; animation-duration: 100s; animation-delay: -50s; }
.hero-clouds i:nth-child(4) { width: 300px; height: 90px; bottom: 26%; right: 16%; animation-duration: 70s; animation-delay: -12s; }

@keyframes drift {
  from { transform: translateX(-7vw); }
  50%  { transform: translateX(7vw); }
  to   { transform: translateX(-7vw); }
}

/* きらきら */
.hero-sparkles i {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fffdf0;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 2.6s ease-in-out infinite;
  z-index: 2;
}

.hero-sparkles i:nth-child(1) { top: 18%; left: 30%; }
.hero-sparkles i:nth-child(2) { top: 12%; right: 26%; width: 10px; height: 10px; animation-delay: 0.5s; }
.hero-sparkles i:nth-child(3) { top: 42%; left: 12%; width: 11px; height: 11px; animation-delay: 1s; }
.hero-sparkles i:nth-child(4) { top: 38%; right: 10%; animation-delay: 1.5s; }
.hero-sparkles i:nth-child(5) { bottom: 24%; left: 22%; width: 9px; height: 9px; animation-delay: 2s; }
.hero-sparkles i:nth-child(6) { bottom: 16%; right: 32%; width: 12px; height: 12px; animation-delay: 0.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50%      { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

/* ふわふわ浮かぶメンバーアイコン */
.hero-icons img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 5px 12px rgba(20, 90, 130, 0.2));
  animation: floaty 4.6s ease-in-out infinite alternate;
  animation-delay: var(--d);
}

@keyframes floaty {
  from { transform: translateY(-9px) rotate(-5deg); }
  to   { transform: translateY(11px) rotate(6deg); }
}

/* --------------------------------------------------------------------------
   マーキー(ファンネームのリボン)
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  background: #fff;
  border-top: 4px solid;
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, #68be8d, #ba2636, #afb3af, #f8b500, #005e99, #ff1a94, #a2d7dd, #fad764, #9d8de2, #3ad6df, #f46455) 1;
  padding: 11px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: mq 28s linear infinite;
}

.mq-half {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}

.mq-half span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--sky-deep);
  white-space: nowrap;
}

.mq-half img { width: 26px; height: 26px; }

@keyframes mq {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   セクション共通
   -------------------------------------------------------------------------- */

.sec { padding: clamp(70px, 9vw, 110px) 24px; }

.sec-inner { max-width: var(--maxw); margin: 0 auto; }

.sec-sites   { background: #ffffff; }
.sec-about   { background: var(--bg-blue); }
.sec-members { background: #ffffff; }
.sec-units   { background: var(--bg-blue); }
.sec-history { background: #ffffff; }

.sec-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--pink);
  margin-bottom: 10px;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.1vw, 2.2rem);
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-bottom: 14px;
}

.sec-desc { margin-bottom: 36px; color: var(--navy-soft); }

/* 波の区切り */
.dv { line-height: 0; }
.dv svg { display: block; width: 100%; height: 70px; }

/* --------------------------------------------------------------------------
   ファンサイト
   -------------------------------------------------------------------------- */

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.site-card {
  position: relative;
  background: #fff;
  border: 2px solid var(--card-border);
  border-radius: var(--radius);
  padding: 34px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--bounce), box-shadow 0.3s ease;
  overflow: hidden;
}

.site-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--edge, var(--sky));
}

.site-card:hover { transform: translateY(-8px) rotate(-0.7deg); box-shadow: var(--shadow-hover); }

.site-card-soon { border-style: dashed; box-shadow: none; }
.site-card-soon:hover { transform: none; box-shadow: none; }
.site-card-soon::before { opacity: 0.35; }

.site-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.site-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(37, 58, 99, 0.16);
}

.site-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--sky-deep);
}

.site-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.site-desc { font-size: 0.92rem; color: var(--navy-soft); flex-grow: 1; }

.site-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sky-deep);
  text-decoration: none;
  border-bottom: 2px solid rgba(28, 150, 207, 0.35);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
  word-break: break-all;
}

.site-link:hover { color: var(--pink); border-color: var(--pink); }

/* --------------------------------------------------------------------------
   蓮ノ空とは
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--bounce);
}

.about-card:hover { transform: translateY(-5px); }

.about-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: var(--sky-deep);
}

.about-card p { font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   メンバー
   -------------------------------------------------------------------------- */

.gen { margin-bottom: 36px; }
.gen:last-child { margin-bottom: 0; }

.gen-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.gen-note {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--navy-soft);
  margin-left: 14px;
}

.member-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.member {
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--c) 35%, #eef7fd);
  border-radius: 18px;
  transition: transform 0.3s var(--bounce), box-shadow 0.3s ease;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 30%, transparent);
}

.member-link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}

.member-link::after {
  content: "↗";
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--c) 60%, var(--navy));
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.member:hover .member-link::after { opacity: 1; }

.member-icon {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
}

.member:hover .member-icon { animation: wiggle 0.5s ease; }

@keyframes wiggle {
  25% { transform: rotate(-10deg) scale(1.08); }
  75% { transform: rotate(10deg) scale(1.08); }
}

.member-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.4;
}

.member-kana {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--navy-soft);
}

.member-color {
  grid-column: 2;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--c) 65%, var(--navy));
}

/* --------------------------------------------------------------------------
   ユニット
   -------------------------------------------------------------------------- */

.unit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
}

.unit-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 0 28px 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--bounce), box-shadow 0.3s ease;
}

.unit-card:hover { transform: translateY(-7px) rotate(0.5deg); box-shadow: var(--shadow-hover); }

.unit-band {
  height: 9px;
  margin: 0 -28px 18px;
  background-size: 300% 100%;
  animation: bandflow 7s linear infinite;
}

@keyframes bandflow {
  to { background-position: 300% 0; }
}

.unit-name { line-height: 0; }

.unit-name img { height: 64px; width: auto; }

.unit-desc { font-size: 0.92rem; color: var(--navy-soft); flex-grow: 1; }

.unit-members {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.unit-members img { width: 30px; height: 30px; margin-right: -2px; }

/* --------------------------------------------------------------------------
   あゆみ(年表)
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  border-left: 3px dashed rgba(53, 182, 234, 0.45);
  margin-left: 8px;
  padding-left: 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 0 0 32px 30px;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--star);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(250, 215, 100, 0.5), 0 0 14px rgba(250, 215, 100, 0.7);
}

.timeline time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--sky-deep);
  padding-top: 1px;
}

.tl-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.tl-body p { font-size: 0.9rem; color: var(--navy-soft); }

/* --------------------------------------------------------------------------
   第2章へ(夜のライブステージ)
   -------------------------------------------------------------------------- */

.sec-next {
  position: relative;
  text-align: center;
  padding: clamp(100px, 15vw, 170px) 24px;
  overflow: hidden;
  color: #f3f1ff;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 30%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1px 1px at 34% 64%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 48% 18%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 60% 48%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 72% 32%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 86% 60%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 10% 76%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 92% 14%, rgba(255, 255, 255, 0.7), transparent),
    linear-gradient(180deg, #3b3f8f 0%, #35317a 55%, #262a5e 100%);
}

.next-inner { position: relative; z-index: 2; max-width: 660px; margin: 0 auto; }

.next-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.next-desc { font-size: 1rem; opacity: 0.9; }

/* 106期の、みっつの星 */
.next-stars i {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--star);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3.2s ease-in-out infinite;
}

.next-stars i:nth-child(1) { top: 26%; left: 24%; }
.next-stars i:nth-child(2) { top: 18%; right: 28%; animation-delay: 1.1s; }
.next-stars i:nth-child(3) { bottom: 24%; right: 18%; animation-delay: 2.2s; }

/* 流れ星 */
.shooting-star {
  position: absolute;
  top: 16%;
  left: -12%;
  width: 130px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  border-radius: 2px;
  transform: rotate(16deg);
  opacity: 0;
  animation: shoot 8s ease-in infinite;
  animation-delay: 2s;
}

@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(16deg); opacity: 0; }
  4%   { opacity: 1; }
  13%  { transform: translate(75vw, 22vh) rotate(16deg); opacity: 0; }
  100% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */

.footer {
  background: linear-gradient(180deg, #262a5e 0%, #1d2148 100%);
  color: rgba(243, 241, 255, 0.85);
  padding: 64px 24px 42px;
  text-align: center;
}

.footer-inner { max-width: 680px; margin: 0 auto; }

.footer-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-dots i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
}

.footer-disclaimer { font-size: 0.8rem; line-height: 2; margin-bottom: 24px; }

.footer-links {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-links a:hover { color: var(--star); border-color: var(--star); }

.footer-copy { font-size: 0.75rem; letter-spacing: 0.12em; opacity: 0.55; }

/* --------------------------------------------------------------------------
   レスポンシブ / モーション配慮
   -------------------------------------------------------------------------- */

@media (max-width: 719px) {
  .pc-only { display: none; }

  .hero-icons img:nth-child(n + 7) { display: none; }

  .dv svg { height: 42px; }

  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .ch { animation: none; }

  .hero-clouds i,
  .hero-sparkles i,
  .hero-icons img,
  .marquee-track,
  .unit-band,
  .next-stars i,
  .shooting-star,
  .member:hover .member-icon { animation: none; }

  .rv { opacity: 1; transform: none; transition: none; }

  .btn, .site-card, .about-card, .member, .unit-card { transition: none; }
}
