/*
Theme Name:Ankle child
Theme URI:https://tcd-theme.com/tcd092
Description:WordPressテーマ「Ankle」の子テーマ、ニュースティッカーを5件ずつのお知らせ一覧に変更（/template/news-ticker.php、style.css変更）
Template:ankle_tcd092
Author:CobaltCraft
Author URI:https://cobaltcraft.shop
Version:1.0
*/

/*
  ここから下にCSSを追記してください。
*/

/* === 全体枠（リスト外周）=== */
#news_ticker.list-mode .news-box {
  border: 1px solid #ececec; /* サイトのトーンに合わせて少し明るめに */
  padding: 24px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 40px;
}

/* === ヘッダー部分：タイトルとボタン === */
#news_ticker.list-mode .news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* スマホ対応 */
  margin-bottom: 16px;
  gap: 10px;
}

#news_ticker.list-mode .news-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #333;
}

/* 一覧ボタン */
#news_ticker.list-mode .news-link-button {
  background-color: #0073aa;
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  margin-left: 20px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

#news_ticker.list-mode .news-link-button:hover {
  background-color: #005a87;
}

/* === お知らせリスト全体 === */
#news_ticker.list-mode ul.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 個別リスト項目 */
#news_ticker.list-mode li.news-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #ddd;
}

#news_ticker.list-mode li.news-item:first-child {
  border-top: none;
}

#news_ticker.list-mode li.news-item .date {
  color: #666;
  font-size: 14px;
  margin-right: 1em;
  white-space: nowrap;
  min-width: 80px;
}

#news_ticker.list-mode li.news-item .title {
  font-size: 16px;
  flex: 1;
  /* 改行を強制 */
  word-break: break-word !important;
  white-space: normal !important;
}

#news_ticker.list-mode li.news-item .title a {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
  /* 親に合わせて改行許可 */
  word-break: break-word !important;
  white-space: normal !important;
}

#news_ticker.list-mode li.news-item .title a:hover {
  color: #0073aa;
  text-decoration: underline;
}

/* スマホ対応フォントサイズ */
@media (max-width: 480px) {
  #news_ticker.list-mode li.news-item .title {
    font-size: 13px;
  }
}
