 @charset "utf-8";
/* CSS Document */

.road-header {
  position: relative;
  padding: 0 10px 22px;
	margin-bottom:22px;
}

/* 上部の水色エリア */
.road-header__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 250px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px 105px;
  color: #fff;
  text-align: center;
  background: #84c7d2;
  border-radius: 5px;
}

.road-header__title span,
.road-header__title h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}
.road-header__title span {
  font-size: 36px;
	display:block;
}
.road-header__title h1 {
  font-size:42px;
}

/* 背景の薄い水色帯 */
.road-header__nav {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 28px;
  left: 0;
  padding: 6px 4%;
  background: #a5dcec;
}

.road-header__nav-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  max-width: 1100px;
  margin: 0 auto;
}

.road-header__nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  padding: 10px 14px;
  color: #fff;
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  background: #438eb7;
  border-radius: 5px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.road-header__nav a:hover,
.road-header__nav a:focus-visible {
  background: #35597f;
}

/* マウスを利用できる端末だけ上へ移動 */
@media (hover: hover) and (pointer: fine) {
  .road-header__nav a:hover {
    transform: translateY(-8px);
  }
}

.road-header__nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

/* PC・タブレットでは非表示 */
.road-header__menu-button {
  display: none;
}

@media screen and (max-width:900px){
.road-header__title {
  padding: 22px 20px 225px;
}
.road-header__nav-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.road-header__nav a {
  font-size: 16px;
}
}

@media screen and (max-width:600px){
  .road-header {
    padding: 50px 10px 16px;
		margin-bottom:10px;
  }

  .road-header__title {
    min-height: auto;
    padding: 12px 58px;
  }
  .road-header__title span {
    font-size: 22px;
  }
  .road-header__title h1 {
    font-size: 28px;
  }

  /* ハンバーガーボタン */
  .road-header__menu-button {
    position: fixed;
    z-index: 1100;
    top: 5px;
    right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    background: #438eb7;
    border: 0;
    border-radius: 5px;
  }

  .road-header__menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 3px 0;
    background: #fff;
    border-radius: 2px;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }

  .road-header__menu-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -5px;
  }

  /* 開いたときに×印へ変形 */
  .road-header__menu-button.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .road-header__menu-button.is-open span:nth-child(2) {
  opacity: 0;
  visibility: hidden;
  transition: none;
  }

  .road-header__menu-button.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* スマホ用ナビゲーション */
  .road-header__nav {
    position: fixed;
    z-index: 1100;
    top: 50px;
    right: 0;
		left:0;
    bottom: auto;
    max-height: 0;
    margin: 0 ;
    padding: 0 12px;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition:
      max-height 0.3s ease,
      padding 0.3s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .road-header__nav.is-open {
    max-height: 400px;
    padding-top: 10px;
    padding-bottom: 10px;
    visibility: visible;
    opacity: 1;
  }

  .road-header__nav-inner {
    grid-template-columns: 1fr;
  }

  .road-header__nav a {
    min-height: 60px;
    font-size: 18px;
  }
}

/* アニメーションを抑制する設定への配慮 */
@media (prefers-reduced-motion: reduce) {
  .road-header__menu-button span,
  .road-header__nav {
    transition: none;
  }
}