/* 全体のリセット */ 

*{
  margin: 0; 
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Noto Sans JP', sans-serif;
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgb(255 255 15);
}

th,td {
  border: solid 1px;              /* 枠線指定 */
}

table {
  border-collapse:  collapse;     /* セルの線を重ねる */
  background-color: white;
}

html, body {
  overflow-x: hidden;
}

  
.section-title {
  background-color: #4682b4;
  color: white;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: bold;
}


/* メニューバー */
.menu-bar {
  width: 100%;
  background: rgb(270,270,15);
  position: relative;
  padding: 10px 0;
}

/* メニューコンテナ */
.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* メニューのリスト */
.menu-row {
  display: flex;
  width: 100%;
  justify-content: center;
  list-style: none;
  gap: 10px; /* 項目間の間隔 */
  white-space: nowrap;
  padding-bottom: 5px;
}

/* メニュー項目 */
.menu-row li {
  flex-grow: 1; /* 均等に広げる */
  text-align: center;
  border: 0px solid rgb(255, 255, 255); /* 外側の枠を黄色 */
  border-radius: 25px; /* 角を丸く */
  background: rgb(255 189 32); /* 内側の色を赤 */
  overflow: hidden;
}

/* メニューのリンク */
.menu-row a {
  display: block;
  padding: 15px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 16px;
  border-radius: 22px; /* 内側の角も少し丸める */
}
/* Instagram 用 */
.menu-row li.sns_instagram {

  border-color: linear-gradient(to right,
  rgba(247, 207, 0, 0.7),
  rgba(246, 37, 2, 0.7) 45%,
  rgba(182, 47, 82, 0.7) 75%,
  rgba(113, 58, 166, 0.7));
      background: linear-gradient(to right,
          rgba(247, 207, 0, 0.7),
          rgba(246, 37, 2, 0.7) 45%,
          rgba(182, 47, 82, 0.7) 75%,
          rgba(113, 58, 166, 0.7));
  border: 0px solid rgb(255, 255, 255);
  font-weight: 500;
}

/* Facebook 用 */
.menu-row li.sns_facebook {
  background: rgb(24, 119, 242);      /* Facebook のブランドカラー */
  border-color: rgb(24, 119, 242);
  border: 0px solid rgb(255, 255, 255);
  font-weight: 900;
  font-style: Tahoma;
}

.menu-row li.photo{
  background-color: rgb(182 15 127);
}

/* リンク文字色は白のままにしておく */
.menu-row li.sns a {
  color: #fff;
}


/* ホバー時 */
.menu-row a:hover {
  background: rgb(240 174 17);
}

.menu-row li.sns_instagram a:hover {
  background: linear-gradient(to right,
      rgba(247, 207, 0, 0.7),
      rgba(246, 37, 2, 0.7) 45%,
      rgba(182, 47, 82, 0.7) 75%,
      rgba(113, 58, 166, 0.7));
}


.menu-row li.sns_facebook a:hover {
  background-color: rgb(5, 100, 222);
}

.menu-row li.photo a:hover{
  background-color: rgb(167 0 112);
}


.footer {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  transform: none;
  left: auto;
  background-color: rgb(188, 188, 188);
}

/* 内側コンテンツを本文幅に中央寄せ */
.footer-inner {
  max-width: 1000px;    /* body と同じ幅 */
  margin: 0 auto;       /* 横中央寄せ */
  padding: 20px;        /* コンテンツまわりの余白 */
  box-sizing: border-box;
}
/* 親ヘッダーを横並びに */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding:10px 0;
  gap: 0; /* ← 余白を明示 */
  flex-wrap: nowrap; /* ← 折り返しを防止 */
}

/* 学校名＋ロゴを縦並びに */
.menuma-you {
  display: flex;
  flex-direction: column;  /* 上下に並べる */
  align-items: center;     /* 真ん中揃え */
}

/* 学校名は必ず１行に */
.menuma_daizi {
  white-space: nowrap;
  font-size: 1.2em;
  color: #16B016;
  margin-bottom: 4px;
}

.menuma-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: flex-start;
}

/* ロゴ画像の最大高さ */
.logo {
  max-width: 100%;
  height: auto;
  margin-top: 4px;
}

/* TEL／住所を縦並びに */
.top_address {
  flex: 1 1 50%;        /* 右側も最大50% */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  min-width: 0;
}

/* 各行を必ず折り返さず１行で */
.address_line {
  white-space: nowrap;
  margin: 2px 0;
  color: #16B016;
  font-size: 0.7em;
  overflow: hidden;
  text-overflow: ellipsis;
}



.background-white{
  background-color: white;
  padding: 10px 15px 30px 15px;
}
img.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.table-center table {
  margin: 0 auto;
}


.button a {
  background: #eee;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 240px;
  padding: 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 500;
  z-index:0;
  text-decoration: none;
}
.button a:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  display: block;
  background: rgb(270 270 15);
  transition: .15s;
  left:0;
}
.button a:hover {
  color: black;
}
.button a:hover:before {
  width: 100%;
  z-index: -1;
}
.foot-back-to-home,
a.foot-back-to-home {
  text-decoration: none;
  color: #333;
  margin: 40%;
  padding: 1%;
  font-size: 20px;
  font-weight: 600;
}

.text-center{
   text-align: center;
   font-size: 15px;
   font-weight: 600;
}
















/*sideから抜粋*/

.hamburger-menu {
  width: 50px;
  height: 50px;
  position: relative;
  border: none;
  background: transparent;
  appearance: none;
  padding: 0;
  cursor: pointer;
}
.hamburger-menu__bar {
  display: inline-block;
  width: 44%;
  height: 2px;
  background: #242424;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: .5s;
}
.hamburger-menu__bar:first-child {
  top: 16px;
}
.hamburger-menu__bar:nth-child(2) {
  top: 24px;
}
.hamburger-menu__bar:last-child {
  top: 32px;
}
.hamburger-menu--open .hamburger-menu__bar {
  top: 50%;
}
.hamburger-menu--open .hamburger-menu__bar:first-child {
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
.hamburger-menu--open .hamburger-menu__bar:last-child {
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}
.hamburger-menu--open .hamburger-menu__bar:nth-child(2) {
  display: none;
}

.navigation {
  display: none;
  background: #242424;
  position: absolute;
  top: 100%; /* menu-for-smartの真下に配置 */
  width: 100%;
  z-index: 9999;
}


.navigation__list {
  text-align: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.navigation__list-item {
  border-bottom: solid 1px #474747;
}

.navigation__list-item:first-child {
  border-top: solid 1px #474747;
}
.navigation__link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: block;
  padding: 24px 0;
  transition: .5s;
}
.menu-for-smart{
  position: relative;
  z-index: 10000;
}


.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9比率 */
  margin-top: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 10px; /* optional: 角丸 */
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


@media (hover: hover) and (pointer: fine) {
  .navigation__link:hover {
    background: #333;
  }
}

@media screen and (max-width: 685px) {
  .menu-bar {
    display: none;
  }
  .menu-for-smart {
    display: block;
  }

  .menuma-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .top_address {
    align-items: center;
    text-align: center;
  }

  .address_line {
    font-size: 0.8em;
  }

  .logo {
    max-width: 80%;
    height: auto;
  }

  .menuma_daizi {
    font-size: 1em;
    text-align: center;}
}
@media screen and (min-width: 686px) {
  .menu-bar {
    display: block;
  }
  .menu-for-smart {
    display: none;
  }
  .top_address{
    margin-right: -130%;
  }
}




