.headcontainer {
    width: 800px;
    max-width: 800px;
}

.searchcontainer {
    display: block;
    /* 横並びを防ぐためにflexをblockに変更 */
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    max-width: 800px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: left;
}

.results h2 {
    margin-top: 20px;
    color: #00bfa5;
    /* プライマリーカラー */
}

.results ul {
    list-style: none;
    padding: 0;
}

.results li {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.results li h3 {
    margin: 0;
    color: #333;
}

.results li p {
    margin: 10px 0 0;
    color: #666;
}

.genre-label {
    font-size: 12px;
    color: #888;
}


.searchscenario-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.searchscenario-card {
    display: flex;
    align-items: stretch;
    border-bottom: 2px solid #00bfa5;
    overflow: hidden;
    width: 100%;
    /* カードを全幅に */
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px 0;
    /* カード全体の上下余白を縮小 */
}

.searchscenario-image {
    min-width: 80px;
    /* 最小幅を調整 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.searchscenario-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    /* 画像を整える */
}

.searchscenario-details {
    flex: 1;
    padding: 10px 15px;
    /* 上下の余白を減らし、左右を少し広げる */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.searchscenario-name {
    font-size: 14px;
    /* フォントサイズを微調整 */
    font-weight: bold;
    margin: 0px;
    /* 下部の余白を縮小 */
    color: #333;
}

.searchscenario-members-container {
    display: flex;
    /* 横並びにする */
    flex-wrap: wrap;
    /* 内容が多い場合に折り返し */
    gap: 5px;
    /* 各要素の間隔を狭く */
}

.searchscenario-members {
    display: inline-block;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
    background-color: #00bfa5;
    text-align: center;
    padding: 0px 10px;
}

.searchscenario-description {
    font-size: 12px;
    /* テキストサイズを縮小 */
    color: #555;
    line-height: 1.4;
    /* 行間を縮小 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 最大表示行数を2行に設定 */
    line-clamp: 2;
    /* 標準プロパティを追加 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.details {
    display: grid;
    /* グリッドレイアウトを使用 */
    grid-template-columns: 20px auto;
    /* アイコンの固定幅を調整 */
    align-items: center;
    /* 垂直方向の中央揃え */
    gap: 8px;
    /* アイコンとテキストの間隔を縮小 */
    margin-top: 3px;
    /* 各行の間隔を縮小 */
}

.details i {
    color: #00bfa5;
    /* アイコンの色 */
    font-size: 16px;
    /* アイコンのサイズを縮小 */
    text-align: center;
    /* アイコンを中央揃え */
}

.details span {
    font-size: 14px;
    /* テキストサイズを縮小 */
    color: #333;
    /* テキストの色 */
    line-height: 1.2;
    /* テキストの行間を縮小 */
}

.no-results-message {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border: 2px dashed #00bfa5;
    /* プライマリーカラー */
    border-radius: 10px;
    background-color: #f9f9f9;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.no-results-message i {
    font-size: 48px;
    color: #00bfa5;
    /* プライマリーカラー */
    margin-bottom: 10px;
}

.search-form {
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #00bfa5;
    /* プライマリーカラー */
    border-radius: 8px;
    /* 角を丸く */
    background-color: #f9f9f9;
    /* 背景色 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* 軽い影 */
}


.btn-small:hover {
    filter: brightness(1.00);
}

.btn:hover {
    filter: brightness(1.00);
}

.link {
    font-weight: bold;
    color: #2f56c1;
}

/* CSS */
.custom-checkbox {
    margin-left: 0px;
    margin-right: 10px;
}

/* マークバッジの基本スタイル */
.status-badge {
    position: absolute;
    top: 20px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    /* テキストサイズを調整 */
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 立卓済のスタイル */
.status-full {
    background-color: #f60e3c;
    /* 赤色 */

}

/* 立卓間近のスタイル */
.status-near-full {
    background-color: #ffa217;
    /* 黄色 */
}

/* マークバッジ内のアイコンスタイル */
.status-badge i {
    margin-right: 5px;
    font-size: 16px;
}

/* カードに相対位置を設定 */
.searchscenario-card {
    position: relative;
    /* バッジの絶対位置の基準 */
    /* 既存のスタイル */
}

.btn {
    margin-bottom: 20px;
}


.searchscenario-card {
    display: grid;
    grid-template-columns: 2fr 7fr;
    grid-template-rows: auto auto;
    grid-gap: 15px;
}

.searchscenario-image {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.titles-container {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.details-container {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* アコーディオン用のスタイル */
#filter-form-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.5s ease-out;
    padding: 0 10px;
}

#filter-form-container.open {
    max-height: 1000px;
    /* 必要に応じて調整 */
}

/* スマートフォン用調整 */
@media (max-width: 768px) {

    h1 {
        font-size: 20px;
        text-align: center;
    }

    /* マークバッジの基本スタイル */
    .status-badge {
        top: 0px;
        right: 0px;
        padding: 0px 8px;
        border-radius: 8px;

    }

    .status-badge i {
        font-size: 12px;
        margin-right: 1px;
    }

    .btn {
        margin-bottom: 15px;
    }

    .searchscenario-card {
        display: grid;
        grid-template-columns: 3fr 8fr;
        grid-template-rows: auto 1fr;
        grid-gap: 15px;
    }

    .searchscenario-image {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .titles-container {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .details-container {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }

    .details span {
        font-size: 12px;
    }

    .btn-small {
        padding: 5px;
        height: auto;
    }
}