/* =========================================================
   夢見草の夜、君と 公式サイト 共通スタイル
   色を変えたいときは、下の :root の値だけ変えればOKです
   ========================================================= */
:root {
  --night-deep: #070b1f;     /* いちばん暗い夜空 */
  --night: #0d1433;          /* 背景の紺 */
  --night-soft: #18214a;     /* カードなどの紺 */
  --sakura: #f2b8cb;         /* 桜色 */
  --sakura-deep: #d97a9b;    /* 濃い桜色 */
  --gold: #e8c77a;           /* 金の光 */
  --gold-soft: rgba(232, 199, 122, 0.35);
  --text: #eef0fa;           /* 本文の文字色 */
  --text-sub: #aab2d6;       /* 補足の文字色 */
  --line: rgba(232, 199, 122, 0.28);

  --font-title: "Shippori Mincho", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Yu Gothic", sans-serif;

  --header-h: 72px;
  --max-w: 1100px;
}

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

html { scroll-behavior: smooth; background: var(--night-deep); }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.9;
  letter-spacing: 0.04em;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(217, 122, 155, 0.12), transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(232, 199, 122, 0.08), transparent 50%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 45%, var(--night-deep) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sakura); text-decoration: none; transition: color .3s; }
a:hover { color: var(--gold); }

/* 舞う花びら・光の粒（js/main.js で描画） */
#petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(180deg, rgba(7, 11, 31, 0.92), rgba(7, 11, 31, 0.55));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-logo {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.site-logo img { height: 44px; width: auto; }

.global-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
.global-nav a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  text-align: center;
  line-height: 1.3;
}
.global-nav a small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.8;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1px;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  transition: width .3s, left .3s;
}
.global-nav a:hover::after,
.global-nav a.is-current::after { width: 60%; left: 20%; }
.global-nav a.is-current { color: var(--sakura); }

/* スマホ用メニューボタン */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--gold);
  transition: transform .3s, opacity .3s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 共通レイアウト ---------- */
main { position: relative; z-index: 2; }

.page-main { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ページ見出し */
.page-title {
  text-align: center;
  margin-bottom: 56px;
}
.page-title h1 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.25em;
  color: var(--text);
  text-shadow: 0 0 18px rgba(242, 184, 203, 0.35);
}
.page-title .en {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-top: 4px;
}
.page-title::after {
  content: "❀";
  display: block;
  margin-top: 14px;
  color: var(--sakura);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* セクション見出し */
.section-title {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 32px;
}
.section-title .en {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gold);
}

/* 枠付きの箱 */
.panel {
  background: linear-gradient(160deg, rgba(24, 33, 74, 0.75), rgba(13, 20, 51, 0.75));
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
  position: relative;
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.7;
}
.panel::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.panel::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 36px;
  border: 1px solid var(--gold);
  color: var(--text);
  font-family: var(--font-title);
  letter-spacing: 0.15em;
  background: rgba(232, 199, 122, 0.06);
  transition: background .3s, box-shadow .3s, color .3s;
}
.btn:hover {
  background: rgba(232, 199, 122, 0.18);
  box-shadow: 0 0 18px var(--gold-soft);
  color: var(--text);
}
.btn-sakura { border-color: var(--sakura); background: rgba(242, 184, 203, 0.08); }
.btn-sakura:hover { background: rgba(242, 184, 203, 0.2); box-shadow: 0 0 18px rgba(242, 184, 203, 0.4); }

/* 仮置きの画像枠（本物の画像に差し替えるまでの目印） */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-sub);
  font-size: 0.85rem;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--night-soft), var(--night));
  border: 1px dashed var(--line);
}

/* スクロールでふわっと出る */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 1s, transform 1s; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* ---------- トップページ ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-visual {
  position: absolute;
  inset: 0;
}
.hero-visual img,
.hero-visual .placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--night-deep) 100%);
}
.hero-logo {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
}
.hero-logo h1 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.2em;
  text-shadow: 0 0 24px rgba(242, 184, 203, 0.6), 0 0 4px rgba(0,0,0,0.8);
}
.hero-logo p {
  font-family: var(--font-title);
  color: var(--gold);
  letter-spacing: 0.4em;
  margin-top: 4px;
}
.hero-logo img { max-width: 640px; margin: 0 auto; }

.top-info {
  padding: 80px 0;
  text-align: center;
}
.release-text {
  font-family: var(--font-title);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.platform-text { color: var(--text-sub); font-size: 0.9rem; margin-bottom: 28px; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.top-news { padding: 40px 0 80px; }
.top-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding-bottom: 100px;
}
.top-banners a { display: block; aspect-ratio: 16 / 9; }
.top-banners a .placeholder { width: 100%; height: 100%; transition: box-shadow .3s; }
.top-banners a:hover .placeholder { box-shadow: 0 0 24px var(--gold-soft); }

/* ---------- ニュース ---------- */
.news-list { list-style: none; }
.news-list li {
  border-bottom: 1px solid var(--line);
}
.news-list a, .news-list .news-item {
  display: flex;
  gap: 24px;
  padding: 18px 8px;
  color: var(--text);
}
.news-list a:hover { background: rgba(242, 184, 203, 0.05); }
.news-date {
  font-family: var(--font-title);
  color: var(--gold);
  white-space: nowrap;
  min-width: 96px;
}
.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0 10px;
  border: 1px solid var(--sakura);
  color: var(--sakura);
  margin-right: 8px;
  vertical-align: middle;
}
.news-article { margin-bottom: 48px; }
.news-article h2 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 6px 0 16px;
}
.news-article p + p { margin-top: 1em; }

/* ---------- ストーリー ---------- */
.story-visual { aspect-ratio: 16 / 9; margin-bottom: 48px; }
.story-visual img, .story-visual .placeholder { width: 100%; height: 100%; object-fit: cover; }
.story-text {
  font-family: var(--font-title);
  font-size: 1.05rem;
  line-height: 2.4;
  text-align: center;
}
.story-text p + p { margin-top: 2em; }
.story-text em { font-style: normal; color: var(--sakura); }

/* ---------- キャラクター ---------- */
.chara-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}
.chara-tab {
  width: 96px;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-title);
  cursor: pointer;
  padding: 0 0 8px;
  transition: border-color .3s, box-shadow .3s;
}
.chara-tab .thumb { aspect-ratio: 1; width: 100%; margin-bottom: 6px; font-size: 0.65rem; }
.chara-tab .thumb img { width: 100%; height: 100%; object-fit: cover; }
.chara-tab.is-active,
.chara-tab:hover { border-color: var(--gold); box-shadow: 0 0 14px var(--gold-soft); }
.chara-tab.is-active { color: var(--sakura); }

.chara-detail { display: none; }
.chara-detail.is-active { display: grid; animation: charaIn .6s ease; }
@keyframes charaIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.chara-detail {
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.chara-stand { aspect-ratio: 3 / 4; max-height: 720px; }
.chara-stand img, .chara-stand .placeholder { width: 100%; height: 100%; object-fit: contain; }
.chara-role {
  font-family: var(--font-title);
  color: var(--gold);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
}
.chara-name {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.2em;
  line-height: 1.4;
}
.chara-name .ruby {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--sakura);
}
.chara-cv { color: var(--text-sub); font-size: 0.9rem; margin: 8px 0 20px; }
.chara-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 20px;
  font-size: 0.9rem;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chara-profile dt { color: var(--gold); }
.chara-quote {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--sakura);
  margin-top: 20px;
}

/* ---------- システム ---------- */
.system-list { display: grid; gap: 48px; }
.system-item {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.system-item:nth-child(even) .system-shot { order: 2; }
.system-shot { aspect-ratio: 16 / 9; }
.system-shot img, .system-shot .placeholder { width: 100%; height: 100%; object-fit: cover; }
.system-item h3 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  color: var(--sakura);
}
.spec-table { width: 100%; border-collapse: collapse; margin-top: 80px; }
.spec-table th, .spec-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.95rem;
}
.spec-table th { color: var(--gold); width: 30%; font-weight: normal; font-family: var(--font-title); }

/* ---------- スペシャル ---------- */
.special-section { margin-bottom: 80px; }
.movie-wrap { aspect-ratio: 16 / 9; }
.movie-wrap iframe, .movie-wrap .placeholder { width: 100%; height: 100%; border: 0; }
.movie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.movie-grid p { text-align: center; margin-top: 8px; font-family: var(--font-title); }
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.wallpaper-grid .thumb { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.wallpaper-grid .links { display: flex; gap: 12px; justify-content: center; font-size: 0.85rem; }
.event-box h3 { font-family: var(--font-title); font-weight: 500; font-size: 1.3rem; margin-bottom: 12px; }

/* ---------- お問い合わせ ---------- */
.contact-box { max-width: 760px; margin: 0 auto; }
.contact-box p + p { margin-top: 1em; }
.contact-box ul { margin: 1em 0 1em 1.4em; }
.contact-way {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}
.contact-way div {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 20px;
  border: 1px solid var(--line);
}
.contact-way dt { color: var(--gold); font-family: var(--font-title); min-width: 120px; }

/* ---------- フッター ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px 32px;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 31, 0.8);
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.footer-circle { font-family: var(--font-title); letter-spacing: 0.2em; margin-bottom: 8px; }
.copyright { font-size: 0.75rem; color: var(--text-sub); }

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    background: rgba(7, 11, 31, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    overflow-y: auto;
  }
  .menu-open .global-nav { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 0; padding: 24px; }
  .global-nav a { padding: 18px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .global-nav a::after { display: none; }

  .chara-detail,
  .system-item { grid-template-columns: 1fr; gap: 24px; }
  .system-item:nth-child(even) .system-shot { order: 0; }
  .chara-stand { max-height: 480px; }
  .movie-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .site-header { padding: 0 16px; }
  .site-logo { font-size: 0.95rem; }
  .container { padding: 0 16px; }
  .panel { padding: 28px 20px; }
  .news-list a, .news-list .news-item { flex-direction: column; gap: 2px; }
  .chara-tab { width: 76px; }
  .contact-way div { flex-direction: column; gap: 4px; }
  .story-text { font-size: 0.95rem; text-align: left; }
  .hero { height: 80vh; }
}

/* 動きを減らす設定の人には、アニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  #petals { display: none; }
  .fade-in { opacity: 1; transform: none; }
}
.hero-logo img {
  filter: drop-shadow(0 0 12px rgba(7, 11, 31, 0.8));
}

/* ロゴが画面からはみ出さないように */
.hero-logo img {
  width: 100%;
  max-width: 640px;
}

/* キービジュアルの上がヘッダーに隠れないように */
.hero {
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
}
.hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* スマホではロゴを少し小さく、下寄せに */
@media (max-width: 600px) {
  .hero-logo {
    width: 85%;
    bottom: 5%;
  }
}
/* キャラアイコン：外枠をなくして、丸く光らせる */
.chara-tab,
.chara-tab:hover,
.chara-tab.is-active {
  border: none;
  box-shadow: none;
  padding: 0;
}
.chara-tab .thumb {
  margin-bottom: 8px;
}
.chara-tab .thumb img {
  filter: brightness(0.8);
  transition: filter .3s, transform .3s;
}

/* マウスを乗せたとき：桜色にふわっと光る */
.chara-tab:hover .thumb img {
  filter: brightness(1) drop-shadow(0 0 8px rgba(242, 184, 203, 0.8));
  transform: scale(1.05);
}

/* 選んでいるキャラ：金色にゆっくり明滅して光る */
.chara-tab.is-active .thumb img {
  filter: brightness(1.05) drop-shadow(0 0 10px rgba(232, 199, 122, 0.9));
  animation: iconGlow 2.4s ease-in-out infinite;
}
@keyframes iconGlow {
  0%, 100% { filter: brightness(1.05) drop-shadow(0 0 6px rgba(232, 199, 122, 0.7)); }
  50%      { filter: brightness(1.1)  drop-shadow(0 0 16px rgba(232, 199, 122, 1)); }
}
/* パソコン表示：ロゴを小さく、下寄せにして弦真に被らないように */
@media (min-width: 769px) {
  .hero-logo {
    bottom: 3%;
  }
  .hero-logo img {
    max-width: 440px;
  }
}
/* トップ：Steamストアページ公開中 */
.steam-open {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  letter-spacing: 0.2em;
  color: var(--sakura);
  text-shadow: 0 0 16px rgba(242, 184, 203, 0.6), 0 0 32px rgba(232, 199, 122, 0.3);
  margin: 4px 0 12px;
}
/* トップ：キャッチコピー（縦書き） */
.hero-catch {
  position: absolute;
  z-index: 3;
  top: 1.8vw;                 /* 上からの位置 */
  writing-mode: vertical-rl;  /* 縦書き */
  font-family: var(--font-title);
  font-weight: 600;
    font-size: 1.85vw;          /* 文字の大きさ */
  white-space: nowrap;        /* 折り返さない */
  letter-spacing: 0.12em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 10px rgba(90, 50, 140, 0.9), 0 0 3px rgba(40, 20, 70, 0.8);
  opacity: 0;
  animation: catchIn 2s ease 0.5s forwards;
}
.hero-catch-left  { left: 9.6%; }                          /* 左のコピーの位置 */
.hero-catch-right { right: 9.7%; animation-delay: 1.2s; font-size: 1.7vw; }  /* 右のコピーの位置と大きさ */

/* ページを開くと、左→右の順にふわっと浮かび上がる */
@keyframes catchIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

/* スマホ（縦長のキービジュアル）での位置と大きさ */
@media (max-width: 768px) {
  .hero-catch {
    font-size: 4.2vw;
    top: 2vw;
    text-shadow: 0 0 6px rgba(40, 20, 70, 0.95), 0 0 12px rgba(90, 50, 140, 0.9);
  }
  .hero-catch-left  { left: 1.5%; }
  .hero-catch-right { right: 1.5%; font-size: 4vw; }
}

/* 動きを減らす設定の人には、最初から表示 */
@media (prefers-reduced-motion: reduce) {
  .hero-catch { opacity: 1; }
}
/* iPhoneでも、キービジュアルとロゴが1画面に収まるように */
.hero {
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
}
/* トップ：SNSリンク */
.sns-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 56px;
  margin-top: 48px;
}
.sns-label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}
.sns-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.sns-btn {
  min-width: 100px;
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(24, 33, 74, 0.5);
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.sns-btn:hover {
  border-color: var(--sakura);
  color: var(--sakura);
  box-shadow: 0 0 12px rgba(242, 184, 203, 0.4);
}
/* キャッチコピー：薄紫のドロップシャドウ */
.hero-catch {
  text-shadow:
    0.05em 0.05em 4px rgba(201, 179, 240, 0.9),
    0 0 10px rgba(90, 50, 140, 0.9),
    0 0 3px rgba(40, 20, 70, 0.8);
}
@media (max-width: 768px) {
  .hero-catch {
    text-shadow:
      0.08em 0.08em 2px rgba(220, 180, 235, 0.9),
      0 0 6px rgba(40, 20, 70, 0.95),
      0 0 12px rgba(90, 50, 140, 0.9);
  }
}
/* ページ見出しの両側に、光る蝶 */
.page-title h1 {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
}
.page-title h1::before,
.page-title h1::after {
  content: "";
  flex: none;
  width: 1.3em;
  height: 0.98em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E %3Cg fill='%23cfe0ff' fill-opacity='.5' stroke='%23ffffff' stroke-width='1.6' stroke-linejoin='round'%3E %3Cpath d='M39 25C33 13 20 3 9 3C2 3 1 10 4 15C9 23 22 28 39 29Z'/%3E %3Cpath d='M39 31C30 31 19 35 17 43C15 51 23 56 29 51C34 47 37 39 39 31Z'/%3E %3Cpath d='M41 25C47 13 60 3 71 3C78 3 79 10 76 15C71 23 58 28 41 29Z'/%3E %3Cpath d='M41 31C50 31 61 35 63 43C65 51 57 56 51 51C46 47 43 39 41 31Z'/%3E %3C/g%3E %3Cg fill='none' stroke='%23ffffff' stroke-width='1' stroke-opacity='.75' stroke-linecap='round'%3E %3Cpath d='M38 26C30 18 20 11 11 8'/%3E%3Cpath d='M38 27C29 23 19 20 9 17'/%3E %3Cpath d='M42 26C50 18 60 11 69 8'/%3E%3Cpath d='M42 27C51 23 61 20 71 17'/%3E %3Cpath d='M38 33C33 38 28 43 24 49'/%3E%3Cpath d='M42 33C47 38 52 43 56 49'/%3E %3Cpath d='M39 21C37 14 33 9 28 7'/%3E%3Cpath d='M41 21C43 14 47 9 52 7'/%3E %3C/g%3E %3Ccircle cx='28' cy='7' r='1.6' fill='%23ffffff'/%3E%3Ccircle cx='52' cy='7' r='1.6' fill='%23ffffff'/%3E %3Cpath d='M40 20C41.8 20 41.8 42 40 46C38.2 42 38.2 20 40 20Z' fill='%23ffffff'/%3E %3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(150, 185, 255, 0.95)) drop-shadow(0 0 10px rgba(120, 150, 255, 0.6));
  animation: titleButterfly 3.2s ease-in-out infinite;
}
.page-title h1::before { --tilt: -12deg; }
.page-title h1::after  { --tilt: 12deg; margin-left: -0.25em; animation-delay: -1.6s; }

/* ゆっくり羽ばたきながら、ふわふわ浮かぶ */
@keyframes titleButterfly {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)) scaleX(1); }
  25%      { transform: translateY(-3px) rotate(var(--tilt)) scaleX(0.55); }
  50%      { transform: translateY(-5px) rotate(var(--tilt)) scaleX(1); }
  75%      { transform: translateY(-2px) rotate(var(--tilt)) scaleX(0.7); }
}
/* トップ：タイトルロゴがふわっと浮かび上がる */
.hero-logo img {
  animation: logoRise 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
@keyframes logoRise {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* マウスがある端末だけ、マウスを乗せたときに光る */
@media (hover: hover) {
  .chara-tab:hover .thumb img {
    transform: scale(1.05) translateZ(0);
  }
}
/* お問い合わせ：よくある質問 */
.faq {
  max-width: 760px;
  margin: 80px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 48px 20px 44px;
  font-family: var(--font-title);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  transition: color .3s, background .3s;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 10px;
  top: 18px;
  font-size: 1.15rem;
  color: var(--gold);
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq-item summary:hover,
.faq-item[open] summary {
  color: var(--sakura);
}
.faq-answer {
  position: relative;
  padding: 0 20px 22px 44px;
  color: var(--text);
  animation: faqOpen .4s ease;
}
.faq-answer::before {
  content: "A";
  position: absolute;
  left: 10px;
  top: 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--sakura);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
@media (max-width: 600px) {
  .faq-item summary { font-size: 0.95rem; padding: 18px 40px 18px 36px; }
  .faq-item summary::before { left: 6px; top: 16px; }
  .faq-answer { padding: 0 12px 20px 36px; }
  .faq-answer::before { left: 6px; }
}
/* スペシャル：壁紙 */
.wallpaper-grid {
  max-width: 720px;
  margin: 0 auto;
}
.wallpaper-grid .thumb {
  overflow: hidden;
  border: 1px solid var(--line);
}
.wallpaper-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wallpaper-title {
  text-align: center;
  font-family: var(--font-title);
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.wallpaper-grid .links a {
  display: inline-block;
  padding: 6px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.wallpaper-grid .links a:hover {
  border-color: var(--sakura);
  color: var(--sakura);
  box-shadow: 0 0 12px rgba(242, 184, 203, 0.4);
}
.wallpaper-note {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-sub);
}
/* ページ内の目次 */
.page-toc {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  max-width: 820px;
  margin: -24px auto 64px;
}
.page-toc a {
  padding: 8px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(24, 33, 74, 0.5);
  color: var(--text);
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  transition: border-color .3s, color .3s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent;
}
.page-toc a:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 12px var(--gold-soft);
}

/* 飛んだ先の見出しが、上のメニューに隠れないように */
.special-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

@media (max-width: 600px) {
  .page-toc { gap: 8px; margin-bottom: 48px; }
  .page-toc a { padding: 6px 16px; font-size: 0.85rem; }
}
/* 見出し（class="section-title" の h2）の両側に、夢見草（桜）のアイコン
   トップのニュース・スペシャル・用語集・お問い合わせのよくある質問など、全ページの見出しに付きます */
h2.section-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 0.55em;
}
h2.section-title::before,
h2.section-title::after {
  content: "";
  width: 1.05em;
  height: 1.05em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='32' cy='32' r='28' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fff6fa'/%3E%3Cstop offset='.55' stop-color='%23f6c6d6'/%3E%3Cstop offset='1' stop-color='%23e58fae'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='url(%23g)' stroke='%23fff' stroke-opacity='.7' stroke-width='.8' stroke-linejoin='round'%3E%3Cpath transform='rotate(0 32 32)' d='M32 31 C24 24 21 13 26 6 L29.5 9.5 L32 4 L34.5 9.5 L38 6 C43 13 40 24 32 31Z'/%3E%3Cpath transform='rotate(72 32 32)' d='M32 31 C24 24 21 13 26 6 L29.5 9.5 L32 4 L34.5 9.5 L38 6 C43 13 40 24 32 31Z'/%3E%3Cpath transform='rotate(144 32 32)' d='M32 31 C24 24 21 13 26 6 L29.5 9.5 L32 4 L34.5 9.5 L38 6 C43 13 40 24 32 31Z'/%3E%3Cpath transform='rotate(216 32 32)' d='M32 31 C24 24 21 13 26 6 L29.5 9.5 L32 4 L34.5 9.5 L38 6 C43 13 40 24 32 31Z'/%3E%3Cpath transform='rotate(288 32 32)' d='M32 31 C24 24 21 13 26 6 L29.5 9.5 L32 4 L34.5 9.5 L38 6 C43 13 40 24 32 31Z'/%3E%3C/g%3E%3Cg fill='%23e8c77a'%3E%3Ccircle cx='32.0' cy='23.0' r='1.4'/%3E%3Ccircle cx='40.6' cy='29.2' r='1.4'/%3E%3Ccircle cx='37.3' cy='39.3' r='1.4'/%3E%3Ccircle cx='26.7' cy='39.3' r='1.4'/%3E%3Ccircle cx='23.4' cy='29.2' r='1.4'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='3.2' fill='%23f3d993'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 5px rgba(242, 184, 203, 0.75));
  animation: sakuraSway 6s ease-in-out infinite;
}
h2.section-title::before { order: -1; }
h2.section-title::after  { order: 1; animation-delay: -3s; }
h2.section-title .en { order: 2; flex-basis: 100%; }

/* ゆっくり回りながら、ふわっと揺れる */
@keyframes sakuraSway {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50%      { transform: rotate(12deg) scale(1.08); }
}
