@charset "UTF-8";
/* Responsive CSS for Samurai Project */
@media (max-width: 768px) {
    /* Mobile-specific styles will go here */
    * {
        box-sizing: border-box;
    }
    header {
        width: 100%;
        height: auto;
        padding: 0 16px;
    }
    
    #site-id {
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 10px;
        a {
            height: 56px;
            display: block;
            img {
                height: 100%;
                object-fit: contain;
            }
        }
    }
    
    #page-title {
        width: 100%;
        height: auto;
        margin: 24px 0;
        img {
            height: 40px;
            width: auto;
        }
    }
    #global-nav {
        background-color: #fff;
    }
    #drop-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: static;
        top: 0;
        margin-top: 10px;
    }
    #drop-menu li {
        height: auto;
    }
    #drop-menu li ul {
        float: none;
        position: static;
        display: flex;
        gap: 1px;
    }
    #drop-menu li ul li  {
        height: auto;
    }
    
    .contents h1#page-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .side {
        width: 100%;
        float: none;
        margin: 10px 0;
    }
    
    #member-detail {
        width: 100%;
        max-width: 400px;
        margin: 40px auto;
        float: none;
    }
    
    #ph_gallery,
    #ph_gallery_s {
        width: 100%;
        max-width: 400px;
        float: none;
        margin-inline: auto;
        img {
            width: 100%;
            height: auto;
        }
    }

    #ph_gallery_s ul { 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 16px;
    }
    #ph_gallery_s ul li { 
        width: calc((100% - 16px) / 2);
        height: auto;
        margin:0;
        float: none;
        aspect-ratio: 1 / 1;
    }

    
    #contents-body {
        width: 100%;
        padding: 0 16px;
    }
    
    #bread-crumb {
        display: none;
    }
    
    .grid-item_w460 {
        width: 100%;
    }
    
    .grid-item_w220 {
        width: 100%;
    }
    
    .cng-btn {
        width: 100%;
        margin: 10px 0;
    }
    .foot-bnr ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        width: 100%;
        margin-inline: auto;
        li {
            margin: 0 !important;
        }
    }
    #footer {
        width: 100%;
        height: auto;
        background: none;
        
    }
    #footer-container {
        width: 100%;
        height: auto;
        background: none;
    }
    #footer-nav {
        height: auto;
        margin: 0;
        padding: 24px 0;
    }
    #footer-nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
        margin: 0;
    }
    #copyright {
        background-color: #460C12;

    }
}