:root {
  --bg: rgb(227, 208, 208);
  --ink: #3a2a2c;
  --muted: #6b5658;
  --accent: #9d2135;
  --paper: rgba(255, 252, 248, 0.82);
  --column: 640px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 森: 上は看板つきの木、左右は蔓を縦に繰り返す */
.forest {
  min-height: 100vh;
  background:
    url("img/bg-top.webp") top center / min(1000px, 100%) auto no-repeat,
    url("img/bg-side.webp") top center / min(1000px, 100%) auto repeat-y;
  padding: 0 16px;
}

/* 看板（名前の札）が背景の木に描かれているので、その分の高さを空ける */
.sign { height: min(35vw, 350px); }

/* 扉: 閉じた絵と開いた絵を重ね、スクロールで入れ替える */
.door {
  position: relative;
  width: min(100%, var(--column));
  margin: 0 auto;
  aspect-ratio: 1;
}
.door img { position: absolute; inset: 0; width: 100%; transition: opacity 1.2s ease; }
.door-open { opacity: 0; }
.door.is-open .door-open { opacity: 1; }
.door.is-open .door-closed { opacity: 0; }

main, .footer {
  width: min(100%, var(--column));
  margin: 0 auto;
}

section { padding: 48px 0 16px; }

.ribbon { margin: 0 auto 24px; width: min(100%, 520px); }

/* アルバム */
.album {
  background: var(--paper);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}
.album img { width: min(100%, 360px); margin: 0 auto 16px; border-radius: 4px; }
.album-label { margin: 0; font-size: 0.8rem; color: var(--muted); }
.album-title { margin: 0 0 12px; font-size: 1.4rem; letter-spacing: 0.12em; }
.album-notes { text-wrap: balance; list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.85rem; color: var(--muted); }

.buy {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.buy:hover { filter: brightness(1.1); }
/* Stripe のリンクを貼るまでは押せない「準備中」 */
.buy[href=""] { background: #b9a9aa; pointer-events: none; }
.buy[href=""]::after { content: "（準備中）"; }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; font-size: 0.9rem; }

/* 動画 */
.works-heading { margin: 40px 0 12px; font-size: 1rem; text-align: center; }
.works {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.works a {
  display: block; text-decoration: none;
  background: var(--paper); border-radius: 8px; overflow: hidden;
}
.works img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.works span { display: block; padding: 8px 10px; font-size: 0.8rem; line-height: 1.5; }
.works a:hover img { opacity: 0.85; }

/* プロフィール */
.profile {
  background: var(--paper);
  border-radius: 12px;
  padding: 28px 24px;
  font-size: 0.9rem;
}
.profile img { width: min(100%, 240px); margin: 0 auto 16px; border-radius: 4px; }
.profile-name { text-align: center; font-size: 1.15rem; font-weight: bold; }
.profile-name span { display: block; font-size: 0.75rem; font-weight: normal; color: var(--muted); }

/* フッター */
.footer { padding: 48px 0 32px; text-align: center; font-size: 0.8rem; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 12px; }
.sns { font-size: 0.95rem; font-weight: bold; }
.copy { color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .door img { transition: none; }
}
