* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f1edea;
    color: #7d5229;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh; 
}

header {
    width: 50%;
    text-align: center;
    margin-bottom: 20px;
}

.header-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.info-box {
    border: 1.5px solid #7d5229;
    padding: 20px;
    max-width: 800px;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
}

p {
    margin-bottom: 15px;
    font-size: 18px;
}

.box-container {
    display: grid;
    grid-template-columns: repeat(2, 300px); /* 幅を固定 (300px) に変更 */
    grid-gap: 20px; /* ボックス間の隙間 */
    justify-content: center; /* ボックスを中央寄せに変更 */
    margin-top: 40px;
}

.box-link {
    text-decoration: none;
    color: inherit;
}

.box-link:hover {
    text-decoration: none; /* ホバー時にも下線を消す */
}

.box-link:hover .box {
    background-color: #E1CDBA; /* ボックス全体のホバー効果*/
} 

.box {
    width: 300px; /* ボックスの幅を固定に変更 */
    height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

p {
    font-size: 15px;
}

footer {
    margin-top: 40px;
    background-color: #7d5229;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 10px;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #ddd;
}

a {
    color: white; /* 通常時のリンクの色 (トマト色) */
    text-decoration: none; /* 下線を消す場合 */
}

a:hover {
    color: white; /* ホバー時のリンクの色 (オレンジレッド) */
    text-decoration: underline; /* ホバー時に下線を追加 */
}

/*a:visited {
    color: #BE8F68 ; /* 訪問済みリンクの色 (ダークレッド) 
}*/


@media only screen and (max-width: 768px) {
    /* ボディ全体の配置とスタイルを調整 */
    body {
        padding: 0 10px; /* モバイルではパディングを追加 */
        justify-content: flex-start; /* 上部に寄せる */
    }

    /* ヘッダー画像を縮小 */
    header {
        width: 90%; /* ヘッダーの幅を90%に調整 */
    }

    /* 情報ボックスを全幅に近づける */
    .info-box {
        width: 100%; /* モバイルでは全幅を使う */
        padding: 15px; /* パディングを少し小さく */
        font-size: 16px; /* 文字サイズも調整 */
    }

    /* ボックスのレイアウトを縦並びに変更 */
    .box-container {
        display: grid;
        grid-template-columns: 1fr; /* 1列に変更 */
        grid-gap: 10px; /* ボックス間の隙間を小さく */
        justify-content: center;
        margin-top: 20px;
    }

    .box-link {
        text-decoration: none;
        color: inherit;
    }
    
    .box-link:hover {
        text-decoration: none; /* ホバー時にも下線を消す */
    }
    
    .box-link:hover .box {
        background-color: #E1CDBA; /* ボックス全体のホバー効果*/
    } 
    

    /* ボックスの幅を調整 */
    .box {
        width: 100%; /* モバイルでは全幅に広げる */
        padding: 15px; /* パディングを小さく調整 */
        font-size: 14px; /* 文字サイズを縮小 */
    }

    

    /* フッターのスタイルを調整 */
    footer {
        font-size: 12px; /* 文字サイズを縮小 */
        padding: 15px 0; /* パディングを少し小さく */
    }
}


