body {
    background-color: #191970;
    color: white;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.link-box {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: #ffffff;
}

.link-box:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

h2, h3 {
    color: #ffffff;
    padding-bottom: 10px;
}

.form-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px #4169E1;
    transform: translateY(-2px);
}

input[type="submit"] {
    background: linear-gradient(45deg, #4169E1, #1E90FF);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0;
}

input[type="submit"]:hover {
    background: linear-gradient(45deg, #1E90FF, #4169E1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4);
}

.back-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

h1 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fortune-button {
    background-color: #191970;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.fortune-button:hover {
    background-color: #2a2a8f;
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top {
    display: inline-block;
    padding: 12px 24px;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.back-to-top:hover {
    background-color: #357abd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-button-container {
    text-align: center;
    margin: 20px 0;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #191970;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.footer-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.footer-links a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-align: center;
    min-width: 120px;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} 


/* スマートフォン用 */
@media screen and (max-width: 980px) {
    body {
        font-size: 35px;
        line-height: 1.6;
    }

    .chat-container {
        padding: 10px;
    }

    .message {
        font-size: 20px;
        padding: 12px;
        margin: 8px 0;
    }

    .input-container {
        padding: 10px;
    }

    textarea {
        font-size: 30px;
    }

    .container {
        width: 95%;
        padding: 0 10px;
        font-size: 35px;
    }

    header {
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-content {
        padding: 15px;
    }

    h1 {
        font-size: 44px;
    }

    h2 {
        font-size: 40px;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }

    footer {
        padding: 15px 0;
        font-size: 20px;
    }

    .form-container {
        width: 95%;
        padding: 15px;
        margin: 10px 0;
    }

    .link-box {
        width: 95%;
        padding: 30px;
        margin: 30px 0;
        font-size: 50px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }

    input[type="text"] {
        padding: 20px;
        font-size: 45px;
        margin: 20px 0;
    }

    input[type="submit"] {
        padding: 12px 24px;
        font-size: 50px;
    }

    .back-link {
        padding: 10px 20px;
        font-size: 30px;
    }

    .fortune-button {
        padding: 12px 24px;
        font-size: 20px;
    }

    .back-to-top {
        padding: 12px 24px;
        font-size: 40px;
    }

    /* テキストの可読性を向上 */
    p {
        font-size: 1.1em;
        line-height: 1.6;
    }

    li {
        font-size: 1.1em;
        line-height: 3.6;
    }

    /* ボタンやリンクのタッチエリアを拡大 */
    button, 
    a {
        min-height: 44px;
        padding: 12px 20px;
    }

    .footer-links {
        gap: 10px;
        flex-direction: column;
        width: 60%;
        margin: 30px auto;
    }

    .footer-links a {
        width: 100%;
        padding: 10px 20px;
        font-size: 40px;
        min-height: 84px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
    }

    input[type="text"]:focus {
        outline: none; /* デフォルトのアウトラインを削除 */
        border: 2px solid #4a90e2; /* フォーカス時の枠線を設定 */
    }
    
}

.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

