/* カレンダー スタイル */
.calender {
    width: 100%;
    max-width: 350px;
    border-collapse: separate;
    border-spacing: 0;
}

.calender .title {
    text-align: center;
    font-weight: bold;
    font-size: 1.25rem;
    padding-bottom: 1.5rem;
    color: #1e3a8a;
    /* blue-900 */
}

.calender th {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    /* slate-500 */
    font-weight: bold;
    text-align: center;
}

.calender td {
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
}

.calender .closed {
    background-color: #fee2e2;
    /* red-100 */
    color: #b91c1c;
    /* red-700 */
    font-weight: bold;
    border-radius: 4px;
}

.calender .week td:hover {
    background-color: #f8fafc;
}

/* スムーススクロールなどの調整用 */
html {
    scroll-behavior: smooth;
}

/* ヒーローセクションのアニメーション用 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* TOPへ戻るボタン */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 70px;
    height: 70px;
    background-color: #003580;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    border: none;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 53, 128, 0.3);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #004aab;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
}

/* ---------------------------------------------------------
   革新的な視覚効果
--------------------------------------------------------- */

/* グラスモルフィズム */
.glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* タイポグラフィ・スタッガーアニメーション */
.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.char.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* マグネティック・ボタン */
.magnetic {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* スクロールアニメーション用スタイル */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1.0s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-fade.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 遅延用クラス */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-600 {
    transition-delay: 600ms;
}

/* スマホ用テーブルスクロールヒント */
.scroll-hint-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.scroll-hint-overlay.is-active {
    animation: hintFadeInOut 3s ease forwards;
    visibility: visible;
}

@keyframes hintFadeInOut {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.scroll-hint-icon {
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    position: relative;
    margin-bottom: 10px;
}

.scroll-hint-icon::before,
.scroll-hint-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid white;
    border-right: 2px solid white;
}

.scroll-hint-icon::before {
    left: 4px;
    transform: translateY(-50%) rotate(-135deg);
}

.scroll-hint-icon::after {
    right: 4px;
    transform: translateY(-50%) rotate(45deg);
}

@media (min-width: 1024px) {
    .scroll-hint-overlay {
        display: none !important;
    }
}