@charset "UTF-8";
/* CSS Document */
.h-search{
	background-color: #f0f2f5!important;
}

h1 {
	text-align: center;
	margin-bottom: 50px;
}
.highlight {
    background-color: yellow !important;
    transition: background-color 1s ease!important;
}

.search-box {
	text-align: center;
	margin-bottom: 50px;
}

.search-box input {
	width: 300px; /* 幅を指定 */
    height: 40px; /* 高さを指定 */
    padding: 5px; /* 内側の余白 */
    border: 1px solid #ccc; /* 枠線 */
    border-radius: 5px; /* 角を丸く */
    font-size: 16px; /* 文字サイズ */
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* ボタン間の余白 */
    flex-wrap: wrap;
}

.search-form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 250px;
}

.s-button,
.clear-button {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.s-button {
    background-color: #007bff;
    color: white;
}

.clear-button {
    background-color: #6d6d6d; /* 赤色 */
    color: white;
}

.clear-button:hover {
    background-color: #c82333;
}



.results {
    max-width: 100%;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 整列を保証 */
    gap: 10px;
    width: 100%;
    max-width: 1200px; /* 画面幅が広いときの最大幅を設定 */
    margin: 0 auto; /*  中央揃え */
}

.result-item {
    background-color: #f8f9fa; /* 背景色 */
    padding: 10px;
    border-radius: 5px; /* 角を丸くする */
    margin-bottom: 10px; /* 下の余白 */
    width: calc(33.33% - 10px); /* 3列レイアウト（調整可能） */
    min-width: 250px; /* 最小幅の指定 */
    text-align: center;
    transition: background-color 0.3s ease-in-out;
    border: 1px solid #ddd; /* 枠線 */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); /* 影をつける */
}

.result-item:hover {
    background-color: #e9ecef; /* ホバー時に少し色を変える */
}

.result-item a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    display: block;
}

@media (max-width: 768px) {
    .result-item {
        flex: 1 1 calc(50% - 20px); /* タブレットでは2列 */
    }
}

@media (max-width: 480px) {
    .result-item {
        flex: 1 1 100%; /* スマホでは1列 */
    }
}
