@charset "utf-8";

/* ==========================================================================
   1. 共通レイアウト（バナーコンテナ）
   ========================================================================== */
.custom-banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ==========================================================================
   2. 年度別バナーのデザイン
   ========================================================================== */
.year-link-item {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  color: #fff !important;
  position: relative; 
  min-height: 230px; 
}

.year-link-item:hover {
  transform: translateY(-5px);
}

/* キラーンと光るエフェクト */
.year-link-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
}

.year-link-item:hover::after {
  left: 150%;
  transition: left 0.6s ease-in-out;
}

.banner-inner-box {
  text-align: center;
  width: 100%;
  z-index: 2;
}

/* 年度タイトル (H3) */
.year-link-item h3 {
  position: relative;
  display: inline-block; 
  margin: 0 !important; 
  padding: 0 25px !important; 
  height: 110px !important; 
  line-height: 110px !important; 
  font-size: 2.2rem !important; 
  font-weight: bold !important;
  color: #fff !important;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  background: none !important;
  border: none !important;
}

/* 上下アーチ */
.year-link-item h3:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px; 
  height: 90px; 
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.85); 
  border-left-color: transparent; 
  border-right-color: transparent;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* 下部テキストグループ */
.year-text-group {
  margin-top: 20px !important; 
}

.year-text-group p {
  margin: 0 !important; 
  line-height: 1.4 !important; 
  font-weight: bold;
  color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.text-main { font-size: 1.1rem !important; letter-spacing: 0.05em; }
.text-sub { font-size: 0.85rem !important; opacity: 0.9; }

/* グラデーション色 */
.bg-2025 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
.bg-2024 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.bg-2023 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.bg-2022 { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.bg-2021 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-2020 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-2019 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.bg-2018 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.bg-2017 { background: linear-gradient(135deg, #50a7c2 0%, #3e5eac 100%); }

/* ==========================================================================
   3. レビューカードのデザイン (The Handy2)
   ========================================================================== */
.info-card-container {
    margin: 40px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.info-card-box {
    display: flex; 
    align-items: flex-start;
    gap: 25px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
}

.info-card-box:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.info-card-img {
    flex: 0 0 320px;
}

.info-card-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.info-card-content {
    flex: 1;
}

.info-card-title {
    margin: 0 0 15px 0;
    color: #0056b3;
    font-size: 1.4rem;
    font-weight: bold;
    border-left: 5px solid #3498db;
    padding: 8px 0 8px 15px;
    background: #f0f7ff;
}

.info-card-desc {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
    font-size: 1rem;
}

/* ==========================================================================
   4. レスポンシブ (スマホ対応)
   ========================================================================== */
@media (max-width: 768px) {
  /* バナー */
  .custom-banner-grid { grid-template-columns: 1fr; }
  .year-link-item { min-height: 210px; }
  .year-link-item h3 {
    font-size: 1.8rem !important;
    height: 100px !important; 
    line-height: 100px !important;
  }
  .year-link-item h3:before { width: 200px; height: 75px; }
  .year-text-group { margin-top: 15px !important; }

  /* レビューカード */
  .info-card-box { flex-direction: column; }
  .info-card-img { flex: 0 0 auto; width: 100%; }
  .info-card-title { font-size: 1.2rem; }
}