.ui-wrapper {
    padding-top: 100px;
}

.ui-footer {
    margin-top: 0;
}

/* 약침소개 */
.section-hero {
    height: 560px;
    background: url("../images/image_acupuncture_hero.jpg") no-repeat center / cover;
}

.section-gmp .ui-inner {
    display: flex;
    width: 1400px;
    padding: 180px 0;
    gap: 50px;
}

.section-gmp .block-left {
    width: 761px;
    height: 761px;
    flex: 0 0 761px;border-radius: 20px;overflow: hidden;font-size: 0
}

.section-gmp .block-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-gmp .block-right {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 761px;
}

.section-gmp .top-text {
    font-size: 36px;
    font-weight: 700;
    line-height: 48px;
    word-break: keep-all;
}

.section-gmp .box-bottom {
    width: 480px;
    margin-left: auto;
}

.section-gmp .box-bottom .text {
    margin-top: 40px;
    font-size: 20px;
    line-height: 32px;
    word-break: keep-all;
}

.section-visual {
    margin: 0 auto;
    padding: 0 60px;
    max-width: 2560px;
}

.section-visual .ui-inner {
    width: 100%;
    height: 825px;
    background: url("../images/image_acupuncture_3.jpg") no-repeat center / cover;
    border-radius: 20px;
}

.section-yakchim .ui-inner {
    width: 1400px;
    /* 상단 40px · 하단: 그리드 row-gap(154px) 확대에 맞춰 마지막 행~푸터 여백 보강 (기존 80px + 72px) */
    padding: 40px 0 152px;
}

.section-yakchim .swiper {
    width: 100%;
}

.section-yakchim .swiper-wrapper {
    display: grid !important;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.section-yakchim .card {
    display: flex;
    flex-direction: column;
    width: 320px;
    height: 400px;
    position: relative;
    margin: 40px 0 82px;
    padding: 40px;
    background: #f3f3f3;
    border-radius: 20px;
}

.section-yakchim .name {
    font-size: 32px;
    font-weight: 700;
    line-height: 56px;
}

.section-yakchim .type {
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
}

.section-yakchim .box-description {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    line-height: 28px;
}

.section-yakchim .box-description p {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.section-yakchim .arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin-top: 28px;
    /* 텍스트·화살표 영역과 약병 이미지 사이 여백 (이미지는 absolute로 하단 고정) */
    margin-bottom: 36px;
    color: #999;
    border-radius: 50%;
}

.section-yakchim .arrow svg {
    width: 24px;
    height: 24px;
}

.section-yakchim .image {
    width: 90px;
    height: 184px;
    position: absolute;
    /* 병 하단 돌출: 텍스트와의 간격 확보를 위해 하향 배치 */
    bottom: -154px;
    left: 50%;
    transform: translateX(-50%);
}

.section-yakchim .card:hover {
    background: #f0f5ff;
}

.section-yakchim .card:hover .name {
    color: #002f87;
}

.section-yakchim .card:hover .arrow {
    color: #fff;
    background: #002f87;
}

.section-yakchim .group-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-top: 120px;
}

.section-yakchim .group-buttons > * {
    position: static;
    inset: 0;
}

.section-yakchim .swiper-pagination {
    width: auto;
    width: 74px;
    height: 48px;
    position: relative;
    font-size: 0;
    background: url("../images/pagination_slash.png") no-repeat 8px 0;
}

.section-yakchim .swiper-pagination-current {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
}

.section-yakchim .swiper-pagination-total {
    position: absolute;
    bottom: 0;
    left: 33px;
    font-size: 36px;
    font-weight: 700;
    line-height: 48px;
}

.section-yakchim .swiper-scrollbar {
    width: 500px;
    height: 2px;
    margin: 0 60px;
    background: #dfdfdf;
}

.section-yakchim .swiper-scrollbar-drag {
    background: #1946b9;
}

.section-yakchim .swiper-button-next,
.section-yakchim .swiper-button-prev {
    width: 60px;
    height: 60px;
    margin-top: 0;
    color: #999;
    border: 1px solid #999;
    border-radius: 50%;
}

.section-yakchim .swiper-button-next:after,
.section-yakchim .swiper-button-prev:after {
    content: "";
}

.section-yakchim .swiper-button-next {
    margin-left: 20px;
}

.section-yakchim .group-buttons svg {
    width: 24px;
    height: 24px;
}

.section-yakchim .swiper-button-prev svg {
    transform: scaleX(-1);
}

.section-yakchim .block-list {
    display: grid;
    grid-template-columns: repeat(2, calc((100% - 20px) / 2));
    row-gap: 60px;
    column-gap: 20px;
}

.section-yakchim .ui-list-pagination {
    margin-top: 60px;
}

.section-detail {
    padding: 0 60px;
    background: #f7f8fd;
}

.section-detail .ui-inner {
    gap: 80px;
}

.section-detail .card {
    padding: 20px;
    background: #fff;
    border-radius: 20px;
}

.section-detail .group-row {
    display: flex;
    gap: 50px;
}

.section-detail .block-image {
    width: 500px;
}

.section-detail .box-focus {
    width: 500px;
    height: 500px;
}

.section-detail .box-focus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-detail .box-detail {
    margin-top: 30px;
}

.section-detail .box-detail ul {
    display: flex;
    gap: 20px;
}

.section-detail .box-detail li {
    width: calc(100% / 3 - 40px / 3);
    height: 153.33px;
}

.section-detail .box-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-detail .block-text {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.section-detail .box-top {
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
    border-bottom: 1px solid #000;
    gap: 8px;
}

.section-detail .name {
    font-size: 48px;
    font-weight: 700;
    line-height: 64px;
}

.section-detail .type {
    font-size: 20px;
    color: #767676;
    line-height: 32px;
}

.section-detail .list-detail {
    display: flex;
    flex-direction: column;
    margin: 13px 0 auto;
    gap: 12px;
}

.section-detail .list-detail li {
    display: flex;
    padding: 10px 0;
    font-size: 18px;
    line-height: 28px;
    gap: 20px;
}

.section-detail .list-detail .title {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 700;
}

/* 값 영역만 줄어들며 줄바꿈 (라벨이 flex-shrink로 찌그러지는 것 방지) */
.section-detail .list-detail .text {
    flex: 1;
    min-width: 0;
}

.section-detail .list-detail .text.has-divider {
    display: flex;
    gap: 21px;
}

.section-detail .list-detail .text.has-divider p {
    position: relative;
}

.section-detail .list-detail .text.has-divider p:not(:first-child)::after {
    display: block;
    width: 1px;
    height: 17px;
    position: absolute;
    top: 50%;
    left: -11px;
    transform: translateY(-50%);
    background: #d9d9d9;
    content: "";
}

.section-detail .box-table .title {
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

.section-detail .box-table table {
    margin-top: 10px;
}

.section-detail .box-table th {
    height: 64px;
    line-height: 24px;
    border: 1px solid #dfdfdf;
    background: #f8f8f8;
}

.section-detail .box-table th:first-child {
    border-left: none;
}

.section-detail .box-table th:last-child {
    border-right: none;
}

.section-detail .box-table td {
    height: 64px;
    text-align: center;
    color: #767676;
    line-height: 24px;
    border-bottom: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
}
.section-detail .box-table tr td:first-child {border-left: none;}

.section-detail .button-prescribe {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 118px;
    height: 44px;
    padding: 0 18px;
    margin: 12px 0 0 auto;
    color: #fff;
    text-decoration: none;
    background: #a5b6cc;
    border-radius: 22px;
    box-sizing: border-box;
    font-size: 15px;
}

.section-detail .button-prescribe svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1023px) {
    .ui-wrapper {
        padding-top: 72px;
    }

    .section-hero {
        height: 300px;
    }

    .section-gmp .ui-inner {
        flex-direction: column;
        padding: 60px 20px;
        gap: 20px;
    }

    .section-gmp .block-left {
        width: 100%;
        height: auto;
        flex: auto;
    }

    .section-gmp .block-right {
        height: auto;
    }

    .section-gmp .top-text {
        font-size: 24px;
        line-height: 36px;
    }

    .section-gmp .box-bottom {
        width: 100%;
        margin-top: 50px;
    }

    .section-gmp .box-bottom .text {
        margin-top: 20px;
        font-size: 18px;
        line-height: 28px;
    }

    .section-visual {
        padding: 0 20px;
    }

    .section-visual .ui-inner {
        height: 260px;
    }

    .section-yakchim .ui-inner {
        /* 마지막 카드 행 아래 여백 보강 (데스크톱과 동일 취지) */
        padding: 60px 20px 120px;
    }

    .section-yakchim .card {
        width: 100%;
        height: 260px;
        margin: 0 0 126px;
        padding: 20px;
    }

    .section-yakchim .name {
        font-size: 18px;
        color: #002f87;
        line-height: 26px;
    }

    .section-yakchim .type {
        font-size:15px;
        line-height: 20px;
    }

    .section-yakchim .box-description p {
        font-size: 14px;
        line-height: 20px;
    }

    .section-yakchim .arrow {
        width: 24px;
        height: 24px;
        margin-top: 26px;
        margin-bottom: 24px;
    }

    .section-yakchim .arrow svg {
        width: 16px;
        height: 16px;
    }

    .section-yakchim .image {
        width: 62.8px;
        height: 127.65px;
        bottom: -126px;
    }

    .section-detail {
        padding: 0 20px;
    }

    .section-detail .ui-inner {
        gap: 0;
    }

    .section-detail .group-row {
        flex-direction: column;
        gap: 20px;
    }
  
  .section-detail .detail_head {display: flex;flex-direction: column;gap:10px;}
  .section-detail .detail_head h3 {font-size:28px }
  .section-detail .detail_head p {font-size:20px;color:#767676 }

    .section-detail .block-image {
        width: 100%;
    }

    .section-detail .box-detail {
        margin-top: 10px;
    }

    .section-detail .box-detail li {
        height: 85px;
    }

    .section-detail .box-focus {
        width: 100%;
        height: auto;
    }

    .section-detail .box-top {
        display: none;
    }

    .section-detail .block-text {
        border-top: 1px solid #000;
    }

    .section-detail .list-detail {
        margin-top: 12px;
    }

    .section-detail .list-detail li {
        padding: 12px 0;
        font-size: 16px;
        line-height: 24px;
    }

    .section-detail .box-table {
        margin-top: 12px;
    }

    .section-detail .box-table .title {
        font-size: 16px;
        line-height: 20px;
    }

    .section-detail .box-table th {
        height: 60px;
    }

    .section-detail .box-table td {
        height: 60px;
    }

    .section-detail .button-prescribe {
        margin: 20px auto 0;
        font-size: 16px;
    }

    .section-detail .ui-primary-buttons {
        margin-top: 20px;
        padding: 0;
    }
}
