@charset "UTF-8";

/* ===== ベース ===== */
:root {
  --bg: #0b0a1a;          /* 宇宙の夜空 */
  --bg2: #131228;         /* セクション背景 */
  --panel: #1c1a38;       /* カード背景 */
  --text: #f4f2ff;        /* 本文 */
  --muted: #b8b4d8;       /* 補足テキスト */
  --pink: #ff4fa3;
  --yellow: #ffd23f;
  --green: #57d16a;
  --blue: #3fa9ff;
  --purple: #b06bff;
  --line: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --maxw: 1000px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--yellow); }

/* 星空の背景（body全体に薄く敷く） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,.5), transparent),
    var(--bg);
  background-size: cover;
}

/* ===== 共通レイアウト ===== */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

section {
  padding-top: clamp(48px, 9vw, 88px);
  /* 下端は次セクションの曲線トッパー(約46px)が重なるため、その分を加算して上下の見た目余白を揃える */
  padding-bottom: calc(clamp(48px, 9vw, 88px) + 46px);
  position: relative;
}

/* ===== 曲線のセクション区切り ===== */
.topper {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 46px;
  transform: translateY(-98%);
  display: block;
  pointer-events: none;
  z-index: 1;
}
.topper path { fill: var(--topper, var(--bg)); }
.intro   { --topper: var(--bg2); }
.book    { --topper: var(--bg2); }
#movie   { --topper: var(--bg); }
#profile { --topper: var(--bg); }
.site-footer { position: relative; --topper: #05040e; }

/* ===== スクロールで下からフェードイン ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* グループ内の2つ目以降を少し遅らせて連続感を出す */
.movies .movie:nth-child(2).reveal { transition-delay: .12s; }
.profiles .profile:nth-child(2).reveal { transition-delay: .12s; }
.book-info.reveal { transition-delay: .1s; }
.intro .reveal:nth-of-type(2) { transition-delay: .08s; }
.intro .reveal:nth-of-type(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.section-head { text-align: center; margin-bottom: clamp(60px, 5vw, 44px); }

.section-head h2 {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: .06em;
}

.section-head .en {
  display: block;
  font-size: .82rem;
  letter-spacing: .3em;
  color: var(--yellow);
  margin-bottom: .4em;
  font-weight: 700;
}

/* カラフルな区切りドット */
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.dots span:nth-child(1){ background: var(--pink); }
.dots span:nth-child(2){ background: var(--yellow); }
.dots span:nth-child(3){ background: var(--green); }
.dots span:nth-child(4){ background: var(--blue); }
.dots span:nth-child(5){ background: var(--purple); }

/* ===== ヒーロー ===== */
.hero { position: relative; padding: 0; line-height: 0; background: #000; }
.hero picture { display: block; }
.hero img { width: 100%; }

/* PCはファーストビュー（画面高）に収める。宇宙背景の黒に馴染ませて上下を微トリミング */
@media (min-width: 768px) {
  .hero { height: 100vh; height: 100svh; }
  .hero picture { height: 100%; }
  .hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
}
.hero .scroll-cue {
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: #fff;
  font-size: .72rem;
  letter-spacing: .25em;
  line-height: 1.4;
  text-align: center;
  opacity: .85;
  animation: floaty 1.8s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.hero .scroll-cue::after {
  content: "";
  display: block;
  width: 1px; height: 22px;
  margin: 6px auto 0;
  background: linear-gradient(#fff, transparent);
}
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* ===== イントロ ===== */
.intro { text-align: center; background: var(--bg2); }
.intro .lead {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 700;
  margin: 0 auto .8em;
  max-width: 40em;
}
.intro p { color: var(--muted); margin: 0 auto; max-width: 34em; font-size: .98rem; }
.badge {
  display: inline-block;
  margin-top: 1.6em;
  padding: .5em 1.4em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .04em;
  box-shadow: 0 6px 18px rgba(176,107,255,.35);
}

/* レスポンシブ改行制御: スマホは<br>無効、PCは指定箇所を改行禁止 */
@media (max-width: 759px) { br.pc-br { display: none; } }
@media (min-width: 760px) { .pc-nowrap { white-space: nowrap; } }

/* ===== MOVIE ===== */
/* 上下配置。朗読(メイン)は幅を確保し、ティザー(縦)は中央へ自然に配置 */
#movie .wrap { text-align: center; }
.movies { display: flex; flex-direction: column; gap: clamp(28px, 5vw, 48px); align-items: center; margin-bottom: clamp(28px, 5vw, 48px); }
.movie { width: 100%; }
.movie.landscape { max-width: 900px; margin-inline: auto; }
.movie figure { margin: 0; }
.movie video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 12px 34px rgba(0,0,0,.5);
  border: 2px solid var(--line);
}
.movie.landscape video { aspect-ratio: 16 / 9; }
.movie.portrait video { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }

/* ティザー(縦動画)の両脇の余白に大小の星を散りばめる（PCのみ・動画背後は不透明なので脇だけ見える） */
.movie.portrait { position: relative; }
.movie.portrait figure { position: relative; z-index: 1; }
@media (min-width: 760px) {
  /* 散布エリアはビューポート全幅に広げる（動画中央に対して左右へ大きく展開） */
  .movie.portrait::before,
  .movie.portrait::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 46px;
    left: 50%;
    width: min(1200px, 94vw);
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
  }
  /* 小さな星の粒 */
  .movie.portrait::before {
    background-repeat: no-repeat;
    background-image:
      radial-gradient(2px 2px at 4% 16%, #fff, transparent),
      radial-gradient(1.5px 1.5px at 11% 40%, rgba(255,255,255,.85), transparent),
      radial-gradient(2px 2px at 7% 64%, #ffe9a8, transparent),
      radial-gradient(1.5px 1.5px at 15% 84%, rgba(255,255,255,.8), transparent),
      radial-gradient(1.5px 1.5px at 2% 88%, rgba(255,255,255,.7), transparent),
      radial-gradient(1.5px 1.5px at 20% 26%, rgba(255,255,255,.7), transparent),
      radial-gradient(2px 2px at 26% 58%, #bfe3ff, transparent),
      radial-gradient(1.5px 1.5px at 30% 74%, rgba(255,255,255,.7), transparent),
      radial-gradient(1.5px 1.5px at 24% 12%, rgba(255,255,255,.75), transparent),
      radial-gradient(2px 2px at 96% 14%, #fff, transparent),
      radial-gradient(1.5px 1.5px at 89% 36%, rgba(255,255,255,.85), transparent),
      radial-gradient(2px 2px at 93% 60%, #bfe3ff, transparent),
      radial-gradient(1.5px 1.5px at 85% 80%, rgba(255,255,255,.8), transparent),
      radial-gradient(1.5px 1.5px at 98% 86%, rgba(255,255,255,.7), transparent),
      radial-gradient(1.5px 1.5px at 80% 24%, rgba(255,255,255,.7), transparent),
      radial-gradient(2px 2px at 74% 58%, #ffe9a8, transparent),
      radial-gradient(1.5px 1.5px at 70% 78%, rgba(255,255,255,.7), transparent),
      radial-gradient(1.5px 1.5px at 76% 12%, rgba(255,255,255,.75), transparent);
  }
  /* 大きめの4pt星（きらめき） */
  .movie.portrait::after {
    --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.7 6.4 17.6 11.3 24 12 17.6 12.7 12.7 17.6 12 24 11.3 17.6 6.4 12.7 0 12 6.4 11.3 11.3 6.4 12 0Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-image: var(--star), var(--star), var(--star), var(--star), var(--star), var(--star), var(--star), var(--star);
    background-position: 5% 30%, 17% 66%, 10% 50%, 27% 22%, 95% 26%, 83% 64%, 90% 44%, 73% 84%;
    background-size: 26px, 13px, 10px, 16px, 30px, 12px, 18px, 14px;
    animation: twinkle 3.2s ease-in-out infinite;
  }
}
@keyframes twinkle { 0%, 100% { opacity: .95; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .movie.portrait::after { animation: none; } }

.movie figcaption {
  margin-top: .9em;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

/* ===== 絵本商品情報 ===== */
.book { background: var(--bg2); }
.book-inner { display: grid; gap: clamp(28px, 5vw, 48px); align-items: center; }
@media (min-width: 760px) { .book-inner { grid-template-columns: 300px 1fr; } }
.book-cover img {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
}
.book-info h3 {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 .2em;
  line-height: 1.5;
}
.book-info .sub { color: var(--yellow); font-weight: 700; margin: 0 0 1.2em; }
.book-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .5em 1.2em;
  margin: 0 0 1.6em;
  font-size: .98rem;
}
.book-info dt { color: var(--muted); font-weight: 700; white-space: nowrap; }
.book-info dd { margin: 0; }
.btn {
  display: inline-block;
  padding: .8em 2em;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yellow), #ff9f1c);
  color: #2a1400;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .04em;
  box-shadow: 0 8px 22px rgba(255,159,28,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,159,28,.5); }

/* ===== プロフィール ===== */
.profiles { display: grid; gap: clamp(60px, 5vw, 36px); }
/* PCは対角配置: 木梨=左上 / ソックス=右下 で空間を広く使う。スマホは上下スタック */
@media (min-width: 760px) {
  /* 木梨・ソックスは同じ縦位置。見出し下に余白を確保するため全体を少し下げる */
  .profiles { grid-template-columns: 1fr 1fr; align-items: start; margin-top: clamp(28px, 5vw, 72px); }
  .profile { max-width: 400px; width: 100%; }
  .profile.kinashi { justify-self: start; }
  .profile.socks { justify-self: end; }
}
.profile {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* アクセントカラー: 木梨=ピンク / SOCKS=イエロー */
.profile.kinashi { --accent: var(--pink); }
.profile.socks   { --accent: var(--yellow); }
/* 人物写真は円クリップ＋2px枠 */
.profile .ph {
  width: clamp(200px, 62%, 280px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--accent);
  background: #0006;
}
.profile .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.profile.kinashi .ph img { object-position: center 0%; }
.profile.socks   .ph img { object-position: center 40%; }
.profile h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.profile h3 .ruby { font-size: .7rem; color: var(--muted); font-weight: 700; letter-spacing: .1em; }
/* 名前下の罫線: 2px角丸・アクセントカラー */
.profile h3::after {
  content: "";
  width: 56px;
  height: 4px;
  border-radius: 999px;
  margin-top: 8px;
  background: var(--accent);
}
.profile p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.95; }

/* ===== フッター ===== */
.site-footer {
  background: #05040e;
  text-align: center;
  padding-block: 40px;
}
.site-footer .footer-logos { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.site-footer .logo { display: inline-flex; align-items: center; }
.site-footer .logo-ms img { height: 30px; width: auto; }
.site-footer .logo-dtm img { height: 34px; width: auto; }
.site-footer small { display: block; margin-top: 20px; color: #6b6790; font-size: .78rem; letter-spacing: .08em; }

/* ===== アクセシビリティ ===== */
a:focus-visible, .btn:focus-visible, video:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .scroll-cue { animation: none; }
}
