/* 全体のスタイル設定 */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a;
    background-image: 
        linear-gradient(60deg, rgba(255, 255, 255, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, 0.02) 75.5%),
        linear-gradient(-60deg, rgba(255, 255, 255, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, 0.02) 75.5%);
    background-size: 40px 70px;
}

/* タイトル */
h1 {
    font-family: "Dancing Script", cursive; /* 高級感のある筆記体フォント */
    font-size: 2.5em; /* 適切なサイズに調整 */
    color: rgb(222, 88, 255); /* 白色の文字色（既存設定） */
    margin-top: 20px;
}

/* ボタンの配置 */
#buttons {
    margin: 20px;
}

button {
    padding: 12px 24px;
    margin: 8px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3); /* 微細な透明感のある境界線 */
    background-color: rgba(0, 0, 0, 0.6); /* 半透明な黒色で背景と馴染む色調 */
    color: white;
    font-size: 18px; /* 少し大きめのフォントで存在感を強調 */
    font-family: "Playfair Display", serif; /* 高級感を感じるシンプルなフォント */
    border-radius: 8px; /* 柔らかい角丸形状 */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1); /* さりげない光の輝き効果 */
    transition: all 0.3s ease; /* マウスオーバー時の滑らかな変化 */
}

button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* マウスオーバー時に少し明るくなる効果 */
    color: rgba(255, 255, 255, 0.9); /* テキストを鮮明に */
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3); /* 光の効果を増強 */
}

/* 車両カタログのレイアウト */
#catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* 車両間の余白 */
    padding: 10px;
}

/* 車両情報のスタイル */
.car {
    border: 1px solid #ff0000;
    border-width: 2px;
    padding: 10px;
    width: calc(25% - 20px); /* PCでは横4車両配置 */
    box-sizing: border-box;
    background-color: rgba(237, 133, 255,0.5);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.car h2 {
    font-family: "Playfair Display", serif; /* 上品で高級感のあるフォント */
    font-size: 1.8em; /* 少し大きめのフォントサイズ */
    color: #67fffa; /* 落ち着いた濃紺で高級感を演出 */
    margin: 10px 0; /* 余白の調整 */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3); /* 微妙な影効果を追加 */
}

.car p {
    font-family: "Georgia", serif; /* 上品で落ち着いたフォント */
    font-size: 35px;
    color: #ffd700; /* ゴールドカラー（金インゴット風） */
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(255, 215, 0, 0.6); /* 光沢感を演出するシャドウ */
    margin: 8px 0;
}

#controls {
    margin: 20px;
}

#searchBox {
    padding: 10px;
    width: 300px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#controls button {
    padding: 8px 16px; /* パディングを縮小 */
    margin: 6px; /* マージンを小さめに */
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3); /* 境界線は維持 */
    background-color: rgba(0, 0, 0, 0.6); /* 半透明の黒色背景 */
    color: white;
    font-size: 14px; /* フォントサイズを小さめに */
    font-family: "Roboto", sans-serif;
    border-radius: 6px; /* 角丸を若干縮小 */
    box-shadow: 0 3px 10px rgba(255, 255, 255, 0.1); /* シャドウも少し控えめに */
    transition: all 0.3s ease;
}

#controls button:hover {
    background-color: rgba(255, 255, 255, 0.1); /* ホバー効果 */
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3); /* シャドウ効果を微調整 */
}


/* 画像のスタイル */
.car img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

footer {
    background-color: #333; /* ダークグレー背景 */
    color: #fff; /* テキストカラーを白に */
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

/* スマホ用レイアウト調整 */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2em; /* スマホ版でサイズを少し小さく設定 */
        margin-top: 15px; /* 余白も調整してバランスを整える */
    }
    .car {
        width: 100%; /* スマホでは1車両ずつ縦に配置 */
    }
}
