/* 基本設定 */
:root {
    --primary-color: #2c3e50; /* メインカラー（ダークブルー） */
    --secondary-color: #e74c3c; /* アクセントカラー（赤） */
    --background-light: #f9f9f9; /* ライト背景 */
    --text-color: #333836; /* テキストカラー */
    --text-light: #fff; /* ライトテキスト */
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Noto Sans JP', sans-serif;
}

body {
    font-family: 'Roboto Condensed', "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
}

h1, h2, h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.fade-in-up {
    opacity: 0; /* 初期状態では非表示 */
    transform: translateY(50px); /* 下に50pxずらして隠す */
    transition: opacity 0.8s, transform 0.8s; /* アニメーション設定 */
  }
  
  .fade-in-up.active {
    opacity: 1; /* 表示状態 */
    transform: translateY(0); /* 元の位置に戻す */
  }

.pc {
    display: block;
}
.sp {
    display: none;
}
@media screen and (max-width: 768px) {
    .pc {
        display: none;
    }
    .sp {
        display: block;
    }
}


/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 9999;
}

header .header_inner {
    width: 98%;
    position: fixed;
    top: 5px;
    left: 0;
    right: 0;
    margin: auto;
    height: 100px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2%;
    box-sizing: border-box;
}

header .logo {
    width: 100px;
    height: 100px;
    margin: 0;
}

header .logo img {
    width: 100%;
}

/* ナビゲーション */
header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

header nav ul li a {
    font-size: 18px;
    display: block;
    text-decoration: none;
    color: #333;
    padding: 0 25px;
    position: relative;
    font-weight: bold;
}

header nav ul li.btn {
    margin-left: 30px;
}

header nav ul li.btn a {
    width: 150px;
    padding: 8px 0;
    color: #fff;
    background-color: #1e40ca;
    border-radius: 50px;
    text-align: center;
    transition: all .2s ease-in-out;
}

header nav ul li.btn a:hover {
    opacity: 0.7;
    color: #fff;
}

header nav ul li:not(.btn) a:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    margin: auto;
    width: 5px;
    height: 5px;
    border-radius: 5px;
    transition: all .3s;
}

header nav ul li a:hover {
    opacity: 1;
    color: #1e40ca;
}

header nav ul li:not(.btn) a:hover:before {
    background-color: #e7355c;
    transition: all .3s;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 30px;
    height: 3px;
    left: 5px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 10px;
}

.hamburger span:nth-child(2) {
    top: 18px;
}

.hamburger span:nth-child(3) {
    top: 26px;
}

/* ハンバーガーメニューオープン時 */
.hamburger.active span:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 18px;
    transform: rotate(-45deg);
}

/* スマホ用ナビゲーション */
@media screen and (max-width: 768px) {
    header {
        height: 80px;
    }
    header .header_inner {
        height: 80px;
        background-color: #fff;
        border-radius: 5px;
        box-shadow: 0 0 5px #999;
    }
    
    header .logo {
        width: 80px;
        height: 80px;
        margin: 0;
    }  
    .hamburger {
        display: block;
    }
    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        transition: all 0.5s;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 9998;
    }
    
    header nav.active {
        right: 0;
    }
    
    header nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 20px;
    }
    
    header nav ul li {
        width: 100%;
        margin: 10px 0;
    }
    
    header nav ul li a {
        padding: 10px 0;
        font-size: 16px;
    }
    
    header nav ul li.btn {
        margin: 20px 0 0;
    }
    
    header nav ul li.btn a {
        width: 100%;
    }
}
/* トップセクション */
.hero {
    background: url('img/img_top.jpg') no-repeat center center/cover;
    color: var(--text-color);
    text-align: center;
    padding: 150px 0 250px;
    margin-top: 105px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
}

.hero .container {
    position: relative;
    z-index: 1;
}
.hero .container .hero_txt {
    width: 1000px;
    margin: 0 auto;    
}

.hero h2 {
    font-size: 64px;
    color: var(--text-color);
    font-family: var(--font-secondary);
    letter-spacing: .15em;
    margin: 0 0 48px;
    line-height: 1;
    animation: fadeIn 1.5s ease-in-out;
}

.hero p {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0;
    animation: fadeIn 2s ease-in-out;
    line-height: 1.8;
}
.hero p.head {
    font-size: 24px;
    color: #1F3E77;
    margin: 0 0 15px;
    letter-spacing: .06em;
}
.hero .wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
}
.hero .section-waves {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65px;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 768px) {
    .hero {
        padding: 50px 0 100px;
        margin-top: 60px;
    }
    .hero .container {
        width: 94%;
    }
    .hero .container .hero_txt {
        width: 100%;
    }
    .hero p.head {
        font-size: 20px;
        letter-spacing: 0;
        line-height: 1.5;
    }
    .hero h2 {
        font-size: 40px;
        line-height: 1.4;
    }
    .hero p {
        font-size: 16px;
        margin: 10px 0;
    }
    .hero .wave {
        height: 100px;
    }
    .hero .section-waves {
        height: 40px;
    }
}


/* サービス紹介 */
.services {
    padding: 50px 0 80px;
    text-align: center;
}
.services h2 {
    font-size: 40px;
    margin-bottom: 38px;
}
.services h2 span {
    display: block;
    font-size: 16px;
    color: #1F3E77;
}
.services p.head_txt {
    font-weight: bold;
    margin-bottom: 80px;
}
.service-list {
    position: relative;
}
.service-list::after {
    content: "";
    position: absolute;
    background: url("img/img_person.png") no-repeat center center;
    background-size: cover;
    width: 200px;
    height: 193px;
    top: -250px;
    right: 0;
}
.service-item {
    display: flex;
    align-items: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    background-color: #fff;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 20px;
}
.service-item:last-of-type {
    margin-bottom: 0;
}
.service-item .service-txt{
    margin: 50px 80px 0 0;
    text-align: left;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-item .service-txt h3 {
    font-size: 26px;
    color: #036EB8;
    padding: 0 0 20px;
    margin: 0 0 30px;
    border-bottom: 1px dotted #666;
}
.service-item .service-txt p {
    font-size: 18px;
    font-weight: bold;
    color: #666;
}
.service-item:nth-child(even) .service-txt {
    order: 2;
    margin: 50px 0 0 80px;
}
.service-item .service-photo {
    width: 40%;
}
.service-item .service-photo img {
    width: 100%;
}

@media screen and (max-width: 768px)  {
    .services {
        padding: 30px 0 50px;
    }
    .services h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .services p.head_txt {
        margin-bottom: 110px;
    }
    .service-list::after {
        content: "";
        width: 102px;
        height: 98px;
        top: -100px;
    }
    .service-item {
        display: block;
        padding: 20px;
        margin-bottom: 30px;
        border-radius: 10px;
    }
    .service-item .service-txt,
    .service-item:nth-child(even) .service-txt {
        margin: 0 0 30px 0;
    }
    .service-item .service-txt h3 {
        font-size: 20px;
        padding: 0 0 15px;
        margin: 0px 0 15px;
        text-align: center;
    }
    .service-item .service-txt p {
        font-size: 16px;
        text-align: left;
    }
    .service-item .service-photo {
        width: 100%;
    }
}
/* お悩みありませんか */
.program {
    padding: 50px 0 80px;
    text-align: center;
}
.program h2 {
    font-size: 40px;
    margin-bottom: 70px;
}
.program h2 span {
    display: block;
    font-size: 16px;
    color: #1F3E77;
}
.program .program_inner ul.list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 120px;
}
.program .program_inner ul.list::after {
    content: "";
    position: absolute;
    background: url(img/img_person05.png) no-repeat center center;
    background-size: cover;
    width: 120px;
    height: 160px;
    top: -170px;
    left: 0;
}
.program .program_inner ul.list::before {
    content: "";
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-right: 150px solid transparent;
    border-left: 150px solid transparent;
    border-top: 60px solid #036EB8;
    border-bottom: 0;
  }
.program .program_inner ul.list li {
    position: relative;
    width: 48%;
    background-color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 35px 55px 20px;
    text-align: left;
    box-sizing: border-box;
    z-index: 2;
}
.program .program_inner ul.list li:nth-child(-n+2)	 {
    margin-bottom: 40px;
}
.program .program_inner ul.list li::after {
    content: "";
    position: absolute;
    background: url(img/icon_question.png) no-repeat center center;
    background-size: cover;
    width: 48px;
    height: 48px;
    z-index: 1;
    opacity: 0.1;
    top: -25px;
    right: 0;
    left: 0;
    margin: 0 auto;
}
.program .program_inner ul.list li h3.ttl {
    font-size: 22px;
    color: #036EB8;
    margin: 0 0 20px;
    text-align: center;
}
.program .program_inner ul.list li .txt {
    display: flex;
    margin: 0 0 10px 0;
}
.program .program_inner ul.list li .txt p {
    font-weight: bold;
    margin: 0;
    flex: 1;
}
.program .program_inner ul.list li .txt span {
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-right: 5px;
}
.program .program_inner ul.list li span img {
    width: 100%;
}
.program .program_inner p.closing_txt {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
}
.program .program_inner p.closing_txt span {
    position: relative;
    z-index: 2;
}
.program .program_inner p.closing_txt span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #036EB8;
    z-index: 1;
    opacity: 0.6;
}
@media screen and (max-width: 768px) {
    .program {
        padding: 30px 0 50px;
    }
    .program h2 {
        font-size: 28px;
        margin-bottom: 100px;
    }
    .program .program_inner ul.list {
        display: block;
    }
    .program .program_inner ul.list::after {
        width: 70px;
        height: 93px;
        top: -95px;
    }
    .program .program_inner ul.list::before {
        bottom: -90px;
        border-right: 120px solid transparent;
        border-left: 120px solid transparent;
        border-top: 40px solid #036EB8;
    }
    .program .program_inner ul.list li {
        width: 100%;
        padding: 30px 20px 20px;
        margin-bottom: 35px;
    }
    .program .program_inner ul.list li:nth-child(-n+2) {
        margin-bottom: 35px;
    }
    .program .program_inner ul.list li h3.ttl {
        font-size: 20px;
        margin: 0 0 15px;
    }
    .program .program_inner ul.list li .txt span {
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }
    .program .program_inner p.closing_txt {
        font-size: 24px;
    }
    .program .program_inner p.closing_txt span::after {
        content: "";
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 6px;
        background-color: #036EB8;
        z-index: 1;
        opacity: 0.8;
    }    
}

/* 会社の強み */
.strengths {
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}
.strengths .strengths-head {
    position: relative;
    padding: 50px 0 70px;
    margin-bottom: 60px;
    z-index: 1;
}
.strengths .strengths-head:after {
    content: '';
    display: block;
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(img/strengths_ttl-bg.jpg);
    background-size: cover;
    background-position: center;
    z-index: -10;
    transform: skewy(-5deg);
}
.strengths .strengths-head h2 {
    font-size: 40px;
    margin: 0 0 38px;
    color: #fff;
}
.strengths .strengths-head h2 span {
    display: block;
    font-size: 16px;
    color: #fff;
}
.strengths p.head_txt {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 50px;
}
.strength-list {
    display: flex;
    align-items: flex-start;
}

.strength-item {
    position: relative;
    width: calc((100% - 64px) / 3);
    padding: 30px 24px;
    background-color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
}
.strength-item:not(:first-child) {
    margin-left: 32px;
}
.strength-item:nth-child(2) {
    margin-top: 56px;
}
.strength-item:nth-child(3) {
    margin-top: 112px;
}
.strength-item span {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    background-color: #1e40ca;
    border-radius: 100px;
    padding: 5px 15px;
}
.strength-item h3 {
    font-size: 26px;
    margin: 20px 0 40px;
}
.strength-item p {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    text-align: left;
}
.strength-item img {
    max-height: 200px;
}

@media screen and (max-width: 768px)  {
    .strengths {
        padding: 40px 0;
    }
    .strengths .strengths-head {
        padding: 15px 0 30px;
        margin-bottom: 20px;
    }
    .strengths .strengths-head h2 {
        font-size: 28px;
    }
    .strengths p.head_txt {
        font-size: 16px;
    }
    .strength-list {
        display: block;
    }
    .strength-item {
        width: 100%;
        padding: 20px 16px;
        margin-bottom: 30px;
        box-sizing: border-box;
    }
    .strength-item:nth-child(2) {
        margin-top: 0;
    }
    .strength-item:not(:first-child) {
        margin-left: 0;
    }
    .strength-item:nth-child(3) {
        margin-top: 0;
    }
    .strength-item:last-of-type {
        margin-bottom: 0;
    }
    .strength-item span {
        font-size: 18px;
        border-radius: 120px;
        padding: 5px 11px;
    }
    .strength-item h3 {
        font-size: 24px;
        margin: 10px 0 20px;
    }
    .strength-item img {
        max-height: 150px;
    }
    .strength-item p {
        font-size: 16px;
    }
}

/* 施工事例 */
.works {
    padding: 80px 0;
    text-align: center;
    background: var(--text-light);
}
.works h2 {
    font-size: 40px;
    margin-bottom: 38px;
}
.works h2 span {
    display: block;
    font-size: 16px;
    color: #1F3E77;
}
.works p.head_txt {
    font-weight: bold;
    margin-bottom: 80px;
}
.work-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.work-item {
    width: 32%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 40px 0;
    margin-bottom: 20px;
}
.work-item:hover {
    transform: translateY(-10px);
}
.work-item:last-of-type {
    margin-bottom: 0;
}
.work-item .tag {
    font-size: 18px;
    letter-spacing: 0.2em;
    display: inline-block;
    background-color: #1e40ca;
    border-radius: 50px;
    padding: 5px 20px;
    color: #fff;
    font-weight: bold;
}
.work-item .head_txt {
    display: flex;
    padding: 15px;
    align-items: center;
    justify-content: center;
}
.work-item .head_txt .name {
    font-size: 24px;
    margin: 0 15px 0 0;
}
.work-item .head_txt span {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(img/icon_star.png) no-repeat center center;
    background-size: cover;
    margin-right: 5px;
}
.work-item p {
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

@media screen and (max-width: 768px) {
    .works {
        padding: 40px 0;
    }
    .works h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .works p.head_txt {
        margin-bottom: 30px;
    }
    .work-list {
        display: block;
    }
    .work-item {
        width: 100%;
        border-radius: 10px;
        padding: 20px 0;
        margin-bottom: 20px;
    }
    .work-item:last-of-type {
        margin-bottom: 0;
    }
    .work-item .tag {
        font-size: 16px;
        padding: 5px 15px;
    }
}

/* お問い合わせ */
.contact {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}
.contact h2 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 38px;
}
.contact h2 span {
    display: block;
    font-size: 16px;
    color: #fff;;
}
.contact form {
    max-width: 600px;
    margin: 50px auto 0;
    text-align: left;
}
.contact p {
    font-weight: bold;
}
.contact label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-bottom: 20px;
}

.contact button {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact button:hover {
    background: #c0392b;
}
@media screen and (max-width: 768px) {
    .contact {
        padding: 40px 0;
    }
    .contact h2 {
        font-size: 28px;
        margin: 0 0 30px;
    }
    .contact input, .contact textarea {
        box-sizing: border-box;
    }
}


/* フッター */
footer {
    background: #222;
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
}

footer p {
    margin: 5px 0;
}