  /* 共通部分 */
  p{
    margin-left: 50px;
    margin-right: 50px;
    line-height: 2.0;
  }

  /* 使ってない */
  /* .body {
    font-family: sans-serif;
    background: #f9f9f9;
    color: hsl(0, 0%, 20%);
    margin: 2rem;
  } */

  .main {
    margin-left: 8rem;
    margin-right: 8rem;
    margin-bottom: 4rem;
  }


  .form{
    text-align: center;
    max-width: 100%;
    max-height: 100%;
  }

  /* 見出し */
  h2 {
    border-top: 3px solid #00a0d2;       /* 上の青線 */
    border-bottom: 2px solid rgba(0,0,0,0.2); /* 下の半透明な灰色線 */
    padding: 0.5em 0; /* 線と文字の余白 */
  }

  /* ヘッダー */
  /* ロゴの部分 */
  .header{
    margin-top: 0rem;
    margin-bottom: 0rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #cfefff;
  }
  .header a:link{
    text-decoration: none;
  }
  .header a:visited{
    text-decoration: none;
  }
  .header a:hover{
    text-decoration: underline;
  }
  .header a:active{
    text-decoration: underline;
  }
  .header h1{
    font-size: 40px;
    color: black;
  }

  /* メニューの部分 */
  .select_header ul{
    font-size: 20px;
    text-decoration: none;
    list-style-type: none;
    display: flex;
    justify-content: center;
    background-color: rgb(244, 243, 243);
    margin-top:0px;
  }
  .select_header a{
    color: black;
    display: block;
    padding: 30px;
  }
  .select_header a:link{
    text-decoration: none;
  }
  .select_header a:visited{
    text-decoration: none;
  }
  .select_header a:hover{
    text-decoration: underline;
  }
  .select_header a:active{
    text-decoration: underline;
  }


  /* フッター */
  /* Copyrightの部分 */
  .footer{
    text-align: center;
    background-color: #008cd2;
    color: #f9f9f9;
  }
  /* メニューの部分 */
  .footer_select ul{
    font-size: 16px;
    text-decoration: none;
    list-style-type: none;
    display: flex;
    justify-content: center;
  }
  .footer_select a{
    color: #f9f9f9;
    display: block;
    padding: 10px;
  }
  .footer_select a:link{
    text-decoration: none;
  }
  .footer_select a:visited{
    text-decoration: none;
  }
  .footer_select a:hover{
    text-decoration: underline;
  }
  .footer_select a:active{
    text-decoration: underline;
  }

  /* 右に文章、左に写真 */
  .rightsentence_leftpicture{
    display: flex;         
    align-items: center; 
    gap: 20px;            
    list-style: none;      
    padding: 0;
    margin-bottom: 40px;
  }
  .rightsentence_leftpicture li{
    flex: 1;    
  }
  .rightsentence_leftpicture p{
    text-align: center;
    margin-left: 0px;
    margin-right: 0px;
  }

  /* 画像側の li は幅を固定したい場合 */
  .rightsentence_leftpicture li:has(img) {
    flex: 0 0 auto;        /* 画像の li は広がらないように固定 */
  }

  .rightsentence_leftpicture img {
    display: block;
    max-width: 100%;       /* スマホ対応：はみ出さないように */
    height: auto;          /* 比率を維持 */
  }

  /* 行事詳細・関係団体の詳細 */
  .details{
    line-height: 3.0;
    font-size: 16px;
  }

  /* ホーム */

  /* 作成中のやつ */
  .underconstruction{
    text-align: center;
  }


  /* 背景の写真 */
  .background_pic{
    padding-top: 150px;
    padding-bottom: 150px;
    background-image: url();
    background-repeat: no-repeat;
    background-size: 100% 140%;
    background-position: center;
    color: #f9f9f9;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 1px 1px 0 #000;
    text-align: center;
  }
  .background_pic h1{
    color: #f9f9f9;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 1px 1px 0 #000;
  }
  .video-container {
  width: 100%;           /* 横幅を親要素いっぱいに広げる */
  max-width: 800px;      /* 大きくなりすぎないよう制限（お好みで） */
  margin: 0 auto;        /* 中央寄せ */
}
.video-container iframe {
  width: 100%;           /* コンテナの幅に合わせる */
  aspect-ratio: 16 / 9;  /* 横平比を16:9に固定 */
  height: auto;          /* 高さは自動計算 */
}

.kaicho {
  width: 250px;
  object-fit: cover;
  object-position: center top;
}

.kaicho-aisatsu p{
    text-align: left;
}

.kaicho-name p{
    text-align: right;
}

  /* 活動内容 */
  .activity-details_bg{
    padding-top: 150px;
    padding-bottom: 150px;
    background-image: url(../bbs-osakapref_files/activity-details_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0px -675px;
    color: #f9f9f9;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 1px 1px 0 #000;
    text-align: center;
  }

/* BBS会の歴史 */
  .history_bg{
    padding-top: 150px;
    padding-bottom: 150px;
    background-image: url(../bbs-osakapref_files/history_bg.jpg);
    /* background-repeat: no-repeat; */
    background-size: 50% 100%;
    background-position: center;
    color: #f9f9f9;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 1px 1px 0 #000;
    text-align: center;
  }
  
  
/* 各地区BBS会 */
  .district_bg{
    padding-top: 150px;
    padding-bottom: 150px;
    background-image: url(../bbs-osakapref_files/district_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #f9f9f9;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 1px 1px 0 #000;
    text-align: center;
  }

  /* 各地区BBS会の地図 */
  /* 地図の大きさ */
  .map{
    height: 600px;
    width: 100%; 
  } 
  /* 丸印を押すと…（以下略） */
  .mapCenterText{
    text-align: center;
  }
  /* 大阪BBS連盟の見出し：赤 */
  .headingMapOsaka {
    border-top: 3px solid red;       /* 上の青線 */
    border-bottom: 2px solid rgba(0,0,0,0.2); /* 下の半透明な灰色線 */
    padding: 0.5em 0; /* 線と文字の余白 */
    margin: 1rem;
  }
  /* 各地区BBS会の見出し：橙 */
  .headingMap {
    border-top: 3px solid #d56700;       /* 上の青線 */
    border-bottom: 2px solid rgba(0,0,0,0.2); /* 下の半透明な灰色線 */
    padding: 0.5em 0; /* 線と文字の余白 */
    margin: 1rem;
  }
  /* 各地区BBS会の内容 */
  .mapText{
    padding: 1rem;
    text-align: left;
  }


  /*お知らせ*/
  .ad{
  max-width: 100%; 
  height: auto; 
  display: block;  
  margin: 0 auto;  
  }

  /* 関係団体 */
  .related-organizations_bg{
    padding-top: 150px;
    padding-bottom: 150px;
    background-image: url(../bbs-osakapref_files/related-organizations_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #f9f9f9;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 1px 1px 0 #000;
    text-align: center;
  }

  /* 会員募集 */
  .recruitment-of-members_bg{
    padding-top: 150px;
    padding-bottom: 150px;
    background-image: url(../bbs-osakapref_files/recruitment-of-members_bg.jpg);
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
    color: #f9f9f9;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 1px 1px 0 #000;
    text-align: center;
  }

  /* お問い合わせ */
  .contact_bg{
    padding-top: 150px;
    padding-bottom: 150px;
    background-image: url(../bbs-osakapref_files/contact_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #f9f9f9;
    text-shadow: 0 0 5px rgba(0,0,0,0.8), 1px 1px 0 #000;
    text-align: center;
  }

    
