@charset "UTF-8";

/*
* 即チケ申込ページ用のCSS
*/

/*
* common & STEP1
*/
*, *::before, *::after {
    box-sizing: border-box !important;
}
html, body {
    max-width: 100% !important;
    overflow-x: hidden;
}
body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}
.main-container {
    max-width: 760px;
    margin: 30px auto 60px;
    padding: 0 20px;
}
#head_contents {
    width: 100%;
    padding: 0;
    margin: 20px auto;
    text-align: center;
}
#head_contents h1 {
    margin: 1.5rem auto 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}
#head_contents p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}
.step-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    list-style: none;
    padding: 0;
}
.step-bar li {
    width: 23%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: #94a3b8;
    padding-bottom: 8px;
    border-bottom: 3px solid #cbd5e1;
}
.step-bar li.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.wrapper {
    width: 100% !important;
    max-width: 760px;
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

::-webkit-input-placeholder {
    color: #ccc;
}

::-moz-placeholder {
    color: #ccc;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #ccc;
}

.break-keep {
    word-break: keep-all;
}

/* --------------------------------------------------
<table>
-------------------------------------------------- */
.form-table {
    width: 100%;
    max-width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 0;
    margin-bottom: 24px;
    border: none;
    display: block;
    line-height: 1.6;
}

.form-table tbody {
    display: block;
    width: 100%;
}

.form-table tr {
    border-bottom: 1px solid #f1f5f9;
    display: block;
    width: 100%;
}

.form-table tr:nth-child(8),
.form-table tr:last-child {
    border-bottom: none;
}

.form-table th {
    padding: 16px 12px 4px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    background: none;
    display: block;
    width: 100%;
}

.form-table td {
    padding: 6px 0 16px 0;
    vertical-align: top;
    border-left: none;
    width: inherit;
    display: block;
    width: 100%;
}


/*
* 確認画面用テーブル
*/
.confirm-table {
    border-collapse: collapse;
    margin-top: 0;
    margin-bottom: 32px;
    border: none;
    display: table;
    line-height: 1.6;
}
.confirm-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.confirm-table tr:nth-child(6),
.confirm-table tr:last-child {
    border-bottom: none;
}
.confirm-table th {
    padding: 16px 12px 4px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    font-size: 0.88rem;
    color: #64748b;
    display: block;
    width: 100%;
    background: none;
    border: none;
}
.confirm-table td {
    padding: 0 0 16px 0;
    vertical-align: top;
    font-size: 1.05rem;
    font-weight: 500;
    color: #0f172a;
    display: block;
    width: 100%;
    word-break: break-all;
    border-left: none;
    text-align: left;
}
.confirm-table td:has(#convert_zipcode) {
    padding-bottom: 2px !important;
}

/* --------------------------------------------------
    バッジ
-------------------------------------------------- */
.badge-req {
    display: inline-block;
    background-color: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
}

.badge-opt {
    display: inline-block;
    background-color: #94a3b8;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 6px;
    vertical-align: middle;
}

/* --------------------------------------------------
入力フォーム
-------------------------------------------------- */
.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="password"],
.form-table input[type="tel"],
.form-table select {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    background-color: #fafafa;
    transition: all 0.2s;
    box-sizing: border-box;
}
.form-table input:focus,
.form-table select:focus{
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-table input[type="radio"] {
    transform: scale(1.5);
    margin-right: 5px;
}
.radio-label {
    margin-right: 16px;
    cursor: pointer;
    font-size: 0.95rem;
}
.name-wrapper {
    display: flex;
    gap: 12px;
    max-width: 480px;
}
.name-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sub-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}
.input-tel {
    max-width: 320px;
}
.zip-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 5px !important;
}
.zip-wrapper input {
    flex: 1;
}
.zip-btn {
    background-color: #475569;
    color: #fff;
    border: none;
    height: 48px;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.zip-btn:hover {
    background-color: #334155;
}
.select-pref {
    max-width: 240px;
    margin-bottom: 8px;
}
.field-msg {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    display: block;
}
.terms-row {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 24px;
}
.terms-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 8px;
}
.terms-label input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------
インタラクティブ同意カードUI (未同意:薄表示 ➔ 同意:青枠強調)
-------------------------------------------------- */
.terms-row2 {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0; /* 初期枠線（薄め） */
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
    transition: all 0.25s ease-in-out;
    opacity: 0.85; /* 初期状態は少し薄く表示 */
    cursor: pointer;
}

/* ホバー時（未チェックでもうっすら浮き上がる） */
.terms-row2:hover {
    opacity: 1;
    border-color: #cbd5e1;
}

/* 同意（チェック完了）時のスタイル */
.terms-row2.is-active {
    background-color: #eff6ff; /* マイルドな薄青背景 */
    border-color: #2563eb;     /* クッキリとした青枠線 */
    opacity: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12); /* ほんのり青い影 */
}

.terms-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #334155;
    user-select: none; /* テキスト選択の防止 */
    width: 100%;
}

.terms-label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: #2563eb; /* チェックボックス自体の色もブランドカラーに */
    cursor: pointer;
    flex-shrink: 0;
}

.terms-label span {
    line-height: 1.5;
}

.terms-label a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
}
.terms-label a:hover {
    color: #1d4ed8;
}


/* --------------------------------------------------
CTA
-------------------------------------------------- */
/* ボタンコンテナ */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 24px auto 0;
}
.btn-submit {
    display: block;
    width: 100%;
    max-width: 360px;
    height: 3.5rem;
    margin: 0 auto;
    background: #2563eb;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s;
}
.btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.btn-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}
 .btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* 戻るボタン (input[type="button"]) */
.btn-back {
    display: block;
    width: 100%;
    height: 3rem;
    background-color: #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    -webkit-appearance: none;
    appearance: none;
}
.btn-back:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}
.btn-lptop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    background-color: #f1f5f9;
    color: #475569 !important;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.btn-lptop:hover {
    background-color: #e2e8f0;
    color: #1e293b !important;
}

/* --------------------------------------------------
5. スマホ（SP）表示時のレイアウト最適化
※tableの要素をブロック化して「上下配置」に自動変換
-------------------------------------------------- */
@media (max-width: 600px) {
    .main-container,
    .wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
    }
    .form-container {
        padding: 20px 16px;
    }

    /* tableをブロック要素に変え、縦並びにする */
    .form-table, 
    .form-table tbody, 
    .form-table tr, 
    .form-table th, 
    .form-table td {
        display: block;
        width: 100%;
    }

    .form-table tr {
        padding-bottom: 12px;
    }

    .form-table th {
        padding: 8px 0 4px 0;
    }

    .form-table td {
        padding: 4px 0 8px 0;
    }
    .name-wrapper {
        gap: 8px;
    }
    .input-tel {
        max-width: 100%;
    }
    .select-pref {
        max-width: 100%;
    }
    .input-zip {
        width: 130px !important;
    }
    .zip-btn {
        padding: 0 12px;
    }
}


/* --------------------------------------------------
リアルタイムバリデーション用スタイル
-------------------------------------------------- */
/* エラー状態 */
.form-table input.is-invalid,
.form-table select.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* 正常入力状態（成功） */
.form-table input.is-valid,
.form-table select.is-valid {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

/* エラーメッセージテキスト */
.error-msg {
    color: #ef4444;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* 成功時ワンポイント表示（任意） */
.valid-msg {
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    display: block;
}






/* ===============================================
紹介コード注意表示・特典表示用スタイル
=============================================== */

/* 【無効時】マイルドな注意表示枠 */
.introducer-notice-box {
    background-color: #FFF9E6;
    border: 1px solid #F5A623;
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 15px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.introducer-notice-header {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #C26D13;
    font-size: 17px;
    margin-bottom: 10px;
}

.introducer-notice-icon {
    margin-right: 8px;
    font-size: 20px;
}

.introducer-notice-body {
    margin-bottom: 10px;
}

.introducer-notice-body strong {
    color: #C26D13;
    font-weight: bold;
    font-size: 16px;
}

.introducer-notice-footer {
    font-size: 13px;
    color: #666666;
    border-top: 1px dashed #EED5A5;
    padding-top: 8px;
    margin-top: 8px;
}

/* 【有効時】優待特典適用枠（グリーン＆エメラルドベース） */
.introducer-success-box {
    background-color: #EBF8F2; /* 目に優しいグリーン系のパステルカラー */
    border: 1px solid #41B883;
    border-radius: 8px;
    padding: 18px 22px;
    margin-top: 15px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    color: #2C3E50;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.introducer-success-header {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #1E7E51;
    font-size: 17px;
    margin-bottom: 10px;
}

.introducer-success-icon {
    margin-right: 8px;
    font-size: 20px;
}

.introducer-success-body {
    margin-bottom: 8px;
}

.introducer-success-body strong {
    color: #1E7E51;
    font-weight: bold;
    font-size: 17px; /* 特別手数料率を少し大きめにして特別感をアピール */
    background-color: #D4F3E3;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 有効期限の右下表示 */
.introducer-success-footer {
    font-size: 12px;
    color: #557A66;
    text-align: right; /* 右下に配置 */
    border-top: 1px dashed #B2E2CA;
    padding-top: 8px;
    margin-top: 8px;
}

.introducer-success-footer strong {
    color: #1E7E51;
    font-weight: bold;
}

/*
* step3 contents
*/

.status-icon-wrapper {
    width: 72px;
    height: 72px;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 32px;
}

.alert-banner {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fa-exclamation-circle {
    font-size: 30px;
}

.complete-text {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 28px;
    line-height: 1.7;
}
.mail-action-box {
    background-color: #f8fafc;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 24px;
    text-align: left;
    margin-bottom: 28px;
}
.mail-action-box h2 {
    font-size: 1.1rem;
    color: #1e3a8a;
    margin: 0 0 12px 0;
}

/*
* Footer
*/

footer {
    background-color: #2D3748;
    color: #A0AEC0;
    padding: 30px 20px;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #4A5568;
}
.footer-links {
    list-style: none;
    margin-bottom: 15px;
    padding: 0;
}
.footer-links li {
    display: inline-block;
    margin: 0 12px;
}
.footer-links a {
    color: #E2E8F0;
    text-decoration: none;
}
.footer-links a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}
.footer-company {
    margin-bottom: 10px;
    color: #CBD5E0;
}
.copyright {
    color: #718096;
    font-size: 11px;
}


