/* ================================================================
   css/request.css — リクエストフォーム専用スタイル
================================================================ */

/* ─── パンくず ─── */
.req-breadcrumb {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.req-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.req-breadcrumb a:hover { color: var(--primary); }
.req-sep { opacity: .4; font-size: .8rem; }
.req-breadcrumb span:last-child { color: var(--ink); font-weight: 700; }

/* ─── カード外枠 ─── */
.req-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

/* ─── ヘッダー帯 ─── */
.req-head {
    background: var(--primary);
    background-image: repeating-linear-gradient(
        90deg, transparent, transparent 3px,
        rgba(0,0,0,.05) 3px, rgba(0,0,0,.05) 4px
    );
    color: var(--white);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.req-head-icon { font-size: 2rem; opacity: .9; flex-shrink: 0; margin-top: 4px; }
.req-head-body { flex: 1; min-width: 0; }
.req-head-title { font-size: 1.15rem; font-weight: 900; margin: 0 0 4px; letter-spacing: .06em; }
.req-head-sub   { font-size: .84rem; opacity: .85; margin: 0; }

/* ─── エラー ─── */
.req-errors {
    margin: 20px 24px 0;
    background: #fef2f2;
    border: 1.5px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: .86rem;
    color: #721c24;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.req-errors-list {
    margin: 0;
    padding: 0 0 0 4px;
    list-style: disc inside;
}
.req-errors-list li { margin-bottom: 2px; }

/* ─── フォーム本体 ─── */
.req-form { padding: 24px; }

.req-field { margin-bottom: 20px; }

.req-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.req-required {
    font-size: .68rem;
    background: var(--primary);
    color: var(--white);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: .04em;
}
.req-optional {
    font-size: .68rem;
    background: #e0e0e0;
    color: #666;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
}
.req-input {
    display: block;
    width: 100%;
    font-family: inherit;
    border: 1.5px solid var(--rule);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .92rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color .2s;
    outline: none;
}
.req-input:focus { border-color: var(--primary); }
.req-textarea    { resize: vertical; min-height: 80px; }
.req-hint {
    display: block;
    font-size: .74rem;
    color: var(--muted);
    margin-top: 4px;
}

/* ─── 送信ボタン ─── */
.req-submit {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 4px;
}
.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: background .15s;
    letter-spacing: .04em;
}
.btn-send:hover { background: var(--primary-d); }
.btn-cancel-req {
    font-size: .86rem;
    color: var(--muted);
    text-decoration: none;
    padding: 12px 0;
    transition: color .15s;
}
.btn-cancel-req:hover { color: var(--ink); }

/* ─── 送信完了 ─── */
.req-thanks {
    padding: 40px 24px;
    text-align: center;
}
.req-thanks-icon  { font-size: 3.5rem; color: #28a745; display: block; margin-bottom: 16px; }
.req-thanks-title { font-size: 1.3rem; font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.req-thanks-msg   { color: var(--muted); font-size: .92rem; line-height: 1.8; margin-bottom: 24px; }
.req-thanks-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-back-req {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--ink);
    color: var(--white);
    border-radius: 6px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    transition: background .15s;
}
.btn-back-req:hover { background: #333; color: var(--white); }
.btn-another-req {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--white);
    color: var(--ink);
    border: 1.5px solid var(--rule);
    border-radius: 6px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    transition: border-color .15s;
}
.btn-another-req:hover { border-color: var(--muted); }

/* ─── レスポンシブ ─── */
@media (max-width: 480px) {
    .req-head       { padding: 16px 18px; }
    .req-head-icon  { font-size: 1.6rem; }
    .req-form       { padding: 18px 16px; }
    .btn-send       { width: 100%; justify-content: center; }
    .btn-cancel-req { width: 100%; text-align: center; }
}
