@charset "utf-8";

/* 基本リセット */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1.6;
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 16px;
}

/* 全体のラッパー */
#wrapper {
    max-width: 740px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid #b3b3b3;
    border-radius: 8px;
    box-sizing: border-box;
}

/* メインセクション */
#main {
    padding: 20px;
    box-sizing: border-box;
}

/* セクションタイトル */
h2.section__ttl {
    font-size: 1.75rem;
    color: #fff;
    background: #ff6600;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 説明テキスト */
#txt_explain {
    color: #000;
    font-size: 1.125rem;
    margin-bottom: 20px;
    text-align: center;
}

/* テーブルスタイル */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #333;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: middle;
    box-sizing: border-box;
}

.table th {
    background-color: #f2f2f2;
    font-weight: bold;
    width: 30%;
}

.table td {
    background-color: #fff;
    width: 70%;
}

/* ボタンボックス */
.button_box {
    text-align: center;
    margin-top: 20px;
}

/* ボタンスタイル */
.button_box input[type="submit"], .button_box a.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1.5rem;
    cursor: pointer;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin: 0 10px;
}

.button_box input[type="submit"]:hover, .button_box a.btn:hover {
    background-color: #4cae4c;
}

.button_box input[type="submit"]:active, .button_box a.btn:active {
    background-color: #449d44;
}

/* 小さいデバイス用のスタイル調整 */
@media (max-width: 600px) {
    body {
        font-size: 18px; /* ベースのフォントサイズを大きめに設定 */
    }

    #wrapper {
        padding: 10px;
        max-width: 100%;
    }

    h2.section__ttl {
        font-size: 1.75rem;
        padding: 10px;
    }

    #txt_explain {
        font-size: 1.125rem;
    }

    .button_box input[type="submit"], .button_box a.btn {
        padding: 14px 28px;
        font-size: 1.5rem;
    }

    .button_box a {
        font-size: 1.25rem;
    }

    .table th, .table td {
        display: block;
        width: 100%;
    }

    .table th {
        text-align: left;
        margin-bottom: 5px;
    }
}