/* プレミアム・モーダル・スタイル */
.exModal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.exModal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.exModal-container {
    width: 95%;
    max-width: 1100px;
    height: 95%;
    background: #f4f7f9;
    padding: 0 10px 10px 0; /* スクロールバーがボーダーにぶつからないように余白を追加 */
    border: 10px solid #02325a; /* 濃紺 10px ボーダー */
    border-radius: 30px;
    position: relative;
    overflow: hidden; /* 枠自体はスクロールさせない */
    box-sizing: border-box;
    transform: translateY(100vh);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* スクロールエリア */
.exModal-scroll-body {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 768px) {
    .exModal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        padding: 0 0px 6px 0;
        border-width: 6px;
        border-radius: 0px;
    }
    .exModal-overlay {
    height: 100vh;}
}

.exModal-overlay.is-open .exModal-container {
    transform: translateY(0);
}

/* 閉じるボタン（枠内に固定） */
.exModal-close {
    position: absolute;
    top: 3px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #e53935;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    z-index: 300;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.exModal-close:hover {
    background: #b71c1c;
    transform: scale(1.1) rotate(90deg);
}

@media screen and (max-width: 768px) {
    .exModal-close {
        top: 4px;
        right: 15px;
        width: 30px;
        height: 30px;
    }
}

.exModal-close::before,
.exModal-close::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.exModal-close::before {
    transform: rotate(45deg);
}

.exModal-close::after {
    transform: rotate(-45deg);
}

.exModal-content {
    padding-top: 0px;
    height: auto;
}

@media screen and (max-width: 768px) {
    .exModal-content {
        padding: 40px 20px;
    }
}

/* モーダル内部のコンテンツデザイン */
.exhibitor-detail-modal .category-tag {
    display: inline-block;
    background: #00408c;
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.exhibitor-detail-modal .company-name {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #1a202c;
    line-height: 1.25;
    margin-bottom: 30px;
}

.exhibitor-detail-modal .desc-text {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 40px;
}

.exhibitor-detail-modal .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: #f7fafc;
    padding: 30px;
    border-radius: 12px;
}

.exhibitor-detail-modal .info-item .label {
    display: block;
    font-size: 13px;
    color: #718096;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exhibitor-detail-modal .info-item .value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

@media screen and (max-width: 768px) {
    .exModal-content {
        padding: 0px 0px;
    }
}

/* モーダル内固定ページトップボタン */
.exModal-pagetop {
    position: absolute; /* 枠に対して固定 */
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 101; /* コンテナより上に表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.exModal-pagetop.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.exModal-pagetop:hover {
    transform: scale(1.1);
}

.exModal-pagetop img {
    width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .exModal-pagetop {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
