/*
Theme Name: YOKOTSUKA_CONSTRUCTION_theme
Theme URI: http://example.com/
Author: name
Author URI: http://example.com/
Description: A custom theme for WordPress
Version: 1.0
*/


@charset "UTF-8";

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 100%;
}

body {
	color: #333333;
	font-size: 1em;
	display: none;
	font-family: sans-serif;
}

img {
	max-width: 100%;
	vertical-align: bottom;
}

li {
	list-style: none;
}

a {
	text-decoration: none;
	color: #000000;
	opacity: 1;
	transition: opacity 0.3s ease;
}

a:hover {
	opacity: 0.7;
}

.spnone {
	display: none;
}

.pcnone {
	display: block;
}

@media (max-width: 970px) {
	.spnone {
		display: block;
	}

	.pcnone {
		display: none;
	}
}

/* ============ common ============ */
:root {
	--accent-color: RGB(43, 62, 171);
	--background-color: linear-gradient(to right, RGB(70, 110, 164), RGB(1, 178, 223));
	--background-color-reverse: linear-gradient(to right, RGB(1, 178, 223), RGB(70, 110, 164));
}

section {
	margin: 0 auto;
	text-align: center;
}

.wrap {
	max-width: 1220px;
	padding: 0 2%;
	margin: 0 auto;
}

h1,
h2,
h3,
h4 {
	font-family: "Zen Maru Gothic", serif;
}

h2 {
	font-size: 2em;
	margin: 120px 0 40px 0;
}

h2 {
	color: var(--accent-color);
}

h2,
h3 {
	text-align: center;
}

h3 {
	margin: 20px 0;
	font-size: 1.6em;
}

.section_title_en,
.service_en {
	font-size: 0.7em;
	display: block;
	margin-top: -4px;
	font-weight: 400;
}


.page_title {
	color: #fff;
	font-size: 2rem;
	text-align: left;
}

.page_title_en {
	font-size: 1rem;
	display: block;
	margin-top: -4px;
}

.pagevisual_text {
	position: absolute;
	top: 10%;
	left: 10%;
	z-index: -1;
	width:90%;
}

@media (max-width: 700px) {
	.pagevisual_text {
		top: 20%;
		left: 50%;
		transform: translate(-50%, 0);
	}

	.page_title {
		text-align: center;
		font-size: 1.5rem;
	}
	h2 {
	margin: 90px 0 40px 0;
}
}

#about_contents h3,
#reform_contents h3,
#roof_repair_contents h3,
#walls_contents h3,
#works_contents h4,
#contact_contents h3 {
	color: var(--accent-color);
	margin: 0 0 20px 0;
}

#about_contents h3 {
	text-align: left;
}

#works_contents h4 {
	font-size: 1.6rem;
	display: inline-block;
	padding: 0 20px;
	border-bottom: solid 1px var(--accent-color);
}

#reform_contents h3,
#roof_repair_contents h3,
#walls_contents h3,
#works_contents h4,
#contact_contents h3 {
	text-align: center;
	line-height: 2;
}

@media (max-width: 970px) {
	#about_contents h3,
	#reform_contents h3 {
		text-align: center;
	}
}

/* ============ page_visual ============ */
#aboutvisual {
	background: url(image/corporate_about.jpg) center/cover no-repeat;
}

#reformvisual {
	background: url(image/renovation2-2.jpg) center/cover no-repeat;
}

#roof_repairvisual {
	background: url(image/roof_repair.jpg) center/cover no-repeat;
}

#walls_visual {
	background: url(image/Repainttheouterwalls2-1.jpg) center/cover no-repeat;
}

#works_visual {
	background: url(image/jisseki.1-2.webp) center/cover no-repeat;
}

#contact_visual {
	background: url(image/roof_repair.jpg) center/cover no-repeat;
}

#blog_single {
	background: url(image/roof_repair.jpg) center/cover no-repeat;
}

.page_visual {
	width: 100vw;
	height: 340px;
	margin-top: -80px;
	position: relative;
	z-index: 0;
}

.page_visual::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: RGB(70, 110, 164, 0.4);
	z-index: -1;
}



/* ============ header ============ */
#header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100vw;
	height: 70px;
	position: relative;
	z-index: 1000;
}

#header a {
	display: block;
	color: #fff;
}

#header .site_title {
	margin: 10px 0 0 10px;
}

#header .header_logo {
	width: 60px;
}

#header .company_name_update {
	font-size: 16px;
	line-height: 1.5;
	padding: 0 5px 2px 5px;
	text-align: center;
	border-bottom: solid 1px #fff;
}

#header .company_name {
	font-size: 12px;
	line-height: 1.2;
	padding-left: 5px;
}

#header .company_name_text {
	font-size: 16px;
}

#header .company_name_text_update {
	font-size: 22px;
}

#header .company_name_en {
	font-size: 9px;
}

#header .site_title {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

#header .nav_list {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

#header .nav_list>li {
	margin-left: 30px;
}

#header .nav_list>li:last-child {
	display: inline-block;
	background-color: RGB(1, 178, 223);
	width: 140px;
	height: 70px;
	line-height: 70px;
	text-align: center;
	font-weight: 600;
}

@media (max-width: 1280px) {
	#header .nav_list>li:last-child {
		display: none;
	}
}

.nav_sp {
	display: none;
}

@media (max-width: 1280px) {
	.nav_sp {
		display: block;
	}

	.nav_sp ul {
		display: flex;
	}

	.nav_sp_contact {
		display: inline-block;
		background-color: RGB(1, 178, 223);
		width: 125px;
		height: 70px;
		line-height: 70px;
		text-align: center;
		font-weight: 600;
	}

	.nav_sp_hamburger {
		background: #444444;
		width: 70px;
		height: 70px;
		padding-top: 20px;
	}

	.hamburger {
		margin: 0 auto;
		width: 40px;
		height: 25px;
		position: relative;
	}

	.hamburger span {
		position: absolute;
		width: 100%;
		height: 1px;
		background-color: #fff;
		transition: .5s;
	}

	.hamburger span:first-of-type {
		/* ハンバーガーメニューの1番目の線 */
		top: 0;
	}

	.hamburger span:nth-of-type(2) {
		/* ハンバーガーメニューの2番目の線 */
		top: 50%;
	}

	.hamburger span:last-of-type {
		/* ハンバーガーメニューの3番目の線 */
		top: 100%;
	}

	.nav_list {
		background-color: rgba(0, 0, 0, .8);
		position: fixed;
		top: 70px;
		width: 100%;
		left: 0;
		transform: translateX(100%);
		transition: .5s;
	}

	.nav_list li {
		color: #fff;
		line-height: 400%;
		text-align: center;
	}

	.hamburger.active span:first-of-type {
		/* ハンバーガーメニューの1番目の線 */
		top: 50%;
		transform: rotate(405deg);
	}

	.hamburger.active span:nth-of-type(2) {
		/* ハンバーガーメニューの2番目の線 */
		opacity: 0;
		/* 透明にする */
	}

	.hamburger.active span:last-of-type {
		/* ハンバーガーメニューの3番目の線 */
		top: 50%;
		transform: rotate(-405deg);
	}

	.nav_list.active {
		transform: translateX(0);
		padding: 20px 0;
	}

	#header .nav_list {
		display: block;
	}
}

@media (max-width: 500px) {
	#header .company_name_en {
    font-size: 8px;
}
	.nav_sp_contact {
		width: 95px;
		font-size: 13px;
    }
	
	.nav_sp_hamburger {
        width: 63px;
}
}


/* ============ mainvisual ============ */
/* メインビジュアル画像 */
#mainvisual {
	width: 100vw;
	height: 700px;
	position: relative;
	margin-top: -70px;
	z-index: 0;
	overflow: hidden; /* ビデオがはみ出さないようにする */
}

#mainvisual_video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover; /* 動画が全体をカバーするように調整 */
	z-index: -1;
	filter: brightness(75%);/* 暗くする *//* 0922追加 */
}

/* メインビジュアルはここまで */

.main_img {
	z-index: 3;
	opacity: 0;
	width: 100%;
	height: 680px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	position: absolute;
	left: 0;
	top: 0;
}

#mainvisual .mainvisual_text {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	width: 550px;
	height: auto;
	/*background: rgba(255, 255, 255, 0.8);*//* 0922追加 */
	z-index: 10;
	padding: 40px;
	font-size: 2rem;
	font-family: "Zen Maru Gothic", serif;
	font-weight:500;
	color: #fff;/* 0922追加 */
	letter-spacing: 0.1em;/* 0922追加 */
}

#mainvisual .mainvisual_sub_text {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	width: 400px;
	height: auto;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10;
}

#mainvisual .site_title {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px 0;
	color: #fff;
}

#mainvisual .header_logo {
	max-width: 70px;
}

#mainvisual .company_name {
	font-size: 1rem;
	line-height: 1.2;
	padding-left: 10px;
}

#mainvisual .company_name_text {
	font-size: 1.6rem;
}

#mainvisual .company_name_en {
	font-size: 0.9rem;
}


@media (max-width: 700px) {
	#mainvisual .mainvisual_text {
		position: absolute;
		left: 50%;
		transform: translate(-50%, 0);
		width: 80%;
	}
}

@media (max-width: 500px) {
	#mainvisual .mainvisual_sub_text {
		width: 90%;
	}
	
	#mainvisual {
    height: 90vh;
	}
	
	#mainvisual .mainvisual_text {
	top: 40%;
    padding: 20px 0;
    font-size: 1.4rem;
    text-align: center;
	width: 100%;
	}
}



/* ============ about ============ */
#about .wrap {
	padding: 0 2%;
	margin: 0 auto;
}
#about h2 {
	margin: 0 0 20px 0;
	text-align: left;
	padding-left: 50px;
}

#about .about_container {
	margin-top: 100px;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 20px;
}

#about img {
	width: calc(50% - 20px);
}

#about .about_text {
    width: calc(50% - 20px);
}

#about .about_nobackground {
	padding-left: 50px;
	margin-bottom: 12px;
}

#about .about_text_background {
	background: var(--background-color-reverse);
	padding: 30px 50px 88px;
	color: #fff;
	max-width: 560px;
}

/* ボタンは右寄せ（任意）。中央にしたいなら float を外して margin で調整 */
#about .about_linkbtn {
    float: right;
    background: #fff;
    padding: 6px 70px;
	margin-top: 20px;
}


@media (max-width: 970px) {
	.flex-container {
		display: block;
		position: static;
	}

	#about h2 {
		margin: 0 0 20px 0;
		text-align: center;
		padding-left: 0;
	}

	#about .about_container {
		flex-direction: column;
	}
	
	#about img {
		width: 100%;
	}
	
	#about .about_text {
		width: 100%;
	}
	
	#about .about_nobackground {
		padding: 0 20px;
	}
	
	#about .about_text_background {
		padding: 30px 20px 88px;
	}

	#about .about_linkbtn {
		position: static;
		width: 100%;
		margin-top: 30px;
		text-align: center;
	}
}

/* ============ service ============ */
#service .service_container {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* すべて同じ高さに揃える */
}

#service li {
  max-width: 307px;
  display: flex;
  flex-direction: column; /* 縦並びにする */
  background: var(--background-color); /* 青背景をliに持たせる */
  padding: 20px;
  border-radius: 4px; /* お好みで */
}

#service .service_inner {
  flex: 1; /* 中身を縦方向に広げる */
  display: flex;
  flex-direction: column;
}

#service dd {
  flex: 1;
  margin-bottom: 20px;
  color: #fff !important;
  text-align: left;
  padding-left: 10px; 
}

#service .service_inner h3{
	color: #fff !important;
}

#service .service_linkbtn {
  display: block;
  background: #fff;
  padding: 6px 70px;
  text-align: center;
  margin-top: auto; /* 下に押し下げる */
}


@media (max-width: 970px) {
	#service {
		position: static;
		height: auto;
	}

	#service .service_container {
		flex-direction: column;
		margin: 0 auto;
		height: auto;
	}

	.service_inner {
		margin: 0 auto;
		font-size: 1em;
	}

	#service li {
		max-width: 100%;
		position: relative;
		z-index: 1;
		margin-bottom: 70px;
	}
	
	#service li:last-child {
        margin-bottom: 0px;
    }

	#service li::before {
		content: "";
		position: absolute;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: 450px;
		background: var(--background-color);
		z-index: -1;
	}

	#service::before {
		display: none;
	}

	#service .service_inner img {
		height: auto;
		width: 70%;
	}

	#service dd {
		width: 70%;
		margin: 0 auto;
	}

	#service .wrap {
		padding: 0;
	}

	#service .service_linkbtn {
  display: block;          /* inline-block → block に */
  background: #fff;
  padding: 6px 0;
  width: 70%;              /* ボタン幅はそのまま */
  margin: 20px auto 70px;  /* auto で左右中央寄せ */
  text-align: center;      /* 文字も中央揃え */
}

}

#service .service_inner img {
    width: 90%;       /* 横幅はお好みで調整 */
    height: auto;
    display: block;   /* ブロック化して中央寄せ */
    margin: 0 auto;   /* 中央寄せ */
  }


/* ============ works ============ */
#works {
	margin-bottom: 100px;
}

#works .works_container {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 50px;
}

#works .works_text {
	line-height: 1.5;
}

#works .works_inner img {
	object-fit: cover;
	height: 260px;
}

#works .works_linkbtn {
	display: inline-block;
	background: var(--background-color);
	color: #fff;
	padding: 6px 0;
	width: 350px;
	margin-top: 60px;
}

@media (max-width: 970px) {
	#works .works_container {
		display: block;
	}

	#works .works_inner img {
		height: auto;
		max-width: 80%;
	}

	#works .works_inner {
		margin-bottom: 30px;
	}

	#works li:last-child {
		margin-bottom: 0;
	}
}

/* ============ footer ============ */
#footer {
	font-family: "Zen Maru Gothic", serif;
	text-align: center;
}


#footer .contact {
	background: url(image/contact.jpg) center/cover no-repeat fixed;
	position: relative;
	z-index: 1;
	height: 300px;
	color: #fff;
}

#footer .contact::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: RGB(70, 110, 164, 0.8);
	z-index: -1;
}

#footer .contact_title {
	margin: 0;
	padding-top: 40px;
	color: #fff;
}

#footer .contact_inner {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 60px;
	margin: 40px 0;
}

#footer .contact_linkbtn {
	display: inline-block;
	background: #fff;
	padding: 16px 0;
	width: 350px;
	border-radius: 50px;
}

.footer_bottom_inner {
	display: flex;
	justify-content: space-evenly;
	align-items: center;
	margin: 40px 0;
}

.footer_bottom ul {
	display: flex;
	align-items: center;
	text-align: left;
}

.footer_bottom_inner_left li:last-child,
.footer_bottom_inner_right li:last-child {
	padding-left: 20px;
}

.footer_map_btn {
	display: inline-block;
	background: var(--background-color);
	color: #fff;
	padding: 8px 50px;
	border-radius: 50px;
}

.footer_bottom_text span {
	font-size: 1.8rem;
	line-height: 1;
}

.footer_logo {
	max-width: 140px;
}

.footer_copyright {
	background: #333333;
	color: #fff;
	padding: 24px 0;
}

@media (max-width: 750px) {
	#footer .contact {
		height: 350px;
	}

	#footer .contact_inner,
	.footer_bottom ul {
		display: block;
		text-align: center;
	}

	#footer .contact_inner li {
		margin-bottom: 30px;
	}

	.footer_bottom li {
		max-width: 300px;
		margin: 20px auto;
	}

	.footer_bottom_inner_left li:last-child,
	.footer_bottom_inner_right li:last-child {
		padding-left: 0;
	}

	.footer_bottom_text {
		line-height: 1.2;
		text-align: left;
	}

	.footer_bottom_text span {
		font-size: 2rem;
	}

	.footer_map_btn {
		width: 100%;
	}
}

/* スクロール固定ナビ */
#fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #fff;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.4s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}
#fixed-header a {
	color: #fff;
}

#fixed-header .company_name {
	color: #333;
}

#fixed-header nav ul.nav_list li:last-child a {
  color: #ffffff;
}

#fixed-header .nav_sp_contact a {
	color: #ffffff;
}

#fixed-header.show {
  transform: translateY(0);
}

.fixed-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

body.scroll-padding {
  padding-top: 70px; /* 固定ナビの高さ分 */
}

#nav_fixed a {
	color:#333;
}

@media (max-width: 1280px) {
	#nav_fixed a {
	color:#fff;
}
}


