@charset "utf-8";
/* ==========================================
   西神戸高等特別支援学校 創立10周年特設サイト用CSS
(2026/8/21)（夏休みの宿題編）
   ========================================== */
:root {
    --nkt-purple: #581c87;
    --nkt-deep-blue: #0f172a;
    --nkt-gold: #f59e0b;
    --nkt-accent-pink: #ec4899;
    --nkt-bg-light: #f8fafc;

    --nkt-color: rgba(147, 112, 219, 0.85);
    --nkt-color-25: rgba(147, 112, 219, 0.25);
    --nkt-gold-alt: rgba(255, 215, 0, 1);
}

/* 2. 全体・リセット設定 */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* ページ内リンクジャンプ時のヘッダー被り防止 */
}

body {
    background-color: #0f172a;
    color: #1e293b;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    padding-top: 4.5rem; /* 固定ヘッダー分の余白 */
    padding-bottom: 3rem;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Shippori Mincho', serif;
    color: var(--nkt-deep-blue);
    margin: 0;
}

/* 3. ユーティリティ・共通パーツ */
.english-title {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.15em;
}

.text-shadow {
    color: white;
    text-shadow: 2px 2px 4px #000000;
}

.bi {
    vertical-align: -.125em;
    fill: currentColor;
}

/* ローディング画面 */
#loading {
    background: rgba(0, 0, 0, .5);
    z-index: 10000;
}

/* トップへ戻るボタン */
#backToTop {
    position: fixed;
    bottom: 15px;
    right: 15px;
    padding: 10px 10px;
    font-size: 14px;
    background-color: rgba(147, 112, 219, 1);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    opacity: 0.7;
}
#backToTop:hover {
    opacity: 1;
}

/* オリジナルカラーボタン */
.btn-nkt-color {
    --bs-btn-color: #fff;
    --bs-btn-bg: #9400FF;
    --bs-btn-border-color: #9400FF;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #A72EFF;
    --bs-btn-hover-border-color: #A121FF;
    --bs-btn-focus-shadow-rgb: 217, 164, 6;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #AC3BFF;
    --bs-btn-active-border-color: #A121FF;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* 4. ヘッダー・ナビゲーション */
nav.navbar img {
    width: auto;
    height: 50px;
}

.bg-navbar {
    background-color: rgba(147, 112, 219, 0.85);
}

/* ダークモードトグル (Bootstrapカスタマイズ) */
.bd-mode-toggle {
    z-index: 1500;
}
.bd-mode-toggle .dropdown-menu .active .bi {
    display: block !important;
}

.btn-bd-primary {
    --bd-violet-bg: #712cf9;
    --bd-violet-rgb: 112.520718, 44.062154, 249.437846;
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: #6528e0;
    --bs-btn-hover-border-color: #6528e0;
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
}

/* 5. カルーセル (スライドショー) */
.carousel {
    margin-bottom: 4rem;
}
.carousel-item {
    height: 32rem;
    transition: transform .5s ease;
}
.carousel-item video {
    object-position: center;
}
.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}
.carousel-bg-img {
    width: 100%;
    min-height: 90vh;
    background-size: cover;
    background-position: center;
}
.carousel-bg-img01 { background-image: url("../img/carousel-1.jpg"); }
.carousel-bg-img02 { background-image: url("../img/carousel-2.jpg"); }
.carousel-bg-img03 { background-image: url("../img/carousel-3.jpg"); }
.carousel-bg-img04 { background-image: url("../../img/bg03.jpg"); }

@media (min-width: 40em) {
    .carousel-caption p {
        margin-bottom: 1.25rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }
}
/* カルーセルの左右矢印にドロップシャドウを追加 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    /* 矢印の形に沿って濃いめの影を落とす */
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.9));
}

/* ホバー（マウスを乗せた時）は少し影を大きくして光らせる（お好みで） */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 1));
}
/* カルーセル下部のインジケーター（3つの線）にドロップシャドウを追加 */
.carousel-indicators button {
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.9));
}

/* 選択されている状態の線は、少し影を濃くして強調 */
.carousel-indicators button.active {
    filter: drop-shadow(1px 1px 4px rgba(0, 0, 0, 1));
}

/* 6. ヒーローセクション */
.hero-section {
    /* background: linear-gradient(135deg, #0f172a 0%, #3b0764 100%);*/
    color: #ffffff;
    text-align: center;
    padding: 120px 20px 100px;
    position: relative;
    overflow: hidden;
}

.anniversary-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 8px 24px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 10px;
	margin-top:50px;
}
.hero-title span { color: var(--nkt-gold); }

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: #cbd5e1;
    line-height: 1.6;
}

.logo-img {
  width: 200px;   /* 必要に合わせて調整 */
  height: auto;  /* 比率を維持して自動調整 */
}
/* 7. メインコンテンツラッパー */
.section-wrapper {
    background: #ffffff;
    border-radius: 30px 30px 0 0;
    margin-top: -40px;
    position: relative;
    z-index: 2;
    padding: 80px 0;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    border-left: 6px solid var(--nkt-purple);
    padding-left: 20px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* 8. メニューカード */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.menu-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--nkt-purple);
    box-shadow: 0 15px 30px rgba(88, 28, 135, 0.1);
}

.menu-icon-box {
    width: 65px;
    height: 65px;
    background: rgba(88, 28, 135, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--nkt-purple);
    flex-shrink: 0;
}

/* 9. 横スクロールお知らせ（スクロールバーあり・左側見切れ調整版） */
.scroll-wrapper {
	position:relative;
    display:flex;
    gap: 25px;
    overflow-x: auto;
    /* 1枚目のカードの左端が半分隠れた状態にする*/
    padding: 10px 200px 25px 20px; 
    
    /* スクロールバー */
    scrollbar-width: thin; 
    scrollbar-color: var(--nkt-purple) #f1f5f9;
    
    /* スクロールを滑らかにする設定 */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    
    /* 左右のブラー */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.event-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    flex: 0 0 min(340px, 80vw); 
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: center; /* 中央でピタッと止まるようにする */
}

/* 10. 音源再生セクション */
.audio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.audio-box {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
    border: 2px solid #bbf7d0;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.audio-box.march {
    background: linear-gradient(135deg, #f8fafc 0%, #fef3c7 100%);
    border-color: #fde68a;
}
/* コントラスト改善: 背景が明るい黄色の時の文字色調整 */
.audio-box.march h3,
.audio-box.march p {
    color: #1e293b; 
}

.audio-icon-pulse {
    width: 65px;
    height: 65px;
    background: #16a34a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.audio-box.march .audio-icon-pulse { background: var(--nkt-gold); }
.audio-box audio { width: 100%; border-radius: 30px; }

/* 11. 読者専用バナー */
.vip-banner {
    background: linear-gradient(135deg, #0f172a 0%, #3b0764 100%);
    border-radius: 30px;
    padding: 60px 40px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

@media (max-width: 768px) {
    .vip-banner { grid-template-columns: 1fr; text-align: center; }
}

.vip-button {
    background: linear-gradient(135deg, var(--nkt-gold) 0%, #d97706 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    white-space: nowrap;
}

/* 12. フッター (コントラスト・アクセシビリティ改善) */
#footer {
    color: #f8fafc; /* 基本のテキスト色を明るく */
}
#footer h5 {
    color: #ffffff; /* 見出しを真っ白に */
}
#footer a {
    color: #cbd5e1 !important; /* リンク色を明るいグレーに */
    transition: color 0.3s ease;
}
#footer a:hover {
    color: var(--nkt-gold) !important; /* ホバー時にゴールドへ */
}
/* Bootstrapの暗い文字色指定を強制的に上書き */
#footer .text-body-secondary {
    color: #cbd5e1 !important;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* カルーセルを画面幅いっぱいに広げる設定 */
.carousel-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 0;
    padding-right: 0;
}

/* カルーセル01の文字位置をしっかり下げる設定 */
.carousel-item.carousel-bg-img01 .carousel-caption {
    padding-top: 100px; 
}

/* 1枚目の白スライドの高さを他の画像(90vh)に合わせる */
.carousel-item.bg-white {
    min-height: 90vh !important; /* ここを32remから90vhに変更 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 1枚目の中身（キャプション）の絶対配置を解除して中央に馴染ませる */
.carousel-item.bg-white .carousel-caption {
    position: static !important;
    left: auto;
    right: auto;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-align: center !important; /* 全体を中央揃えに */
}