/* ==========================================================
   ことちゃんのおうち スタイルシート
   テーマ: ふんわりかわいい系（ピンク×クリーム）
   ========================================================== */

:root {
  --pink: #ffd6e0;
  --pink-deep: #f8a5bc;
  --pink-text: #d16d8a;
  --cream: #fff8f0;
  --brown: #7a5c52;
  --brown-light: #a8877c;
  --mint: #d8f0e8;
  --yellow: #fff3c9;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(209, 109, 138, 0.15);
}

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

body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  background: linear-gradient(180deg, #fff0f5 0%, var(--cream) 40%, #fdf3f7 100%);
  color: var(--brown);
  line-height: 1.9;
  overflow-x: hidden;
}

/* ゆらゆら浮かぶ肉球 */
.paw-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.paw-bg span {
  position: absolute; font-size: 28px; opacity: 0.12;
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(-18px) rotate(10deg); }
}

main { position: relative; z-index: 1; }

/* ヘッダー */
header {
  text-align: center;
  padding: 64px 20px 32px;
}
.hero-illust {
  width: 180px; height: 180px; object-fit: contain;
  animation: bounce 3s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  color: var(--pink-text);
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.tagline {
  color: var(--brown-light);
  font-weight: 500;
  margin-top: 4px;
}
.hero-badges {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 20px;
}
.hero-badges span {
  background: var(--white);
  border: 2px solid var(--pink);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pink-text);
  box-shadow: var(--shadow);
}

section {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
}
h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--pink-text);
  margin-bottom: 28px;
}
h2 .deco { font-size: 1.2rem; }

/* プロフィール */
.profile-card {
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  border: 3px dashed var(--pink);
}
.profile-card img {
  width: 100%; border-radius: 24px; display: block;
}
.profile-list { list-style: none; }
.profile-list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dotted var(--pink);
  font-size: 0.98rem;
}
.profile-list li:last-child { border-bottom: none; }
.profile-list .label {
  flex-shrink: 0;
  background: var(--pink);
  color: var(--white);
  border-radius: 999px;
  padding: 2px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}
.age-note { color: var(--pink-text); font-weight: 700; }

/* 名前の由来 */
.name-story {
  margin-top: 24px;
  background: linear-gradient(135deg, #2e3560 0%, #4a4e8f 55%, #6a5a9e 100%);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 34px 30px;
  color: #fff6fa;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.name-story .stars span {
  position: absolute;
  font-size: 14px;
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
.name-story h3 {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffe3ee;
  margin-bottom: 12px;
}
.name-story p {
  font-size: 0.95rem;
  max-width: 560px;
  margin: 0 auto;
}
.name-story .flow {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9rem;
}
.name-story .flow span {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 227, 238, 0.5);
  border-radius: 999px;
  padding: 4px 16px;
}
.name-story .flow .arrow {
  background: none; border: none; padding: 0;
  color: #ffd6e0;
}

/* ギャラリー */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.gallery figure {
  background: var(--white);
  border-radius: 24px;
  padding: 12px 12px 16px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  transition: transform 0.3s ease;
}
.gallery figure:nth-child(even) { transform: rotate(1.4deg); }
.gallery figure:hover { transform: rotate(0) scale(1.04); }
.gallery img {
  width: 100%; height: 240px; object-fit: cover;
  border-radius: 16px; display: block;
}
.gallery figcaption {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brown-light);
  margin-top: 10px;
}

/* 1日のスケジュール */
.timeline {
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 36px 28px;
}
.timeline ol { list-style: none; position: relative; padding-left: 24px; }
.timeline ol::before {
  content: "";
  position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 3px;
  background: repeating-linear-gradient(var(--pink) 0 8px, transparent 8px 16px);
  border-radius: 3px;
}
.timeline li {
  position: relative;
  padding: 8px 0 8px 16px;
}
.timeline li::before {
  content: "🐾";
  position: absolute; left: -26px; top: 10px;
  font-size: 15px;
}
.timeline .time {
  display: inline-block;
  background: var(--yellow);
  border-radius: 999px;
  padding: 1px 14px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-right: 10px;
  color: var(--brown);
}
.timeline .memo {
  display: block;
  font-size: 0.85rem;
  color: var(--brown-light);
  padding-left: 4px;
}

/* とりせつカード */
.torisetsu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.torisetsu .card {
  border-radius: 24px;
  padding: 22px 22px 24px;
  box-shadow: var(--shadow);
  background: var(--white);
}
.torisetsu .card:nth-child(3n+1) { background: #edf0ff; border: 2px solid #c9d2f5; }
.torisetsu .card:nth-child(3n+2) { background: #e0f5ec; border: 2px solid #b5e2cf; }
.torisetsu .card:nth-child(3n+3) { background: #fff3c9; border: 2px solid #f2dd9a; }
.torisetsu h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--pink-text);
  margin-bottom: 8px;
}
.torisetsu p { font-size: 0.92rem; }

/* ごはんレシピ */
.recipe {
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 36px 30px;
  border: 3px solid var(--mint);
}
.recipe ol { padding-left: 4px; list-style: none; counter-reset: step; }
.recipe li {
  counter-increment: step;
  display: flex; align-items: baseline; gap: 12px;
  padding: 7px 0;
  font-size: 0.95rem;
}
.recipe li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--pink-deep);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  transform: translateY(4px);
}
.recipe .note {
  margin-top: 16px;
  background: var(--yellow);
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 0.88rem;
}

/* Instagram ボタン */
.ig-link {
  text-align: center;
  margin-top: 28px;
}
.ig-link a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf);
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 999px;
  padding: 13px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.ig-link a:hover { transform: scale(1.06); }
.ig-link .note {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--brown-light);
  font-weight: 500;
}

footer {
  text-align: center;
  padding: 48px 20px 64px;
  color: var(--brown-light);
  font-size: 0.88rem;
  font-weight: 500;
}
footer .heart { color: var(--pink-deep); }

@media (max-width: 640px) {
  .profile-card { grid-template-columns: 1fr; }
  .profile-card img { max-width: 260px; margin: 0 auto; }
}
