/* style.css - realforce テーマ用追加CSS */

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}
a {
  color: #0073aa;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/*.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}*/

h1, h2, h3,.top_subTitle,.business-title {
  font-family: 'Noto Serif JP';
  font-weight: 600;
  margin-bottom: 0.5em;
}
.news-list{
  list-style: none;
  padding-left: 0;
}
.main-content {
    flex: 1;
    padding-bottom: 1px;
}
.container {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}
.container-inner {
    padding: 100px 0;
    width: 90%;
    margin: 0 auto;
}
.main-nav__list,.f-nav__list,.p-newsList{
    list-style: none;
    padding-left: 0;
}
 .section_subTitle,.page-title{
        font-size: 40px;
        color: #0E6EB8;
        text-align: center;
    }

.section-lead {
  font-size: 27px;
  line-height: 1.8;
  text-align: center;
}
.flex-2col {
  display: flex;
  flex-wrap: wrap;
  /*gap: 2rem;*/
}
.flex-2col .box,.flex-2col .box1 {
  flex: 1;
  background: #fff;
  padding: 2rem;
  text-align: center;
  /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);*/
}

/*ヘッダー*/
header{
    background-color: #fff;
    position: relative;
    z-index: 10;
  }
.header-contents {
    height: 75px;
    margin: 0 auto;
    display: flex;    
    justify-content: space-between;
    /*align-items: center;*/
    position: relative;
}
.logo img {
    width: 100px;
    padding: 10px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto; /* 左側のロゴと空ける */
}
.hamburger-menu {
    width: 50px;
    height: 50px;
    position: relative;
    border: none;
    background: transparent;
    appearance: none;
    padding: 0;
    cursor: pointer;
    display: none;
}
.hamburger-menu__bar {
    display: inline-block;
    width: 44%;
    height: 2px;
    background: #242424;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: .5s;
}
.hamburger-menu__bar:first-child {
    top: 16px;
}
.hamburger-menu__bar:nth-child(2) {
    top: 24px;
}
.hamburger-menu__bar:last-child {
    top: 32px;
}
.hamburger-menu--open .hamburger-menu__bar {
    top: 50%;
}
.hamburger-menu--open .hamburger-menu__bar:first-child {
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.hamburger-menu--open .hamburger-menu__bar:last-child {
    transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}
.hamburger-menu--open .hamburger-menu__bar:nth-child(2) {
    display: none;
}
.main-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;    
}
.main-nav__list {
    display: flex;
    padding: 0;
    margin: 0;
}
.main-nav__list-item {
    margin: 0;
}
a.main-nav__link{
      text-decoration: none;

}
.main-nav__link {
    color: #452e00;
    font-size: 16px;
    font-weight: 400;
    display: block;
    padding: 14px 15px;
    transition: .5s;
}
@media (hover: hover) and (pointer: fine) {
.main-nav__link:hover {
    color: #0E6EB8;

    }
}
.header-contact {
  margin-left: auto;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #64452A;
  color: #fff;
  width: 100px;
  height: 90px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  /*border-radius: 4px;*/
}
.contact-icon {
  width: 30px;
  height: 30px;
  margin-top: 5px;
}
.main-visual {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 750px;
  width: 100%;
  position: relative;
  display: flex;
  color: #fff;
}

.main-visual.v-top{
    background-image:url(../img/mv_01.png); 
      height: 750px;

}
.main-visual.v-service{
    background-image:url(../img/mv_02.jpg); 
    height: 350px;
}
.main-visual.v-about{
    background-image:url(../img/mv_03.jpg); 
    height: 350px;
}
.mv-text {
  max-width: 600px;
  font-family: 'Noto Serif JP';
  position: absolute;
  top: 20%;
  left: 5%; 
  transform: translateY(-10%); 
}
.mv-en {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 20px;
}
.mv-ja {
  font-size: 25px;
  font-weight: 300;
  line-height: 1.8;
}
/*TOP*/
.top_subTitle {
  font-size: 35px;
  color: #5C3B1E; 
  position: relative;
  display: inline-block;
}
.top_subTitle.contact{
  color: #fff; 
}
.subtitle-ruby {
  font-size: 12px;
  position: absolute;
  bottom: -14px; /* 下に配置 */
  left: 0;
  letter-spacing: 0.1em;
}
.btn-view {
	position: relative;
	border: none;
	border-bottom: 1px solid #666;
	width: 150px;
	max-width: 90%;
  text-align: left;
}
.btn-view::before {
	content: "";
	display: block;
	width: 30px;
	height: 1px;
	background: #666;
	rotate: 40deg;
	position: absolute;
	right: -3px;
	bottom: 9px;
}
.btn-view a{
    color: #5C3B1E;
    text-decoration: none;
}
.news-item{
    border-bottom: solid 1px #777;
}
.news-date {
    font-size: 16px;
}
.bg-1{
  background-image:url(../img/bg_01.png); 
  background-repeat: no-repeat;
  background-position: right center; /* 横：右端／縦：中央 */
  background-size: auto; 
}
.bg-2{
      background-color: #64452A;
}
.business-section {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
}
.business-content {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.business-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 25%;
}
.business-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.business-text {
  flex: 1;
  padding: 0 40px;
  z-index: 2;
}
.business-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.box.t-company {
    text-align: left;
}

.contact-flex {
  height: 150px;
  display: flex;
  align-items: flex-start; /* ← 横並び時、子要素を上揃えにする */
  justify-content: space-between;
  gap: 2em;
  color: #fff;
}

.contact-flex h2 {
  flex: 1;
  font-size: 2em;
  align-self: flex-start; /* ← h2だけ上寄せに（明示的に） */
  margin-top: 0.2em; /* ← 必要であれば微調整 */
}
.contact-text-group {
  flex: 2;
  align-self: flex-end;
}
.contact-text-group p {
  margin-bottom: 1em;
}
.contact-button {
  display: block; /* または inline-block */
  width: 440px;
  padding: 0.8em 1.5em;
  background-color: #fff;
  color: #5C3B1E;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  text-align: center; /* ボタン内の文字を中央寄せにするなら */
  text-decoration: none; /* 下線を消す */
}


/* 背景
.business-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  background-image:url(../img/bg_01.png); 
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  opacity: 0.08;
  z-index: 0;
}
 */

/*Service*/
.g-col{
    gap: 2rem;
}
.box1 {
  position: relative;
  margin: 72px 16px 32px;
  padding: 16px;
  border: 5px solid #0E6EB8;
  background: #eee;
  color: #555;
  box-sizing: border-box;
}
.box1 .box-title {
  position: absolute;
  top: -40px;
  left: -5px; /* ← border の分 外に出す */
  width: calc(100% + 10px); /* ← border 左右の分追加 */
  line-height: 50px;
  padding: 0 16px;
  background: #0E6EB8;
  border-radius: 5px 5px 0 0;
  color: #fff;
  font-weight: bold;
  font-size: 120%;
  text-shadow: 2px 2px 5px #555;
  box-sizing: border-box;
}
.box1 p { 
  margin: 0; 
  padding: 0;
  text-align: left;
}
.service-image {
    width: 90%;
    margin: 0 auto;
}
.service-image img {
  width: 100%;
  height: auto;
  display: block;
}

/*About*/
.b-col .box{
  border: solid 1px #c6c6c6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.box.box2 {
    background-color:#EBEBEB;
}
.c-table{
    width: 100%;
    border-collapse:collapse;
}
.c-table th,.c-table td {
    border:1px solid #333;
}
.c-table td {
    padding-left: 25px;
}
/* 全体の枠線とレイアウト設定 */
.taxtbox {
    display: flex;
    /*flex-wrap: wrap;*/
    border: 1px solid #333; /* 枠線 */
    padding: 1rem;
    margin: 1rem 0;
}

/*お知らせ*/
.p-newsList {
    padding-bottom: 30px;
}
.p-newsList__item {
    margin-bottom: 15px;
    border-bottom:solid 1px #666 ;
}
.p-newsList__link {
    display: block;
    text-decoration: none;
    color: #333;
}
.p-newsList__date {
    margin-right: 30px;
}
/*.p-newsList__title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}*/
.p-news-content{
    max-width: 900px;
    margin: 0 auto;
    min-height: 300px;
}
.post-navigation{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.nav-previous{
    text-align: left;
    flex: 1;
}
.nav-next{
    text-align: right;
    flex: 1;
}


/*お問い合わせ*/
form.wpcf7-form.init {
    padding-top: 50px;
}
.CF7_table {
  width: 70%;
  margin: 0 auto;
  border: 3px solid #e5e5e5;
  border-collapse: collapse;
}
.CF7_table th {
  width: 30%;
  background-color: #ebedf5;
  text-align: left;
}
.CF7_table tr{
  border-bottom: 1px solid #e5e5e5;
}
.CF7_table input,.CF7_table textarea {
  border: 1px solid #d8d8d8;
  width: 90%;
}
.CF7_table input{
  height: 2em;
}
.CF7_table td{
  border-bottom: 1px solid #e5e5e5;
}
.CF7_req {
  display: inline-block;
  font-size: .9em;
  padding: 5px;
  background: #f73628;
  color: #fff;
  border-radius: 3px;
  margin: 0 1em;
}
.CF7_unreq {
  font-size: .9em;
  padding: 5px;
  background: #bdbdbd;
  color: #fff;
  border-radius: 3px;
  margin: 0 1em;
}
.wpcf7-form-control-wrap{
  padding-left: 1em;
}
.CF7_btn {
  text-align: center;
  margin: 2rem auto;
}

.CF7_btn input[type="submit"] {
  display: inline-block;
  padding: 1rem 4rem;
  font-weight: bold;
  border-radius: 100vh;
  border: none;
  background: #27acd9;
  color: #fff;
  cursor: pointer;
  border-bottom: 7px solid #0686b2;
  transition: all 0.2s ease;
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
}

.CF7_btn input[type="submit"]:hover {
  transform: translateY(6px);
  border-bottom: 1px solid #0686b2;
  color: #fff;
}

/*フッター*/
.site-footer {
  background-color: #fff;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #333;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-logo {
  width: 100px;
  margin-bottom: 10px;
}
.copyright {
  font-size: 12px;
  color: #333;
}
.footer-right {
  display: flex;
  align-items: center;
}
.footer-nav {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}
.footer-nav li a {
  color: #5C3B1E;
  text-decoration: none;
  font-weight: bold;
}
.footer-nav li a:hover {
  text-decoration: underline;
}




/************************************
レスポンシブデザイン用のメディアクエリ
************************************/

@media screen and (max-width: 1024px){
    
    .post-item {
            width: calc(50% - 10px); 
        }
        

}

/* レスポンシブ対応：画面幅が768px以下の時は1カラムに */
@media (max-width: 768px) {
  .container-inner {
    padding: 40px 0;
  }
    .main-content {
        /*width: 700px;*/
    }
  .flex-2col {
    flex-direction: column;
  }

header{
  width: 100%;
}
.header-contents {
    height: 65px;
  }
  .logo {
    flex: 1;
    padding: 5px 10px;
  }
.logo img {
    padding: 0;
}
  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hamburger-menu {
        display: block; /* ハンバーガーメニューを表示 */
    }
  .main-nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    margin: 0; 
    background-color: #64452A;
    z-index: 9999;
  }
  .main-nav--open {
    display: flex;
  }
  .main-nav__list {
    flex-direction: column;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .main-nav__list-item {
    width: 100%;
    border-bottom: solid 1px #474747;
  }
  .main-nav__list-item:first-child {
    border-top: solid 1px #474747;
  }
  .main-nav__link {
    color: #fff;
    padding: 24px 0;
    display: block;
    width: 100%;
  }
  .main-visual.v-top {
    height: 550px;
    background-position: left;
}
.section-lead{
  font-size: 22px;
}
.business-content{
  display: block;
  }
.business-images{
  display: none;
}
.business-image-right{
  width: 90%;
  margin: 0 auto;
  padding-top: 40px;
}
.contact-flex {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }
  .contact-flex h2,.contact-text-group {
    width: 100%;
  }
  .contact-button  {
    width: 335px;
    text-align: center;
  }
.CF7_table {
    width: 95%;
  }
  .CF7_table tr,.CF7_table td,.CF7_table th {
    display: block;
    width: 100%;
    line-height: 2.5em;
  }
  .CF7_table th {
    background-color: #ebedf5;
  }
}


