/* ================================
   BAG PAGE HERO
================================ */

.bag-page-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    /* min-height: 420px; */
    overflow: hidden;
}

/* SP（767px以下） */
@media (max-width: 767px) {
    .bag-page-hero {
        height: 70vh;
        min-height: 420px;
    }
}

/* Splide ラッパー */
.bag-page-hero__slider {
    height: 100%;
}

/* スライド */
.bag-page-hero__slide {
    position: relative;
    height: 70vh;
}

@media (max-width: 767px) {
    .bag-page-hero__slide {
        height: 60vh;
    }
}

.bag-page-hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* オーバーレイ */
.bag-page-hero__overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.55));
    color: #fff;
}

/* 内側 */
.bag-page-hero__inner {
    position: relative;
    width: min(1200px, 100% - 40px);
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--container-width);
    margin: 0 auto;
    /* padding-inline: var(--space-sm); */
}

@media (min-width: 768px) {
    .bag-page-hero__inner {
        justify-content: space-between;
        padding-top: 110px;
        padding-bottom: 50px;
    }
}

.bag-page-intro__inner::before {
    content: '';
    display: inline-block;
    width: 400px;
    height: 300px;
    background-image: url(../images/common/page_bg_logo.svg);
    background-size: contain;
    vertical-align: middle;
    background-repeat: no-repeat;
    position: absolute;
    right: 10%;
    top: 0;
    opacity: 0.2;
    z-index: 5;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .bag-page-intro__inner::before {
        right: 5%;
    }
}

@media (max-width: 767px) {
    .bag-page-intro__inner::before {
        width: 200px;
        height: 150px;
        top: -30px;
        right: auto;
        left: 0;
    }
}

/* パンくず */
.bag-page-hero__breadcrumb {
    position: relative;
    z-index: 5;
    pointer-events: auto;
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

.bag-page-hero__breadcrumb ol {
    display: flex;
    list-style: none;
    /* margin: 0; */
    padding: 0;
}

.bag-page-hero__breadcrumb a {
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
}

/* タイトル */
.bag-page-hero__titles {
    max-width: 100%;
}

.bag-page-hero__eyebrow {
    font-size: 16px;
    letter-spacing: 0;
    margin-bottom: 0;
}

.bag-page-hero__en {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 400;
    /* letter-spacing: 0.18em; */
    line-height: 1;
}

.bag-page-hero__en span {
    display: inline-block;
    font-size: clamp(12px, 2vw, 20px);
    /* ← ここでかなり小さくできる */
    letter-spacing: 0.05em;
    margin-left: 0.25em;
    /* 少し隙間を空けると上品 */
}

.bag-page-hero__jp {
    margin-top: 15px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.bag-page-hero__lead {
    margin-top: 15px;
    font-size: 16px;
    line-height: 1;
}

/* Splide ドット位置 */
.bag-page-hero .splide__pagination {
    bottom: 24px;
    right: 32px;
    left: auto;
    justify-content: flex-end;
}

.bag-page-hero .splide__pagination__page {
    background: rgba(255, 255, 255, 0.6);
}

.bag-page-hero .splide__pagination__page.is-active {
    background: #ffffff;
}

/* SP サイズ */
@media (max-width: 767px) {
    .bag-page-hero__inner {
        width: 100%;
        padding-inline: 5%;
        padding-top: 70px;
        padding-bottom: 5%;
        gap: 30px;
        justify-content: space-between;
    }

    .bag-page-hero__breadcrumb {
        top: 0;
        font-size: 12px;
        margin-bottom: 0;
    }

    .bag-page-hero__eyebrow {
        font-size: 12px;
        letter-spacing: 0.2em;
    }

    .bag-page-hero__en {
        font-size: clamp(32px, 10vw, 52px);
    }

    .bag-page-hero__jp {
        font-size: 22px;
        margin-top: 15px;
        line-height: 1.4;
    }

    .bag-page-hero__lead {
        font-size: 14px;
        line-height: 1.8;
    }
}



/* ================================
   BAG PAGE INTRO
================================ */

.bag-page-intro {
    position: relative;
    padding: 80px 0;
    background: #224f34;
    color: #fff;
    overflow: hidden;
}

.bag-page-intro__inner {
    /* display: grid; */
    display: block;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    position: relative;
}

.bag-page-intro__photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 10px;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .bag-page-intro__photo img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 10px;
    }
}

.bag-page-intro__label {
    font-size: 16px;
    letter-spacing: 0;
    margin-bottom: 0;
    opacity: 1;
}

.bag-page-intro__title {
    font-size: 28px;
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 700;
}

.bag-page-intro__text {
    font-size: 16px;
}

@media (max-width: 767px) {
    .bag-page-intro__text {
        font-size: 14px;
    }
}

/* 背景の大きな英字 */
.bag-page-intro__bg-word {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: clamp(60px, 15vw, 160px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    user-select: none;
}

/* SP対応 */
@media (max-width: 991px) {
    .bag-page-intro__inner {
        display: flex;
        gap: 50px;
        flex-direction: column-reverse;
    }

    .bag-page-intro {
        padding: 56px 0 80px;
    }

    .bag-page-intro__title {
        font-size: 26px;
    }
}

/* 背景の大きな英字 */
.bag-page-intro__bg-word {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    /* 縦センター */
    justify-content: center;
    /* 横センター */
    overflow: hidden;
    pointer-events: none;
}

.bag-page-intro__bg-word span {
    display: inline-block;
    white-space: nowrap;
}


.bg-word-track {
    display: inline-block;
    white-space: nowrap;
    font-size: clamp(80px, 15vw, 220px);
    font-weight: 700;
    color: rgba(0, 0, 0, 0.05);
    letter-spacing: 0.05em;

    animation: bg-word-scroll 70s linear infinite;
}

@keyframes bg-word-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ================================
   BAG PAGE - GENRE SECTION
================================ */

.bag-page-section--genre {
    position: relative;
    padding: 100px 0;
    background: #f7f7f7;
}

/* 上部ヘッダー */
.bag-genre__inner {
    position: relative;
}

.bag-genre__head {
    margin-bottom: 56px;
}

.bag-genre__titles {
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .bag-genre__titles {
        text-align: center;
    }
}

.bag-genre__label {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.18em;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-text-light);
    margin-bottom: 0;
}

.bag-genre__title {
    font-size: 60px;
    letter-spacing: 0;
    margin-bottom: 10px;
    line-height: 1;
    color: var(--color-text);
}

@media (max-width: 767px) {
    .bag-genre__title {
        font-size: 40px;
    }
}

.bag-genre__lead {
    font-size: 16px;
}

@media (max-width: 767px) {
    .bag-genre__lead {
        font-size: 14px;
    }
}


/* 各ジャンルブロック */
.bag-genre-block {
    border-top: 1px solid #ddd;
    padding-top: 40px;
    margin-top: 56px;
}

@media (max-width: 767px) {
    .bag-genre-block__head {
        text-align: center;
    }
}

.bag-genre-block__en {
    font-size: 12px;
    color: #224f34;
    margin-bottom: 5px;
    font-weight: 500;
}

.bag-genre-block__head .bag-genre-block__title {
    font-size: 40px;
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .bag-genre-block__head .bag-genre-block__title {
        font-size: 26px;
    }
}

.bag-genre-products__wrap .bag-genre-block__title {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .bag-genre-products__wrap .bag-genre-block__title {
        font-size: 22px;
        text-align: center;
    }
}

.bag-genre-block__subtitle {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bag-genre-block__text {
    font-size: 16px;
}

@media (max-width: 767px) {
    .bag-genre-block__text {
        font-size: 14px;
        text-align: left;
    }
}

.bag-genre-products__wrap {
    margin-top: 50px;
}

/* 商品リスト（3カラム） */
.bag-genre-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.bag-genre-product__thumb {
    margin: 0;
    margin-bottom: 15px;
}

.bag-genre-product__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.bag-genre-product__name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (max-width: 767px) {
    .bag-genre-product__name {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 8px;
    }
}

.bag-genre-product__desc {
    font-size: 14px;
    line-height: 1.8;
}

/* 右サイド縦ラベル */
.bag-genre__side-label {
    position: absolute;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #999;
    writing-mode: vertical-rl;
}

.bag-genre__side-label-en {
    font-size: 12px;
}

/* SP 調整 */
@media (max-width: 1024px) {
    .bag-page-section--genre {
        padding: 72px 0 96px;
    }

    .bag-genre-products {
        gap: 24px;
    }

    .bag-genre__side-label {
        right: 12px;
    }
}

@media (max-width: 767px) {
    .bag-genre-products {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .bag-genre-block {
        margin-top: 40px;
    }

    .bag-genre__side-label {
        display: none;
    }
}


.bag-page-message__parallax .parallax-image {
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -10%;
    /* width: 100%;
    height: 130%; */
    background-image: url(../images/bag/genre/parallax.jpg);
    background-size: cover;
    background-position: bottom center;
    will-change: transform;
    transform: translateY(0);
}

/* ================================
   BAG PAGE - WHY US
================================ */

.bag-page-section--why {
    background: #e7efe8;
}

/* 上部ヒーロー（濃いグリーン＋右側背景画像） */
.bag-why-hero {
    background-color: #21402d;
    background-image: url("../images/bag/why-us/hero.png");
    background-repeat: no-repeat;
    background-position: right 15%;
    background-size: auto 200%;
    color: #fff;
    padding-bottom: 150px;
}

.bag-why-hero__inner {
    padding: 96px 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.bag-why-hero__label {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.16em;
    margin-bottom: 16px;
}

.bag-why-hero__title {
    font-size: clamp(40px, 7vw, 72px);
    letter-spacing: 0.16em;
    margin-bottom: 32px;
}

.bag-why-hero__copy p {
    font-size: 16px;
    line-height: 1.9;
}

.bag-why-hero__copy p+p {
    margin-top: 4px;
}

.bag-why-hero__text {
    margin-top: 24px;
    font-size: 14px;
    line-height: 2;
}

/* 下部：3つの項目全体 */
.bag-why-detail {
    margin-top: -150px;
    padding-top: 200px;
    padding-bottom: 100px;
    border-top-left-radius: 100px;
    background-color: #e7efe8;
}

.bag-why-detail__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* 各項目のレイアウト */
.bag-why-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 80px;
}

.bag-why-item--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.bag-why-item--reverse .bag-why-item__text {
    order: 2;
}

.bag-why-item--reverse .bag-why-item__photo {
    order: 1;
}

/* テキスト側 */
.bag-why-item__en {
    font-size: 12px;
    letter-spacing: 0.18em;
    color: #999;
    margin-bottom: 8px;
}

.bag-why-item__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.bag-why-item__body {
    font-size: 14px;
    line-height: 2;
    color: #555;
}

/* 画像側 */
.bag-why-item__photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* 背景の縦書き英字 */
.bag-why-item__bg-word {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 52px;
    font-weight: 700;
    color: rgb(41 81 53 / 10%);
    letter-spacing: 0.18em;
    text-transform: capitalize;
    pointer-events: none;
    user-select: none;
    writing-mode: vertical-rl;
}

/* 左側に縦書き */
.bag-why-item--has-bg-left .bag-why-item__bg-word {
    left: -40px;
}

/* 右側に縦書き */
.bag-why-item--has-bg-right .bag-why-item__bg-word {
    right: -40px;
}

/* レスポンシブ調整 */
@media (max-width: 1100px) {
    .bag-why-hero {
        background-position: right top;
        background-size: 60%;
    }
}

@media (max-width: 900px) {
    .bag-why-hero {
        background-image: none;
    }

    .bag-why-hero__inner {
        padding: 72px 16px 64px;
    }

    .bag-why-item {
        grid-template-columns: 1fr;
    }

    .bag-why-item--reverse .bag-why-item__text,
    .bag-why-item--reverse .bag-why-item__photo {
        order: initial;
    }

    .bag-why-item__bg-word {
        display: none;
    }

    .bag-why-detail {
        margin-top: 0;
        padding-top: 40px;
    }
}



/* ================================
   BAG PAGE - OEM / ODM FLOW
================================ */

.bag-page-section--flow {
    background: #f4f4f0;
    padding: 100px 0;
}

.bag-flow__head {
    text-align: center;
    margin-bottom: 100px;
}

.bag-flow__eyebrow {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.18em;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-text-light);
    margin-bottom: 0;
}

.bag-flow__title {
    font-size: 60px;
    letter-spacing: 0;
    margin-bottom: 10px;
    line-height: 1;
    color: var(--color-text);
}

@media (max-width: 767px) {
    .bag-flow__title {
        font-size: 40px;
    }
}

/* STEP（共通） */
.bag-flow-step {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 64px 0;
    border-bottom: 1px dashed #d7d7d7;
}

.bag-flow-step:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.bag-flow-step__num {
    min-width: 160px;
    text-align: center;
    color: #205232;
    line-height: 1;
}

.bag-flow-step__num-label {
    display: block;
    letter-spacing: 0.18em;
    font-size: 16px;
    color: #224f34;
    margin-bottom: 5px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .bag-flow-step__num-label {
        text-align: center;
    }
}

.bag-flow-step__num-value {
    display: block;
    font-size: 96px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.bag-flow-step__body {
    flex: 1;
}

.bag-flow-step__title {
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 767px) {
    .bag-flow-step__title {
        font-size: 26px;
        margin-bottom: 30px;
        text-align: center;
        line-height: 1.6;
    }
}

.bag-flow-step__text {
    font-size: 16px;
}

.bag-flow-step__body.jisage {
    padding-left: 1em;
    text-indent: -1em;
}

@media (max-width: 767px) {
    .bag-flow-step__text {
        font-size: 14px;
    }
}

/* SPレイアウト */
@media (max-width: 767px) {
    .bag-flow-step {
        flex-direction: column;
        gap: 24px;
        padding: 40px 0;
    }

    .bag-flow-step__num {
        text-align: left;
        min-width: auto;
    }

    .bag-flow-step__num-value {
        font-size: 64px;
    }
}



/* 中央カード */
.bag-flow-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px 48px;
    margin: 40px 0 64px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.bag-flow-block+.bag-flow-block {
    /* margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #eee; */
}

.bag-flow-block__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.bag-flow-block__text {
    font-size: 13px;
    line-height: 2;
    color: #555;
}

/* デザインイメージ */
.bag-flow-design__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /* margin-bottom: 32px; */
}

.bag-flow-design-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* 素材 */
.bag-flow-mat__grid {
    /* display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px 30px;
    margin-bottom: 0; */
}

.bag-flow-mat__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 50px 30px;
    justify-items: center;
    /* ← 各アイテム中央寄せ */
    margin-bottom: 0;
}

/* 各カード（PC：3つ横並び） */
.bag-flow-mat--main .bag-flow-mat__grid>figure {
    grid-column: span 4;
    /* 12/3=4 */
    width: 100%;
    /* max-width: 360px; */
    /* 任意：デカくなりすぎ防止。不要なら消してOK */
}

/* 2段目（4つ目・5つ目）を中央寄せ配置 */
@media (min-width: 768px) {
    .material-etc .bag-flow-mat--main .bag-flow-mat__grid>figure:nth-child(4) {
        grid-column: 3 / span 4;
        /* 左に余白を作って中央寄せ */
    }

    .material-etc .bag-flow-mat--main .bag-flow-mat__grid>figure:nth-child(5) {
        grid-column: 7 / span 4;
    }
}

/* .bag-flow-mat__grid>* {
    width: calc((100% - 60px) / 3);
} */


.bag-flow-mat__grid figure img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.bag-flow-mat__grid figcaption {
    margin-top: 6px;
    font-size: 12px;
}

/* サイズテーブル */
.bag-flow-size__table-wrap {
    margin-bottom: 24px;
    overflow-x: auto;
}

.bag-flow-size__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 480px;
}

.bag-flow-size__table th,
.bag-flow-size__table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

.bag-flow-size__table th {
    background: #f7f7f7;
    width: 120px;
}

/* 使用シーン */
.bag-flow-block--center {
    text-align: center;
}

.bag-flow-scene {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* スマホ */
@media (max-width: 767px) {
    .bag-flow-scene {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.bag-flow-scene__item {
    /* width: min(220px, 45%); */
}

.bag-flow-scene__item img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.bag-flow-scene__item figcaption {
    margin-top: 5px;
    font-size: 14px;
    /* color: #555; */
    text-align: center;
}

/* レスポンシブ */
@media (max-width: 767px) {
    .bag-flow-mat__grid {
        /* grid-template-columns: repeat(2, 1fr) !important; */
    }

    .bag-flow-scene__item {
        width: 100%;
    }

    .bag-flow-mat--main .bag-flow-mat__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px 16px;
    }

    .bag-flow-mat--main .bag-flow-mat__grid>figure {
        grid-column: auto;
        max-width: none;
    }

    /* 5つ目だけ中央寄せ（サイズは他と同じ） */
    .material-etc .bag-flow-mat--main .bag-flow-mat__grid>figure:last-child {
        grid-column: 1 / -1;
        /* 2列またぎ */
        width: 50%;
        /* 2カラムの1個分と同サイズ */
        justify-self: center;
    }
}



/* ================================
   FLOW：上部のSTEPフロー図
================================ */

.bag-flow-diagram {
    margin: 40px 0 56px;
    position: relative;
}

.bag-flow-diagram__list {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.bag-flow-diagram__item {
    position: relative;
    flex: 1 1 0;
    text-align: center;
}

/* 左から右への横線（円どうしをつなぐ） */
.bag-flow-diagram__item::before {
    content: "";
    position: absolute;
    top: 32px;
    left: -50%;
    width: 100%;
    height: 2px;
    background-color: #205232;
    z-index: 0;
}

.bag-flow-diagram__item:first-child::before {
    content: none;
}

/* 丸いSTEPアイコン */
.bag-flow-diagram__circle {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background-color: #205232;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bag-flow-diagram__num {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* 下のテキスト */
.bag-flow-diagram__label {
    font-size: 14px;
    color: #205232;
    font-weight: 600;
}

/* SP 調整：2列＋ジグザグ線 */
@media (max-width: 767px) {

    .bag-flow-diagram__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 32px;
        row-gap: 40px;
    }

    .bag-flow-diagram__item::before,
    .bag-flow-diagram__item::after {
        content: none;
    }

    .bag-flow-diagram__item {
        position: relative;
    }

    /* 01,03,05 から右へ横線（→02,04,06） */
    .bag-flow-diagram__item:nth-child(1)::before,
    .bag-flow-diagram__item:nth-child(3)::before,
    .bag-flow-diagram__item:nth-child(5)::before {
        content: "";
        position: absolute;
        top: 36px;
        left: 50%;
        width: calc(100% + 32px);
        height: 2px;
        background-color: #205232;
    }
}

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

    .bag-flow-diagram__item:nth-child(2)::after,
    .bag-flow-diagram__item:nth-child(4)::after {
        content: "";
        position: absolute;
        top: 36px;
        left: 50%;
        width: 2px;
        height: 320%;
        background-color: #205232;
        transform-origin: top center;
        transform: rotate(68deg);
    }
}

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

    .bag-flow-diagram__item:nth-child(2)::after,
    .bag-flow-diagram__item:nth-child(4)::after {
        content: "";
        position: absolute;
        top: 36px;
        left: 50%;
        width: 2px;
        height: 300%;
        background-color: #205232;
        transform-origin: top center;
        transform: rotate(65deg);
    }
}

@media (min-width: 500px) and (max-width: 599px) {

    .bag-flow-diagram__item:nth-child(2)::after,
    .bag-flow-diagram__item:nth-child(4)::after {
        content: "";
        position: absolute;
        top: 36px;
        left: 50%;
        width: 2px;
        height: 270%;
        background-color: #205232;
        transform-origin: top center;
        transform: rotate(60deg);
    }
}

@media (max-width: 499px) {

    .bag-flow-diagram__item:nth-child(2)::after,
    .bag-flow-diagram__item:nth-child(4)::after {
        content: "";
        position: absolute;
        top: 36px;
        left: 50%;
        width: 2px;
        height: 218%;
        background-color: #205232;
        transform-origin: top center;
        transform: rotate(55deg);
    }
}

/* ======================================================
   BAG FLOW CARD（GLOVE と同じ見せ方に寄せる）
   - 「バッグの仕様を決める」内の
     「デザインイメージ」「メイン素材」用
======================================================= */

.bag-flow-card {
    background: #e7e7e4;
    border-radius: 16px;
    padding: 40px 32px 48px;
    margin: 40px 0 64px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .bag-flow-card {
        padding: 20px 15px;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .bag-flow-block {
        /* margin-bottom: 50px;
        padding-bottom: 50px;
        border-bottom: 1px solid #ccc; */
        padding-bottom: 0;
    }

    .bag-flow-block:first-of-type {
        padding-top: 0;
    }
}

/* ブロック区切り */
.bag-flow-block+.bag-flow-block {
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid #ccc;
}

/* 英字ラベル */
.bag-flow-block__en {
    font-size: 12px;
    /* letter-spacing: 0.18em; */
    color: #295135;
    margin-bottom: 0;
    font-weight: 600;
}

.bag-flow-block__en::before {
    content: "\25cf";
    color: #295135;
    font-size: 80%;
    margin-right: 6px;
}

/* タイトル（大きめ） */
.bag-flow-block__title {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 素材（メイン素材） */
.bag-flow-block__description {
    font-size: 16px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    .bag-flow-block__description {
        font-size: 14px;
    }
}

.bag-flow-mat__grid {
    gap: 50px 30px;
}

.bag-flow-mat__grid figure {
    margin: 0;
    width: 100%;
}

/* スマホ：2カラム */
@media (max-width: 767px) {
    .bag-flow-mat__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    /* 最後の1つを中央寄せ */
    .material-etc .bag-flow-mat__grid figure:last-child {
        grid-column: 1 / -1;
        /* 2カラムをまたぐ */
        width: 50%;
        /* ← 他と同じサイズ感 */
        justify-self: center;
        /* 中央寄せ */
    }
}

.bag-flow-mat__grid figure img {
    border-radius: 8px;
}

.bag-flow-mat__grid figcaption {
    margin-top: 5px;
    text-align: center;
    /* padding-top: 5px; */
    font-size: 14px;
    /* line-height: 1;
    font-weight: 600; */
}

.bag-flow-mat__grid figcaption span {
    font-size: 12px;
}

/* デザインイメージ */
.bag-flow-design__description {
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 2;
    color: #555;
}

.bag-flow-design__grid figcaption {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    /* line-height: 1;
    font-weight: 600; */
}

.bag-flow-design__grid-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: #f4f4f0;
    border-radius: 10px;
    overflow: hidden;
    padding: 15px;
}

.bag-flow-design__img {
    margin: 0;
}

.bag-flow-design__img img {
    width: 100%;
    border-radius: 6px;
    background: #f5f5f5;
    display: block;
}

.bag-flow-design__text h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.bag-flow-design__text p {
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* SP */
@media (max-width: 767px) {
    .bag-flow-block__title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .bag-flow-design__grid-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .bag-flow-mat__grid {
        gap: 24px 16px;
    }
}

.size-table {
    max-width: inherit;
    margin: 0 auto;
}

.size-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 16px 12px;
    /* カード間の余白 */
}

.size-table thead th {
    background: #2f5b3a;
    /* 濃いグリーン */
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 14px 10px;
    border-radius: 10px;
    font-size: 16px;
}

.size-table tbody td {
    background: #f7f7f7;
    text-align: center;
    padding: 14px 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
}

@media (max-width: 767px) {
    .size-table table {
        border-spacing: 0 16px;
    }

    .size-table thead {
        display: none;
    }

    .size-table tbody tr {
        display: block;
        background: #f7f7f7;
        border-radius: 12px;
        padding: 0 15px;
        margin-bottom: 16px;
    }

    .size-table tbody td {
        display: flex;
        justify-content: flex-start;
        background: transparent;
        padding: 10px 0;
        border-radius: 0;
        gap: 50px;
        border-bottom: 1px dotted #a3a3a3;
    }

    .size-table tbody td:last-of-type {
        border-bottom: none;
    }

    .size-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #2f5b3a;
        width: 70px;
        text-align: left;
    }

    .size-table {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .size-table tbody {
        width: 100%;
        display: block;
    }
}