/* ============================================================
 * lc335b-form.css  v1.0.1
 * 対象: club-directory-form / cabinet-register 登録フォーム共通
 * ============================================================ */

/* ---- ファイル入力 ---- */
.lc335b-input-file,
input[type="file"].lc335b-input,
#photographic {
    height: auto;
    min-height: 42px;
    padding: 8px 0;
    line-height: normal;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

/* ---- 期限切れ ---- */
.lc335b-deadline {
    background: #fff;
    border-radius: 8px;
    padding: 40px 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a3a6c;
}

/* ---- ラッパー（このページのみグレー背景） ---- */
.lc335b-wrap {
    max-width: 100%;
    background-color: #f0f0f0;
    min-height: 100vh;
    padding: 24px 16px 48px;
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #333;
    box-sizing: border-box;
}

/* ---- コンテンツ幅制限 ---- */
.lc335b-wrap > *:not(.lc335b-header) {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- ヘッダー・ロゴ ---- */
.lc335b-header {
    text-align: center;
    margin-bottom: 16px;
}
.lc335b-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
}

/* ---- タイトル ---- */
.lc335b-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a3a6c;
    margin: 0 0 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a3a6c;
}

/* ---- セクション見出し ---- */
.lc335b-section-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #fff;
    background: #1a3a6c;
    padding: 8px 14px;
    margin: 28px 0 16px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* ---- フォーム ---- */
.lc335b-form {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

/* ボタンのみの確認フォーム */
.lc335b-form-btn-only {
    background: none;
    box-shadow: none;
    padding: 0;
}

/* ---- フィールド ---- */
.lc335b-field {
    margin-bottom: 18px;
}
.lc335b-field-full {
    width: 100%;
}
.lc335b-field-half {
    width: calc(50% - 10px);
}

/* office-detailブロックもflexの子として幅フル */
#lc335b-office-detail {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
}

/* ---- ラベル ---- */
.lc335b-label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
}
.lc335b-req {
    color: #c0392b;
    margin-left: 3px;
}

/* ---- INPUT / SELECT 高さ統一 ---- */
.lc335b-input,
.lc335b-select {
    width: 100%;
    height: 42px;           /* ← 高さを明示的に統一 */
    padding: 0 11px;        /* 上下paddingではなく高さで制御 */
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .2s;
    font-family: inherit;
    line-height: 42px;
    appearance: auto;
    -webkit-appearance: auto;
}
.lc335b-input:focus,
.lc335b-select:focus {
    outline: none;
    border-color: #1a3a6c;
    box-shadow: 0 0 0 2px rgba(26,58,108,.15);
}

/* ---- 注釈 ---- */
.lc335b-note {
    font-size: 0.78rem;
    color: #888;
    margin: 4px 0 0;
}

/* ---- エラー ---- */
.lc335b-error {
    background: #fdecea;
    border: 1px solid #e74c3c;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    width: 100%;
}

/* ---- ボタン行 ---- */
.lc335b-btn-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}
.lc335b-btn-submit {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 13px 48px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.lc335b-btn-submit:hover { background: #333; }

.lc335b-btn-back {
    background: #fff;
    color: #1a3a6c;
    border: 2px solid #1a3a6c;
    padding: 11px 32px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background .2s, color .2s;
    font-family: inherit;
}
.lc335b-btn-back:hover {
    background: #1a3a6c;
    color: #fff;
}

/* ---- 確認画面 ---- */
.lc335b-confirm-lead {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 16px;
}
.lc335b-confirm-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 24px;
}
.lc335b-confirm-row {
    display: flex;
    border-bottom: 1px solid #eee;
}
.lc335b-confirm-row:last-child { border-bottom: none; }
.lc335b-confirm-label {
    width: 180px;
    min-width: 180px;
    padding: 11px 14px;
    background: #f0f4fa;
    font-size: 0.85rem;
    font-weight: bold;
    color: #444;
    border-right: 1px solid #e0e8f0;
}
.lc335b-confirm-value {
    padding: 11px 14px;
    font-size: 0.9rem;
    color: #333;
    flex: 1;
    word-break: break-all;
}
.lc335b-confirm-table .lc335b-section-title {
    margin: 0;
    border-radius: 0;
}

/* ---- 完了画面 ---- */
.lc335b-complete {
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    line-height: 1.9;
    font-size: 0.95rem;
}
.lc335b-complete p { margin-bottom: 16px; }
.lc335b-sign {
    text-align: right;
    font-weight: bold;
    margin-top: 24px;
}

/* ============================================================
 * タブレット（〜767px）
 * ============================================================ */
@media (max-width: 767px) {
    .lc335b-wrap { padding: 16px 12px 40px; }
    .lc335b-logo { max-width: 240px; }
    .lc335b-title { font-size: 1.2rem; }
    .lc335b-field-half { width: 100%; }
    #lc335b-office-detail .lc335b-field-half { width: 100%; }
    .lc335b-confirm-label { width: 130px; min-width: 130px; }
}

/* ============================================================
 * スマホ（〜479px）
 * ============================================================ */
@media (max-width: 479px) {
    .lc335b-wrap { padding: 12px 8px 32px; }
    .lc335b-logo { max-width: 200px; }
    .lc335b-title { font-size: 1.05rem; margin-bottom: 20px; }
    .lc335b-form { padding: 16px 12px; }
    .lc335b-field-half { width: 100%; }
    #lc335b-office-detail .lc335b-field-half { width: 100%; }
    .lc335b-btn-row { flex-direction: column; align-items: center; }
    .lc335b-btn-submit,
    .lc335b-btn-back { width: 100%; text-align: center; }
    .lc335b-confirm-row { flex-direction: column; }
    .lc335b-confirm-label {
        width: 100%;
        min-width: unset;
        border-right: none;
        border-bottom: 1px solid #e0e8f0;
        padding: 8px 12px;
    }
    .lc335b-confirm-value { padding: 8px 12px; }
    .lc335b-complete { padding: 20px 16px; }
}
