/* =========================
   全体
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #111;
    background-color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* メニュー開閉用チェックボックス（画面からは隠す） */
.menu-toggle {
    position: fixed;
    opacity: 0;
    pointer-events: none;
}


/* =========================
   ヘッダー
========================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 30px;

    z-index: 100;
    pointer-events: none;
}

.logo {
    display: block;
    pointer-events: auto;
}

.logo img {
    display: block;
    width: 90px;
    height: auto;
}


/* =========================
   ハンバーガーボタン
========================= */

.menu-button {
    width: 35px;
    height: 35px;

    border: none;
    background: transparent;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.menu-button span {
    display: block;

    width: 28px;
    height: 1.5px;

    background-color: #111;
}


/* =========================
   メニュー
========================= */

.menu {
    position: fixed;
    top: 0;
    right: 0;

    width: 420px;
    height: 100vh;

    background-color: #fff;

    z-index: 999;

    transform: translateX(100%);
    transition: transform 0.4s ease;

    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}

/* チェックボックスがONになったら開く */
.menu-toggle:checked ~ .menu {
    transform: translateX(0);
}

.menu ul {
    list-style: none;
    text-align: center;
}

.menu li {
    margin: 28px 0;
}

.menu li a {
    display: block;

    font-size: 20px;
    letter-spacing: 0.08em;

    padding: 12px 35px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* カーソルを合わせた項目だけ色が変わる */

.menu li a:hover {
    background-color: #111;
    color: #fff;
}


/* 閉じるボタン */

.close-button {
    position: absolute;
    top: 25px;
    right: 30px;

    border: none;
    background: none;

    font-size: 35px;
    font-weight: 200;
    line-height: 1;

    cursor: pointer;
    user-select: none;
}


/* =========================
   メインビジュアル
========================= */

.main-visual {
    width: 100%;

    /* ヘッダーと要素が被らないための余白 */
    padding-top: 100px;

    overflow: hidden;
}


/* エンドレスで流れ続けるテキスト */

.marquee-banner {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;

    margin-bottom: 16px;
    padding: 6px 0;

    pointer-events: none;
}

.marquee-track {
    display: inline-flex;
    width: max-content;
    -webkit-animation: marquee-scroll 20s linear infinite;
    animation: marquee-scroll 20s linear infinite;
}

.marquee-group {
    display: inline-flex;
    flex-shrink: 0;
}

.marquee-group span {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.15em;
    color: #555;
    padding-right: 80px;
}

@-webkit-keyframes marquee-scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}


/* スライダー */

.slider {
    display: flex;

    /* 左右の余白 */
    padding: 0 30px;

    /* 画像同士の隙間 */
    gap: 20px;

    width: 100%;

    overflow-x: auto;

    scroll-behavior: smooth;

    scrollbar-width: none;

    cursor: grab;

    touch-action: pan-y;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider:active {
    cursor: grabbing;
}


/* =========================
   PC・タブレット
========================= */

.slide {
    /*
       3枚 + 画像間の隙間20px × 2
       がちょうど入るようにする
    */
    flex: 0 0 calc((100% - 40px) / 3);

    display: block;

    overflow: hidden;
}

.slide img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    user-select: none;
    -webkit-user-drag: none;

    transition: transform 0.4s ease;
}


/* マウスを乗せたとき */

.slide:hover img {
    transform: scale(1.02);
}


/* =========================
   NEWS
========================= */

.news {
    padding: 80px 30px;
}

.news h2 {
    font-size: 24px;
    letter-spacing: 0.1em;

    margin-bottom: 25px;
}

.news p {
    font-size: 14px;
    color: #555;
}


/* =========================
   スマートフォン
========================= */

@media screen and (max-width: 767px) {

    /* ヘッダー */

    .header {
        height: 70px;

        padding: 15px 20px;
    }

    .logo img {
        width: 70px;
    }

    .menu-button {
        width: 30px;
        height: 30px;

        gap: 5px;
    }

    .menu-button span {
        width: 24px;
    }


    /* =====================
       スマホのメニュー
    ===================== */

    .menu {
        width: 100%;
    }

    .menu li {
        margin: 25px 0;
    }

    .menu li a {
        font-size: 18px;
    }

    .close-button {
        top: 17px;
        right: 20px;
    }


    /* =====================
       スマホのメインビジュアル
    ===================== */

    .main-visual {

        /*
          ヘッダー70px
          ＋ 流れるテキストまでの余白20px
        */
        padding-top: 90px;
    }

    .marquee-banner {
        margin-bottom: 12px;
        padding: 4px 0;
    }

    .marquee-group span {
        font-size: 12px;
        padding-right: 50px;
    }

    .slider {

        /* 左右に20pxの余白 */

        padding: 0 20px;

        /* スマホでも画像間に少し余白 */

        gap: 15px;
    }


    /*
       スマホでは1枚表示
       左右20pxの余白を引く
    */

    .slide {
        flex: 0 0 calc(100vw - 40px);
    }

    .slide img {
        aspect-ratio: 1 / 1;
    }


    /* =====================
       NEWS
    ===================== */

    .news {
        padding: 55px 20px;
    }

    .news h2 {
        font-size: 20px;

        margin-bottom: 20px;
    }

    .news p {
        font-size: 13px;
    }
}
