@charset "UTF-8";

/* =============================================================================
   jsph42 Entry Form
   Brand: #F74E0B (used sparingly as accent / CTA only)
   Design: warm off-white surface, charcoal type, generous spacing
   ============================================================================= */

:root {
    --brand:        #F74E0B;
    --brand-dark:   #C53D08;
    --brand-100:    #FFEEE2;
    --brand-50:     #FFF8F4;

    --bg:           #FAF7F3;
    --surface:      #FFFFFF;

    --text:         #1F1B16;
    --text-soft:    #4A413B;
    --text-muted:   #8A8079;

    --border:       #E8E2DA;
    --border-strong:#D6CFC7;

    --success:      #15803D;
    --danger:       #B91C1C;

    --radius:       12px;
    --radius-sm:    8px;
    --shadow:       0 2px 8px rgba(31, 27, 22, 0.04), 0 1px 2px rgba(31, 27, 22, 0.06);
    --shadow-hover: 0 8px 24px rgba(31, 27, 22, 0.08), 0 2px 4px rgba(31, 27, 22, 0.06);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.4rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}
input, textarea, select, button { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--brand); }

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Brand bar + Header ===== */
.brand-bar {
    height: 3px;
    background: var(--brand);
}
.event-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 20px 0 16px;
}
.event-header h1 {
    margin: 0;
    font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.1rem);
    text-align: center;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: var(--text);
    /* CJK 単語を分割せず、半角空白でのみ改行 */
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.event-header .subtitle {
    margin: 4px 0 0;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
}
.event-header .subtitle::before,
.event-header .subtitle::after {
    content: "—";
    color: var(--brand);
    margin: 0 10px;
    opacity: 0.6;
}

/* ===== Main ===== */
main.container { padding-top: 24px; padding-bottom: 40px; }

/* ===== Alerts ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 1.4rem;
    border: 1px solid;
}
.alert-error {
    background: #FEF2F2;
    border-color: #FECACA;
    color: var(--danger);
}
.alert-error p { margin: 0; font-weight: 600; }

/* ===== Section card ===== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
}
.card-title {
    margin: 0;
    padding: 11px 22px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    background: var(--brand-50);
}

/* ===== Form list ===== */
.form-list { margin: 0; }
.form-list dt {
    padding: 14px 22px 4px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-list dd {
    padding: 0 22px 14px;
    margin: 0;
    border-bottom: 1px solid var(--border);
}
.form-list dd:last-child { border-bottom: 0; }

.badge-required,
.badge-optional {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 99px;
    letter-spacing: 0.06em;
    color: #fff;
}
/* 必須＝赤・任意＝青 を固定（ブランドカラーから独立） */
.badge-required { background: #ef4444; }
.badge-optional { background: #3b82f6; }

/* ===== Inputs ===== */
.form-list input[type=text],
.form-list input[type=email],
.form-list input[type=tel],
.form-list textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    background: var(--surface);
    transition: border 0.15s, box-shadow 0.15s;
}
.form-list input:focus,
.form-list textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(247, 78, 11, 0.18);
}
.form-list textarea { resize: vertical; min-height: 70px; }

.row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-list .help {
    margin: 6px 0 0;
    font-size: 1.15rem;
    color: var(--text-muted);
}
.field-error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ===== バリデーションエラー時の赤枠化 ===== */
.form-list input.error,
.form-list select.error,
.form-list textarea.error {
    border-color: #dc2626;
    background: #fff5f5;
}
.form-list dt.error {
    color: #b91c1c;
}

/* ===== エラーサマリ（フォーム冒頭の項目別アンカー一覧） ===== */
.alert.alert-error {
    background: #fef2f2;
    border-left: 5px solid #dc2626;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 20px;
}
.alert.alert-error .alert-error-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #b91c1c;
}
.alert.alert-error .error-list {
    margin: 0;
    padding-left: 20px;
    font-size: 1.25rem;
    line-height: 1.7;
}
.alert.alert-error .error-list li {
    margin: 3px 0;
}
.alert.alert-error .error-list a {
    color: #b91c1c;
    text-decoration: underline;
    cursor: pointer;
}
.alert.alert-error .error-list a:hover {
    color: #7f1d1d;
}

/* ===== Radio cards ===== */
.radio-list { list-style: none; margin: 0; padding: 0; }
.radio-list li {
    margin: 5px 0;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    transition: background 0.15s, border-color 0.15s;
    background: var(--surface);
}
.radio-list li:hover { border-color: var(--brand); }
.radio-list li:has(input:checked) {
    background: var(--brand-50);
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}
.radio-list label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    cursor: pointer;
    width: 100%;
    font-size: 1.35rem;
}
.radio-list label input { transform: translateY(1px); accent-color: var(--brand); }
.radio-list label .price {
    margin-left: auto;
    font-weight: 700;
    color: var(--brand);
    font-feature-settings: "tnum";
}

/* ===== Amount Box ===== */
.amount-box {
    margin: 20px 0 6px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 16px 22px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--brand);
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
}
.amount-label {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}
.amount-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    font-feature-settings: "tnum";
}
.amount-value .yen {
    color: var(--brand);
    margin-right: 4px;
    font-size: 0.7em;
}
.amount-note {
    flex: 1 1 100%;
    margin: 4px 0 0;
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* ===== Notice ===== */
.notice {
    margin-top: 18px;
    background: var(--brand-50);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 20px;
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--text-soft);
}
.notice h3 {
    margin: 12px 0 6px;
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 700;
}
.notice h3:first-child { margin-top: 0; }
.notice p { margin: 0 0 6px; }

/* ===== Agreement ===== */
.agreement {
    margin-top: 16px;
    padding: 13px 18px;
    background: var(--surface);
    border: 1.5px dashed var(--brand);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text);
    font-size: 1.35rem;
}
.agreement label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.6;
}
.agreement input { accent-color: var(--brand); transform: translateY(2px); }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 26px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
    letter-spacing: 0.05em;
}
.btn:hover { background: var(--bg); }
.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(247, 78, 11, 0.25);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled {
    background: #C4BBB1;
    border-color: #C4BBB1;
    cursor: not-allowed;
    box-shadow: none;
}
.btn-block { width: 100%; }
.btn-lg { padding: 12px 32px; font-size: 1.45rem; }

/* Submit row */
.submit-row {
    text-align: center;
    margin: 22px 0 10px;
}
.button-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 22px 0 10px;
    flex-wrap: wrap;
}
.button-row .btn { min-width: 180px; }

/* ===== Confirmation view ===== */
.confirm-dl {
    margin: 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.confirm-dl > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-bottom: 1px solid var(--border);
    align-items: center;
}
.confirm-dl > div:last-child { border-bottom: 0; }
.confirm-dl dt {
    margin: 0;
    padding: 11px 18px;
    background: var(--brand-50);
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}
.confirm-dl dd {
    margin: 0;
    padding: 11px 18px;
    font-size: 1.35rem;
    color: var(--text);
    word-break: break-word;
}
.confirm-amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.confirm-amount .price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--brand);
    font-feature-settings: "tnum";
}
.confirm-amount .price-note {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.confirm-lead {
    margin: 0 0 16px;
    padding: 11px 16px;
    background: var(--brand-100);
    border-left: 4px solid var(--brand);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600;
    font-size: 1.3rem;
}

/* ===== Payment breakdown ===== */
.payment-summary {
    margin: 20px 0;
    padding: 18px 22px;
    background: var(--brand-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--brand);
}
.payment-summary h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
    color: var(--text);
}
.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 1.35rem;
}
.breakdown-table th,
.breakdown-table td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.breakdown-table th {
    font-weight: 600;
    color: var(--text-soft);
    white-space: nowrap;
    width: 1%;
}
.breakdown-table td.amount {
    text-align: right;
    font-feature-settings: "tnum";
    font-weight: 600;
    white-space: nowrap;
    color: var(--text);
}
.breakdown-table tr.total th,
.breakdown-table tr.total td {
    border-bottom: 0;
    border-top: 2px solid var(--brand);
    padding-top: 10px;
    font-size: 1.5rem;
}
.breakdown-table tr.total td.amount {
    color: var(--brand);
    font-size: 1.8rem;
}
.pay-cta {
    margin: 16px 0 6px;
    text-align: center;
}
.btn-pay {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(247,78,11,0.25);
    transition: background 0.15s;
    font-size: 1.45rem;
}
.btn-pay:hover { background: var(--brand-dark); }
.pay-note {
    margin: 8px 0 0;
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== Thanks / End ===== */
.thanks-page main, .end-page main { padding-top: 40px; }
.thanks-box {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 32px;
}
.thanks-box h2 {
    margin: 0 0 24px;
    font-size: 2rem;
    color: var(--text);
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--brand);
    font-weight: 700;
}
.thanks-message {
    margin: 0 0 24px;
    font-size: 1.5rem;
    line-height: 1.85;
    color: var(--text-soft);
}
.thanks-note {
    margin: 24px 0;
    background: var(--brand-50);
    border-radius: var(--radius-sm);
    padding: 18px 24px;
    font-size: 1.35rem;
    line-height: 1.85;
}
.thanks-note p { margin: 0 0 8px; }
.thanks-note ol { margin: 8px 0 8px 24px; padding: 0; }
.thanks-note li { margin: 4px 0; }
.contact-block {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-strong);
    font-size: 1.35rem;
}
.contact-block h3 {
    font-size: 1.4rem;
    margin: 0 0 10px;
    color: var(--text);
    font-weight: 700;
}
.contact-block p { margin: 0; line-height: 1.85; color: var(--text-soft); }

/* ===== Footer ===== */
.event-footer {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.event-footer p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .row-2col { grid-template-columns: 1fr; }
    .form-list dt { padding: 16px 18px 4px; font-size: 1.35rem; }
    .form-list dd { padding: 0 18px 16px; }
    .radio-list label { padding: 14px; flex-wrap: wrap; }
    .radio-list .price { margin-left: 0; padding-left: 30px; width: 100%; }
    .amount-value { font-size: 3rem; }
    .submit-row .btn { width: 100%; }
    .button-row .btn { width: 100%; min-width: 0; }
    .confirm-dl > div { grid-template-columns: 1fr; }
    .confirm-dl dt { padding: 8px 16px; }
    .confirm-dl dd { padding: 8px 16px; }
}
