@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を追記してください。
*/
/* 欧文の見出し・日付・コピーライトに Ubuntu を使う（日本語は本文フォントのまま） */
.large_headline,
.news_carousel .date,
.blog_carousel .date,
#copyright {
  font-family: "Ubuntu", var(--tcd-font-type1), sans-serif;
}
.large_headline { font-weight:500; }

/* フリースペースの横スクロール：矢印の配置（見た目はテーマ標準の .arrow_button のまま） */
.js-carousel-nav { display:flex; gap:10px; align-self:flex-end; justify-content:flex-end; margin-left:30px; }
.js-carousel-nav .swiper-button-prev, .js-carousel-nav .swiper-button-next { position:relative; top:auto; left:auto; right:auto; margin:0; width:auto; height:auto; }
.js-carousel-nav .swiper-button-prev .arrow_button { transform:rotate(180deg); }
@media screen and (max-width:800px) {
  .js-carousel-nav { display:none; }
}

/* 協賛企業のロゴ一覧（フリースペース用）：ロゴを同じ高さの枠に収めて格子状に並べる */
.post_content ul.logo_list { display:grid; grid-template-columns:repeat(4, 1fr); gap:50px 40px; align-items:center; list-style:none; margin:0 0 60px; padding:0; }
.post_content ul.logo_list li { display:flex; align-items:center; justify-content:center; height:70px; margin:0; line-height:1; }
.post_content ul.logo_list img { width:auto; height:auto; max-width:100%; max-height:70px; object-fit:contain; }
@media screen and (max-width:800px) {
  .post_content ul.logo_list { grid-template-columns:repeat(2, 1fr); gap:30px 20px; margin-bottom:40px; }
  .post_content ul.logo_list li { height:50px; }
  .post_content ul.logo_list img { max-height:50px; }
}

/* ステークホルダーのバナー（[stakeholder_banners]）：矢印の見た目はテーマ標準の .arrow_button */
.banner_carousel_wrap { position:relative; padding:0 80px; }
.banner_carousel_wrap .swiper-slide { display:flex; align-items:center; justify-content:center; height:auto; }
.banner_carousel_wrap .swiper-slide a { display:block; transition:opacity 0.3s ease; }
.banner_carousel_wrap .swiper-slide a:hover { opacity:0.7; }
.banner_carousel_wrap .swiper-slide img { display:block; width:auto; height:auto; max-width:100%; max-height:100px; }
.banner_carousel_wrap .swiper-button-prev, .banner_carousel_wrap .swiper-button-next { width:auto; height:auto; margin-top:-25px; }
.banner_carousel_wrap .swiper-button-prev { left:0; }
.banner_carousel_wrap .swiper-button-next { right:0; }
.banner_carousel_wrap .swiper-button-prev .arrow_button { transform:rotate(180deg); }
@media screen and (max-width:800px) {
  .banner_carousel_wrap { padding:0; }
  .banner_carousel_wrap .swiper-button-prev, .banner_carousel_wrap .swiper-button-next { display:none; }
  .banner_carousel_wrap .swiper-slide img { max-height:70px; }
}

/* フリースペースの上下の余白を切り替える
   フリースペースの中のいずれかの要素に、space_narrow / space_normal / space_wide のクラスを付ける
   （付けない場合はテーマ標準＝space_normal と同じ：PC 150px、スマホ 40px） */
.cb_free_space:has(.space_narrow) { padding:60px 0; }
.cb_free_space:has(.space_normal) { padding:150px 0; }
.cb_free_space:has(.space_wide)   { padding:220px 0; }
@media screen and (max-width:800px) {
  .cb_free_space:has(.space_narrow) { padding:20px 0; }
  .cb_free_space:has(.space_normal) { padding:40px 0; }
  .cb_free_space:has(.space_wide)   { padding:80px 0; }
}

/* 画像バナー（フリースペース用）
   .image_banner_bg の中の画像を背景として全面に敷き、テーマカラーのフィルターを自動で重ねて文字を読みやすくする */
.image_banner { position:relative; overflow:hidden; padding:80px 70px 60px; color:#fff; }
.image_banner_bg { position:absolute; top:0; left:0; width:100%; height:100%; z-index:1; }
.image_banner_bg p { margin:0; }
.post_content .image_banner_bg img { position:absolute; top:0; left:0; width:100%; height:100%; max-width:none; object-fit:cover; margin:0; }
.image_banner_bg:after { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(232,56,13,0.85); background:color-mix(in srgb, var(--tcd-main-color) 85%, transparent); }
.image_banner_content { position:relative; z-index:2; max-width:900px; }
.image_banner .design_header { margin:0 0 30px; }
.image_banner .design_header .title_area { width:auto; padding-right:0; }
.image_banner .large_headline, .image_banner .sub_title.colored, .post_content .image_banner h3.catch, .post_content .image_banner p { color:#fff; }
.post_content .image_banner h3.catch { margin:0 0 20px; }
.image_banner .design_arrow_button { position:relative; z-index:2; margin:0; }
/* 「詳しく見る」ボタン：文字は白、丸いボタンは白地にテーマカラーの矢印 */
.image_banner .design_arrow_button .label { color:#fff; }
.image_banner .design_arrow_button a:hover .label { opacity:0.7; }
.image_banner .arrow_button { background:#fff; }
.image_banner .arrow_button:before, .image_banner .arrow_button:after { color:var(--tcd-main-color); }
@media screen and (max-width:800px) {
  .image_banner { padding:50px 20px 40px; }
}
/* 画像バナーを含むフリースペースは、上下左右の余白なしで画面幅いっぱいに広げる */
.cb_free_space:has(.image_banner) { padding:0; }
.cb_free_space:has(.image_banner) .post_content { max-width:none; padding:0; }
.image_banner { padding:100px 100px 80px; }
@media screen and (max-width:1100px) {
  .image_banner { padding:80px 40px 60px; }
}
@media screen and (max-width:800px) {
  .image_banner { padding:50px 20px 40px; }
}

/* 内部リンクの一覧（フリースペース・説明文用）
   矢印はテーマ標準の .arrow_button_small（マウスを乗せると矢印が動く） */
.link_list { display:flex; flex-wrap:wrap; gap:15px 30px; margin:30px 0 0; }
.post_content .link_list a, .link_list a { position:relative; display:inline-block; padding:0 45px 10px 0; border-bottom:1px solid var(--tcd-main-color); color:#000; line-height:1.6; text-decoration:none; }
.post_content .link_list a:hover, .link_list a:hover { color:var(--tcd-main-color); }
.link_list .arrow_button_small { top:6px; right:0; width:30px; }
.link_list .arrow_button_small:before, .link_list .arrow_button_small:after { color:var(--tcd-main-color); }

/* クリックできないメニュー項目（URLが「#」のカスタムリンク）はカーソルを矢印のままにする */
#global_menu a:not([href]), #mobile_menu a:not([href]), #footer_nav a:not([href]) { cursor:default; }

/* 横スクロールのカードの本文の行間（「01　社会」などのラベルは除く） */
.post_content .js-carousel .swiper-slide p:not(.sub_title) { line-height:2.2; }
/* 横スクロールのカードのラベル（「01　社会」など）の文字サイズ */
.js-carousel .swiper-slide .sub_title.colored { font-size:16px; }

/* スケジュール一覧（フリースペース用）：DATE と PROGRAM を罫線で区切って並べる */
.post_content dl.schedule_list { margin:0 0 30px; padding:0; }
.schedule_list .schedule_item { display:grid; grid-template-columns:30% 1fr; gap:0 30px; padding:15px 0 45px; border-top:1px solid #ccc; }
.post_content dl.schedule_list dt, .post_content dl.schedule_list dd { margin:0; padding:0; font-size:18px; font-weight:500; line-height:1.9; }
.schedule_list .schedule_label { display:block; margin-bottom:18px; font-size:12px; font-weight:400; line-height:1.4; letter-spacing:0.1em; color:#aaa; }
.post_content p.schedule_note { font-size:14px; color:#777; }
@media screen and (max-width:800px) {
  .schedule_list .schedule_item { grid-template-columns:1fr; gap:15px 0; padding:12px 0 30px; }
  .post_content dl.schedule_list dt, .post_content dl.schedule_list dd { font-size:16px; }
  .schedule_list .schedule_label { margin-bottom:8px; }
}
/* スケジュールのセクション：背景をテーマ標準のグレー（#f6f6f6）に。PCではタイトル45%・一覧55%ほどの横並びにする */
.cb_free_space:has(.schedule_list) { background:#f6f6f6; }
@media screen and (min-width:1101px) {
  .post_row:has(.schedule_list) > .post_col:first-child { flex:0 0 45%; width:45%; margin-right:0; padding-right:60px; box-sizing:border-box; }
  .post_row:has(.schedule_list) > .post_col:last-child { flex:1 1 0%; width:auto; }
}
/* 記念事業バナー：背景は画面幅いっぱいのまま、中身の幅をほかのセクション（最大1700px・左右100px）にそろえる */
.image_banner { padding-left:max(100px, calc(50% - 750px)); padding-right:max(100px, calc(50% - 750px)); }
@media screen and (max-width:1391px) {
  .image_banner { padding-left:60px; padding-right:60px; }
}
@media screen and (max-width:1100px) {
  .image_banner { padding-left:40px; padding-right:40px; }
}
@media screen and (max-width:800px) {
  .image_banner { padding-left:20px; padding-right:20px; }
}

/* ファーストビューのCTA（見た目は link_list と同じ） */
#header_slider_content .fv_cta { margin-top:40px; }
#header_slider_wrap.layout_type3 .fv_cta a { color:#fff; border-color:#fff; }
#header_slider_wrap.layout_type3 .fv_cta .arrow_button_small:before, #header_slider_wrap.layout_type3 .fv_cta .arrow_button_small:after { color:#fff; }
@media screen and (max-width:800px) {
  #header_slider_content .fv_cta { margin-top:25px; }
  #header_slider_content .fv_cta a { font-size:14px; }
}
/* スケジュールのセクション：PCでは一覧をスクロールしている間、左の見出しを画面上部に固定する */
@media screen and (min-width:1101px) {
  .cb_free_space:has(.schedule_list) .post_content { overflow:visible; }
  .post_row:has(.schedule_list) > .post_col:first-child { position:sticky; top:120px; align-self:flex-start; }
  body.admin-bar .post_row:has(.schedule_list) > .post_col:first-child { top:152px; }
}
/* PCでは、フッターメニューとコピーライトを中央寄せにする */
@media screen and (min-width:801px) {
  #footer_nav .swiper-wrapper { justify-content:center; }
  #copyright span { text-align:center; }
}
/* お知らせ（投稿）の記事本文の見出し（h1・h2）を左寄せにする（テーマ標準は中央寄せ） */
body.single-post .post_content h1, body.single-post .post_content h2 { text-align:left; }

/* 事業内容の一覧（フリースペース用）：左に写真、右に PROGRAM（項目名と説明文）を罫線で区切って並べる */
.program_list { margin:0 0 30px; }
.program_list .program_item { display:grid; grid-template-columns:40% 1fr; gap:0 30px; margin-bottom:15px; }
.post_content .program_list .program_image img { display:block; width:100%; height:auto; aspect-ratio:7 / 5; object-fit:cover; margin:0; }
.program_list .program_body { padding:15px 0 30px; border-top:1px solid #ccc; }
.post_content .program_list .program_label { display:block; margin:0 0 15px; font-size:12px; font-weight:400; line-height:1.4; letter-spacing:0.1em; color:#aaa; }
.post_content .program_list .program_title { margin:0 0 12px; font-size:20px; font-weight:600; line-height:1.6; }
.post_content .program_list .program_desc { margin:0; font-size:15px; line-height:2; }
@media screen and (max-width:800px) {
  .program_list .program_item { grid-template-columns:1fr; margin-bottom:30px; }
  .program_list .program_body { padding:15px 0 0; border-top:none; }
  .post_content .program_list .program_label { margin-bottom:6px; }
  .post_content .program_list .program_title { font-size:16px; }
}
/* PCでは、見出し35%・一覧65%の横並びにし、見出しをスクロール中も画面上部に固定する */
@media screen and (min-width:1101px) {
  .cb_free_space:has(.program_list) .post_content { overflow:visible; }
  .post_row:has(.program_list) > .post_col:first-child { flex:0 0 35%; width:35%; margin-right:0; padding-right:60px; box-sizing:border-box; position:sticky; top:120px; align-self:flex-start; }
  .post_row:has(.program_list) > .post_col:last-child { flex:1 1 0%; width:auto; }
  body.admin-bar .post_row:has(.program_list) > .post_col:first-child { top:152px; }
}
/* 事業内容の一覧：PCでは文章を左、写真を右にする（スマホは写真が上のまま） */
@media screen and (min-width:801px) {
  .program_list .program_item { grid-template-columns:1fr 40%; }
  .program_list .program_image { order:2; }
  .program_list .program_body { order:1; }
}
/* 事業内容の一覧（PC）：罫線を項目の間に置き、上下の写真の間の余白のちょうど中央に引く */
@media screen and (min-width:801px) {
  .program_list .program_item { margin-bottom:40px; }
  .program_list .program_item:last-child { margin-bottom:0; }
  .program_list .program_body { position:relative; padding:0; border-top:none; }
  .program_list .program_item + .program_item .program_body:before { content:''; position:absolute; left:0; right:0; top:-20px; height:1px; background:#ccc; }
}
/* link_list（内部リンク・ファーストビューのCTA）：スマホでは縦並びにし、押しやすいよう上下に余白をとる */
@media screen and (max-width:800px) {
  .link_list { flex-direction:column; gap:8px; }
  .link_list > br { display:none; } /* エディタの自動改行で入る <br> が余白にならないようにする */
  .post_content .link_list a, .link_list a { display:block; padding:14px 45px 14px 0; }
  .link_list .arrow_button_small { top:50%; margin-top:-8px; }
}
