body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; margin: 0; padding: 0; color: #f1f5f9; background-color: #000000; background-image: url(../img/aori-car-bak.jpg); background-attachment: fixed; background-repeat: no-repeat; background-position: center center; background-size: cover; }
header { background-color: rgba(13, 14, 18, 0.85); color: #ffffff; padding: 15px 10px; text-align: center; border-bottom: 1px solid #1f222c; backdrop-filter: blur(10px); }
header h1 { margin: 0 0 20px 0; font-size: clamp(14px, 8.00px + 1.56vw, 24px); font-weight: 800; letter-spacing: 0.08em; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
header nav { display: flex; flex-wrap: wrap; flex-direction: row; align-items: center; justify-content: center; }
header nav ul { display: flex; flex-wrap: wrap; flex-direction: row; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0; gap: 10px; }
header nav ul li { margin: 0; }
header nav a.btn-x { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; background: #1f222c; color: #e2e8f0; padding: 8px 16px; text-decoration: none; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; border: 1px solid #333848; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
header nav a.btn-x.current { background: #dc2626; color: #ffffff; border-color: #ef4444; box-shadow: 0 0 12px rgba(220, 38, 38, 0.5); pointer-events: none; }
header nav a.btn-x:hover { background: #dc2626; color: #ffffff; border-color: #ef4444; box-shadow: 0 0 12px rgba(220, 38, 38, 0.5); transform: translateY(-2px); }
header nav a.btn-x:active { transform: translateY(0); box-shadow: 0 0 4px rgba(220, 38, 38, 0.3); }
main { background-color: rgba(13, 14, 18, 0.85) !important; border: 1px solid #1f222c; padding: 25px; max-width: 750px; margin: 25px auto; box-sizing: border-box; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); backdrop-filter: blur(8px); }
main h2 { margin: 0 0 25px 0; font-size: clamp(14px, 8.00px + 1.56vw, 20px); color: #ffffff; font-weight: bold; border-left: 4px solid #ef4444; padding-left: 10px; }
footer { text-align: center; padding: 25px; font-size: clamp(12px, 8.00px + 1.56vw, 14px); color: #475569; margin-top: 30px; }
.captcha-wrapper { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; }
.captcha-wrapper .toggle-btn { background: #1f222c; border: 1px solid #2a2e3d; border-radius: 4px; padding: 0 12px; cursor: pointer; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; height: 40px; box-sizing: border-box; color: #94a3b8; transition: all 0.2s ease; flex-shrink: 0; }
.captcha-wrapper .toggle-btn:hover { background-color: #2a2e3d; color: #ffffff; border-color: #ef4444; }
.form-group { position: relative; margin-bottom: 18px; display: flex; flex-direction: row; align-items: stretch; border: 1px solid #1f222c; border-radius: 6px; background-color: rgba(9, 10, 15, 0.4); overflow: hidden; }
.form-group label { width: 28%; flex-shrink: 0; font-weight: bold; font-size: 14px; color: #cbd5e1; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background-color: rgba(255, 255, 255, 0.02); border-right: 1px solid #1f222c; box-sizing: border-box; }
.form-group-control { flex-grow: 1; width: 100%; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
.form-group input[type="text"], .form-group select, .form-group textarea, .form-group input[type="password"] { width: 100%; padding: 10px 12px; box-sizing: border-box; background-color: #090a0f !important; border: 1px solid #2a2e3d !important; border-radius: 4px; color: #ffffff !important; font-size: 14px; -webkit-appearance: none; transition: all 0.2s ease-in-out; }
.form-group input[type="text"]:focus, .form-group select:focus, .form-group textarea:focus, .form-group input[type="password"]:focus { outline: none !important; border-color: #ef4444 !important; box-shadow: 0 0 8px rgba(239, 68, 68, 0.25) !important; background-color: #0d0e15 !important; }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://w3.org' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 20px; padding-right: 30px; }
.required::after, .required2::after { font-size: 10px; font-weight: bold; padding: 2px 5px; line-height: 1; white-space: nowrap; border-radius: 3px; display: inline-block; margin-left: auto; }
.required::after { content: "必須"; background-color: #dc2626; color: #fff; font-size: 11px; font-weight: bold; padding: 3px 6px; margin-right: 8px; margin-left: 0; line-height: 1; vertical-align: middle; white-space: nowrap; float: none; border-radius: 4px; display: block; order: -1; }
.required2::after { content: "任意"; background-color: #475569; color: #cbd5e1; font-size: 11px; font-weight: bold; padding: 3px 6px; margin-right: 8px; margin-left: 0; line-height: 1; vertical-align: middle; white-space: nowrap; float: none; border-radius: 4px; display: block; order: -1; }
#toggle-email-btn { background: #1e293b; border: 1px solid #334155; color: #cbd5e1; padding: 8px 12px; min-width: 110px; text-align: center; box-sizing: border-box; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 13px; transition: all 0.2s ease; white-space: nowrap; }
#toggle-email-btn:hover { background: #334155; color: #ffffff; border-color: #475569; }
.captcha-box { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; background: #0d0e15 !important; border: 1px solid #2a2e3d; padding: 8px 12px; border-radius: 4px; width: 100%; box-sizing: border-box; }
.password-wrapper { position: relative; display: block; width: 100%; }
.password-wrapper input { padding-right: 40px !important; }
.password-wrapper .toggle-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 16px; padding: 0; z-index: 10; color: #64748b; }
.file-upload-input { display: none !important; }
.file-upload-wrapper { display: flex; align-items: center; justify-content: flex-start; padding: 10px 12px; box-sizing: border-box; background-color: #090a0f; border: 1px solid #2a2e3d; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; font-size: 13px; white-space: nowrap; }
.file-upload-wrapper:hover { border-color: #ef4444; background-color: #0d0e15; }
.upload-content-inner { display: flex; align-items: center; gap: 0.5em; }
.upload-icon { font-size: 1.2em; display: flex; align-items: center; line-height: 1; }
.upload-text { font-weight: 600; color: #ffffff; }
.badge-outline { background-color: #ef4444; border: 1px solid #b91c1c; color: #ffffff; font-weight: bold; border-radius: 3px; font-size: 10px; display: inline-block; padding: 1px 3px; margin-right: 4px; vertical-align: middle; }
.file-upload-wrapper:hover::after { content: "（ここをクリック！）"; font-size: 11px; color: #ef4444; margin-left: 8px; animation: fadeIn 0.2s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: translateX(0); } }
.upload-note { font-size: 11px; color: #64748b; margin-top: 6px; }
.btn-submit { display: block; width: 100%; background: #dc2626; color: #ffffff; padding: 14px; border: none; border-radius: 4px; font-size: 16px; font-weight: 900; letter-spacing: 0.1em; cursor: pointer; margin-top: 25px; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2); transition: all 0.2s ease; }
.btn-submit:hover { background: #b91c1c; box-shadow: 0 0 15px rgba(220, 38, 38, 0.5); transform: translateY(-1px); }
@media screen and (min-width: 1024px) {
    header nav ul { gap: 10px; }
    header nav a.btn-x { padding: 8px 16px; font-size: 14px; }
    main { max-width: 850px; padding: 35px; }
    .form-group label { font-size: 14px; }
    .btn-submit { font-size: 16px; padding: 14px; }
}
@media (min-width: 835px) and (max-width: 1023px) {
    header nav ul { gap: 8px; }
    header nav a.btn-x { padding: 8px 14px; font-size: 13px; }
    main { max-width: 800px; padding: 30px; margin: 30px auto; }
    .form-group label { font-size: 14px; }
    .btn-submit { font-size: 16px; padding: 13px; }
}
@media (min-width: 744px) and (max-width: 834px) {
    header nav ul { gap: 6px; }
    header nav a.btn-x { padding: 7px 12px; font-size: 13px; }
    main { max-width: 700px; padding: 25px; margin: 25px auto; width: 92%; }
    .form-group label { font-size: 14px; }
    .btn-submit { font-size: 15px; padding: 12px; }
}
@media (min-width: 541px) and (max-width: 743px) {
    header h1 { margin: 0 0 15px 0; }
    header nav ul { gap: 6px; }
    header nav a.btn-x { padding: 6px 10px; font-size: 12px; }
    main { max-width: 600px; padding: 22px; margin: 20px auto; width: 94%; }
    .form-group label { width: 32%; font-size: 13px; }
    .btn-submit { font-size: 15px; padding: 12px; }
}
@media (min-width: 441px) and (max-width: 540px) {
    header { padding: 15px; }
    header nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 4px; font-size: 12px; width: 100%; text-align: center; }
    main { margin: 15px auto; width: 95%; padding: 20px 15px; }
    .form-group { flex-direction: column; align-items: stretch; border: none; background: none; margin-bottom: 20px; }
    .form-group label { width: 100%; border-right: none; padding: 0 0 6px 0; background: none; justify-content: flex-start; gap: 8px; font-size: 13px; }
    .form-group-control { padding: 0; }
    .required::after, .required2::after { margin-left: 0; }
    .btn-submit { font-size: 15px; }
}
@media (min-width: 391px) and (max-width: 440px) {
    header nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 2px; font-size: 11px; width: 100%; }
    main { margin: 10px auto; width: 100%; border-radius: 0; padding: 20px 12px; border-left: none; border-right: none; }
    .form-group { flex-direction: column; align-items: stretch; border: none; background: none; margin-bottom: 20px; }
    .form-group label { width: 100%; border-right: none; padding: 0 0 6px 0; background: none; justify-content: flex-start; gap: 8px; font-size: 13px; }
    .form-group-control { padding: 0; }
    .required::after, .required2::after { margin-left: 0; }
    .btn-submit { font-size: 15px; }
}
@media (min-width: 381px) and (max-width: 390px) {
    header nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 2px; font-size: 11px; width: 100%; }
    main { margin: 10px auto; width: 100%; border-radius: 0; padding: 18px 12px; border-left: none; border-right: none; }
    .form-group { flex-direction: column; align-items: stretch; border: none; background: none; margin-bottom: 20px; }
    .form-group label { width: 100%; border-right: none; padding: 0 0 6px 0; background: none; justify-content: flex-start; gap: 8px; font-size: 13px; }
    .form-group-control { padding: 0; }
    .required::after, .required2::after { margin-left: 0; }
    .btn-submit { font-size: 14px; padding: 11px; }
}
@media (min-width: 375px) and (max-width: 380px) {
    header nav ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 2px; font-size: 11px; width: 100%; }
    main { margin: 10px auto; width: 100%; border-radius: 0; padding: 15px 10px; border-left: none; border-right: none; }
    .form-group { flex-direction: column; align-items: stretch; border: none; background: none; margin-bottom: 20px; }
    .form-group label { width: 100%; border-right: none; padding: 0 0 6px 0; background: none; justify-content: flex-start; gap: 8px; font-size: 12px; }
    .form-group-control { padding: 0; }
    .required::after, .required2::after { margin-left: 0; }
    .btn-submit { font-size: 14px; padding: 11px; }
}
@media (max-width: 374px) {
    header { padding: 12px 4px; }
    header nav ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; }
    header nav a.btn-x { display: flex; padding: 6px 2px; font-size: 10px; width: 100%; }
    main { margin: 10px auto; width: 100%; border-radius: 0; padding: 15px 8px; border-left: none; border-right: none; }
    .form-group { flex-direction: column; align-items: stretch; border: none; background: none; margin-bottom: 20px; }
    .form-group label { width: 100%; border-right: none; padding: 0 0 6px 0; background: none; justify-content: flex-start; gap: 8px; font-size: 12px; }
    .form-group-control { padding: 0; }
    .required::after, .required2::after { margin-left: 0; }
    .btn-submit { width: 100%; text-align: center; margin-left: 0 !important; padding: 10px; font-size: 14px; box-sizing: border-box; }
}
