/* =====================
   Pastel Lavender Theme (v10.2)
   - Layout width adjustment
   - Fixed Sticky Footer
===================== */

@font-face {
  font-family: 'LightNovelPOP';
  src: url('../file/font/LightNovelPOPv2.otf') format('opentype');
}

:root {
  --bg-color: #F8F0FF;
  --card-bg: #FFFFFF;
  --text-main: #6A5D8A;
  --text-sub: #9A8CC0;
  --primary-lavender: #C1B0E6;
  --header-height: 80px;
  --card-shadow: 0 15px 50px rgba(106, 93, 138, 0.12);
}

* {
  font-family: 'LightNovelPOP', system-ui, sans-serif !important;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8;
  overflow-x: hidden;
  /* ページ全体を縦のFlexboxにする */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- 背景装飾 --- */
.pastel-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.blob-1 { width: 600px; height: 600px; background: #C1B0E6; top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: #FFD1DC; bottom: -100px; right: -100px; }

/* --- ヘッダー --- */
.pastel-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(193, 176, 230, 0.2);
  display: flex;
  justify-content: center;
  padding: 0 2rem;
  flex-shrink: 0;
}
.header-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- ロゴ画像の調整 --- */
.header-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    border-radius: 8px;
}
.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-main { font-size: 1.8rem; font-weight: bold; color: var(--text-main); }
.logo-sub { font-size: 0.75rem; color: var(--text-sub); display: block; }

/* --- プルダウンメニュー --- */
.dropdown-nav { position: relative; }
.menu-trigger {
  border-radius: 12px;
  background: rgba(193, 176, 230, 0.2);
  color: var(--text-main);
  border: 2px solid var(--primary-lavender);
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  transition: 0.3s;
}
.menu-trigger:hover {
  background: var(--primary-lavender);
  color: white;
  transform: translateY(-2px);
}
.dropdown-content {
  position: absolute;
  top: 60px;
  right: 0;
  width: 240px;
  background: white;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  list-style: none;
  padding: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
}
.dropdown-nav:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  text-decoration: none;
  color: var(--text-main);
  border-radius: 8px;
}
.nav-item:hover { background: rgba(193, 176, 230, 0.1); padding-left: 1.2rem; }

/* --- レイアウト (修正箇所) --- */
.main-container {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center; /* 子要素を中央寄せにするが、幅は指定できるようにする */
  flex: 1;             /* コンテンツが少なくてもフッターを押し下げる */
  width: 100%;
}

.content-card {
  width: 95%;          /* 寄りすぎを防ぐために幅を広く確保 */
  max-width: 1100px;
  background: white;
  border-radius: 30px;
  padding: 4rem 5%;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.section-title { font-size: 2rem; margin-bottom: 1.5rem; color: var(--text-main); }
.section-title.small { font-size: 1.5rem; }
.highlight { color: var(--primary-lavender); font-weight: bold; }

/* --- ニュースセクション --- */
.news-container {
  max-width: 950px;
  margin: 0 auto 2rem;
  text-align: left;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 0.5rem;
  border-bottom: 1px dashed rgba(193, 176, 230, 0.3);
  gap: 2rem;
}
.news-date { font-size: 0.9rem; color: var(--text-sub); font-weight: bold; min-width: 100px; }
.news-text { flex: 1; font-size: 0.95rem; color: var(--text-main); }

.news-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.9rem;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.news-tag.server { background: linear-gradient(135deg, #A0D2EB, #89c4e1); }
.news-tag.info { background: linear-gradient(135deg, #FFD1DC, #ffb7c5); }
.news-tag.update { background: linear-gradient(135deg, #B9FBC0, #98ee9f); color: #5d8a66; }
.news-tag.maint { background: linear-gradient(135deg, #C1B0E6, #a894d3); }
.news-tag.warn { background: linear-gradient(135deg, #FFECB3, #ffd54f); color: #8a7b5d; }

/* --- スライダー --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 25px;
    background-color: #333;
}
.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.slider-item.active { opacity: 1; }
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-slider { height: 250px; }
}

/* --- 掲示板 (BBS) --- */
.pastel-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}
.pastel-form textarea, .pastel-form input[type="text"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(193, 176, 230, 0.3);
  border-radius: 15px;
  outline: none;
  transition: 0.3s;
}
.pastel-form textarea:focus, .pastel-form input[type="text"]:focus {
  border-color: var(--primary-lavender);
  background: #fdfbff;
}
.pastel-btn {
  background: var(--primary-lavender);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.pastel-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(193, 176, 230, 0.4); }

.post-item {
  background: #fdfbff;
  border: 1px solid rgba(193, 176, 230, 0.15);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}
.post-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(193, 176, 230, 0.2);
  padding-bottom: 0.5rem;
}
.post-author { font-weight: bold; color: var(--primary-lavender); }
.post-image-area img { max-width: 200px; border-radius: 10px; cursor: pointer; margin-top: 1rem; }

/* --- ポップアップ --- */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(106, 93, 138, 0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}
.popup-inner img { max-width: 90vw; max-height: 80vh; border-radius: 15px; }
.popup-close { color: white; margin-top: 1rem; cursor: pointer; text-align: center; }

/* --- スリムフッター --- */
.pastel-footer {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(193, 176, 230, 0.2);
  padding: 1.5rem 2rem;
  margin-top: auto; 
  flex-shrink: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-content { display: flex; align-items: center; gap: 2rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-link { text-decoration: none; color: var(--text-main); font-size: 0.85rem; font-weight: bold; transition: 0.3s; }
.footer-link:hover { color: var(--primary-lavender); }
.copyright { font-size: 0.75rem; color: var(--text-sub); }

/* --- YouTube --- */
.youtube-frame-wrapper { max-width: 1000px; margin: 2rem auto; padding: 15px; background: var(--bg-color); border-radius: 20px; }
.youtube-frame { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.youtube-frame iframe { width: 100%; height: 100%; border: none; }

.pastel-separator { margin: 4rem 0; display: flex; justify-content: center; }
.separator-dot { width: 10px; height: 10px; background: var(--primary-lavender); border-radius: 50%; opacity: 0.4; }

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-content { flex-direction: column; gap: 0.5rem; }
  .news-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}