/* ============================================================
   推しクリ！ トップ — SEOコンテンツ面と同一のデザインシステム
   （F:\Claude\oshikuri site/src/styles/global.css から移植・app 3.2）
   portal.css の後に読み込み、SSR差し込み要素（chips/cards等）も上書きする。
   規則: 地はほぼ白のピンク/ラベンダー、高彩度は面積を絞る、黒は使わない
   ============================================================ */

:root {
  --bg: #FDF2F8; --bg-alt: #F7F1FB; --bg-mid: #FAE6F9; --lav: #EBD8F7;
  --ink: #2D2A4A; --ink-soft: #55507A; --ink-faint: #8B86AD;
  --pink: #F06FA0; --pink-deep: #EC4899; --purple: #9B7BC8;
  --purple-light: #A78BFA; --sky: #7EC8F0; --gold: #F5C542;
  --card: #FFFFFF; --line: #F5D4E4; --line-soft: #EFE2F4;
  --grad: linear-gradient(135deg, #F06FA0 0%, #A78BFA 55%, #7EC8F0 100%);
  --grad-soft: linear-gradient(135deg, #FDE7F1 0%, #EFE4FB 55%, #E3F2FC 100%);
  --shadow-sm: 0 2px 10px rgba(240, 111, 160, 0.10);
  --shadow-md: 0 10px 28px rgba(155, 123, 200, 0.18);
  --radius: 22px; --radius-sm: 14px;
  --font-display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'BIZ UDGothic', sans-serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --sparkle-pink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F06FA0' d='M12 0c.9 6.4 4.7 10.2 12 12-7.3 1.8-11.1 5.6-12 12-.9-6.4-4.7-10.2-12-12C7.3 10.2 11.1 6.4 12 0Z'/%3E%3C/svg%3E");
  --sparkle-purple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23A78BFA' d='M12 0c.9 6.4 4.7 10.2 12 12-7.3 1.8-11.1 5.6-12 12-.9-6.4-4.7-10.2-12-12C7.3 10.2 11.1 6.4 12 0Z'/%3E%3C/svg%3E");
  --sparkle-sky: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237EC8F0' d='M12 0c.9 6.4 4.7 10.2 12 12-7.3 1.8-11.1 5.6-12 12-.9-6.4-4.7-10.2-12-12C7.3 10.2 11.1 6.4 12 0Z'/%3E%3C/svg%3E");
}

body.portal {
  font-family: var(--font-body); color: var(--ink); background: var(--bg);
  line-height: 1.9; margin: 0; overflow-x: hidden;
}
.portal h1, .portal h2, .portal h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.45; }
.portal a { color: var(--pink-deep); }
.portal :focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.portal .site-head {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
  background: rgba(253, 242, 248, 0.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft); padding: 12px 24px;
}
.portal .brand { margin: 0; }
.portal .brand a {
  font-family: var(--font-display); font-weight: 900; font-size: 1.45rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.portal .brand a::before {
  content: ''; width: 20px; height: 20px;
  background: var(--sparkle-pink) center/contain no-repeat;
}
.portal .site-nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.portal .site-nav a {
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  color: var(--ink-soft); padding: 7px 13px; border-radius: 999px; text-decoration: none;
}
.portal .site-nav a:hover { background: var(--bg-mid); color: var(--pink-deep); }
.portal .site-nav a.nav-cta { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.portal .site-nav a.nav-cta:hover { filter: brightness(1.07); color: #fff; }
/* モバイル: ブランド行＋横スクロールのナビ行の2段構成（折返しで3段に暴れるのを防ぐ） */
@media (max-width: 720px) {
  .portal .site-head { flex-wrap: wrap; gap: 6px 10px; padding: 10px 16px; }
  .portal .brand a { font-size: 1.25rem; }
  .portal .site-nav {
    margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
  }
  .portal .site-nav::-webkit-scrollbar { display: none; }
  .portal .site-nav a { white-space: nowrap; flex: 0 0 auto; }
}

/* ---------- hero ---------- */
.portal .hero {
  position: relative; overflow: hidden; padding: 64px 24px 72px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  max-width: 1120px; margin-inline: auto;
}
.portal .hero::before {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: #FAD9EC; filter: blur(60px); opacity: 0.55; top: -140px; right: -80px; pointer-events: none;
}
.portal .hero::after {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: #E6D9FA; filter: blur(60px); opacity: 0.5; bottom: -160px; left: -100px; pointer-events: none;
}
.portal .hero > * { position: relative; }
.portal .hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.88rem;
  color: var(--purple); background: #fff; border: 1px solid var(--line-soft);
  padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.portal .hero .eyebrow::before {
  content: ''; width: 13px; height: 13px;
  background: var(--sparkle-purple) center/contain no-repeat;
}
.portal .hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem); font-weight: 900; letter-spacing: 0.01em;
  margin: 0 0 14px; line-height: 1.35;
}
.portal .hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.portal .hero .lead { color: var(--ink-soft); font-size: 1.02rem; max-width: 34em; margin: 0; }
.portal .hero .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; max-width: 560px; padding: 0; }
.portal .hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.portal .btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 13px 28px; border-radius: 999px; transition: transform 0.18s ease, filter 0.18s ease;
}
.portal .btn:hover { transform: translateY(-2px); }
.portal .btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.portal .btn-primary:hover { filter: brightness(1.07); }
.portal .btn-ghost { background: #fff; color: var(--pink-deep); border: 2px solid var(--pink); }
.portal .btn-ghost:hover { background: var(--bg-mid); }

.portal .hero-visual { justify-self: center; position: relative; }
.portal .hero-visual .ring {
  width: min(320px, 68vw); aspect-ratio: 1 / 1; border-radius: 50%;
  padding: 8px; background: var(--grad); box-shadow: var(--shadow-md); box-sizing: border-box;
}
.portal .hero-visual .ring img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  border-radius: 50%; border: 6px solid #fff; box-sizing: border-box; display: block;
}
.portal .hero-visual .tag {
  position: absolute; margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; background: #fff; border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.portal .hero-visual .t1 { top: 4%; left: -10%; color: var(--pink-deep); }
.portal .hero-visual .t2 { bottom: 14%; right: -12%; color: var(--purple); }
.portal .hero-visual .t3 { bottom: -6%; left: 6%; color: var(--sky); }

@media (max-width: 860px) {
  .portal .hero { grid-template-columns: 1fr; gap: 36px; padding: 44px 24px 56px; }
  .portal .hero-visual { order: -1; }
  .portal .hero-visual .ring { width: min(230px, 60vw); }
}

/* ---------- sections ---------- */
.portal main > section, .portal main > .wrap-band { max-width: 1120px; margin-inline: auto; }
.portal main > section { padding: 40px 24px 8px; }
.portal main > section.hero { padding: 64px 24px 72px; }
.portal main > section h2 {
  font-size: 1.55rem; font-weight: 900; display: flex; align-items: center; gap: 10px;
  margin: 0 0 8px;
}
.portal main > section h2::before {
  content: ''; width: 22px; height: 22px; flex-shrink: 0;
  background: var(--sparkle-pink) center/contain no-repeat;
}
.portal .sec-sub { color: var(--ink-faint); font-size: 0.92rem; margin: 0 0 20px; }

/* ---------- chips（静的・SSR両方に効く） ---------- */
.portal .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; }
.portal .chip, .portal .chips a {
  display: inline-flex; align-items: center; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem;
  color: var(--ink-soft); background: #fff; border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.portal .chip:hover, .portal .chips a:hover {
  color: var(--pink-deep); border-color: var(--pink); background: var(--bg-mid);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}

/* ---------- 検索（SSR差し込み） ---------- */
.portal .searchform { display: flex; gap: 10px; margin: 0 0 14px; }
.portal .searchform input {
  flex: 1; max-width: 420px; font-family: var(--font-body); font-size: 1rem;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.portal .searchform input:focus { border-color: var(--pink); outline: none; box-shadow: var(--shadow-sm); }
.portal .searchform button {
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; cursor: pointer;
  padding: 11px 26px; border: none; border-radius: 999px; background: var(--grad); color: #fff;
  box-shadow: var(--shadow-sm);
}
.portal .searchform button:hover { filter: brightness(1.07); }

/* ---------- cards（注目クリエイター・SSR差し込み） ---------- */
.portal .cards {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin: 0; padding: 0;
}
.portal .cards .card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.portal .cards .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--pink); }
.portal .cardlink { text-decoration: none; color: inherit; display: block; }
.portal .cardimage { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--grad-soft); }
.portal .cardname { font-family: var(--font-display); font-weight: 700; margin: 10px 14px 0; }
.portal .cardcopy { font-size: 0.85rem; color: var(--ink-soft); margin: 4px 14px 0; }
.portal .cardtags, .portal .cardbadges { font-size: 0.78rem; color: var(--ink-faint); margin: 4px 14px 12px; }
.portal .empty { color: var(--ink-faint); background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 22px; }
.portal .more { margin: 16px 0 0; }
.portal .more a { font-family: var(--font-display); font-weight: 700; }
@media (max-width: 960px) { .portal .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .portal .cards { grid-template-columns: 1fr; } }

/* ---------- グループカード（プラットフォーム・ガイド） ---------- */
.portal .group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.portal .group-grid .gcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.portal .gcard h3 { font-size: 1.05rem; margin: 0 0 6px; }
.portal .gcard p { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 12px; }
.portal .gcard .chips { gap: 6px; }
@media (max-width: 960px) { .portal .group-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .portal .group-grid { grid-template-columns: 1fr; } }

/* ---------- 使い方3ステップ ---------- */
.portal .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portal .step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.portal .step .num {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--grad); color: #fff; font-family: var(--font-display);
  font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.portal .step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.portal .step p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 700px) { .portal .steps-grid { grid-template-columns: 1fr; } }

/* ---------- CTAバンド ---------- */
.portal .cta-band {
  margin: 64px 24px 0; border-radius: calc(var(--radius) + 8px);
  background: var(--grad); color: #fff; position: relative; overflow: hidden;
  padding: 48px 36px; text-align: center; box-shadow: var(--shadow-md);
}
.portal .cta-band::before, .portal .cta-band::after {
  content: ''; position: absolute; width: 32px; height: 32px; opacity: 0.7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFFFFF' d='M12 0c.9 6.4 4.7 10.2 12 12-7.3 1.8-11.1 5.6-12 12-.9-6.4-4.7-10.2-12-12C7.3 10.2 11.1 6.4 12 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.portal .cta-band::before { top: 20px; left: 5%; }
.portal .cta-band::after { bottom: 20px; right: 6%; width: 22px; height: 22px; }
.portal .cta-band h2 { justify-content: center; font-size: 1.5rem; font-weight: 900; margin: 0 0 8px; }
.portal .cta-band h2::before { display: none; }
.portal .cta-band p { opacity: 0.94; max-width: 40em; margin: 0 auto 22px; }
.portal .cta-band .btn { background: #fff; color: var(--pink-deep); }
@media (min-width: 1168px) { .portal .cta-band { margin-inline: auto; max-width: 1072px; } }
@media (max-width: 620px) {
  .portal .cta-band { margin: 48px 0 0; padding: 40px 22px; }
  .portal .actions .btn { flex: 1 1 auto; justify-content: center; }
  .portal .hero .actions { display: flex; }
}

/* ---------- 広告枠（SSR差し込み） ---------- */
.portal .adslot .note { color: var(--ink-faint); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 18px; }

/* ---------- footer ---------- */
.portal .site-foot {
  margin-top: 88px; background: var(--bg-alt); border-top: 1px solid var(--line-soft);
  padding: 40px 24px 28px;
}
.portal .foot-nav {
  max-width: 1120px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; gap: 8px 22px;
}
.portal .foot-nav a { color: var(--ink-soft); font-size: 0.88rem; text-decoration: none; }
.portal .foot-nav a:hover { color: var(--pink-deep); text-decoration: underline; }
.portal .copyright { max-width: 1120px; margin: 0 auto; color: var(--ink-faint); font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  .portal * { transition: none !important; }
}
