/* 共通コンテナ設定 */
.content-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ヒーローエリア: 最背面 (-1) に設定 */
.hero-fixed {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 350px;
    z-index: -1; 
    background-color: #000; /* 画像読み込み前のチラつき防止 */
}

@media (min-width: 768px) {
    .hero-fixed {
        height: 45vh;
    }
}

/* --- 追加: スライドショー用スタイル --- */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* 15秒で1周 (3枚 × 各5秒) */
    animation: hero-fade 15s infinite;
}

.slide1 {
    background-image: url('img/23336994_m.jpg');
    animation-delay: 0s;
}

.slide2 {
    background-image: url('img/24523121_m.jpg');
    animation-delay: 5s;
}

.slide3 {
    background-image: url('img/22927437_m.jpg');
    animation-delay: 10s;
}

/* ゆっくりズームしながらクロスフェード */
@keyframes hero-fade {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; transform: scale(1.02); }
    33.33% { opacity: 1; transform: scale(1.05); }
    43.33% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; transform: scale(1); }
}
/* ------------------------------------- */

/* コンテンツエリア全体 */
.main-content {
    position: relative;
    width: 100%;
    z-index: 10;
    pointer-events: none; 
}

/* 透明なスペーサー */
.spacer {
    width: 100%;
    height: 350px;
    pointer-events: none;
    background: transparent;
}
@media (min-width: 768px) {
    .spacer {
        height: 45vh;
    }
}

/* コンテンツ実体 (白背景) */
.content-wrapper {
    background-color: #ffffff;
    position: relative;
    z-index: 20;
    pointer-events: auto; 
}

/* アコーディオンアニメーション */
.accordion-content {
    transition: height 0.3s ease-out, opacity 0.3s ease-out;
    height: 0;
    opacity: 0;
    overflow: hidden;
}

/* 下線アニメーション */
.scroll-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 10px; 
}
.scroll-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 6px; 
    background-color: #bce3eb; 
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.8;
    z-index: -1;
}
.scroll-underline.is-visible::after {
    width: 100%;
}

/* フェードインアニメーション */
.animate-target {
    opacity: 0;
    transition-property: opacity, transform;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fade-in-up {
    transform: translateY(40px);
    transition-duration: 0.8s;
}
.animate-target.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 吹き出しの三角形 */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #63b0c4 transparent transparent transparent; 
}

/* タブアクティブスタイル */
.tab-btn.active {
    background-color: #63b0c4;
    color: #ffffff;
    border-color: #63b0c4;
}

/* モバイルメニュー */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}
#mobile-menu.open {
    transform: translateX(0);
}

/* グラデーションテキスト */
.text-gradient {
    background: linear-gradient(135deg, #63b0c4 0%, #4b8fa0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* テキストシャドウ */
.text-shadow {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
}



/* タブ内の顔アイコン画像のサイズ調整・配置用 */
.tab-btn img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* 役割（父、母、子）に応じたタブのホバーやアクティブ時のスタイル調整 */
.tab-btn.bg-blue-500.text-white {
    background-color: #3b82f6 !important; /* Tailwind blue-500 */
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}
.tab-btn.bg-pink-500.text-white {
    background-color: #ec4899 !important; /* Tailwind pink-500 */
    border-color: #ec4899 !important;
    color: #ffffff !important;
}
.tab-btn.bg-yellow-500.text-white {
    background-color: #eab308 !important; /* Tailwind yellow-500 */
    border-color: #eab308 !important;
    color: #ffffff !important;
}