@charset "utf-8";

/* ----------------------------------------------------------
    リセット / 新要素設定
------------------------------------------------------------- */
html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, p, blockquote, pre, code, form, fieldset, legend, table, th, td, caption, a, article, aside, nav, section, figure, figcaption, footer, header, main, audio, canvas, video, menu, details {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 100%;
    vertical-align: baseline;
}
fieldset, legend, img { border: 0; }
article, aside, nav, section, figure, figcaption, footer, header, main, menu, details { display: block; }

/* ----------------------------------------------------------
    ベース（HPのデザインに合致させる）
------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}
body {
    background: #ffffff;
    color: #111827; /* Tailwind gray-900 */
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.6;
    letter-spacing: 0.025em;
    word-wrap: break-word;
    -webkit-text-size-adjust: 100%;
}

a { color: #2563eb; text-decoration: none; }
a:hover { color: #1e40af; text-decoration: underline; }

table {
    border-collapse: collapse;
    border-spacing: 0;
}
th, td {
    font-weight: normal;
    text-align: left;
}

/* ----------------------------------------------------------
    フォーム系
------------------------------------------------------------- */
input, textarea, select {
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

input[type=text],
input[type=password],
input[type=email],
textarea {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    background: #fff;
    border: 1px solid #d1d5db; /* Tailwind gray-300 */
    border-radius: 4px;
    transition: border-color 0.2s;
}
textarea {
    max-width: 100%;
    min-height: 120px;
    resize: vertical;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
textarea:focus { 
    border-color: #166B8E; 
    outline: none;
}

/* ボタンデザイン（HPのトーンに合わせる） */
input[type=submit] {
    padding: 12px 32px;
    background: #166B8E;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s;
    letter-spacing: 0.05em;
}
input[type=submit]:hover {
    background: #104e69;
}
input[type=submit].btn_back {
    background: #9ca3af; /* 戻るボタンは控えめなグレー */
}
input[type=submit].btn_back:hover {
    background: #6b7280;
}

/* ----------------------------------------------------------
    レイアウト構造
------------------------------------------------------------- */
#wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    #wrapper {
        padding: 30px 25px;
    }
}

#main { 
    width: 100%;
}

.section { margin-bottom: 40px; }

/* タイトル部分（キーワード等の見出しに合わせる） */
.section__ttl {
    padding-top: 12px;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: bold;
    color: #111827;
    border-top: 1px solid #e5e7eb;
}

.section__body { 
    padding: 0; 
}

#txt_explain {
    color: #374151; /* Tailwind gray-700 */
    font-size: 14px;
    margin-bottom: 24px;
}

.red_txt {
    color: #ef4444; /* Tailwind red-500 */
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* ----------------------------------------------------------
    テーブルデザイン
------------------------------------------------------------- */
.table {
    width: 100%;
    margin-bottom: 30px;
    border-top: 1px solid #e5e7eb;
}
.table th, .table td {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    vertical-align: top;
}
.table th {
    width: 30%;
    background: #f9fafb; /* 薄いグレー背景 */
    color: #111827;
    font-weight: bold;
}
.table td {
    background: #ffffff;
    color: #374151;
}

/* ----------------------------------------------------------
    ボタン配置
------------------------------------------------------------- */
.button_box {
    margin-top: 30px;
    text-align: center;
}
.flex_buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.return_link {
    margin-top: 50px;
    font-size: 12px;
}

/* ----------------------------------------------------------
    スマートフォン用レスポンシブ
------------------------------------------------------------- */
@media (max-width: 640px) {
    .table, .table tbody, .table tr, .table th, .table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .table th {
        background: transparent;
        padding: 16px 0 8px;
        border-bottom: none;
    }
    .table td {
        padding: 0 0 24px;
    }
    input[type=text],
    input[type=password],
    input[type=email],
    textarea {
        max-width: 100%;
    }
}