/* ==================================================
   基本設定
================================================== */

:root {
    --color-main: #245995;
    --color-main-dark: #163c69;
    --color-accent: #e79b42;
    --color-text: #263238;
    --color-subtext: #64717b;
    --color-background: #f4f7fa;
    --color-white: #ffffff;
    --color-border: #d8e0e7;

    --wrap-width: 1200px;
    --header-height: 84px;

    --shadow-card:
        0 12px 32px rgba(25, 54, 82, 0.12);

    --slide-width: 76%;
    --button-gap: 10px;
}

/*
    paddingやborderを幅・高さに含める
*/
*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    color: var(--color-text);
    background-color: var(--color-background);
    font-family:
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        "Meiryo",
        sans-serif;
    line-height: 1.7;
}


img {
    display: block;
    max-width: 100%;
}


a {
    color: inherit;
    text-decoration: none;
}


button {
    font: inherit;
}


/* ==================================================
   ページ全体のwrap
================================================== */

.page-wrap {
    width: min(100% - 40px, var(--wrap-width));
    margin-inline: auto;
    background-color: var(--color-white);
    box-shadow: 0 0 40px rgba(25, 54, 82, 0.08);
}


/* ==================================================
   ヘッダー
================================================== */

.header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.96);
}


.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 1200px;

    min-height: var(--header-height);

    margin: 0 auto;
    padding: 0 24px;
}}

.header__logo {
    display: block;
}

.header__logo img {
    display: block;
    width: 280px;
    height: auto;
}

.global-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}


.global-nav__list a {
    position: relative;
    display: block;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
}


.global-nav__list a::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    margin: auto;
    background-color: var(--color-main);
    content: "";
    transition: width 0.25s ease;
}


.global-nav__list a:hover::after {
    width: 100%;
}


/* スマートフォン用メニューボタン */

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}


.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background-color: var(--color-main-dark);
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* メニュー展開時の×印 */

.menu-button.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}


.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}


.menu-button.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.carousel {
    position: relative;
}

/* 
==================================================
   カルーセルカード共通
================================================== */

.carousel__viewport {
    overflow: hidden;
}

.carousel__track {
    display: flex;
    align-items: center;
    transition: transform 0.55s ease;
will-change: transform;
backface-visibility: hidden;
}

.carousel__slide {
    flex: 0 0 76%;
    box-sizing: border-box;
    padding: 0 12px;
    backface-visibility: hidden;
}

.carousel-card {
    position: relative;
    width: 100%;
    height: /*440*/650px;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 20px;
    isolation: isolate;
    will-change: transform;
    backface-visibility: hidden;
}

/* 左右のカード */
/*.carousel__slide:not(.is-active) .carousel-card {
    height: 400px;
    transition: height 0.55s ease;
}*/

/* 中央のカード */
/*.carousel__slide.is-active .carousel-card {
    height: 440px;
}
*/

/* 左右カード */
.carousel__slide:not(.is-active) .carousel-card {

    transform: scaleY(0.91);

    opacity: 0.55;

    filter: blur(1.5px);

    transition:
        transform 0.55s ease,
        opacity 0.55s ease,
        filter 0.55s ease;
}


/* 中央カード */
.carousel__slide.is-active .carousel-card {

    transform: scaleY(1);

    opacity: 1;

    filter: blur(0);

}



.carousel-card__content {
    position: relative;
    z-index: 2;
    width: min(80%, 620px);
    padding: 58px;
    box-sizing: border-box;
    color: var(--color-white);
}
/* ==================================================
   無限ループの瞬間移動
================================================== */

/*
    複製スライドから本物のスライドへ戻る瞬間は、
    trackとカードのtransitionをすべて停止する
*/
.carousel.is-jumping .carousel__track,
.carousel.is-jumping .carousel-card {
    transition: none !important;
}
/* ==================================================
   カード内の文字エリア・共通
================================================== */
.carousel-card__content {
    position: relative;
    z-index: 2;
    width: min(90%, 800px);
    padding: 58px;
    box-sizing: border-box;
    color: var(--color-white);
}

/* ==================================================
   円形装飾カード
================================================== */

/*
    円形装飾カードでは画像を表示しない

    HTMLに画像タグが残っていても非表示になるため、
    テンプレートを共通化する場合にも利用できる
*/
/*
.carousel-card--design .carousel-card__image {
    display: none;
}
*/

/* 円形装飾カードの疑似要素共通 */
/*
.carousel-card--design::before,
.carousel-card--design::after {
    /* カードを基準に自由な位置へ配置する */
    /*position: absolute;

    /* 文字より後ろに配置する */
    /*z-index: 1;

    /* 円形にする */
   /* border-radius: 50%;

    /* 疑似要素を生成する */
    /*content: "";
}


/* 右上の円形装飾 */
/*.carousel-card--design::before {
    /* 上方向へ100pxはみ出させる */
  /*  top: -100px;

    /* 右方向へ70pxはみ出させる */
   /* right: -70px;

    /* 円の横幅 */
   /* width: 400px;

    /* 円の高さ */
   /* height: 400px;

    /* 半透明の白い円 */
   /* background-color: rgba(255, 255, 255, 0.12);
}


/* 右下のリング装飾 */
/*.carousel-card--design::after {
    /* カード右端から120pxの位置に置く */
  /*  right: 120px;

    /* カード下端から130pxはみ出させる */
   /* bottom: -130px;

    /* リングの横幅 */
   /* width: 260px;

    /* リングの高さ */
   /* height: 260px;

    /* 太い枠線でリングを作る */
   /* border: 45px solid rgba(255, 255, 255, 0.1);
}


/* ==================================================
   円形装飾カードの背景色
================================================== */
/*
    カード背景

    左上 → 右下へ
    濃い紫から薄い紫へ変化する
    線形グラデーション
*/
/* 1種類目：青系 */
.carousel-card--01 {
    background:
        linear-gradient(
            90deg,
            rgba(20, 45, 65, 0.80) 0%,
            rgba(20, 45, 65, 0.20) 40%,
            rgba(20, 45, 65, 0.12) 60%,
            rgba(20, 45, 65, 0.02) 100%
        ),
        url("../images/hero01.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* 2種類目：緑系 */
.carousel-card--02 {
    background:
        linear-gradient(
            90deg,
            rgba(20, 45, 65, 0.72) 0%,
            rgba(20, 45, 65, 0.50) 38%,
            rgba(20, 45, 65, 0.18) 62%,
            rgba(20, 45, 65, 0.02) 100%
        ),
        url("../images/hero02.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.carousel-card--02 .carousel-card__content {
    width: min(82%, 700px);
}

/* 3種類目：紫系 */
.carousel-card--03 {
    background:
        linear-gradient(
            90deg,
            rgba(20, 45, 65, 0.74) 0%,
            rgba(20, 45, 65, 0.50) 38%,
            rgba(20, 45, 65, 0.16) 65%,
            rgba(20, 45, 65, 0.02) 100%
        ),
        url("../images/hero03.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 4種類目：ローズ系 */
.carousel-card--04 {
    background:
        linear-gradient(
            90deg,
            rgba(20, 45, 65, 0.58) 0%,
            rgba(20, 45, 65, 0.34) 36%,
            rgba(20, 45, 65, 0.08) 62%,
            rgba(20, 45, 65, 0.00) 100%
        ),
        url("../images/hero04.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-card__label {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.22em;
}


.carousel-card__title {
    margin: 0 0 22px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.25;
    letter-spacing: 0.04em;
}


.carousel-card__text {
    max-width: 500px;
    margin: 0 0 32px;
    font-size: 16px;
}


/* 共通ボタン */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 52px;
    padding: 12px 28px;
    border: 2px solid var(--color-white);
    border-radius: 100px;
    background-color: var(--color-white);
    color: var(--color-main-dark);
    font-weight: 700;
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;

}


.button:hover {
    background-color: transparent;
    color: var(--color-white);
    transform: translateY(-2px);
}


/* 前へ・次へボタン */

.carousel__button {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.94);
    color: var(--color-main-dark);
    box-shadow: 0 8px 20px rgba(20, 48, 75, 0.18);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.carousel__button:hover {
    background-color: var(--color-main);
    color: var(--color-white);
}

/*
.carousel__button--prev {
    left: 8%;
}


.carousel__button--next {
    right: 8%;
*/
.carousel__button--prev {
    left: calc((100% - var(--slide-width)) / 2 - var(--button-gap));
}

.carousel__button--next {
    right: calc((100% - var(--slide-width)) / 2 - var(--button-gap));
}


/* カルーセルのドット */

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}


.carousel__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #bdc8d1;
    cursor: pointer;
    transition:
        width 0.25s ease,
        border-radius 0.25s ease,
        background-color 0.25s ease;
}


.carousel__dot.is-active {
    width: 34px;
    border-radius: 100px;
    background-color: var(--color-main);
}


/* ==================================================
   コンテンツ
================================================== */

.contents {
    padding: 90px 48px 110px;
}


.section-heading {
    margin-bottom: 52px;
    text-align: center;
}


.section-heading__sub {
    margin: 0 0 4px;
    color: var(--color-main);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
}


.section-heading__title {
    margin: 0;
    color: var(--color-main-dark);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.4;
}


.section-heading__text {
    margin: 12px 0 0;
    color: var(--color-subtext);
}


/* 1列×2段 */

.contents-grid {
    display: grid;
    /*grid-template-columns: repeat(2, minmax(0, 1fr));*/
    grid-template-columns:1fr));
    gap: 40px;
}


/* コンテンツカード */

.content-card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background-color: var(--color-white);
    box-shadow: 0 8px 25px rgba(25, 54, 82, 0.10);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.content-card:hover {
    box-shadow: 0 18px 38px rgba(25, 54, 82, 0.15);
    transform: translateY(-6px);
}


.content-card__image {
    display: grid;
    place-items: center;
    min-height: 230px;
}


.content-card__image span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 32px;
    font-weight: 700;
}


.content-card__image--01 {
    background-image: url("../images/about-card.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.content-card__image--02 {
    background-image: url("../images/services-card.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content-card__image--03 {
    background-image: url("../images/works-card.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content-card__image--04 {
    background-image: url("../images/news-card.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.content-card__image--05 {
    background-image: url("../images/careers-card.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.content-card__image--06 {
    background-image: url("../images/contact-card.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.content-card__body {
    padding: 34px 36px 38px;
}


.content-card__category {
    margin: 0 0 4px;
    color: var(--color-main);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
}


.content-card__title {
    margin: 0 0 12px;
    color: var(--color-main-dark);
    font-size: 24px;
}


.content-card__text {
    margin: 0 0 22px;
    color: var(--color-subtext);
    font-size: 16px;
    line-height:1.8
}


.content-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-main);
    font-weight: 700;
}


.content-card__link span {
    transition: transform 0.2s ease;
}


.content-card__link:hover span {
    transform: translateX(5px);
}


/* ==================================================
   フッター
================================================== */

.footer {
    padding: 52px 48px 20px;
    background-color: var(--color-main-dark);
    color: var(--color-white);
}

.footer__copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    text-align: center;
}

.footer__copyright p {
    margin: 0;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 50px;

    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    padding-bottom: 42px;
}


.footer__information {
    max-width: 440px;
}


.footer__logo {
    margin: 0 0 12px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0.08em;
}


.footer__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}


.footer-nav__list {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 12px 38px;
    margin: 0;
    padding: 0;
    list-style: none;
}


.footer-nav__list a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}


.footer-nav__list a:hover {
    color: var(--color-white);
    text-decoration: underline;
}


/* ==================================================
   タブレット
================================================== */

@media (max-width: 900px) {

    .page-wrap {
        width: 100%;
    }


    .header__inner {
        padding-inline: 28px;
    }


    .global-nav__list {
        gap: 20px;
    }


    .carousel__slide {
        flex-basis: 78%;
    }


    .carousel-card {
        min-height: 400px;
    }


    .carousel-card__content {
        width: 90%;
        padding: 42px;
    }


    .carousel__button--prev {
        left: 3%;
    }


    .carousel__button--next {
        right: 3%;
    }


    .contents {
        padding-inline: 30px;
    }

}


/* ==================================================
   スマートフォン
================================================== */

@media (max-width: 700px) {

    :root {
        --header-height: 70px;
    }


    .header__inner {
        padding-inline: 20px;
    }


    .header__logo img {
    width: 240px;
    }


    /* メニューボタンを表示 */

    .menu-button {
        position: relative;
        z-index: 30;
        display: block;
    }


    /* スマートフォン用ナビゲーション */

    .global-nav {
        position: absolute;
        z-index: 25;
        top: 100%;
        right: 0;
        left: 0;
        visibility: hidden;
        overflow: hidden;
        max-height: 0;
        background-color: var(--color-white);
        opacity: 0;
        box-shadow: 0 12px 20px rgba(25, 54, 82, 0.12);
        transition:
            max-height 0.3s ease,
            opacity 0.3s ease,
            visibility 0.3s ease;
    }


    .global-nav.is-open {
        visibility: visible;
        max-height: 400px;
        opacity: 1;
    }


    .global-nav__list {
        display: block;
        padding: 12px 20px 22px;
    }


    .global-nav__list li {
        border-bottom: 1px solid var(--color-border);
    }


    .global-nav__list a {
        padding: 14px 6px;
    }


    .global-nav__list a::after {
        display: none;
    }


    /* カルーセル */

    .carousel-section {
        padding: 28px 0 46px;
    }


    .carousel__slide {
        flex-basis: 88%;
        padding-inline: 8px;
    }


    .carousel-card {
        min-height: 420px;
        border-radius: 14px;
    }


    .carousel-card__content {
        width: 100%;
        padding: 32px 26px;
    }


    .carousel-card__title {
        font-size: 34px;
    }


    .carousel-card__text {
        font-size: 14px;
    }


    .carousel__button {
        width: 42px;
        height: 42px;
    }


    .carousel__button--prev {
        left: calc(12% - 26px);
    }

    .carousel__button--next {
        right: calc(12% - 26px);
    }


    /* コンテンツを1列に変更 */

    .contents {
        padding: 66px 20px 78px;
    }


    .section-heading {
        margin-bottom: 36px;
    }


    .contents-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }


    .content-card__image {
        min-height: 180px;
    }

    .content-card__image span {
        padding-inline: 12px;
        font-size: 32px;
        line-height: 1.3;
        text-align: center;
    }
    .content-card__body {
        padding: 25px 24px 28px;
    }


    /* フッター */

    .footer {
        padding: 42px 24px 18px;
    }


    .footer__inner {
        display: block;
        padding-bottom: 32px;
    }


    .footer-nav {
        margin-top: 32px;
    }


    .footer-nav__list {
        grid-template-columns: 1fr 1fr;
        gap: 10px 24px;
    }

}


/* ==================================================
   小さいスマートフォン
================================================== */

@media (max-width: 420px) {

    .carousel-card__title {
        font-size: 29px;
    }


    .carousel-card__content {
        padding-inline: 22px;
    }


    .button {
        min-width: 160px;
    }


    .content-card__image span {
        font-size: 30px;
    }

}
