/* ==========================================================================
   ひらがなのーと デザインシステム & スタイルシート (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザインシステム (Design Tokens)
   -------------------------------------------------------------------------- */

:root {
  /* Font Family */
  --font-sans: 'Outfit', 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transition Curves */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ライトモード トークン */
.theme-light {
  --bg-primary: hsl(30, 20%, 97%); /* ぬくもりのあるオフホワイト */
  --bg-card: rgba(255, 255, 255, 0.45);
  --bg-card-hover: rgba(255, 255, 255, 0.7);
  --border-color: rgba(255, 255, 255, 0.35);
  --border-hover: rgba(255, 255, 255, 0.6);
  --shadow-color: rgba(220, 210, 200, 0.4);
  
  /* Text Colors */
  --text-primary: hsl(220, 15%, 16%); /* 深みのあるスレート */
  --text-secondary: hsl(220, 10%, 45%);
  --text-tertiary: hsl(220, 8%, 65%);
  
  /* Brand Accent Colors */
  --color-yom: hsl(238, 72%, 58%);      /* よむのーと: 藍ブルー */
  --color-study: hsl(14, 85%, 57%);     /* まなびのーと: 柿オレンジ */
  --color-share: hsl(152, 60%, 48%);    /* シェアのーと: 若草グリーン */
  --color-chari: hsl(198, 80%, 46%);    /* チャリのーと: 空シアン */
  --color-tabi: hsl(330, 75%, 55%);     /* たびのーと: 桃ピンク */
  --color-anime: hsl(272, 68%, 56%);    /* あにめのーと: 菫パープル */
  --color-blog: hsl(42, 85%, 50%);      /* ぶろぐのーと: 黄金イエロー */

  /* Ambient Orbs Colors */
  --orb-1-color: hsla(238, 75%, 85%, 0.45);
  --orb-2-color: hsla(152, 70%, 85%, 0.45);
  --orb-3-color: hsla(330, 75%, 85%, 0.45);
}

/* ダークモード トークン */
.theme-dark {
  --bg-primary: hsl(222, 47%, 10%); /* 深みのあるスレートブラック */
  --bg-card: rgba(15, 23, 42, 0.45);
  --bg-card-hover: rgba(30, 41, 59, 0.55);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.12);
  --shadow-color: rgba(0, 0, 0, 0.5);
  
  /* Text Colors */
  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-tertiary: hsl(215, 15%, 50%);
  
  /* Brand Accent Colors */
  --color-yom: hsl(238, 85%, 68%);      /* よむのーと: 明るいブルー */
  --color-study: hsl(14, 90%, 65%);     /* まなびのーと */
  --color-share: hsl(152, 70%, 55%);    /* シェアのーと */
  --color-chari: hsl(198, 90%, 55%);    /* チャリのーと */
  --color-tabi: hsl(330, 85%, 63%);     /* たびのーと */
  --color-anime: hsl(272, 80%, 66%);    /* あにめのーと */
  --color-blog: hsl(42, 95%, 58%);      /* ぶろぐのーと */

  /* Ambient Orbs Colors */
  --orb-1-color: hsla(238, 60%, 15%, 0.35);
  --orb-2-color: hsla(152, 50%, 15%, 0.3);
  --orb-3-color: hsla(330, 60%, 15%, 0.3);
}

/* --------------------------------------------------------------------------
   2. ベーススタイル (Base Reset & Setup)
   -------------------------------------------------------------------------- */

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.6s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   3. 背景カラーオーブ (Ambient Background Orbs)
   -------------------------------------------------------------------------- */

.orb-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: multiply;
  will-change: transform;
}

.theme-dark .orb {
  mix-blend-mode: screen; /* ダークモードでの発光ブレンド調整 */
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background-color: var(--orb-1-color);
  top: -10%;
  left: -10%;
  animation: floatOrb1 25s infinite alternate ease-in-out;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background-color: var(--orb-2-color);
  bottom: -15%;
  right: -5%;
  animation: floatOrb2 30s infinite alternate ease-in-out;
}

.orb-3 {
  width: 45vw;
  height: 45vw;
  background-color: var(--orb-3-color);
  top: 40%;
  left: 50%;
  animation: floatOrb3 28s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8%, 10%) scale(1.15); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10%, -8%) scale(1.1); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, -5%) scale(1.2); }
}

/* --------------------------------------------------------------------------
   4. ヘッダー (Header Styles)
   -------------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  width: 100%;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition-smooth);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  user-select: none;
}

.logo-japanese {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-english {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: 'Outfit', sans-serif;
  margin-top: 0.15rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ヘッダーナビゲーション */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  transition: var(--transition-smooth);
  position: relative;
}

.header-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

@media (max-width: 600px) {
  .header-nav {
    display: none;
  }
}

/* テーマ切り替えボタン */
.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition-spring);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-btn:hover {
  transform: scale(1.1);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.theme-btn:active {
  transform: scale(0.95);
}

/* アイコン表示切り替え */
.theme-light .moon-icon { display: block; }
.theme-light .sun-icon { display: none; }
.theme-dark .moon-icon { display: none; }
.theme-dark .sun-icon { display: block; }

/* --------------------------------------------------------------------------
   5. ヒーローセクション (Hero Section)
   -------------------------------------------------------------------------- */

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 5rem auto;
  text-align: center;
}

@media (min-width: 992px) {
  .hero-container {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
  }
}

.hero {
  max-width: 800px;
  width: 100%;
}

@media (min-width: 992px) {
  .hero {
    flex: 1.2;
    text-align: left;
  }
}

.badge-brand {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-yom);
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 10px var(--shadow-color);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-yom), var(--color-tabi));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  word-break: keep-all;
}

/* ヒーロービジュアル（浮遊する3DノートSVG） */
.hero-visual {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

@media (min-width: 992px) {
  .hero-visual {
    flex: 0.8;
    max-width: none;
  }
}

.hero-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 15px 35px var(--shadow-color));
}

/* SVGパーツアニメーション */
.svg-notebook-1 {
  animation: float-notebook-1 6s infinite alternate ease-in-out;
  transform-origin: center;
}

.svg-notebook-2 {
  animation: float-notebook-2 8s infinite alternate ease-in-out;
  transform-origin: center;
}

.svg-notebook-3 {
  animation: float-notebook-3 7s infinite alternate ease-in-out;
  transform-origin: center;
}

.svg-star {
  animation: float-star 4s infinite alternate ease-in-out;
  transform-origin: center;
}

.svg-star-delay-1 { animation-delay: 1.5s; }
.svg-star-delay-2 { animation-delay: 3s; }

@keyframes float-notebook-1 {
  0% { transform: translateY(0px) rotate(4deg); }
  100% { transform: translateY(-15px) rotate(6deg); }
}

@keyframes float-notebook-2 {
  0% { transform: translateY(0px) rotate(-8deg); }
  100% { transform: translateY(-22px) rotate(-6deg); }
}

@keyframes float-notebook-3 {
  0% { transform: translateY(0px) rotate(12deg); }
  100% { transform: translateY(-10px) rotate(10deg); }
}

@keyframes float-star {
  0% { transform: scale(0.85) translateY(0); opacity: 0.35; }
  100% { transform: scale(1.15) translateY(-8px); opacity: 0.95; }
}

/* --------------------------------------------------------------------------
   6. サービスライブラリ (Services Cards Grid)
   -------------------------------------------------------------------------- */

.services-section {
  margin-bottom: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* グリッドシステム */
.grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* グラスモルフィズムカード */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-spring);
  user-select: none;
}

.card:hover {
  transform: translateY(-10px) scale(1.01);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 15px 45px var(--shadow-color);
}

/* カード内部の発光エフェクト */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255,255,255,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-grow: 1;
}

/* カードアイコン */
.card-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
  transition: var(--transition-spring);
}

.card:hover .card-header-icon {
  transform: scale(1.1) rotate(5deg);
}

/* アイコン個別色調 */
.yom-color { background-color: var(--color-yom); color: white; }
.study-color { background-color: var(--color-study); color: white; }
.share-color { background-color: var(--color-share); color: white; }
.chari-color { background-color: var(--color-chari); color: white; }
.tabi-color { background-color: var(--color-tabi); color: white; }
.anime-color { background-color: var(--color-anime); color: white; }
.blog-color { background-color: var(--color-blog); color: white; }

/* ステータスバッジ */
.status-badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.active-badge {
  background-color: hsla(152, 60%, 48%, 0.15);
  color: var(--color-share);
}

.upcoming-badge {
  background-color: hsla(42, 85%, 50%, 0.15);
  color: var(--color-blog);
}

.planning-badge {
  background-color: rgba(148, 163, 184, 0.15);
  color: var(--text-secondary);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.card-title-en {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* フッターボタン */
.card-footer {
  margin-top: auto;
}

.card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 800;
  transition: var(--transition-spring);
  box-shadow: 0 4px 12px var(--shadow-color);
}

/* 稼働中ボタン */
.btn-yom {
  background-color: var(--color-yom);
  color: white;
  border: 1px solid var(--color-yom);
  cursor: pointer;
}

.btn-yom:hover {
  background-color: transparent;
  color: var(--color-yom);
  box-shadow: 0 8px 24px rgba(238, 238, 255, 0.1);
}

.btn-yom:hover svg {
  transform: translateX(4px);
}

.btn-yom svg {
  transition: var(--transition-spring);
}

/* 無効化ボタン */
.disabled-btn {
  background-color: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-tertiary);
  cursor: not-allowed;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   7. 特別コラム・ぶろぐのーと (Special Full-Width Layout)
   -------------------------------------------------------------------------- */

.grid-special {
  grid-template-columns: 1fr;
  margin-top: 3rem;
}

.special-card {
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,255,255,0.1) 100%);
}

.special-card-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .special-card-grid {
    flex-direction: row;
    align-items: center;
  }
}

.special-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.2);
  transition: var(--transition-spring);
  flex-shrink: 0;
}

.special-card:hover .special-card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.special-card-content {
  flex-grow: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.special-card-content .card-description {
  margin-bottom: 1.5rem;
}

.special-card-content .card-footer {
  width: 100%;
  max-width: 240px;
}

/* --------------------------------------------------------------------------
   8. SSO案内セクション (Single Sign-On Feature)
   -------------------------------------------------------------------------- */

.sso-section {
  margin: 5rem 0 3rem 0;
}

.sso-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
  box-shadow: 0 10px 40px var(--shadow-color);
}

@media (min-width: 768px) {
  .sso-card {
    flex-direction: row;
    align-items: center;
  }
}

.sso-icon {
  width: 80px;
  height: 80px;
  background-color: hsla(238, 72%, 58%, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-yom);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sso-text {
  flex-grow: 1;
}

.sso-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.sso-lead {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   9. フッター (Footer Styles)
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 0;
  margin-top: 5rem;
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.25rem;
  line-height: 1.6;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-yom);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  text-align: center;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-brand {
    align-items: center;
  }
  .footer-col {
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   10. アニメーション演出 (Scroll Reveal & Entry Animations)
   -------------------------------------------------------------------------- */

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   追加デザイン：プレミアム・アップグレード (style.css 追加分)
   ========================================================================== */

/* 1. ノイズテクスチャ背景 (Organic Paper Grain) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
.theme-dark body::before {
  opacity: 0.055;
}

/* 2. カスタムスクロールバー (Custom Scrollbars) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 9999px;
  border: 3px solid var(--bg-primary);
  transition: var(--transition-smooth);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* 3. スクロール進捗インジケーター (Scroll Progress Bar) */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-yom), var(--color-tabi), var(--color-share), var(--color-anime));
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 10px rgba(99, 102, 241, 0.4);
  transition: width 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 4. 運営者紹介セクション (Creator Section) */
.creator-section {
  margin: 6rem 0 3rem 0;
}

.creator-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  box-shadow: 0 10px 40px var(--shadow-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition-spring);
}

.creator-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 45px var(--shadow-color);
  transform: translateY(-6px);
}

@media (min-width: 992px) {
  .creator-card {
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 4rem;
  }
}

.creator-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* アバターCSSシェイプアニメーション */
.creator-avatar-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.creator-avatar {
  width: 120px;
  height: 120px;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  background: linear-gradient(135deg, var(--color-yom) 0%, var(--color-tabi) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
  animation: morphAvatar 8s infinite alternate ease-in-out;
  position: relative;
  z-index: 2;
  user-select: none;
}

.creator-avatar-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--color-yom) 0%, transparent 70%);
  opacity: 0.3;
  filter: blur(12px);
  z-index: 1;
  animation: pulseGlow 4s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes morphAvatar {
  0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
  50% { border-radius: 54% 46% 38% 62% / 49% 58% 42% 51%; }
  100% { border-radius: 62% 38% 43% 57% / 55% 35% 65% 45%; }
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.2; }
  100% { transform: scale(1.12); opacity: 0.45; }
}

.creator-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.creator-label {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-yom);
  margin-bottom: 1.5rem;
}

/* SNSリンク */
.creator-sns {
  display: flex;
  gap: 1rem;
}

.sns-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-spring);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.sns-btn:hover {
  transform: scale(1.15) translateY(-3px);
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.creator-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.creator-story-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.creator-story-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: linear-gradient(135deg, var(--color-yom), var(--color-tabi));
  border-radius: 99px;
}

.creator-story-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.9;
  word-break: break-all;
}

.creator-story-text strong {
  color: var(--text-primary);
  font-weight: 900;
}

/* 技術スタックタグ */
.creator-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  transition: var(--transition-smooth);
  user-select: none;
}

.creator-card:hover .tech-tag {
  border-color: var(--border-hover);
}

.tech-tag:hover {
  transform: translateY(-2px);
  color: var(--text-primary);
  box-shadow: 0 4px 10px var(--shadow-color);
}

/* ホバー時の個別ブランド着色 */
.tech-tag.html:hover { border-color: #e34c26; color: #e34c26; background: rgba(227, 76, 38, 0.05); }
.tech-tag.css:hover { border-color: #264de4; color: #264de4; background: rgba(38, 77, 228, 0.05); }
.tech-tag.js:hover { border-color: #f7df1e; color: #bca000; background: rgba(247, 223, 30, 0.05); }
.tech-tag.uiux:hover { border-color: var(--color-tabi); color: var(--color-tabi); background: hsla(330, 75%, 55%, 0.05); }
.tech-tag.git:hover { border-color: #f05032; color: #f05032; background: rgba(240, 80, 50, 0.05); }

/* 5. ページトップへ戻るボタン (Back to Top Button) */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.85);
  transition: var(--transition-spring);
  box-shadow: 0 8px 24px var(--shadow-color);
  z-index: 150;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-5px) scale(1.08);
  color: var(--color-yom);
  box-shadow: 0 12px 32px var(--shadow-color);
}

.back-to-top:active {
  transform: translateY(-2px) scale(0.95);
}

.back-to-top svg {
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-4px);
}

/* ==========================================================================
   11. インタラクティブ認証＆プロフィールドロップダウン (Dynamic Auth UI)
   ========================================================================== */

.auth-widget-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* ログインボタン（プレミアム・ピル） */
.auth-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, var(--color-yom), hsl(238, 85%, 68%));
  border: none;
  border-radius: 9999px;
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
  transition: var(--transition-spring);
  text-decoration: none;
}

.auth-login-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.auth-login-btn:active {
  transform: translateY(0) scale(0.96);
}

/* プロフィールウィジェット */
.auth-profile-widget {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-spring);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.auth-profile-widget:hover {
  transform: scale(1.08);
  border-color: var(--color-yom);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.35);
}

.auth-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-cover: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--color-yom);
  background: hsla(238, 72%, 58%, 0.08);
  text-transform: uppercase;
}

/* ドロップダウンメニュー（すりガラス・スプリング） */
.auth-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transform: translateY(15px) scale(0.92);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.theme-dark .auth-dropdown {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.auth-dropdown.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* ドロップダウンヘッダー */
.auth-dropdown-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.auth-user-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-primary);
  word-break: break-all;
}

.auth-user-email {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  word-break: break-all;
  font-family: 'Outfit', sans-serif;
}

/* 会員バッジ */
.auth-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 900;
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

.auth-badge.badge-normal {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
}

.auth-badge.badge-premium {
  background: linear-gradient(135deg, hsla(330, 75%, 55%, 0.15) 0%, hsla(280, 75%, 55%, 0.15) 100%);
  color: var(--color-tabi);
  border: 1px solid hsla(330, 75%, 55%, 0.15);
}

.auth-badge.badge-admin {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  color: var(--color-yom);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

/* メニュー項目 */
.auth-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.auth-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.auth-dropdown-item:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  transform: translateX(4px);
}

.auth-dropdown-item svg {
  color: var(--text-tertiary);
  transition: var(--transition-smooth);
}

.auth-dropdown-item:hover svg {
  color: var(--color-yom);
}

/* 管理者限定リンク */
.auth-dropdown-item.admin-link {
  background: rgba(99, 102, 241, 0.05);
  color: var(--color-yom);
  border: 1px solid rgba(99, 102, 241, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-dropdown-item.admin-link:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.auth-dropdown-item.admin-link svg {
  color: var(--color-yom);
}

/* 脈動する通知ドット */
.admin-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ef4444;
  position: absolute;
  top: 10px;
  right: 12px;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseDot 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.auth-dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.25rem 0;
}

/* ログアウトボタン */
.auth-logout-btn {
  background: transparent;
  border: none;
  width: 100%;
  justify-content: flex-start;
  cursor: pointer;
  font-family: inherit;
}

.auth-logout-btn:hover {
  background: hsla(350, 75%, 55%, 0.08);
  color: #ef4444;
}

.auth-logout-btn:hover svg {
  color: #ef4444;
  transform: translateX(2px);
}

/* ==========================================================================
   12. プラットフォーム稼働状況 ＆ お知らせ (Platform Status & Announcements)
   ========================================================================== */

.grid-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.status-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 1rem 0;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 0.75rem;
  transition: var(--transition-spring);
}

.theme-light .status-item {
  background: rgba(255, 255, 255, 0.35);
}

.status-item:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.status-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.status-service-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

.status-service-desc {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* 稼働インジケーター */
.status-indicator-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator-text {
  font-size: 0.75rem;
  font-weight: 800;
}

.status-indicator-text.operational {
  color: var(--color-share);
}

.status-indicator-text.maintenance {
  color: var(--color-blog);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: relative;
}

.status-indicator.operational {
  background-color: var(--color-share);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseOperational 2s infinite;
}

.status-indicator.maintenance {
  background-color: var(--color-blog);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulseMaintenance 2s infinite;
}

@keyframes pulseOperational {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseMaintenance {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* お知らせリスト */
.announcements-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.announcement-item-portal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-left-width: 4px;
  border-radius: 14px;
  transition: var(--transition-spring);
  cursor: pointer;
}

.theme-light .announcement-item-portal {
  background: rgba(255, 255, 255, 0.35);
}

/* 優先度別の左ボーダーカラー */
.announcement-item-portal.high {
  border-left-color: #ef4444; /* 高優先度: 赤 */
}

.announcement-item-portal.medium {
  border-left-color: var(--color-yom); /* 中優先度: ブルー */
}

.announcement-item-portal.low {
  border-left-color: var(--text-tertiary); /* 低優先度: グレー */
}

.announcement-item-portal:hover {
  transform: translateY(-2px) translateX(2px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.announcement-meta-portal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.announcement-date-portal {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.announcement-priority-badge {
  font-size: 0.6rem;
  font-weight: 900;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.announcement-priority-badge.high {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.announcement-priority-badge.medium {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-yom);
}

.announcement-priority-badge.low {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-tertiary);
}

.announcement-title-portal {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.4;
}

.announcement-desc-portal {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ポータルのカスタムスクロールバー微調整 */
.announcements-list-wrapper::-webkit-scrollbar {
  width: 6px;
}
.announcements-list-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.announcements-list-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 99px;
  border: none;
}
.announcements-list-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ポップアップ詳細モーダル */
.portal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.portal-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.portal-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-modal-overlay.show .portal-modal {
  transform: translateY(0) scale(1);
}

.portal-modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.portal-modal-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.portal-modal-footer {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}



.status-indicator-text.minor { color: #f59e0b; }
.status-indicator-text.major { color: #ef4444; }
.status-indicator.minor { background-color: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.5); }
.status-indicator.major { background-color: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); animation: pulseMajor 1s infinite; }
@keyframes pulseMajor { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); } 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }

