@charset "utf-8";

:root {
/* ----------サンプル色↓ ---------*/
/* --smp1: rgb(73,0,255); */
--smp1: lch(33.02% 127.3086 303.49deg);
/* --smp2: rgb(163,188,226); */
--smp2: lch(75.33% 22.2071 263.86deg);
/* --smp3: rgb(0,98,172); */
--smp3: lch(40.01% 47.2315 267.75deg);
/* --smp4: rgb(0,73,134); */
--smp4: lch(29.96% 40.4106 269.65deg);
/* --smp5: rgb(243,243,244); */
--smp5: lch(95.86% 0.5007 285.28deg);
/* --smp6: rgb(139,255,95); */
--smp6: lch(90.84% 83.8859 131.04deg);
--accent: rgb(207, 221, 228);
--oswald-font: 'Oswald', sans-serif; /* フォント名なども定義可能です */  
/*-------------------------------*/

/* ------------------------------------- 
        ベースの色定義（OKLCH用）
------------------------------------- */
   /* L: 明度(0%〜100%), C: 彩度(0〜0.37程度), H: 色相(0〜360) */ 
  --bg-l: 75%;    /* 明度 */
  --bg-c: 0.08;   /* 彩度（OKLCHでは0.1前後が使いやすい数値です） */
  --bg-h: 263;    /* 色相 */

/* ------------------------------------- 
                body
------------------------------------- */
/* 背景 */
  --bodycolor: oklch(var(--bg-l) var(--bg-c) var(--bg-h));
/* グラデーション */
  --bodycolor2: oklch(
    calc(var(--bg-l) + 25%) 
    calc(var(--bg-c) + 0.05) 
    var(--bg-h)
  );
/* スクロールアニメーション */
    --scroll_bar: black;

/* -------------------------------------
                contents 
------------------------------------- */
/* contents背景 */
    --contents_color: white;    
/* タイトル背景 */
    --title_color: oklch(
    calc(var(--bg-l) - 10%) 
    calc(var(--bg-c) - 0.03) 
    calc(var(--bg-h) - 0.00)
    );

/* -------------------------------------
            ページタイトル 
------------------------------------- */
/* メイン ---------*/
/* 背景 */
    --title_main_bg: oklch(
    calc(var(--bg-l) - 10%) 
    calc(var(--bg-c) - 0.03) 
    calc(var(--bg-h) - 0.00)
    );
/* 文字 */
    --content_title_font: white;

/* サブ -----------*/
    --title_sub: oklch(
    calc(var(--bg-l) + 30%) 
    calc(var(--bg-c) + 0.03) 
    calc(var(--bg-h) - 180)
    );

/* -------------------------------------
        タイトルアニメーション
------------------------------------- */
    /* 背景 */
    --font_scroll_after: var(--title_main_bg);
    /* バー */
    --font_scroll_before: var(--content_title_font);

/* -------------------------------------
                footer 
------------------------------------- */
/* 背景 */
    --footercolor: oklch(
    calc(var(--bg-l) - 15%) 
    calc(var(--bg-c) - 0.05) 
    var(--bg-h)
    );

/* -------------------------------------
        スライドメニュー
------------------------------------- */
/* パネル */
    --menupanel: oklch(
    calc(var(--bg-l) - 3%) 
    calc(var(--bg-c) - 0.03) 
    calc(var(--bg-h) + 00.00)
    );
/* リスト文字 */
    --menulist_a: oklch(
    calc(var(--bg-l) + 25%) 
    calc(var(--bg-c) - 0.05) 
    calc(var(--bg-h) + 200.00)
    );
     --menulist_a_hover: oklch(
    calc(var(--bg-l) - 10%) 
    calc(var(--bg-c) + 0.15) 
    calc(var(--bg-h) - 02.00)
    );
    --btn_hover: var(--accent);
    --btn_svg: black;
    --btn_svg_hover: black;
    --btn_c: white;
    --btn_c_hover: var(--accent);
    --btn_c_svg: black;
    --btn_c_svg_hover: black;
    --menushadow: black;
/* -------------------------------------
                index
------------------------------------- */
/* サブタイトル背景 */
    --index_title_sub: var(--title_sub);

/* -------------------------------------------------------------------------- */
} /* ↑:rootここまで↑ */
/* -------------------------------------------------------------------------- */




/* base
------------------------------- */
html {
    scroll-behavior: smooth; /* ページ内リンクの移動を滑らかにする */
}
body {
    color: var(--font);
    /* 指定した2色でグラデーションを作成 */
    background: linear-gradient(180deg, var(--bodycolor), var(--bodycolor2));
    margin: 0;
    min-height: 100vh; /* 画面の高さいっぱいを確保 */

    background-attachment: fixed; /* スクロールしてもグラデーションの位置を固定したい場合 */
    display: flex;
    flex-direction: column; /* 縦並びにする */
    align-items: center;    /* 子要素を横方向の中央に配置 */
    text-align: center;     /* テキストやインライン要素（ボタン等）を中央揃え */
    width: 100%;
    overflow-x: hidden; /* 画面右側へのはみ出し・不要な余白を完全にシャットアウト */
}

/* -------------------------- */
/* 各エリアへの要素の割り当て */
#page-title {
    background-color: var(--title_color);
    color: white;
    grid-area: title;
    width: 100%;
}

/* --- 1面下部：キャッチコピー ＆ スクロール誘導 --- */
.header-extra {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 1.5rem; */
    margin-top: 2rem;
}

/* 英字キャッチコピー */
.header-copy {
    font-family: var(--oswald-font);
    font-size: 0.9rem;
    letter-spacing: 0.3em; /* 文字間を広げてスマートに見せる */
    color: var(--font);
    opacity: 0.8;
    /* margin-bottom: ; */
}

/* スクロール誘導全体 */
.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.scroll-down span {
    font-family: var(--oswald-font);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    opacity: 0.6;
}
/* SCROLLリンクのリセットと見た目の維持 */
.scroll-down a {
    text-decoration: none; /* 下線を消す */
    color: inherit;        /* 親要素の文字色を継承 */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

/* ホバー時に少し明るく/薄くしてボタンであることをわかりやすく */
.scroll-down a:hover {
    opacity: 0.7;
}

/* 共通の線設定 */
.scroll-line {
    width: 1px;
    height: 35px; /* 線の長さ */
    background-color: var(--scroll_bar);
    opacity: 0.4;
    transform-origin: top;
    
    /* 2秒周期でアニメーションを実行 */
    animation: lineFlow 3s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

/* 上の線：即座に開始 */
.scroll-line.top-line {
    animation-delay: 0s;
}

/* 下の線：上の線が下に到達するタイミングに合わせて発火 */
.scroll-line.bottom-line {
    animation-delay: 0.7s; /* 上の線が通過した後に追従 */
}

/* アニメーション定義：上から下にスーッと伸びて消える */
@keyframes lineFlow {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    45% {
        transform: scaleY(1);
        transform-origin: top;
    }
    45.1% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    90%, 100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

h1 {
    text-align: center;
}
.contents {
    margin-top: 8px;
    padding: 2rem;
}
#schedule-contents {
    padding: 0 2rem;
}

.contents, #index-contents {
    background-color: var(--contents_color);
}
.border_b {
    border-bottom: 2px solid black;
}
/* .border_b:first-child {
    margin-top: 20px;
} */

/* 文字アニメーション -------------*/
.scroll {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

/* ::after : 文字を覆い隠すメインのカーテン */
.scroll::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--font_scroll_after);
    z-index: 2;
    transform: translateX(0); /* 最初は全画面を覆っている */
}

/* ::before : 右から流れてくる短いバー */
.scroll::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px; /* 「短い部分」の幅（お好みで調整） */
    right: -30px; /* 最初は右側の画面外にスタンバイ */
    background: var(--font_scroll_before);
    z-index: 3;
}

/* ::before : 右から流れてきて、左端に到達したあとに右へ抜けていく短いバー */
.scroll.is-animated::before {
    animation: beforeRoundTrip 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* ::after : beforeの動きに合わせて同時に右へ動く（または少し追従する）カーテン */
.scroll.is-animated::after {
    /* beforeが折り返すタイミング、あるいは同時にスタートさせる */
    animation: afterMove 1s cubic-bezier(0.65, 0, 0.35, 1) 1s forwards;
}

/* キーフレームの修正 */
@keyframes beforeRoundTrip {
    0% {
        right: -30px;
        transform: translateX(0);
    }
    50% {
        /* 全体の半分の時間で「右から左端」へ到達 */
        right: 100%;
        transform: translateX(100%);
    }
    100% {
        /* 残りの半分の時間で「左端から右端（外側）」へ抜けていく */
        right: -30px;
        transform: translateX(0);
    }
}

@keyframes afterMove {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 右側にスライドして完全にカーテンを開く */
        transform: translateX(100%);
    }
}
/* ------------------------------- */
/*          footer */
/* ------------------------------- */
footer {
    width: 100%;
    background-color: var(--footercolor);
    margin-top: 8px;
    padding: 40px 0;
    color: #FF0000;
}
/* footer {
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa; 
    color: #666;
    font-size: 0.9rem;
} */

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.copyright {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: white;
    margin: 0;
}

/*  */
.border_dotted {
    max-width: 90%;
    width: 830px;
    border: 1px dotted;
    margin-top: 0;
    margin-bottom: 5px;
    
    /* 1. 標準的なブロック要素での中央揃え */
    margin-left: auto;
    margin-right: auto;

    /* 2. Flexbox親要素内での中央揃え（標準プロパティへ統合） */
    align-self: center;

    /* 3. 要素自体の崩れを防ぐ設定 */
    box-sizing: border-box;
    display: block;
}
/* ナビゲーション
------------------------------- */

.nav_bottom {
    text-align: center;
    padding: 60px 20px 40px;
    max-width: 90vw; /* ナビ幅 */
    margin: 0 auto;    /* 画面中央に配置 */
    width: 100%;
    box-sizing: border-box;
}

.nav_bottom .bar {
    max-width: 100%; /* バーの幅を親要素（.nav_bottom）基準に広げる */
    width: 100%;
    height: auto;
    margin: auto;
    opacity: 0.7;
    display: block;
}

.nav_bottom ul {
    list-style: none;
    margin: 0;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem; /* 項目間の幅を少し広げてバランスを取る */
}

.nav_bottom ul li {
    width: auto;
    text-align: center;
}

/* 最後の項目以外に控えめな区切り（スラッシュ）を挟む場合 */
.nav_bottom ul li:not(:last-child)::after {
    content: '/';
    margin-left: 35px; /* 隙間を揃える */
    color: #797979;       /* 控えめなグレー */
    font-size: 0.8rem;
    font-weight: 300;
}

.nav_bottom ul li a {
    display: inline-block;
    padding: 5px 0;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    position: relative;
    transition: opacity 0.3s ease;
}

/* 洗練された下線のアニメーション */
.nav_bottom ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
}

.nav_bottom ul li a:hover {
    opacity: 0.6;
}

.nav_bottom ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 洗練された下線のアニメーション */
.nav_bottom ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: right;
}

.nav_bottom ul li a:hover {
    opacity: 0.6;
}

.nav_bottom ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.nav_bottom ul .navmask {
    background-color: gray;
}

/* スライドメニュー
-------------------------------- */
        /* 開閉ボタン */
.btn-menu {
    position: fixed;
    right: 1rem;
    top: 1rem;
    z-index: 4;
    padding: .5rem 1rem;
    border: 1px solid var(--black);
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    transition: .4s;
    cursor: pointer;
    opacity: 0.8;
}
.btn-menu svg {
    fill: var(--btn_svg);
    margin-top: .25rem;
    height: 2rem;
    width: 2rem;
}
/* ホバー時のSVGアイコンの色を変える場合 */
.btn-menu:hover svg {
    fill: var(--btn_svg_hover); /* アイコンを白にするなど */
}

/* 閉じるボタン */
#menu-close {
    border: 1px solid var(--btn_c);
}
#menu-close svg {
    fill: var(--btn_c_svg);
}
/* ホバー時の装飾を追加 */
.btn-menu:hover {
    cursor: pointer;
    background-color: var(--btn_hover); 
    opacity: 0.9; /* 少し透明にする場合 */
}

/* 閉じるボタンのホバー時 */
#menu-close:hover {
    background-color: var(--btn_c_hover);
}
#menu-close:hover svg {
    fill: var(--btn_c_svg_hover);
}

/* スライドメニューパネル */
#menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 4;
    padding: 8rem 2rem 2rem 0;
    width: max(10vw, 10rem);
    height: 100vh;
    background-color: var(--menupanel);
    box-shadow: 0 0 1.4rem var(--menushadow);
    font-family: var(--oswald-font);
    translate: 100vw;
}
.menu-list {
    list-style: none;
}
.menu-list li {
    margin: 1.5rem 0;
    opacity: 0;
}
.menu-list a {
    color: var(--menulist_a);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.menu-list a:hover {
    color: var(--menulist_a_hover);
    /* transform: 1000; */
    transform: scale(1.05s);
}


/* インデックス
------------------------------- */
/* --- 1面：ヘッダー全体のレイアウト調整 --- */
#index-header {
    /* 広告用余白ローカル */
    /* padding-top: 100px; */
    /* 広告用余白 */
    padding-top: 20px;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    
    align-items: center;
    padding: 2rem 0;
    box-sizing: border-box;

    position: relative;
    z-index: 1;
}

#index-header img#logoimg {
    /* max-height: 75vh; */
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- 2面：全体レイアウト設定 --- */
#index-contents {
    width: 75vw;             /* 指定通り75vwに調整 */
    margin: 0 auto;          /* 中央寄せ */
    min-height: 80vh;        /* 最低高さを80vhに確保 */
    box-sizing: border-box;
    padding: 20px 0;

    /* CSS Grid によるエリア配置 */
    display: grid;
    grid-template-columns: 1fr 1fr;           /* 左右2列（均等幅） */
    grid-template-rows: auto 1fr 1fr;         /* 1行目:タイトル / 2・3行目:高さ均等分割 */
    grid-template-areas: 
        "title title"   /* 1行目：タイトル */
        "item1 item2"   /* 2行目：左(EVENT) 右(NEWS) */
        "item3 item3";  /* 3行目：左(PROFILE) 右(空枠) */
    gap: 20px;
}
/* profile */
#profile img {
    padding-top: 20px;
}
#profile p {
    font-size: 0.9rem;
}
/* news */
.display_grid {
    display: grid;
    margin-top: 10px;
}
#content_news {
    min-height: 250px; /* 他のセクションとバランスが取れる最低限の高さを指定 */
    /* display: flex; */   /* 内側でgridを設定 */
    flex-direction: column;
    justify-content: space-between; 
}
#content_news p {
    overflow-wrap: break-word;
    /* text-align: left; */
    /* margin-left: 5rem; */
    text-align: left;        /* テキスト自体は左揃え */
    width: 85%;              /* 幅の割合を指定 */
    max-width: 600px;        /* 広がりすぎない最大幅を設定（お好みで調整可） */
    margin-left: auto;       /* 左右自動余白でブロック自体を中央配置 */
    margin-right: auto;
    margin-top: 0.5rem;      /* 上下の余白（適宜調整してください） */
    margin-bottom: 0.5rem;
}
#content_news hr {
    width: 85%;
}
.content_link p{
    display: contents;
    /* align-items: center; */
}
h3.title_sub{
    padding: 1rem;
    margin: 0;
    background-color: var(--index_title_sub);
    opacity: 0.7;
}

#index-contents > section:nth-of-type(2) { grid-area: item1; }
#index-contents > section:nth-of-type(3) { grid-area: item2; }
#index-contents > section:nth-of-type(4) { grid-area: item3; }
#index-contents > section:nth-of-type(5) { grid-area: item4; }

/* 2面内の各ブロック調整 */
.grid-item {
    background-color: rgba(255, 255, 255, 0.05); /* うっすら背景 */
    padding: 15px;
    margin: 0;                /* 余計な左右マージンを解除して75vw内に綺麗に収める */
    box-sizing: border-box;
    overflow: hidden;
}
/* スライドショー 
---------------------------------*/
  /* 
   * 背景色の透過設定（rgba）
   * rgba(赤, 緑, 青, 不透明度)
   * 最後の数値（0.0 〜 1.0）で透明度を調整します
   */
        /* 黒ベースで薄く透過する場合（シック・ダーク調）
        background-color: rgba(0, 0, 0, 0.3); （30%の濃さの黒）

        白ベースで薄く透過する場合（明るいサイト向け）
        background-color: rgba(255, 255, 255, 0.5); （50%の濃さの白）

        グレーベースで透過する場合
        background-color: rgba(30, 30, 30, 0.5); （50%の暗いグレー） */
    /* background-color: rgba(0, 0, 0, 0.4); 黒の40%不透明（60%透過） */

.slideshow-container {
    position: relative;
    max-height: 90%;
    height: 90%;
    width: 80%;
    max-width: 80%;
    margin: 0 auto; /* 全体の中央寄せ */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素（.slide）を中央寄せ */
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%; /* 幅を100%にして左右のズレを防止 */
    height: auto;
    margin: 0 auto; /* 中央寄せ */
    background-color: rgba(231, 231, 231, 0.5); 
    box-sizing: border-box;
}

.slideshow-container .slide img,
.slide img {
    width: 100%;
    height: 500px;
    min-height: 400px;
    max-height: 50vh;
    object-fit: contain;
    object-position: center; /* 画像を中央配置 */
    display: block;
    margin: 0 auto; /* 画像単体でも中央寄せ */
}

.slide iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2; /*矢印を最前面に表示*/
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.fade {
    animation: fadeEffect 1.5s;
}

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* ==========================================
   SCHEDULEページ専用レイアウト調整
   ========================================== */

/* headerロゴ */
.schedule-header {
  width: 100%;
  min-height: 240px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  box-sizing: border-box;
  padding: 30px 5%;
}

/* SCHEDULE と左右のライン */
.schedule-title-row {
    width: 100%;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100vw;
    gap: 5%;
    background-color: var(--title_main_bg);
}

.schedule-title-row h1 {
    padding: 0.7rem;
    margin: 0;

    /* color: #405a75; */
    color: var(--content_title_font);

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    font-size: clamp(38px, 5vw, 82px);
    font-weight: 300;
    letter-spacing: 0.14em;
    line-height: 1;
    white-space: nowrap;
}

/* 左右の横線 */
.schedule-line {
  flex: 1;
  height: 1px;
  background: #405a75;
  opacity: 0.9;
}

/* スケジュール各項目のコンテナ */
.contents .form_all {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 3rem;
}

/* スケジュール内のテキストや画像が中央揃えで綺麗に収まるようにする */
.contents .form_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.form_body .files {
    text-align: center; 
    margin: 15px 0;
}
.form_body .files img {
    max-width: 90%;
    max-height: 90vh;
    height: 100%;
}
.form_body p, .form_body h4 {
    margin-left: 2rem;
    margin-right: 2rem;
}
.schedule-header .scroll-line.top-line {
    margin-top: 50px;
}


/* PHP
--------------------------------*/
#ymd {
    text-align: right;
    margin-right: 2rem;
}

 /* 編集フォーム
------------------------------- */
.form_top {
    text-align: center;
    background-color: var(--title_sub);
    overflow: hidden;
    opacity: 0.8;
    margin: 1.5rem -2rem 1rem;
}
.form_body {
    display: flex;
    flex-direction: column; /* 縦並びにする */
    align-items: center;    /* 子要素を横方向の中央に配置 */
    text-align: center;     /* テキストやインライン要素（ボタン等）を中央揃え */
}

/* フォーム内のブロック要素の幅を整え、中央に寄せる */
.form_body > div,
.form_body textarea {
    width: 100%;           /* 親要素の幅いっぱいに広げる */
    max-width: 500px;      /* 広がりすぎないように最大幅を指定（数値はお好みで調整） */
    margin-left: auto;
    margin-right: auto;
}

/* テキストエリアの見た目を調整（中央揃え時に崩れないようにする） */
.form_body textarea {
    display: block;
    box-sizing: border-box; /* パディング等を含めたサイズ計算にする */
    margin-top: 5px;
    margin-bottom: 15px;
}
/* 送信ボタンの余白とスタイルの調整 */
.form_body input[type="submit"],
.form_body input[type="button"] {
    width: auto;
    cursor: pointer;
}
.btn_group {
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/*  テキストのエリア幅*/
.form_body p input[type="text"] {
    width: 80px;
}
.form_body .highlight {
    border-bottom: 2px solid rgb(194, 194, 194);
    padding: 0.1rem 0.5rem;
    margin-right: 0.2rem;
}
.highlight_hidden {
        background-color: rgb(183, 183, 255);
}
/*  */
textarea {
    height: 8rem;
    min-height: 36px;
    min-width: 108px;
}
#pdate {
    width: 80px;
}

/* チェック
------------------------------- */
.caution {
    color: white;
    background-color: #000000;
    width: 15rem;
}

/* ==========================================
   MEDIAページ専用レイアウト拡大調整（!importantなし）
   ========================================== */

/* コンテンツ全体の領域を広げる */
#media_contents {
    width: 85vw;
    max-width: 840px;
    height: auto;
    min-height: 85vh;
    margin: 0 auto;
    box-sizing: border-box;
}

/* YouTubeスライドショーのコンテナを拡大 */
#media_contents .youtube_slide {
    width: 100%;
}

#media_contents .slideshow-container {
    width: 70%;
    max-width: 70%;
    height: auto;
    max-height: none;
}

/* スライドおよびYouTubeプレイヤーの大きさを拡大 */
#media_contents .slide {
    width: 90%;
}

#media_contents .slide iframe,
#media_contents .slide div[id^="player"] {
    width: 100%;
    height: 500px;
    min-height: 450px;
}

/* images
------------------------------- */
.img_l {
    width: 640px;
    height: 480px;
    margin: 2px 2px;
    padding: 2px 3px;
    object-fit: contain;
    overflow: hidden;
}
.img_m {
    width: 480px;
    height: 360px;
    margin: 2px 2px;
    padding: 2px 3px;
    object-fit: contain;
    overflow: hidden;
}
.img_s {
    width: 320px;
    height: 240px;
    margin: 2px 2px;
    padding: 2px 3px;
    object-fit: contain;
    overflow: hidden;
}
.img_l, .img_m, .img_s {
    max-width: 90%;  
    height: auto;     /* 比率を維持 */
    margin: 4px 0 1px 0;
    padding: 2px 3px;
    object-fit: contain;
    box-sizing: border-box;
}

/* ==========================================
   SNSアイコンのスタイル
   ========================================== */
.sns-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* アイコン同士の間隔 */
    margin: 20px 0;
}

.sns-icon-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background-color: #333; /* 背景色（丸型） */
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.sns-icon-link svg {
    width: 20px;
    height: 20px;
    fill: #ffffff; /* アイコンの色（白） */
}

/* ホバー時のアクション */
.sns-icon-link:hover {
    transform: translateY(-3px);
}

/* 各SNSごとのブランドカラー（ホバー時） */
.sns-icon-link.youtube:hover { background-color: #FF0000; }
.sns-icon-link.tiktok:hover { background-color: #000000; }
.sns-icon-link.twitter:hover { background-color: #000000; } /* Xの黒色、または #1DA1F2 など */


/* test
------------------------------- */
#heading {
    color: #fff;
    display: inline-block;     
    /* background-image: linear-gradient(90deg, #0bd, #0bd 50%, #fff 50%, #fff); */
    background-image: linear-gradient(90deg, #fff, #fff 50%, #0bd 50%, #0bd);
    background-size: 200% 100%;
    padding: .5rem 1rem;
}

/* ==========================================
   レスポンシブ対応（画面幅768px以下の場合）
   ========================================== */
@media (max-width: 768px) {
    .contents {
        margin: 0 auto;
    }
    /* ヘッダー全体の上下パディングを詰める */
    header {
        padding: 1rem 0 !important;
        min-height: auto; /* スマホでは必要以上に高さを強制しない場合 */
    }

    /* ヘッダー内の要素（キャッチコピー等）の上の余白を詰める */
    .header-extra {
        margin-top: 1rem;
    }
    
    #index-contents {
        min-width: 100%;
        min-height: auto;
        /* ↓ここから：強制的に1列（縦並び）にする指定 */
        display: flex;
        flex-direction: column;
        gap: 20px; /* 要素間の余白（お好みで調整してください） */
    }

    /* PC版でGridや横幅指定が残っていた場合のリセット */
    #index-contents > section,
    #index-contents > div,
    .grid-item {
        width: 100% !important;
        box-sizing: border-box;
    }

/* ナビメニュー@media
------------------------------------ */
    .nav_bottom {
        max-width: 100%; /* スマホでは画面幅いっぱいにする */
        padding: 40px 20px 20px;
    }
    .nav_bottom ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav_bottom ul li {
        width: 100%;
    }
    .nav_bottom ul li:not(:last-child)::after {
        display: none;
    }
/* インデックス
----------------------------------- */
    #profile {
        max-height: auto;
        height: auto;
        min-height: auto;
        margin-bottom: -30px; /* 引き上げたい分だけマイナスの値を指定 */
    }
    #profile p {
        font-size: smaller;
    }
    #content_news p {
        font-size: smaller;
    }
    .grid-item {
        padding: 5px;
    }

/* スケジュール */
    .form_body .files img {
    max-width: 90vw;
    }
    .form_top {
        margin: 1.5rem 0 1rem;
    }
    #schedule-contents {
        padding: 0;
    }

/* メディア */
    #media_contents {
        width: 95vw;
    }
    
    #media_contents .slide iframe,
    #media_contents .slide div[id^="player"] {
        height: 300px;
        min-height: 250px;
    }

}
