/* ============================================================
   さわりま撮影会 カスタムCSS
   Parfaite (salondarts.com) デザイン参考
   ============================================================ */

/* ============================================================
   アクセントテキスト（Parfaite #5fa2bc ベース）
   ============================================================ */
.gradient-text {
    color: #5fa2bc;
}

.gradient-text-footer {
    color: #a0c9df;
}

/* ============================================================
   カードホバー効果
   ============================================================ */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   部選択カード（申し込みフォーム）
   ============================================================ */
.section-radio-card {
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 1rem;
    transition: border-color 0.15s, background-color 0.15s;
    position: relative;
    background: #fff;
}
.section-radio-card:hover {
    border-color: #72adce;
    background-color: #edf5f9;
}
.section-radio-card input[type="radio"],
.section-radio-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.section-radio-card.selected {
    border-color: #5fa2bc;
    background-color: #edf5f9;
    box-shadow: 0 0 0 2px rgba(95, 162, 188, 0.15);
}
.section-radio-card .check-icon {
    display: none;
    color: #5fa2bc;
    font-weight: 700;
    font-size: 1rem;
}
.section-radio-card.selected .check-icon {
    display: inline;
}

/* ドラッグ&ドロップ並び替え */
.draggable-row { cursor: default; }
.drag-handle { cursor: grab; }
.drag-over { outline: 2px solid #5fa2bc; background: #f0f8ff; }

/* ============================================================
   フォーム入力
   ============================================================ */
.form-input {
    width: 100%;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: white;
    color: #323232;
    font-family: inherit;
}
.form-input:focus {
    outline: none;
    border-color: #5fa2bc;
    box-shadow: 0 0 0 2px rgba(95, 162, 188, 0.15);
}
.form-input::placeholder {
    color: #b2b2b2;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: #323232;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}
.form-label .required {
    color: #5fa2bc;
    margin-left: 0.25rem;
    font-size: 0.8rem;
}

/* ============================================================
   バッジ
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ============================================================
   トースト通知
   ============================================================ */
.toast {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 380px;
    padding: 0.875rem 1.125rem;
    border-radius: 2px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-size: 0.875rem;
    font-weight: 500;
    animation: toastIn 0.3s ease-out both;
}
.toast-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}
.toast-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.toast-info {
    background: #edf5f9;
    border: 1px solid #a0c9df;
    color: #2a6178;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}
.toast.removing {
    animation: toastOut 0.25s ease-in forwards;
}

/* ============================================================
   モデルカード プロフィール画像
   ============================================================ */
.model-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #cbe3ef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   管理テーブル
   ============================================================ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.admin-table th {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.admin-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}
.admin-table tr:hover td {
    background-color: #edf5f9;
}

/* ============================================================
   アニメーション遅延
   ============================================================ */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================================
   スクロールバー（Webkit）
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f2f2f2; }
::-webkit-scrollbar-thumb { background: #a0c9df; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #5fa2bc; }

/* ============================================================
   衣装画像モーダル
   ============================================================ */
#img-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 45, 56, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
#img-modal.open {
    opacity: 1;
    pointer-events: all;
}
#img-modal img {
    max-width: min(90vw, 900px);
    max-height: 90dvh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}
#img-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    line-height: 1;
}
#img-modal-close:hover {
    background: rgba(255, 255, 255, 0.20);
}
.costume-img {
    cursor: zoom-in;
}

/* ============================================================
   font-serif ユーティリティ
   ============================================================ */
.font-serif {
    font-family: 'Shippori Mincho B1', 'Noto Serif JP', serif;
}

/* ============================================================
   区切り線アクセント（Parfaite #5fa2bc）
   ============================================================ */
.accent-line {
    width: 3rem;
    height: 1px;
    background: #5fa2bc;
    margin: 0 auto;
}
