/* --- ARIM NEWS Section Styles --- */

.arim-news-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 970px;
  margin: 40px auto 20px;
  padding: 0 20px;
  box-sizing: border-box;
}

.arim-news-heading span { color: #0a6798; font-weight: bold; font-size: 20px; white-space: nowrap; }
.arim-news-heading hr { flex-grow: 1; border: 0; height: 1px; background: #ccc; margin: 0; }

/* センター配置のための外枠 */
.arim-news-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* メインとリストを横に並べるための設定 */
.arim-news-grid {
  display: flex;
  flex-direction: row; /* 横並びを強制 */
  flex-wrap: nowrap;    /* デスクトップでは折り返さない */
  justify-content: space-between; /* 両端に配置 */
  align-items: stretch;
  gap: 20px;
  width: 100%;
}

/* メインの大カード：幅を650pxに固定 */
.arim-news-main-card {
  flex: 0 1 650px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  text-decoration: none;
  border: 1px solid #eee;
  transition: transform 0.2s ease;
}

.arim-news-main-card:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); }

/* カード内のレイアウト */
.arim-news-card-left {
  width: 30%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #053a56 0%, #0a6798 100%);
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.arim-news-card-right {
  flex: 1;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 右側のリスト：幅を300pxに固定 */
.arim-news-sub-list {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- 共通要素のスタイル --- */
.arim-news-special-label { background: #ffeb3b !important; color: #053a56 !important; font-weight: 800 !important; font-size: 9px !important; padding: 2px 8px !important; border-radius: 4px !important; margin-bottom: 8px !important; display: inline-block; }
.arim-news-card-left h3 { color: #fff !important; font-size: 15px !important; line-height: 1.3 !important; font-weight: 700 !important; margin: 0 0 5px 0 !important; }
.arim-news-date-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.arim-news-date { font-size: 16px !important; color: #888 !important; font-weight: bold !important; }
.arim-news-badge { font-size: 16px !important; color: #0a6798 !important; background: #e1f5fe !important; padding: 1px 5px !important; border-radius: 2px !important; font-weight: 700 !important; }
.arim-news-card-right h4 { font-size: 15px !important; font-weight: 700 !important; color: #222 !important; line-height: 1.3 !important; margin: 0 0 8px 0 !important; }
.arim-news-description { font-size: 16px !important; color: #666 !important; line-height: 1.4 !important; margin: 0; }

.arim-news-sub-item { background: #fff; padding: 12px 15px; border-radius: 8px; border: 1px solid #eee; text-decoration: none; display: block; }
.arim-news-sub-item:hover { background: #f9f9f9; border-color: #0a6798; }
.arim-news-sub-item span { display: block; font-size: 10px !important; color: #aaa !important; margin-bottom: 2px !important; }
.arim-news-sub-item p { font-size: 12px !important; font-weight: 700 !important; color: #333 !important; line-height: 1.3 !important; margin: 0 !important; }

/* レスポンシブ対応：画面が狭いときだけ縦に並べる */
@media screen and (max-width: 980px) {
  .arim-news-grid { flex-direction: column; align-items: center; }
  .arim-news-main-card { flex: 1 1 auto; width: 100%; max-width: 650px; flex-direction: column; }
  .arim-news-card-left { width: 100%; padding: 30px 20px; }
  .arim-news-sub-list { flex: 1 1 auto; width: 100%; max-width: 650px; }
}