@charset "utf-8";

/* --- レイアウト（PC3列・スマホ1列） --- */
.banner-container {
  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;
}

/* --- バナー共通設定 --- */
.banner-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;
  position: relative; 
  /* 余白が増えた分、バナー全体の高さも調整 */
  min-height: 230px; 
}

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

/* --- キラーンと光るエフェクト --- */
.banner-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);
  transition: none;
}

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

.banner-content {
  padding: 0 !important;
  text-align: center;
  width: 100%;
  z-index: 2;
}

/* --- H3デザイン（さらに余白を確保） --- */
.banner-container .banner-item .banner-content h3 {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  
  position: relative;
  display: inline-block; 
  margin: 0 !important; 
  padding: 0 25px !important; 
  
  /* ★重要：アーチを避けるため高さを 90px → 110px に拡大 */
  height: 110px !important; 
  line-height: 110px !important; 
  
  font-size: 2.2rem !important; 
  font-weight: bold !important;
  color: #fff !important;
  z-index: 1;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* 上下アーチ（サイズは維持、位置を固定） */
.banner-container .banner-item .banner-content 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%);
  -webkit-transform: translate(-50%, -50%);
  z-index: -1;
  filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
}

/* --- 下部テキスト（2行） --- */
.banner-content .desc-group {
  /* ★H3の土台を広げた上で、さらに 20px 離す */
  margin-top: 20px !important; 
}

.banner-container .banner-item .banner-content p {
  background: none !important;
  border: none !important;
  color: #fff !important;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  margin: 0 !important; 
  line-height: 1.4 !important; 
}

.banner-content .main-link {
  font-size: 1.1rem !important;
  letter-spacing: 0.05em;
}

.banner-content .sub-text {
  font-size: 0.85rem !important;
  opacity: 0.9;
}

/* --- 各年度のカラー設定 --- */
.year-2017 { background: linear-gradient(135deg, #50a7c2 0%, #3e5eac 100%); }
.year-2018 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.year-2019 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.year-2020 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.year-2021 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.year-2022 { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.year-2023 { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.year-2024 { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
.year-2025 { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }

/* --- スマホ対応（1列表示時の重なり防止） --- */
@media (max-width: 768px) {
  .banner-container {
    grid-template-columns: 1fr;
  }
  .banner-item {
    /* テキスト2行分の高さを確保 */
    min-height: 210px; 
  }
  .banner-container .banner-item .banner-content h3 {
    font-size: 1.8rem !important;
    /* ★アーチが下の文字を押し下げるよう、高さを 80px から 100px に拡大 */
    height: 100px !important; 
    line-height: 100px !important;
  }
  .banner-container .banner-item .banner-content h3:before {
    /* アーチ自体のサイズ調整 */
    width: 200px;
    height: 75px;
  }
  .banner-content .desc-group {
    /* ★アーチのエリアからさらに 20px 距離を置く */
    margin-top: 20px !important; 
  }
}

/* --- レビューカード（横並び設定） --- */
.review-card-2025 .card-link {
    display: flex; /* ★画像を横並びにする設定 */
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.review-card-2025 .card-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.review-card-2025 .card-image {
    flex: 0 0 300px; /* ★画像の幅を固定 */
}

.review-card-2025 .card-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.review-card-2025 .card-body {
    flex: 1; /* ★テキストが残りの幅を埋める */
}

.review-card-2025 .card-title {
    margin: 0 0 10px 0;
    color: #0000ee;
    font-size: 1.25rem;
    border-left: 4px solid #3498db;
    padding-left: 10px;
    background: #eef7ff;
    padding-top: 5px;
    padding-bottom: 5px;
}

.review-card-2025 .card-text {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
    font-size: 0.95rem;
}

/* スマホ表示の時は縦に並べる */
@media (max-width: 768px) {
    .review-card-2025 .card-link {
        flex-direction: column;
    }
    .review-card-2025 .card-image {
        flex: 0 0 auto;
        width: 100%;
    }
}