@charset "UTF-8";

/* ===============================
   検索ボタン
=============================== */
.search-toggle-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: #fff url('/img/search_b.png') center/24px no-repeat;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    z-index: 999;
    transition: background-color 0.2s ease;
}

.search-toggle-btn:hover {
    background: #d0d0d0 url('/img/search_b.png') center/24px no-repeat;
}

.search-toggle-btn.open {
    background: #333 url('/img/search_w.png') center/24px no-repeat;
    border-color: #333;
}

.search-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
    background: #fafafa;
    border-radius: 14px;
    border-bottom: 0;
}

.search-panel.open {
    max-height: 1000px; /* 十分大きければOK */
    border-bottom: 1px solid #ddd;
}

.search-box {
    margin-bottom: 2em;
}

/* ===============================
   検索内容
=============================== */
.form-group {
    margin-bottom: 18px;
}

.selected-display {
    padding: 8px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    color: #444;
}

.select-box {
    display: none;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    max-height: 140px;
    overflow-y: auto;
}

.select-box label {
    display: block;
    margin-bottom: 4px;
}

.year-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

.year-range input {
    width: 120px;
}

.year-separator {
    font-size: 14px;
    color: #555;
}

.year-input {
    position: relative;
    display: inline-block;
}

.year-input input {
    padding-right: 2.2em;
}

.year-input::after {
    content: "年";
    position: absolute;
    right: 0.6em;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
}

/* ===============================
   カード部分
=============================== */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列固定 */
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.card img {
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形 */
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 12px 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    line-height: 1.2em;
	overflow-wrap: anywhere;
}

.card-year {
    font-size: 14px;
    color: #444;
    margin-bottom: 2px;
}

.card-address {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

/* ===============================
   検索解除
=============================== */
.resetToDefault {
    text-align: center;
    margin-top: 20px;
}

.resetToDefault a {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #2773ae;
    font-weight: 600;
    transition: 0.2s;
}

.resetToDefault a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* ===============================
   ページネーション
=============================== */
.pagination {
    text-align: center;
    margin: 30px -10px;
}

.pagination a {
    display: inline-block;
    padding: 6px 10px;
    margin: 4px 2px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #2773ae;
    font-weight: 600;
    transition: 0.2s;
    font-size: 14px;
}

.pagination a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

.pagination a.active {
    background: #2773ae;
    color: #fff;
    cursor: default;
}

.pagination-dots {
    display: inline-block;
    margin: 0 6px;
    color: #888;
    font-size: 14px;
}

