body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.inner {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 15px;
}

/* ロゴのスタイル */
.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: bold;
}
.gNav-menu li a {
    color: #fff;
    text-decoration: none;
}

/*globalnav*/
.hamburger {
    margin: 10px auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hamburger .btn-gNav {
    position: fixed;
    top: 27px;
    right: 15px;
    width: 25px;
    height: 25px;
    z-index: 12;
    opacity: 0.7;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}
.hamburger .btn-gNav span {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(240, 240, 240, 0.9);
    border-radius: 10px;
    -webkit-transition: all 400ms;
    transition: all 400ms;
}
.hamburger .btn-gNav span:nth-child(1) {
    top: 0;
}
.hamburger .btn-gNav span:nth-child(2) {
    top: 10px;
}
.hamburger .btn-gNav span:nth-child(3) {
    top: 20px;
}
/***activeクラスが付与されると線が回転して×になる***/
.hamburger .btn-gNav.active span:nth-of-type(1) {
    top: 0px;
    left: 0px;
    transform: translateY(6px) rotate(-135deg);
    width: 100%;
    background: hsl(0, 0%, 100%);
}
.hamburger .btn-gNav.active span:nth-of-type(2) {
    opacity: 0;/*真ん中の線は透過*/
    transform: translateX(50px); /* 右に20px移動 */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    background: hsl(0, 0%, 100%);
}
.hamburger .btn-gNav.active span:nth-of-type(3){
    top: 12px;
    left: 0px;
    transform: translateY(-6px) rotate(135deg);
    width: 100%;
    background: hsl(0, 0%, 100%);
}
/**回転して×ここまで**/
.btn-gNav {
    display: none;
}
.gNav .gNav-menu {
    display: flex;
    justify-content: space-between;
}
.gNav .gNav-menu li {
    margin: 0 auto;
    padding: 0 10px;
    font-weight: 700;
    font-size: 14px;
}
.gNav .gNav-menu li a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.gNav .gNav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.gNav .gNav-menu li a:hover::after {
    transform: scaleX(1);
    bottom: -8px;
    background-color: #eee;
}


/*メインビジュアル*/
.main_visual {
    background: linear-gradient(to right, #7f8c8d, #95a5a6); /*グラデーションのためのやつ*/
    color: #fff;
    text-align: center;
    height: 100vh; 
    position: relative;
    overflow: hidden;
}
.main_visual .container {
    height: 100%;
}
/*メインコンテンツ*/
.main_visual {
    position: relative;
    overflow: hidden;
}
.image-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
    opacity: 0;
    animation: slideUp 1s forwards;
    width: 80%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}
.main-title {
    font-size: calc(2vw + 2rem);
    margin: 0;
}
.main-description {
    font-size: calc(1vw + 1rem);
    text-align: center;
    margin: 0;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 50%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}
/*アニメーションテキスト*/
.animated-text {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px;
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: #fff;
}
/* ビジョンセクション */
.vision {
    background: #ffffff;
    padding: 150px 20px;
    border-bottom: 1px solid #e0e0e0;
}
.vision h2 {
    font-size: 2.5rem;
    color: #8DC0B1;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    position: relative;
}
.vision h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #8DC0B1;
    margin: 20px auto 0;
    border-radius: 2px;
}
.vision p {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
/* 会社概要セクション */
.about {
    background: #f4f4f4;
    padding: 150px 20px;
    border-top: 5px solid #8DC0B1;
    border-bottom: 1px solid #e0e0e0;
}
.about h2 {
    font-size: 2.5rem;
    color: #8DC0B1;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    position: relative;
}
.about h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #8DC0B1;
    margin: 20px auto 0;
    border-radius: 2px;
}
.about p {
    font-size: 1.2rem;
    color: #555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
/* サービスセクション */
.services {
    background: #ffffff;
    padding: 150px 20px;
    border-top: 5px solid #8DC0B1;
}
.services h2 {
    font-size: 2.5rem;
    color: #8DC0B1;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    position: relative;
}
.services h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #8DC0B1;
    margin: 20px auto 0;
    border-radius: 2px;
}
.services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px; /* 各リストアイテムの間隔 */
}
.services li {
    background: #fff; /*#f9f9f9*/
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.services li strong {
    color: #8DC0B1;
    font-size: 1.1rem;
    font-weight: 600;
}
.services li:hover {
    background: #F0F0F0;
    border-color: #8DC0B1 ;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}
/* お問い合わせセクション */
.contact {
    background: #ffffff;
    padding: 150px 20px;
    border-top: 5px solid #8DC0B1;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}
.contact h2 {
    font-size: 2.5rem;
    color: #8DC0B1;
    margin-bottom: 20px;
    font-weight: bold;
    position: relative;
}
.contact h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #8DC0B1;
    margin: 20px auto 0;
    border-radius: 2px;
}
.contact p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
}
.contact-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    color: #fff;
    background-color: #8DC0B1;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}
.contact-button:hover {
    background-color: #7bb09e;
    transform: translateY(-3px);
}
.contact-button:active {
    background-color: #6a9a87;
    transform: translateY(1px);
}

/**company.php**/
.company {
    margin: 125px 0 150px 0;
    /*background: #f4f4f4;*/
    padding: 30px 0;
    border-top: 5px solid #8DC0B1;
    border-bottom: 1px solid #e0e0e0;
}

.company h3 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #8DC0B1;
    position: relative;
    display: inline-block;
}

.company h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    /*display: block; ↓をpxで都度調整したらこっちでもできる */ 
    width: 100%;
    height: 3px;
    background: #8DC0B1;
    border-radius: 2px;
}

.row {
    display: flex;
    margin: 15px 0 10px 0;
}

.head {
    font-weight: bold;
    flex: 2;
    line-height: 2;
    border-bottom: 1px solid #8DC0B1;
    color: #333;
}

.body {
    flex: 8;
    line-height: 2;
    padding-bottom: 15px;
    border-bottom: 1px solid #8dc0b1;
    color: #555; /* テキストの色を変更 */
}

/* マップセクション */
.gMap-head {
    font-weight: bold;
    margin: 25px 0 35px;
    color: #8DC0B1; /* マップヘッダーの色を変更 */
}

.gMap iframe {
    width: 100%;
    height: 600px;
}


/* サービスの詳細情報セクション */
.service {
    margin: 125px 0 150px 0;
    /*background: #f4f4f4;*/
    /*padding: 30px 0;*/
    border-top: 5px solid #8DC0B1;
    border-bottom: 1px solid #e0e0e0;
}
.service h3 {
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #8DC0B1;
    position: relative;
    display: inline-block;
}
.service h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #8DC0B1;
    border-radius: 2px;
}
.service-body {
    display: flex;
    position: relative;
    /*width: 80%;*/
    margin: 0 auto 100px;
    align-items: center;
    justify-content: center;
    /*opacity: 0;*/
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.service-body.show {
    opacity: 1;
    transform: translateY(0);
}
.service-text-leftbox, .service-text-rightbox {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 60px;
    width: 52%;
    max-width: 680px;
    z-index: 1;
    position: relative;
    order: 1;
}
.service-text-leftbox {
    margin-right: -10%;
}
.service-text-rightbox {
    margin-right: -90%;
}
.service-number {
    margin: 0 0 7px;
    font-size: 40px;
    font-family: var(--mclogi-font-family-en);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    color: #8DC0B1;
}
.service-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 16px;
}
.service-text p {
    font-size: 0.8rem;
    line-height: 1.7;
}
.service-photo {
    width: 60%;
    order: 2;
    z-index: 0;
}
.service-photo img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    border-radius: 12px;
}
.service h4 {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 10px 0 10px;
}

/* サービスの利点セクション */
.service-benefits {
    padding: 10px 20px;
    background: #f9f9f9;
}

.service-benefits h2 {
    font-size: 2rem;
    color: #8DC0B1;
    margin-bottom: 20px;
    text-align: center;
}

.benefit {
    margin-bottom: 30px;
}

.benefit h3 {
    font-size: 1.6rem;
    color: #333;
}

.benefit p {
    font-size: 1.2rem;
    color: #555;
}

/* サービスプロセスセクション */
.service-process {
    padding: 40px 20px;
    background: #f4f4f4;
}

.service-process h2 {
    font-size: 2rem;
    color: #8DC0B1;
    margin-bottom: 20px;
    text-align: center;
}

.service-process ol {
    margin: 0;
    padding: 0;
    list-style-position: inside;
}

.service-process li {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 15px;
}



/*お問い合わせ*/
.contact-page {
    margin: 125px 0 150px 0;
    /*background: #f4f4f4;*/
    /*padding: 30px 0;*/
    border-top: 5px solid #8DC0B1;
    border-bottom: 1px solid #e0e0e0;
}
.page-heading {
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 30px;
    color: #8DC0B1;
    position: relative;
    display: inline-block;
}
.page-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #8DC0B1;
    border-radius: 2px;
}
.page-heading {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.container_contact {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.contactform {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    width: 100%;
    margin: 20px auto;
}
.contactform h4 {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333333;
}
.item {
    margin-bottom: 15px;
}
.label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555555;
}
.form_tit {
    margin: 0;
}
.label-required {
    color: #ff0000;
}
.label-required-any {
    color: #555555;
}
input[type="text"], input[type="email"], input[type="tel"], textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
}
textarea {
    resize: vertical;
    min-height: 100px;
}
.btn {
    text-align: center;
}
button[type="submit"] {
    background-color: #e5e5e5;
    color: #8DC0B1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
button[type="submit"]:hover {
    background-color: #8DC0B1;
    color: #fff;
}
.kakunin {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 120px auto;
}
.kakunin h4 {
    margin-bottom: 15px;
}
.sousin-btn {
    text-align: center;
    margin: 5px;
}
.modoru-btn {
    text-align: center;
    margin: 5px;
}
.back-btn {
    background-color: #e5e5e5;
    color: #8DC0B1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}
.back-btn:hover {
    background-color: #8DC0B1;
    color: #fff;
}
.back-btn a {
    text-decoration: none;
    color: #8DC0B1;
}
.back-btn:hover {
    color: #fff;
}
.confim-btn {
    display: flex;
    justify-content: center;
}
.miss {
    background: #ffffff;
    padding: 80px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    margin: 120px auto;
}
.miss-text {
    margin-bottom: 35px;
}
.miss-btn {
    background-color: #e5e5e5;
    color: #8DC0B1;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
}
.miss-btn:hover {
    background-color: #8DC0B1;
    color: #fff;
}
.miss-btn a {
    text-decoration: none;
    color: #fff;
}
.end {
    background: #ffffff;
    padding: 80px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 120px auto;
}
/**submit**/
.end h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
}
.contact-ckecktext p {
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 15px;
}
.contact-ckecktext li {
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.contact-ckecktext li strong{
    font-weight: bold;
}
.submit-btn {
    margin-top: 50px;
}
/**footer**/
footer {
    background-color: #2c3e50;
    color: #fff;
    font-size: 0.8rem;
    padding: 25px 0;
    text-align: center;
}
/* レスポンシブ対応 */
@media (max-width: 992px) {
    .service-body {
        flex-direction: column; /* 縦並びに変更 */
        width: 90%; /* 全体の幅を調整 */
    }
    .service-text-leftbox,
    .service-text-rightbox {
        width: 100%;
        margin-right: 0;
        margin-top: -25px; /* テキストを画像に少し重なるように追加 */
        order: 2; /* テキストボックスを画像の後に表示 */
    }
    .service-photo {
        width: 100%;
        order: 1; /* 画像をテキストの前に配置 */
        margin-bottom: -20px; /* 画像を少し短くするためにマージンを調整 */
    }
    .service-photo img {
        height: 300px; /* 画像の縦の長さを調整 */
        object-fit: cover; /* 画像を中央に収める */
    }
}
@media (max-width: 768px) {
    /*header*/
    /*nav*/
    .btn-gNav {
        display: block;
    }
    .gNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(141, 192, 177, 0.9);
        font-size: 16px;
        box-sizing: border-box;
        z-index: 1;
        padding-top: 50px;
        transition: .3s;
    }
    .gNav.open {
        right: 0;
        height: 80vh;
        z-index: 2;
    }
    .gNav .gNav-menu {
        padding: 0;
        width: 100%;
        height: 100%;
        display: block;
        flex-direction: column;
        text-align: center;
        /*justify-content: center;*/
    }
    .gNav .gNav-menu li {
        width: 86%;
        padding: 15px;
        font-size: 16px;
        letter-spacing: 2px;
        border-bottom: #ffffff 1px solid;
        color: #ffffff;
    }
    .gNav .gNav-menu li a::after {
        display: none; /* 下線を非表示にする */
    }
    /*コンテンツ*/
    .main_visual {
        height: 70vh; 
    }
    .image-wrapper {
        height: 70vh;
    }
    .overlay-text {
        padding: 10px;
    }
    .main-title {
        font-size: calc(4vw + 1rem);
    }
    .main-description {
        font-size: calc(2vw + 0.8rem);
    }
    .vision h2,
    .about h2,
    .services h2 {
        font-size: 2rem;
    }
    .vision p,
    .about p,
    .services li {
        font-size: 1rem;
        padding: 15px;
    }
    .services li {
        display: block; /* SP版でリストアイテム内の内容を縦に並べる */
        text-align: left; /* 内容を左寄せにする */
    }
    .services li strong {
        display: block; /* SP版で<strong>をブロック要素として表示 */
        margin-bottom: 10px; /* <strong>とその内容の間隔 */
    }

    /**/
    .service-text-box {
        padding: 40px;
    }
    .service-number {
        font-size: 30px;
    }
    .service-text {
        font-size: 14px;
    }
}
@media (max-width: 576px) {
    .service-text-box {
        padding: 30px;
    }
    .service-number {
        font-size: 25px;
    }
    .service-text {
        font-size: 12px;
    }
    .service-photo img {
        height: 250px;
    }
    .service-text-leftbox, .service-text-rightbox {
        padding: 25px;
    }
}
@media (max-width: 480px) {
    .main-title {
        font-size: calc(3vw + 1rem);
    }
    .main-description {
        font-size: calc(3vw + 0.6rem);
        line-height: 2;
    }
    .service h4 {
        font-size: 1rem;
    }    
}