/*
Theme Name: KLANES-GROUP Premium Care
Theme URI: 
Author: Your Name
Author URI: 
Description: KLANES-GROUP
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.0.0
License: GPLv2 or later
License URI: 
Tags: custom-layout, responsive, tailwind
Text Domain: 
*/

/* --- テーマのベーススタイル --- */
body {
    /* フォントはfunctions.phpでNoto Sans JP CDNを読み込み、Tailwindのクラスで指定 */
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f3f4f6;
    color: #333;
}

/* ★スムーズスクロールの設定 (htmlタグに適用) */
html {
    scroll-behavior: smooth;
    /* 固定ヘッダーの高さ(80px)に合わせて調整 */
    scroll-padding-top: 80px; 
}

/* --- スライダーアニメーション設定 --- */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    /* 20秒で無限ループ */
    animation: slideAnimation 20s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }

@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1.1); }
    5% { opacity: 1; transform: scale(1); }
    20% { opacity: 1; transform: scale(1); }
    25% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* --- スクロール出現アニメーション --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- モバイルメニュー用のカスタムCSS（滑らかさ向上） --- */
#mobile-menu {
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    /* モバイルメニューをヘッダー直下に配置するための調整 */
    top: 80px; /* ヘッダーの高さ */
}
/* JavaScriptでこのクラスを付け外しする */
#mobile-menu.open {
    max-height: 100vh; /* 十分な高さを確保 */
    opacity: 1;
}
/* モバイルメニューが開いた時のスタイル定義 */
#mobile-menu.open {
    max-height: 500px !important; /* メニューの高さ。中身に合わせて十分な数値を指定 */
    opacity: 1 !important;        /* 透明度を1にする */
    padding-bottom: 20px;         /* 閉じている時は0、開いた時だけ余白を作る */
}

/* リンクがクリックされた時の反応を少し良くする場合（任意） */
.mobile-link {
    transition: background-color 0.3s;
}

