@charset "UTF-8";

/*====================================================================================================

    CSS構成
    //絶対に変更しないCSS 　- reset.css 全てのブラウザ固有CSSをリセットするCSS。基本触らないこと。
    - bootstrap.min.css Bootstrapコンポーネントを利用するためのCSS。基本触らないこと。
    - all.min.css Font Awesome を利用するためのCSS。基本触らないこと。
    - aos.css AOSを利用するためのCSS。基本触らないこと。
    //基本的には変更しないCSS
    - base.css 基本の文字設定や、Webフォントの読み込みなど。基本触らなくてもOK。
    //メインで利用しているCSS
    - common.css ヘッダー、フッター、下層ページのタイトルなど、共通ページレイアウトを記載したCSS
    - stlye.css 各ページ固有のレイアウトを記載したCSS
    //補助的に利用しているCSS
    - module.css 見出しやリスト、テーブルなど、共通利用できるパーツをまとめたCSS
    - utility.css マージンやパディング、文字サイズや文字色など、補助的に利用できるCSS 
    
====================================================================================================*/


/* MV ------------------------------------------------------------------*/

.mv {
    position: relative;
    width: 100vw;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 3;
    background-color: var(--primary-color);
}

.catch {
    position: absolute;
    bottom: 4vw;
    left: 3.5rem;
    z-index: 10;
    color: var(--white-color);
}

.catch .en {
    font-size: 1.41rem;
    letter-spacing: .02em;
    line-height: 3;
    transition: font-size .3s ease-in-out;
}

.catch .jp {
    font-size: 4rem;
    letter-spacing: .04em;
    transition: font-size .3s ease-in-out;
}

.heroSwiper {
    position: relative;
    top: 0;
    left: 0;
    width: 100vw;
    aspect-ratio: 20 / 9;
}

.heroSwiper .swiper,
.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
    height: 100%;
}

.heroSwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heroSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.scrollbar {
    position: absolute;
    right: 5vw;
    bottom: 0;
    z-index: 10;
}

.scrollbar-text {
    display: block;
    position: absolute;
    bottom: 0;
    padding: 10px 10px 130px;
    color: var(--white-color);
    font-size: 1rem;
    line-height: 1;
    writing-mode: vertical-lr;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
}

.scrollbar_bar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1px;
}

.scrollbar_bar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 1px;
    height: 120px;
    background: var(--white-color);
    animation: liner 2.5s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes liner {
    0% {
        transform: scale(1, 0);
        transform-origin: 0 0;
    }

    30% {
        transform: scale(1, 1);
        transform-origin: 0 0;
    }

    70% {
        transform: scale(1, 1);
        transform-origin: 0 100%;
    }

    100% {
        transform: scale(1, 0);
        transform-origin: 0 100%;
    }
}

@media screen and (max-width: 1499px) {
    .catch .en {
        font-size: 1.055rem;
    }

    .catch .jp {
        font-size: 3rem;
    }
}

@media screen and (max-width: 991px) {
    .catch .en {
        font-size: 1.055rem;
    }

    .catch .jp {
        font-size: 3rem;
    }

    .heroSwiper {
        position: relative;
        top: 0;
        left: 0;
        width: 100vw;
        aspect-ratio: 1 / 1;
    }

    .heroSwiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .heroSwiper .swiper-slide img.mv_1 {
        object-position: 45% center;
    }

    .heroSwiper .swiper-slide img.mv_2 {
        object-position: 100% center;
    }

    .heroSwiper .swiper-slide img.mv_3 {
        object-position: 60% top;
        transform: scale(1.1);
    }

    .heroSwiper .swiper-slide img.mv_4 {
        object-position: 30% center;
    }

}

@media screen and (max-width: 575px) {
    .catch {
        bottom: 4vw;
        left: 50%;
        transform: translateX(-50%);
        width: 328px;
        filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.4)) drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.2));
    }

    .catch .en {
        font-size: 1.04rem;
        line-height: 1.5;
        margin-bottom: .5rem;
        font-weight: 300;
    }

    .catch .jp {
        font-size: 2rem;
    }

    .heroSwiper {
        position: relative;
        top: 0;
        left: 0;
        width: 100vw;
        aspect-ratio: 2 / 3;
    }

    .scrollbar {
        display: none;
    }
}

button:focus {
    outline: none !important;
    box-shadow: none !important;
}

@media screen and (min-width: 1199px) {
    #pagetop img {
        width: auto;
    }
}


/* business */

#business {
    background-image: url(../images/bg_01.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#business .txt {
    font-size: 1.75rem;
    text-align: center;
    color: var(--white-color);
    font-weight: 300;
}

.infinite-slider {
    margin-top: 4rem;
}

.infinite-slider .swiper-wrapper {
    transition-timing-function: linear;
}

.infinite-slider .swiper-slide {
    height: 20rem;
    width: auto;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
}

.infinite-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 991px) {
    #business .txt {
        font-size: 1.25rem;
    }

    .infinite-slider .swiper-slide {
        height: 12rem;
        width: auto;
        aspect-ratio: 3 / 4;
        flex-shrink: 0;
    }
}

@media screen and (max-width:575px) {
    #business .txt {
        text-align: justify;
    }
}


/* item */

#item .txt {
    font-size: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25em;
}

#item .txt span {
    color: var(--primary-color);
    background-color: var(--white-color);
    padding-inline: .75em;
    border-radius: 1.75rem;
    margin-right: .5em;
}

.category__grid {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(10px, 1.2vw, 16px);
    margin-top: 5rem;
}

.category__item {
    grid-column: span 2;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;

}

.category__item.is-show {
    opacity: 1;
    transform: translateY(0);
}

.category__grid>.category__item:nth-child(4) {
    grid-column: 2 / span 2;
}

.category__grid>.category__item:nth-child(5) {
    grid-column: 4 / span 2;
}

.card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    color: var(--white-color);
    text-decoration: none;
}

.card>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__txt {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    z-index: 2;
    padding: 12px;
    text-shadow: 0 0 10px rgba(0, 0, 0, .45);
}

.card__jp {
    margin: 0;
    font-size: 1.75rem;
    letter-spacing: .06em;
}

.card__en {
    font-size: .875rem;
}

@media screen and (max-width: 991px) {
    #item .txt {
        font-size: 1.125rem;
    }

    .category__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category__item,
    .category__grid>.category__item:nth-child(4),
    .category__grid>.category__item:nth-child(5) {
        grid-column: span 1;
    }

    .card {
        aspect-ratio: 6 / 1;
    }

    .category__grid {
        margin-top: 3rem;
        grid-template-columns: 1fr;
    }

    .category__item {
        grid-column: span 1;
    }

    .card__jp {
        font-size: 1.25rem;
    }
}

@media (max-width: 575px) {
    #item .txt {
        text-align: justify;
    }

    .card {
        aspect-ratio: 4 / 1;
    }
}


/* company */

#company {
    background-image: url(../images/bg_02.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#company .table_wrapper {
    width: max(56vw, 1000px);
    margin-inline: auto;
}

@media screen and (max-width: 1119px) {
    #company .table_wrapper {
        width: 100%;
        margin-inline: auto;
    }
}

@media screen and (max-width: 991px) {
    #company {
        background-image: url(../images/bg_02_sp.jpg);

        background-position: 100% center;
    }

    #company .table_wrapper {
        width: 100%;
        margin-inline: auto;
    }
}


/* footer-area */

.parallax-area {
    position: relative;
}


/* parallax */

/* ===== PC（デフォルト）===== */

.parallax-section {
    position: relative;
    z-index: 0;
    display: flex;
    height: 37.5rem;
    justify-content: center;
    align-items: center;

    background-image: url(../images/parallax.jpg);
    background-attachment: fixed;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* ===== SP（transform方式に切り替え）===== */
@media screen and (max-width: 991px) {
    .parallax-section {
        background: none;
    }

    .parallax-section::before {
        content: "";
        position: absolute;
        inset: -35% 0;
        background-image: url(../images/parallax.jpg);
        background-position: center 80%;
        background-size: cover;
        background-repeat: no-repeat;
        transform: translate3d(0, 0, 0);
        will-change: transform;
        z-index: -1;
    }

    .parallax-section::before {
        transform: translate3d(0, var(--py, 0px), 0);
    }
}

@media screen and (max-width: 575px) {
    .parallax-section {
        background: none;
    }

    .parallax-section::before {
        content: "";
        position: absolute;
        inset: -35% 0;
        background-image: url(../images/parallax_sp.jpg);
        background-position: center 80%;
        background-size: cover;
        background-repeat: no-repeat;
        transform: translate3d(0, 0, 0);
        will-change: transform;
        z-index: -1;
    }

    .parallax-section::before {
        transform: translate3d(0, var(--py, 0px), 0);
    }
}

/* contact */

.contact {
    position: absolute;
    top: 10rem;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    z-index: 2;
    background-color: transparent;
}

.contact__inner {
    position: relative;
    z-index: 1;
}

.contact__box {
    margin: 0 auto;
    background: var(--white-color);
    text-align: center;
    padding: 6rem min(6rem, 3vw);
    width: min(90vw, 1000px);
}

.contact__lead {
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
}

.contact__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.contact__tel .num {
    font-size: 2.5rem;
    line-height: 1;
    display: flex;
    flex-direction: column;
    gap: .5em;
    color: var(--black-color);
}

.contact__tel span {
    display: block;
    font-size: 1rem;
}

.contact__mail {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .8em 2em;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--white-color);
    font-size: 1.25rem;
}

.contact__mail span {
    width: 1.25rem;
    aspect-ratio: 1 / 1;
    background-image: url(../images/mail.png);
    background-position: center bottom;
    background-size: contain;
    background-repeat: no-repeat;
}

@media screen and (max-width: 991px) {
    .contact__box {
        padding: 4rem min(4rem, 8vw);
        width: min(90vw, 1000px);
    }

    .contact__lead {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .contact__actions {
        gap: 2rem;
    }

    .contact__tel {
        background-color: var(--gray-color-op02);
        width: 100%;
        max-width: 300px;
        padding-block: 2.5rem;
    }

    .contact__tel .num {
        font-size: 1.75rem;

    }

    .contact__mail {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media screen and (max-width: 829px) {
    .parallax-section {
        height: 36rem;
    }
}

@media screen and (max-width: 575px) {
    .contact__lead {
        text-align: justify;
    }
}

.txtanimation .__row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-end;
    overflow: hidden;
    /* 念のため */
}

/* 1文字 */
.txtanimation .__row>span {
    display: inline-block;
    font-size: inherit;
    /* ← 重要：8em固定をやめる */
    line-height: inherit;
    /* ← 重要：親の行間を使う */
    margin-bottom: -0.6em;
    /* デモの-1emは強いので控えめに */
    opacity: 0;
    transform: translate(-10px, 30px) rotate3d(1, 0.3, 0, 90deg);
    transform-origin: 50% 100%;
    transition: transform 1.4s cubic-bezier(0.08, 0.8, 0.315, 1), opacity .6s ease;
}

/* 発火時 */
.txtanimation.__show .__row>span {
    margin-bottom: 0;
    opacity: 1;
    transform: translate(0, 0) rotate3d(0, 0, 0, 0);
}