@charset "UTF-8";

/* 共通の設定 */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    text-align: left;
    font-family: "Inter";
    font-size: 1.3rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}

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

.section {
    padding: 80px 0;
}

.section__title--en {
    color: #C61C20;
    font-size: 5rem;
    font-weight: 700;
    font-family: "Oswald", sans-serif;
}

.section__title--ja {
    font-size: 1.5rem;
    font-family: Inter;
    font-weight: bold;
}

.has-bg-text {
    position: relative;
    z-index: 1;
    /* 背景テキストより前に内容を出すため */
}

.has-bg-text::before {
    font-family: "Bebas Neue", sans-serif;
    content: attr(data-bg-text);/* data-bg-textの値を表示 */
    position: absolute;
    top: 0.9em;
    right: -1em;
    transform: translate(-50%, -50%);
    font-size: clamp(96px, 15vw, 200px);/* お好みで調整 */
    color: rgba(255, 0, 0, 0.08);/* 赤く、薄く */
    font-weight: bold;
    z-index: 0;/* 背面に配置 */
    white-space: nowrap;
    pointer-events: none; /* 背景テキストがクリックを邪魔しないように */
}

.has-bg-text-service {
    position: relative;
    z-index: 1;
}

.has-bg-text-service::before {
    font-family: "Bebas Neue", sans-serif;
    content: attr(data-bg-text);/* data-bg-textの値を表示 */
    position: absolute;
    top: 0.9em;
    right: 2em;
    transform: translate(-50%, -50%);
    font-size: clamp(96px, 15vw, 200px);/* お好みで調整 */
    color: rgba(255, 0, 0, 0.08);/* 赤く、薄く */
    font-weight: bold;
    z-index: 0;/* 背面に配置 */
    white-space: nowrap;
    pointer-events: none;
}

.has-bg-text-service::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.2);/* グレーの背景（透明度を調整） */
    transform: translate(-10px, 13px);/* 背景を少しずらす（数値を調整） */
    z-index: -1;
    border-radius: 10px;
}

@media screen and (max-width: 530px) {
    .has-bg-text-service::before {
        right: 0;
    }

    .section {
        padding: 40px 0;
    }

    #works.has-bg-text::before {
        top: 1.5em;
    }
}

.section__txt {
    margin-top: 20px;
}


@media screen and (max-width: 900px) {
    .section__txt {
        line-height: 25px;
    }
}


.section__inner {
    padding: 0 10%;
}

.btn__contents {
    display: flex;
    align-items: center;/* 縦方向の中央揃え */
    gap: 24px;
    font-size: 1.5rem;
}


.btn {
    color: #ffffff;
    border-radius: 50px;
    background: #153653;
    padding: 1em 3em;
    position: relative;
    margin-top: 30px;
    transition: 1.5s;
    display: inline-block;
}


.btn:hover {
    border-radius: 50px;
    background: #C61C20;
    padding: 1em 3em;
    position: relative;
    transition: 1s;
}

.arrow-circle {
    position: relative;
    width: 24px;
    height: 24px;
    background-color: #ffffff;/* 円の色 */
    border-radius: 50%;
    flex-shrink: 0;/* テキストが長くても潰れないように */
    display: flex;
}

.arrow-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #153653;
    border-right: 2px solid #153653;
    transform: translate(-50%, -50%) rotate(45deg); /* 中央に配置＋右向き */
}


/* スクロールアニメーション */
.fadein {
    transform: translate(0px, 2px);
    opacity: 0;
    transition: 2s;
}

.fadein.animated {
    transform: translate(0, 0);/* 元の位置に戻る設定 */
    opacity: 1;
}


/* ヘッダー */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.header__container {
    padding: 0 0 0 3.5%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__inner {
    text-align: center;
     gap: 10px;
}

.nav__header {
    display: none;
}


.nav {
    display: flex;
    gap: 50px;
}



.nav__list {
    display: flex;
    gap: 50px;
    align-items: center;
}

.nav__item {
    font-size: clamp(15px, 1.5vw, 20px);
    font-family: "Bebas Neue", sans-serif;
    transition: 2s;
    text-align: center;
}

.nav__item span {
    display: block;
    font-weight: normal;
    font-size: clamp(10px, 1.5vw, 15px);
}

.nav__item :hover {
    color: #C61C20;
    transition: 0.5s;
}

.nav__contact-buttons {
    display: flex;
}

.nav__phone-button {
    background-color: #153653;
    color: #ffffff;
    padding: 1em 1.5em 1em 4em;
    font-family: "Oswald", sans-serif;
    position: relative;
}

.nav__phone-button::before {
    content: '';
    display: inline-block;
    width: 3em;
    height: 3em;
    background-image: url(../images/ion_call_white.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 26%;
    left: 0.5em;
}

.nav__phone-button:hover {
    background-color: #fff;
    border:2px solid #153653;
    color: #153653;
    transition: 0.5s;
}

.nav__phone-button:hover::before {
    background-image: url(../images/ion_call.png);
}



.nav__phone-button-text {
    font-size: clamp(10px, 2vw, 15px);
    font-weight: normal;
}

.nav__phone-number {
    font-size: clamp(19px, 2vw, 24px);
    font-weight: bold;
}


.nav__mail-button {
    background-color: #C61C20;
    color: #ffffff;
    padding: 1em 1.5em 1em 4em;
    font-size: clamp(15px, 2vw, 18px);
    position: relative
}

.nav__mail-button::before {
    content: '';
    display: inline-block;
    width: 3em;
    height: 3em;
    background-image: url(../images/mail-outline.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 20%;
    left: 0.5em;
}
.nav__mail-button:hover {
    background-color: #fff;
    border:2px solid #C61C20;
    color: #C61C20;
    transition: 0.5s;
}

.nav__mail-button:hover::before {
    background-image: url(../images/icon_call_red.png);
}



.nav__contact-buttons--mobile-only {
    display: none;
}



@media screen and (max-width: 960px) {
    .header {
        height: 80px;
    }

    .header__container {
        height: 80px;
        padding: 5px 3.5%;
    }

    .nav {
        display: block;
    }

    .nav__header {
        display: block;
        font-family: "Oswald";
        font-weight: bold;
        padding: 5px 3.5%;;
    }

    .nav__title {
        color: #C61C20;
        font-size: clamp(9px, 1vw, 13px);
    }

    .nav__logo img {
        width: clamp(30px, 10vw, 50px);
        height: auto;
    }

    .nav__list {
        display: block;
        margin-top: 1em;
    }

    .nav__item {
        margin-bottom: 10px;
        text-align: left;
        padding-left: 3.5%;
        font-size: 35px;
        color: #C61C20;
    }

    .nav__item span {
        font-size: 10px;
        color: #000;
        font-weight: bold;
    }

    .nav__contact-buttons {
        position: fixed;
        width: 100%;
        bottom: 0px;
        right: 0px;
        z-index: 100;
    }

    .nav__contact-buttons--mobile-only {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        z-index: 1000;
    }

    .nav__phone-button {
        flex: 1;
        text-align: center;
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }

    .nav__phone-button::before {
        display: none;
    }

    .nav__phone-button-text {
        position: relative;
    }

    .nav__phone-button-text::before {
        content: '';
        display: inline-block;
        width: 2em;
        height: 2em;
        background-image: url(../images/ion_call_white.png);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        position: absolute;
        left: -2.5em;
        top: -18%;
    }

    .inner__box {
        width: fit-content;
        margin: 0 auto;
        position: relative;
    }

    .inner__box br {
        display: none;
    }

    .nav__mail-button {
        flex: 1;
        text-align: center;
        background-color: #C61C20;
        color: #ffffff;
        padding: 1em 1.5em;
        font-size: clamp(15px, 2vw, 18px);
    }

    .nav__mail-button::before {
        display: none;
    }

    .inner__box::before {
        content: '';
        display: inline-block;
        width: 2em;
        height: 2em;
        background-image: url(../images/mail-outline.png);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        position: absolute;
        top: -8%;
        left: -2.5em;
    }

    /* ハンバーガーメニュー */
    .hamburger {
        width: 30px;
        height: 22px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 9001;
    }

    .hamburger span {
        display: block;
        height: 3px;
        background-color: #000;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* メニューが開いた状態（×） */
    .hamburger.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* サイドメニューを右固定 */
    #side-menu.nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: white;
        transform: translateX(100%);/* 初期は非表示 */
        transition: transform 0.3s ease;
        z-index: 2000; /* ボタンより後ろ */
    }

    #side-menu.nav.open {
        transform: translateX(0);
        /* 表示 */
    }


}


@media screen and (max-width: 600px) {
    .header {
        height: 62px;
    }

    .header__container {
        height: 62px;
    }

    .nav__contact-buttons {
        position: fixed;
        width: 100%;
        bottom: 0px;
        right: 0px;
        z-index: 100;
    }

    .nav__phone-button {
        margin: 0 auto;

    }

    .nav__phone-number {
        width: fit-content;
        margin: 0 auto;
        position: relative;
    }

    .nav__phone-number::before {
        content: '';
        display: inline-block;
        width: 1em;
        height: 1em;
        background-image: url(../images/ion_call_white.png);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        position: absolute;
        left: -1.5em;
        top: 18%;
    }

    .nav__phone-button-text::before {
        display: none;
    }

    .nav__mail-button {
        margin: 0 auto;
        padding: 1em 1.5em 1em 3em
    }

    .nav__mail-button-txt {
        width: fit-content;
        margin: 0 auto;
    }

    .nav__phone-button {
        display: block;
    }

    .inner__box br {
        display: block;
    }

    .inner__box::before {
        top: 15%;
    }
}




/* お問い合わせ */
.section--contact {
    padding: 0px 10%;
    margin-bottom: -90px;/* 下に向けてはみ出させる */
    z-index: 1;/* 必要なら重なり順も調整 */
    position: relative;/* z-indexを効かせるため */
}

.section__inner--contact {
    background-color: #153653;
    max-width: 1220px;
    border-radius: 30px;
    margin: 0 auto;
    color: #ffffff;
    text-align: center;
    padding: 60px 10%;
    position: relative;
    z-index: 2; 
}

.section__inner--contact::after {
    content: '';
    display: inline-block;
    width: 45%; /* 好みで調整、例: 親の60%幅 */
    aspect-ratio: 572 / 426; /* 比率維持 */
    background-image: url(../images/japan.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 36%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.section__title--en--contact {
    font-size: 5rem;
    font-weight: 700;
    font-family: Oswald;
}

.section__title--ja--contact {
    font-size: 1.2rem;
    font-weight: bold;
}

.contact__contents {
    margin-top: 60px;
}

.contact__txt {
    font-weight: bold;
    font-size: 24px;
}

.contact__txt br {
    display: none;
}

.contact__wrapper {
    display: flex;
    background-color: #ffffff;
    max-width: 925px;
    border-radius: 20px;
    gap: 10%;
    padding: 20px 6%;
    justify-content: center;
    margin: 0 auto;
    margin-top: 10px;
    align-items: center;
}

.contact__phonearea {
    color: #153653;
    text-align: left;
    position: relative;
    display: table-cell;
    padding-left: 5%;
}

.contact__phonearea::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    background-image: url(../images/ion_call.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    left: -23px;
    bottom: 3px;
}

.contact__phonearea--time {
    font-size: clamp(14px, 1.4vw, 20px);
}

.contact__phonearea--phone {
    font-size: clamp(24px, 1.94vw, 48px);
    font-weight: bold;
    font-family: "Oswald", sans-serif;
}


.contact__mailarea {
    background-color: #153653;
    color: #ffffff;
    padding: 20px 20px 15px 80px;
    border-radius: 10px;
    position: relative;
}

.contact__mailarea::before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    background-image: url(../images/mail-outline.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    left: 22px;
    bottom: 5px;
}

.contact__mailarea a {
    font-size: clamp(18px, 1.94vw, 24px);
}

@media screen and (max-width: 960px) {
    .contact__wrapper {
        display: block;
        height: auto;
    }

    .contact__txt br {
        display: inline;
    }

    .contact__phonearea {
        padding-left: 0;
        text-align: center;
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .contact__phonearea::before {
        left: -5em;
    }

    .contact__mailarea {
        margin-top: 10px;
        max-width: 300px;
        margin: 10px auto;
    }


}


@media screen and (max-width: 600px) {
    .section--contact  {
        padding: 0 5%;
    }

    .section__inner--contact {
        padding: 60px 5%;
    }

    .section__inner--contact::after {
        width: 90%;
    }

    .contact__phonearea::before {
        width: 33px;
        height: 33px;
        left: -37px;
        bottom: 3px;
    }

    .contact__mailarea {
        padding: 20px 20px 15px 67px;
    }

    .contact__mailarea::before {
        left: 12px;
    }
}



/* footer */
.footer {
    background-color: #333841;
    color: #ffffff;
    position: relative;
    padding: 90px 0 36px;
}

.footer__inner {
    padding: 0 10%;
}

.footer__contents {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    align-items: center;
}

.footernav__list {
    display: flex;
    gap: 20px;
}

.footernav__item {
    font-weight: nomal;
}

.footer__accessarea {
    margin-top: 100px;
}


.footer__access {
    display: flex;
    gap: 10px;
}

.footer__topic img {
    width: clamp(30px, 10vw, 50px);
    height: auto;
}

.footer__topic {
    text-align: center;
    width: fit-content;
}

.footer__topic p {
    font-family: "Oswald", sans-serif;
    width: fit-content;
}

.copy {
    display: block;
    margin: 0 auto;
    width: fit-content;
    margin-top: 50px;
    color: #BCBCBC;
}

@media screen and (max-width: 960px) {
    .footer {
        padding: 90px 0 66px;
    }

    .footernav__list {
        display: block;
    }

    .footer__contents {
        display: block;
    }

    .footernav__item {
        margin-top: 20px;
    }

    .footer__access {
        display: block;
    }

    .footer__access li {
        margin-top: 5px;
    }
}