* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    overflow: hidden;
}

.container {
    height: 100vh;
    width: 100vw;
    border: 12px solid #FF7B41;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    overflow: hidden;
}

.header {
    text-align: center;
    padding: 10px 0;
    flex-shrink: 0;
}

.main-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #FF7B41;
    margin-bottom: 5px;
}

.sub-title {
    font-size: 1.2em;
    font-weight: normal;
    color: #666;
}

.content-box {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
}

.content-box p {
    color: #333;
    font-size: 0.95em;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: left;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    flex-shrink: 0;
}

.home-button {
    padding: 10px 20px;
    background-color: #FF7B41;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #E66A30;
}

.back-button {
    padding: 10px 20px;
    background-color: #FF7B41;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #E66A30;
}

.footer {
    font-size: 0.75em;
    color: #888;
    text-align: center;
    padding-bottom: 5px;
    flex-shrink: 0;
}

/* タブレット対応 */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.5em;
    }

    .sub-title {
        font-size: 1.1em;
    }

    .content-box {
        padding: 15px;
        max-width: 95%;
    }

    .content-box p {
        font-size: 0.9em;
    }
}

/* モバイル対応 */
@media (max-width: 480px) {
    .header {
        padding: 8px 0;
    }

    .main-title {
        font-size: 1.3em;
        margin-bottom: 3px;
    }

    .sub-title {
        font-size: 1em;
    }

    .content-box {
        padding: 12px;
        max-width: 95%;
        margin: 0 auto;
    }

    .content-box p {
        font-size: 0.85em;
        line-height: 1.6;
    }

    .footer-buttons {
        gap: 8px;
        padding: 8px 0;
    }

    .home-button,
    .back-button {
        padding: 8px 15px;
        font-size: 0.85em;
    }

    .footer {
        font-size: 0.65em;
        padding-bottom: 3px;
    }
}
