/* ====================================
   ケアホーム - カスタムスタイル
   ==================================== */

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* ヒーロースライダー */
.hero-slider {
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.hero-slide-active {
  opacity: 1;
  z-index: 0;
}
.hero-slider .hero-slide:nth-child(4) {
  z-index: 1;
}
/* ヒーローセクションのアニメーション */
.hero-section {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* コンセプトカードのホバーアニメーション */
.concept-card {
    transition: all 0.3s ease;
}

.concept-card:hover {
    box-shadow: 0 20px 40px rgba(237, 137, 54, 0.15);
}

/* サービスカードのアニメーション */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* フォーム要素のフォーカススタイル */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.2);
}

/* チェックボックスのカスタムスタイル */
input[type="checkbox"] {
    accent-color: #ED8936;
}

/* モバイルメニューのアニメーション */
#mobile-nav {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* プライバシーモーダルのアニメーション */
#privacy-modal {
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#privacy-modal > div {
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* トップに戻るボタンのアニメーション */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

/* スクロールアニメーション用（オプション - JSで制御する場合） */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 印刷用スタイル */
@media print {
    header,
    #back-to-top,
    #contact,
    #privacy-modal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .concept-card,
    .service-card {
        border: 2px solid currentColor;
    }
}

/* モーション軽減設定対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
