/*
Theme Name:kashira child
Theme URI:
Description:WordPressテーマ「kashira」の子テーマです。
Template:kashira
Author:SBI
Author URI:https://george-yamamoto.com
Version:1.0.9
*/
body { background: #f9f8e4;}
body.page_layout_type2 #header_logo .image,
body.page_header_hidden #header_logo .image{
    filter: brightness(0);
}
@media (max-width: 1200px) {
  body.single.page_layout_type2 #main_content { display:flex; }
}
.my-20 { margin: 20px auto!important;}

a.link-color {
    color: #00a0e9!important;
}

/* ドロワーメニュー内の検索フォーム調整（他のメニュー項目には影響しない） */
#drawer_menu_nav .c-drawer-search {
  padding: 20px 80px;
  height: auto;
}

#drawer_menu_nav .c-drawer-search .search-form {
  display: flex;
  gap: 8px;
}

#drawer_menu_nav .c-drawer-search .search-field {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff!important;
}

#drawer_menu_nav .c-drawer-search .search-submit {
  padding: 8px 16px;
  cursor: pointer;
  background: transparent;
  color: #fff!important;
  border: none;
}

/* サイドバーが非表示の投稿ページだけ、本文を広げて中央寄せ */
body.single-post.sidebar_none #main_content .main_col {
    width: 100%;
    max-width: 1050px;
}
body.single-post.sidebar_none .c-breadcrumb {
    width: 100%;
    max-width: 1050px; 
}

/* 活動報告パネル：PC幅でも常時横スクロール表示にする */
#blog_list_carousel.always_scrollable {
  overflow: auto;
  margin: 0 -20px;
  padding: 0 20px;
}
#blog_list_carousel.always_scrollable::-webkit-scrollbar {
  height: 1px;
}
#blog_list_carousel.always_scrollable::-webkit-scrollbar-track {
  background: transparent; 
}
#blog_list_carousel.always_scrollable::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 0px;
}
#blog_list_carousel.always_scrollable {
  scrollbar-color: #ddd transparent; 
  scrollbar-width: thin;
}

#blog_list_carousel.always_scrollable .blog_list {
  display: flex !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
}
#blog_list_carousel.always_scrollable .blog_list:after {
  content: '';
  background: transparent;
  height: 10px;
  width: 20px;
  display: block;
  flex: 0 0 20px;
}
#blog_list_carousel.always_scrollable .blog_list .item {
  width: 260px !important;
  margin: 0 !important;
  border: 1px solid #ddd;
  border-left: none;
  flex: 0 0 260px;
}
#blog_list_carousel.always_scrollable .blog_list .item:first-of-type {
  border-left: 1px solid #ddd;
}

/* メールフォームのラベルの位置調整 */
.smf-form--letter .smf-item{
margin: 0 5px;	
}
.smf-form--letter .smf-item__col--label {
	padding-bottom: 0!important;
}
.snow-monkey-form .smf-item__label__text {
	color: #c9956e;
}

/* 寄附注意事項 */
.kifu-note {
	background: rgba(255,255,255,.5);
	padding: 30px;
	border: 3px solid #e4007f;
}

/* トップページ変更 */
body.home .design_button {
	font-weight: 700;
	height: 50px;
	line-height: 50px;
	font-size: 1.3rem;
	min-width: 340px;
}

body.home .cb_free .cb_free_content .design_button {
    margin-top: 30px !important;
}
body.home .cb_free {
	padding-top: 0;
}

.cb_free_content .main_image { margin:0 -100px 100px; width:calc(100% + 200px); position:relative; display:block; aspect-ratio:725 / 500; overflow:hidden; }
.cb_free_content .main_image img { position:absolute; top:0; left:0; width:100%; object-fit:cover; }
@media (min-width: 1920px) {
  .cb_free_content .main_image { width:calc(50vw - (var(--tcd-scrollbar-width) / 2)); margin-left:calc( (50vw - 750px - (var(--tcd-scrollbar-width) / 2)) / 2 * -1); margin-right:calc( (50vw - 750px - (var(--tcd-scrollbar-width) / 2)) / 2 * -1); }
}

@media (max-width: 1350px) {
  .cb_free_content .main_image { margin:0 -50px 100px; width:calc(100% + 100px); }
}

@media (max-width: 1200px) {
  .cb_free_content .main_image { margin:0 -100px 100px; width:calc(100% + 200px); }
}

@media (max-width: 1000px) {
  .cb_free_content .main_image { margin:0 -50px 100px; width:calc(100% + 100px); }
}
@media (max-width: 768px) {
  .cb_free_content .main_image { margin:0 -50px 100px; width:calc(100% + 70px); }
}

body.home .news_list .item {
    margin: 0 0 5px;
	background: #fff;
}
body.home .cb_headline {
	color: #00a0e9
}

/* Snoumonkey プログレスバーをTDCデザインに適応 */
.smf-progress-tracker__item:before {
	top: 12px!important;
	width: auto!important;
}
.smf-progress-tracker__item:after, .smf-progress-tracker__item:before {
    background-color: var(--_light-color-gray)!important;
    content: ""!important;
    display: block;
    height: 1px!important;
    position: absolute!important;
    top: 12px!important;
	border-radius: 0!important;
}
.smf-progress-tracker__item--complete:after, .smf-progress-tracker__item--input:before {
    display: none!important;
}
.smf-action {
	margin-top: 30px;
}

/* シェアボタンサイズ（X, facebook）変更 */
.c-share-button__item {
    width: 1.5em!important;
    height: 1.5em!important;
}
.c-share-button--facebook {
    --tcd-share-button-icon-size: 0.9em;
}
.c-share-button--x {
    --tcd-share-button-icon-size: 0.7em;
}

/*  スクロールバーを表示する（ライトモード） */
html, body {
  scrollbar-width: auto;          /* Firefox */
  scrollbar-color: #999 #f0f0f0;  /* Firefox: つまみの色 トラックの色 */
  -ms-overflow-style: auto;       /* 古いEdge/IE */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: block;
  width: 12px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #f0f0f0;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 6px;
}

/* ダークモード時（OS/ブラウザ設定に連動） */
@media (prefers-color-scheme: dark) {
  html, body {
    scrollbar-color: #666 #1a1a1a;
  }

  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track {
    background: #1a1a1a;
  }

  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb {
    background-color: #666;
  }
}

/* ヘッダー内SNSアイコン：PCでは非表示、モバイルのみ表示 */
@media (min-width: 768px) {
	#header_sns_icons {
		display: none;
	}
}
@media (max-width: 767px) {
  #header_sns_icons {
    display: none; /* デフォルトは非表示（ヒーロー画像の上では隠す） */
    align-items: center;
    gap: 14px;
    position: absolute;
    top: 0;
    right: 60px;
    height: 60px;
    z-index: 3;
  }

  /* ヒーロー画像がスクロールで隠れた後、または元々白背景のページでは表示 */
  body.page_header_hidden #header_sns_icons,
  body.page_layout_type2 #header_sns_icons {
    display: flex;
  }

  #header_sns_icons .c-sns-icons {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  #header_sns_icons .c-sns-icons-item {
    width: 20px;
    height: 20px;
  }
  #header_sns_icons .c-sns-icons-item:before {
    display: block;
    width: 20px;
    height: 20px;
  }
}
/* 行の高さ*/
.post_content :is(.tcdce-body, .editor-styles-wrapper) {
    line-height: 1.6;
}
@media (min-width: 768px) {
	.post_content :is(.tcdce-body, .editor-styles-wrapper) {
    	line-height: 1.6;
	}
}
/* inputの長さ*/
.input-s {max-width: 20rem!important;}
.input-l {max-width: 30rem!important;}
.input-s-w {width: 20rem!important;}

/* editor.css（プラグインtcd-classic-editor内）の修正 */
:is(.tcdce-body, .editor-styles-wrapper) :is(.tcdce-box, .well, .well2, .well3, .q_frame) {
	padding: 50px!important;
}
@container tcdce (max-width: 600px) {
    :is(.tcdce-body, .editor-styles-wrapper) :is(.tcdce-box, .well, .well2, .well3, .q_frame) {
		padding: 30px!important;
	}
}