/**
 * Keepill - 共通スタイルシート
 * /web/css/style.css
 */

/* ========================================
   Remix Icon Fix
   ======================================== */
:where([class^="ri-"])::before {
    content: "\f3c2";
}

/* ========================================
   Video Modal (index.php)
   ======================================== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

.video-modal-close:hover {
    color: #0066CC;
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ========================================
   Form Elements (contact.php)
   ======================================== */
.custom-radio {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-radio .inner-circle {
    width: 0.75rem;
    height: 0.75rem;
    background-color: #0066CC;
    border-radius: 50%;
}

.custom-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-checkbox.checked {
    background-color: #0066CC;
    border-color: #0066CC;
}

/* ========================================
   Error Messages
   ======================================== */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ========================================
   Scroll Margin for Anchor Links
   ======================================== */
[id] {
    scroll-margin-top: 80px;
}

/* ========================================
   Utility Classes
   ======================================== */
.hidden {
    display: none !important;
}
