@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap');

html {
    scroll-behavior: smooth;
}

body,html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
}

.centered-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 0; /* 必要に応じて調整 */
}

.text {
    font-size: 60px; /* 'Summer Workshop 2024'のフォントサイズ */
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.5);
    text-shadow: 2px 2px 2px #024a97; /* 文字の縁取りを追加 */
    color: #fff;
    display: inline-block; /* 中央寄せに必要 */
    padding: 20px; /* 背景との間隔 */
}

.small-text {
    font-size: 20px; /* より小さいフォントサイズ */
    display: block; /* 改行されて表示 */
}

.full-screen-image {
    position: fixed;  /* 画像を固定位置に設定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 500px;  /* 画像の高さを指定 */
    z-index: -1;  /* 他の内容より背面に表示 */
    overflow: hidden;  /* 画像のはみ出しを非表示 */
}

.full-screen-image img {
    position: fixed;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* ヘッダーの基本スタイル */
#topheader {
    position: fixed;
    top: -100px;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: #007BFF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: top 0.3s ease; /* トップ位置の変更を滑らかに */
}

#topheader nav ul {
    position: relative;
    list-style: none;
    display: flex;
    margin-right: 20px;
    padding: 0;
    justify-content: flex-end; /* 右寄せにする */
}


#topheader nav ul li a {
    text-decoration: none;
    color: #007BFF;
    padding: 5px 10px;
    font-size: 14px; /* 文字サイズを大きくする */
}

/* ナビゲーションリンクのホバー状態 */
#topheader nav ul li a:hover {
    color: #6390bf; 
}


#topheader.active {
    border-bottom: 2px solid #007BFF; /* Example: Adds a blue underline */
}

#topheader.show {
    display: flex;
    top: 0;
}

#indicator {
    height: 4px; 
    background-color: #007BFF; 
    width: 0; position: absolute; 
    bottom: 0; 
    transition: all 0.3s ease;
    border-radius: 10px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;  /* 最初は見えない */
    opacity: 0;  /* 完全に透明 */
    transition: visibility 0s, opacity 1s ease-in-out;  /* visibilityが変わるタイミングは即時、opacityは1秒かけて変化 */
}

.page-section, footer {
    box-sizing: border-box;
}

.page-section{
    position: relative;
    max-width: 100%;
    background-color: #fff;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
}

.other-section {
    position: relative;
    width: 100%;
    background-color: #fff;
    margin-top: 100px;
    z-index: 1;
}

section {
    margin: 2em 0;
    position: relative;
    padding: 0.5em 1.5em;
    border-top: solid 2px black;
    border-bottom: solid 2px black;
    width: 80%;
    margin: 20px auto; /* 以前の中央揃えの設定を維持 */
    background-color: #fff; /* 背景色は白 */
    /* 枠線に影をつけるなどの追加スタイル */
}

section:before, section:after {
    content: '';
    position: absolute;
    top: -10px;
    width: 2px;
    height: calc(100% + 20px); /* 縦の長さを計算 */
    background-color: black;
}

section:before {left: 10px;}
section:after {right: 10px;}

section p {
    margin: 0; 
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: black;
}

/* セクション内の見出しh2のスタイル */
h2 {
    color: #007BFF;  /* 青色基調 */
    margin: 0px 5px 20px; /* 見出し下のマージン */
}

h3 {
    color: #033f7f;  /* 青色基調 */
    text-decoration: underline;
}

/* ヘッダーのスタイル */
header {
    position: fixed; /* 位置を固定 */
    top: 0; /* 画面の上端に配置 */
    left: 0; /* 画面の左端から配置 */
    width: 100%; /* 幅を画面全体に拡張 */
    background-color: #fff; /* 背景色 */
    color: #007BFF; /* テキスト色 */
    z-index: 1000; /* 他の要素より手前に表示 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 影を付ける */
    padding: 3px 0px 3px 20px; /* 上下のパディング */
    font-size: 10px; /* フォントサイズ */
}


footer {
    position: relative;
    z-index: 2;  /* テキストより上に表示 */
    background-color: #fff;  /* 背景色は白 */
    padding: 10px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;  /* 画像のアスペクト比を保つ */
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

/*モバイル端末向けのスタイル*/
@media (max-width: 768px) {
    .text {
        font-size: 40px; /* フォントサイズを小さく */
    }

    .small-text {
        font-size: 16px; /* フォントサイズを小さく */
    }

    .full-screen-image img {
        height: auto; /* 画像の高さを自動調整 */
        max-height: 1477px; /* 画像の最大高さを指定 */
    }

    #topheader {
        top: -100px; /* ヘッダーを表示 */
        font-size: 8px;
    }

    section {
        padding: 1em; 
        margin: 1.5em auto;
        width: auto;
        box-sizing: border-box;
    }

    table {
        font-size: 14px;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001; /* メニューと他の要素との重なり順序を調整 */
        margin-right: 25px;
    }
    
    .hamburger-menu .bar {
        height: 3px;
        width: 100%;
        background-color: #007BFF;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    /* ナビゲーションメニュー全体のスタイル */
    nav {
        display: none;
        position: fixed;
        top: 60px; /* ヘッダーの高さに応じて調整 */
        right: 0;
        background-color: #fff;
        padding: 0;
        margin: 0;
        width: 250px;
        height: 100%;
        z-index: 100; /* 他の要素の上に表示 */
    }

    /* メニュー表示時 */
    nav.show {
        display: block; /* メニュー表示時 */
    }

    /* ナビゲーションリストのスタイル */
    nav ul {
        display: flex;
        flex-direction: column; /* 要素を縦に配置 */
        padding: 0;
        margin: 0;
        width: 100%;
    }

    /* ナビゲーションリンクのスタイル */
    nav ul li {
        text-align: center; /* ナビゲーションリンクを中央揃え */
    }

    nav ul li a {
        display: block; /* リンクをブロック要素として表示 */
        padding: 10px; /* タッチ操作を考慮したパディング */
        border-bottom: 1px solid #ccc; /* リンク間に境界線を追加 */
    }

    #indicator {
        display: none; /* メニュー非表示時 */
    }
}