/* Google Fonts - Roboto読み込み */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700;900&display=swap');

/* サービスカード - 基本スタイル */
.service-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
}

.service-cards-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #333;
}

/* カードグリッド */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* カードスタイル */
.service-card {
    background: white;
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}   
.card-num {
    width: 34px;
    height: 34px;
    /* background-color: #005a87; */
    background-color: transparent;
    color: #005a87;
    opacity: 0.1;
    /* color: white; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 8px;
    /* カード番号 */
    font-family: 'Roboto', sans-serif;
    font-weight: 900;
    /* その他のスタイル */
    font-size: 55px;
}

.card-hashtag {
width: fit-content;
display: flex;
padding: 2px 6px;
justify-content: center;
align-items: center;
border-radius: 12px;
background: #FDF1E7;

    color: #B8651B;
    font-weight: bold;
    font-size: 14px;
    margin-left: auto;
    margin-right: 0;
}

.card-title {
    color: #265683;
font-family: "Noto Sans JP";
font-size: 18px;
font-style: normal;
font-weight: 700;
line-height: normal;
letter-spacing: 0.9px;


    margin-bottom: 12px;
    line-height: 1.4;
}
.card-subtitle {
  color: #333;
font-family: "Noto Sans JP";
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: normal;
letter-spacing: 0.8px;
}

.card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-button {
    display: inline-block;
    padding: 8px 24px;
    background: #B86518;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.card-button:hover {
    background: #005a87;
}

/* モーダル - ベース */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    z-index: 99999;
}

.service-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* モーダルコンテンツ */
.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    z-index: 99999;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* モーダル閉じるボタン */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
    background: none;
    border: none;
    line-height: 1;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* モーダル内容 */
.modal-hashtag {
    color: #B8651B;;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 24px;
    color: #265683;
    line-height: 1.4;
}

.modal-body {
    color: #444;
    font-size: 15px;
    line-height: 1.9;
}

.modal-body h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: #333;
    font-size: 18px;
}

.modal-body h4 {
    margin-top: 16px;
    margin-bottom: 8px;
    color: #555;
    font-size: 16px;
}

.modal-body ul,
.modal-body ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body p {
    margin-bottom: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .service-cards-container {
        padding: 20px 15px;
    }

    .service-cards-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        padding: 24px;
        margin: 10px;
    z-index: 99999;
    }

    .modal-close {
        top: 10px;
        right: 10px;
    }

    .modal-hashtag {
        font-size: 20px;
    }

    .modal-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 20px;
    }

    .card-hashtag {
        font-size: 16px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-excerpt {
        font-size: 13px;
    }
}

/* モーダル表示時はヘッダーを非表示 */
body.modal-open .site-header {
    display: none !important;
}