* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

header { background-color: #4b9de1; padding: 0.9rem; }
.logo { width: 18.125rem; }

main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem 1rem 1rem;
    color: #333;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 1rem;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.note { text-align: center; margin-bottom: 40px; }
.note h2 { font-size: 1.8rem; margin-bottom: 15px; letter-spacing: 2px; }
.note .description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    background: rgba(79, 172, 254, 0.08);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
}

.grid-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.full-width { grid-column: span 2; }
.input-group { position: relative; }
.inquiry-wrap {
    margin-top: 30px;
}
.inquiry-wrap {
}

input[type="text"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    outline: none;
    transition: 0.3s;
    font-size: 16px;
}
textarea {
    width: 100%;
    border: 2px solid #e0e0e0;
    margin-top: 1rem;
    padding: 0.6rem;
    resize: vertical;
    min-height: 6.25rem;
}

.floating-label {
    position: absolute;
    font-size: 0.8rem;
    top: 10px; left: 0; color: #999;
    pointer-events: none; transition: 0.3s ease;
}

input:focus ~ .floating-label,
input:not(:placeholder-shown) ~ .floating-label {
    top: -20px; font-size: 12px; color: #4facfe; font-weight: bold;
}
input:focus { border-bottom: 2px solid #4facfe; }
textarea:focus { border: 2px solid #4facfe; }

.inquiry-wrap .radio-title {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4facfe;
    margin-bottom: 10px;
}
.inquiry-wrap p {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}
.inquiry-wrap .radio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 5px;
 }
.inquiry-wrap .radio-item {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    cursor: pointer;
    white-space: nowrap;
}
.inquiry-wrap .radio-item input {
    width: auto !important;
    margin-right: 6px;
    accent-color: #4facfe;
}

.tag {
    font-size: 10px; padding: 2px 6px; border-radius: 3px;
    margin-left: 8px; font-weight: bold; background: #ff4d4d;
    color: #fff; vertical-align: middle;
}

.private-policy-wrap {
    margin-top: 30px;
}

.private-policy-wrap .private-policy-title {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #4facfe;
    margin-bottom: 10px;
}
.private-policy-wrap a {
    font-size: 14px;
    color: #666;
    text-decoration: underline;

}
.submit-btn {
    width: 100%; margin-top: 20px; padding: 18px;
    border: none; border-radius: 50px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    color: white; font-weight: bold; font-size: 16px; cursor: pointer; transition: 0.3s;
}
submit-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3); }
dialog {
    position: fixed
    inset: 0;
    max-height: 80vh;
    margin: auto;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
}
dialog::backdrop {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
}
dialog .modal-container {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}
dialog .modal-body {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}
dialog .modal-body .icon {
    font-size: 2rem;
}
dialog .modal-body > p {
    color: #64748b;
    font-size: 0.9rem;
}
dialog .modal-body .confirm-wrap {
    background: #f1f5f9;
    padding: 0 1rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    text-align: left;
}
dialog .modal-body .confirm-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 20px;
    font-weight: bold;
    border-bottom: 1px solid #e2e8f0;
}
dialog .modal-body .confirm-label { color: #666; }
dialog .modal-body .confirm-value { color: #4facfe; }
dialog .modal-body .confirm-detail {
    font-weight: bold;
    color: #666;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}
#inquiry-detail {
    white-space: pre-wrap;
    overflow-wrap: break-word;
}
dialog .modal-footer {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    gap: 8px;
}

dialog .modal-footer .buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: space-around;
}
dialog .modal-footer button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 3.125rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
dialog .modal-footer button:hover {
    opacity: 0.9; transform: translateY(-1px);
}
#modal-submit {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}
#modal-cancel {
    background: transparent;
    color: #94a3b8;
}
.overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

footer { padding: 20px; text-align: center; font-size: 12px; color: #888; }


@media (min-width: 48rem) {
    .glass-card {
        padding: 2.5rem;
    }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .floating-label {
        font-size: 1rem;
    }
    dialog {
        font-size: 1rem;
    }
    dialog .modal-body {
        padding: 2.5rem;
    }
    dialog .modal-footer {
        padding: 1rem 2.5rem;
    }
}
