body {
  font-family: sans-serif;
  background: #f0f0f0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 広告コンテナ（共通） */
.ad-box {
  margin: 20px auto;
  max-width: 728px;
  text-align: center;
  min-height: 50px;
}

main {
  flex: 1;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ========================================================
   元コード通りのヘッダー指定（カラーのみ #ccccba を適用）
   明るい背景でも視認性を確保するため文字色をダークグレーに設定
   ======================================================== */
.site-header {
  background: #ccccba;
  color: #222222;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  text-align: center; /* タイトルとサブタイトルを中央揃えに配置 */
}

.header-left h1 {
  margin: 0;
}

.header-left p {
  margin: 5px 0 0;
  font-size: 0.9em;
  text-align: center; /* サブタイトルを中央寄せ */
}

/* 姉妹サイトボタングループ */
.header-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* 元コード完全準拠の姉妹サイトリンクボタン（浮き上がりアニメーション付き） */
.sister-site-link {
  background: #fff;
  color: #333333;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.sister-site-link:hover {
  background: #f5f5f0;
  transform: translateY(-2px);
}

/* ========================================================
   中央の大きい「エミュレーター起動」エリア
   ======================================================== */
.launch-section {
  max-width: 900px;
  margin: 20px auto 25px;
  background: #ffffff;
  border-radius: 14px;
  padding: 40px 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  box-sizing: border-box;
  text-align: center;
}

.launch-big-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ccccba;
  color: #1a1a16;
  border: 2px solid #a8a892;
  border-radius: 14px;
  padding: 18px 45px;
  font-size: 1.3rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.launch-big-button:hover {
  background: #babaa8;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.launch-icon {
  font-size: 1.8rem;
}

.launch-subtext {
  margin: 15px 0 0;
  font-size: 0.9rem;
  color: #666;
}

/* ========================================================
   お知らせ欄（元コード完全準拠）
   ======================================================== */
.news-section {
  max-width: 900px;
  margin: 20px auto 0;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  box-sizing: border-box;
  width: 100%;
}

.news-section h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
  color: #333;
  border-left: 6px solid #8e8e7a;
  padding-left: 10px;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  padding: 10px 5px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item .date {
  color: #888;
  margin-right: 10px;
  font-weight: bold;
  display: inline-block;
}

.badge {
  background: #ff5252;
  color: white;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 8px;
  display: inline-block;
}

.news-item.new {
  font-weight: bold;
}

/* ご意見フォーム（元コード完全準拠） */
.feedback-link {
  text-align: center;
  margin: 30px 0;
}

.feedback-button {
  background-color: #8e8e7a;
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s, transform 0.1s;
  display: inline-block;
}

.feedback-button:hover {
  background-color: #7a7a68;
  transform: translateY(-2px);
}

.feedback-button:active {
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 15px;
  background: #eee;
  font-size: 12px;
}

/* ========================================================
   ダークモード（元コード準拠）
   ======================================================== */
@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #ffffff;
  }

  .launch-section,
  .news-section {
    background: #1e1e1e;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #2a2a2a;
  }

  .launch-big-button {
    background: #3a3a34;
    color: #f0f0ea;
    border-color: #55554d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  }

  .launch-big-button:hover {
    background: #46463f;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  }

  .launch-subtext {
    color: #aaa;
  }

  .news-section h2 {
    color: #ffffff;
  }

  .news-item {
    border-bottom-color: #333333;
    color: #e0e0e0;
  }

  .news-item .date {
    color: #aaa;
  }

  footer {
    background: #121212;
    color: #aaa;
  }
}

/* ========================================================
   スマホ調整（元コード完全準拠）
   ======================================================== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 15px;
    gap: 12px;
  }

  .header-left h1 {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .header-left p {
    font-size: 0.85em;
    margin-top: 4px;
  }

  .header-right {
    justify-content: center;
  }

  .sister-site-link {
    font-size: 0.85rem;
    padding: 8px 15px;
  }

  main {
    padding: 0 16px;
  }

  .launch-section {
    padding: 30px 15px;
    margin: 15px auto;
  }

  .launch-big-button {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.15rem;
  }

  .news-section {
    padding: 16px 14px;
    margin-top: 15px;
  }
}