/* レスポンシブ対応の基本スタイル */
body, html {
    margin: 0;
    padding: 0;
    font-family:"Helvetica Neue",
    Arial,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo,
    sans-serif;
    line-height:1.8;
}

html{
    scroll-behavior: smooth;
}

a,a:hover,a:visited{
    color: inherit;
}

h1,h2,h3,h4,h5,ul,li{
    margin:0;
    padding:0;
}

.marker{
    background:linear-gradient(transparent 60%, #ff6 60%);
}

h2,h3,h4{
    font-family:"ヒラギノ丸ゴ Pro W4","ヒラギノ丸ゴ Pro","Hiragino Maru Gothic Pro","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO";
}

h2{
    font-size:1.8em;
}

h3.section-title{
    text-align: center;
    position: relative;
    z-index: 2;
    font-size: 1.8em;
    margin-bottom:50px;
}

h3.section-title:before{
    content: '';
    position: absolute;
    bottom: -15px;
    display: inline-block;
    width: 60px;
    height: 5px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: #8fc31f;
    border-radius: 2px;
}


#main-visual{
    position: relative;
}

.hero-image {
    background-image: url('assets/img/hero-img.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding:15px;
}

.hero-image img{
    width:100%;
    max-width: 780px;
    margin:0 auto;
}

.catch-copy{
    position: absolute;
    bottom:0;
    padding:30px;
    background-color:rgba(0, 143, 67, 0.8);
    width:100%;
    text-align: center;
    color:#fff;
    font-size: 1.5em;
    font-weight: 900;
    box-sizing: border-box;
}


/* ヘッダーとナビゲーション */
header {
    display: flex;
    position: fixed;
    width: calc(100% - 40px);
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    color:#0faf4c;
    z-index: 99;
}

header > :first-child{
    margin-right: auto;
}

.menu-toggle {
    display: none; /* デフォルトでは非表示 */
}

.menu{
    display: none;
}

.pc-nav ul{
    display: flex;
    list-style: none;
}

.pc-nav ul li{
    margin:0 20px;
}

.pc-nav ul li a{
    font-weight: 600;
    color:#333;
    text-decoration: none;
    position: relative;
}

.pc-nav ul li a::after {
    /*アンダーラインのスタイル*/
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: #0faf4c;
    bottom: -15px;
    left: 0;
    /*横方向0で非表示にする*/
    -webkit-transform: scale(0, 1);
    transform: scale(0, 1);
    /*中央を基点にアニメーション*/
    -webkit-transform-origin: center top;
    transform-origin: center top;
    /*アニメーションの速度設定*/
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
  }
  .pc-nav ul li a:hover::after {
    /*横方向等倍まで拡大*/
    transform: scale(1, 1);
  }


/* レスポンシブ対応 */
@media (max-width: 768px) {

    .pc-nav{
        display: none;
    }

    .menu {
        display: block;
        position: absolute;
        top: 111px; /* ヘッダーの下に表示されるように調整 */
        left: 0;
        width: 100%;
        list-style: none;
        margin:0;
        transform: translateY(-100%);
        transition: transform 0.5s ease, opacity 0.5s ease; /* アニメーション適用 */
        z-index: 100;
        background-color: #fff;
        color: rgb(16, 133, 78);
        visibility: hidden; /* 初期状態では見えない */
        opacity: 0; /* 初期状態では透明 */
    }
    
    .menu.is-active {
        transform: translateY(0); /* スムースに下りてくるアニメーション */
        visibility: visible; /* 表示状態に */
        opacity: 1; /* 不透明に */
    }
    
    .menu li a {
        text-decoration: none;
        padding: 15px;
        display: block;
        font-size:1.2em;
        font-weight: 900;
        text-align: center;
    }
    
    .menu-toggle {
        cursor: pointer;
        height: 24px; /* ボタンのサイズを調整 */
        width: 30px; /* ボタンのサイズを調整 */
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        background: none; /* ボタンの背景色を透明にする */
        border: none; /* ボタンの境界線を削除 */
        padding: 0; /* パディングをリセット */
        margin: 0; /* マージンをリセット */
        outline: none; /* フォーカス時のアウトラインを削除 */
    }
    
    .burger {
        content: '';
        background-color: #0faf4c; /* ラインの色 */
        height: 4px; /* ラインの厚さ */
        width: 30px; /* ラインの長さ */
        position: relative; /* 中央のラインに対する変更 */
        /*top: 50%;  親要素内で垂直中央に配置 */
        transform: translateY(-50%); /* 自身の高さの半分だけ上に移動して完全に中央に来るように調整 */
        transition: all 0.3s ease;
    }
    
    .burger::before, .burger::after {
        content: '';
        background-color: #0faf4c; /* ラインの色 */
        height: 4px; /* ラインの厚さ */
        width: 30px; /* ラインの長さ */
        position: absolute; /* 絶対位置指定 */
        left: 0; /* 左端から配置 */
    }
    
    .burger::before {
        top: -10px; /* 上のラインの位置 */
        transition: all 0.3s ease;
    }
    
    .burger::after {
        top: 10px; /* 下のラインの位置 */
        transition: all 0.3s ease;
    }
    
    .menu-toggle.is-active .burger {
        background-color: transparent; /* アクティブ時は中央のラインを非表示 */
    }
    
    .menu-toggle.is-active .burger::before, .menu-toggle.is-active .burger::after {
        top: 0;
        transform: translateY(-50%) rotate(45deg); /* 上のラインを45度回転 */
    }
    
    .menu-toggle.is-active .burger::after {
        transform: translateY(-50%) rotate(-45deg); /* 下のラインを-45度回転 */
    }

}


/*ヘッダー*/

.logo{
    max-width: 150px;
}

.logo img{
    width: 100%;
}

.logo h1{
    font-size:0.6em;
    margin:0;
    text-align: center;
    white-space: nowrap;
}


/* ニュースセクション */
#news {
    background-color: #ffffff;
    width: 100%;
    padding:100px 0;
}

.news-wrapper{
    padding:0 20px;
    max-width:680px;
    color: #000000;
    margin:0 auto;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-list li {
    padding: 10px 0;
    border-bottom: dotted 1px #ccc;
}

.news-list li:first-child {
    border-top: none;
}

.news-list li:last-child {
    border-bottom: none;
}

/* アバウトセクション */

#about{
    width: 100%;
    padding:100px 0;
    background-color: rgb(16, 133, 78);
    color:#ffffff;
}

.about-wrapper{
    max-width: 680px;
    width:100%;
    margin:auto;
    text-align: center;
    padding:0 20px;
    box-sizing: border-box;
}

.about-wrapper ul{
    list-style: none;
    font-weight:600;
}

#about h4{
    font-size:1.5em;
    margin-bottom:30px;
}

@media (max-width: 768px) {

    .about-wrapper{
        text-align: left;
    }

}


/* 事業内容セクション */

#services{
    width: 100%;
    padding:100px 0;
}

.parallax{
    height: auto;
    background:url(assets/img/section2.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-position:top center;
}


.service-catch{
    max-width: 980px;
    width: calc(100% - 50px);
    padding:0 25px;
    margin:auto;
}

#services h3{
    font-size: 1.8em;
    text-align: center;
}

.slider-title{
    width: 100%;
    text-align: center;
    margin-top:51px;
}

.slider-title h4{
    color: #fff;
    background-color: #000000;
    padding:6px 12px;
    border-radius: 10px;
    display: inline-block;
    font-size:1.3em;
}

.service-cards{
    max-width: 980px;
    width: 100%;
    margin:auto;
}

.card{
    width: 100%;
    padding:30px;
}

.card-wrapper{
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: auto;
    padding:10%;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
}

.card-img{
    display: flex;
    justify-content:space-between;
}

.card-img img{
    width: calc(50% - 10px);
}

.card-txt{
    width: 100%;
    margin:auto;
}

.card-txt h4{
    text-align: center;
    margin:20px;
}


  /**Slick Arrow*/

  .slick-prev {
    left: 5px !important;
    }
    
    .slick-next {
    right: 5px !important;
    }
    
     /*矢印の色を変更*/
    
    .slick-prev:before,
    .slick-next:before {
        color: #333 !important;
    }
    
     /*下に潜っているかもしれない画像の上に矢印を持ってくる*/
    
    .slick-prev,
    .slick-next {
        z-index: 100;
    }
    
/** 企業理念セクション **/

#philosophy{
    width: 100%;
    padding:100px 0;
    background-color: rgb(16, 133, 78);
    color:#ffffff;
}

.subsec-wrapper{
    width: 100%;
    max-width: 980px;
    margin:auto;
    display: flex;
}

.subsec-title{
    width: 30%;
    position: relative;
}

.subsec-content{
    width: 70%;
}

.subsec-title h3{
    font-size: 1.8em;
    margin-bottom:30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);

}

.subsec-content h4{
    font-size: 1.5em;
}

/** 会社概要セクション **/

#company{
    width: 100%;
    padding:100px 0;
}

.company-info dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 0px;
  }

  
@media (min-width: 769px) {/* PC表示時のdtとddの幅 */
    .company-info dl {
      grid-template-columns: 2fr 5fr; /* dt25%、ddの75% */
    }
  }
  
  .company-info dt, .company-info dd {
    margin: 0;
    padding: 20px 10px;
    border-bottom: 1px dotted #ccc;
    position: relative; 
  }

  .company-info dt{
    font-weight: 900;
  }
  
  .company-info dt::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background-color: #ccc;
  }


  .company-info dd:last-of-type,.company-info dt:last-of-type {
    border-bottom: none; /* 最後のddにはボーダーを追加しない */
  }


/** 施工責任者セクション **/

#team{
    width:100%;
    background-image: url(assets/img/team-section.jpg);
    background-size: cover;
    background-position: bottom;
    padding:100px 0;
    position: relative; 
}

#team::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0); /* 半透明の白色 */
    z-index: 0; /* オーバーレイを背景より前、内容より後ろに表示 */
}

.team{
    position: relative;
    z-index: 1;
    width:100%;
    max-width:980px;
    margin:auto;
}

.staff{
    width:calc(50% - 30px);
    margin:5px;
}
.staff-wrapper{
    display: flex;
    flex-direction: column;
    padding:15px;
    border-radius: 20px;
    background-color: #fff;
    width: 80%;
    margin:auto;
}

.staff-img img{
    width: 100%;
    border-radius: 10px;
}

.staff-txt{
    padding:15px;
}

.position{
    font-size: 0.9em;
}

/** フッターセクション **/

footer{
    width:100%;
    background-color: rgb(16, 133, 78);
    padding:30px 0 15px 0;
    color:#fff;
}

.footer-wrapper{
    width: 100%;
    max-width: 980px;
    margin:auto;
}

.footer-company{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom:35px;
    align-items:end;
}

.footer-logo{
    width: 256px;
}

.footer-logo p{
    font-size: 0.8em;
    margin: 0;
}

.footer-logo img{
    width: 80%;
}

.footer-access{
    display: inline-block;
}

.tel p{
    margin:0;
}

.tel a{
    font-size:2em;
    font-weight:900;
    text-decoration: none;
}

.footer-nav{
    width:100%;
    margin:auto;
}

.footer-nav ul{
    width: 100%;
    list-style: none;
    padding:0;
    margin:0;
    display: flex;
    justify-content:center;
}

.footer-nav ul li{
    margin:5px 30px;
}

.copylight{
    background-color: #00370f;
    color:#fff;
    text-align: center;
}

/** お問合せフォーム **/

.Required{
    background-color: #c92752;
    color:#fff;
    font-size:0.8em;
    padding:3px 5px;
    border-radius: 5px;
    
}

#formWrap {
	width:700px;
	margin:0 auto;
	color:#555;
	font-size:90%;
    padding:150px 0 100px 0;
}
table.formTable{
	width:100%;
	margin:0 auto;
	border-collapse:collapse;
}
table.formTable td,table.formTable th{
	border:1px solid #ccc;
	padding:10px;
}
table.formTable th{
	width:30%;
	font-weight:normal;
	background:#efefef;
	text-align:left;
}
/*　簡易版レスポンシブ用CSS（必要最低限のみとしています。ブレークポイントも含め自由に設定下さい）　*/
@media screen and (max-width:572px) {
#formWrap {
	width:95%;
	margin:0 auto;
}
table.formTable th, table.formTable td {
	width:auto;
	display:block;
}
table.formTable th {
	margin-top:5px;
	border-bottom:0;
}
form input[type="text"], form textarea {
	width:80%;
	padding:5px;
	font-size:110%;
	display:block;
}
form input[type="submit"], form input[type="reset"], form input[type="button"] {
	display:block;
	width:100%;
	height:40px;
}
}

@media (max-width: 768px) {
    /* タブレットやスマートフォン向けのレスポンシブ対応 */

    .catch-copy{
        font-size: 1.1em;
    }

    #services{
        background-position: right 30% bottom 50%;
    }

    .card-img{
        flex-direction: column;
    }

    .card-img img{
        width: 100%;
        margin:5px auto;
    }
    
    .subsec-wrapper{
        flex-direction: column;
    }

    .subsec-title{
        width: 100%;
        text-align: center;
    }

    .subsec-title h3{
        position: relative;
        transform: none;
        top:0;
        left: 0;
    }

    .subsec-content{
        width: 90%;
        margin: auto;
    }

    .company-info dl {
        grid-template-columns: 1fr;
        }
    
    .company-info dt {
        border-bottom: none;
        background-color: #efefef;
        }

    .company-info dd{
        border-bottom: 1px dotted #999;
    }

    .company-info dt::after {
        content:none;
    }

    .footer-company{
        flex-direction: column;
    }

    .footer-logo{
        margin:auto;
        width: 75%;
        margin-bottom:30px;
        text-align: center;
    }

    .footer-logo img{
        width: 198px;
    }

    .brsp{
        display: none;
    }

    .footer-access{
        width: 70%;
        margin:auto;
        text-align: center;
    }

    .footer-nav ul li{
        font-size: 0.8em;
        margin: 10px;
    }

}
