/* Google Fontsを使用 */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700&display=swap');

html {
    overflow-y: scroll; /* 常に縦スクロールバーを表示 */
}

/* ベーススタイル */
body {
    font-family: 'Zen Maru Gothic', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f8fc;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1565c0;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;              /* 横並びにする */
    justify-content: space-between; /* 子要素を両端に配置 */
    align-items: center;        /* 垂直方向を中央揃え */
    width: 100%;                /* 親要素を画面幅いっぱいに広げる */
    padding: 0 20px;            /* 左右に余白をつける */
    box-sizing: border-box;     /* パディングを含めた幅を計算 */
/*
    max-width: 1500px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
*/
}

header h1 {
    font-size: 1.5em;
    margin: 0;
    flex-shrink: 0;
    letter-spacing: 0.1em;
}
header h1 a {
    text-decoration: none;
    color: #fff;
}

/* ナビゲーション */
nav {
    display: flex; /* PCのときはデフォルトで表示 */ /* 横並びにする */
    justify-content: flex-end;  /* 右寄せにする */
    gap: 15px;                  /* 各リンク間のスペース */
    margin-right: 20px;         /* 右端との余白 */
    /* flex-wrap: wrap; */
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease;
}


nav a.active {
    background-color: #004ba0;
    border-radius: 5px;
    }


nav a:hover {
    background-color: #78c8f0;
    border-radius: 5px;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none; /* 初期状態では表示しない */
    flex-direction: column;
    cursor: pointer;
    margin-right: 35px; /* アイコンの右端位置を調整 */
}

.menu-toggle div {
    background-color: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: all 0.3s;
}

/* レスポンシブ対応 */
@media (max-width: 971px) {
    /* ナビゲーションメニューを非表示に */
    nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #1565c0;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    /* メニューを表示 */
    nav.active {
        display: flex;
    }

    /* ハンバーガーアイコンを表示 */
    .menu-toggle {
        display: flex;
    }
}

/* オーバーレイ（背景をタップすると閉じる） */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

.main-visual {
    margin-top: 70px;
    height: 300px;
    background: linear-gradient(135deg, #9fc5e8, #6fa8dc);
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.main-visual h1 {
    font-size: 2.5rem;
    z-index: 1;
}

.grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.1) 0,
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px,
        transparent 20px
    ),
    repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0,
        rgba(255, 255, 255, 0.1) 1px,
        transparent 1px,
        transparent 20px
    );
    animation: slide 20s linear infinite;
}

@keyframes slide {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-50%, -50%);
    }
}

/*
.main-visual {
    margin-top: 70px;
    background-color: #bbdefb;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-visual img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
*/

/* コンテンツ部分 */
.content {
    padding: 40px 20px;
    background-color: white;
    max-width: 1200px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content h2 {
    color: #1565c0;
    margin-bottom: 20px;
}

.content h3 {
    padding: 10px 15px; /* タイトル部分の内側余白 */
    margin: 30px 0 15px; /* 上下の余白を調整 */
    font-size: 1.2em; /* タイトルサイズ */
    background: linear-gradient(to right, #e6f7ff, #f2f9ff); /* 背景にグラデーション */
/*    border-left: 5px solid #007BFF; 左端に色付きの線 */
    border-radius: 5px; /* 少し角を丸くする */
    color: #333; /* テキスト色 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 影を付けて立体感を追加 */
}

.update-list {
    list-style: none;
    padding: 0;
}

.update-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.update-list li:last-child {
    border-bottom: none;
}

/* 表形式のスタイル */
.member-table {
    width: 95%; /* 表を全幅に表示 */
    border-collapse: collapse; /* 枠線をまとめる */
    margin: 20px 0; /* 上下の余白 */
    font-size: 0.9rem;
    table-layout: fixed;
}

.member-table th, .member-table td {
    border: 1px solid #ddd; /* 枠線 */
    padding: 10px; /* 内側の余白 */
    text-align: left; /* 左揃え */
}

.member-table th {
    background-color: #f4f4f4; /* ヘッダー部分の背景色 */
    font-weight: bold;
    text-align: center; /* 左揃え */
}

.name-column {
     width: 70px;
}


.mail-column {
     width: 180px;
}

/* スマホ用にカード形式へ切り替え */
@media screen and (max-width: 768px) {
    .member-table {
        display: block;
        width: 100%;
        overflow-x: auto; /* 横スクロールを許容 */
    }
}



div.workshoplist a{
  position: relative;
  display: inline-block;
  transition: .3s;
  color: #000000;
  text-decoration: none
}

div.workshoplist a::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  content: '';
  width: 0;
  height: 2px;
  background-color: #31aae2;
  transition: .3s;
  transform: translateX(-50%);
  color: #000000;
}

div.workshoplist a:hover::after{
  width: 100%;
}

/* フッター */
footer {
    background-color: #1565c0;
    text-align: center;
    padding: 10px 0;
    color: #fff;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

/* カードのデザイン */
.news-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    background-color: #fafafa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.card p.date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: -35px;
  text-align: right;
}

.card a {
    font-size: 1em;
    color: #007BFF;
    text-decoration: none;
}

.card a:hover {
    text-decoration: underline;
}

/* トップページの更新情報セクション */
.news-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card .card {
    width: 97%;
    padding: 15px;
}
