/* 孝友会トップページ専用。既存 common.css / layout.css の後で読み込む */
.mobile-nav-label { display: none; }
@media screen and (max-width: 980px) {
  html, body { width: 100%; min-width: 0; overflow-x: clip; }
  #header_0, #top, #nav, #nav .button, #contents { width: 100%; max-width: 960px; }
  #header_0 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
  #header_0 .inner_left, #header_0 .inner_right { float: none; margin: 0; width: auto; max-width: 100%; }
  #header_0 .inner_right .conte { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
  #header_0 .inner_right .conte .contact, #header_0 .inner_right .conte .siryou { float: none; width: auto; height: auto; }
  #header_0 img { max-width: 100%; height: auto; }
  #top, #mainvisual, #mainvisual .visual, #mainvisual ul { max-width: 100%; }
  #mainvisual ul li img { display: block; width: 100%; height: auto; }
  #nav { overflow: visible; }
  #nav .button { float: none; height: auto; }
  #nav .button ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #nav .button li { width: auto; float: none; min-width: 0; }
  #nav .button li a { display: block; }
  #nav .button li img { display: block; width: 100%; height: auto; }
  #contents { padding: 24px 16px 0; }
  #contents .box1 { width: 100%; display: flow-root; margin-bottom: 28px; }
  #contents .box1 .info1, #contents .box1 .info2, #contents .box1 .info3,
  #contents .box1 .info6, #contents .box1 .info7,
  #contents .box1 .info1-fb, #contents .box1 .info2-fb, #contents .box1 .info3-fb {
    width: auto; max-width: 100%; float: none; margin: 0; height: auto;
  }
  #contents .box1 img { max-width: 100%; height: auto; }
  #contents .box1:has(.info1) { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  #contents .box1:has(.info6) { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
  #contents .box1:has(.info1-fb) { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
  #contents .box1 > .barner1, #contents .box1 > .barner2, #contents .box1 > .barner3,
  #contents .box1 > .barner4, #contents .box1 > .barner5, #contents .box1 > .barner6,
  #contents .box1 > .clear { grid-column: 1 / -1; }
  #contents .box1 .info1-fb iframe, #contents .box1 .info2-fb iframe, #contents .box1 .info3-fb iframe { width: 100%; max-width: 305px; }
  #contents .info-youtube, #contents .info-youtube.left { float: none; width: 100%; margin: 0 0 16px; }
  #contents .info-youtube iframe { width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; }
  #gra { height: auto; min-height: 300px; padding: 0 16px 24px; }
  #gra #under_nav, #under_nav { width: 100%; max-width: 700px; }
  #gra #under_nav { padding-top: 115px; }
  #gra .f_credit img { max-width: 100%; height: auto; }
  .feed_area { overflow-wrap: anywhere; }
}
@media screen and (max-width: 600px) {
  #header_0 { justify-content: center; text-align: center; }
  #header_0 .inner_left, #header_0 .inner_right { width: 100%; display: flex; justify-content: center; }
  #header_0 .inner_right .conte { justify-content: center; }
  #header_0 .inner_right .conte .contact, #header_0 .inner_right .conte .siryou { width: min(46%, 220px); }
  #nav .button ul { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: #ddd; }
  #nav .button li { background: #fff; box-shadow: none; }
  #nav .button li a { padding: 11px 5px; text-align: center; color: #534741; font-size: 14px; font-weight: bold; }
  #nav .button li img { display: none; }
  #nav .button li .mobile-nav-label { display: inline; }
  #contents { padding: 18px 12px 0; }
  #contents .box1:has(.info1), #contents .box1:has(.info6), #contents .box1:has(.info1-fb) { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #contents .box1 .info1, #contents .box1 .info2, #contents .box1 .info3,
  #contents .box1 .info6, #contents .box1 .info7 { text-align: center; }
  #contents .box1 .info1-fb, #contents .box1 .info2-fb, #contents .box1 .info3-fb { text-align: center; }
  #contents .box1 .info1-fb iframe, #contents .box1 .info2-fb iframe, #contents .box1 .info3-fb iframe { display: block; margin: auto; }
  #gra #under_nav { padding-top: 85px; }
  #gra .add2 { line-height: 1.9; font-size: 12px; }
  .copy-right { height: auto; min-height: 60px; padding: 18px 12px; text-align: center; font-size: 12px; }
}
