/**
 * links.css - Link-in-Bio ページ専用スタイル
 *
 * フレームワークレス実装（純粋CSS）
 * - グラスモーフィズム
 * - 光沢エフェクト
 * - イントロアニメーション
 * - レスポンシブ対応
 */

/* ========================================
   リセット・基本スタイル
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
}

body {
  background: transparent;
  color: #fff;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ヘッダー・フッター非表示 */
body > header,
body > footer {
  display: none !important;
}

/* メインコンテンツエリアの背景を透明に */
body > main {
  background: transparent !important;
}

/* ========================================
   Canvas背景（パーティクルシステム用）
   ======================================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(120% 70% at 50% -8%, #4338a6, transparent 55%), linear-gradient(178deg, #2b2769 0%, #5a3fb0 26%, #8a4ad4 50%, #c24fcf 68%, #3a2f5e 84%, #191a2c 100%);
}

/* ========================================
   Links 本体
   ======================================== */
.links {
  max-width: 440px;
  margin: 0 auto;
  padding: 56px 22px 34px;
}

/* --- ヘッダー --- */
.head {
  text-align: center;
  margin-bottom: 30px;
  transition: translate .6s cubic-bezier(.2,.8,.2,1);
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: rgba(226,224,255,.62);
  margin-bottom: 14px;
  padding-left: .42em;
}

.title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 74px;
  line-height: .92;
  margin: 0;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #ffffff 0%, #d6cdff 58%, #b7a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgba(150,120,255,.5));
}

.subtitle {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(232,230,255,.78);
}

/* --- リスト --- */
.list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 30px -12px rgba(20,8,60,.6), inset 0 1px 0 rgba(255,255,255,.22);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .28s, box-shadow .28s,
              translate .6s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 55ms);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 60%, white);
    box-shadow: 0 18px 40px -14px rgba(20,8,60,.7),
                0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
                inset 0 1px 0 rgba(255,255,255,.3);
  }
  .card:hover::after {
    animation: sheen .9s forwards;
  }
}

.card:active {
  transform: translateY(-1px) scale(.992);
}

@keyframes sheen {
  to {
    transform: translateX(220%) skewX(-18deg);
  }
}

/* Coming Soon */
.card.is-soon {
  opacity: .6;
  pointer-events: none;
}

/* ロゴ／アイコン枠 */
.chip {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: var(--accent);
  background: radial-gradient(120% 120% at 30% 20%, color-mix(in srgb, var(--accent) 32%, transparent), rgba(255,255,255,.06));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, rgba(255,255,255,.2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 18px -6px var(--accent);
}

/* ロゴ差し替え: <img> に src 属性を付けるだけでモノグラムが置き換わります */
.chip-logo {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chip-logo[src]:not([src=""]) {
  display: block;
}

.chip-logo[src]:not([src=""]) ~ .chip-mark {
  display: none;
}

.chip-mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #fff;
  text-shadow: 0 0 12px var(--accent);
}

.body {
  flex: 1;
  min-width: 0;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  flex: 0 0 auto;
  font-family: "Space Grotesk", sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .14em;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.desc {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(232,230,255,.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.go {
  flex: 0 0 auto;
  color: rgba(255,255,255,.5);
  transition: transform .25s, color .25s;
}

@media (hover: hover) {
  .card:hover .go {
    transform: translateX(3px);
    color: #fff;
  }
}

.foot {
  margin-top: 30px;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(220,218,250,.5);
}

/* --- イントロ（透明度は使わず transform のみ。万一トランジションが
   止まっても内容は必ず表示される＝最悪わずかにズレるだけ）--- */
@media (prefers-reduced-motion: no-preference) {
  html.intro .head {
    translate: 0 18px;
  }
  html.intro .card {
    translate: 0 18px;
  }
}

/* ========================================
   アクセシビリティ
   ======================================== */
.card:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 4px;
}

/* prefers-reduced-motion対応 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
