/* ============================
   Reset
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Serif JP", serif;
    background: #f7f6fb;
    color: #2a3f5f;
    text-align: center;
}

/* ============================
   Header（和モダン）
============================ */
.header-wamodern {
    position: relative;
    background: #2a3f5f;
    color: #fff;
    padding: 14px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.site-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ============================
   ハンバーガー（右上固定）
============================ */
.hamburger {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 28px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: 0.3s;
}

/* 開いたときのアニメーション */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================
   スライドメニュー
============================ */
.side-menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100%;
    background: #ffffff;
    border-right: 2px solid #d8cfe3;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    padding-top: 70px;
    transition: left 0.3s ease;
    z-index: 950;
}

.side-menu ul {
    list-style: none;
}

.side-menu li {
    margin: 18px 0;
}

.side-menu a {
    color: #2a3f5f;
    font-size: 16px;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background 0.2s;
}

.side-menu a:hover {
    background: #f0eaf7;
    border-radius: 6px;
}

/* メニュー展開 */
.side-menu.show {
    left: 0;
}

/* 背景オーバーレイ */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 900;
}

.menu-overlay.show {
    display: block;
}

/* ============================
   カード一覧（和モダン）
============================ */
section.contents {
    width: 95%;
    margin: 20px auto 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.items {
    width: 150px;
    padding: 1.2em 1em;
    background: #ffffff;
    border-radius: 14px;
    border: 2px solid #e6e6e6;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.items:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.items img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    color: #2a3f5f;
    margin-bottom: 4px;
}

.item-kind {
    font-size: 12px;
    color: #6b6b6b;
}

/* ============================
   絞り込み UI（history 用）
============================ */
.filter-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px;
    justify-content: center;
}

.filter-box input,
.filter-box select,
.filter-box button {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.filter-box button {
    background: #2a3f5f;
    color: #fff;
    border: none;
    cursor: pointer;
}

.filter-box button:hover {
    background: #3b5275;
}

/* ============================
   Footer（和モダン）
============================ */
.footer-wamodern {
    background: #2a3f5f;
    color: #fff;
    padding: 12px 0;
    margin-top: 40px;
    font-size: 14px;
}

/* ============================
   PC レイアウト微調整
============================ */
@media (min-width: 900px) {
    .items {
        width: 180px;
    }
}