@charset "Shift_JIS";

/* レイアウト
---------------------------------------------------- */
.page{
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 20px auto;
  grid-auto-flow: row;
  justify-items: center;
}

@media (max-width: 768px){
  body{ font-size: var(--fs-300); }
}

@media (max-width: 360px){
  body{ font-size: var(--fs-200); }
}

/* ヘッダー・フッター */
.header, .footer{
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  position: relative;
}

.logo { margin-right: 40px; }

.footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 16px;
  justify-items: center;
  align-items: center;
  padding: 12px 20px;
  max-width: 550px;
}

.footer section {
  margin: 0px 20px 10px 20px;
}

@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 12px;
    align-items: center;
  }

  #copyrights address {
    font-size: 10px;
  }
}

/* ナビゲーション */
.nav-btn {
  position: relative;
  display: none;
}

.nav-menu .nav {
  position: absolute;
  transform: none;
  top: 45px;
  right: 0;
  width: auto;
  overflow: visible;
  font-size: var(--fs-300);
}

.nav-menu .nav ul {
  display: flex;
  overflow: visible;
  padding: 0 15px;
}

.nav-menu .nav li {
  padding: 0 8px;
  color: #773322;
}

.nav-icon {
  width: 40px;
  height: 30px;
  position: fixed;
  top:30px;
  right: 20px;
  cursor: pointer;
  z-index: 3;
}

.nav-icon span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: #333;
  border-radius: 2px;
  transition: 0.4s;
}

/* ハンバーガーがXに変形 */
#nav-toggle:checked + .nav-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#nav-toggle:checked + .nav-icon span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked + .nav-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* オーバーレイ背景 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s;
  z-index: 1;
}

#nav-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体 */
.nav-btn .nav {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: left 0.4s ease;
  z-index: 2;
}

#nav-toggle:checked ~ .nav {
  right: 0;
}

.nav-btn .nav ul {
  list-style: none;
  padding: 20px 20px;
}

.nav-btn .nav li {
  margin: 5px 0;
}

.nav-btn .nav a {
  font-size: 1.2rem;
  transition: color 0.3s;
  font-weight: normal;
}

@media (max-width: 900px){
  .nav-btn { display: block; }
  .nav-menu { display: none; }
}

.page .content {
  max-width: 720px;
  width: 100%
}

.page .content .notice {
  corner-shape: square;
  padding: 5px;
  border-bottom: 2px solid #617c39;
  color: black;
  font-size: var(--fs-200);
  min-width: 340px;
  margin: -10px 0 5px 0;
}

@media (max-width: 768px) {
  .page .content {
    width: unset;
  }
}

/* TOP */
#top {
  grid-template-columns: 1fr;
}

.page .notice-dtl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  grid-auto-flow: column;
  justify-items: left;
  margin-bottom: 20px;
  width: 540px;
}

.page .notice-date {
  justify-self: start;
  padding-left: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: start;
  max-width: 700px;
  gap: 0.5rem;
}

.gallery img {
  height: 100%;
  display: block;
  width: auto;
}

@media (max-width: 768px) {
  .page .notice-date {
    padding-left: 0px;
  }

  .page .notice-dtl {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 16px;
    justify-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
    width: auto;
  }
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* INTRODUCTION */
.intro-narrow {
  display: none;
}

.page .intro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  justify-items: center;
}

.page .intro div {
  padding: 5px;
  margin: 10px;
  width: 360px;
}

.page .intro .img {
  text-align: center;
}

@media (max-width: 768px){
  .page .intro {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 0.5rem;
  }

  .page .intro div {
    margin: 0;
  }

  .intro-wide {
    display: none;
  }

  .intro-narrow {
    display: block;
  }
}

/* MENU */
.page .menu {
  corner-shape: square;
  padding: 5px;
  border-bottom: 2px solid #617c39;
  color: black;
  font-size: var(--fs-200);
  min-width: 340px;
}

.page .course {
  font-weight: bold;
  padding: 0 10px;
}

.page .sub-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  justify-items: center;
}

.page .sub-menu div {
  corner-shape: squircle;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  border: 2px solid #773322;
  padding: 10px;
  margin: 10px;
  width: 250px;
  text-align: center;
}

.page .appendix {
  max-width: 550px;
  width: 100%;
  color: #617c39;
}

@media (max-width: 768px){
  .page .menu {
    font-size: inherit;
  }

  .page .sub-menu {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 0.5rem;
  }

  .page .appendix {
    max-width: 340px;
  }
}

/* ACCESS */
.page .access {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  gap: 16px;
  justify-items: center;
}

.page .map iframe {
  border: 0;
  width: 800px;
  height: 450px;
  margin: 0;
}

.page .access div {
  padding: 5px;
  margin: 10px;
  width: 250px;
}

@media (max-width: 1024px){
  .page .map {
    margin: 0 10px;
  }
}

@media (max-width: 768px){
  .page .access {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 0.5rem;
  }

  .page .access div {
    margin: 0;
  }

  .page .map iframe {
    height: 350px;
  }
}

/* CALENDER */


/* INQUIRY */
.inquiry {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px;
  font-size: var(--fs-300);
  color: #ffffff;
  corner-shape: squircle;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  border-radius: 30px;
  background-color: #773322;
  margin: 50px 10px 70px 10px;
  padding: 0 40px;
}

.inquiry:hover {
  background-color: #617c39;
}

.inquiry img {
  margin-left: 15px;
}

.page .faq {
  display: grid;
  grid-template-columns: 50px auto;
  margin-bottom: 15px;
}

.page .faq div {
  overflow-wrap: anywhere;
}

@media (max-width: 768px){
  .faq {
    max-width: 340px;
  }

  .inquiry {
    margin: 20px 10px 50px 10px;
  }
}

@media (max-width: 350px){
  .inquiry {
    padding: 5px;
  }

  .inquiry img {
    margin-left: 5px;
  }
}

