html {
    scroll-behavior: smooth;
}

#about {
    scroll-margin-top: -20px;
}
#service {
    scroll-margin-top: -20px;
}
#company {
    scroll-margin-top: -10px;
}
#contact {
    scroll-margin-top: -10px;
}

body {
    color: #0F0F0F;
    /* font-family: ; */
}

.header {
    position: fixed;
    height: 124px;
}
.header-content {
    padding: 24px 64px;
    height: 80px;
}
@media screen and (max-width: 830px) {
    .header {
        position: static;
    }
    .header-content {
        padding: 24px 24px;
    }
}


.service-content {
    width: calc(33% - 12px);
}

.service-content-other {
    width: calc(33% - 18px);
}

.about{
    background-image: url('about.jpg'); /* 画像のパスを設定 */
    background-size: cover; /* 画像が親要素のサイズに合うように調整 */
    background-position: center; /* 画像が親要素の中心に来るように配置 */
    position: relative; /* 子要素の配置の基準点として機能 */
}

.gradient-text {
    background: linear-gradient(to bottom right, #05F3C4, #51CCFD);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* テキストの色を透明にして背景が見えるようにする */
    display: inline-block; /* 背景クリップが機能するように */
}

.gradient-background {
    background: linear-gradient(to bottom right, #05F3C4, #51CCFD);   
}

.menu-item {
    text-decoration: none;
    color: #0F0F0F;

    text-decoration: none;
    background-clip: text;
    -webkit-background-clip: text; /* Safari/Chrome用 */
    display: inline-block; /* 背景クリップを有効にする */
}
.menu-item.active {
    color: transparent; /* テキスト色を透明に */
    background-image: linear-gradient(to bottom right, #05F3C4, #51CCFD);
}

.footer-menu-item {
    text-decoration: none;
    color: #0F0F0F;

    text-decoration: none;
    background-clip: text;
    -webkit-background-clip: text; /* Safari/Chrome用 */
    display: inline-block; /* 背景クリップを有効にする */
}

.footer-menu-item,
.menu-item,
.top-button,
.button {
    cursor: pointer;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}
.top-button:hover,
.button:hover {
    transform: scale(1.02);
}
.footer-menu-item:hover,
.menu-item:hover {
    color: transparent; /* テキスト色を透明に */
    background-image: linear-gradient(to bottom right, #05F3C4, #51CCFD);
}

.top-button {
    width: 65px;
    color: white;
    padding: 16px 80px;
    font-size: 16px;
    border-radius: 100px;  
    background: linear-gradient(to bottom right, #05F3C4, #51CCFD);    
    font-weight: bold;
}


.top {
    padding-top: 128px;
}
.top-content {
    padding: 24px 80px 120px 224px;
    display: flex;
    gap: 64px;
}
.top-content-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.top-content-title {
    font-size: 80px;
    font-weight: bold;
    line-height: 132%;
}
.top-content-image {
    /* background-color: #EDEDED; */
    border-radius: 24px;
    width: 550px;
}
@media screen and (max-width: 1340px) {
    .top-content-image {
        width: 400px;
        height: 400px;
        object-fit: contain;
    }
}
@media screen and (max-width: 1185px) {
    .top-content-image {
        width: 300px;
        height: 300px;
        object-fit: contain;
    }
}
@media screen and (max-width: 1080px) {
    .top-content {
        flex-direction: column; 
    }
    .top-content-image {
        width: 500px;
        height: 500px;
        object-fit: contain;
    }
}
@media screen and (max-width: 600px) {
    .top-content-image {
        width: 100%;
        height: auto;
    }
}

.menu {
    position: fixed;
    left: 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 170px;
    bottom: 120px;
}

.section {
    padding: 120px 80px 120px 224px;
}

.about-title {
    font-size: 40px;
    font-weight: bold;
    line-height: 200%;
    text-align: center;   
}

.service-content-div {
    display: flex;
    gap: 16px;
}

.service-content-others {
    padding-top: 48px;
    display: flex;
    gap: 32px;
}

.footer-border {
    padding: 0 80px;
}

.footer-menu {
    padding: 80px;
}
.footer-menu-content {
    display: flex;
    gap: 48px;
    justify-content: center;
    font-weight: bold;
}

footer {
    padding: 80px 80px 48px 80px;
    display: flex;
    justify-content: space-between;
}


.img-about {
    position: absolute;
    top: 36px;
    width: 70%;
}

.img-service {
    position: absolute;
    bottom: 0;
    left: 70px;
    width: 70%;
}

.img-company {
    position: absolute;
    top: -40px;
    left: 70px;
    width: 80%;
}





@media screen and (max-width: 830px) {
    .menu {
        display: none;
    }
    .top-content {
        padding: 64px 24px;
    }
    .top-content-title {
        font-size: 56px;
    }
    .section {
        padding: 64px 24px;
    }
    .about-title {
        font-size: 32px;
    }
    .footer-border {
        padding: 0 24px;
    }
    footer {
        padding: 48px 24px;
        flex-direction: column;
        gap: 24px;
    }

    .img-about {
        width: 100%;
    }
    .img-service {
        left: 0;
        width: 100%;
    }
    .img-company {
        left: 0;
        width: 100%;
    }
}
@media screen and (max-width: 700px) {
    .service-content-div {
        flex-direction: column;
        width: 100%;
    }
    .service-content {
        width: calc(100% - 48px);
    }
    .service-content-others {
        flex-direction: column;
        gap: 24px;
    }
    .service-content-other {
        width: 100%;
    }
}
@media screen and (max-width: 580px) {
    .footer-menu {
        padding: 48px 24px;
    }
    .footer-menu-content {
        flex-direction: column;
        gap: 24px;
    }
}

.service-top-img {
    height: 350px;
    width: 100%;
    background-color: #FFF;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-top-img img {
    width: 80%;
}
@media screen and (max-width: 1300px) {
    .service-top-img img {
        width: 100%;
    }
}
@media screen and (max-width: 830px) {
    .service-top-img {
        display: none;
    }
    .service-top-img img {
        display: none;
    }
}


@media screen and (max-width: 500px) {
    .about-title {
        font-size: 24px;
    }
}

.about-text-pc {
    font-size: 16px;
    line-height: 400%;
    text-align: center;
}
@media screen and (max-width: 600px) {
    .about-text-pc {
        display: none;
    }
}

.about-text-mobile {
    display: none;
}
@media screen and (max-width: 600px) {
    .about-text-mobile {
        display: block;
        font-size: 16px;
        text-align: left;
        line-height: 300%;
    }
}

body {
    font-family: "Noto Sans JP", sans-serif;
}

/* 20240928コンタクフォーム追加 */

.form__item + .form__item {
    margin-top: 23px;
    margin-top: 1.4375rem;
}
textarea {
    resize: none;
    height: 282px;
    height: 17.625rem;
}
.form__submit {
    display: block;
    font-family: "Noto Sans", sans-serif;
    font-size: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: #000;
    color: #fff;
    width: 219px;
    width: 13.6875rem;
    max-width: 100%;
    height: 60px;
    height: 3.75rem;
    border-radius: 0.3125rem;
    margin: 43px auto 0;
    margin: 2.6875rem auto 0;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}
.form__item-label span {
    color: #FF0000;
    font-weight: 700;
    margin-left: 3px;
    margin-left: 0.1875rem;
}

@media screen and (max-width: 829px) {
    input {
        height: 1.5rem;
    }
    input,textarea {
        background: #fff;
        border: 1px solid #D0D0D0;
        border: 0.0625rem solid #D0D0D0;
        border-radius: 0.3125rem;
        padding: 10px 10px;
        padding: 0.625rem 0.625rem;
        width: 95%;
    }
    .form__item-label {
        font-size: 15px;
        font-size: 0.9375rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        padding-top: 10px;
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
    .form__item-input {
        width: 95%;
    }
    .form__item {
        display: block;
    }
    .form{
        background: #FAFAFA;
        max-width: 100%;
        padding: 45px 45px;
        padding: 0.5rem 1rem 3rem 0.5rem;
        margin: auto;
    }
    .contact-content {
        padding-right: 15px;
        padding-left: 15px;
    }
    .contact-form-section {
        padding-top: 30px;
    }
    .header-content {
        padding: 24px 24px;
    }
    .page-entitle {
        font-size: 2.1875rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        line-height: 1.2;
    }
    .page-title {
        font-family: "Noto Serif JP", serif;
        font-size: 1.125rem;
        font-weight: 700;
        letter-spacing: 0.26em;
        line-height: 1.4;
        margin-left: 0.2rem;
        margin-top: 0.375rem;
    }
    .page-header {
        position: relative;
    }
    .page-header::after {
        position: absolute;
        width: 50%;
        content: "";
        height: 1px;
        height: 0.0625rem;
        bottom: 24px;
        bottom: 1.5rem;
        /* left: 285px; */
        right: 0;
        background: #707070;
    }
    .contact-contet-subtext {
        margin-top: 1.125rem;
    }
    .contact-contet-sub{
        font-size: 0.9375rem;

    }
}
@media screen and (min-width: 830px) {

    input,textarea {
        background: #fff;
        border: 1px solid #D0D0D0;
        border: 0.0625rem solid #D0D0D0;
        border-radius: 0.3125rem;
        padding: 10px 10px;
        padding: 0.625rem 0.625rem;
        width: 95%;
    }
    .form__item-label {
        font-size: 15px;
        font-size: 0.9375rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        padding-top: 10px;
        padding-top: 0.625rem;
    }
    .form__item-input {
        width: 75%;
    }
    .form__item {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .form{
        background: #FAFAFA;
        width: 750px;
        width: 46.875rem;
        max-width: 100%;
        padding: 2.8125rem 2.8125rem;
        margin: auto;
    }
    .contact-contet-subtext {
        margin-top: 3.125rem;
    }
    .contact-form-section {
        padding-top: 75px;
    }
    .header-content {
        padding: 24px 24px;
    }
    .contact-content {
        padding: 24px 80px 120px 224px;;
    }
    .page-entitle {
        font-size: 3.0625rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        line-height: 1.2;
    }
    .page-title {
        font-family: "Noto Serif JP", serif;
        font-size: 35px;
        font-size: 2.1875rem;
        font-weight: 700;
        letter-spacing: 0.26em;
        line-height: 1.4;
        margin-left: 0.5rem;
        margin-top: 0.375rem;
    }
    .page-header {
        position: relative;
    }
    .page-header::after {
        position: absolute;
        width: 66%;
        content: "";
        height: 1px;
        height: 0.0625rem;
        bottom: 24px;
        bottom: 1.5rem;
        left: 285px;
        background: #707070;
    }
}