/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


/* ===============================
   システムからのお知らせ（最終版）
   =============================== */

.system-notice-title {
  font-size: 1.4em;
  font-weight: 700;
  border-bottom: 2px solid #4d4d4d;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ----- 一覧全体 ----- */
.system-notice-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.system-notice-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  flex-wrap: nowrap; /* 各列を1行に固定 */
}

/* ----- ラベル部分（完全固定幅） ----- */
.notice-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 28px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 15px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.label-release { background-color: #F0795A; }   /* アップデート */
.label-bug { background-color: #004FA1; }       /* 不具合情報 */
.label-important { background-color: #E74C3C; } /* 重要なお知らせ */
.label-other { background-color: #7F8C8D; }     /* その他 */

/* ----- 日付部分 ----- */
.notice-date {
  color: #555;
  font-size: 0.9rem;
  min-width: 100px; /* 日付桁ズレ対策 */
  text-align: left;
  flex-shrink: 0;
}

/* ----- タイトルリンク部分 ----- */
.notice-title {
  color: #0073aa;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s ease;
}

.notice-title:hover {
  color: #e67e22;
  text-decoration: underline;
}

/* ----- ボタン部（もっと見る） ----- */
.notice-buttons {
  text-align: center;
  margin-top: 15px;
}

.notice-more-btn {
  display: inline-block;
  padding: 8px 20px;
  background: #f0795a;!important
  color: #fff;!important
  border-radius: 5px;!important
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.notice-more-btn:hover {
  opacity: 0.8;
}

/* 初期非表示要素 */
.hidden-item {
  display: none;
}

/* ===== スマホ対応（レスポンシブ） ===== */
@media (max-width: 768px) {
  .system-notice-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .notice-label {
    margin-bottom: 2px;
  }

  .notice-date {
    min-width: auto;
  }

  .notice-title {
    width: 100%;
  }
}

/* ===============================
   投稿ページの余白調整
   =============================== */
.single-post #primary.content-area,
.single-post .site-content,
.single-post .ast-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.single-post .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 最初のh2の余白を微調整 */
.single-post .entry-content .wp-block-heading:first-of-type {
  margin-top: 10px !important;
}
