*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f3f5f7;
    font-family:"Yu Gothic","Meiryo",sans-serif;
    color:#333;
}

header{
    background:#2196F3;
    color:white;
    padding:30px;
    text-align:center;
    box-shadow:0 2px 8px rgba(0,0,0,.2);
}

h1{
    margin-bottom:10px;
}

.sub{
    opacity:.9;
    margin-bottom:20px;
}

#search{
    width:90%;
    max-width:500px;
    padding:12px;
    border:none;
    border-radius:8px;
    font-size:16px;
}

main{
    width:95%;
    max-width:1100px;
    margin:auto;
    padding:25px 0;
}

.category{
    margin-bottom:18px;
}

.accordion{
    width:100%;
    border:none;
    background:white;
    font-size:22px;
    text-align:left;
    padding:18px 20px;
    border-radius:12px;
    cursor:pointer;
    transition:.25s;
    box-shadow:0 3px 8px rgba(0,0,0,.08);
}

.accordion:hover{
    background:#e3f2fd;
}

.content{
    display:none;
    background:white;
    margin-top:10px;
    padding:20px;
    border-radius:12px;
    box-shadow:0 3px 8px rgba(0,0,0,.08);
}

.gallery{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:15px;
}

.gallery img{
    width:100%;
    border-radius:10px;
    cursor:pointer;
    transition:.2s;
}

.gallery img:hover{
    transform:scale(1.05);
}

.viewer{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    justify-content:center;
    align-items:center;
    z-index:999;
}

.viewer img{
    max-width:95%;
    max-height:90%;
}

#close{
    position:absolute;
    right:25px;
    top:20px;
    color:white;
    font-size:40px;
    cursor:pointer;
}
/* ========================= */
/* スマホ対応 */
/* ========================= */

@media (max-width: 768px){

    header{
        padding:20px 15px;
    }

    h1{
        font-size:28px;
    }

    .sub{
        font-size:14px;
    }

    #search{
        width:100%;
        font-size:16px;
    }

    main{
        width:96%;
        padding:15px 0;
    }

    .accordion{
        font-size:18px;
        padding:15px;
    }

    .content{
        padding:15px;
    }

    .gallery{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .gallery img{
        border-radius:8px;
    }

    .viewer img{
        max-width:98%;
        max-height:85%;
    }

    #close{
        top:10px;
        right:15px;
        font-size:32px;
    }

}

/* 小さいスマホ */

@media (max-width: 480px){

    h1{
        font-size:24px;
    }

    .accordion{
        font-size:16px;
        padding:13px;
    }

    .gallery{
        grid-template-columns:1fr;
    }

}
.image-card{
    text-align:center;
}

.image-name{
    margin-top:8px;
    font-size:14px;
    word-break:break-all;
    color:#555;
}
.notice{
    background:#e53935 !important;
    color:white;
    font-weight:bold;
    font-size:24px;
}

.notice:hover{
    background:#c62828 !important;
}
/* ========================= */
/* 取引概要 */
/* ========================= */

.notice{
    background:#d32f2f !important;
    color:#fff;
    font-size:24px;
    font-weight:bold;
}

.notice:hover{
    background:#b71c1c !important;
}

.notice-content{

    background:#fff;

    padding:25px;

    line-height:1.9;

    font-size:16px;

    border-left:6px solid #d32f2f;

}

.notice-content h1,
.notice-content h2,
.notice-content h3{

    margin-top:25px;
    margin-bottom:12px;

}

.notice-content p{

    margin-bottom:12px;

}

.notice-content ul{

    margin-left:25px;

}

.notice-content li{

    margin-bottom:8px;

}
/* ===== 取引概要 ===== */

.notice{
    background:#d32f2f !important;
    color:#fff;
    font-size:24px;
    font-weight:bold;
}

.notice:hover{
    background:#b71c1c !important;
}

.notice-content{
    background:#fff;
    padding:30px;
    line-height:1.9;
    font-size:16px;
    border-left:6px solid #d32f2f;
}

.notice-content h1,
.notice-content h2,
.notice-content h3{
    margin:20px 0 10px;
}

.notice-content p{
    margin-bottom:12px;
}

.notice-content ul{
    margin-left:24px;
}

.notice-content li{
    margin-bottom:8px;
}