﻿@charset "utf-8";

/* フォーム・カードパーツ */
.search-section, .result-section {
    border: 1px solid #A1B9C8;
    padding: 15px;
    background-color: #fff;
    margin-bottom: 15px;
    border-radius: 4px;
}

.section-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #2461BF;
    border-bottom: 2px solid #2461BF;
    padding-bottom: 4px;
}

/* 検索フォーム構造 */
.search-form-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: flex;
    flex-direction: column;
}

.date-hint {
    font-size: 0.7rem;
    color: #666;
}

.button-group {
    margin-top: 15px;
    display: flex;
    gap: 5px;
}

/* 開閉（details/summary）設定 */
.advanced-search-details {
    margin-top: 5px;
}

.advanced-search-toggle {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    color: #2461BF;
    padding: 8px 10px;
    background-color: #f0f4f8;
    border: 1px dashed #A1B9C8;
    border-radius: 4px;
    list-style: none;
    user-select: none;
}

.advanced-search-toggle::-webkit-details-marker {
    display: none;
}

.advanced-search-details[open] .toggle-text-open {
    display: none;
}
.advanced-search-details:not([open]) .toggle-text-close {
    display: none;
}

.advanced-search-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

/* 結果テーブル領域 */
.result-header {
    text-align: right;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-grid {
    min-width: 550px;
}

/* ==========================================
   PC表示 (769px以上)
   ========================================== */
@media screen and (min-width: 769px) {
    .main-layout {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-template-areas: "main side";
        gap: 20px;
        align-items: start;
    }

    .main-content {
        grid-area: main;
        min-width: 0;
    }

    .sidebar-right {
        grid-area: side;
        width: 300px;
    }

    .ad-sidebar {
        width: 300px;
    }
}

/* ==========================================
   スマホ表示 (768px以下)
   ========================================== */
@media screen and (max-width: 768px) {
    .main-layout {
        display: flex;
        flex-direction: column;
    }

    .sidebar-right, 
    .main-content {
        width: 100%;
    }

    /* スマホ時はPC専用ナビを隠す */
    .pc-only {
        display: none !important;
    }
}