/* //////////////////////////////////////////////////////////////////////////////////// */
/*studiopbody スタイルシート*/

/* //////////////////////////////////////////////////////////////////////////////////// */
/*(011)ブロックエディターのカラムのセンタリング　ns_block_style.js　とセット*/

.wp-block-columns[class*="is-style-justify"] {
    justify-content: space-between;
}
.wp-block-columns[class*="is-style-center"] {
    justify-content: center;
}



/* //////////////////////////////////////////////////////////////////////////////////// */
/*(012)ブロックエディターのグループで文字シャドウを可能にする　ns_block_style.js　とセット*/


[class*="is-style-moji-shadow-1"] {
    text-shadow: 2px 2px 10px rgba(150, 150, 150, 0.3);
}

[class*="is-style-moji-shadow-2"] {
    text-shadow: 2px 2px 10px rgba(150, 150, 150, 0.6);
}

[class*="is-style-moji-shadow-3"] {
    text-shadow: 2px 2px 10px rgba(150, 150, 150, 1.0);
}

/* //////////////////////////////////////////////////////////////////////////////////// */
/*(013)ブロックエディターのグループでinline-blockを可能にする。文字サイズに合わせて背景色がつく　ns_block_style.js　とセット*/

[class*="is-style-inline-block"] {
    display: inline-block;
}


/* //////////////////////////////////////////////////////////////////////////////////// */
/*(014)ブロックエディターのリスト表示でマーカーを非表示にする　ns_block_style.js　とセット*/

[class*="is-style-no-list-style"] {
    list-style: none;
    padding-left: 0;
}


/* //////////////////////////////////////////////////////////////////////////////////// */

/* (015) 固定ページにカテゴリー検索を追加するとページにカテゴリーリンクが出てしまうので非表示にする  */
.entry-footer .entry-meta-data-list--category{
	display: none; /* リンク自体を非表示 */
}

/* //////////////////////////////////////////////////////////////////////////////////// */
/* (021)特定のページ（TOPページ）のグローバルメニューをメイン画像の上に乗せる */

.page-id-5 #site-header {
    background-color: rgba(255,255,255,0.0) !important;
	box-shadow:none;
    padding-top:10px;
}

.page-id-5.header_scrolled #site-header {
    /*background-color: rgba(255,255,255,0.0) ;*/
	box-shadow:none;
}

.page-id-5:not(.header_scrolled) #site-header {
    position: absolute;
}

.page-id-5 .page-header {
    min-height: min(360px, 50vw);
    padding-top: 80px;
}

/* スクロールしてグローバルナビがページ上部に固定表示されるタイミングでカックンとなることを防ぐ。 */
.page-id-5 .page-header {
    margin-top: 0 !important;
}

.page-id-5 .global-nav-list>li .global-nav-name {
	color: #ffffff;
}

.breadcrumb {
    border-top: none !important;
    border-bottom: none !important;
}


.site-header {
    box-shadow:none !important;
}

/*(022)通常の固定ページのページヘッダーを非表示にする */
.page-header{
    display: none !important;
}


/* //////////////////////////////////////////////////////////////////////////////////// */
/*(023)フッターカラー*/




/* //////////////////////////////////////////////////////////////////////////////////// */
/*(024)文字サイズ*/

/* PCでの文字サイズ */
body, html {
    font-size: 16px ;
}

@media (max-width: 575.98px) {
	/* モバイル */
	body, html {
	    font-size: 16px !important;
	}
}

@media (min-width: 576px) and (max-width: 991.98px) {
	/* タブレット */
	body, html {
	    font-size: 16px !important;
	}
}




/* //////////////////////////////////////////////////////////////////////////////////// */
/*(031)ヒーロー画像の上に文字を重ねる*/
/* //////////////////////////////////////////////////////////////////////////////////// */

/*①ベースとなる親要素*/
.ns_hero_base {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* HOMEのヘッダーロゴをヒーロー左上へ重ねる */
.home .site-body {
    position: relative;
}

.home figure.wp-block-image:has(> img.wp-image-88) {
    position: absolute;
    top: clamp(16px, 2vw, 30px);
    left: calc((100vw - 100%) / -2 + 8px);
    z-index: 4;
    width: clamp(140px, 20vw, 300px);
    margin: 0 !important;
}

.home figure.wp-block-image:has(> img.wp-image-88) img {
    display: block;
    width: 100%;
    height: auto;
}

/* 背景動画 */
.ns_hero_base > .wp-block-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
}

.ns_hero_base > .wp-block-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 中央のワインレッド部分 */
.ns_hero_copy {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: clamp(520px, 37%, 650px);
    height: 100%;

    background-color: #911D3FB3;

    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 高さ100%の内側カラム内で、コピー一式を縦中央に配置する */
.ns_hero_copy > .wp-block-column {
    flex-basis: 100% !important;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ヒーロー内のプログラムメニュー（白い円形ボタン） */
.ns-rp-2238dbd659,
.ns-rp-cbb28e9f36 {
    font-family: "Montserrat", sans-serif !important;
}

.ns_hero_copy > .wp-block-column > .wp-block-group > .wp-block-columns {
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: center !important;
    gap: clamp(8px, 1.2vw, 18px);
    margin-top: clamp(16px, 2vw, 28px);
    margin-bottom: 0;
}

.ns_hero_copy > .wp-block-column > .wp-block-group > .wp-block-columns > .wp-block-column {
    flex: 0 0 140px !important;
    width: 140px !important;
    max-width: 140px !important;
    aspect-ratio: 1 / 1;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.ns_hero_copy > .wp-block-column > .wp-block-group > .wp-block-columns > .wp-block-column > p {
    margin: 0 !important;
    color: #fff !important;
    font-size: clamp(11px, 1vw, 16px);
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 991.98px) {
    .ns_hero_copy {
        width: min(92%, 520px);
    }
}

@media (max-width: 575.98px) {
    .ns_hero_base {
        height: auto;
        overflow: visible;
    }

    .ns_hero_base > .wp-block-video {
        position: relative;
        inset: auto;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .ns_hero_copy {
        position: relative;
        inset: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        min-height: 0;
        background-color: #911d3f;
        padding: 32px 0;
    }

    .ns_hero_copy > .wp-block-column {
        height: auto !important;
    }

    .ns_hero_copy > .wp-block-column > .wp-block-group > .wp-block-columns {
        gap: 7px;
    }

    .ns_hero_copy > .wp-block-column > .wp-block-group > .wp-block-columns > .wp-block-column {
        flex-basis: clamp(82px, 28vw, 105px) !important;
        width: clamp(82px, 28vw, 105px) !important;
        max-width: clamp(82px, 28vw, 105px) !important;
        padding: 7px;
    }

    .ns_hero_copy > .wp-block-column > .wp-block-group > .wp-block-columns > .wp-block-column > p {
        font-size: 11px;
        line-height: 1.35;
    }
}




/*④文字要素をまとめるブロック */
.ns_inline_block{
        display:inline-block;
}

.ns_hero_text{
    font-size:clamp(30px, 3vw, 80px) !important;
    /*font-size:4.5vw !important;*/
}

/*レスポンシブ スマフォ表示コントロール*/

@media (max-width: 575.98px) {
	
    .ns_hero_text_wrap{
        align-items: flex-start;
    }

	.ns_hero_text{
	    text-align: center !important;
	}



     .ns_inline_block_center{
        text-align: center;/*子要素のインラインブロックをセンタリング*/
    }
    
    .ns_inline_block{
        display:inline-block;
        /*margin-top:30px !important;*/
    }
    
}/* @media */



/* //////////////////////////////////////////////////////////////////////////////////// */
/*(041)コンタクトフォーム７ 関連*/
.wpcf7 p{
    margin-block-end :1rem !important;
}

.wpcf7-previous{
    font-size:1rem;
    padding:0.5em 2em;
}

.wpcf7 input{
    margin-bottom: 0px !important;
}

.ns_wpcf7_zip{
    display:flex;
}

.ns_wpcf7_zip input{
    width:150px!important;
}

.ns_wpcf7_your_pre select{
    width:auto!important;
}

.ns_wpcf7_confirm{
   background-color:#ffffff;
    border: solid 1px #abb8c3;
    padding-left: 10px;
    margin-bottom: 20px;
    min-height:32px;
    min-width: 100px;
}

.wpcf7-form-control-wrap{
    /*display: block;*/
    /*margin-bottom: 20px !important;*/
}

/* //////////////////////////////////////////////////////////////////////////////////// */
/*(042) 会社概要　定義リスト*/

.company-profile-dl {
  border-top: 1px solid #abb8c3;
}

.company-profile-dl > div {
  display: grid;
  grid-template-columns: 220px 1fr;
  /*border-bottom: 1px solid #ddd;*/
}

.company-profile-dl dt,
.company-profile-dl dd {
  margin: 0;
  padding: 15px 15px;
    border-bottom: 1px solid #abb8c3;
}

.company-profile-dl dt {
    font-weight: 400 !important;
    background: #edf8fb;
}

.company-profile-dl dd {
  background: #fff;
}

@media (max-width: 575px) {
    .company-profile-dl > div {
        grid-template-columns:1fr;
    }

      .company-profile-dl dt {
        /*padding-bottom: 8px;*/
      }

      .company-profile-dl dd {

        /*padding-top: 8px;*/
      }
}

/* //////////////////////////////////////////////////////////////////////////////////// */
/*(051)
スマフォ時にFLEX順序を逆転
ブロックの追加CSSクラスに　col-reverse　を記載する必要あり
*/
@media (max-width: 575px)  {
	.col-reverse{
		flex-direction: column-reverse; 
	}
}

/* //////////////////////////////////////////////////////////////////////////////////// */
/* (052)flexボックスの子要素の高さを親要素に合わせる */
.ns2-height-100per {
    height: 100%;
}

/* //////////////////////////////////////////////////////////////////////////////////// */
/* (062)ブログ一覧表示部分の色調整*/

.ns_blog_category a{
    text-decoration: none;
}

.vk_post_title a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  /*gap: 0.4em;*/
}

.vk_post_title a .vk_post_title_new {
  order: -1;
}

.vk_post_title_new{
	margin-left: 0 !important;
}


.vk_post_imgOuter_singleTermLabel {
	color:#911d3f !important;
	font-weight: bold;
	background-color:#ffffff !important;
	opacity: 0.7;
}

/* //////////////////////////////////////////////////////////////////////////////////// */
/* テーブルを作成すると周りに枠が出てしまうので削除 */
.wp-block-flexible-table-block-table > table {
    border: none !important;
}


/* //////////////////////////////////////////////////////////////////////////////////// */
/* テーブルを作成すると周りに枠が出てしまうので削除 */

[class*="wp-container-"] > h1,
[class*="wp-container-"] > h2,
[class*="wp-container-"] > h3,
[class*="wp-container-"] > h4,
[class*="wp-container-"] > h5,
[class*="wp-container-"] > h6
 {
    margin-block-end: 0 !important;
}


/* //////////////////////////////////////////////////////////////////////////////////// */
/* 見出しの装飾をリセット */
h1, h2, h3, h4, h5, h6 {
    border-top: 0 !important;
    border-bottom: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
}

h4:where(:not(.wp-block-post-title)) {
    background-color: transparent !important;
}

/* //////////////////////////////////////////////////////////////////////////////////// */
/* フッターのウィジェットエリアで、段落のスペースが大きすぎるので修正 */
.site-footer .widget{
    margin-bottom: 1rem !important;
}
