/* =====================================================
   ねむのおうち  -  style.css
   コンセプト：夜空とピンクの雲（B）× パステルベッドルーム（A）
   ベースカラーは薄紫（mock/2 の水面色に合わせる）
   ===================================================== */

:root {
  --base:      #F3ECFC;  /* ほぼ白の薄紫 */
  --base-deep: #DCCBF4;  /* 薄紫（サイト全体のベース） */
  --main:      #F9B8CF;  /* ミルキーピンク */
  --main-deep: #F29BBB;
  --accent:    #C9B6F2;  /* ラベンダー */
  --accent-deep: #B49BE8; /* ラベンダー（ホバー用） */
  --night:     #3B2F4F;  /* 暗い紫 */
  --night-deep:#26203A;
  --star:      #FFE7A8;  /* うすい黄色 */
  --text:      #4A3D5C;
  --text-light:#FFF6F9;
  --card:      rgba(250, 246, 255, 0.85);
  --card-border: rgba(255, 255, 255, 0.7);
  --shadow:    0 10px 30px rgba(120, 80, 130, 0.18);
  --radius:    24px;

  --font: "Zen Maru Gothic", "Kiwi Maru", "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", sans-serif;

  /* JS が更新する値 */
  --wake: 0;       /* 0 = 夜, 1 = 昼 */
  --mx: 0;         /* マウス視差 -1..1 */
  --my: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--night-deep);
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
code {
  background: rgba(201, 182, 242, 0.35);
  padding: 0.1em 0.5em;
  border-radius: 8px;
  font-family: inherit;
}

/* -----------------------------------------------------
   固定背景：夜空 → 薄紫の昼、ピンクの雲（cloud.svg）
   ----------------------------------------------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky__night,
.sky__day {
  position: absolute;
  inset: 0;
}
.sky__night {
  background:
    radial-gradient(ellipse at 70% 90%, rgba(249, 184, 207, 0.35), transparent 55%),
    radial-gradient(ellipse at 20% 20%, rgba(201, 182, 242, 0.25), transparent 50%),
    linear-gradient(180deg, #221C33 0%, #3B2F4F 45%, #6E4E7E 80%, #B79CEA 100%);
}
.sky__day {
  background:
    radial-gradient(ellipse at 30% 100%, rgba(255, 255, 255, 0.55), transparent 50%),
    linear-gradient(180deg, #CDB8F0 0%, var(--base-deep) 40%, var(--base) 100%);
  opacity: var(--wake);
  transition: opacity 0.2s linear;
}

/* 星 */
.sky__stars {
  position: absolute;
  inset: 0;
  opacity: calc(1 - var(--wake));
  transition: opacity 0.2s linear;
}
.star {
  position: absolute;
  width: var(--s, 3px);
  height: var(--s, 3px);
  background: var(--star);
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(255, 231, 168, 0.7);
  animation: twinkle var(--t, 3s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.2); }
}

/* 流れ星 */
.sky__shooting { position: absolute; inset: 0; opacity: calc(1 - var(--wake)); }
.shooting-star {
  position: absolute;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 231, 168, 0), #fff 60%, var(--star));
  border-radius: 2px;
  transform-origin: right center;
  transform: rotate(-30deg);
  animation: shoot 1.2s ease-out forwards;
  filter: drop-shadow(0 0 4px #fff);
}
@keyframes shoot {
  0%   { opacity: 0; translate: 0 0;        scale: 0.2 1; }
  15%  { opacity: 1; }
  100% { opacity: 0; translate: -420px 240px; scale: 1 1; }
}

/* 雲 */
.sky__clouds {
  position: absolute;
  inset: 0;
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 8px));
  transition: transform 0.6s ease-out;
}
.cloud {
  position: absolute;
  /* images/cloud.svg の形（塗り＋輪郭線）をシルエットとして使い、色は background で決める */
  aspect-ratio: 942 / 613.5;
  background: rgba(249, 184, 207, 0.6);
  -webkit-mask: url(../images/cloud.svg) center / contain no-repeat;
  mask: url(../images/cloud.svg) center / contain no-repeat;
  animation: drift linear infinite;
}

.cloud--1 { width: 240px; top: 16%; left: -300px; animation-duration: 95s; opacity: .8; }
.cloud--2 { width: 170px; top: 34%; left: -220px; animation-duration: 70s; animation-delay: -30s; opacity: .55; }
.cloud--3 { width: 320px; top: 58%; left: -400px; animation-duration: 120s; animation-delay: -60s; opacity: .7; }
.cloud--4 { width: 130px; top: 78%; left: -180px; animation-duration: 60s; animation-delay: -15s; opacity: .5; }
.cloud--5 { width: 200px; top: 6%;  left: -260px; animation-duration: 85s; animation-delay: -50s; opacity: .45; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 500px)); }
}

/* -----------------------------------------------------
   カーソルのおとも
   ----------------------------------------------------- */
.companion {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 900;
  pointer-events: none;
  /* 初期位置のみ。マウス追従中は script.js がインラインの transform で上書きする */
  transform: translate(-50%, -50%);
  will-change: transform;
}
.companion__star {
  display: block;
  font-size: 26px;
  color: var(--star);
  text-shadow: 0 0 10px rgba(255, 231, 168, 0.9);
  animation: companion-spin 8s linear infinite;
}
.companion__zzz {
  position: absolute;
  left: 22px;
  top: -30px;
  font-size: 26px;
  color: var(--text-light);
  text-shadow: 0 0 6px var(--night);
  opacity: 0;
  transition: opacity 0.6s;
  white-space: nowrap;
}
.companion.is-sleepy .companion__zzz { opacity: 1; animation: zzz-float 2.4s ease-in-out infinite; }
.companion.is-sleepy .companion__star { animation-play-state: paused; opacity: .7; }
@keyframes companion-spin { to { transform: rotate(360deg); } }

@media (pointer: coarse), (max-width: 768px) {
  .companion { display: none; }
}

.trail {
  position: fixed;
  z-index: 899;
  pointer-events: none;
  font-size: 14px;
  color: var(--main);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: trail-fade 1.1s ease-out forwards;
  transform: translate(-50%, -50%);
}
.trail--star { color: var(--star); }
.trail--heart { color: var(--main-deep); }
@keyframes trail-fade {
  0%   { opacity: 1; translate: 0 0; scale: 0.6; }
  60%  { opacity: 0.8; scale: 1.1; }
  100% { opacity: 0; translate: var(--dx, 0px) -40px; scale: 0.6; }
}

/* -----------------------------------------------------
   ヘッダー
   ----------------------------------------------------- */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 16px;
}
.nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 20px;
  background: rgba(243, 236, 252, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--card-border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
}

.nav__list {
  display: flex;
  gap: 4px;
}
.nav__list a {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s;
}
.nav__list a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--night);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__list {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    padding: 12px;
    background: rgba(243, 236, 252, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
  }
  .nav__list.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list a { display: block; text-align: center; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* -----------------------------------------------------
   レイアウト共通
   ----------------------------------------------------- */
main { position: relative; z-index: 1; }
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 110px 0; }

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--night);
}
.section__sub {
  margin: 10px 0 40px;
  color: var(--night);
  opacity: 0.75;
}
.sub-title {
  margin: 48px 0 18px;
  font-size: 1.25rem;
  color: var(--night);
}

.card {
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 6px solid var(--main);
  border-radius: 3px;
}

/* スクロール出現：布団からむくっ */
.reveal {
  opacity: 0;
  transform: translateY(34px) rotate(1.2deg);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2, .9, .3, 1.2);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* -----------------------------------------------------
   SNS アイコンボタン（フラット）
   ----------------------------------------------------- */
.pillow-btn {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--night);
  font-size: 1.3rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.pillow-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}
.pillow-btn:active {
  transform: scale(0.96);
}
.pillow-btn--wide {
  width: 108px;
}

/* SNSアイコン（SVGの塗りは --night 色に合わせて画像側で指定） */
.sns-icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.sns-icon--vrchat { width: 80px; height: 40px; }

/* -----------------------------------------------------
   ヒーロー
   ----------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 60px;
  color: var(--text-light);
}
.hero__inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
}
.hero__text { position: relative; z-index: 2; }

.hero__title {
  margin: 0 0 50px;
  overflow: hidden;
}
/* name_logo.png は 1920x1080 で周囲に透明余白があるため、
   拡大＋負マージンで余白を詰めてロゴ本体をカラム幅いっぱいに表示する */
.hero__logo {
  display: block;
  width: 137%;
  max-width: none;
  height: auto;
  margin: -17% 0 -15% -18.5%;
}
.hero__lead {
  font-size: 1.05rem;
  opacity: 0.92;
  margin-bottom: 28px;
}
.hero__lead small { opacity: 0.6; font-size: 0.8rem; }
.hero__sns { display: flex; gap: 14px; }

/* キャラクター */
.hero__chara {
  position: relative;
  display: grid;
  place-items: center;
}

/* 枠なしで画像をそのまま表示する。
   avatar/t_full.webp は左右に透明余白があり本体がやや右寄り（中心が幅の約53%）なので、
   --chara-cx を使って本体が枠の中央に来るよう左マージンで調整する。
   立ち絵を差し替えたら --chara-cx（本体中心の位置 ÷ 画像幅）だけ直せばよい */
.chara-img {
  --chara-cx: 0.53;
  --chara-w: min(100%, 420px);
  position: relative;
  width: var(--chara-w);
  height: auto;
  justify-self: start;
  margin-left: calc(50% - var(--chara-cx) * var(--chara-w));
  transform: translate(calc(var(--mx) * -6px), calc(var(--my) * -4px));
  transition: transform 0.6s ease-out;
}

/* Zzz */
.zzz {
  position: absolute;
  top: 6%;
  right: 4%;
  font-weight: 700;
  color: var(--star);
  text-shadow: 0 0 10px rgba(255, 231, 168, 0.8);
  pointer-events: none;
}
.zzz span {
  position: absolute;
  opacity: 0;
  animation: zzz-float 3.6s ease-in-out infinite;
}
.zzz span:nth-child(1) { font-size: 1.2rem; left: 0;    animation-delay: 0s; }
.zzz span:nth-child(2) { font-size: 1.6rem; left: 18px; animation-delay: 1.2s; }
.zzz span:nth-child(3) { font-size: 2.1rem; left: 40px; animation-delay: 2.4s; }
@keyframes zzz-float {
  0%   { opacity: 0; transform: translate(0, 10px) rotate(-8deg) scale(0.6); }
  20%  { opacity: 1; }
  80%  { opacity: 0.6; }
  100% { opacity: 0; transform: translate(14px, -48px) rotate(10deg) scale(1.2); }
}

@media (max-width: 768px) {
  .hero { padding-top: 100px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  /* ロゴ → 立ち絵 → リード文 → SNS の順に並べる */
  .hero__text { display: contents; }
  .hero__title { order: 1; width: 80%; margin: 0 auto 16px; }
  .hero__chara { order: 2; display: block; overflow: hidden; margin-bottom: 24px; }
  .hero__lead { order: 3; }
  .hero__sns { order: 4; justify-content: center; }
  /* 枠より大きく表示しつつ、本体が中央に来るよう --chara-cx で左マージンを調整する */
  .chara-img {
    --chara-w: min(140%, 600px);
    max-width: none;
  }
}

/* -----------------------------------------------------
   About
   ----------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.profile { margin: 0; }
.profile div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px dotted rgba(201, 182, 242, 0.6);
}
.profile div:last-child { border-bottom: 0; }
.profile dt {
  font-weight: 700;
  color: var(--main-deep);
}
.profile dd { margin: 0; }

.about__tags {
  display: grid;
  gap: 16px;
}
.tag-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 20px 22px;
}
.tag-card__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: var(--accent);
  font-size: 1.5rem;
}
.tag-card__icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.tag-card h4 { font-size: 1.05rem; }
.tag-card p { font-size: 0.92rem; opacity: 0.85; }

@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------
   VTuber：スケジュール
   1 行 = 1 日。左に曜日と日付、右にその日の枠を並べる（縦並び）
   ----------------------------------------------------- */
.schedule {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.schedule__day {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  text-align: center;
}
.schedule__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 144px;
  font-weight: 700;
  padding: 6px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--night);
}
.schedule__day--weekend .schedule__name { background: var(--main); }
.schedule__slot {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 5px;
  background: linear-gradient(180deg, #fff, var(--base));
  border: 1.5px solid rgba(249, 184, 207, 0.7);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}
.schedule__slot b { display: inline; margin-right: 8px; font-weight: 700; }
a.schedule__slot { cursor: pointer; }
/* 同じ日に複数枠あるときは横に並べる（入りきらなければ折り返す） */
.schedule__slots {
  flex: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}
.schedule__slots > .schedule__slot { flex: 1 1 200px; }
.schedule__date {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.85;
}
.schedule__day--today .schedule__name { box-shadow: 0 0 0 4px var(--star); }
.schedule__slot--off {
  background: transparent;
  border-style: dashed;
  color: rgba(74, 61, 92, 0.5);
}
@media (max-width: 640px) {
  .schedule { gap: 6px; }
  .schedule__name { flex-basis: 96px; }
  .schedule__slots { flex-direction: column; }
  .schedule__slots > .schedule__slot { flex: 0 0 auto; }
  .schedule__slot { padding: 8px 12px; font-size: 0.95rem; }
}
/* 読み込み中・読み込み失敗のときの一行 */
.schedule__note {
  grid-column: 1 / -1;
  padding: 10px 4px;
  font-size: 0.9rem;
  opacity: 0.7;
}
.schedule__note a {
  font-weight: 700;
  text-decoration: underline;
  opacity: 0.9;
}

/* アーカイブ */
.archives {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.archive {
  padding: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.archive:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(120, 80, 130, 0.28); }
.archive__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
/* YouTube のサムネ。hqdefault (4:3) の上下黒帯が切り取り線に重なって
   拡大率によって 1px 見えるので、上下左右とも 1.5% ずつ余分に切る */
.archive__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}
.archive__title {
  font-weight: 700;
  font-size: 0.98rem;
  /* 実際の配信タイトルは長いので 2 行で切る */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.archive__meta { font-size: 0.82rem; opacity: 0.65; margin-top: 4px; }
/* 読み込み中・読み込み失敗のときの一行 */
.archives__note {
  grid-column: 1 / -1;
  padding: 18px 4px;
  font-size: 0.9rem;
  opacity: 0.7;
}
.archives__note a {
  font-weight: 700;
  text-decoration: underline;
  opacity: 0.9;
}

.gear { margin-top: 32px; }
.gear__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.gear__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}
@media (max-width: 768px) {
  .archives { grid-template-columns: 1fr; }
  .gear__list { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------
   VRChat：ポラロイド
   ----------------------------------------------------- */
.polaroids {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* 1段目：縦2枚（各2列・中央寄せ）／2段目：横長2枚（各3列） */
  gap: 24px;
  margin-bottom: 36px;
}
.polaroid {
  grid-column: span 2;
  margin: 0;
  padding: 12px 12px 18px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(60, 30, 70, 0.25);
  text-align: center;
  font-size: 0.9rem;
  font-family: "Kiwi Maru", var(--font);
  transition: transform 0.35s cubic-bezier(.2, .9, .3, 1.3), box-shadow 0.35s;
}
.polaroid:nth-child(1) { grid-column: 2 / 4; } /* 縦2枚を中央に */
.polaroid:nth-child(2) { grid-column: 4 / 6; }
.polaroid--wide { grid-column: span 3; }      /* 横長は2枚並び */
.polaroid.is-visible { transform: rotate(var(--tilt)); }
.polaroid.is-visible:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.06);
  box-shadow: 0 22px 40px rgba(60, 30, 70, 0.35);
  z-index: 2;
}
.polaroid__photo {
  aspect-ratio: 9 / 16; /* 縦長の写真 */
  margin-bottom: 10px;
  border-radius: 3px;
  overflow: hidden;
  background: #EFE8F5;
}
.polaroid__photo--wide { aspect-ratio: 16 / 9; }
.polaroid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid figcaption { color: var(--text); }

.vrc-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
/* プロフィール／活動時間：見出し列を少し広めに */
.profile--vrc div { grid-template-columns: 136px 1fr; }
.dot-list--sub { margin-top: 4px; font-size: 0.92rem; }
.dot-list--sub li { padding: 3px 0 3px 20px; }
.dot-list--sub li::before { content: "・"; }
.text-link {
  color: var(--main-deep);
  text-decoration: underline;
  text-decoration-color: rgba(242, 155, 187, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--main-deep); }

/* 作ったもの：文章を縦に並べる */
.made-list li {
  padding: 14px 0;
  border-bottom: 2px dotted rgba(201, 182, 242, 0.6);
}
.made-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.made-list li:first-child { padding-top: 0; }
.made-list__title {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.made-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.9;
}
.dot-list li {
  padding: 6px 0 6px 22px;
  position: relative;
}
.dot-list li::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--main-deep);
}

@media (max-width: 768px) {
  .polaroids { gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .polaroid:nth-child(1) { grid-column: 1 / 3; } /* 縦長は2枚並び */
  .polaroid:nth-child(2) { grid-column: 3 / 5; }
  .polaroid--wide { grid-column: 1 / -1; }    /* 横長は1枚ずつ全幅 */
  .vrc-info { grid-template-columns: 1fr; }
  .profile--vrc div { grid-template-columns: 1fr; gap: 2px; }
}

/* -----------------------------------------------------
   Links：リンクボタン（フラット）
   ----------------------------------------------------- */
.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.link-pillow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--night);
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}
.link-pillow__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.link-pillow__icon img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.link-pillow__icon--vrchat { width: 80px; }
.link-pillow__icon--vrchat img { width: 80px; height: 40px; }
.link-pillow.is-visible:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}
.link-pillow.is-visible:active {
  transform: scale(0.98);
}
@media (max-width: 768px) {
  .links { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------
   フッター：おやすみ
   ----------------------------------------------------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 80px 20px 40px;
  text-align: center;
  color: var(--text-light);
}
.footer__chara {
  position: relative;
  width: 200px;
  height: 230px;
  margin: 0 auto 6px;
  overflow: hidden;
  /* 下端をふわっと消す（画像は後で差し替え予定の仮画像） */
  -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 65%, transparent 100%);
}
.footer__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 200px;
  filter: brightness(0.85);
  animation: sleep-breathe 4.5s ease-in-out infinite;
}
@keyframes sleep-breathe {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.zzz--footer { top: 20px; right: -14px; z-index: 3; }
.footer__msg { font-size: 1.3rem; letter-spacing: 0.15em; }
.footer__copy { font-size: 0.8rem; opacity: 0.6; margin-top: 8px; }

/* ページ先頭へ */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--accent);
  font-size: 1.3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
.to-top__icon {
  display: block;
  width: 28px;
  height: 28px;
}
.to-top.is-show { opacity: 1; transform: none; }
.to-top.is-show:hover { background: var(--accent-deep); transform: translateY(-2px); }

/* -----------------------------------------------------
   動きを減らす設定
   ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
