
/* メインタブ */
.main-tabs ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
    gap: 10px;
    border-bottom: 3px solid #FC9829;
    position: relative;
}

.main-tabs li {
    background: #FFEFD6;
    color: #333333;
    font-weight: bold;
    text-align: center;
    flex: 1;
    padding: 15px;
    margin: 0 !important;
    font-size: 16px;
    border: 2px solid transparent;
    border-bottom: 0px;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
    display: block;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PC版：最初のタブの角丸をなしに */
.main-tabs ul li:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* PC版：最後のタブの角丸をなしに */
.main-tabs ul li:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.main-tabs li:hover {
    border-color: #FC9829;
    color: #FC9829;
    background-color: #FFEFD6;
}

.main-tabs li.is-select {
    background: #FC9829;
    color: #fff;
    border: 2px solid #FC9829;
    border-bottom: 2px solid #FC9829;
    z-index: 1;
    margin-bottom: -4px;
}

.main-tabs li.is-select:after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0px;
    height: 5px;
    background: #FC9829;
    z-index: 2;
    padding-bottom: 4px;
    width: 100%;
}

/* タブコンテンツ */
.tab-content {
    width: 100%;
}

/* サブタブ */
.sub-tabs {
    margin-bottom: 30px;
}

.sub-tabs .bag-type-wrap ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 15px;
}

/* 1列4個パターン（デフォルト） */
.sub-tabs .bag-type-wrap ul li {
    padding: 5px 10px;
    width: calc(25% - 12px);
    border: 2px solid #E0E0E0;
    border-radius: 50px;
    background: #FFFFFF;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 58px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.sub-tabs .bag-type-wrap ul li:hover {
    border-color: #FC9829;
    color: #FC9829;
    background-color: #FFEFD6;
}

.sub-tabs .bag-type-wrap ul li.is-select {
    border-color: #FCBE29;
    background-color: #FCBE29;
    color: #fff;
}

/* 下向き吹き出し（三角形） */
.sub-tabs .bag-type-wrap ul li.is-select::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #FCBE29;
    z-index: 3;
}

.sub-tabs .item-icon-wrapper {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.sub-tabs .item-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sub-tabs .item-label {
    font-size: 16px;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-weight: bold;
    flex: 1;
}


.mt10 {
    margin-top: 10px;
}

.mt20 {
    margin-top: 20px;
}

.mt30 {
    margin-top: 30px;
}

.mb20 {
    margin-bottom: 20px;
}

/* スマホ（667px以下） */
@media only screen and (max-width: 667px) {
    /* メインタブ SP版 */
    .main-tabs ul {
        flex-wrap: wrap;
        padding: 0;
        gap: 8px;
        border-bottom: none;
        justify-content: space-between;
        overflow: hidden;
        width: 100%;
    }

    .main-tabs li {
        width: calc(50% - 4px) !important;
        flex: none !important;
        font-size: 14px;
        padding: 10px 5px !important;
        margin: 0;
        border-radius: 8px 8px 0 0;
        border: 2px solid transparent;
        border-bottom: 2px solid #FC9829;
        position: relative;
        box-sizing: border-box;
        height: 50px;
        background: #FFEFD6;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* SP版：最初のタブの角丸をなしに */
    .main-tabs ul li:first-child {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    /* SP版：最後のタブの角丸をなしに */
    .main-tabs ul li:last-child {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .main-tabs li.is-select {
        background: #FC9829;
        color: #fff;
        border: 2px solid #FC9829;
        border-bottom: 2px solid #FC9829;
        z-index: 1;
        padding-bottom: 10px;
    }

    .main-tabs li:before {
        content: '';
        position: absolute;
        bottom: -2px;
        right: -5px;
        height: 2px;
        background: #FC9829;
        z-index: 2;
        padding-bottom: 2px;
        width: 115%;
    }

    .main-tabs li.is-select::after {
        content: '';
        position: absolute;
        bottom: -3px;
        right: 0px;
        height: 4px;
        background: #FC9829;
        z-index: 2;
        padding-bottom: 4px;
        width: 100%;
    }

    /* サブタブ SP版 - 常に1列4個 */
    .sub-tabs .bag-type-wrap ul {
        gap: 10px;
    }

    .sub-tabs .bag-type-wrap ul li {
        width: calc(25% - 8px) !important;
        border-radius: 10px;
        padding: 2px;
        min-height: auto;
        gap: 8px;
        margin: 0 0 15px 0;
    }

    /* SP版の下向き吹き出し */
    .sub-tabs .bag-type-wrap ul li.is-select::after {
        bottom: -10px;
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 10px solid #FCBE29;
    }

    .sub-tabs .item-icon-wrapper {
        width: 25px;
        height: 25px;
        margin: 8px 0;
    }

    .sub-tabs .item-label {
        text-align: left;
        font-size: 13px;
        line-height: 1.3;
    }

}

/* タブレット（668px〜1024px） */
@media only screen and (min-width: 668px) and (max-width: 1024px) {
    .main-tabs li {
        font-size: 14px;
        padding: 12px;
        height: 60px;
    }

    .sub-tabs .bag-type-wrap ul li {
        width: calc(25% - 12px);
    }

    .sub-tabs .item-label {
        font-size: 14px;
    }

}


@media only screen and (max-width: 667px) {
    .sp-only {
        display: inline;
    }

    .isPC {
        display: none;
    }

    .isSP {
        display: block;
    }
}


/* レスポンシブ対応の細かい調整 */
@media only screen and (max-width: 480px) {
    .main-tabs li {
        font-size: 12px;
        height: 45px;
    }

    .sub-tabs .bag-type-wrap ul li {
        padding: 2px;
    }

    .sub-tabs .item-label {
        text-align: left;
        font-size: 11px;
    }

}
/* 外部リンクボックス用スタイル */
.external-link-box {
    width: 100%;
    margin-top: 30px;
}

.external-link-box ul {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 15px;
}

.external-link-box ul li {
    width: calc(33.333% - 10px);
    border: 2px solid #FC9829;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    background: #FFFFFF;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    box-sizing: border-box;
}

.external-link-box ul li:hover {
    background-color: #FFF8ED;
    box-shadow: 0 4px 8px rgba(252, 152, 41, 0.2);
}

.external-link-box ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    text-decoration: none;
    color: #333333;
    width: 100%;
    height: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
    position: relative;
}

.external-link-box .link-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.external-link-box .link-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.external-link-box .link-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.external-link-box .link-label {
    font-size: 16px;
    margin: 0;
    font-weight: bold;
    color: #333333;
    flex: 1;
}

.external-link-box .arrow-icon {
    display: none;
}

.external-link-box ul li a::after {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    color: #FC9829;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

/* スマホ（667px以下） */
@media only screen and (max-width: 667px) {
    .external-link-box {
        margin-top: 20px;
    }

    .external-link-box ul {
        gap: 10px;
    }

    .external-link-box ul li {
        width: calc(50% - 5px);
        min-height: 70px;
        border-radius: 10px;
    }

    .external-link-box ul li a {
        padding: 12px 15px;
        gap: 10px;
    }

    .external-link-box .link-content {
        gap: 10px;
    }

    .external-link-box .link-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .external-link-box .link-label {
        font-size: 13px;
    }

    .external-link-box ul li a::after {
        font-size: 16px;
        right: 12px;
    }
}

/* タブレット（668px〜1024px） */
@media only screen and (min-width: 668px) and (max-width: 1024px) {
    .external-link-box ul li {
        width: calc(33.333% - 10px);
    }

    .external-link-box .link-label {
        font-size: 14px;
    }
}

/* レスポンシブ対応の細かい調整 */
@media only screen and (max-width: 480px) {
    .external-link-box ul li {
        min-height: 65px;
    }

    .external-link-box ul li a {
        padding: 10px 12px;
    }

    .external-link-box .link-label {
        font-size: 12px;
    }
}