/* =============================================
   teacher_register.css — 講師登録ページ
   象牙 #faf8f2 / 黒檀 #1a1510 / ゴールド #b8965a
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Noto+Serif+JP:wght@400;600&display=swap');

body {
    background: #f5f0e8;
}

/* =============================================
   ページヘッダー
   ============================================= */
.cr-hero {
    background: linear-gradient(160deg, #1a1510 0%, #241e14 100%);
    padding: 40px 20px 36px;
    text-align: center;
}

.cr-hero h1 {
    font-family: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #faf8f2;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.cr-hero p {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    color: #a09070;
    letter-spacing: 0.08em;
}

/* =============================================
   フォーム全体ラッパー
   ============================================= */
.cr-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* =============================================
   セクション
   ============================================= */
.cr-section {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8e0d0;
    padding: 28px 28px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(26,21,16,0.04);
}

.cr-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1510;
    letter-spacing: 0.05em;
    padding-left: 12px;
    border-left: 3px solid #b8965a;
    margin-bottom: 22px;
}

.cr-section-note {
    font-size: 0.78rem;
    color: #aaa;
    font-weight: 400;
    margin-left: 8px;
}

/* =============================================
   フォームグループ
   ============================================= */
.cr-field {
    margin-bottom: 18px;
}

.cr-field:last-child {
    margin-bottom: 0;
}

.cr-label {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2a2018;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.cr-required {
    display: inline-block;
    background: #b8965a;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
    letter-spacing: 0;
}

.cr-hint {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.73rem;
    color: #aaa;
    margin-top: 4px;
    line-height: 1.5;
}

.cr-input,
.cr-select,
.cr-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    background: #faf8f2;
    border: 1px solid #d8cdb8;
    border-radius: 5px;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.88rem;
    color: #1a1510;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cr-input:focus,
.cr-select:focus,
.cr-textarea:focus {
    outline: none;
    border-color: #b8965a;
    box-shadow: 0 0 0 3px rgba(184,150,90,0.15);
}

.cr-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.7;
}

.cr-input.error,
.cr-select.error,
.cr-textarea.error {
    border-color: #c0392b;
    background: #fff8f6;
}

/* 2カラムグリッド */
.cr-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* 価格入力 */
.cr-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cr-price-row .cr-input {
    flex: 1;
}

.cr-price-unit {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.82rem;
    color: #7a6b56;
    white-space: nowrap;
}

/* =============================================
   チェックボックスグループ（ピル型）
   ============================================= */
.cr-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.cr-check-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #faf8f2;
    border: 1.5px solid #d8cdb8;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.82rem;
    color: #5a4a38;
    transition: all 0.15s;
    user-select: none;
}

.cr-check-pill input[type="checkbox"] {
    display: none;
}

.cr-check-pill:has(input:checked) {
    background: #1a1510;
    border-color: #1a1510;
    color: #d4c5a0;
    font-weight: 600;
}

.cr-check-pill:hover {
    border-color: #b8965a;
}

/* ラジオグループ */
.cr-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.cr-radio-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #faf8f2;
    border: 1.5px solid #d8cdb8;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.82rem;
    color: #5a4a38;
    transition: all 0.15s;
    user-select: none;
}

.cr-radio-pill input[type="radio"] {
    display: none;
}

.cr-radio-pill:has(input:checked) {
    background: #b8965a;
    border-color: #b8965a;
    color: #fff;
    font-weight: 600;
}

.cr-radio-pill:hover {
    border-color: #b8965a;
}

/* =============================================
   写真アップロード
   ============================================= */
.cr-photo-area {
    border: 2px dashed #d8cdb8;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #faf8f2;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}

.cr-photo-area:hover,
.cr-photo-area.dragover {
    border-color: #b8965a;
}

.cr-photo-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.cr-photo-area-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #b8965a;
}

.cr-photo-area-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    color: #7a6b56;
}

.cr-photo-area-sub {
    font-size: 0.73rem;
    color: #aaa;
    margin-top: 4px;
}

.cr-photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.cr-photo-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #e8e0d0;
}

.cr-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cr-photo-thumb-del {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(26,21,16,0.75);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cr-photo-thumb-uploading {
    position: absolute;
    inset: 0;
    background: rgba(26,21,16,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4c5a0;
    font-size: 0.75rem;
}

/* =============================================
   女性確認チェック
   ============================================= */
.cr-female-box {
    background: #faf8f2;
    border: 1.5px solid #d8cdb8;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.cr-female-box label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1510;
}

.cr-female-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #b8965a;
    cursor: pointer;
    flex-shrink: 0;
}

.cr-female-note {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 6px;
    margin-left: 28px;
}

.cr-female-box.error {
    border-color: #c0392b;
    background: #fff8f6;
}

/* =============================================
   エラー表示
   ============================================= */
.cr-error-banner {
    display: none;
    background: #fff3f0;
    border: 1.5px solid #c0392b;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    color: #922b21;
    font-weight: 600;
}

.cr-error-banner.show { display: block; }

.cr-field-error {
    display: none;
    font-size: 0.73rem;
    color: #c0392b;
    font-weight: 600;
    margin-top: 4px;
}

.cr-field-error.show { display: block; }

.cr-server-errors {
    background: #fff3f0;
    border: 1.5px solid #c0392b;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.cr-server-errors ul {
    margin: 0;
    padding-left: 18px;
}

.cr-server-errors li {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    color: #922b21;
    margin-bottom: 4px;
}

/* =============================================
   メール送信完了
   ============================================= */
.cr-sent-box {
    background: #f0f8f0;
    border: 1.5px solid #6aaa6a;
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.cr-sent-icon { font-size: 2.5rem; margin-bottom: 10px; }

.cr-sent-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d6a2d;
    margin-bottom: 8px;
}

.cr-sent-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.85rem;
    color: #4a8a4a;
    line-height: 1.8;
}

/* =============================================
   送信ボタン
   ============================================= */
.cr-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #c8a060 0%, #8a6530 100%);
    color: #faf8f2;
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 8px;
}

.cr-submit:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cr-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.cr-login-link {
    text-align: center;
    margin-top: 20px;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.82rem;
    color: #aaa;
}

.cr-login-link a {
    color: #b8965a;
    text-decoration: none;
}

.cr-login-link a:hover {
    text-decoration: underline;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 600px) {
    .cr-section {
        padding: 20px 16px 18px;
    }

    .cr-grid-2 {
        grid-template-columns: 1fr;
    }

    .cr-photo-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}
