/* Contact page specific styles */
.contact-container {
    max-width: 900px;
    width: 100%;
    background: var(--bg-white);
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.page-title {
    font-size: 42px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-family: 'Barlow Condensed', sans-serif;
}

.page-subtitle {
    text-align: center;
    color: var(--primary-color);
    opacity: 0.7;
    font-size: 14px;
    margin-bottom: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full {
    flex: 1 1 100%;
}

label {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    pointer-events: none;
}

.required {
    color: #d44eff;
    margin-left: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #d44eff;
    box-shadow: 0 0 0 3px rgba(212, 78, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
}

.form-actions {
    text-align: center;
    margin-top: 35px;
}

.submit-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.thumb-button {
    position: absolute;
    width: 70px;
    height: 65px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 4;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.auth-button-wrapper {
    position: relative;
    width: 120px;
    height: 140px;
    margin-top: 35px;
}

.button-frame {
    width: 120px;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.thumb-icon {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.3;
    transition: opacity 0.2s ease;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    position: relative;
}

.thumb-button:not(.disabled) .thumb-icon {
    opacity: 1;
}

.thumb-icon.blinking {
    animation: blink 0.005s infinite;
}

/* 走査線アニメーション */
.scan-line {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 78, 255, 0.3) 20%,
        rgba(212, 78, 255, 0.8) 50%,
        rgba(212, 78, 255, 0.3) 80%,
        transparent 100%
    );
    box-shadow:
        0 0 8px rgba(212, 78, 255, 0.6),
        0 0 15px rgba(212, 78, 255, 0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.scan-line.scanning {
    animation: scanDown 2.5s linear forwards;
}

@keyframes scanDown {
    0% {
        top: -2px;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        top: calc(100% + 2px);
        opacity: 0;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 振動エフェクト */
.auth-button-wrapper.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.gauge-image {
    position: absolute;
    top: -35px;
    left: 0;
    width: 120px;
    height: 24px;
    z-index: 5;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.progress-text {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    color: #4a433d;
    font-weight: 500;
    z-index: 4;
    white-space: nowrap;
}


.thumb-button:disabled,
.thumb-button.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.privacy-agreement {
    margin: 35px 0 25px 0;
    padding: 20px 0px;
    text-align: center;
}

.privacy-text {
    font-size: 14px;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-text a {
    color: var(--gradient-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-text a:hover {
    color: var(--gradient-cyan);
}

.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkbox-label {
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    margin-bottom: 0;
    user-select: none;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--gradient-purple);
}


.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .page-title {
        font-size: 32px;
    }
}

/* ハニーポット完全非表示（bot対策） */
input[name="website"] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    visibility: hidden !important;
}

/* 海外IP用の表示スタイル */
.overseas-message {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    margin: 30px 0;
    color: var(--primary-color);
}

.contact-info {
    background: linear-gradient(135deg, rgba(212, 78, 255, 0.3), rgba(135, 222, 255, 0.3));
    color: var(--primary-color);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid rgba(212, 78, 255, 0.2);
}

.contact-info p {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 500;
}

.contact-info a {
    color: var(--gradient-purple);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-info a:hover {
    color: var(--gradient-cyan);
    text-decoration: none;
}

.country-info {
    text-align: center;
    font-size: 14px;
    color: #888;
    margin-top: 20px;
    opacity: 0.7;
}