@charset "UTF-8";
/*
Theme Name:RUNGO theme
Author: RUNGO
Description: RUNGO theme.
Version: 1.0
*/

*{
 margin: 0;
 padding: 0;
}

body{
word-wrap: break-word;


}


html {
font-family: kozuka-gothic-pro, sans-serif;
font-style: normal;
font-weight: 200;


  font-size : 100%;
  line-height : 1.5;
  color: #383838;
}

h1,h2,h3,h4,h5,h6 {
 margin-bottom : 1em;
 font-family: toppan-bunkyu-midashi-go-std, sans-serif;
font-style: normal;
font-weight: 900;
}

h1 {
font-size : 36px; 
line-height : 1.2;
} /* 48px */

h2 {
font-size : 26px;
line-height : 1.2;
font-weight: normal;
} /* 48px */

h3 {
font-size : 24px;
line-height : 1.2;
} /* 24px */



ul, ol {
	  list-style : none;
	   line-height: 1.8em;
	     font-size:0.9em;
	  }
img { 
         vertical-align : middle;
         max-width: 100%;
         height: auto;
         }

p{
    line-height: 1.8em;
    font-size:0.9em;
}




a{
 text-decoration: none;
color: #2b2b2b;
 transition: 0.4s ease-in-out;  
}

a:hover {  
    opacity: 0.5;  
    filter: alpha(opacity=60);  
} 

img{
width: 100%;
}

/* text */

.left{
 text-align: left;
}

.right{
 text-align: right;
}

.center{
 text-align: center;
}

.bold{
 font-weight: bold;
}


.small{
 font-weight: normal;
 font-size: 0.8em;
}

/*flex*/

.flex_container_sp{
display: -webkit-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
}

.flex_center{
 justify-content: center;
  align-items: center;
}

.flex_half_sp{
width: 46%;
margin: 2%;
box-sizing: border-box;
}

.flex_4_sp{
width: 48%;
margin: 1%;
box-sizing: border-box;
}


.flex_left_sp{
width: 31%;
margin: 2%;
box-sizing: border-box;
}


.flex_right_sp{
width: 61%;
margin: 2%;
box-sizing: border-box;
}



/*header*/


body.home header{
    background-image: url("images/bg_header_sp.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 7em 3em 16em 3em;
    color: #000;

    /* アニメーション設定 */
    animation: bg-zoom-in 1.5s ease-out forwards;
}

body.page header {
    background-image: url("images/bg_header_sp.jpg");
        background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 4em 4em 4em 4em;
    color: #000;
}

body.single header {
    background-image: url("images/bg_header_sp.jpg");
        background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 4em 4em 4em 4em;
    color: #000;
}



/* 背景画像の拡大アニメーション */
@keyframes bg-zoom-in {
    0% {
        background-size: 100%;
    }
    100% {
        background-size: 120%;
    }
}

/* 背景画像の拡大アニメーション */
@keyframes bg-zoom-in {
    0% {
        background-size: 100%; /* 初期サイズ */
    }
    100% {
        background-size: 110%; /* 拡大後のサイズ */
    }
}

header h1{
width: 70px;
margin-bottom: 1em;
}

header{
margin-bottom: 3em;
}

header p{
line-height: 1.5em;
}

header p.subtitle{
margin-bottom:0.5em;
}


header p.catch{
font-size: 2.25em;
font-weight: bold;
line-height: 1.4em;
margin-bottom: 0.3em;
}

/*header animation*/
.animation {
    opacity: 0;
    transform: translateY(30px); /* 初期状態で少し下に配置 */
    transition: opacity 0.6s ease, transform 1s ease; /* アニメーション効果 */
}

/* アニメーション完了時のスタイル */
.animate-in {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻す */
}


/*nav*/

.hamburger {
  display : block;
  position: fixed;
z-index: 9999;
  left : 5px;
  top   : 5px;
  width : 42px;
  height: 42px;
  cursor: pointer;
  text-align: center;
}
.hamburger span {
  display : block;
  position: absolute;
  width   : 20px;
  height  : 2px ;
  left    : 6px;
  
  background : #ccc;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition   : 0.3s ease-in-out;
  transition        : 0.3s ease-in-out;
}
.hamburger span:nth-child(1) {
  top: 8px;
}
.hamburger span:nth-child(2) {
  top: 16px;
}
.hamburger span:nth-child(3) {
  top: 24px;
}

/* ナビ開いてる時のボタン */
.hamburger.open span:nth-child(1) {
  top : 16px;
  left: 6px;
  background :#fff;
  -webkit-transform: rotate(-45deg);
  -moz-transform   : rotate(-45deg);
  transform        : rotate(-45deg);
}

.hamburger.open span:nth-child(2),
.hamburger.open span:nth-child(3) {
  top: 16px;
  background :#fff;
  -webkit-transform: rotate(45deg);
  -moz-transform   : rotate(45deg);
  transform        : rotate(45deg);
}

nav.globalMenuSp {
  position: fixed;
 z-index : 10; 
  top  : 0;
  left : 0;
  color: #fff;
  background: rgba(0,0,0,0.9);
  text-align: center;
  width: 100%;
  height: 100%;
  opacity: 0;
pointer-events: none;
  transition: opacity .6s ease, visibility .6s ease;
  padding-top: 4em;
}

/* このクラスを、jQueryで付与・削除する */
nav.globalMenuSp.open {
  opacity: 1;
pointer-events: auto;
}



nav.globalMenuSp ul {
  margin: 0 auto;
  padding: 0;
  width: 100%;

}

nav.globalMenuSp ul li {
  list-style-type: none;
  padding: 0;
  width: 100%;
  transition: .4s all;

}
nav.globalMenuSp ul li:last-child {
  padding-bottom: 0;
}
nav.globalMenuSp ul li:hover{
  background :#2b2b2b;
}

nav.globalMenuSp ul li a {
  display: block;
  color: #fff;
  padding: 1em 0;
  text-decoration :none;

}




/*main*/

.box0{
padding-top: 4em;
}

.box0 p.subtitle{
margin-bottom:1em;
}

.box{
margin: 1em 2em 6em 2em;
}

.box h2{
font-size: 1.4em;
letter-spacing:0.1em;

}

.box h3{
font-size: 1.3em;
margin-bottom:0.3em;
line-height:1.6em;
}

p.detail{
text-align:right;
margin-left:auto;
margin-top:2em;

}

p.detail a{
display:block;
padding:0.1em 1em;
}

.detail a {
    position: relative;
    display: inline-block;
    padding-right: 20px; /* 矢印の分だけ余白を作る */
    text-decoration: none;
    color: #333; /* リンクの色を調整 */
}

.detail a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #333; /* 矢印の色 */
}



/*hover*/
.detail-button {

  text-align:center;
    padding: 0.4em 1em;
    font-size: 0.7em;
    color: #fff;
    background-color: #333;
    border-radius: 30px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    outline: none;
    margin-top: 1em; /* ボタン上の余白 */
    width: calc(130px - 2em); /* 横幅調整 */
    margin-left: auto;
    
}

.detail-button a{
color:#fff;
}

.detail-center{
margin-right:5em;
}

/* 矢印（三角形） */
.detail-button .arrow {
    display: inline-block;
    margin-left: 10px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #fff;
    transition: transform 0.3s ease;
}

/* ホバー時に矢印を右に移動 */
.detail-button:hover .arrow {
    transform: translateX(5px);
}

/* 赤い背景スライド */
.detail-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: red;
    transition: left 0.3s ease;
    z-index: -1;
}

/* ホバー時の赤いスライドイン */
.detail-button:hover::before {
    left: 0;
}

/* コンテンツ（文字と矢印） */
.detail-button span, .detail-button {
    position: relative;
    z-index: 2;
}

/* フォーカススタイルを無効化 */
.detail-button:focus, .arrow:focus {
    outline: none;
}


/*zoom*/
/* 画像を包む figure 要素 */
.hover-zoom {
    position: relative;
    overflow: hidden;
    width: 100%; /* 幅を親要素に合わせる */
    aspect-ratio: 4 / 3; /* 4:3の比率を保つ */
}

/* 画像スタイル */
.hover-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 要素内に画像をフィットさせる */
    transition: transform 0.5s ease; /* ふわっと拡大するアニメーション */
}

/* マウスホバー時の拡大効果 */
.hover-zoom:hover img {
    transform: scale(1.1); /* 画像を拡大（1.1倍） */
}


/*animation*/
/* 画像全体を包む要素 */
.hover-effect {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* 画像スタイル */
.hover-effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

/* ロゴのオーバーレイ */
.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* ロゴ画像 */
.logo-overlay img {
    width: 300px;
   margin-left:auto;
   margin-right: auto;
}

/* ホバー時のエフェクト */
.hover-effect:hover img.hoverimg {
    filter: brightness(20%); /* 画像に黒のフィルターをかける */
}

.hover-effect:hover .logo-overlay {
    opacity: 1; /* ロゴを表示 */
}




.service .flex_3_pc figure{
margin-bottom:0;
}

.bg_service{
background:#f4f4f4;
padding:1em;
margin-bottom:2em;
}

.service figure{
margin-bottom:1em;
}


.service p.price{
margin-top:1em;
}

.service a:hover {  
    opacity: 1;  
    filter: alpha(opacity=100);  
} 


p.boxsub{
font-weight:bold;
font-size:0.8em; 
letter-spacing: 0.1em;
margin-bottom:0em;
}

.work{
background:#333;
padding-top:6em;
padding-bottom:4em;
margin-bottom:4em;
}

.work h2{
color:#fff;
}

.work figure{
margin-bottom: 0em;
}

.work .flex_half_pc{
background:#fff;
}

.bg_work{
padding:1em;
margin-bottom:2em;
}

.work p{
line-height: 1.6em;
}

.work a:hover {  
    opacity: 1;  
    filter: alpha(opacity=100);  
} 


p.price{
font-size: 0.8em;
text-align: right;
font-weight:bold;
padding-bottom:0.3em;
}


p.price span{
font-size: 1.4em;
margin-left: 0.2em;
margin-right:0.2em;
}

.work .flex_container_pc{
margin-bottom: 2em;
}

.profile figure{
margin-bottom:1em;
}
.profile h3{
font-size:1.1em;
letter-spacing:0.1em;
}


/*news*/
.flex_news_right{
background:#f4f4f4;
padding:1em 1em 0em 1em;
margin-bottom:2em;
width:100%;
box-sizing:border-box;
}


/*footer*/
footer{
background:#000;
padding-top:5em;
padding-bottom:5em;
}

footer figure.f_logo{
max-width:80px;
margin-bottom:2em;
font-size: 0.9em;
letter-spacing: 0.1em;
}

footer h2{
margin-bottom:0.1em;
font-size:0.9em;
color:#fff;
}

footer p{
color:#fff;
}


footer p a{
color:#fff;
}


.sns{
display: -webkit-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
max-width: 250px;
margin:2em 0;
}


.globalMenuSp .sns{
margin:2em auto;
}



.sns figure{
width: 15%;
margin: 9%;
}

ul.sns li img{
width: 100%;
}

/*page*/


.page_title{
border-top:10px solid #000;
width:30px;
margin-bottom:0.5em;
}

.page_title_box{
margin-left:2em;
}

.page figure{
margin-bottom:1em;
}

.page h2{
font-size: 1.4em;
border-bottom:1px solid #000;
padding-bottom:0.3em;
margin-bottom:1em;
}



.page .profile h2{
border-bottom:none;

}


.page h3{
font-size: 1.2em;
margin-bottom:0.5em;
}

.page h4{
display:inline-block;
background:#2b2b2b;
color: #fff;
border-radius:100px;
padding:0.1em 1em;
margin-top:1em;
font-size:1em;
}

.page p{
margin-bottom:1em;
}

.page p.boxsub{
margin-bottom:0.3em;

}

.page ul{
margin-bottom:2em;
list-style-type:disc;
margin-left: 1em;
}

.page .box_page1 figure{
margin-bottom:0;
}

.bg_box ul{
margin-bottom:2em;

}

.bg_box p.price{
margin-bottom:1.1em;
border-bottom:2px solid #696969;
}

.bg_box{
background:#f4f4f4;
padding:1em 1em 1em 1em;
margin-bottom:2em;
}



/*consulting*/

.bg_page_box1 {
    background: linear-gradient(to bottom, #fff 20%, #2b2b2b 20%);
    padding-bottom:1em;
    margin-bottom:5em;
}

.bg_page_box1 figure{
margin-bottom:0;
}

.bg_white{
background:#fff;
padding:1em;
}

.bg_white p{
font-size:0.9em;
}


.box_page1 li{
border-bottom:1px dotted #ccc;
padding-bottom:0.3em;
margin-bottom:0.5em;
}

.box_page2{
background:#2b2b2b;
padding-top:5em;
padding-bottom:5em;
}

.box_page2 .box_in{
margin-bottom:0;
}

.box_page2 h2{
color: #fff;
border-bottom:none;
max-width:800px;
margin-left: auto;
margin-right:auto;
}

.box_page2 h3{
font-size:1em;
border-bottom:1px dotted #ccc;
padding-bottom:0.3em;
}

.box_page2 p{
font-size:0.9em;
}

.box_page2 .flex_container_sp{
background:#fff;
border:4px solid #696969;
padding:0.5em 0.5em 0em 0.5em;
max-width:800px;
margin-left: auto;
margin-right:auto;
}

.triangle {
    width: 0;
    height: 0;
    margin: 10px auto;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff; /* 三角形の色を指定 */
}


/*web*/
.web_icon p{
font-size:0.9em;
text-align: center;
}

.web_box img{
margin-bottom:1em;
}

.web h3{
border-left:20px solid #000;
padding-left: 0.3em;
line-height:1;
margin-bottom:1em;
}


/*company*/
.company table{
text-align: left;
line-height: 1.8em;
border-collapse: collapse;
font-size: 0.9em;
width: 100%;
}

.company th {
  white-space: nowrap;
   vertical-align: top;
   padding:0.5em;
}


.company td {
   padding:0.5em;
}



/*business*/
.box_in{
margin-bottom: 3em;
}

.business{
margin-left: 2em;
}

.business h2{
font-size: 1.2em;
margin-left: 2%;
border-bottom: 1px dotted #ccc;
padding-bottom: 0.5em;
margin-bottom: 1em;
}

.business h3{
font-size: 1em;
letter-spacing: 0.1em;
font-weight: normal;
}

.business .number55{
margin-left: 2%;
margin-right: 2%;
}


/*page*/
.page_in{
margin-left: 3em;
}


.page_in p{
margin-left: 2%;
margin-bottom: 3em;
}




.page_in h2{
font-size: 1.2em;
margin-left: 2%;
border-bottom: 1px dotted #ccc;
padding-bottom: 0.5em;
margin-bottom: 1.5em;
}

.page_in h3{
font-size: 1.1em;
margin-left: 2%;
letter-spacing: 0.1em;
font-weight: normal;
}

.page_in ul{
margin-left: 2%;
margin-bottom: 1em;
}

.page_in figure{
margin-bottom: 1em;
}

.page_in ul.small_ul{
list-style:disc;
margin-left: 3%;
line-height: 1.8em;
font-size: 0.9em;
}

.page_in .bread{
margin-left: 2%;
}




/*work*/
p.cost{
font-size: 1.2em;
text-align: right;
margin-bottom: 0;
border-bottom: 1px solid #fff;
margin-bottom: 3em;
}



/*single*/


.youtube {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-left: 2%;
  margin-bottom: 2em;
}
.youtube iframe {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
}



/*pagenavigation*/
.pagenav{
    margin-top: 3em;
    font-size: 0.9em;
    max-width: 400px;
    margin: 0 auto;
}

.pn_old{
border: 1px solid #000;
border-radius: 10px;
float: left;
text-align: center;
width: 100px;
margin-left: 0;
margin-right: auto;
}

.pn_new{
border: 1px solid #000;
border-radius: 10px;
float: right;
text-align: center;
width: 100px;
margin-left: auto;
margin-right: 0;
}


.pagination ul{
      display: -webkit-box;
  display: -ms-flexbox;
display: flex;
max-width: 350px;
margin: 0 auto;
}
.pagination li{
    color: #fff;
    font-size: 0.7em;
      flex: 1; 
      margin: 0.5em;
      margin-top: 5em;
      margin-bottom: 8em;
      background: #2b2b2b;
border-radius: 3px;
   padding: 0.8em;
}

.pagination li a{
    color: #fff;
}


/*contact*/

.wpcf7 textarea ,.wpcf7 input[type="text"],
.wpcf7 input[type="email"],.wpcf7{
width: 100%;
  padding: 1em;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
border-radius: 5px;
box-shadow: none;
}

 input[type="tel"],.wpcf7 input[type="number"]{
      padding: 1em;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
border-radius: 5px;
box-shadow: none;
background: #fff;
 }

input[type="text"].p-postal-code{
    max-width: 120px;
}

input[type="text"].p-region{
    max-width: 280px;
}
input[type="text"].p-locality{
    max-width: 280px;
}

.wpcf7-form .wpcf7-select, select {      
 padding: 1em;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
border-radius: 5px;
box-shadow: 1px 1px 0px rgba(0,0,0,0.4) inset;;
background: #fff;
height: 35px;
}





.wpcf7 textarea ,.wpcf7 input[type="text"],
.wpcf7 input[type="email"],.wpcf7 input[type="tel"]{
  padding: 1em;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
border-radius: 5px;
box-shadow: none;
background: #fff;
}


.wpcf7 select{
  padding: 10px;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
border-radius: 5px;
box-shadow: none;
background: #fff;
}


.wpcf7 input[type="submit"]
  {

width: 300px;
padding: 1em 2em;
font-size: 14px;
border: none;
background-color: red;
-webkit-appearance: none;
cursor: pointer;
border-radius: 3px;
color: #fff;
font-weight: bold;
text-align: center;
margin: 0 auto;
margin-right: auto;
margin-left: auto;
display: block;
margin-bottom: 5em;
    -webkit-transition: 0.4s ease-in-out;
    -moz-transition: 0.4s ease-in-out;
    -o-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
}

.wpcf7 input[type="submit"]:hover{
  opacity: 0.8;
    filter: alpha(opacity=60);
  }

.wpcf7-list-item-label{
 margin-right: 15px;
}
.fb-page{
width: 100%!important;
}
.clearfix:after {  
  content: ".";   
  display: block;   
  height: 0;   
  clear: both;   
  visibility: hidden;  
}  
  
.clearfix { display: inline-table; }  

.contact  h1{
        max-width: 800px;
    margin: 0 auto;
    margin-bottom: 2em;
}

.contact_page1 {
    max-width: 800px;
    margin: 0 auto;
}

.contact_page1  h2{
    letter-spacing: 0.1em;
    font-size: 1.1em;
    font-weight: bold;
    background: #000;
    color:  #fff;
    padding: 0.5em 0em;
    font-weight: normal;
    margin-bottom: 2em;
}

.contact_page1  h3{
    font-size: 1em;
    padding-bottom: 0.6em;
    margin-bottom: 1em;
    border-bottom: 1px dotted #ccc;   
}

.contact_page1  p{
    margin-bottom: 2em;
}

.contact_page1  {
    line-height: 1.8em;
}

.contact_page1  dt{
    margin-bottom: 0.5em;
}

.contact_page1  dd{
    margin-bottom: 2em;
}

.contact_page1 p{
    margin-bottom: 4em;
}

p.c_tit{
  border-bottom: 1px dotted #696969;  
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

/*外部コンテンツ*/
iframe	{max-width: 100%}


p.contact_btn{
position:fixed;
bottom: 0;
z-index: 1;
right: 2em;
background: red;
color: #fff;
text-align: center;
padding: 0.5em 1em;
font-size: 0.9em;
letter-spacing: 0.1em;
border-radius: 10px 10px 0px 0px;
max-width: 350px;
margin-left: auto;
margin-right: auto;
}

p.contact_btn a{
display: block;
color: #fff;
}



/*footer*/


footer{
color: #000;
font-size: 0.9em;
letter-spacing: 0.1em;
}

footer a{
color: #000;
}


p.copy{
font-size: 0.8em;
}



.section1,
.section2{
  padding: 50px;
}
.section1{
  position: relative;
  background-color: #000;
}
.section1::before{
  content:"";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 300px 100vw ;
  border-color: transparent transparent #ffe100; transparent;
}

.section2{
background: #ffe100;
}



@media screen and (min-width: 769px){
.box h2{
font-size: 1.8em;
letter-spacing:0.1em;

}

ul, ol {
	     font-size:1em;
	  }

p{
    font-size:1em;
}



/*flex*/

.flex_container_pc{
display: -webkit-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
}

.stretch{
align-items: stretch;
}

.flex_half_pc{
width:48%;
margin:1%;
}

.flex_3_pc {
   width:46%;
    margin: 2%;
    box-sizing: border-box;
}




.flex_half_sp{
width: 31%;
margin: 1%;
}

.flex_4_sp{
width: 23%;
margin: 1%;
box-sizing: border-box;
}



/*nav*/
.hamburger {
  display : block;
  position: fixed;
  z-index : 999;
  left : 10px;
  width : 42px;
  height: 42px;
  cursor: pointer;
  text-align: center;
}



/*header*/


header h1{
width: 90px;
}

header p.subtitle{
font-size: 1.2em;
letter-spacing:0.1em;
}


header p.catch{
font-size: 4em;
font-weight: bold;
line-height: 1.4em;
margin-bottom: 0.3em;
}

.box{
margin: 1em 2em 6em 2em;
}

.box_in{
max-width:1600px;
margin-left: auto;
margin-right: auto;
}


.page_title_box_in{
max-width:1600px;
margin-left: auto;
margin-right: auto;
}


.profile{
max-width:60%;
margin-left:auto;
margin-right: auto;
}


/*main*/
.page p.boxsub{
font-size:1em;
margin-bottom:0.3em;

}

p.price{
font-size:1em;
}

p.price br{
display:none;
}

/*web*/
.web h3{
font-size:1.4em;
}



/*footer*/

footer figure.f_logo{
margin-left: auto;
margin-right: auto;
}

footer h2{
text-align:center;
}

footer p{
text-align:center;
}



.sns{
margin:2em auto;
}


/*page*/
.business{
margin-right: 2em;
}

.page_in{
margin-right: 2em;
}

 
 
 .bg_box{
background:#f4f4f4;
padding:2em;
margin-bottom:2em;
}


}



@media screen and (min-width: 1024px){


/*flex*/

.flex_container_pc2{
display: -webkit-box;
display: -ms-flexbox;
display: flex;
flex-wrap: wrap;
}


.flex_half_pc2{
width:48%;
margin:1%;
}

.flex_4_sp{
width: 23%;
margin: 1%;
box-sizing: border-box;
}



body.home header{
background-image:url("images/bg_header_pc2.jpg");
padding:8em 5em 20em 10em;
}



.flex_3_pc {
     width:31%;
    margin: 1%;
    box-sizing: border-box;
}





/*consulting*/



.bg_page_box1 {

    background: linear-gradient(to bottom, #fff 50%, #2b2b2b 50%);
    padding-bottom:3em;
    margin-bottom:5em;
}





.flex_container_overlay {
    display: flex;
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
}

.image_wrapper {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.image_wrapper figure {
    margin: 0;
    width: 100%;
    height: 100%;
}

.image_wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.text_wrapper {
    width: 50%;
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%); /* 上下中央揃え */
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto; /* 必要に応じて明示的な高さを設定 */
}
.bg_white {
    background: rgba(255, 255, 255, 1); /* 少し透け感を加える */
    padding: 2em;
    box-sizing: border-box;
    max-width:700px;
}

/*news*/

.news_page{
margin-left:2em;
margin-right: 2em;
}

.flex_news_left {
  width: 30%;
  display: flex;
  align-items: center; /* 縦中央 */
  box-sizing: border-box;
  margin-bottom:2em;
}

.flex_news_right {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 上下に余白をつけて */
  box-sizing: border-box;
margin-bottom:2em;
}

.flex_news_right .bg_box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 中身を縦中央 */
}


.flex_news_right　p.detail-button {
  text-align: right; /* 右寄せ */
  margin-top: 10px;
}





}

@media screen and (min-width: 1280px){
header{
background-image:url("images/bg_header_pc.jpg");
padding:8em 5em 20em 10em;
}

.box_page1 .box{
max-width:1400px;
margin-left: auto;
margin-right:auto;
}

.flex_half_pc2{
width:46%;
margin:2%;
}



/*main*/


.box{
margin: 1em 3em 6em 3em;
}

.profile{
max-width:65%;
margin-left:auto;
margin-right: auto;
}

.prof_left_pc{
width:35%;
margin-right: 5%;
box-sizing:border-box;
}

.prof_right_pc{
width:60%;
box-sizing:border-box;
}

/*news*/

.news_page{
max-width:1100px;
margin-left: auto;
margin-right:auto; 
}



}






