@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;
}

article, aside, nav, section, figure, figcaption, footer, header, main, menu, details {
    display: block;
}

fieldset, legend, img {
    border: 0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

th, td {
    text-align: left;
    vertical-align: top;
}

img {
    vertical-align: middle;
}

a {
    text-decoration: none;
    transition: 0.25s ease;
}

/* ----------------------------------------------------------
   ベース
---------------------------------------------------------- */
html {
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    color: #f3ead7;
    font: 15px/1.8 "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    letter-spacing: 0.03em;
    background:
        radial-gradient(circle at top, rgba(255,215,140,0.10), transparent 32%),
        linear-gradient(180deg, #0f1220 0%, #171b2e 45%, #0d1020 100%);
    min-height: 100vh;
}

/* ----------------------------------------------------------
   レイアウト
---------------------------------------------------------- */
#wrapper {
    width: min(920px, calc(100% - 32px));
    margin: 40px auto;
    background:
        linear-gradient(180deg, rgba(34, 40, 70, 0.96), rgba(18, 22, 39, 0.96));
    border: 1px solid #8e7445;
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(255, 220, 150, 0.08) inset,
        0 18px 40px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(132, 96, 35, 0.18);
    position: relative;
    overflow: hidden;
}

#wrapper:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.04), transparent 22%, transparent 78%, rgba(255,255,255,0.04)),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,0.015) 0,
            rgba(255,255,255,0.015) 2px,
            transparent 2px,
            transparent 12px
        );
}

#main {
    padding: 34px 28px 28px;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------
   見出し
---------------------------------------------------------- */
.section {
    margin-bottom: 28px;
}

.section__ttl {
    position: relative;
    margin-bottom: 22px;
    padding: 16px 18px;
    color: #fff5df;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.08em;
    background:
        linear-gradient(90deg, #5e4725 0%, #8e6b34 22%, #c29a54 50%, #8d6932 78%, #493617 100%);
    border: 1px solid #d6b779;
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.30),
        inset 0 -2px 8px rgba(0,0,0,0.25),
        0 10px 18px rgba(0,0,0,0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

.section__ttl:after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -7px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 224, 160, 0.85), transparent);
}

.mode_label {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #fff8eb;
    background: rgba(30, 21, 8, 0.35);
    border: 1px solid rgba(255, 223, 161, 0.45);
    border-radius: 999px;
    vertical-align: middle;
}

/* ----------------------------------------------------------
   本文
---------------------------------------------------------- */
.section__body {
    padding: 0;
}

.form_lead,
.complete_box {
    margin-bottom: 22px;
    padding: 18px 20px;
    background: rgba(255, 248, 232, 0.05);
    border: 1px solid rgba(226, 191, 121, 0.28);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    color: #f5ead4;
}

.form_lead p,
.complete_box p {
    margin: 0;
}

.form_lead p + p,
.complete_box p + p {
    margin-top: 10px;
}

.form_error {
    display: none;
}

.form_error:not(:empty) {
    display: block;
    margin-bottom: 18px;
    padding: 14px 16px;
    color: #ffb0b0;
    background: rgba(120, 20, 20, 0.18);
    border: 1px solid rgba(255, 120, 120, 0.35);
    border-radius: 12px;
}

#txt_explain {
    color: #f5ead4;
}

/* ----------------------------------------------------------
   テーブル
---------------------------------------------------------- */
.table {
    width: 100%;
    margin-bottom: 22px;
    border: 1px solid rgba(214, 183, 121, 0.32);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(11, 14, 26, 0.48);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.04),
        0 8px 22px rgba(0,0,0,0.18);
}

.table th {
    width: 28%;
    padding: 18px 16px;
    color: #fff1d1;
    background:
        linear-gradient(180deg, rgba(119, 88, 38, 0.95), rgba(88, 63, 24, 0.95));
    border-right: 1px solid rgba(214, 183, 121, 0.25);
    border-bottom: 1px solid rgba(214, 183, 121, 0.22);
    font-weight: bold;
}

.table td {
    padding: 18px 16px;
    color: #f3ead7;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(214, 183, 121, 0.15);
}

.table tr:last-child th,
.table tr:last-child td {
    border-bottom: none;
}

/* ----------------------------------------------------------
   フォーム部品
---------------------------------------------------------- */
input,
textarea,
select,
button {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    box-sizing: border-box;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    color: #fff7ea;
    background: rgba(14, 17, 29, 0.92);
    border: 1px solid #8b744c;
    border-radius: 10px;
    outline: none;
    box-shadow:
        inset 0 1px 4px rgba(0,0,0,0.35),
        0 0 0 0 rgba(255,219,145,0);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: #e3bf7b;
    box-shadow:
        inset 0 1px 4px rgba(0,0,0,0.35),
        0 0 0 3px rgba(227, 191, 123, 0.16);
    background: rgba(20, 24, 38, 0.98);
}

textarea {
    min-height: 180px;
    resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
    transform: translateY(1px);
    margin-right: 6px;
}

label {
    cursor: pointer;
}

/* ----------------------------------------------------------
   ボタン
---------------------------------------------------------- */
.button_box {
    clear: both;
    padding: 10px 0 0;
    text-align: center;
}

input[type="submit"] {
    min-width: 160px;
    margin: 6px 8px;
    padding: 13px 22px;
    color: #fff8ea;
    font-weight: bold;
    letter-spacing: 0.08em;
    background:
        linear-gradient(180deg, #b78b45 0%, #8d6429 55%, #6c4d1d 100%);
    border: 1px solid #e1c38b;
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 8px 18px rgba(0,0,0,0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.35),
        0 12px 24px rgba(0,0,0,0.32);
    filter: brightness(1.06);
}

input[type="submit"]:active {
    transform: translateY(0);
}

.sub_button {
    background:
        linear-gradient(180deg, #5d6582 0%, #414a66 55%, #31384f 100%);
    border-color: #9ea8cb;
}

.return_box {
    margin-top: 10px;
}

.return_link {
    display: inline-block;
    padding: 10px 18px;
    color: #f8ecd0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(226, 191, 121, 0.28);
    border-radius: 999px;
}

.return_link:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(226, 191, 121, 0.48);
}

/* ----------------------------------------------------------
   補助
---------------------------------------------------------- */
.left_txt {
    text-align: left;
}

/* ----------------------------------------------------------
   レスポンシブ
---------------------------------------------------------- */
@media screen and (max-width: 768px) {
    #wrapper {
        width: calc(100% - 20px);
        margin: 20px auto;
        border-radius: 14px;
    }

    #main {
        padding: 22px 14px 20px;
    }

    .section__ttl {
        font-size: 20px;
        padding: 14px 14px;
    }

    .table,
    .table tbody,
    .table tr,
    .table th,
    .table td {
        display: block;
        width: 100%;
    }

    .table th {
        border-right: none;
        border-bottom: none;
        width: 100%;
        padding-bottom: 10px;
    }

    .table td {
        padding-top: 12px;
    }

    input[type="submit"] {
        width: 100%;
        min-width: 0;
        margin: 6px 0;
    }

    .return_link {
        display: block;
    }
}