/* ベースのスタイリング */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('checkered-background.png'); /* 壁紙画像を設定 */
    background-repeat: repeat; /* 画像をタイル状に繰り返し表示 */
    color: #333;
}

/* コンテナと全体のレイアウト */
.container {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* 背景を少し透明にして壁紙が見えるように */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ヘッダー */
h1 {
    font-size: 24px;
    color: #333;
}

/* フォーム要素のラベルスタイル */
label {
    font-weight: bold; /* ラベルを太字にする */
    display: block; /* ブロックレベル要素として表示 */
    margin-top: 20px; /* 上部にスペースを設定 */
    margin-bottom: 8px; /* 下部にスペースを設定 */
}

/* フォーム要素のスタイル調整 */
input[type="text"], textarea, button {
    width: 100%; /* 幅を100%に設定 */
    padding: 12px 20px;
    margin-top: 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* ボーダーとパディングを幅に含める */
}

button {
    background-color: #5c67f2;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #4a54e1;
}

/* リンクボックスのスタイル */
#linkBox {
    margin-top: 20px;
    padding: 10px;
    background-color: #e8e8e8;
    border-radius: 4px;
    word-wrap: break-word;
    text-align: center; /* テキストを中央寄せ */
    font-size: 18px; /* フォントサイズの拡大 */
    font-weight: bold; /* フォントの太さを強調 */
}

/* リンクのスタイル */
a {
    color: #ffd700; /* 金色 */
    text-decoration: none; /* 下線を消す */
    font-size: 20px; /* フォントサイズの拡大 */
    padding: 10px 15px; /* パディングの追加 */
    border-radius: 5px; /* ボーダーの丸み */
    background-color: #333; /* 濃い背景色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4); /* 影を追加 */
    transition: all 0.3s ease; /* アニメーション効果 */
}

a:hover {
    background-color: #ffd700; /* ホバー時の背景色を金色に */
    color: #333; /* ホバー時の文字色を暗く */
}

/* フッターのスタイル */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: #f2f2f2; /* フッターの背景色 */
    color: #666; /* フッターのテキスト色 */
    font-size: 14px;
    width: 100%; /* フッターの幅を100%に設定 */
    position: fixed; /* ページの最下部に常に表示 */
    bottom: 0;
    left: 0;
    box-sizing: border-box; /* パディングとボーダーを幅に含む */
}

/* 追加された使い方と注意事項セクション */
#instructions {
    margin-top: 20px;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    font-size: 14px;
}

footer a {
    color: #666; /* フッターテキストと同じ色に設定 */
    text-decoration: none; /* 下線を消す */
    background-color: transparent; /* 背景色を透明にする */
    padding: 0; /* パディングをリセット */
    font-size: inherit; /* 親要素と同じフォントサイズを継承 */
    border: none; /* ボーダーを削除 */
    box-shadow: none; /* 影を削除 */
    display: inline; /* インライン表示に設定 */
}

footer a:hover {
    text-decoration: underline; /* ホバー時に下線を表示 */
    color: #333; /* ホバー時の色を少し暗くする */
}
