
:root {
--ril-maincolor: #0f487e;
--ril-maincolor-h: #4c7194;
--ril-maincolor-h2: #deefff;
--ril-subcolor: #959da2;
--ril-subcolor-h: #d3d3d3;
--ril-bgcolor01: #f0f0f0;
--ril-subcolor2:#fadedf;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px !important;
}

.ril-header {
    background-color: white;
    padding: 10px 0;
}

@media (min-width: 992px) {
    .navbar-collapse {
        margin-left: 2em !important;
    }
}

.navbar-nav .nav-link {
    color: var(--ril-maincolor);
    font-weight: 500;
    padding: 0.8rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--ril-maincolor);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.6rem 1.5rem;
}

.dropdown-item:hover {
    background-color: var(--ril-maincolor);
}

.btn-contact {
    background-color:  var(--ril-maincolor);
    border: 2px solid white;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 1em;
}

.btn-contact:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.navbar-toggler {
    border-color: rgba(0,0,0,0.7);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.collapse{
    visibility: visible !important;
}
        
/* Navbar mobile adjustments */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
        margin-bottom:1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 0;
    }
    
    .dropdown-menu {
        border: none;
        background-color: var(--ril-maincolor);
        box-shadow: none;
    }
    
    .dropdown-item {
        color: var(--ril-subcolor-h);
        padding: 0.5rem 1rem;
    }
    
    .dropdown-item:hover {
        background-color: #334155;
        color: var(--ril-subcolor-h);
    }

    collapse{
        visibility: collapse;
    }
}



#top .hero-section {
    padding: 80px 0 100px 0;
}


.hero-section {
    background-image: url(/librarysystem/images/rapidill/ril_bg01.png);
    padding: 2em 0 3em 0;
    position: relative;
    border-top: 1px solid var(--ril-subcolor);
    border-bottom: 1px solid var(--ril-subcolor);
}

.hero-content {
    position: relative;
    z-index: 1;
}



h5.top-section-heading {
    font-size: clamp(24px, 4vw, 1.5em);
    margin-bottom: 0.5em;
    line-height: 1.2;
    padding:0.2em 0 0.2em 1.5em;
    border-bottom: 1px dashed #333;
    position: relative;
}

h5.top-section-heading::before {
    content: '';
    width: 1em;
    height: 1em;
    background-color: var(--ril-subcolor);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.3em;
}
        
.feature-box {
    border-radius: 12px;
    padding: 2.5em;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}


.intro-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-section {
    background: var(--ril-maincolor);
    color: white;
    padding: 60px 0;
}

.btn-custom {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 50px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.btn-custom:hover {
    background-color: white;
    color: var(--ril-maincolor);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}




/*  ################################################################
    記事ページ
################################################################# */

/*基本*/

.usaco_con_wrap_2 .con_main {
    padding-right: 0;
}

@media screen and (min-width:768px) {
    .usaco_con_wrap_2 .con_main {
    padding-right: 2em;
    }
}

.usaco_con_wrap_2 .con_side {
    position: sticky;
    top: 100px
}

article{

    ul li,
    ol li{
        margin-bottom: 0.5em;
        list-style: circle !important;
        margin-left: 1.5em;
    }

    p{
        margin-bottom: 1em !important;
    }

        h3.section-heading {
            font-size: clamp(24px, 4vw, 32px);
            margin: 0 0 2em 0;
            line-height: 1.2;
            display: flex;
            align-items: center;
            gap: 20px;
            position: relative;
        }

        h3.section-heading::before {
            content: '';
            width: 40px;
            height: 40px;
            background-color: var(--ril-subcolor2);
            border-radius: 50%;
            flex-shrink: 0;
        }

        h3.section-heading::after {
            content: '';
            position: absolute;
            left: 0;
            top: 70%;
            width: 100%;
            height: 60px;
            background-image: url('/librarysystem/images/rapidill/title_border01.png');
            background-repeat: no-repeat;
            background-position: left center;
            background-size: contain;
            margin-top: 2px;
            /* margin-bottom: 5em; */
        }

        /* レスポンシブ対応 */
        @media (max-width: 768px) {

            h3.section-heading {
                gap: 15px;
            }

            h3.section-heading::before {
                width: 32px;
                height: 32px;
            }

            h3.section-heading::after {
                height: 40px;
            }
        }

        h5.section-heading {
            font-size: clamp(24px, 4vw, 1.5em);
            margin: 1.2em 0;
            line-height: 1.2;
            padding:0.2em 0 0.2em 1.5em;
            border-bottom: 1px dashed #333;
            position: relative;
        }

        h5.section-heading::before {
            content: '';
            width: 1em;
            height: 1em;
            background-color: var(--ril-subcolor);
            border-radius: 50%;
            position: absolute;
            left: 0;
            top: 0.3em;
        }


    @media screen and (min-width:768px) {
        .article_block{
            margin: 0 1em;
        }
    }

    .row--2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .col--2 {
        width: 100%;
        padding: 0;
    }

    @media screen and (min-width:768px) {
        .col--2 {
            width: calc(100% / 2);
            padding: 1em;
        }
    }

    .row--3 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .col--3 {
        width: 100%;
        padding: 0;
    }

    @media screen and (min-width:768px) {
        .col--3 {
            width: calc(100% / 3);
            padding: 1em;
        }
    }

    .row--4 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .col--4 {
        width: 100%;
        padding: 0;
    }

    @media screen and (min-width:768px) {
        .col--4 {
            width: calc(100% / 4);
            padding: 1em;
        }
    }



}
