/* ==================================================
   MAKER CATEGORY COMMON CSS
   最大幅1500px・レスポンシブ対応
================================================== */


/* ==================================================
   共通設定
================================================== */

:root {

    /* ページ最大幅 */
    --content-width: 1500px;

    /* セクション間の余白 */
    --section-gap: 50px;

    /* スマートフォン時の余白 */
    --section-gap-sp: 22px;

    /* 見出し背景色 */
    --heading-color: #011e62;

    /* 見出し文字色 */
    --heading-text-color: #ffffff;

    /* 見出し上下余白 */
    --heading-padding: 15px 20px;

    /* 角丸 */
    --border-radius: 0px;

    /* スライド速度 */
    --slide-speed: 0.6s;

    /* スライド矢印背景 */
    --button-bg: rgba(0, 0, 0, 0.35);

    /* スライド矢印ホバー */
    --button-hover: rgba(0, 0, 0, 0.65);

    /* インジケーター選択中 */
    --indicator-active: #ffffff;

    /* インジケーター通常 */
    --indicator-normal: rgba(255, 255, 255, 0.55);

    /* 画像ホバー時の透明度 */
    --image-hover-opacity: 0.85;
}


/* ==================================================
   MakeShop 左側メニューを非表示
================================================== */

#makebanner > tbody > tr > td[width="150"] {
    display: none !important;
}


/* ==================================================
   MakeShop 外側レイアウト
================================================== */

#makebanner {
    width: 100% !important;
    max-width: var(--content-width) !important;
    margin: 0 auto !important;
    border-collapse: collapse !important;
}

#makebanner > tbody > tr > td:not([width="150"]) {
    width: 100% !important;
    max-width: var(--content-width) !important;
    padding: 0 !important;
}


/* ==================================================
   カテゴリーページ全体
================================================== */

.maker-category-page,
.maker-category-page *,
.maker-category-page *::before,
.maker-category-page *::after {
    box-sizing: border-box;
}

.maker-category-page {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.maker-category-page img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 0;
    vertical-align: bottom;
}

.maker-category-page a {
    display: block;
    margin: 0;
    padding: 0;
    text-decoration: none;
}


/* ==================================================
   セクション共通
================================================== */

.maker-section {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto var(--section-gap);
    padding: 0;
}


/* ==================================================
   メイン看板
================================================== */

.maker-main-header {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    border-radius: var(--border-radius);
}


/* ==================================================
   スライドショー
================================================== */

.maker-slideshow-area {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.maker-slide-container {
    position: relative;
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.maker-slide-wrapper {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    transition: transform var(--slide-speed) ease;
    will-change: transform;
}

.maker-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
}

.maker-slide a,
.maker-slide img {
    display: block;
    width: 100%;
}


/* ==================================================
   スライド矢印
================================================== */

.maker-nav-button {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 50px;
    height: 70px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--button-bg);
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.25s ease;
}

.maker-nav-button:hover {
    background: var(--button-hover);
}

.maker-prev {
    left: 10px;
}

.maker-next {
    right: 10px;
}


/* ==================================================
   インジケーター
================================================== */

.maker-indicators {
    position: absolute;
    right: 0;
    bottom: 15px;
    left: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.maker-indicator {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--indicator-normal);
    cursor: pointer;
    transition: background 0.25s ease;
}

.maker-indicator.active {
    background: var(--indicator-active);
}


/* ==================================================
   動画
================================================== */

.maker-movie-area {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.maker-movie-area video {
    display: block;
    width: 100%;
    max-width: var(--content-width);
    height: auto;
    margin: 0 auto;
    background: #000000;
    border-radius: var(--border-radius);
}


/* ==================================================
   見出し
================================================== */

.maker-heading {
    width: 100%;
    margin: 0;
    padding: var(--heading-padding);
    background: var(--heading-color);
    color: var(--heading-text-color);
    font-size: clamp(22px, 2.2vw, 34px);
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}


/* ==================================================
   2列グリッド
================================================== */

.maker-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}


/* ==================================================
   3列グリッド
================================================== */

.maker-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}


/* ==================================================
   4列グリッド
================================================== */

.maker-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
    gap: 0;
}


/* ==================================================
   グリッド共通
================================================== */

.maker-grid-2 a,
.maker-grid-3 a,
.maker-grid-4 a {
    overflow: hidden;
}

.maker-grid-2 img,
.maker-grid-3 img,
.maker-grid-4 img {
    width: 100%;
    transition: opacity 0.25s ease;
}

.maker-grid-2 a:hover img,
.maker-grid-3 a:hover img,
.maker-grid-4 a:hover img {
    opacity: var(--image-hover-opacity);
}


/* ==================================================
   個別余白調整
================================================== */

.maker-gap-small {
    margin-bottom: 20px;
}

.maker-gap-medium {
    margin-bottom: 40px;
}

.maker-gap-large {
    margin-bottom: 60px;
}


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

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

    #makebanner,
    #makebanner > tbody > tr > td:not([width="150"]) {
        width: 100% !important;
        max-width: 100% !important;
    }

    .maker-category-page {
        width: 100%;
        max-width: 100%;
    }

    .maker-section {
        margin-bottom: 35px;
    }

    .maker-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


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

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

    .maker-section {
        margin-bottom: var(--section-gap-sp);
    }

    .maker-heading {
        padding: 12px 10px;
        font-size: 22px;
    }

    .maker-grid-2,
    .maker-grid-3,
    .maker-grid-4 {
        grid-template-columns: 1fr;
    }

    .maker-nav-button {
        width: 36px;
        height: 52px;
        font-size: 30px;
    }

    .maker-prev {
        left: 5px;
    }

    .maker-next {
        right: 5px;
    }

    .maker-indicators {
        bottom: 8px;
    }

    .maker-indicator {
        width: 9px;
        height: 9px;
    }
}