body {
    margin: 0 auto; /* 中央配置 */
    padding: 0 10px; /* すべての端に10pxのパディングを追加、上部にもスペースを追加する場合ここを変更 */
    background-color: #fafafa; /* 背景色 */
    color: #333; /* テキスト色 */
    font-family: "游ゴシック", "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
    max-width: 1200px; /* 最大幅を設定 */
}

body {
    background-image: url('img/bd.jpg');
    background-size: cover; /* 背景画像がページ全体を覆うように設定 */
    background-repeat: no-repeat; /* 背景画像が繰り返さないように設定 */
    background-attachment: fixed; /* 背景画像がスクロールに合わせて動かないように設定 */
}

.top {
    margin-top: 80px; /* headerの高さに応じて調整、必要に応じて増やす */
    padding: 20px;
}

span{
    background:linear-gradient(transparent 60%, #ff6 60%);
	font-size: 22px;
}

/* ヘッダーのスタイリング */
.header {
    font-family: "Sawarabi Mincho", serif;
    font-weight: 600;
    background-color: white; /* ヘッダーの背景色を白に設定 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* ヘッダーに影を追加 */
    padding: 16px;
    text-align: left;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex; /* Flexbox を有効化 */
    align-items: center; /* 垂直方向の中央揃えを行う */
    justify-content: flex-start; /* 水平方向に左揃え */
}

.header-icon {
    vertical-align: middle;
    margin-right: 16px;
    width: 45px;
    height: 45px;
}

.language-switcher {
    margin-left: auto; /* 左の要素から自動でマージンを取り、右端に寄せる */
    margin-right: 16px;
    padding: 0 20px; /* 両端にパディングを追加 */
    transition: transform 0.2s;
    font-size: 20px;
}

.language-switcher a {
    color: #333; /* リンクの色 */
    text-decoration: none; /* アンダーラインを消去 */
    font-weight: bold; /* フォントを太く */
}



.language-switcher a:hover {
    background-color: #f0f0f0;
}


/* 画面幅に応じたレスポンシブデザインの設定 */
@media (max-width: 650px) { /* 小さいデバイス向け */
    .header {
        padding: 6px;
        font-size: 20px;
    }
    .img-container {
        flex-direction: column;
        align-items: center;
    }
    .header-icon {
        vertical-align: middle;
        margin-right: 8px;
        width: 35px;
        height: 35px;
    }
    .language-switcher {
        font-size: 12px;
        margin-right: 2px;
    }
}

@media (min-width: 651px) and (max-width: 1000px) { /* 中間のデバイス向け */
    .header {
        padding: 12px;
        font-size: 24px;
    }
    .img-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    .language-switcher {
        font-size: 16px;
        margin-right: 5px;
    }
}

@media (min-width: 1001px) { /* 大きいデバイス向け */
    .header {
        padding: 18px;
        font-size: 28px;
    }
    .img-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* 画像とタイトルのボックスをスタイリング */
.img-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 45px; /* ボックス間の間隔 */
    justify-content: center;
}

.img-box {
    width: 320px; /* ボックスの幅を固定 */
    border: 1px solid #ddd; /* 枠線 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 影 */
    margin-bottom: 20px; /* 下のマージン */
    text-align: center; /* 中央寄せ */
    background: linear-gradient(to right,rgb(249, 190, 131), white);
    background-color: rgb(253, 167, 80); /* 背景色 */
    transition: transform 0.1s; /* ホバー時のアニメーション */
    cursor: pointer; /* マウスカーソルをポインタに変更 */
}

.img-box:hover {
    transform: scale(1.01); /* ホバー時に少し大きく */
}

.img-box img {
    width: 320px; /* 画像の幅をボックスに合わせる */
    height: 200px; /* 画像の高さを固定 */
}

.img-title {
    color: #343434;
    font-size: 17px;
    font-weight: 500;
    padding: 10px; /* タイトルのパディング */
    background-color: white; /* タイトルの背景色 */
    border-top: 1px solid white; /* 上の枠線 */
}

.search-section {
    text-align: center;
    padding: 20px;
}

.search-box {
    font-size: 16px;
    padding: 10px 20px;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px; /* ボックスの幅 */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.01s ease;
}

.search-box:focus {
    border-color: #777;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.search-btn {
    font-size: 16px;
    padding: 6px 12px;
    background-color: #4c577e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #7d8dc8;
}
