@charset "utf-8";
/*
Theme Name: GENESIS child
Theme URI:https://tcd-theme.com/tcd103/
Description:WordPressテーマ「GENESIS」の子テーマ
Template:genesis_tcd103
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.0
*/

/*
  ここから下にCSSを追記してください。
*/
/* TOP のサービス一覧を常に静的グリッドで並べる
   親テーマでは 4 件以上で Swiper カルーセル化していたのを廃止 */
.cb_service_category_list_grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .cb_service_category_list_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .cb_service_category_list_grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.cb_service_category_list_grid .item {
  width: auto;
  margin: 0;
}

/* TOP のお知らせ一覧を 2 列の静的グリッドで並べる
   親テーマでは Swiper カルーセルだったのを廃止 */
.news_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
  .news_grid {
    grid-template-columns: 1fr;
  }
}
.news_grid .item {
  width: auto;
  margin: 0;
}
.news_grid_wrap {
  overflow: visible;
}

/* NEWS を grid 化したことで、親要素の固定 height (Swiper 前提) で
   コンテンツが枠から溢れ、後続のフッターと重なる問題への対処。
   親 4 階層の height 固定を auto に戻して内容に合わせて伸びるようにする */
.cb_news_list .news_carousel_wrap,
.cb_news_list .news_carousel_cat_all_wrap,
.cb_news_list .index_news_list_inner,
.cb_news_list .index_news_list {
  height: auto;
}

/* news_grid の罫線 (4 辺外枠 + 行間横線 + 列間縦線, 1px #e0e0e0)
   6 件 / 2 列固定前提。post_num を変える場合は最終行判定の調整が必要 */
.news_grid {
  border: 1px solid #e0e0e0;
}
.news_grid .item {
  border: 0;                                  /* 親テーマの全方向 border をリセット */
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}
/* 2 列目 (偶数番目) の右側の縦線を消す */
.news_grid .item:nth-child(2n) {
  border-right: none;
}
/* 最終行 (5 番目=奇数で残り 2 件, 6 番目=last) の下線を消す */
.news_grid .item:last-child,
.news_grid .item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

/* レスポンシブ: 1 列 grid のときは縦線不要、横線のみ */
@media (max-width: 768px) {
  .news_grid .item {
    border-right: none;
  }
  .news_grid .item:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid #e0e0e0;
  }
  .news_grid .item:last-child {
    border-bottom: none;
  }
}

/* IR ページ最低限のスタイル */
.ir_news_list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #e0e0e0; }
.ir_news_item { display: flex; gap: 24px; align-items: baseline;
                padding: 20px 8px; border-bottom: 1px solid #e0e0e0; }
.ir_news_date { font-variant-numeric: tabular-nums; color: #666; min-width: 110px; }
.ir_news_category { display: inline-block; padding: 2px 12px;
                    border: 1px solid #ff4000; border-radius: 14px;
                    color: #ff4000; font-size: 13px; white-space: nowrap; }
.ir_news_title { flex: 1; color: #111; text-decoration: none; }
.ir_news_title:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .ir_top_section { padding: 0 20px; }
  .ir_news_item { flex-direction: column; gap: 8px; padding: 16px 4px; }
  .ir_news_date { min-width: 0; }
}

/* IR ニュース一覧 / 過去の資料 ボタン (中央配置のシンプル枠線ボタン) */
.ir_more_button_wrap {
  text-align: center;
  margin: 32px 0 56px;
}
.ir_more_button {
  display: inline-block;
  padding: 14px 64px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ir_more_button:hover {
  background-color: #111;
  color: #fff;
}
.ir_list_count { color: #666; font-size: 14px; margin: 0 0 16px; }


/* 中期経営計画セクション */
.ir_plan { margin: 0 0 56px; }
.ir_plan_image { margin-bottom: 24px; }
.ir_plan_image img { width: 100%; height: auto; display: block; border: 1px solid #e5e5e5; }
.ir_plan_buttons {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.ir_plan_button {
  display: inline-block;
  min-width: 240px;
  padding: 14px 28px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.ir_plan_button:hover { background: #111; color: #fff; }
.ir_plan_button_download::after {
  content: " ↓"; font-size: 13px;
}
@media (max-width: 600px) {
  .ir_plan_buttons { flex-direction: column; align-items: stretch; }
  .ir_plan_button { min-width: 0; }
}



/* IR セクションタブ (経営成績/財政状態/CF など) */
.ir_section_tabs { margin: 0 0 24px; }
.ir_section_tabs ul {
  display: flex; list-style: none; padding: 0; margin: 0;
  border-bottom: 2px solid #111;
}
.ir_section_tab { margin: 0; }
.ir_section_tab a {
  display: block;
  padding: 12px 24px;
  background: #f5f5f5;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid #ddd;
  border-bottom: none;
  margin-right: -1px;
  transition: background 0.15s ease, color 0.15s ease;
}
.ir_section_tab a:hover { background: #ebebeb; color: #111; }
.ir_section_tab.current a {
  background: #111; color: #fff; border-color: #111;
  position: relative; z-index: 1;
}

@media (max-width: 768px) {
  .ir_section_tabs ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: none;
  }
  .ir_section_tab a {
    padding: 10px 4px;
    font-size: 12px;
    margin-right: 0;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }
  .ir_section_tab:nth-child(3n) a { border-right: none; }
}

/* IR ニュース フィルタ (カテゴリタブ + 年select) */
.ir_news_filter {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 16px;
  margin: 0 0 24px;
}
.ir_news_cats {
  display: flex; list-style: none; padding: 0; margin: 0;
  border-bottom: 2px solid #111;
}
.ir_news_cats li a {
  display: block; padding: 12px 24px; background: #f5f5f5; color: #555;
  text-decoration: none; font-size: 14px; border: 1px solid #ddd; border-bottom: none;
  margin-right: -1px; transition: background 0.15s, color 0.15s;
}
.ir_news_cats li.current a { background: #111; color: #fff; border-color: #111; }
.ir_news_cats li a:hover { background: #ebebeb; color: #111; }

.ir_news_year_form select {
  padding: 8px 14px; border: 1px solid #ccc; font-size: 14px;
  background: #fff;
}

/* IR ページネーション */
.ir_pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin: 32px 0;
}
.ir_pagination .ir_page,
.ir_pagination .ir_page_prev,
.ir_pagination .ir_page_next {
  display: inline-block; padding: 8px 14px;
  border: 1px solid #ddd; background: #fff; color: #333; text-decoration: none;
  font-size: 14px;
}
.ir_pagination .ir_page:hover,
.ir_pagination .ir_page_prev:hover,
.ir_pagination .ir_page_next:hover { background: #f0f0f0; }
.ir_pagination .ir_page.current { background: #111; color: #fff; border-color: #111; }

@media (max-width: 768px) {
  .ir_news_filter { flex-direction: column; align-items: stretch; }
  .ir_news_cats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: none; }
  .ir_news_cats li a {
    padding: 10px 6px; font-size: 12px; text-align: center;
    margin-right: 0; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd;
  }
  .ir_news_cats li:nth-child(4n) a { border-right: none; }
  .ir_news_year_form select { width: 100%; }
}

/* IR 決算情報 (事業年度・四半期見出し) */
.ir_results_block { margin: 0 0 32px; }
.ir_results_heading {
  font-size: 18px; font-weight: 700;
  text-align: center;
  margin: 24px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ddd;
}
