/* style.css */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: bold;
    color: #4a5568;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .form-container {
        padding: 1.5rem;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .form-container {
        background-color: #2a2a2a;
    }

    .form-title {
        color: #ffffff;
    }

    .form-label {
        color: #e2e8f0;
    }
}
:root {
    --primary-color: #006993;
    /* --secondary-color: #F0E6D8; */
    --secondary-color: #fcfaf7;
    --accent-color: #E3F0F0;
    --text-color: #333333;
}

body {
    background-color: var(--secondary-color);
    font-family: "Noto Serif JP", serif;
    color: var(--text-color);
}

.bg-brand-blue {
    background-color: var(--primary-color);
}

.hover\:bg-brand-dark:hover {
    background-color: #005274;
}

.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-gray-50 {
    --tw-gradient-from: #F9FAFB;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(249, 250, 251, 0));
}

.to-white {
    --tw-gradient-to: #ffffff;
}

.fc-day-future:not(.fc-day-disabled):hover {
    background-color: rgba(74, 222, 128, 0.2);
    cursor: pointer;
}

.fc-day-past {
    background-color: #f3f4f6;
    color: #999;
}

.fc-day-hoverable:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
    cursor: pointer;
}

.fc-day-today {
    background-color: inherit !important;
}

.fc-day-today:hover {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.fc-day-disabled {
    background-color: #ffebee;
    color: #999;
    cursor: default !important;
}

.fc-day-disabled:hover {
    background-color: #ffebee !important;
}

.holiday-marker {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.1);
}

.modal {
    transition: opacity 0.25s ease;
}

body.modal-active {
    overflow-x: hidden;
    overflow-y: visible !important;
}

.fc-day-future:not(.fc-day-disabled) {
    cursor: pointer;
}

.modal-body {
    max-height: 80vh;
}

.modal-container {
    height: calc(100dvh - 20px);
}

.responsive-size-text {
    font-size: 1em;
}

/* フォーム要素のスタイル */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    background-color: #fff;
    color: #4a5568;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 105, 147, 0.2);
}

/* ボタンのスタイル */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #005274;
    border-color: #005274;
}

/* アラートのスタイル */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

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

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

@media (max-width: 1280px) {
    .responsive-size-text {
        font-size: 0.75em;
    }
}

@media (max-width: 767px) {
    .modal-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: hidden;
        display: flex;
        flex-direction: column;
    }
    .modal-content {
        flex-grow: 1;
        overflow-y: auto;
    }
    .swiper-container {
        height: calc(100% - 60px);
    }
    .swiper-slide {
        height: auto;
        overflow-y: auto;
    }
    #dailyCalendar {
        height: 100% !important;
    }
    .modal-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 768px) {
    .swiper-wrapper {
        display: flex;
    }
    .swiper-slide {
        width: 50% !important;
    }
    .swiper-pagination {
        display: none;
    }
}

/* ダークモードのサポート */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .bg-brand-light-soft {
        background-color: #2a2a2a;
    }

    .fc-day-today {
        background-color: #2c3e50 !important;
    }

    .form-input, .form-select, .form-textarea {
        background-color: #2a2a2a;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .btn-primary {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

    .btn-primary:hover {
        background-color: #005274;
        border-color: #005274;
    }

    .alert-success {
        color: #d4edda;
        background-color: #155724;
        border-color: #0f401a;
    }

    .alert-danger {
        color: #f8d7da;
        background-color: #721c24;
        border-color: #5a161c;
    }
}