/* --- Reset & Base --- */
@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
	scroll-padding-top:150px;
}
body {
	font-family: 'Noto Sans JP', sans-serif;
	line-height: 1.6;
	color: #403c3a;
	background-image: url(image/kage.jpg);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    text-decoration: none;
	color: #403C3A;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #6d90a6;
}
.logo img{
	max-width: 80px;
}
.section-title.white {
    color: #fff;
}
.btn-main {
    background-color: #6d90a6;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-block;
    font-weight: bold;
}

.btn-line {
    background-color: #00b900;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-block;
    font-weight: bold;
}
.header {
    background: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav ul {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #333;
    font-size: 0.9rem;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
	margin-left: 10px
	
}

.header_wrapper{
	display: flex;
	align-items: center
	
}

.tel-link {
    color: #6d90a6;
    background-color: #6d90a6;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    display: inline-block;
    font-weight: bold;
}

/* --- Hero Section --- */

.hero {
position: relative;
width: 100%;
min-height: 90vh; /* 画面の高さの90%程度を確保 */
display: flex;
align-items: center;
padding: 0 10%;
box-sizing: border-box; /* ★ここのファイル名を実際の写真名に合わせてください */
background-size: cover;    /* 画像を画面いっぱいに広げる */
background-position: center; /* 画像の中央を表示 */
background-repeat: no-repeat;
background-image: url(image/mainimage.png);
background-color: #FFFFFF;
	opacity: 0;
	animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn{
	from{
		opacity: 0;
	}
	to{
		opacity: 1;
	}
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2; /* 背景の暗い膜より上に文字を出す */
    color: #fff; /* 文字色を白に */
}

.hero-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 30px;
line-height: 1.2;
text-shadow: 0px 0px 25px #3D3B3B;
}

.hero-title ruby{
font-size: 110px;
color: #bf9e80;
text-shadow: 0px 0px 25px #3D3B3B;
}

.hero-title ruby rt{
font-size:24px;
color:#FFFFFF;
letter-spacing: -15px;
text-shadow: 0px 0px 25px #3D3B3B;
}
.hero-subtext h4 {
font-size: 1.2rem;
line-height: 1.8;
font-weight: 500;
margin-bottom: 20px;
text-shadow: 0px 0px 25px #3D3B3B;
font-weight: bold;
font-style: normal;
text-align: left;
}

.hero-badge{
margin-bottom: 30px;
margin-right: 30px;
border-radius: 20px;
overflow: hidden;
padding: 10px 0 0 10px
}

.hero-badge__text{
font-size: 24px;
font-weight: bold;
color: #1a355e;
display: flex
}

.hero-badge__text span{
font-size: 40px;
color: #fdfd96;
}

.hero-badge .contact{
position: absolute;
right: 10px;
bottom: 15px;
background: #d9d0c7;
border-radius: 10px;
padding: 10px;
font-size: 16px;
}

.btn-main-small{
color:#FFFFFF;}

.hero-badge__icon img{
max-width: 170px
}
/* --- 第二ナビゲーション（連結タブスタイル） --- */
.service-tabs {
    background-color: #6d90a6;
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

.tab-group {
    display: flex;
    max-width: 1100px; /* 全体の横幅 */
    margin: 0 auto;
    padding: 0;
    list-style: none;
    border-radius: 8px; /* 両端を少し丸くする場合 */
    overflow: hidden;   /* 角丸からはみ出さないように */
}

.tab-group li {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.3); /* 項目間の区切り線 */
}

.tab-group li:last-child {
    border-right: none;   
}

.tab-group li {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #6d90a6; /* カンプのブルーグレー */
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    height: 70px; /* 高さの調整 */
    text-align: center;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.tab-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tab-menu li {
    padding: 25px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    border-right: 1px solid #eee;
}

.tab-menu li.active {
    background: #6d90a6;
    color: #fff;
}

/* ホバー時の色変化 */
.tab-group a:hover {
    background-color: #5a7a8e;
}
.section-title.first-section img{
	max-width:80px;
}
.naminami{
	margin-top: -4rem;
	margin-bottom: 2rem;
	text-align: center
}
.section-intro{
	text-align: center;
	margin-bottom: 2rem
}

/* --- Strengths --- */
.strengths { padding: 20px 0; }
.section-lead { text-align: center; margin-bottom: 20px; font-size: 1.1rem; }

.strength-item {
    display: flex;
    align-items: center;
    gap: 5%;
    margin-bottom: 20px;
}

.strength-item.reverse { flex-direction: row-reverse; }
.strength-img{
	max-width: 100%;}
.strength-img, .strength-text { flex: 1; }
.step-num { font-size: 3rem; color: #bf9e80; font-weight: bold; }
.strength-text{
	background: #d9d0c7;
	margin: 20px;
	padding: 30px;
	border-radius: 10px;
	color: #403c3a
}
.strength-text h3 { font-size: 1.8rem; margin-bottom: 15px; color: #403c3a; }
.strength-text h3 span{
	color: #6d90a6;
}
/* --- 実績テキストのスタイル（参考） --- */
.achievement-text {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0;
    color: #403c3a;
	margin-top: -2rem
}
.achievement-text img{
	max-width: 80px;
	margin-right: 95px;
	margin-bottom: -2.5rem
}
.achievement-text span {
    font-size: 3.5rem;
    color: #6d90a6; /* 数字だけ色を変える場合 */
}
.naminami {
	margin-top: -3rem;
	margin-bottom: 2rem;
	text-align: center
}
/* --- Check Section --- */
.check-section { background-color: #6d90a6; padding: 15px 0; }
.check-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}
.check-card { background: #fff; padding: 20px; text-align: center; border-radius: 10px; }
.check-card p { margin-top: 15px; font-weight: bold; }
.check-card h2 {
	color: #6d90a6
}

.check-footer {
	background-color: rgba(215,223,228,0.50);
	display: flex;
	padding: 40px;
	border-radius: 15px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px
}
.check-footer-img{
	max-width: 125px;
}
/* --- Risk Section --- */
.section-title {
	margin-top: 35px;
}
.risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.risk-panel {
    background-color: #bf9e80;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
	text-align: center;
	margin-bottom:30px
		
}
.risk-panel h3 { margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 10px; }

/* --- Cases (施工事例) --- */
.cases-section { background-color: #6d90a6; padding: 80px 0; }
.case-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.area-title{
	color:#FFFFFF;
	font-size: 20px
}
	
.before, .after { position: relative; width: 45%; }
.before span, .after span {
    position: absolute; top: 0; left: 0; background: rgba(0,0,0,0.6); color: #fff; padding: 5px 15px;
}
.arrow { font-size: 2rem; color: #6d90a6; }
.case-before, .case-after{
	max-width: 400px}

/* --- Q&Aセクション --- */
.qa-section {
	padding: 100px 0; /* カンプに合わせて上下余白を広めに */
	background-image: url(image/1594384.png);
	background-repeat: repeat-x;
	background-position: 0%
%;
	background-position: 0% 110%;
}

.qa-list {
    max-width: 600px; /* バーの長さをカンプのバランスに合わせる */
    margin: 0 auto;
}

.qa-item {
    margin-bottom: 40px; 
    text-align: left;
}

.qa-q {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px; /* 回答バーとの距離 */
    letter-spacing: 0.05em;
}

/* 回答（A）のデザイン：ベージュの細長い角丸パネル */
.qa-a {
    display: inline-block;
    background-color: #d9d0c7; /* 指定のベージュ */
    color: #333;
    padding: 12px 60px;        /* 上下を絞り、左右を広げて「細長いバー」に */
    border-radius: 20px;      /* 完全に丸い両端（カプセル形） */
    width: auto;
    min-width: 600px;          /* PCでのバーの最小長さを確保 */
    max-width: 100%;           /* 画面からはみ出さないように */
    line-height: 1.7;
    font-weight: 500;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}
.footer {
	background-color: #f4f4f4;
	padding-top: 15px;
	padding-bottom: 120px; /* 余白は固定バー分確保 */
	position: relative;
}

.footer-content {
    justify-content: space-between;
}
.footer-info{
	text-align: center;
	margin-bottom: 20px
}
.footer-info img{
	max-width: 200px
}
.footer-nav ul {
    display: flex;
    gap: 10px;
	justify-content: center
}
.footer-nav ul ul{
	display: block;
	border-left: 1px solid #000;
	padding-left: 5px;
	margin-left: 5px;
	white-space: nowrap;
}
.footer-nav a{
	color: 
}
.footer-fixed-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 1000;
}

.fixed-tel, .fixed-line {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: #fff;
    font-weight: bold;
}

.fixed-tel { background-color: #6d90a6; }
.fixed-line { background-color: #00b900; }

.gotop {
    position: fixed;
    right: 20px;
    bottom: 65px;
    background: #6d90a6;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


.qa-a:hover {
    transform: translateY(-2px);
}
.hero-badge {
	position: absolute;
	z-index: 1;
	bottom: 0px;
	right: 0px;
	background-color: #6d90a6;
}

@media (max-width: 768px) {
    .header-contact {
		display: none;
	}
	 nav {
  position: fixed;
  top: 0;
  left: 100%  /* 0から変更  */;
  transition: 0.5s;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  padding-top: 100px;
  height: 100%;
  padding-bottom: 50px;
  overflow: auto;
  z-index: -1;
}
	.menu-open nav {
	left: 0;
}
    .nav-button {
		display: block;
		width: 30px; 
		height: 25px; 
		position: relative;
	}
    .nav-button span {
        position: absolute; 
		width: 100%;
		height: 2px; 
		background: #333;
		left: 0; 
		transition: 0.3s;
    }
    .nav-button span:nth-child(1) { top: 0; }
    .nav-button span:nth-child(2) { top: 11px; }
    .nav-button span:nth-child(3) { top: 22px; }
.menu-open .nav-button span:nth-child(1) {
  top: 24px;
  transform: rotate(315deg);
}

.menu-open .nav-button span:nth-child(2) {
  width: 0;
  left: 50%;
}

.menu-open .nav-button span:nth-child(3) {
  top: 24px;
  transform: rotate(-315deg);
}
	.nav-button span {
	transition: 0.3s;
}
	.nav ul{
		flex-direction: column;
		align-items: center;
		gap:40px;
	}
	.nav a{
		font-size: 24px;
	}
    .hero {
    height: auto;
    padding: 100px 20px; 
    text-align: center; 
    }
    .hero-title {
    font-size: 2.2rem;
    text-align: left;
    }
    .hero-title rt, .hero-subtext br {
    display: none;
    }

    .hero-btns { 
    display: none;
    }
	
	.achievement-text img{
		margin-left: 182px;
		margin-bottom: -60px
	}
    .tab-menu {
		grid-template-columns: 1fr 1fr;
	}
    .strength-item, .strength-item.reverse {
		flex-direction: column; 
		text-align: center; 
	}
    .check-grid, .risk-grid { 
		grid-template-columns: 1fr;
	}
	.check-footer {
		flex-direction: column;
	}
	.check-footer-text br{
		display: none;
		
	}
    .case-item {
		flex-direction: column; 
	}
    .before, .after {
		width: 100%; 
	}
    .arrow {
		transform: rotate(90deg);
	}
	.case-arrow{
		transform: rotate(90deg)
	}
	.qa-section {
        padding: 60px 0;
    }

    .qa-list {
        padding: 0 20px;
    }

    .qa-q {
        font-size: 1rem;
        text-align: left; /* スマホでは左寄せの方が見やすい場合があります */
        padding-left: 10px;
    }

    .qa-a {
        min-width: 100%; /* スマホでは横幅いっぱいに */
        padding: 15px 20px;
        border-radius: 15px; /* スマホでは角丸を少し控えめにすると読みやすい */
        text-align: left;
        font-size: 0.95rem;
    }
	.tab-group {
        flex-wrap: wrap;
        border-radius: 0;
    }
    
    .tab-group li {
        flex: 0 0 50%; /* スマホでは2列で繋げる */
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .tab-group li:nth-child(even) {
        border-right: none; /* 右側のカラムの線を消す */
    }
    
    .tab-group a {
        height: 60px;
        font-size: 1rem;
    }
    .footer-nav{
		display: flex;
		position: static;
		background-color: transparent;
		padding-top: 0;
	}
    .footer-fixed-bar {
		display: flex; 
	}
	.footer-nav ul {
     flex-wrap: wrap;
     justify-content: flex-start;
	 gap:20px
    }
	.fixed-tel, .fixed-line {
    flex: 1;
    text-align: center;
    padding: 15px;
    color: #fff;
    font-weight: bold;
    }

.fixed-tel { background-color: #6d90a6; }
.fixed-line { background-color: #00b900; }

.gotop {
    position: fixed;
    right: 20px;
    bottom: 65px;
    background: #6d90a6;
    color: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hero-badge {
	display: none;
}
}
