/*
Theme Name: Xwrite child
Version: 2.0.0
Template: xwrite
*/

a:hover{
    opacity: 0.7;
}




.pagetop {
    position: fixed;
    z-index: 999;
    right: 20px;
    bottom: 20px;
    opacity: 0;
}
.pagetop_mb {
    display:none;
}
@media screen and (max-width: 680px){
.pagetop {
    display:none;
}
.pagetop_mb {
    position: fixed;
    z-index: 999;
    right: 20px;
    bottom: 20px;
    opacity: 0;
}
}





.fixed-bottom-nav {
  display: none;
}

/* 680px以下で最下に固定表示 */
@media screen and (max-width: 680px) {
  .fixed-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
	background-color: rgba(17, 111, 2, 0.65);
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  }

  .fixed-bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 0;
    box-sizing: border-box;
  }

  .fixed-bottom-nav .nav-item:last-child {
    border-right: none;
  }

  .fixed-bottom-nav .nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
  }

  /* 被り防止：固定ナビの高さ分、body下に余白を確保 */
  body {
    padding-bottom: 60px;
  }
}






/* ベースのスタイルに透過・移動アニメーションを追加 */
@media screen and (max-width: 680px) {
  .fixed-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(20, 73, 43, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);

    /* --- ふわっと表示用のアニメーション設定 --- */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* 少し下に移動しておく */
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  }

  /* スクロール後にJavaScriptで付与されるクラス */
  .fixed-bottom-nav.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* 元の位置に戻る */
  }
}





















img.aligncenter,
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#secondary .widget .custom-select-wrapper {
  margin-left: 0;
}


@media (min-width: 768px) {
    .contents {
        padding-top: 1em;
    }
}
.widget-area.archive-bottom, .widget-area.archive-top, .widget-area.page-bottom, .widget-area.page-top, .widget-area.post-bottom, .widget-area.post-top, .widget-area.related-articles-bottom, .widget-area.related-articles-top {
    margin: 1em 0;
}
.articleFooter__cat{
	display:none;
}

.xw-block-blog-card--text a {
    text-decoration: none;
    color: var(--text-color, #666);
}
.xw-block-blog-card--text:hover {
	transition: width 0.4s ease;
    opacity: 0.5;
}

.articleBody a {
    text-decoration: none;
}


.gnav-fix .drawer__open, .header-fix .drawer__open
 {
    background-color: #116f02a3;
    color: #ffffff;
}
@media (min-width: 992px) {
    [data-scroll=true] .header-fix.-for-pc {
        visibility: visible;
        -webkit-animation: slide_down_menu .5s ease;
        animation: slide_down_menu .5s ease;
        opacity: 0.8;
    }
}

.header-fix .gNavList > .menu-item, .header.is-pc-left .gNavList > .menu-item {
    display: flex;
	font-weight:bold;
}
.header .siteInfo:has(img) {
    margin-bottom: 0px;
}
@media (min-width: 992px) {
    .header-fix .gnav, .header.is-pc-left .gnav {
        margin: 0 0 0 auto;
        padding:5px 0 5px 0;
		background-color:#fff;
		margin-left: calc(-50vw + 50%);
    	margin-right: calc(-50vw + 50%);
		border-top:3px solid #000;
		border-bottom:1px solid #000;
    }
}
@media (min-width: 992px) {
    .header .gnav, .header-fix .gnav {
        display: flex;
		justify-content: center;
        flex-shrink: 0;
        align-items: center;
    }
}
.header .headerInfo, .header-fix .headerInfo {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 65px;
    max-width: var(--site-content-width, 1200px);
    margin: 0 auto;
}


.header{
	border-bottom:1px solid #6f6f6f;
}
.header .gNavList .menu-item, .header-fix .gNavList .menu-item {
    border-bottom:0px solid #6f6f6f;
	padding:10px 0;
	margin: 0 3px;
}



/*
.header .gnav .nav__drawers, .header-fix .gnav > ul > li{
  border-left: dotted 1px #000;
}

.header .gnav .nav__drawers, .header-fix .gnav > ul > .menu-item-has-children > a::after{
  right: 10px;
} 


.header .gNavList .menu-item, .header-fix .gNavList .menu-item ul{
    border-right: dotted 1px #000;
}

.header .menu-item > a, .header-fix .menu-item > a {
    padding: 0 15px 0 10px;
}
*/


@media (min-width: 992px) {
    .header.is-pc-left .siteInfo {
        padding: 20px 0;
        display: flex;
		justify-content: space-around;
		align-items: flex-end;
        box-sizing: content-box;
    }
}
.header-fix .siteInfo {
    padding: 10px 0;
    display: flex;
	justify-content: space-around;
    align-items: flex-end;
    box-sizing: content-box;
}
.head_child{
	display: flex; 
	align-items: end;
}
.head_child_btmj{
	margin-bottom:-3px;
}









.sl_pc{
	
}
.sl_mb{
	display:none;
}
@media screen and (max-width: 680px){
.sl_pc{
	display:none;
}
.sl_mb{
	display:block;
}
}
.ft_box {
    display: flex;
}
.ft_sns {
    display: inline-block;
    padding: 3px 40px 3px 0px;
}

/*
.category-eventended .list-label {
    background-color: #a3a3a3 !important;
    color: #ffffff !important;
}
.category-sekourei .list-label {
    background-color: #fff !important;
    color: #ffffff !important;
	z-index:999;
}

.category-event .list-label {
    background-color: #E8AC51 !important;
    color: #ffffff !important;
}
.category-voice .list-label {
    background-color: #EC9CE5 !important;
    color: #ffffff !important;
}
.category-reformsekourei .list-label {
    background-color: #50741F !important;
    color: #ffffff !important;
}
.category-houkoku .list-label {
    background-color: #F06554 !important;
    color: #ffffff !important;
}
.category-online .list-label {
    background-color: #007A2D !important;
    color: #ffffff !important;
}

*/



.head_tel a{
	font-size:1.2em;
	font-weight:600;
	color:#005D33;
}
@media screen and (max-width: 992px){
.head_MB{
	display:none;

}
}
@media screen and (max-width: 992px){
.head_child_dsc{
	margin-top:4px;
	font-size:0.8em;
}
}


/*rtここから*/
.works_dsc{
	font-weight:600;
	margin:0 0 0 0;
}
.rt_flex{
    display: flex;
    margin-bottom:15px;
}
.rt_flex div{
    box-sizing: border-box;

}
.rt_right{
    width: 30%;

}
.rt_left{
    width: 100%;

}
.rt_left_flx{
    display: flex;
	margin:0 0 0 0;
	padding:5px 0;
	align-items:center;
}
.rt_left_title{
	display:inline-block;
    width: max-content;
}
.rt_left_title_btn{
	display:inline-block;
    width: 80%;
}

.rt_left_title_in{
    text-align:center;
	font-size:1.1em;
	font-weight:bold;
	color:#124927;
	padding:6px 15px;
	border-bottom:solid #124927 3px;
	margin-bottom:15px;
}
.rt_reft_title_mg{
	margin-left:2em;
}
@media screen and (max-width: 800px){
.rt_reft_title_mg{
	margin-left:0em;
}
}
.rt_left_btn{
	display:inline-block;
    width: 250px;

}
.rt_left_btn_pdg{
	padding:0 10px;
}
.flx_incontent{
display:inline-block;
padding:4px 10px;
position:relative;
transition:all .2s;
border-radius: 5px;
text-decoration: underline;
text-decoration-color: #36a04a;
}
.flx_incontent a{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;

}
.flx_incontent:hover{
  cursor:pointer;
  color:#36a04a;
}

.rt_left_select{
padding:5px 0 15px 10px;
}
@media screen and (max-width: 801px){
.rt_flex{
    display:inline-block;
}
.rt_left{
    width: 100%;
}
.rt_left_btn{
	display:inline-block;
    width: 100%;
}
.rt_left_select{
padding:0 0 15px 10px;
}
.rt_left_flx{
    display:inline-block;
    width: 100%;
}
.rt_left_title{
    width: 100%;
}
.rt_left_title_in{

width:11em;
}
.rt_left_title_btn{
    width: 100%;
}
.rt_right{
    width: 100%;
}
}


.rt_mds{display:inline-block;
font-size: 1.3em;
}
/*rtここまで*/


.articleList .xw-article-media {
    display: block;
    position: relative;
    color: #666;
    text-decoration: none;
}








/*セレクトボックスここから*/
/* 全体のラッパー */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px; /* 横幅は自由に調整してください */
  font-size: 16px;
  user-select: none;
  cursor: pointer;
	margin-left:1em;
}

/* 表示エリア（クリックする部分） */
.custom-select-trigger {
  position: relative;
  padding: 5px 40px 5px 15px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* 右側の矢印アイコン（CSSで作成） */
.custom-select-trigger::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid #666;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  transition: transform 0.3s ease;
}

/* 開いている時は矢印を反転、枠線の色を変更 */
.custom-select-wrapper.open .custom-select-trigger {
  border-color: #0073aa; /* WordPress風の青色 */
}
.custom-select-wrapper.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 選択肢のリスト（初期状態は非表示） */
.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 999;
  display: none;
}

/* ラッパーに「open」クラスがついたらリストを表示 */
.custom-select-wrapper.open .custom-options {
  display: block;
}

/* 各選択肢のスタイル */
.custom-option {
  padding: 0px 15px;
  color: #000;
	font-weight:900;
  transition: background 0.2s ease;
}
.custom-option a{
display: block;
}

/* マウスホバー時の背景色 */
.custom-option:hover {
  background-color: #f5f5f5;
}
/*セレクトボックスここまで*/


@media screen and (max-width: 680px){
.xw-block-post-list.type-text .xw-post-article-media__body--title {
    font-size: 1.2rem;
	font-weight: 600;
}
}



@media (min-width: 768px) {
    .catList a {
letter-spacing: 0.2em;
    }
}




/* パンくずリストの「終了しました」だけをピンポイントで非表示 */
article header > ul > li:has(a[href*="eventended"]) {
    display: none !important;
}

/* 万が一上記の:hasが効かない環境用のフォールバック */
article header > ul > li > a[href*="eventended"] {
    display: none !important;
}


.rk_form{}

.rk_form_in{
display:flex;
}

@media screen and (max-width:768px) {
.rk_form_in{
display:flex;
flex-flow: column;
}
}


.m_form{
	width:40%;
	padding:12px;
	background-color:#f4f4f4;
	border:solid 1px #e8e8e8;
}



.m_form_ft{
	width:60%;
	padding:12px;
	border:solid 1px #e8e8e8;
}

@media screen and (max-width:768px) {
.m_form{
	width:100%;
}
.m_form_ft{
	width:100%;
}
}

.form_st{
	display: inline-block;
	font-weight: bold;
	font-size: 16px;
	color: #000;
	text-align: left;
	vertical-align: top;
}
.form_al{
	display: inline-block;
	float: right;
	font-weight: bold;
	font-size: 14px;
	color: #ff0004;
	text-align: right;
	vertical-align: top;
}

@media screen and (max-width:768px) {
.form_al{
	float: none;
	text-align: left;
	padding-left: 10px;
	}
}

.nss{
background:#E8EEF9;
padding: 3px 10px 2px 30px;
   margin:0 0 21px 0;
}

.nss #ss01{
font-weight: bold;
}

.nssb{
font-size: 1.3em;
padding-left:10px;
}
.nssbp{
padding-left:10px;
}
.ss-in{
display: inline-block;
width:49%;
margin-bottom:5px;
}


@media screen and (max-width: 640px) {


.nssb{
font-size: 1.1em;
font-weight: bold;
}

.ss-in{
display: inline-block;
width:49%;
font-size: 1em;
}
}

@media screen and (max-width: 463px) {
.nss{
padding: 3px 0px 2px 0px;
   margin:0 0 21px 0;
}


.ss-in{
display: inline-block;
width:49%;
font-size: 0.8em;
}
}

.ssb{
width:70%;
margin:auto;
}
.ssbp{
text-align:center;
}

@media screen and (max-width: 320px) {
.ss-in{
font-size: 0.6em;
}
}


input[type=submit]{
   border-radius: 5px;
   -moz-border-radius: 5px;
   -webkit-border-radius: 5px;
   -o-border-radius: 5px;
   -ms-border-radius: 5px;
   border:#a9a9a9 1px solid;
   -moz-box-shadow: inset 0 0 5px rgba(0,0,0,0.2),0 0 2px rgba(0,0,0,0.3);
   -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2),0 0 2px rgba(0,0,0,0.3);
   box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2),0 0 2px rgba(0,0,0,0.3);
   width:43%;
   height:50px;
font-size:15px;
   padding:0 3px;
   margin:5px;
   cursor:pointer;
   color:#333;
   font-weight:bold;
   background:#f5f5f5;
   text-shadow:1px 1px 0px #fff;
}
 
.contact_form input[type=submit]{

}
 
.contact_form input[type=text],.contact_form input[type=email]{
width:50%;
height:50px;
font-size:1.5em;
}
 
input[type="radio"]{
margin: 0 0 4px 0 !important;
}

/* スマホでのフォーム入力欄（テキストエリア含む）のはみ出し防止 */
@media screen and (max-width: 680px){
.mw_wp_form textarea,
.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form input[type="tel"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important; /* 余白・枠線を横幅に含める */
}
.nss_tex{
	text-align:left;
}
}


.wid_mds{
	
}
.wid_mds_02{
	margin: 1em 0.5em;
}













/* ==========================================
   1. 「終了しました（eventended）」の設定
   ========================================== */

/* カード内に eventended のカテゴリー指定がある場合のみ画像をモノクロ化 */
.p-articleCard:has(.cat-eventended) img,
.p-articleCard:has(.category-eventended) img,
.articleList__item:has(.cat-eventended) img,
.articleList__item:has(.category-eventended) img {
    filter: grayscale(100%) !important;
}

/* ホバーでカラーに戻す */
.p-articleCard:has(.cat-eventended) img:hover,
.p-articleCard:has(.category-eventended) img:hover,
.articleList__item:has(.cat-eventended) img:hover,
.articleList__item:has(.category-eventended) img:hover {
    filter: grayscale(0%) !important;
}

/* 画像枠の基準位置設定 */
.p-articleCard:has(.cat-eventended) .p-articleCard__img,
.p-articleCard:has(.category-eventended) .p-articleCard__img,
.articleList__item:has(.cat-eventended) .articleList__item--fig,
.articleList__item:has(.category-eventended) .articleList__item--fig {
    position: relative !important;
    overflow: hidden !important;
}

/* 「終了しました」のバッジ表示 */
.p-articleCard:has(.cat-eventended) .p-articleCard__img::after,
.p-articleCard:has(.category-eventended) .p-articleCard__img::after,
.articleList__item:has(.cat-eventended) .articleList__item--fig::after,
.articleList__item:has(.category-eventended) .articleList__item--fig::after {
    content: "終了しました";
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.50);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}


/* ==========================================
   2. 「受付中（reception）」の設定
   ========================================== */

/* 画像枠の基準位置設定 */
.p-articleCard:has(.cat-reception) .p-articleCard__img,
.p-articleCard:has(.category-reception) .p-articleCard__img,
.articleList__item:has(.cat-reception) .articleList__item--fig,
.articleList__item:has(.category-reception) .articleList__item--fig {
    position: relative !important;
    overflow: hidden !important;
}

/* 「受付中」のバッジ表示 */
.p-articleCard:has(.cat-reception) .p-articleCard__img::after,
.p-articleCard:has(.category-reception) .p-articleCard__img::after,
.articleList__item:has(.cat-reception) .articleList__item--fig::after,
.articleList__item:has(.category-reception) .articleList__item--fig::after {
    content: "受付中";
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(255, 242, 0, 0.50);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 16px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}











/* URLに #tab が含まれている場合、ページ全体(body)を画面描画の0.000秒地点から完全非表示にする */
html[data-tab-loading="true"] body {
  opacity: 0 !important;
  transition: opacity 0.1s ease-in !important; /* 表示される時に滑らかに */
}












/* ==========================================
   profileページ限定：タブボタンの基本スタイル（非アクティブ）
========================================== */
.page-id-452 a[href*="#tab1"],
.page-id-452 a[href*="#tab2"],
.page-id-452 a[href*="#tab3"],
.page-id-452 a[href*="#tab4"] {
    background-color: #ffffff !important;
    color: #3b5016 !important;
    transition: all 0.3s ease;
}

.page-id-452 a[href*="#tab1"] *,
.page-id-452 a[href*="#tab2"] *,
.page-id-452 a[href*="#tab3"] *,
.page-id-452 a[href*="#tab4"] * {
    color: #3b5016 !important;
}

/* ==========================================
   profileページ限定：アクティブ（選択中）スタイル
========================================== */
.page-id-452 a[href*="#tab1"].tab-btn-active,
.page-id-452 a[href*="#tab2"].tab-btn-active,
.page-id-452 a[href*="#tab3"].tab-btn-active,
.page-id-452 a[href*="#tab4"].tab-btn-active {
    background-color: #3b5016 !important;
    color: #ffffff !important;
}

.page-id-452 a[href*="#tab1"].tab-btn-active *,
.page-id-452 a[href*="#tab2"].tab-btn-active *,
.page-id-452 a[href*="#tab3"].tab-btn-active *,
.page-id-452 a[href*="#tab4"].tab-btn-active * {
    color: #ffffff !important;
}