/*
Theme Name:onepress-child
Template:onepress
*/

:root {
    --color-main: #1695D4;
    --color-sub: #1CC6EA;
    --color-border: #7E7E7E;
    --color-bg-blue: #E8F4FE;
    --color-bg-gray: #EDEDED;
    --color-bg-required: #FF0000;
    --color-bg-cancel: #b5b5b5;
    --color-bg-cancel-hover: #777777;
    --color-white: #ffffff;
    --color-black: #101010;
    --color-light-gray: #dddddd;
    --header-height: 7rem;
    --cmn--transition: 0.2s;
    --water-icon: url('./assets/images/h2-icon.png');
    --min-width: 300px;
    --flex-gap-normal: 10px;
    --flex-gap-large: 20px;
    --radius-range: 10px;
}

/* 
 * ============================ 全体 ============================
 */

* {

}

html {
  font-size: clamp(14px, 2vw, 24px);
}

@media screen and (max-width: 768px) {
/*改行調整*/
  .auto-phrase{
    word-break: keep-all !important;
  }
}

.sp-br {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp-br {
    display: block;
  }
}


/* スマホでは改行しない */
.pc-only {
  display: none;
}

/* PCのみ改行する */
@media screen and (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}


/* 
 * ============================ レイアウト ============================
 */

.top-main__container {
  width: 80%;
  min-width: var(--min-width);
  margin: auto;
}

.page-footerarea__bg {
  background-color: var(--color-bg-blue);
  padding: 5% 0;
}

#primary {
  padding-bottom: 0px !important;
}
/* 
 * ============================ Menu ============================
 */

/* 
 * Header Menu
 */
.onepress-menu a {
  font-size: clamp(1.2rem, 2vw, .9em) !important;
}
@media ((min-width: 992px)) {
    header .container {
      width: 95%;
    }
}

.site-branding img{
  width: clamp(250px, 32vw, 300px);
}
@media (max-width: 400px) {
    /* SiteLogoImage */
    .site-branding {
      width: 80%;
    }
    .site-branding img {
      width: 100%;
    }    
}

/* 
 * Footer Menu
 */

/* FooterMenu全体の背景 */
.footer-menu-bg {
  background-color: var(--color-bg-gray);
  width: 100%;
}

/* FooterMenu並び順 */
.footer-menu-area {
  display: flex;
  flex-wrap: wrap;
  gap: var(--flex-gap-normal);
  padding: 3rem 10%;
}

.footer-menu-area a {
  color: var(--color-sub);
  text-decoration: none;
}

.footer-menu-area a:hover {
  text-decoration: underline;
}

/* FooterMenuのコンテナ */
.footer-nav-container {
  width: 30%;
}
@media (max-width: 781px) {
    /* FooterNavのStyle */
    .footer-nav-container {
      width: 100%;
    }
}

/* FooterNavのStyle */
.footer-nav {
  list-style: none;
  padding-left: 0;
}



/* 
 * ============================ Sidebar ============================
 */

.sidebar-title {
  font-size: 1.2rem;
}


/* 
 * ============================ 汎用 ============================
 */


/* 背景色 */
.bg-blue {
  background-color: var(--color-bg-blue);
}
.bg-gray {
  background-color: var(--color-bg-gray);
}

/* ボタン */
.square-btn {
  display: block;
  padding: .5em 2em;
  border-radius: 0px;
  border: solid 1px var(--color-main);
  color: var(--color-main);
  font-weight: bold;
  background-color: transparent;       /* 通常は透明 */
  transition: background-color 0.3s ease, color 0.3s ease; /* ふんわり変化 */
}

.square-btn a {
  color: inherit;      /* 親の色を継承 */
  text-decoration: none;
  transition: color 0.3s ease; /* a の文字色も滑らかに */
}

.square-btn a:hover {
  color: inherit;      /* 親の色を継承 */
  text-decoration: none;
}

.square-btn:hover {
  background-color: var(--color-main);
  color: white;
}


a img {
  transition: transform 0.3s ease;
  object-fit: cover;
}

a img:hover {
  transform: scale(1.1);
}


/* 
 * ============================ TOP ============================
 */
.top-hero__container {
  height: 80vh;
}
@media (max-width: 781px) {
  .top-hero__container {
    height: 50vh;
  }
}

.top-heroimg__container {
  width: 60%;
  margin: auto;
  gap: var(--flex-gap-large);
}

.top-heroimg__text {
  width: 100%;
  text-align: center;
  background-color: var(--color-main);
  color: white;
  font-weight: bold;
  margin-top: 10px;
  font-size: clamp(24px, 3vw, 42px)
}

.top-main {
  padding: 5% 0;
  width:100%;/*add20260217*/

}

/* TOP Image Button */
.top-imageBtn__container {
  width: 100%;
  margin: 0;
  padding: 0 !important;
  display: flex;
  justify-content: center;/*edit20260217space-between*/
  flex-wrap: wrap;
  gap: var(--flex-gap-normal);
}

.top-imageBtn__link {
  aspect-ratio: 12 / 5; /* または 7 / 3 */
  width: 30%;
  min-width: var(--min-width);
  height: auto;
  border-radius: var(--radius-range);
  border: 3px solid #95CCFE;
  position: relative;
  text-align: center;
  overflow: hidden;
  margin: auto;
}

.top-imageBtn__img {
  object-position:50% 30%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.top-imageBtn__link:hover .top-imageBtn__img{
  transform: scale(1.1);
}

.top-imageBtn__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.2);
  z-index: 1;
}

.top-imgBtn__txt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  z-index: 2;
  margin: 0;
  display: block;
  text-align: center;
  text-wrap: nowrap;
  width: 60%;
  /*letter-spacing: clamp(0.2em, 0.5em, 1.2em);*/
  letter-spacing: clamp(0.05em, 0.2vw, 0.3em);
}

.top-imgBtn__txt.spacing {
  letter-spacing: 1.5em;
}

@media screen and (max-width: 768px) {
  .res_spaces{
  	margin-left: -1em;
  }
}

/* News */
.top-news-youtube__container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: var(--flex-gap-normal);
}

.top-youtube__container {
  aspect-ratio: 14 / 7; /* または 16 / 9 */
  min-width: var(--min-width);
  margin: 0;
  flex: 1;
  height: auto;
}

.top-youtube__container img {
  width: 100%;
  height: auto;
}

.top-news__container {
  aspect-ratio: 14 / 7; /* または 16 / 9 */
  min-width: var(--min-width);
  margin: 0;
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-range);
  flex: 1;
  height: auto;
}

.top-news__title {
  border-bottom: 2px solid #7E7E7E;
  padding-bottom: .2rem;
  margin-bottom: .5rem;
  font-size: 2rem;
}

.top-news__inner-container {
  margin: 0 1rem;
}

.top-news__item {
  margin-bottom: 8px;
}

.top-news__item a {
  color: inherit;
}

.top-news__date {
  font-weight: bold;
}

.top-news__text {
  margin-left: 10%;
}

/* Top-Company */
.top-company__title {
  display: block;
  width: 100%;
  background-color: var(--color-main);
  color: white;
  text-align: center;
  padding: .8rem;/*.5*/
  font-weight: normal;
  margin-bottom: 5%;
}

.top-company__container {
  width: 100%;
  height: 75%;
  display: flex;
  justify-content: space-between;
  gap: var(--flex-gap-normal);
  align-items: stretch;
}

.top-company__img,
.top-company__map {
  flex: 1;
  height: auto;
  min-width: 500px;
  min-height: 400px;
}
@media (max-width: 781px) {
  .top-company__img,
  .top-company__map {
    min-width: 300px;
    min-height: 240px;
  }
}

.top-company__table {
  width: 70%;
  margin: auto;
  border: none;
}

.top-company__table table,
.top-company__table tr,
.top-company__table th,
.top-company__table td {
  font-size: 1.2rem;
  border-left: none;
  border-right: none;
}

.top-company__table th {
  width: 40%;
}


/* 
 * ============================ 各ページ ============================
 */
/* ▼ page-header に背景画像を設定する */
.page-header {
    padding: 80px 0 !important; /* 高さ調整 */
    border: none;   /* 必要なら枠線の削除 */
    background: transparent; /* 背景色を消す */
}

/* ▼ 背景画像レイヤー（既存の :before を利用） */
.page-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/images/page-title-bg.jpg');
    background-size: cover;
    background-position: center 80%;
    background-repeat: no-repeat;
    opacity: 0.7; /* 背景を少し暗く（調整可） */
    z-index: 1;
}

/* ▼ タイトルを前面に表示（重要） */
.page-header .container {
    position: relative;
    z-index: 2;
}

/* ▼ タイトル文字を白に（お好みで） */
.page-header .entry-title,
.page-header .page-title {
    font-size: 2rem !important;
    /* letter-spacing: .5rem !important; */
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.post h2,
.page h2 {
  margin-top: 2em;
  /*margin-bottom: 1em;*/
  height:2em;
}

/*.post h2::before,
.page h2::before {
  content: "";
  display: inline-block;  
  height: 2.5em;
  width: 2.5em;
  margin-right: 0.5rem;  /* 文字との間隔 */
  /*vertical-align: middle;/* 行の中央に揃える */
  /*background-image: url('./assets/images/h2-icon.png');*/
  /*background-size: contain; /* cover にしない方が文字と干渉しにくい */
  /*background-repeat: no-repeat;
  background-position: center;  
}*/

.post h3,
.page h3 {
  font-size: 1.5rem;
  margin-top: 1.5em;
  margin-bottom: 1em;
  border-bottom: 5px solid #ccc;
}

.post h4,
.page h4 {
  font-size: 1.0rem;/*1.2*/
  margin-top: 1em;
  margin-bottom: 0.7em;/*0.5*/
  font-weight:bold;
  /*border-bottom: 2px solid #ccc;*/
}

.post table,
.post table th,
.post table td {
  border: none;
}


/*==仮で非表示とする==*/
.top-news-youtube__container{
	display:none !important;
}

/*==仮で下層は準備中ページとするためCSS調整==*/
body{
	font-size: 1.2rem !important;
	color:#000000 !important;
}

th{
	font-weight:normal !important;
}

table{
	border-color:#000000 !important; 
}

.content-area{
	width:100% !important;
     border-right: none !important;
}

.junbichu-message {
    margin: 80px auto;
    max-width: 520px;
    padding: 42px 32px;
    background: #f6f9fc;
    border: 2px solid #c9def2;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.junbichu-message .title {
    font-size: 1.25em;
    font-weight: 700;
    color: #1f4f82;
    margin-bottom: 14px;
}

.junbichu-message p {
    margin: 6px 0;
    color: #444;
    line-height: 1.6;
}

#primary {
	padding-top:0px !important;
}

/*レスポンシブ*/
@media screen and (max-width: 1200px) {
	.top-imageBtn__container {
		justify-content: center;
		flex-direction: column;
	}
}

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

	.top-company__table,
	.top-company__table tbody,
	.top-company__table tr {
	    display: block;
	    width: 100%;
	}

	.top-company__table tr {
	    margin-bottom: 1rem;
	    border-bottom: 1px solid #000;
	}

	.top-company__table th,
	.top-company__table td {
	    display: block;
	    width: 100%;
	    border: none;
	    padding: 0.5rem 0;
	    box-sizing: border-box;
	    text-align:center;
	}
  
	table{
		border:none !important;
	}

}

/* PageFooter 問い合わせエリア */
.page-footerarea__btn-wrapper {
    text-align: center;
}
.page-footerarea__btn-wrapper button{
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: normal;
    background-color: white;
    margin: 5% auto;
}


/* 
 * ============================ 会社概要 ============================
 */
 /* ▼ page-header背景画像の高さ */
body.page-id-37 .page-header {
    height: 40vh;
    display: flex;
    align-items: center;
}
@media screen and (max-width: 768px) {
  body.page-id-37 .page-header {
    height: 20vh;
	}
	
  .res-mapimg img{
	width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

	.page-id-37 div.company-info__servicearea-wrapper div.leftimage{
		max-width:87% !important;
	}

}

 /* ▼ 背景画像レイヤー（既存の :before を利用） */
body.page-id-37 .page-header:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/images/company/header_corporate_img.jpg');
    background-size: cover;
    background-position: center 80%;
    background-repeat: no-repeat;
    opacity: 1; /* 背景を元に戻す*/
    z-index: 1;
}
/* ▼ タイトル文字色 */
body.page-id-37 .page-header .entry-title {
  text-align: center;
  font-weight: 500;
  color: #000;
  /*text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px #fff, 0 0 80px rgba(255, 255, 255, 0.9);*/
  text-shadow    : 
       2px  2px 6px #ffffff,
      -2px  2px 6px #ffffff,
       2px -2px 6px #ffffff,
      -2px -2px 6px #ffffff,
       2px  0px 6px #ffffff,
       0px  2px 6px #ffffff,
      -2px  0px 6px #ffffff,
       0px -2px 6px #ffffff;        /* 文字の影 */
}

/* ▼ H3文字色 */
body.page-id-37 h3 {
    color: var(--color-main);
    border-bottom: 3px solid var(--color-main);
    padding-bottom: .5em;
    font-weight: normal;
}

/* ▼ 社長挨拶エリア */
body.page-id-37 div.company-greeting__bg {
    background-color: var(--color-bg-gray);
    padding: 5% 0;
}
body.page-id-37 div.company-greeting__wrapper {
    padding: 5% 0;
}
/* ▼ 経営理念エリア */
body.page-id-37 div.company-philosophy__bg {
    background-color: var(--color-bg-blue);
    padding: 5% 0;
}
body.page-id-37 div.company-philosophy__images-wrapper {
    padding: 5%;
    align-items: center;
}
@media screen and (max-width: 768px) {
  body.page-id-37 div.company-philosophy__images-wrapper div{
      max-width:50%;
      margin: auto;
  }
}

/* ▼ 会社概要エリア */
body.page-id-37 div.company-info__bg {
    background-color: var(--color-white);
    padding: 5% 0;
}
body.page-id-37 div.company-info__table-wrapper {
    padding: 5% 0 3% 0;
}
@media (max-width: 768px) {
  body.page-id-37 div.company-info__table-wrapper {
    flex-direction: column-reverse;
  }
}
/* ▼ 会社概要テーブル */
body.page-id-37 table,
body.page-id-37 table tr,
body.page-id-37 table th,
body.page-id-37 table td
{
	border: none;
  font-size: 1rem;
}
body.page-id-37 table tr{
	border-top: 2px solid var(--color-border);
	border-bottom: 2px solid var(--color-border);
}
body.page-id-37 table th{
	width: 30%;
  vertical-align: top;
}
body.page-id-37 table td ul{
	margin: 0;
  padding: 0;
}
body.page-id-37 table td ul li{
  margin-left: 1.5em;
}
@media screen and (max-width: 768px) {
	body.page-id-37 table,
	body.page-id-37 table tbody,
	body.page-id-37 table tr,
	body.page-id-37 table th,
	body.page-id-37 table td {
	    display: block;
	    width: 100%;
	    text-align:center;
      border: none;
	}
	body.page-id-37 table tr{
    border-top: 2px solid var(--color-border);
  }
	body.page-id-37 table tr:last-child{
    border-bottom: 2px solid var(--color-border);
  }
  body.page-id-37 table td ul{
    padding-left: 0;
  }
  body.page-id-37 table td ul li {
    list-style: none;
  }
}

/* ▼ 会社概要-申請の受付可能な市町村 */
body.page-id-37 div.company-info__servicearea-wrapper {
    padding: 5% 0;
}
body.page-id-37 div.company-info__servicearea-wrapper div.leftimage{
    margin:auto;
    max-width: 40%;
}
@media (max-width: 768px) {
  body.page-id-37 div.company-info__servicearea-wrapper {
    text-align: center;
  }
}

/* 
 * ============================ お問合せ ============================
 */
/* ▼ 背景画像レイヤー（既存の :before を利用） */
body.page-id-39 .page-header:before,
body.page-id-369 .page-header:before,
body.page-id-377 .page-header:before,
body.page-id-406 .page-header:before/*add newcontact*/
{
    background-image: none;
    background-color: var(--color-main);
    opacity: 1;
}
/* ▼ タイトル文字色 */
body.page-id-39 .page-header .entry-title,
body.page-id-369 .page-header .entry-title,
body.page-id-377 .page-header .entry-title,
body.page-id-406 .page-header .entry-title/*add newcontact*/
{
  text-align: center;
  font-weight: 500;
  color: var(--color-white);
  text-shadow: none;
}
/* ▼ お問い合わせフォーム上部 */
body.page-id-39 .contact-tel__bg,
body.page-id-369 .contact-tel__bg,
body.page-id-377 .contact-tel__bg,
body.page-id-406 .contact-tel__bg/*add newcontact*/
{
  background-color: var(--color-bg-blue);
  padding: 5% 0;
}
body.page-id-39 .contact__p,
body.page-id-369 .contact__p,
body.page-id-377 .contact__p,
body.page-id-406 .contact__p/*add newcontact*/
{
  margin: 5% auto;
}
/* ▼ お問い合わせフォームテーブル */
.contact-table,
.contact-table tr,
.contact-table th,
.contact-table td
{
  border: none;
  font-size: 1rem;
}
.contact-table th {
  width: 25%;
  vertical-align: top;
}
.contact-table td textarea,
.contact-table td input
{
  width: 100%;
}
@media screen and (max-width: 768px) {
	.contact-table,
	.contact-table tbody,
	.contact-table tr,
	.contact-table th,
	.contact-table td {
	    display: block;
	    width: 100%;
	    text-align:center;
      border: none;
	}
  .wpcf7-spinner {
    display: none;
  }

  .wpcf7-form label{
    text-align: left;
    margin-left: 18px;
  }

}

/* ▼ お問い合わせフォーム画像 */
.contact-table td.contact-table__img {
  width: 30%;
  background-image: url('./assets/images/contact/uenishikun.png');
  background-repeat: no-repeat;        /* リピートなし */
  background-position: center bottom;  /* 下中央 */
}
@media screen and (max-width: 768px) {
.contact-table td.contact-table__img {
	    display: none;
	}
}

/* ▼ お問い合わせフォーム必須ラベル */
.contact-table th p {
  display: flex;
  align-items:start;
  justify-content: space-between;
  font-weight: bold;
}
span.contact-table__required {
  width: 40%;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-bg-required);
  padding: .5rem .25rem;
  margin-left: 0.5rem;
}
@media screen and (max-width: 768px) {
  .contact-table th p {
    align-items:center;
    flex-direction: row-reverse;
    justify-content: center;
    line-height:1.5rem;
  }  
  span.contact-table__required {
    width: 20%;
    line-height:1.5rem;
  }
}

/* ▼ お問い合わせフォーム確認画面 */
body.page-id-369 .contact-table td p
{
  vertical-align: top;
  font-weight: normal;
  white-space: pre-line;
}

/* ▼ お問い合わせフォーム送信ボタンエリア */
div.contact-table__submit {
  text-align: center;
}
div.contact-table__submit p {
  display: flex;
  justify-content: center;
  gap: 2%;
}
/* ▼ お問い合わせフォーム送信ボタン */
div.contact-table__submit input[type=submit]{
  color: var(--color-main);
  background-color: var(--color-white);
  border: solid 1px var(--color-main);
  font-size: 1.5rem;
  padding: .5em 5%;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease; /* ふんわり変化 */
}
div.contact-table__submit input[type=submit]:hover{
  color: var(--color-white);
  background-color: var(--color-main);
  border: solid 1px var(--color-main);
  padding: .5em 5%;
  line-height: 1;
}

/* 確認画面thanks画面共通 ======================  */
.confirm-button {
  color: var(--color-main);
  background-color: var(--color-white);
  border: solid 1px var(--color-main);
  font-size: 1.5rem;
  padding: .5em 5%;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.confirm-button:hover,
.confirm-button:focus {
  color: var(--color-white);
  background-color: var(--color-main);
}

.contact-sec1__confirm-area h2,
.contact-sec1__thanks-area h2 {
	margin: 2rem 0;
	border-bottom: 2px solid var(--color-purple);
	width: fit-content;
	margin: 2rem auto;
	padding: .5rem 2rem;
}

/*確認画面と完了画面を非表示*/
.contact-sec1__confirm-area,
.contact-sec1__thanks-area {
	display: none;
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: #d63638;
	font-size: 14px;
}

.contact-sec1__confirm-area {
  text-transform: none;
}

.contact-sec1__confirm-area td{
	font-weight:normal;
}
.kakunin-btn {
  color: var(--color-main) !important;
  background-color: var(--color-white)!important;
  border: solid 1px var(--color-main)!important;
  font-size: 1.5rem!important;
  padding: .5em 5%!important;
  line-height: 1!important;
  transition: background-color 0.3s ease, color 0.3s ease!important;
}

.kakunin-btn:hover,
.kakunin-btn:focus {
  color: var(--color-white)!important;
  background-color: var(--color-main)!important;
}

.wpcf7 form.sent .wpcf7-response-output {
    font-size: 15px;
}

@media screen and (max-width: 768px) {
	.wpcf7-not-valid-tip {
		text-align:left;
	}

	.contact-sec1__confirm-area td{
		text-align:left;
        margin-left: 11px;
	}
}

.confirm-value {
  white-space: pre-wrap; /* 改行・空白をそのまま表示 */
  word-wrap: break-word; /* 長い単語も折り返す */
}

/******/

/* ▼ お問い合わせフォーム戻るボタン */
div.contact-table__submit input[type=button]{
  color: var(--color-black);
  background-color: var(--color-bg-cancel);
  border: solid 1px var(--color-border);
  font-size: 1.5rem;
  padding: .5em 5%;
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease; /* ふんわり変化 */
}
div.contact-table__submit input[type=button]:hover{
  color: var(--color-white);
  background-color: var(--color-bg-cancel-hover);
  border: solid 1px var(--color-border);
  padding: .5em 5%;
  line-height: 1;
}
