/*
Theme Name: Yamii
Theme URI: https://yamii.jp
Author: Yamii Team
Description: マイノリティのための昼夜通話コミュニティ Yamii — 安心して話せる居場所 — のWordPressテーマ
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yamii
Tags: community, night, cute, japanese, kawaii
*/

/* =============================================================================
   1. CSS VARIABLES
============================================================================= */
:root {
  --color-bg:         #0d0820;
  --color-bg2:        #160d30;
  --color-purple:     #6b3fa0;
  --color-purple-mid: #9b6fd4;
  --color-purple-lt:  #c9a8f5;
  --color-pink:       #e88fc7;
  --color-pink-lt:    #f5c6e8;
  --color-gold:       #f0b429;
  --color-gold-lt:    #ffd97a;
  --color-white:      #f8f0ff;
  --color-star:       #ffe680;
  --color-discord:    #7289da;

  --grad-yamii: linear-gradient(135deg, var(--color-gold-lt) 0%, var(--color-pink) 50%, var(--color-purple-lt) 100%);
  --grad-logo:  linear-gradient(to right, #e0aaff, #ff99cc);
  --grad-gold:  linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-lt) 100%);

  --shadow-glow: 0 0 30px rgba(155, 111, 212, 0.5);
  --shadow-gold: 0 4px 20px rgba(240, 180, 41, 0.6);

  --radius-lg: 2rem;
  --radius-md: 1rem;
  --radius-sm: 0.5rem;

  --font-display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'M PLUS Rounded 1c', sans-serif;
  --font-body:    'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

/* =============================================================================
   2. RESET & BASE
============================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-white);
  overflow-x: hidden;
  width: 100%;
  line-height: 1.7;
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(107,63,160,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(107,63,160,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(232,143,199,0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* =============================================================================
   3. HEADER & NAVIGATION
============================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 8, 32, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(155, 111, 212, 0.2);
  transition: background 0.3s ease;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.logo-moon {
  font-size: 22px;
  display: inline-block;
  vertical-align: baseline;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  background: var(--grad-logo);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  line-height: 1.2;
}

.main-navigation ul { list-style: none; display: flex; gap: 2rem; }

.main-navigation a {
  font-size: 0.95rem;
  color: var(--color-purple-lt);
  position: relative;
  transition: color 0.2s;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--color-pink);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.main-navigation a:hover { color: var(--color-white); }
.main-navigation a:hover::after { transform: scaleX(1); }

/* ハンバーガーボタン */
.menu-toggle-btn {
  display: none;
  position: relative;
  z-index: 10002;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.burger-lines {
  position: relative;
  width: 28px;
  height: 18px;
  display: block;
}

.burger-lines span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffd97a, #e88fc7, #c9a8f5);
  transform-origin: center;
  transition:
    top       0.4s cubic-bezier(0.23, 1, 0.32, 1),
    width     0.4s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    opacity   0.3s ease;
}

.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 8px; width: 70%; }
.burger-lines span:nth-child(3) { top: 16px; width: 45%; }

.menu-toggle-btn.is-active .burger-lines span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-toggle-btn.is-active .burger-lines span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.menu-toggle-btn.is-active .burger-lines span:nth-child(3) { top: 8px; width: 100%; transform: rotate(-45deg); }

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 8, 32, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#nav-overlay.visible { opacity: 1; }

/* =============================================================================
   4. HERO
============================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}

.hero-bg-moon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 80vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180,140,255,0.25) 0%, rgba(107,63,160,0.15) 50%, transparent 70%);
  animation: pulse-moon 4s ease-in-out infinite;
}

.hero-stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.star {
  position: absolute;
  border-radius: 50%;
  background: var(--color-star);
  animation: twinkle var(--dur, 2s) ease-in-out infinite var(--delay, 0s);
}

.hero-content { position: relative; z-index: 2; max-width: 700px; }

.hero-ghost {
  display: inline-block;
  margin-bottom: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.hero-ghost img { width: 80px; height: auto; }

.hero-logo-text {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  background: var(--grad-yamii);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 20px rgba(155,111,212,0.6));
  margin-bottom: 1rem;
}

.hero-catchcopy {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-white);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--color-purple-lt);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.8rem;
  background: var(--grad-gold);
  color: #4a2800;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 3rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-call:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(240, 180, 41, 0.8), inset 0 1px 0 rgba(255,255,255,0.4);
}

/* =============================================================================
   5. SECTIONS & LAYOUT
============================================================================= */
.section { position: relative; padding: 5rem 2rem; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--color-purple-lt);
}
.section-title span { color: var(--color-pink); }

.section-subtitle {
  text-align: center;
  color: var(--color-purple-mid);
  font-size: 0.9rem;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
}

/* =============================================================================
   6. FEATURE CARDS
============================================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(155, 111, 212, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(6px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(155,111,212,0.6);
}

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; display: inline-block; animation: float 4s ease-in-out infinite; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-pink-lt); margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.88rem; color: rgba(248,240,255,0.7); line-height: 1.8; }

/* =============================================================================
   7. HOW IT WORKS
============================================================================= */
.steps { display: flex; flex-direction: column; gap: 1.5rem; max-width: 600px; margin: 0 auto; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(155,111,212,0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.step-num {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 12px rgba(155,111,212,0.5);
}

.step h3 { font-family: var(--font-display); font-size: 1rem; color: var(--color-purple-lt); margin-bottom: 0.25rem; }
.step p  { font-size: 0.87rem; color: rgba(248,240,255,0.65); }

/* =============================================================================
   8. CTA BANNER
============================================================================= */
.cta-banner {
  background: radial-gradient(ellipse at center, rgba(107,63,160,0.4) 0%, rgba(13,8,32,0) 70%);
  border-top: 1px solid rgba(155,111,212,0.2);
  border-bottom: 1px solid rgba(155,111,212,0.2);
  text-align: center;
  padding: 5rem 2rem;
}
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; color: var(--color-white); }
.cta-banner p  { color: var(--color-purple-lt); margin-bottom: 2rem; font-size: 0.95rem; }

/* =============================================================================
   9. MASCOTS
============================================================================= */
.mascots-row { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }

.mascot-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,143,199,0.3);
  border-radius: 50%;
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 20px rgba(232,143,199,0.2);
  animation: float 3s ease-in-out infinite;
}
.mascot-card:nth-child(2) { animation-delay: 0.5s; }
.mascot-card:nth-child(3) { animation-delay: 1s; }

/* =============================================================================
   10. BLOG / POST CARDS
============================================================================= */
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.post-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(155,111,212,0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }

.post-thumbnail     { aspect-ratio: 16/9; overflow: hidden; background: var(--color-bg2); }
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-thumbnail img { transform: scale(1.05); }

.post-content  { padding: 1.25rem; }
.post-meta     { font-size: 0.78rem; color: var(--color-purple-mid); margin-bottom: 0.5rem; }
.post-title    { font-family: var(--font-display); font-size: 1rem; color: var(--color-purple-lt); margin-bottom: 0.5rem; line-height: 1.5; }
.post-excerpt  { font-size: 0.84rem; color: rgba(248,240,255,0.6); line-height: 1.7; }

/* =============================================================================
   11. SINGLE PAGE
============================================================================= */
.single-content { max-width: 760px; margin: 0 auto; padding: 8rem 2rem 4rem; }

.single-content h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--color-purple-lt); margin-bottom: 1.5rem; line-height: 1.4; }
.single-content h2,
.single-content h3 { font-family: var(--font-display); color: var(--color-pink-lt); margin: 2rem 0 0.75rem; }
.single-content p  { margin-bottom: 1.25rem; color: rgba(248,240,255,0.85); }
.single-content a  { color: var(--color-purple-lt); text-decoration: underline; }

/* =============================================================================
   12. SIDEBAR
============================================================================= */
.sidebar-widget {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(155,111,212,0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-family: var(--font-display); font-size: 1rem; color: var(--color-pink-lt);
  margin-bottom: 1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(155,111,212,0.2);
}

/* =============================================================================
   13. FOOTER
============================================================================= */
.site-footer {
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(155,111,212,0.2);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 900;
  background: var(--grad-logo);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  display: inline-block; margin-bottom: 1rem;
}

.footer-tagline { color: var(--color-purple-mid); font-size: 0.85rem; margin-bottom: 2rem; }

.footer-nav { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-nav a       { font-size: 0.85rem; color: var(--color-purple-lt); transition: color 0.2s; }
.footer-nav a:hover { color: var(--color-pink); }

.footer-copy { font-size: 0.78rem; color: rgba(155,111,212,0.5); }

/* =============================================================================
   14. FLOATING BUTTONS（BGM・トップへ戻る）
============================================================================= */
.floating-btn {
  position: fixed;
  bottom: 20px;
  height: 50px;
  background: rgba(30, 30, 40, 0.75);
  color: var(--color-star);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  cursor: pointer;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.floating-btn:hover {
  background: rgba(30, 30, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.left-btn  { left: 20px; padding: 0 20px; }
.right-btn { right: 20px; width: 50px; border-radius: 50%; font-size: 18px; opacity: 0; visibility: hidden; }
.right-btn.show { opacity: 1; visibility: visible; }

/* =============================================================================
   15. DISCORD VOICE CHANNELS
============================================================================= */
.yamii-discord-vc-list {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}

.yamii-discord-vc-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(40, 40, 55, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px; padding: 12px 16px;
  color: #e0e0e0; font-family: var(--font-body);
  transition: background 0.2s;
}
.yamii-discord-vc-item:hover { background: rgba(60, 60, 80, 0.8); }

.vc-icon { margin-right: 12px; font-size: 1.2rem; color: var(--color-discord); }
.vc-name { font-weight: 500; font-size: 0.95rem; flex-grow: 1; }

.vc-count {
  font-size: 0.85rem; color: #888;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px; border-radius: 12px; white-space: nowrap;
}
.vc-count.active {
  color: #fff; background: var(--color-discord);
  box-shadow: 0 0 8px rgba(114, 137, 218, 0.4);
  font-weight: bold; animation: vc-pulse 2s infinite;
}

.yamii-discord-error,
.yamii-discord-empty {
  color: #aaa; font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px; border-radius: 6px; text-align: center;
}

/* =============================================================================
   16. SERVER STATS
============================================================================= */
.yamii-server-stats { display: flex; justify-content: center; gap: 20px; margin: 2rem 0; flex-wrap: wrap; }

.stat-box {
  background: rgba(40, 40, 55, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 15px 25px;
  text-align: center; min-width: 120px;
  backdrop-filter: blur(5px);
  transition: transform 0.3s, background 0.3s;
}
.stat-box:hover { transform: translateY(-3px); background: rgba(60, 60, 80, 0.8); }

.stat-label  { display: block; font-size: 0.85rem; color: #aaa; margin-bottom: 5px; font-weight: 500; }
.stat-number { display: block; font-size: 1.8rem; color: #fff; font-weight: 900; font-family: var(--font-display); }
.stat-number.active-vc { color: var(--color-discord); text-shadow: 0 0 10px rgba(114, 137, 218, 0.5); }

/* =============================================================================
   17. FLOATING SERVER STATS
============================================================================= */
.yamii-floating-stats {
  position: fixed; top: 100px; right: 20px; z-index: 9999;
  display: flex; gap: 15px;
  background: rgba(30, 30, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px; padding: 8px 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: var(--font-body); color: #fff; font-size: 0.85rem; font-weight: 500;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.yamii-floating-stats:hover {
  background: rgba(40, 40, 55, 0.95);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}
.float-stat-item { display: flex; align-items: center; gap: 6px; }
.float-stat-icon { font-size: 0.9rem; }
.float-stat-icon.online { color: #43b581; text-shadow: 0 0 5px rgba(67, 181, 129, 0.5); }
.admin-bar .yamii-floating-stats { top: 52px; }

/* =============================================================================
   18. CONTACT FORM 7
============================================================================= */
.wpcf7 {
  background: rgba(30, 20, 50, 0.85);
  border: 2px solid #f9d976;
  border-radius: 20px; padding: 30px;
  max-width: 500px; margin: 20px auto;
  box-shadow: 0 0 20px rgba(249, 217, 118, 0.4);
  color: #fff;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #d397fa;
  border-radius: 12px; color: #fff;
  padding: 12px; width: 100%; box-sizing: border-box;
}

.wpcf7 label { color: #f9d976; font-weight: bold; display: block; margin-bottom: 10px; }

.wpcf7 input[type="submit"] {
  background: linear-gradient(180deg, #f9d976 0%, #f3a65a 100%);
  color: #331a4d; font-weight: bold;
  border: none; border-radius: 50px;
  padding: 15px 40px; cursor: pointer;
  display: block; margin: 20px auto 0;
  box-shadow: 0 4px 15px rgba(243, 166, 90, 0.5);
  transition: opacity 0.2s, transform 0.2s;
}
.wpcf7 input[type="submit"]:hover { opacity: 0.9; transform: scale(1.05); }

/* =============================================================================
   19. ANIMATIONS
============================================================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1;   transform: scale(1.2); }
}
@keyframes pulse-moon {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: 0.6; }
  50%       { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}
@keyframes vc-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(114, 137, 218, 0.7); }
  70%  { box-shadow: 0 0 0 6px rgba(114, 137, 218, 0); }
  100% { box-shadow: 0 0 0 0   rgba(114, 137, 218, 0); }
}

/* =============================================================================
   20. RESPONSIVE
============================================================================= */
@media (max-width: 768px) {
  .site-header { padding: 0.75rem 1rem; }
  .section     { padding: 3rem 1.25rem; }

  .hero {
    align-items: flex-start;
    padding-top: 130px;
    min-height: unset;
    height: 100dvh;
  }
  .hero-content { margin-top: 0; }

  .menu-toggle-btn { display: flex; }

  .main-navigation {
    display: block;
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    z-index: 9999;
    background:
      radial-gradient(ellipse 80% 60% at 30% 20%, rgba(107, 63, 160, 0.45) 0%, transparent 70%),
      radial-gradient(ellipse 60% 50% at 80% 80%, rgba(232, 143, 199, 0.25) 0%, transparent 65%),
      rgba(13, 8, 32, 0.97);
    border-left: 1px solid rgba(201, 168, 245, 0.15);
    transform: translateX(110%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    padding: 0;
  }

  .main-navigation::before {
    content: '✦  ✧  ✦  ✧  ✦  ✧  ✦  ✧  ✦  ✧';
    position: absolute; top: 0; left: 0; width: 100%;
    font-size: 0.5rem; letter-spacing: 1.4rem;
    color: rgba(255, 217, 122, 0.18);
    white-space: nowrap; overflow: hidden;
    padding: 1rem 0.5rem; pointer-events: none;
  }

  .main-navigation.nav-open { transform: translateX(0); }

  .main-navigation ul {
    display: flex; flex-direction: column; gap: 0;
    list-style: none; margin: 0;
    padding: 100px 0 40px; height: 100%;
  }

  .main-navigation ul li {
    opacity: 0; transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .main-navigation.nav-open ul li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
  .main-navigation.nav-open ul li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.14s; }
  .main-navigation.nav-open ul li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.20s; }
  .main-navigation.nav-open ul li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
  .main-navigation.nav-open ul li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
  .main-navigation.nav-open ul li:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.38s; }
  .main-navigation.nav-open ul li:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.44s; }

  .main-navigation ul li a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1.1rem 2rem;
    font-size: 1.05rem; font-weight: 600;
    color: rgba(248, 240, 255, 0.75);
    letter-spacing: 0.04em; position: relative;
    border-bottom: 1px solid rgba(201, 168, 245, 0.07);
    transition: color 0.25s ease, padding-left 0.3s ease;
  }

  .main-navigation ul li a::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px; height: 60%;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, #ffd97a, #e88fc7);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .main-navigation ul li a::after {
    content: '✦'; font-size: 0.55rem;
    color: rgba(255, 217, 122, 0);
    margin-left: auto; padding-right: 0.5rem;
    transition: color 0.25s ease;
  }

  .main-navigation ul li a:hover,
  .main-navigation ul li a:focus {
    color: #ffd97a;
    padding-left: 2.4rem;
  }

  .main-navigation ul li a:hover::before { transform: translateY(-50%) scaleY(1); }
  .main-navigation ul li a:hover::after  { color: rgba(255, 217, 122, 0.6); }

  .yamii-floating-stats {
    top: 100px !important;      /* ヘッダーより少し下の安全な位置に配置 */
    left: 10px !important;    /* 右からの距離をしっかり確保 */
    right: auto !important;     /* 左から押し出されるのを防ぐ */
    
    width: auto !important;
    max-width: calc(100vw - 20px) !important; /* 絶対に画面幅を超えないように計算 */
    
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
    
    /* 万が一数字が長くなった場合は折り返す */
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  /* 管理バーが出ている時はさらに下げる */
  .admin-bar .yamii-floating-stats { 
    top: 116px !important; 
  }
  .admin-bar .yamii-floating-stats { top: 42px; }
}

/* 🌙を強制的に大きくする */
.cta-banner .hero-ghost {
  font-size: 80px !important; /* 直接数値を指定 */
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto 20px auto !important;
  line-height: 1 !important;
}
/* スマホ版（画面幅768px以下）で月をさらに大きくする */
@media (max-width: 768px) {
  .cta-banner .hero-ghost {
      font-size: 100px !important; /* スマホで見える月のサイズ */
      margin-bottom: 1.5rem !important;
      display: block !important;
      text-align: center !important;
  }
  
  /* 月が大きすぎて文字に被る場合はここを調整 */
  .cta-banner h2 {
      margin-top: 10px !important;
  }
}

@media (max-width: 768px) {
  /* 1. サイト全体で横揺れを絶対に禁止する */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
  }

  .site-header { padding: 0.75rem 1rem; }

  /* 2. メニュー本体の修正 */
  .main-navigation {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw; /* 少しだけ余裕を持たせる（または 300px） */
    max-width: 320px;
    height: 100dvh;
    z-index: 10000;
    background: rgba(13, 8, 32, 0.98);
    /* 100%ではなく110%にして完全に画面外へ飛ばす */
    transform: translateX(110%); 
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    /* メニュー自体も横はみ出しをカット */
    overflow-x: hidden; 
    border-left: 1px solid rgba(201, 168, 245, 0.15);
  }

  /* メニューが開いた時 */
  .main-navigation.nav-open {
    transform: translateX(0) !important;
  }

  /* 3. 右はみ出しの主犯になりやすい統計ボタンを強制制御 */
  .yamii-floating-stats {
    position: fixed !important;
    top: 80px !important;
    right: 15px !important;
    left: auto !important; /* 絶対に左から計算させない */
    width: auto !important;
    /* 画面幅を超えないように制限 */
    max-width: calc(100vw - 30px) !important;
    transform: none !important;
    z-index: 9990 !important;
  }

  /* 4. メニュー内のリストも幅を固定 */
  .main-navigation ul {
    width: 100%;
    margin: 0;
    padding: 100px 0 40px;
  }
  
}
.no-select {
  -webkit-user-select: none !important; /* Chrome, Safari用 */
  -moz-user-select: none !important;    /* Firefox用 */
  -ms-user-select: none !important;     /* 古いEdge用 */
  user-select: none !important;         /* 標準構文 */
}
