@charset "UTF-8";

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #d8e8f8;
 
  color: #102030;
  font-family: 'DotGothic16', monospace, sans-serif;
  line-height: 1.8;
  padding: 20px 10px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

::selection {
  background: #6283c8;
  color: #fefefe;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Link Styles (共通)
   ========================================================================== */
a:link {
  color: #2b41a7;
  text-decoration: none;
}

a:hover {
  color: #c7ad24;
  text-decoration: underline;
}

a:visited {
  color: #ccc776;
  text-decoration: underline;
}

/* ==========================================================================
   Window Base & Variants
   ========================================================================== */
/* ウィンドウ共通 */
.win,
.win-blue {
  color: #102030;
  border: 4px solid #102030;
  border-radius: 8px;
  box-shadow: 
    inset 0 0 0 2px #fefefe,
    inset 0 0 0 4px #102030,
    0 6px 0 rgba(16, 32, 48, 0.15);
  position: relative;
}

/* 通常の白ウィンドウ */
.win {
  background-color: #fefefe;
  padding: 16px 40px 40px 40px;
}

/* サブウィンドウ（ブルー） */
.win-blue {
  background-color: #e8f0f8;
  padding: 16px;
}

/* 点滅矢印マーク */
.msg-arrow::after {
  content: '▼';
  position: absolute;
  bottom: 5px;
  right: 15px;
  font-size: 0.8rem;
  color: #102030;
  animation: blink 1.0s infinite steps(1);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================================
   Header & Command Navigation
   ========================================================================== */
header.win {
  text-align: center;
  padding-bottom: 16px;
}

.site-title {
  font-size: 1.6rem;
  color: #102030;
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.site-subtitle {
  font-size: 0.85rem;
  color: #406080;
  margin-bottom: 12px;
}

.command-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  list-style: none;
  background: #f0f4f8;
  border: 2px solid #102030;
  border-radius: 4px;
  padding: 8px 12px;
}

.command-menu a {
  color: #102030;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  padding-left: 16px;
  font-weight: bold;
}

.command-menu a::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  color: #6283c8;
}

.command-menu a:hover::before,
.command-menu li.active a::before {
  opacity: 1;
}

/* ==========================================================================
   Notice Section
   ========================================================================== */
.notice-section {
  font-size: 0.9rem;
  line-height: 1.8;
}

.notice-list {
  list-style: none;
  margin-top: 8px;
}

.notice-list li {
  position: relative;
  padding-left: 16px;
}

.notice-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #2870e0;
}

/* ==========================================================================
   Layout Grid & Section Titles
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .main-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.section-title {
  font-size: 1rem;
  color: #fefefe;
  background-color: #6283c8;
  border: 2px solid #102030;
  display: inline-block;
  padding: 2px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: bold;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fefefe;
  border: 2px solid #102030;
  border-radius: 6px;
  padding: 6px;
  text-decoration: none;
  color: #102030;
  transition: transform 0.1s, border-color 0.1s;
  max-width: 100%;
  overflow: hidden; 
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: #2b41a7;
}

.gallery-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #f0f4f8;
  border: 1px solid #102030;
  border-radius: 2px;
  display: block;
}

.gallery-name {
  font-size: 0.8rem;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ==========================================================================
   Status Sidebar & Lists
   ========================================================================== */
.status-card {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #102030;
  padding-bottom: 8px;
}

.status-icon {
  width: 44px;
  height: 44px;
  background-color: #fefefe;
  border: 2px solid #102030;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.status-list,
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.status-list {
  gap: 6px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  background-color: #fefefe;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #102030;
}

.status-label {
  color: #506070;
}

.status-val {
  color: #102030;
  font-weight: bold;
}

.link-list {
  gap: 4px;
}

footer.win {
  text-align: center;
  font-size: 0.8rem;
  padding-bottom: 16px;
}

/* ==========================================================================
   Buttons & Mobile Overlay
   ========================================================================== */
/* 固定ボタン共通設定 */
.pixel-btn {
  width: 44px;
  height: 44px;
  background-color: #fefefe;
  color: #102030;
  border: 4px solid #102030;
  border-radius: 8px;
  box-shadow: 
    inset 0 0 0 2px #fefefe,
    inset 0 0 0 4px #102030,
    0 6px 0 rgba(16, 32, 48, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DotGothic16', monospace, sans-serif;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  position: fixed;
  right: 30px;
  transition: transform 0.1s;
}

.pixel-btn:hover {
  transform: translateY(-2px);
}

/* ページトップに戻るボタン */
#btn-back-to-top {
  bottom: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  padding-bottom: 3px;
}

/* ハンバーガーメニューボタン */
#btn-menu {
  top: 30px;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

#btn-menu .bar {
  width: 20px;
  height: 3px;
  background-color: #102030;
  border-radius: 2px;
  transition: all 0.3s;
  transform-origin: center;
}

/* ハンバーガーアニメーション */
#btn-menu.is-open .bar1 {
  transform: translateY(8px) rotate(45deg);
}

#btn-menu.is-open .bar2 {
  opacity: 0;
}

#btn-menu.is-open .bar3 {
  transform: translateY(-8px) rotate(-45deg);
}

/* オーバーレイメニュー */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(216, 232, 248, 0.95);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

#menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-content {
  background-color: #fefefe;
  border: 4px solid #102030;
  border-radius: 8px;
  padding: 40px;
  width: 80%;
  max-width: 400px;
  box-shadow: 
    inset 0 0 0 2px #fefefe,
    inset 0 0 0 4px #102030,
    0 6px 0 rgba(16, 32, 48, 0.15);
  flex-direction: column;
  gap: 16px;
}

.menu-overlay-content a {
  font-size: 1.2rem;
  padding-left: 20px;
}

/* レスポンシブ切り替え */
@media (min-width: 768px) {
  #btn-menu,
  #menu-overlay {
    display: none;
  }
}

@media (max-width: 767px) {
  header.win .command-menu {
    display: none;
  }
}