/* 基本設定 */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: #555;
    line-height: 1.6;
}

/* 背景設定 */
.home-bg {
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('toppage.png');
    background-size: cover;
    background-attachment: fixed;
    display: flex; /* 中央揃え用 */
    flex-direction: column;
    min-height: 100vh;
}
.wall-bg {
    background: url('wall.png');
    background-color: #fdfaf5;
}

/* ヘッダー・ナビ（全ページ共通） */
header {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #ffedab;
}

/* ヘッダーの中身を横並びにする設定 */
.header-container {
    display: flex;
    justify-content: center; /* 中央寄せ */
    align-items: center;
    position: relative; /* QRコードの配置基準 */
    max-width: 1000px;
    margin: 0 auto;
}


/* ロゴサイズを全ページで統一 */
.main-logo { 
    max-width: 250px; 
/*    height: auto; */
}

/* QRコードボックスの設定 */
.qr-box {
    position: absolute;
    right: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ffedab;
}

.qr-box img {
    width: 60px; /* QRコードのサイズ */
    height: 60px;
    display: block;
    margin: 0 auto;
}

.qr-box span {
    font-size: 0.65rem;
    color: #888;
    display: block;
    margin-top: 2px;
}

/* スマホ閲覧時はQRコードを隠す（スマホでスマホ用QRを見る必要はないため） */
@media (max-width: 600px) {
    .qr-box {
        display: none;
    }
}


nav ul { list-style: none; padding: 0; display: flex; justify-content: center; gap: 20px; margin-top: 15px; }
nav a { text-decoration: none; color: #666; font-weight: bold; padding: 8px 18px; border-radius: 20px; transition: 0.3s; }
nav a:hover, nav a.active { background: #ffedab; color: #d35400; }

/* メインコンテンツの中央揃え（トップページ用） */
.content-box {
    text-align: center; /* 文字を中央に */
    padding: 50px 20px;
    max-width: 800px;
    margin: auto;
}

/* カテゴリーメニュー（ページ上部の5つ並び） */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    margin: 20px auto;
    max-width: 900px;
}
.nav-item { text-align: center; width: 100px; }
.nav-item img { width: 60px; border-radius: 12px; border: 2px solid #eee; transition: 0.3s; }
.nav-item img:hover { transform: scale(1.1); border-color: #ffedab; }
.nav-item span { display: block; font-size: 0.75rem; margin-top: 5px; color: #666; font-weight: bold; }

/* 動画セクション */
.video-section { padding: 40px 20px; max-width: 1000px; margin: auto; }
/* タイトル横の絵：少しだけ大きく（70px）に調整 */
.section-icon { width: 70px; vertical-align: middle; margin-right: 15px; border-radius: 10px; }

/* h2見出しの中身を横に広げる */
h2 {
    display: flex;
    justify-content: space-between; /* 左右に振り分け */
    align-items: flex-end; /* 下揃え */
    border-bottom: 2px dashed #ffedab;
    padding-bottom: 10px;
    margin-top: 60px;
}
.h2-main {
    display: flex;
    align-items: center;
}

/* 「メニューへ戻る」ボタンのデザイン */
.back-to-top {
    font-size: 0.8rem;
    color: #d35400;
    text-decoration: none;
    background: #ffedab;
    padding: 4px 12px;
    border-radius: 15px;
    margin-bottom: 5px; /* 点線との隙間 */
    transition: 0.3s;
}

.back-to-top:hover {
    background: #ffd900;
    transform: translateY(-2px); /* 少し浮く演出 */
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 450px));
    gap: 30px;
    margin-top: 20px;
    justify-content: center; /* 動画カードを中央に寄せる */
}
.video-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #ffeeba;
    /* カード自体の最大幅を固定することで、巨大化を防ぎます */
    max-width: 450px; 
    width: 100%;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 15px;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 12px;
}
.slide-link {
    display: inline-block;
    background: #fff9e6;
    color: #d35400;
    padding: 6px 16px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ffedab;
}

.slide-nolink {
    display: inline-block;
    background: #f0f8ff;
    color: #b0c4de;
    padding: 6px 16px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #778899;
}

/* メンバーリスト：PCでも縦に並ぶように固定 */
.member-grid {
    display: grid;
    /* 最小幅300pxを維持しつつ、最大で2列(1fr 1fr)並ぶように設定 */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    max-width: 900px; /* 横に広がりすぎないよう制限 */
    margin: 30px auto;
}

.member-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid #ffedab;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);

    /* カードが横に広がりすぎないように調整 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.member-name { font-size: 1.2rem; font-weight: bold; color: #333; margin-bottom: 5px; }
.member-info { font-size: 0.9rem; margin-bottom: 10px; }
.member-link { color: #0288d1; text-decoration: none; font-size: 0.85rem; }
.member-link:hover { text-decoration: underline; }

/* スマホ対応 */
@media (max-width: 600px) {
    .section-icon { width: 60px; }
    .nav-item { width: 28%; }
    h1 { font-size: 1.5rem; }
    .back-to-top {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* フッター（コピーライト）の設定 */
.site-footer {
    text-align: center;      /* 中央揃え */
    padding: 40px 0 20px;    /* 上に40pxの余白 */
    font-size: 0.85rem;      /* 少し控えめなサイズ */
    color: #888;             /* 柔らかいグレー */
    width: 100%;             /* 横幅いっぱい使って中央を出す */
    clear: both;             /* 回り込みを解除 */
}


