body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 共通 */
.main-visual { display: block; }
.pc-only { margin-left: 20%; display: none; }
.sp-only { margin-left: 10%; display: block; }

.navbar {
  display: flex;
  justify-content: space-around;
  z-index: 1000;
  /* スマホ時はsticky、PC時は解除 */
  position: sticky;
  top: 0;
}

.nav-item {
  padding: 3em 0 2em 0;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 24px;
}

.access {
  padding: 2em 0 0 0;
}

.access .finger-icon {
  width: 5em;
  margin-left: 0.5em;
  vertical-align: middle;
}

/* お知らせセクション */
.info { background: #fff; padding: 1em 0; }
.info-title { text-align: center; color: #669900; font-size: 1.3em; margin-bottom: 0.5em; }
.info-divider { width: 60px; height: 3px; background: #e0e0e0; margin: 0 auto 1em auto; border-radius: 2px; }
.info-wrapper { max-width: 700px; margin: 0 auto; background: #fafafa; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-radius: 8px; padding: 1em 1em; }
.info-list { margin: 0; }
.info-list dt { font-weight: bold; color: #333; margin-top: 0.8em; font-size: 1em; }
.info-list dd { margin: 0 0 0.5em 0; color: #444; font-size: 0.98em; }

/* メインコンテンツ */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin: 1em;
}
.link-block img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* フッター */
.footer {
  width: 100%;
  text-align: center;
  padding: 1em 0;
  background: #f8f8f8;
  color: #888;
  font-size: 0.9em;
}

/* jQuery用 */
.colorbox{
  max-width: 100%;
  height: auto;
}

/* PC・タブレット横画面用（幅が1024px以上 or 横画面） */
@media (min-width: 1024px), (orientation: landscape) and (min-width: 768px) {
  body, html {
    height: 100vh;
    min-height: 100vh;
  }
  .pc-only { display: block; }
  .sp-only { display: none; }
  .navbar {
    position: static; /* メニューバー固定を解除 */
  }
  .main-content {
    flex-direction: row;
    gap: 2em;
    justify-content: center;
    align-items: center;
    height: 35vh;
    margin: 2vh 0;
  }
  .main-visual {
    height: 20vh;
    object-fit: cover;
    max-height: 180px;
  }
  .info {
    padding: 1vh 0;
    min-height: 15vh;
  }
  main, .info, .footer {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* スマホ・縦画面用（幅が1023px以下 or 縦画面） */
@media (max-width: 1023px), (orientation: portrait) {
  .pc-only { display: none; }
  .sp-only { display: block; }
  .navbar {
    position: sticky;
    top: 0;
  }
  .main-content {
    flex-direction: column;
    gap: 1em;
  }
  .main-visual {
    height: 12vh;
    object-fit: cover;
    max-height: 180px;
  }
.nav-item {
  font-size: 15px;
}
  html, body {
    overflow: auto;
  }
}
