/*   
Theme Name: aozora
Theme URI:https://www.aozora-k.co.jp/
Description:青空興業のテーマです。


Author:金浦
Author URI:https://sangodesign.jp/
Version:1.0 2025.6.20
*/

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

html {
	font-size: 100%; /* = 16pxが基準 */
	height: 100%;
	width: 100%;
	overflow-x: hidden;
}
body {
	background-color: #FFFFFF;
	color: #000000;
	word-wrap: break-word;
	font-size: 1rem; /* 16px */
	line-height: 1.6; /* 行間を広めにすると読みやすい */
	font-family: 'Lato', 'Noto Sans JP', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
	box-sizing: border-box;
}
p {
  font-size: clamp(1rem, 2.5vw, 1.125rem); /* 16px〜18pxの間で可変 */
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/* img要素の余計な余白（ディセンダー）のリセット */
img {
	vertical-align:middle;
	border: 0;
	max-width: 100%;
	height:auto;
}
/* リンクの設定 */
a {
    transition : all 0.5s ease 0s;
}

.btn a {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: 0.2s ease-in;
    transition: 0.2s ease-in;
    filter: alpha(opacity=100);
    opacity: 1;
}
.btn a:hover,
.btn a:active {
    filter: alpha(opacity=70);
    opacity: 0.70;
}
/* フォントサイズ */
.f30{
	font-size: 3.0rem;
}
.f24{
	font-size: 2.4rem;
}
.f20{
	font-size: 2.0rem;
}
.f12{
	font-size: 1.2rem;
}
.f8{
	font-size: 0.8rem;
}
.fb{
	font-weight:bold;
}
/* カラー */
.red{
	color:#C30D23;
}
.blue{
	color: #004d9f;
}
.yellow{
	color: #fcee21;
}
.gry{
	color: #8C8C8C;
}

/* 改行 */
.br-sm { display:inherit;}
.br-pc { display:none;}

/* 位置 */
.center {text-align:center !important;}
.right {text-align:right !important;}
.left {text-align:left !important;}

/* 余白 */
.mt200 {margin-top:200px;}
.mt150 {margin-top:150px;}
.mt120 {margin-top:120px;}
.mt100 {margin-top:100px;}
.mt80 {margin-top:80px;}
.mt60 {margin-top:60px;}
.mt40 {margin-top:40px;}
.mt20 {margin-top:20px;}
.mt10 {margin-top:10px;}

/* リスト */



/* header */
.header{
	background-color: #FFFFFF;
	height: 70px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); 
	position: fixed;
	z-index: 99999999;
}
.header h1{
	display: flex;
	align-items: center;
	margin-left: 40px;
}
.navi{
	display: flex;
}
nav ul{
	display: flex;
	justify-content: flex-end;
	margin-top: 25px;
}
nav ul li{
	display: inline-block;
	margin-right: 1em;	
}
nav ul li a:link,
nav ul li a:active,
nav ul li a:visited {
	color:#000000;
	text-decoration:none;
}
nav ul li a:hover,
nav ul li a:focus {
	color:#c30d23;
	text-decoration:none;
}
.mail-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0 1.2em;
	height: 40px;
	line-height: 40px;
	margin: 15px 20px 0 0;
	background-color: #004d9f;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 0.5s;
}
.mail-button a:link,
.mail-button a:active,
.mail-button a:visited {
	color:#ffffff;
	text-decoration:none;
}
.mail-button a:hover,
.mail-button a:focus {
	color:#ffffff;
	text-decoration:none;
}
.mail-button i {
	font-size: 1.2em;
}
.mail-button:hover {
	background-color: #c9171e;
	color: #ffffff;
}
.btn-job{
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 1000;
}

/* TOPイメージ */
:root{
  --header-h: 70px; /* 固定ヘッダー高さ */
}

.hero{
  position: relative;
  width: 100%;
  overflow: hidden;
  /* 文字やオーバーレイは不要なので色や内側要素は無し */
}

/* ヘッダー分だけ下げる：padding ではなく margin を使うのがポイント */
.hero--full{
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h)); /* フォールバック */
}

/* 新しいビューポート単位に対応（対応ブラウザではこちらが優先） */
@supports (height: 100dvh){
  .hero--full{ min-height: calc(100dvh - var(--header-h)); }
}
@supports (height: 100svh){
  .hero--full{ min-height: calc(100svh - var(--header-h)); }
}

/* 背景動画を全面トリミング表示 */
.hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 画面いっぱいにフィット（切り抜き） */
  object-position: center;
  pointer-events: none;  /* 背景としてクリックを無効化 */
  display: block;
}



/* 固定ヘッダーを確実に画面上端へ固定＆縦中央揃え */
:root{ --header-h: 70px; }

header{ position: relative; z-index: 100000000; } /* 念のため積層順を確保 */

.header{
  position: fixed;
  top: 0;                    /* ← これが無いとズレやすい */
  left: 0;
  right: 0;
  height: var(--header-h);
  width: 100%;
  display: flex;
  align-items: center;       /* ロゴ・ナビ・ボタンを縦中央に */
  justify-content: space-between;
  padding: 0 20px;           /* 左右余白でレイアウト */
  box-sizing: border-box;
}

/* ロゴまわりの余白は header 側で持つので margin をリセット */
.header h1{ margin: 0; }

/* ナビを縦中央へ。上マージンでの位置調整はやめる */
.navi{ display: flex; align-items: center; }

nav ul{
  display: flex;
  align-items: center;
  gap: 1em;
  margin: 0;                 /* ← 既存の margin-top:25px を打ち消す */
}

/* お問い合わせボタンも縦中央。任意で横マージンだけ */
.mail-button{ margin: 0 0 0 12px; }

/* ヒーロー（動画）はヘッダーの高さぶんだけ下げる＋高さ調整 */
.hero--full{
  margin-top: var(--header-h);                    /* ヘッダーに隠れないよう下げる */
  min-height: calc(100vh - var(--header-h));      /* 画面高 - ヘッダー高 */
}
@supports (height: 100dvh){
  .hero--full{ min-height: calc(100dvh - var(--header-h)); }
}
@supports (height: 100svh){
  .hero--full{ min-height: calc(100svh - var(--header-h)); }
}







.fullscreen {
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background:url("img/top-img.jpg") no-repeat center center / cover;
	color: #fff;
	font-size: 3rem;
	font-weight: bold;
}
.company-hero {
	background: url('img/top-company.jpg') center/cover no-repeat;
	padding: 100px 0;
	margin-top: 20px;
	color: #FFFFFF;
}
.company-heading h2 {
  line-height: 1.4;
  color: #222;
}
span.en {
	font-weight: bold;
	font-size: 4rem;
	line-height: 1;
}
span.jp {
	font-weight: bold;
	display: block;
}
.company-hero h3{
  font-size: 3rem;
}
.btn-view-more {
	margin-top: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4em 1.5em;
	border: 1px solid #fff;
	color: #fff;
	text-decoration: none;
	font-size: 1.2rem;
	transition: all 0.3s ease;
	gap: 0.5em;
}
.btn-view-more:hover {
	color: #ffed00;
	border: 1px solid #ffed00;
}
.btn-view-more .arrow {
	font-size: 1.2em;
	transition: transform 0.3s ease;
}
.btn-view-more:hover .arrow {
	transform: translateX(4px);
}
.top-wbox{
	padding: 100px 0;	
}
.top-gbox{
	background-color: #e6e6e6;
	padding: 100px 0;	
}
.top-bbox{
	background-color: #004d9f;
	padding: 100px 0;
	color: #FFFFFF;
}
.top-service{
	margin-top: 60px;
	display: flex;
	justify-content: space-between;
}
.work-card01, 
.work-card02 {
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 375px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.work-card01 {
  background: url('img/top-service01.jpg') center/cover no-repeat;
}
.work-card02 {
  background: url('img/top-service02.jpg') center/cover no-repeat;
}
.work-overlay {
  position: relative;
  z-index: 2;
}
.work-title-jp {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.work-title-en {
  font-size: 1.2rem;
  color: #fcee21;
  margin-bottom: 1.5rem;
}
.btn-view-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 2em;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  gap: 0.4em;
}
.btn-view-more:hover {
  background-color: rgba(255, 255, 255, 0.15);
}
.arrow {
  font-size: 1.2em;
  transition: transform 0.3s ease;
}
.btn-view-more:hover .arrow {
  transform: translateX(4px);
}
.top-works{
	margin-top: 60px;
	display: flex;
}
.top-works-in{
	width: 31%;
	margin: 0 3.5% 0 0;
	text-align: center;
	display: block;
}
.top-works-in:nth-child(3n){
	margin: 0 0 0 0;
}
.top-works-in p{
	margin-top: 20px;
}
a.top-works-in:link,
a.top-works-in:active,
a.top-works-in:visited {
	color:#000000;
	text-decoration:none;
}
a.top-works-in:hover,
a.top-works-in:focus {
	color:#000000;
	text-decoration:none;
}
.btn-blk-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 2em;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.3s ease;
  gap: 0.4em;
}
.btn-blk-more:hover {
	color: #c30d23;
	border: 1px solid #c30d23;
	background-color: rgba(255, 255, 255, 0.15);
}
.btn-blk-more:hover .arrow {
	color: #c30d23;
	transform: translateX(4px);
}
.top-about01{
	display: flex;
}
.top-about02{
	display: flex;
	flex-direction: row-reverse;
}
.top-about-photo{
	width: 50%;
}
.top-about-text{
	width: 50%;
	padding: 40px;
}
/* TOPページお知らせ */
.news-box{
	width: 1160px;
	background-color: #FFFFFF;
	color: #000000;
	margin-top: 40px;
	padding: 50px 100px;
	text-align: center;
}
.news-list {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: left;
}
.news-item {
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 1em;
  font-size: 1.0rem;
  margin-bottom: 0.5em;
}
.news-category {
  background-color: #004098;
  color: #fff;
  padding: 0.2em 1.5em;
  border-radius: 3px;
  font-size: 0.9rem;
}
.news-date {
  color: #000000;
}
.news-title {
	margin-top: 15px;
	font-size: 1.2rem;
	font-weight: normal;
	color: #000;
}
.news-more {
  margin-top: 20px;
}
.btn-news-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #004098;
  color: #fff;
  padding: 0.75em 1.5em;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid #004098;
  transition: 0.3s;
}
.btn-news-more:hover {
  background-color: #002e6b;
}
.btn-news-more .arrow {
  margin-left: 0.5em;
  font-size: 1.2em;
}
.news-item a:link,
.news-item a:active,
.news-item a:visited {
	color:#000000;
	text-decoration:none;
}
.news-item a:hover,
.news-item a:focus {
	color:#c30d23;
	text-decoration:none;
}
.news-excerpt a:hover {
  text-decoration: underline;
}
.news-pagination ul {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}
.news-pagination li a,
.news-pagination li span {
  display: block;
  padding: 8px 12px;
  border: 1px solid #ccc;
  color: #000;
  text-decoration: none;
  transition: all 0.2s;
}
.news-pagination li .current {
  background: #0052a4;
  color: #fff;
  border-color: #0052a4;
}
.news-pagination li a:hover {
  background-color: #eee;
}
h3.blog_title{
	font-size: 2.0rem;
	font-weight: bold;
	text-align: center;
	border-bottom: 1px solid #cccccc;
}
.blog-box{
	width: 800px;
	margin: 100px auto 0;
	text-align: left;
}

/* ベース */
.contents{
	width: 1160px;
	margin-left: auto;
	margin-right: auto;
}

/* フッター */
.footer{
	background-image: url("img/footer.png");
	background-position: top center;
	margin-top: 0px;
	padding-top: 270px;
}
.footer-under{
	background-image: url("img/footer.png");
	background-position: top center;
	margin-top: 200px;
	padding-top: 270px;
}
.footer-box{
	width: 1160px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
}
.footer-box-in{
	width: 31%;
	background-color: #FFFFFF;
	padding: 20px;
	text-align: center;
}
a.btn-blk {
	display: inline-block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	margin: auto;
	padding: 0.5rem 2rem;
	font-weight: bold;
	font-size: 0.8rem;
	border: 2px solid #000000;
	background: #000000;
	color: #fff;
	border-radius: 100vh;
	transition: 0.5s;
}
a.btn-blk:hover {
	color: #000000;
	background: #fff;
}
.footer-company{
	width: 1160px;
	margin: 120px auto 0;
	display: flex;
	justify-content: space-between;
	color: #FFFFFF;
}
.footer-company01{
	width: 40%;
}
.footer-company02{
	width: 60%;
	display: flex;
	justify-content: flex-end;
}
.footer-company02 ul{
	list-style: none;
	margin-left: 40px;
}
.footer-company02 ul li{
	list-style: none;
	margin-top: 10px;
}
.footer-company02 ul li a:link,
.footer-company02 ul li a:active,
.footer-company02 ul li a:visited {
	color:#ffffff;
	text-decoration:none;
}
.footer-company02 ul li a:hover,
.footer-company02 ul li a:focus {
	color:#c30d23;
	text-decoration:none;
}
#copy{
	width: 1160px;
	margin: 80px auto 0;
	border-top: 1px solid #FFFFFF;
}
#copy p{
	text-align: center;
	color:#ffffff;
	font-size: 0.8rem;
	padding: 20px 50px;
}

/* 下層ページ */
.page-title {
	width: 100%;
	height: 300px;
	background: url("img/title.jpg") center/cover no-repeat;
}
.contents-u{
	background-color: #fff;
	width: 1160px;
	margin: -130px auto 0;
	padding-top: 60px;
}
.contents-u span.en {
	font-weight: bold;
	font-size: 3rem;
	line-height: 1;
}
.contents-u span.jp {
	font-weight: bold;
	display: block;
}
.subtitle{
	font-size: 2.4rem;
	font-weight: bold;
	text-align: center;
}
.midashi {
	font-size: 3rem;
	font-weight: bold;
	position: relative;
	display: inline-block;
	margin-bottom: 1em;
}
.midashi:before {
	content: '';
	position: absolute;
	bottom: -15px;
	display: inline-block;
	width: 60px;
	height: 5px;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	background-color:#004d9f;
	border-radius: 2px;
}
.flex-box{
	display: flex;
	justify-content: space-between;
	margin-top: 80px;
}
.box50p{
	width: 50%;
}
.box50t{
	width: 50%;
	padding-right: 40px;
}
.flex4{
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
}
.box22{
	width: 22%;
	text-align: center;
}
.flex3{
	display: flex;
	justify-content: space-between;
	margin-top: 30px;
}
.box30{
	width: 30.666666%;
}
.box30 .komidashi{
	text-align: center;
	font-size: 1.4rem;
	font-weight: bold;
	color: #004d9f;
	margin-top: 20px;
}
.torikumi{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}
.torikumi-in{
	width: 47.5%;
	margin-top: 40px;
	margin-right: 5%;
}
.torikumi-in:nth-child(2n){
	margin-right: 0%;
}
.torikumi-in .komidashi{
	text-align: center;
	font-size: 1.4rem;
	font-weight: bold;
	color: #004d9f;
	margin-top: 20px;
}
.box-w800{
	width: 800px;
	margin: 50px auto 0;
}
.advantage{
	display: flex;
	flex-wrap: wrap;
	margin-top: 40px;
}
.advantage-in{
	width: 47.5%;
	margin-top: 60px;
	margin-right: 5%;
}
.advantage-in:nth-child(2n){
	margin-right: 0%;
}
.advantage-text{
	background-color: #004d9f;
	color: #FFFFFF;
	text-align: center;
	padding: 10px 0;
	font-size: 1.2rem;
	font-weight: bold;
	margin-bottom: 20px;
}

.box-w800mt20{
	width: 800px;
	margin: 20px auto 0;
}
table.overview{
	width: 100%;
	border: 1px solid #727172;
	border-collapse: collapse;
}
table.overview th{
	background-color: #eeeeef;
	padding: 15px 20px;
	border: 1px solid #727172;
	text-align: left;
}
table.overview td{
	padding: 15px 20px;
	border: 1px solid #727172;
	text-align: left;
}

.map-container {
	margin-top: 100px;
	width: 100%;
	height: 600px;
	position: relative;
	overflow: hidden;
}
.map-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
/* スマホ対応：高さを比率で自動調整したい場合（例: 16:9） */
@media (max-width: 768px) {
  .map-container {
    height: auto;
    padding-top: 56.25%; /* 16:9比率 */
  }
  .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }
}
.box-w800mt120{
	width: 800px;
	margin: 120px auto 0;
}

/* 施工実績 */
.works-grid {
	margin-top: 60px;
	display: flex;
	flex-wrap: wrap;
}
.works-item {
	width: 31%;
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.3s ease;
	margin: 40px 3.5% 0 0;
}
.works-item:nth-child(3n) {
	margin: 40px 0 0 0;
}
.works-img {
  overflow: hidden;
}
.works-img img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease, filter 0.5s ease;
  display: block;
  object-fit: cover;
}
.works-item:hover .works-img img {
  transform: scale(1.1);
  filter: brightness(0.7); /* ホバー時に暗くする */
}
.works-text {
  padding-top: 10px;
}
.works-year {
  font-weight: bold;
  margin: 0;
}
.works-type {
  margin: 4px 0;
  font-size: 1rem;
}
.works-company {
  font-size: 0.9rem;
  color: #555;
}
.works-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.main-image img {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.thumbnail-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5列固定 */
  gap: 10px;
  margin-top: 20px;
}
.thumbnail-list img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.thumbnail-list img:hover {
  border-color: #0070c0;
}
.works-info {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
}
.works-info th,
.works-info td {
	padding: 15px 20px;
	border: 1px solid #727172;
	text-align: left;
}
.works-info th {
	background-color: #eeeeef;
	width: 200px;
}






/* お問い合わせ */
.contact {
	margin: 20px auto 0;
	text-align: center;
	display: block;
}
.contact .contact_txt {
	text-align: left;
	display: inline-block;
}

table.form{
	margin:40px 0 0 0;
	border:none;
	width:100%;
}
table.form th{
	width: 40%;
	text-align:left;
	padding:20px;
	vertical-align: middle;
}
table.form td{
	text-align:left;
	padding:20px;
}
.formbox{
	margin-top:40px;
	text-align:center;
	padding:10px;
}


/* Contact Form 7のフォーム全体に適用 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 12px;              /* 内側の余白 */
  border: 1px solid #ccc;     /* 枠線を指定 */
  border-radius: 4px;         /* 角丸 */
  box-sizing: border-box;     /* パディング込みの幅計算 */
  margin-bottom: 16px;        /* 下マージン */
}

/* フォーカス時に枠色を強調 */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: #0052a4;
  outline: none;
}

.kisai{
	background-color: #ca3e47;
	color: #FFFFFF;
	font-size: 90%;
	padding: 5px 10px;
	display: inline-block;
	margin-right: 2em;
}
.nini{
	background-color: #0d3b60;
	color: #FFFFFF;
	font-size: 90%;
	padding: 5px 10px;
	display: inline-block;
	margin-right: 2em;
}

.wpcf_btn{
	width: 300px;
	margin: 0 auto;
}
/* — コンタクトフォーム7　送信ボタンのカスタマイズ — */
input.wpcf7-submit {
padding:1em !important;/* ボタン内の余白 */
margin:2em 0em !important;/* ボタンの上下の余白 */
background-color: #333333 !important;/* 背景の色 */
border-radius: 5px !important;/* 角を丸く*/
color: #fff !important;/* 文字の色*/
font-size: 18px !important;/* 文字の大きさ */
font-weight: bold !important;/* 文字の太さ*/
width: 100%;/* ボタンの横幅*/
transition:0.5s;/* 背景色が変わるまでの時間*/
}

input.wpcf7-submit:hover {
background-color:#c9171e !important;/* マウスを乗せたときの背景色 */
color: #fff !important;/* マウスを乗せたときの文字の色 */
}

.btn-submit {
    width: 100%;
    text-align: center;
}

/*----------------------------------------------------
    表示・非表示
----------------------------------------------------*/
.hidden {
  display: none;
  visibility: hidden;
}
.hidden-phone {
	display: inherit !important;
}


