body {
    margin: 20px;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 14px; /* 全体のテキストサイズ */
    color: #fff; /* ここでテキストの色を白に設定 */
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 5px;
    padding: 0px;
}

.color-box {
    width: 70px;
    height: 70px;
    border-radius: 0px;
    margin: 1px;
    cursor: pointer;
    background-color: #ff0000;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.color-box:hover {
    background-color: #ff4500;
}

button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #555;
}

footer {
  background-color: #f5f5f5; /* 背景色 */
  padding: 10px; /* パディング */
  text-align: center; /* テキストを中央寄せ */
}

footer p {
  margin: 0; /* マージンのリセット */
}

footer a {
  color: #555555; /* リンクの色 */
  font-size: 1.5em; /* フォントサイズ */
  text-decoration: none; /* 下線を消す */
}

footer a:hover {
  color: #777; /* ホバー時の色 */
  text-decoration: underline; /* 下線を表示 */
}


/* タイトルのスタイルを変更 */
h1 {
    font-family: Arial, sans-serif;
    font-size: 20px; /* タイトルのテキストサイズを20pxに変更 */
    color: #333;
    /* その他のスタイル設定 */
}

/* Spaced Footer Styles */

footer {
    background-color: #f5f5f5; /* Dark grey background for a modern look */
    padding: 8px 15px; /* Compact padding */
    text-align: center; /* Center align the content */
    font-size: 8px; /* Small font size */
    color: #fff; /* White text for contrast */
    margin-top: 20px; /* Increased space above the footer */
}

footer a {
    color: #555555; /* Modern green color for links */
    text-decoration: none; /* No underline */
    transition: color 0.3s; /* Smooth transition for hover effect */
}

footer a:hover {
    color: #777; /* Lighter green on hover */
}

/* Adding specific styles for the privacy policy page */
.privacy-policy {
    color: #000; /* Setting text color to black */
}

.return-button {
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    display: inline-block;
    margin-top: 20px;
}

.return-button:hover {
    background-color: #e0e0e0;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
}

header a {
    text-decoration: none; /* Removing the underline from links in the header */
}

/* モーダル（ポップアップ）用のスタイル */
#color-modal {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000; /* 画面の一番手前に表示させる */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#color-modal.show {
    display: flex; /* .show クラスがついたら表示する */
}

/* 文字が見えにくくならないようにする半透明の枠 */
.modal-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
}

.modal-content h2 {
    margin-top: 0;
    font-size: 2em;
}

.modal-close-btn {
    margin-top: 20px;
    background-color: #fff;
    color: #333;
    border: none;
    padding: 10px 30px;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-close-btn:hover {
    background-color: #ddd;
}
