/* =========================================
   Banner Redesign Styles (Modern & Fashionable)
   Vertical Compact Layout
   ========================================= */

/* Wrapper for the entire banner section */
.banner-section {
  width: 420px;
  /* Constrained width (approx half of main content) */
  margin: 40px 0 40px 20px;
  /* Align Left with padding */
  font-family: "游ゴシック", YuGothic, "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;

  /* Stacked Layout (Default Block) */
  display: block;
}

.banner-section.subpage-margin {
  margin-top: 80px;
  /* Clears fixed header (36px) + buffer */
}

/* 1. Notice Board (News) */
.notice-board {
  background-color: rgba(125, 43, 3, 0.7);
  /* User requested color */
  border-radius: 8px;
  padding: 24px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* border: 1px solid #f0f0f0; Removed for dark bg */
  margin-bottom: 30px;
  /* Space between Notice and Banners */
  color: #fff;
}

.notice-board h3 {
  font-size: 18px;
  color: #fff;
  border-left: 4px solid #fff;
  /* White accent */
  padding-left: 12px;
  margin-bottom: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

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

.notice-list li {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  padding: 12px 0;
  transition: background-color 0.2s;
}

.notice-list li:last-child {
  border-bottom: none;
}

.notice-list li a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.2s, padding-left 0.2s;
}

.notice-list li a:hover {
  color: #ffff00;
  padding-left: 6px;
}

/* 2. Banner Grid (Banners) */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 Cols */
  gap: 16px;
}

.banner-item {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  z-index: 1;
}

.banner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.banner-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.banner-item:hover img {
  transform: scale(1.03);
}

/* Ensure full-width items stay consistent in grid */
.banner-item.full-width {
  grid-column: span 1;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .banner-section {
    width: 100%;
    margin: 20px auto;
    /* Reset fixed margin to center/safe on mobile */
    padding: 0 16px;
    box-sizing: border-box;
  }

  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile text adjustments */
  .notice-board h3 {
    font-size: 28px;
  }

  .notice-list li a {
    font-size: 22px;
  }

  /* Mobile Visibility Helpers */
  .sp_hidden {
    display: none !important;
  }

  /* .pc_hide { display: block !important; }  <-- Removed to prevent forcing hidden elements (like sp_menu_fixed) to show */

  /* Reset subpage margin for mobile */
  .banner-section.subpage-margin {
    margin-top: 20px;
  }
}

/* PC Visibility Helpers */
@media screen and (min-width: 769px) {
  .pc_hide {
    display: none !important;
  }

  .sp_hidden {
    display: block !important;
  }
}
