@charset "utf-8";

/* ===========================================================
   CReeeeT Dark Theme - Mail Form
   =========================================================== */

/* --- リセット --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- ベース --- */
html {
    -webkit-text-size-adjust: 100%;
}
body {
    background: #0a0a0a;
    color: #e5e5e5;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    min-height: 100vh;
}

a { color: #60a5fa; text-decoration: none; }
a:hover { color: #93c5fd; }

/* --- レイアウト --- */
#wrapper {
    max-width: 760px;
    margin: 0 auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

#header {
    padding: 24px 24px 0;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    letter-spacing: 0.02em;
}

#main {
    padding: 32px 24px 48px;
}

#footer {
    margin-top: 48px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: #666;
    background: transparent;
}

/* --- セクションラベル --- */
.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.section-label__line {
    display: block;
    width: 32px;
    height: 2px;
    background: #3b82f6;
}
.section-label__text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #3b82f6;
}

/* --- セクション --- */
.section {
    margin-bottom: 32px;
}
.section__ttl {
    padding: 0;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    background: transparent;
    border: none;
}
.section__body {
    padding: 0;
}

/* --- 説明テキスト --- */
#txt_explain {
    color: #999;
    margin-bottom: 24px;
}
#txt_explain p {
    margin: 0;
    line-height: 1.8;
}

/* --- エラー --- */
.red_txt {
    color: #f87171;
    margin-bottom: 16px;
    font-size: 14px;
}
.red, span.red {
    color: #f87171;
    font-weight: bold;
}

/* --- テーブル --- */
.table {
    width: 100%;
    margin-bottom: 32px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.table th {
    padding: 16px 16px 16px 0;
    background: transparent;
    color: #d1d5db;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 14px;
    vertical-align: top;
    width: 200px;
}
.table td {
    padding: 12px 0;
    background: transparent;
    color: #ffffff;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* --- フォーム入力 --- */
input[type=text],
input[type=email],
input[type=tel],
input[type=password],
textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease;
    box-shadow: none;
    outline: none;
}
input[type=text]:focus,
input[type=email]:focus,
input[type=tel]:focus,
input[type=password]:focus,
textarea:focus {
    border-color: #3b82f6;
}
input[type=text]::placeholder,
textarea::placeholder {
    color: #555;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

select {
    padding: 10px 12px;
    background: #161616;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
}

input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
    vertical-align: middle;
}
label {
    cursor: pointer;
    color: #d1d5db;
    vertical-align: middle;
}

/* --- ボタン --- */
.button_box {
    clear: both !important;
    padding: 24px 0 !important;
    text-align: center !important;
}
.button_box--confirm {
    display: flex !important;
    gap: 16px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* 全submitボタン共通 */
input[type="submit"],
input[type=submit],
.button_box input,
#main input[type="submit"],
#main input[type=submit] {
    display: inline-block !important;
    padding: 14px 48px !important;
    background: linear-gradient(to right, #3b82f6, #06b6d4) !important;
    color: #ffffff !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
    letter-spacing: 0.04em !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    min-width: 160px !important;
    line-height: 1.4 !important;
    margin: 4px !important;
}
input[type="submit"]:hover,
input[type=submit]:hover,
#main input[type="submit"]:hover,
#main input[type=submit]:hover {
    opacity: 0.85 !important;
}

/* 「戻る」ボタン（セカンダリスタイル） */
.btn-secondary,
input[type="submit"].btn-secondary,
input[type=submit].btn-secondary {
    background: transparent !important;
    color: #d1d5db !important;
    font-weight: 500 !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}
.btn-secondary:hover,
input[type="submit"].btn-secondary:hover,
input[type=submit].btn-secondary:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* btn-primary リンク用 */
a.btn-primary,
#main a.btn-primary {
    display: inline-block !important;
    padding: 14px 48px !important;
    background: linear-gradient(to right, #3b82f6, #06b6d4) !important;
    color: #ffffff !important;
    font-family: 'Noto Sans JP', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
    letter-spacing: 0.04em !important;
}
a.btn-primary:hover,
#main a.btn-primary:hover {
    opacity: 0.85 !important;
    color: #ffffff !important;
}

/* サイトへ戻るリンク */
.back-link,
.button_box a,
#main .button_box a {
    display: inline-block !important;
    color: #999 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
.back-link:hover,
.button_box a:hover,
#main .button_box a:hover {
    color: #ffffff !important;
}

/* --- 完了画面 --- */
.complete-message {
    text-align: center;
    padding: 48px 0;
}
.complete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 28px;
    margin: 0 auto 24px;
}
.complete-message p {
    margin-bottom: 12px;
    color: #d1d5db;
    line-height: 1.8;
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
    #wrapper {
        margin: 0;
    }
    #main {
        padding: 24px 16px 40px;
    }
    .section__ttl {
        font-size: 22px;
    }
    .table th {
        display: block;
        width: 100%;
        padding: 12px 0 4px;
        border-bottom: none;
    }
    .table td {
        display: block;
        padding: 4px 0 12px;
    }
    input[type=text],
    input[type=email],
    input[type=tel],
    input[type=password],
    textarea {
        width: 100%;
    }
    .button_box--confirm {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary,
    .btn-secondary,
    input[type=submit] {
        width: 100%;
        max-width: 320px;
    }
}