/* --- スライドモーダル スタイリッシュデザイン --- */
.slide-modal-inner {
    background: #181a1b;
    padding: 32px 24px 24px 24px;
    border-radius: 18px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* --- 小さめ＆都会的なスライドモーダルデザイン --- */
.slide-modal-close.stylish-close {
    position: static;
    font-size: 1.2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    line-height: 1;
    margin-left: auto;
}

.slide-modal-close.stylish-close:hover {
    color: #e4931c;
    background: #222;
    transform: scale(1.1);
    opacity: 1;
}

.slide-modal-arrows {
    display: none;
}

.slide-modal-image-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.slide-modal-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
    width: 100%;
}

@media (max-width: 899px) {
    .slide-modal-close.stylish-close {
        min-width: 28px;
        width: 28px;
        height: 28px;
        margin-left: auto;
    }

    .slide-modal-controls {
        gap: 12px;
    }
}

.slide-arrow.stylish-arrow {
    font-size: 1.3rem;
    background: #232526;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
    transition: background 0.2s, color 0.2s, transform 0.2s;
    opacity: 0.92;
    line-height: 1;
    vertical-align: middle;
    margin-top: 12px;
}

.slide-arrow.stylish-arrow:hover {
    background: #e4931c;
    color: #fffefa;
    transform: scale(1.13);
    opacity: 1;
}

/* スマホでも画像が枠内に収まるように調整 */
.slide-image {
    max-width: 60vw;
    max-height: 60vh;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0002;
    border: 1.5px solid #222;
    object-fit: contain;
}

@media (max-width: 899px) {
    .slide-modal-inner {
        padding: 12px 12px 16px 12px;
        max-width: 98vw;
        min-width: 0;
        width: 98vw;
        max-height: 90vh;
        box-sizing: border-box;
    }

    .slide-modal-arrows {
        display: none;
    }

    .slide-modal-image-area {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        max-height: calc(90vh - 140px);
        overflow: hidden;
    }

    .slide-modal-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
        width: 100%;
    }

    .slide-arrow.stylish-arrow {
        min-width: 28px;
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }

    .slide-image {
        max-width: calc(100vw - 48px);
        min-width: 120px;
        max-height: 100%;
        width: auto;
        height: auto;
        border-radius: 8px;
        object-fit: contain;
        display: block;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

@media (max-width: 359px) {
    .slide-modal-inner {
        width: 100vw;
        max-width: 100vw;
        padding: 8px 8px 12px 8px;
        max-height: 92vh;
    }

    .slide-modal-image-area {
        max-height: calc(92vh - 140px);
    }

    .slide-image {
        max-width: calc(100vw - 28px);
        max-height: 100%;
        min-width: 0;
    }
}

.slide-indicator.stylish-indicator {
    margin-top: 10px;
    font-size: 1.1em;
    letter-spacing: 0.12em;
    display: flex !important;
    justify-content: center;
    gap: 0.1em;
    min-width: 60px;
}

.stylish-dot {
    font-size: 0.65em;
    color: #bbb;
    transition: color 0.2s, transform 0.2s;
    filter: drop-shadow(0 1px 2px #0006);
}

.stylish-dot.active {
    color: #e4931c;
    transform: scale(1.13);
    filter: drop-shadow(0 2px 6px #e4931c66);
}

@media (max-width: 600px) {
    .footer-content-wrapper nav ul {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
    }

    .footer-content-wrapper nav ul li {
        width: 100%;
        text-align: center;
    }

    .footer-content-wrapper {
        padding-left: 8px !important;
        padding-right: 8px !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

.badge-mtf {
    color: #fff !important;
    font-weight: bold !important;
    pointer-events: auto;
    cursor: pointer;
}

/* 画像表示時のタイトルのみ橙色 */
#main-title {
    color: #e4931c !important;
}

/* ---- Video layout stabilization (news_list) ---- */
#main-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

#main-video,
#main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    max-width: none !important;
    margin: 0;
    display: block;
}

#main-video {
    object-fit: cover;
    background: #000;
}

#main-image {
    object-fit: contain;
    background: #fff;
}

/* 画像キャプションをオレンジに */
.badge-title,
.badge-caption,
.badge-grid .badge img+span,
.badge-grid .badge .caption {
    color: #444 !important;
}

.main-media#main-video {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-top: 0;
}

.main-media {
    width: 100% !important;
    max-width: 800px !important;
    height: 450px !important;
    object-fit: contain !important;
    margin: 0 auto;
    display: block;
    background: transparent;
    box-sizing: border-box;

    .image-modal-content {
        width: 100% !important;
        max-width: 800px !important;
        height: 450px !important;
        object-fit: contain !important;
        margin: 40px auto;
        display: block;
        border-radius: 8px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
        background: #fff;
    }

    .section-image,
    #main-video-wrapper {
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 599px) {
    .main-media {
        height: 200px;
        max-width: 100%;
    }

    .main-media#main-video {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    /* 動画とオーバーレイを同じ基準位置に揃える */
    #main-video-wrapper {
        position: relative;
        width: 100%;
        max-width: 320px;
        height: 200px;
        margin: 0 auto;
    }

    #main-video,
    #main-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100% !important;
    }

    #main-video-caption {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
    }
}

@media (min-width: 321px) and (max-width: 369px) {
    #main-video-caption {
        padding: 8px 10px 26px 10px !important;
        font-size: clamp(0.67rem, 2.82vw, 0.77rem) !important;
        line-height: 1.3 !important;
        letter-spacing: 0 !important;
    }

    #main-video-caption-close {
        right: 10px !important;
        bottom: 6px !important;
        font-size: 0.62rem !important;
        padding: 1px 8px !important;
        line-height: 1.4 !important;
    }

    #badge-overlay {
        overflow: hidden;
    }

    #badge-overlay .badge-overlay-inner {
        padding: 8px 10px 30px 10px !important;
    }

    #badge-overlay .badge-overlay-text {
        font-size: clamp(0.67rem, 2.82vw, 0.77rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
        letter-spacing: 0 !important;
    }

    #badge-overlay-close {
        right: 10px !important;
        bottom: 6px !important;
        font-size: 0.62rem !important;
        padding: 1px 8px !important;
        line-height: 1.45 !important;
    }
}

@media (max-width: 320px) {
    #main-video-caption {
        padding: 7px 9px 24px 9px !important;
        font-size: clamp(0.65rem, 2.64vw, 0.74rem) !important;
        line-height: 1.28 !important;
        letter-spacing: 0 !important;
    }

    #main-video-caption-close {
        right: 9px !important;
        bottom: 5px !important;
        font-size: 0.6rem !important;
        padding: 1px 7px !important;
        line-height: 1.35 !important;
    }

    #badge-overlay {
        overflow: hidden;
    }

    #badge-overlay .badge-overlay-inner {
        padding: 7px 9px 28px 9px !important;
    }

    #badge-overlay .badge-overlay-text {
        font-size: clamp(0.65rem, 2.64vw, 0.74rem) !important;
        line-height: 1.28 !important;
        margin-bottom: 0 !important;
        letter-spacing: 0 !important;
    }

    #badge-overlay-close {
        right: 9px !important;
        bottom: 5px !important;
        font-size: 0.6rem !important;
        padding: 1px 7px !important;
        line-height: 1.35 !important;
    }
}

/* YouTube埋め込みサイズの最終オーバーライド */
#main-video-wrapper {
    position: relative !important;
    width: min(100% - 24px, 960px) !important;
    max-width: 960px !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    background: #000 !important;
}

#main-video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
}


/* フルスクリーン画像モーダル */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    display: block;
    margin: 40px auto;
    max-width: 96vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 32px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    text-shadow: 0 2px 8px #000;
}

/* 画像説明テキスト */
.image-caption {
    text-align: center;
    font-weight: bold;
    color: #e4931c;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    max-width: 95vw;
    white-space: pre-line;
    overflow-wrap: break-word;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* タイトルセクション */
.section-title {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 8px auto;
    padding-top: 80px;
    /* 上余白を広げる */
    padding-bottom: 12px;
    /* 下余白を詰める */
    color: #e4931c;
}

/* 画像セクション */
.section-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 8px auto;
    padding: 0;
    box-sizing: border-box;
}

@media (min-width: 600px) {
    .section-image img {
        height: 450px !important;
        max-width: 100%;
        width: auto;
        object-fit: cover;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 599px) {
    .section-image img {
        height: 200px !important;
        max-width: 100%;
        width: auto;
        object-fit: cover;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        display: block;
        margin: 0 auto;
    }
}

@media (min-width: 600px) and (max-width: 799px) {
    .section-top {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 440px;
    }

    .section-top img {
        height: 360px !important;
        max-width: 90%;
        width: auto;
        object-fit: contain;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        display: block;
        margin: 0 auto;
    }
}

@media (min-width: 800px) {
    .section-top {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 440px;
    }

    .section-top img {
        height: 360px !important;
        max-width: 80%;
        width: auto;
        object-fit: contain;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 599px) {
    .section-top {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 220px;
    }

    .section-top img {
        height: 160px !important;
        max-width: 95%;
        width: auto;
        object-fit: contain;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        border-radius: 8px;
        display: block;
        margin: 0 auto;
    }
}

/* バッジ長方形ボタンデザイン */

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #004280;
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 8px;
    height: 44px;
    width: 258.7px;
    min-width: 258.7px;
    max-width: 258.7px;
    padding: 0 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    margin: 0 auto;
}

/* news_list.htmlページのバッジのみ絶対値指定で上書き */
.badge-grid .badge {
    font-size: 14px !important;
}

.badge:hover {
    background: #2987b9;
}

/* セクション共通の余白 */
.section-top {
    padding: 32px 16px 12px 16px;
}

.section-top__image {
    margin-bottom: 16px;
}

.badge-section {
    margin: 16px 16px 16px 16px;
    /* 上余白を少し縮める */
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}


html,
body {
    height: 100%;
    background-color: #ffffff !important;
    background-image: url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="8" height="8" fill="%23ffffff"/><rect x="0" y="0" width="8" height="1" fill="%23f5f5f5"/><rect x="0" y="2" width="8" height="1" fill="%23f5f5f5"/><rect x="0" y="4" width="8" height="1" fill="%23f5f5f5"/><rect x="0" y="6" width="8" height="1" fill="%23f5f5f5"/><rect x="0" y="0" width="1" height="8" fill="%23f5f5f5"/><rect x="2" y="0" width="1" height="8" fill="%23f5f5f5"/><rect x="4" y="0" width="1" height="8" fill="%23f5f5f5"/><rect x="6" y="0" width="1" height="8" fill="%23f5f5f5"/></svg>') !important;
    background-size: 8px 8px !important;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: inherit !important;
    background-image: inherit !important;
    background-size: inherit !important;
}

.main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    background-color: inherit !important;
    background-image: inherit !important;
    background-size: inherit !important;
}


.footer {
    flex-shrink: 0;
    /* 必要に応じて元の背景色や装飾をここに記述 */
    /* 例: background-color: #004280; color: #fff; */
}

.main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.footer {
    flex-shrink: 0;
}

.badge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    max-width: 800px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 600px) and (max-width: 799px) {
    .badge-grid {
        grid-template-columns: repeat(2, auto);
        gap: 12px;
        justify-content: center;
    }
}

@media (min-width: 800px) {
    .badge-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.section-service__video {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #004280;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 8px;
    height: 48px;
    min-width: 120px;
    padding: 0 32px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    background-size: 100% 100%, 8px 8px;
}

@media (max-width: 599px) {
    .badge-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media (max-width: 799px) {
    .main {
        margin-top: 100px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-top {
        padding-top: 30px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-top__image {
        height: 100vh;
        max-height: 568px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}



/* CSS Document */
.main {
    margin-top: 100px !important;
    /* index.htmlと同じ淡いベージュ色＋格子模様 */
    background-color: #ffffff !important;
    background-image: url('data:image/svg+xml;utf8,<svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="8" height="8" fill="%23ffffff"/><rect x="0" y="0" width="8" height="1" fill="%23f5f5f5"/><rect x="0" y="2" width="8" height="1" fill="%23f5f5f5"/><rect x="0" y="4" width="8" height="1" fill="%23f5f5f5"/><rect x="0" y="6" width="8" height="1" fill="%23f5f5f5"/><rect x="0" y="0" width="1" height="8" fill="%23f5f5f5"/><rect x="2" y="0" width="1" height="8" fill="%23f5f5f5"/><rect x="4" y="0" width="1" height="8" fill="%23f5f5f5"/><rect x="6" y="0" width="1" height="8" fill="%23f5f5f5"/></svg>') !important;
    background-size: 8px 8px !important;
    color: #333;
}

/* section-top SP */
.section-top__image {
    padding-top: 30px;
    /* index.htmlの.section-top__imageと同じスタイルを適用 */
    padding-left: 8px;
    padding-right: 8px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 2px auto;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    height: auto;
    height: 300px;
}

.top-slideshow img {
    width: 100%;
    height: 300px;
    max-width: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}



.section-top__image-filter {
    height: 100%;
    width: 100%;
    padding-top: 80px;
}



/* new-container SP */
/* news-list SP */
.new-container {
    padding: 40px 24px 90px;
    text-align: left;
}

ol.news-list {
    list-style: none;
    margin-bottom: 60px;
}

ol.news-list li {
    margin-bottom: 10px;
}

.news-list h3 {
    font-weight: 300;
}

.news-list__category {
    background-color: #777;
    width: 150px;
    height: 24px;

    .news-list__category.press {
        background-color: #004280;
    }

    .news-list__category.info {
        background-color: #2987b9;
    }

    .news-list__category {
        background-color: #777;
        min-width: 100px;
        max-width: 120px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 0.92rem;
        font-weight: 600;
        border-radius: 8px;
        margin-right: 8px;
        letter-spacing: 0.04em;
    }

    padding-left: 8px;
    color: #fff;
    font-size: 1.4rem;
}

.news-list h3 {
    font-size: 0.95rem;
    border-radius: 8px;
    height: 44px;
    width: 144px;
    min-width: 144px;
    max-width: 144px;
    padding: 0;

    /* 同時に成立しているときの記述  */
    .news-list__category.press {
        background-color: #004280;
    }

    .news-list__text {
        flex: 1 1 0%;
        min-width: 0;
    }

    .news-list__category.info {
        background-color: #2987b9;
    }

    ol.news-list li {
        display: flex;
        align-items: flex-start;
        margin-bottom: 32px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        padding: 20px 16px;
        gap: 24px;
    }

    /* 一時的に隠す */
    .news-list__news-body {
        display: none;

        .news-list__news-body {
            font-size: 1.3rem;
            border-radius: 14px;
            height: 64px;
            width: 220px;
            min-width: 220px;
            max-width: 220px;
            padding: 0;
        }
    }

    /* pagenation PC */
    .pagenation {
        text-align: center;
    }

    .news-list time {
        font-size: 1.5rem;
        border-radius: 16px;
        height: 80px;
        width: 258.7px;
        min-width: 258.7px;
        max-width: 258.7px;
        padding: 0;
    }

    .pagenation__list li {
        display: inline-block;
        border: solid 2px #333;
    }

    .pagenation__list li a {
        display: block;
        padding: 10px;
        max-width: 40px;
        max-height: 46px;
        text-decoration: none;
        color: #333;
        background-color: #fff;
    }

    .pagenation__list li a.selected {
        background-color: #707070;
        color: #fff;
    }

    .section-service__video {
        display: block;
        width: 100%;
        max-width: 800px;
        margin: 0 auto 60px;
    }

    /* PC */
    @media (min-width: 799px) {

        /* section-top SP */
        .section-top__image {
            height: 600px;
            max-width: 800px;
            width: 100%;
            margin: 0 auto;
            position: relative;
            z-index: 1;
            box-sizing: border-box;
            padding-left: 8px;
            padding-right: 8px;
            height: auto;
        }

        .section-top__image-filter {
            padding-top: 210px;
        }

        .section-top h2 {
            font-size: 4.0rem;
        }

        /* new-container PC */
        /* news-list PC */
        .new-container {
            padding: 120px 24px;
        }

        .news-list {
            width: 800px;
            margin: 0 auto;
        }



        .pagenation__list {
            font-size: 0;
        }

        .pagenation__list li {
            border-left: none;
        }

        .pagenation__list li:first-child {
            margin-right: 20px;
            border: solid 2px #333;
        }

        .pagenation__list li:nth-child(2) {
            border: solid 2px #333;
        }

        .pagenation__list li:last-child {
            margin-left: 20px;
            border: solid 2px #333;
        }

        .pagenation__list li a {
            padding: 18px;
            max-height: none;
            max-width: none;
            font-size: 3.0rem;
            font-weight: 600;
        }

        .section-service__video {
            margin: 0 auto 80px;
        }
    }
}

/* --- 検証レポートスライドモーダル（service同デザイン） --- */
.service-slide-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.service-slide-modal-inner.slide-modal-inner {
    background: #181a1b;
    padding: 32px 24px 24px 24px;
    border-radius: 18px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.service-slide-modal-image-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.service-slide-modal-title {
    margin: 8px 0 14px;
    color: #fff !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.5;
    letter-spacing: 0.03em;
    text-align: center;
}

.service-slide-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.service-slide-image.slide-image {
    width: min(41vw, 520px);
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0002;
    border: 1.5px solid #222;
    object-fit: contain;
    background: #fff;
}

#news-slide-modal .slide-modal-controls {
    flex-wrap: wrap;
    margin-top: 4px;
}

.service-slide-indicator-title {
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.03em;
    margin: 2px 0 0;
}

@media (max-width: 767px) {
    .service-slide-modal-inner.slide-modal-inner {
        padding: 12px 12px 16px 12px;
        max-width: 98vw;
        min-width: 320px;
        width: 98vw;
        max-height: 90vh;
        box-sizing: border-box;
    }

    .service-slide-pair {
        gap: 0;
    }

    .service-slide-modal-title {
        font-size: 0.82rem !important;
        margin: 6px 0 10px;
    }

    .service-slide-image.slide-image {
        width: min(calc(100vw - 48px), 560px);
        aspect-ratio: 16 / 9;
        height: auto;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .service-slide-image-second {
        display: none;
    }

    #news-slide-modal .slide-modal-controls {
        gap: 12px;
    }

    .service-slide-indicator-title {
        font-size: 0.76rem;
    }
}