/* ============================
   デザイン事業
   共通のサービス詳細スタイル（リード文・ピル・挿絵・CTA等）はcommon/service-detail.css を参照。
============================ */

/* ============================
   実績カルーセル
============================ */

.design-carousel-wrap {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    margin-top: clamp(1.875rem, 1.268rem + 2.59vw, 4.375rem);
    overflow: hidden;
}

/* PCのみ　左右の帯の内側までカルーセル表示を切り取り */
@media screen and (min-width: 769px) {
    .design-carousel-wrap {
        width: calc(100vw - 8.385vw * 2);
        margin-left: calc(-50vw + 8.385vw);
    }
}

.design-carousel {
    width: 100%;
}

/* Swiperの自動スクロール */
.design-carousel .swiper-wrapper {
    transition-timing-function: linear !important;
}

.design-carousel__slide {
    width: auto;
    height: clamp(10rem, 6.343rem + 11.76vw, 16rem);
    background: #F5F6F8;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.design-carousel__slide img {
    display: block;
    width: auto;
    height: 100%;
    object-fit: cover;
}

.service-track__empty {
    margin: clamp(1.875rem, 1.268rem + 2.59vw, 4.375rem) 0 0 0;
    text-align: center;
    font-size: clamp(0.813rem, 0.72rem + 0.46vw, 1rem);
    color: #666;
}

/* ============================
   ポートフォリオボタン
============================ */
.design-portfolio-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(3rem, 2.3rem + 3.5vw, 5rem);
}

.design-portfolio-cta__link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.design-portfolio-cta__click {
    position: absolute;
    top: -1.6em;
    right: -0.5em;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-style: italic;
    font-size: clamp(1rem, 0.86rem + 0.7vw, 1.5rem);
    color: #3172FF;
    transform: rotate(-8deg);
}

.design-portfolio-cta__bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.9em 1.75em;
    background: #3172FF;
    color: #FFF;
    font-family: "ShipporiGothic";
    font-weight: 400;
    font-size: clamp(1rem, 0.86rem + 0.7vw, 1.5rem);
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(49, 114, 255, 0.25);
}

.design-portfolio-cta__bubble::after {
    content: '';
    position: absolute;
    left: 3em;
    bottom: -0.7em;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0.9em 0.5em 0 1em;
    border-color: #3172FF transparent transparent transparent;
}

.design-portfolio-cta__character {
    width: clamp(8rem, 5.412rem + 11.29vw, 13rem);
    margin: 1.5rem 0 0 auto;
}

/* ============================
   漫画入社案内ビューア
============================ */
.design-manga {
    padding-top: clamp(3.75rem, 2.5rem + 6.25vw, 7.5rem);
}

.design-manga__body {
    margin-top: clamp(1.875rem, 1.268rem + 2.59vw, 4.375rem);
}

.design-manga__viewer {
    width: clamp(20.25rem, 16.491rem + 15.42vw, 35rem);
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

.design-manga__page img {
    display: block;
    width: 100%;
    height: auto;
    background: #F5F6F8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.design-manga__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 1.118rem + 1.57vw, 3rem);
    margin-top: clamp(0.5rem, 0.373rem + 0.52vw, 1rem);
}

.design-manga__nav {
    position: relative;
    width: clamp(2.75rem, 2.559rem + 0.78vw, 3.5rem);
    height: clamp(2.75rem, 2.559rem + 0.78vw, 3.5rem);
    padding: 0;
    background: #FFF;
    border: 1px solid #3172FF;
    border-radius: 50%;
    cursor: pointer;
    transition: background .3s, opacity .3s;
}

.design-manga__nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #3172FF;
    border-right: 2px solid #3172FF;
    transition: border-color .3s;
}

/* 次へ */
.design-manga__nav--next::before {
    transform: translate(-30%, -50%) rotate(-135deg);
}

/* 前へ */
.design-manga__nav--prev::before {
    transform: translate(-70%, -50%) rotate(45deg);
}

.design-manga__nav:hover {
    background: #3172FF;
}

.design-manga__nav:hover::before {
    border-color: #FFF;
}

.design-manga__nav.swiper-button-disabled {
    opacity: .3;
    pointer-events: none;
}

.design-manga__pagination {
    min-width: 4em;
    flex: 0 0 auto;
    width: auto;
    text-align: center;
    font-family: "ShipporiGothic";
    font-size: clamp(0.875rem, 0.811rem + 0.26vw, 1.125rem);
    color: #333;
}

.design-manga__pdf {
    margin-top: clamp(1rem, 0.745rem + 1.05vw, 2rem);
    text-align: center;
}

.design-manga__pdf a {
    font-size: clamp(0.813rem, 0.749rem + 0.26vw, 1.063rem);
    color: #3172FF;
    text-decoration: underline;
}

.design-manga__page {
    cursor: zoom-in;
}

.design-manga__expand {
    margin-top: clamp(1rem, 0.745rem + 1.05vw, 2rem);
    text-align: center;
}

.design-manga__expand-btn {
    padding: 0.75em 2em;
    background: #3172FF;
    border: none;
    border-radius: 999px;
    color: #FFF;
    font-family: "ShipporiGothic";
    font-size: clamp(0.875rem, 0.811rem + 0.26vw, 1.125rem);
    cursor: pointer;
    transition: opacity .3s;
}

.design-manga__expand-btn:hover {
    opacity: .8;
}

/* ============================
   漫画入社案内 全画面モーダル
============================ */
.manga-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.manga-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.manga-modal__viewer {
    width: 100%;
    height: 100%;
}

.manga-modal__page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    box-sizing: border-box;
}

.manga-modal__page img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.manga-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.manga-modal__close::before,
.manga-modal__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.75rem;
    height: 2px;
    background: #FFF;
}

.manga-modal__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.manga-modal__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* 「次へ」を左端、「前へ」を右端に配置 */
.manga-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: clamp(2.75rem, 2.559rem + 0.78vw, 3.5rem);
    height: clamp(2.75rem, 2.559rem + 0.78vw, 3.5rem);
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .3s, opacity .3s;
}

.manga-modal__nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}

.manga-modal__nav--next {
    left: clamp(0.5rem, 0.118rem + 1.57vw, 2rem);
}

.manga-modal__nav--prev {
    right: clamp(0.5rem, 0.118rem + 1.57vw, 2rem);
}

.manga-modal__nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #FFF;
    border-right: 2px solid #FFF;
}

.manga-modal__nav--next::before {
    transform: translate(-30%, -50%) rotate(-135deg);
}

.manga-modal__nav--prev::before {
    transform: translate(-70%, -50%) rotate(45deg);
}

.manga-modal__nav.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
}

.manga-modal__pagination {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    z-index: 2;
    width: 100%;
    text-align: center;
    font-family: "ShipporiGothic";
    font-size: clamp(0.875rem, 0.811rem + 0.26vw, 1.125rem);
    color: #FFF;
}

/* ============================
   SP(768px以下)
============================ */
@media screen and (max-width: 768px) {

    .design-carousel__slide {
        height: clamp(7rem, 4.514rem + 10.71vw, 11rem);
    }

    .design-portfolio-cta {
        justify-content: center;
    }
}
