/* ==================================== */
/* service.css: MONOID Service & Collection */
/* ==================================== */

/* 1. サービス紹介セクション */
.service-list-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.service-item.reverse {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 20px;
}

.service-info h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.service-sub {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.service-info p {
    color: var(--text-muted-dark);
    line-height: 1.8;
}

.service-visual {
    flex: 1;
}

.visual-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}

.visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2. デザインアーカイブ・グリッド */
.service-collection-section {
    padding: 100px 0;
    background-color: #fff;
    clear: both;
}

.collection-lead {
    text-align: center;
    max-width: 700px;
    margin: 20px auto 80px;
    color: var(--text-muted-dark);
    line-height: 1.8;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.collection-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-8px);
}

.card-image {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--bg-f8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(29, 76, 107, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 30px;
    text-align: center;
}

.collection-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content p {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.view-detail {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #fff;
    padding: 10px 20px;
    letter-spacing: 0.2em;
}

.card-info {
    padding: 20px 0;
}

.card-info h3 {
    font-size: 1.2rem !important;
    margin-bottom: 8px !important;
    color: var(--text-dark);
}

.card-info p {
    font-size: 0.8rem;
    color: var(--text-muted-dark);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

/* 3. モーダルデザイン（PC視認性・操作性特化版） */
.collection-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.collection-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 25, 25, 0.96);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 95%;
    max-width: 1200px;
    height: auto;
    max-height: 95vh; 
    background: #fff;
    z-index: 3001;
    overflow: hidden; 
    padding: 50px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 2.5rem; color: var(--primary-blue);
    cursor: pointer; line-height: 1;
    z-index: 10;
}

/* 左右レイアウトの定義 */
.modal-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 450px; 
    gap: 40px;
    align-items: start;
    height: 75vh; /* PCでの高さを固定 */
}

/* 左側：メイン画像エリア */
.modal-image-scroll {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.modal-image-scroll img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 余白を排除 */
    display: block;
    border: 1px solid var(--glass-border);
}

/* 右側：実務レポートエリア（独立スクロール） */
.modal-info-sticky {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-right: 20px;
    gap: 30px;
}

.modal-info-sticky::-webkit-scrollbar {
    width: 4px;
}
.modal-info-sticky::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 10px;
}

.report-header {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 15px;
}

.report-tag {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 0.3em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.report-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0;
    color: var(--text-dark);
}

/* サブ画像：高さを大きく固定 */
.modal-sub-img {
    width: 100%;
    height: 550px; 
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--glass-border);
    background: #fff;
    display: block;
    flex-shrink: 0;
}

.modal-section {
    width: 100%;
    line-height: 0;
    flex-shrink: 0;
}

.report-block h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-block h4 i {
    color: var(--primary-blue);
}

.report-block p, .process-list {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted-dark);
}

.report-block.highlight {
    background: rgba(29, 76, 107, 0.04);
    padding: 25px;
    border-left: 4px solid var(--primary-blue);
}

/* 4. カスタムアセット・CTA */
.custom-assets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.asset-item img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.asset-item h4 {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-blue);
    transition: 0.3s;
}

.notice-box {
    margin-top: 60px;
    padding: 30px;
    background: rgba(25, 25, 25, 0.03);
    border-left: 4px solid var(--primary-blue);
    font-size: 0.9rem;
    color: var(--text-dark);
}

.service-footer-cta {
    background: linear-gradient(to bottom, rgba(25, 25, 25, 0.8), rgba(25, 25, 25, 0.98));
    backdrop-filter: blur(10px);
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.service-footer-cta h2 { font-size: 4rem; margin-bottom: 20px; }
.service-footer-cta p { opacity: 0.9; margin-bottom: 50px; }

/* 共通レイアウトで定義されたボタンデザインの継承と微調整 */
.btn-ghost.light-border {
    color: var(--text-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-ghost.light-border:hover {
    border-color: var(--text-light) !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 5. レスポンシブ対応 */
@media (max-width: 1024px) {
    .collection-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .modal-container {
        max-height: 90vh;
        overflow-y: auto;
        padding: 60px 20px;
    }
    .modal-detail-wrapper {
        display: block;
        height: auto;
    }
    .modal-image-scroll {
        height: auto;
        margin-bottom: 30px;
    }
    .modal-image-scroll img {
        height: auto;
        max-height: 100vh;
        object-fit: contain;
    }
    .modal-info-sticky {
        height: auto;
        overflow-y: visible;
        padding-right: 0;
    }
    .modal-sub-img {
        width: 100%;
        height: 65vh;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 768px) {
    .service-item, 
    .service-item.reverse { 
        flex-direction: column !important;
        gap: 30px; 
        margin-bottom: 80px;
    }

    .service-visual { order: 1; width: 100%; }
    .service-info { order: 2; width: 100%; }

    .service-num { font-size: 2.2rem; }
    .service-info h3 { font-size: 1.6rem; }

    .collection-grid { grid-template-columns: 1fr; }
    .custom-assets-grid { grid-template-columns: 1fr; }
    .service-collection-section h2 { font-size: 2.2rem !important; }
    
    .service-footer-cta h2 { font-size: 2.5rem; }
    .service-footer-cta .btn-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
}