body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
  }
  
  /* メニューのスタイル */
  .menu {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態では画面の外 */
    width: 300px;
    height: 100%;
    background-color: #fafad2;
    color: #333;
    transition: right 0.3s ease; /* スライドインのアニメーション */
    padding: 20px;
    box-sizing: border-box;
    z-index: 20;
  }
  
  /* メニューが開いているとき */
  .menu.open {
    right: 0;
  }
  
  /* ボタンのスタイル */
  .hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    cursor: pointer;
    z-index: 20;
  }
  
  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #333;
    margin: 5px 0;
    transition: 0.4s;
  }
  
  /* バツ印に変化するスタイル */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* メニューリストのスタイル */
  .menu ul {
    list-style-type: none;
    padding: 0;
    margin-top: 55px;
  }
  
  .menu li {
    padding: 15px 0;
    border-bottom: 1px solid #444;
  }
  
  .menu li a {
    color: #333;
    text-decoration: none;
    display: block;
  }

  

  /* 帯上北海道科学大学 */
.img1 {
  width: 140px;
  height: 70px;
  position: absolute;
  padding-left: 10px;
  margin-top: -3px;
  z-index: 10;
  top: 0; /* 画像の位置を調整 */
  left: 0; /* 画像の位置を調整 */
}

/*稲峰祭*/
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 15; /* 他のコンテンツの上に表示されるようにする */
}

 /*上面帯*/
 .highlight {
    height: 200px; /* 要素全体の高さ */
    background: linear-gradient(to bottom, #d98bb1 70px, rgba(255, 0, 0, 0) 50px);
    /* 赤色pxまで、その後透明になる */
    position: fixed; /* 固定位置指定 */
  top: 0px; /* header の高さ分をオフセット */
  width: 100%;
  z-index: 5;
  }

  /*スライド画像*/
  .slide-container {
    width: 100%;
    margin: 50px auto;
    margin-top: 70px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    overflow: hidden;
   }

   /*秒指定*/
   .slide-wrapper {
    display: flex;
    animation: slide-flow 45s infinite linear 1s both;
   }
   .slide{
    width: 300px;
    object-fit:cover;
    border: 1px solid #ddd;
   }
   @keyframes slide-flow {
    0% {transform: translateX(0);}
    100% {transform: translateX(-100%);}
   }

   /*TOPIC*/
   h1{
    font-size: 30px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
   }
   /*更新情報*/
   h2{
    font-size: 15px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
   }
   /*間線*/
   hr {
    border: none;
    border-top: 1px solid black;
    width: 50%;
    margin: 10px auto;
}
   /*最初の文字のデザイン*/
   h1:first-letter {
    font-size: 1.5em;
    font-weight: bold;
    color: #d98bb1;
  }

  /*更新情報のボックス*/
   /*更新情報のボックス*/
.box-scroll {
  width:90%;
  max-width: 330px; 
  margin:10px auto 40px;
  height:200px;             /* 高さを固定 */
  overflow-y: auto;          /* 縦スクロールを有効化 */
  padding:20px;
  border:1px solid #000;
  background-color:lightgray;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .box-scroll {
    width:70%;
    max-width: 800px;
    margin:10px auto 40px;
    height:300px;             /* PCは少し高さを大きめに */
    overflow-y: auto;         /* 縦スクロールを有効化 */
    padding:20px;
    border:1px solid #000;
    background-color:lightgray;
    box-sizing: border-box;
  }
}

    
 /*ポスター写真*/
 .img3 {
  width: 55%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-top: 5%;
  margin-top: -30px;
  margin-bottom: 40px;
}

strong{
  font-size: 20px;
}

.textbox{
  width:80%;
  align-items: center;
  justify-items: center;
  margin:2em auto;
  position: relative;
  padding: 0.5em 1.5em;
  border-top: solid 2px black;
  border-bottom: solid 2px black;
  margin-bottom: 40px;
}

.textbox:before {left: 10px;}
.textbox:after {right: 10px;}
.textbox p {
  margin: 0; 
  padding: 0;
}

/* PC表示時 */
@media (min-width: 768px) {
  .Information {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 0 40px;
    flex-wrap: wrap;
  }

  .main-visual {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .textbox {
    width: 45%;
    font-size: 18px;
    padding: 1em 1.5em;
    border-top: solid 2px black;
    border-bottom: solid 2px black;
    position: relative;
  }

 

  .textbox:before { left: 10px; }
  .textbox:after { right: 10px; }
}


@media (min-width: 768px) and (max-width: 1023px) {
  .Information {
    display: flex;
    flex-direction: row;  /* 横並び */
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 0 30px;
    flex-wrap: nowrap; /* 折り返さない */
  }

  .main-visual {
    width: 40%; /* PCより少し小さめ */
    margin-bottom: 0;
  }

  .main-visual img {
    width: 100%;
    height: auto;
    display: block;
  }

  .textbox {
    width: 50%; /* PCより少し広め */
    font-size: 16px; /* 少し小さめ */
    padding: 1em 1.2em;
    margin-bottom: 0;
    box-sizing: border-box;
  }

  .textbox:before, .textbox:after {
    height: calc(100% + 20px);
  }
}


@media (max-width: 767px) {
  .Information {
    display: block;
    padding: 0 20px;
  }

  .main-visual {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .main-visual img {
    width: 80%;
    height: auto;
    margin: 0 auto;
  }

  .textbox {
    width: 90%;
    margin: 0 auto 30px;
    padding: 1em;
    font-size: 16px;
  }
}



.Attention {
  display: grid;
  gap: 20px;
  padding: 0 20px;
  /* デフォルト（モバイルファースト）は1列 */
  grid-template-columns: 1fr;
}

.Attention-item {
  background: #f9f9f9;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.Attention-item h3 {
  margin-top: 0;
  font-size: 1.1em;
  text-align: center;
  text-decoration: underline;
  font-weight: bold;
  margin-bottom: 8px;
}

.Attention-item p {
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
}

/* 幅が広くなったら 2列 */
@media (min-width: 600px) {
  .Attention {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* さらに広い画面では4列 */
@media (min-width: 1024px) {
  .Attention {
    grid-template-columns: repeat(4, 1fr);
  }
}


.komidasi{
  margin-top: 85px;
}


/*挨拶写真*/
.img4 {
  width: 40%;
  display: block;
  margin-left: auto;
  margin-right: 20px;
  padding-top: 5%;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 50%;
}

.greeting-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: -100px;
}

.greeting-img {
  width: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-top: 5%;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 50%;
}

.a_name {
  width: 50%;
  padding: 0.5em 1.5em;
  margin-left: 0; 
}


  .greeting-text {
    width:80%;
    align-items: center;
    justify-items: center;
    margin:2em auto;
    position: relative;
    padding: 0.5em 1.5em;
    border-top: solid 2px black;
    border-bottom: solid 2px black;
  }


@media (min-width: 768px) {
  .img4 {
    width: 35%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    margin-top: -30px;
    margin-bottom: 10px;
    border-radius:50%;
  }
}

@media (min-width: 1024px) {
  .img4 {
    width: 20%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    margin-top: -30px;
    margin-bottom: 10px;
    border-radius:50%;
  }
}

.TIMETABLE {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.TIMETABLE img {
  width: 50%;   /* サイズ調整 */
  height: auto; /* 縦横比維持 */
}



/* 共通ラッパー */
.P_container1{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
 .P_container1{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 30px;
 }
  .P_container1 img {
    width: 200px; /* 画像の幅を大きく */
    height: auto; /* 縦横比を維持 */
  }
}

@media (min-width: 1024px) {
  .P_container1{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 30px;
 }
  .P_container1 img {
    width: 350px; /* 画像の幅を大きく */
    height: auto; /* 縦横比を維持 */
  }
}

/* ポップアップラッパー */
.popup-wrapper {
  position: relative;
  display: inline-block;
}

/* ラベル画像の代わりにテキストを表示 */
label  {
  font-size: 2em;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
}
/* ラベル画像 */ 
label img {
   cursor: pointer; 
   width: 160px; 
   height: auto; 
   transition: 0.3s; }

label .popup-text:hover {
  transform: scale(1.05);
}

/* チェックボックスは非表示 */
input[type="checkbox"] {
  display: none;
}

/* ポップアップ本体 */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #d98bb1;
  padding: 2%;
  box-sizing: border-box;
  width: 60%;
  max-width: 600px;
  z-index: 9999;
  text-align: center;
}

/* ポップアップ内の説明テキスト */
.popup-description {
  font-size: 1.2em;
  color: #fff;
  margin-top: 20px;
}

/* チェックボックスがONのときにポップアップを表示 */
.popup-wrapper input[type="checkbox"]:checked ~ .popup {
  display: block;
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
}

/* オーバーレイ */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/* チェックボックスがONのときにオーバーレイ表示 */
.popup-wrapper input[type="checkbox"]:checked ~ .overlay {
  display: block;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  .popup-text {
    font-size: 2.5em;
  }

  .popup {
    width: 70%;
  }
}

@media (min-width: 1024px) {
  .popup {
    width: 60%;
  }
}

.artist_logo_pic {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.artist_logo_pic img {
  width: 45%;
  height: auto;
}

/* 横並びコンテナ */
.artist_content {
  display: flex;
  flex-wrap: wrap; /* スマホ時に折り返す */
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/* 画像部分 */
.artist_pic {
  width: 35%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.artist_pic img {
  width: 100%;
  height: auto;
}

/* テキスト部分 */
.artist_text {
  width: 45%;
  font-size: 18px;
  padding: 1em 1.5em;
  border-top: solid 2px black;
  border-bottom: solid 2px black;
  position: relative;
}

.artist_text p {
  margin: 0;
  padding: 0;
}

/* スマホ対応 */
@media (max-width: 767px) {
  .artist_pic,
  .artist_text {
    width: 90%;
  }
}


.artist_info {
  width: 80%;
  margin: 40px auto;
  padding: 20px;
  border: 2px solid #333;
  border-radius: 12px;
  background: #fafafa;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}

.artist_info h2 {
  font-size: 1.5em;
  margin: 20px 0 10px;
  text-align: left;
  border-left: 5px solid #333;
  padding-left: 10px;
}

.artist_info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px 20px;
  margin-bottom: 20px;
}

.artist_info dt {
  font-weight: bold;
}

.artist_info dd {
  margin: 0;
}

.notes {
  list-style-type: disc;
  margin-left: 20px;
  line-height: 1.6;
}




.sponser-text{
    display: flex;
    justify-content: space-between; /* 左右にコンテンツを配置 */
    padding: 0 20%; /* 左右に均等な余白を追加 */
}



.partner-list {
  max-width: 1000px;        /* 横幅制限解除 */
  width: fit-content;     /* 中身の幅に合わせる */
  margin: 1rem auto;      /* 上下余白1rem、左右自動中央寄せ */
  padding: 1rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow-x: auto;       /* 横スクロール対応 */
}

.keisyou{
  font-size: 15px;
  text-align: center; 
  margin-bottom: 5%;
}

.partner-list ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;         /* ul自体も中央寄せ */
  column-count: 2;
  column-gap: 2em;
  width: fit-content;     /* リスト幅を内容に合わせる */
}

.partner-list li {
  white-space: nowrap;
  break-inside: avoid;
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2em;
  text-align: left;     /* 文字中央寄せ */
}



/* モバイル時は1列＆横スクロールしやすく */
@media (max-width: 800px) {
  .partner-list ul {
    column-count: 1;
  }
}









.crowd-text{
    display: flex;
    justify-content: space-between; /* 左右にコンテンツを配置 */
    padding: 0 20%; /* 左右に均等な余白を追加 */
}




.name {
  max-width: 1000px;        /* 横幅制限解除 */
  width: fit-content;     /* 中身の幅に合わせる */
  margin: 1rem auto;      /* 上下余白1rem、左右自動中央寄せ */
  padding: 1rem 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  overflow-x: auto;       /* 横スクロール対応 */
}

.keisyou{
  font-size: 15px;
  text-align: center; 
  margin-bottom: 5%;
}

.name ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;         /* ul自体も中央寄せ */
  column-count: 2;
  column-gap: 2em;
  width: fit-content;     /* リスト幅を内容に合わせる */
}

.name li {
  white-space: nowrap;
  break-inside: avoid;
  position: relative;
  padding: 0.35rem 0 0.35rem 1.2em;
  text-align: left;     /* 文字中央寄せ */
}



/* モバイル時は1列＆横スクロールしやすく */
@media (max-width: 800px) {
  .name ul {
    column-count: 1;
  }
}



















/* アクセス全体の構成 */
.access {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}

/* マップと画像をセットにするためのラッパー */
.access-map-image {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}

/* iframe 地図 */
.access_map iframe {
  pointer-events: auto;
  touch-action: pan-x pan-y;
  width: 100%;
  max-width: 480px;
  height: 300px;
  border: none;
}

/* 画像 */
.access_img picture img {
  width: 100%;
  max-width: 480px;
}

/* 情報テキスト（代表者の住所など） */
.access_imgtext {
  text-align: center;
  padding: 10px;
  width: 100%; /* 幅全体使うように */
  max-width: 1000px;
}

.access_area{
  text-align: left;
}


/* スマホサイズでは縦並び */
@media (max-width: 767px) {
  .access-map-image {
    flex-direction: column;
    align-items: center;
  }

  .access_map iframe,
  .access_img picture img {
     width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
  }
}


.c_p{
  text-align: left;
  margin-left:20%;
  margin-right:20%;

}

.cc_p{
  text-align: center;
  margin-left: 25%;
  margin-right: 25%;
    margin-top: 3%;
}
.bc_p{
  text-align: center;
  font-size: 100%;
}

.QandA {
  text-align: left; 
  margin-left:20%;
  margin-right:20%;

}

.QandA .question {
  text-align: left;
  font-size: 25px; 
  color: #d98bb1; 
  font-weight: bold; 
}

.QandA .answer {
  text-align: left;
  font-size: 25px; 
  color: #d98bb1; 
  font-weight: bold; 
}




/*下帯*/
  footer {
    
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: #d98bb1;
    display: flex;
    align-items: center;
    padding-left: 30px;
    z-index: 10;
  }

/*文字*/
  .footer_text p {
    display: inline-block;
    margin:0;
    margin-left: 50px; /* 必要に応じてスペースを調整 */
    white-space: nowrap; /* 自動改行を防止 */
  }

/*学校校章*/ 
  .img2 {
    width: 100px;
    height: 40px;
  }

/*SNS*/
  .footer_sns {
    display: flex;
    justify-content: flex-end; /* 右端に配置 */
    align-items: center;
    width: 100%;
    height: 50px;
    padding-right: 30px;
  }

 .footer_sns a {
  display: flex;
  justify-content: center; /* アイコンを中央に揃える */
  align-items: center;
  margin-left: 15px; /* アイコン同士の間隔を設定 */
 }
  
 .footer_sns img {
  width: 40px;
  height: 40px; 
 }

 @media (max-width: 768px) {
  .footer_text p {
    display: none;
  }
}
  
