@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;500&display=swap");

:root {
  --header-blue: #216bda;
  --link-blue: #216bda;
  --header-text: #212121;
  --header-white: #f7f7f7;
  --header-gray: #a0a8b4;
}

html {
  scroll-behavior: smooth;
}

a {
  transition: opacity 0.3s ease;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  color: var(--header-text);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
}

/* スクロール後に表示する、青とノイズのヘッダー背景 */
.site-header::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #bed6fb;
  background-image: url("/system_panel/uploads/images/20260812231129447475.svg");
  background-repeat: repeat;
  background-size: 90rem 45.875rem;
  background-blend-mode: multiply;
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header .container {
  max-width: calc(100vw - 10rem);
}

.site-header p {
  margin-bottom: 0;
}

.site-header__logo {
  display: inline-block;
}

.site-header__top-row {
  align-items: flex-start;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.site-header__logo img {
  display: block;
  width: 76px;
  height: auto;
}

.site-header__actions {
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-header__telephone {
  display: inline-block;
  color: #13458d;
  font-size: 1rem;
  line-height: 1.2;
  text-align: right;
  vertical-align: middle;
}

.site-header__reception-hours,
.site-header__phone-number {
  margin: 0;
}

.site-header__reception-hours {
  font-size: 0.625rem;
}

.site-header__phone-number {
  display: block;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}

.site-header__phone-number a {
  color: inherit;
}

.site-header__button {
  display: inline-grid;
  box-sizing: border-box;
  height: 3rem;
  margin-left: 1rem;
  padding: 0.25rem 1.5rem;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition:
    opacity 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header__button p {
  margin: 0;
}

.site-header__button--contact {
  background-color: var(--header-blue);
  color: var(--header-white);
  font-size: 0.75rem;
}

.site-header__button--contact:hover,
.site-header__button--contact:focus-visible {
  color: var(--header-white);
  text-decoration: none;
}

.site-header__button--student {
  background-color: var(--header-white);
  border-color: #d9d9d9;
  border-radius: 4px;
  color: var(--header-text);
}

.site-header__button--student:hover,
.site-header__button--student:focus-visible {
  color: var(--header-text);
  text-decoration: none;
}

.site-header__button:hover,
.site-header__button:focus-visible {
  box-shadow: none;
  opacity: 0.75;
}

.site-navigation {
  display: inline-block;
}

.site-navigation__links {
  display: flex;
  align-items: flex-start;
}

.site-navigation__item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.site-navigation__item:first-child {
  padding-left: 0;
}

.site-navigation__item + .site-navigation__item::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1rem;
  background-color: var(--header-text);
  content: "";
  transform: translateY(-50%);
}

.site-navigation a {
  color: inherit;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a:focus-visible {
  color: inherit;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.site-navigation__submenu {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  width: 6.5rem;
  padding: 1rem 0;
  background-color: var(--header-white);
  border-radius: 0.75rem;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
  visibility: hidden;
}

.site-navigation__item--has-submenu::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 0.75rem;
  content: "";
}

.site-navigation__submenu > div + div {
  margin-top: 0.75rem;
}

.site-navigation__submenu a {
  display: block;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.site-navigation__submenu a.mb-0 {
  margin-bottom: 0;
}

.site-header .site-navigation__submenu a:hover,
.site-header .site-navigation__submenu a:focus-visible {
  opacity: 1;
}

.site-navigation__item--has-submenu:hover .site-navigation__submenu,
.site-navigation__item--has-submenu:focus-within .site-navigation__submenu {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
  visibility: visible;
}

.site-header__logo:hover,
.site-header__logo:focus-visible,
.site-header__logo:focus-visible {
  opacity: 0.75;
}

.site-header__phone-number:hover a,
.site-header__phone-number:focus-visible a {
  color: #13458d;
  text-decoration: none;
}

.toggle-menu,
.site-menu {
  display: none;
}

@media (min-width: 768px) {
  .site-header__button--contact {
    min-width: 11.5rem;
  }

  .site-header__button--student {
    min-width: 11rem;
  }
}

.site-header {
  z-index: 11;
}

.site-header .container {
  max-width: calc(100vw - 2.5rem);
}

.site-header__top-row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  min-height: 4rem;
  padding-top: 1rem;
  padding-bottom: 0;
}

.site-header__brand {
  width: auto;
  padding-left: 0;
}

.site-header__utilities {
  position: static;
  flex: 1 1 auto;
  width: auto;
}

.site-header__logo {
  width: 3.125rem;
  height: auto;
}

.site-header__actions,
.site-navigation {
  display: none;
}

.toggle-menu {
  position: absolute;
  top: 1.25rem;
  right: 0;
  display: block;
  width: 2rem;
  height: 1.5rem;
  background: linear-gradient(var(--header-text), var(--header-text)) center /
    100% 1px no-repeat;
  cursor: pointer;
}

.toggle-menu::before,
.toggle-menu::after {
  position: absolute;
  right: 0;
  width: 2rem;
  height: 1px;
  background-color: var(--header-text);
  content: "";
  transition:
    transform 0.3s ease,
    top 0.3s ease;
}

.toggle-menu::before {
  top: 0.25rem;
}

.toggle-menu::after {
  top: 1.25rem;
}

.site-header.is-open .toggle-menu::before {
  top: 0.75rem;
  transform: rotate(45deg);
}

.site-header.is-open .toggle-menu::after {
  top: 0.75rem;
  transform: rotate(-45deg);
}

.site-header.is-open .toggle-menu {
  background-image: none;
}

.site-header.is-open {
  background-color: #bed6fb;
  background-image: url("/system_panel/uploads/images/20260812231129447475.svg");
  background-repeat: repeat;
  background-size: 90rem 45.875rem;
  background-blend-mode: multiply;
}

.site-menu {
  position: fixed;
  top: 4rem;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: block;
  overflow-y: auto;
  padding: 5rem 0 8rem;
  background-color: var(--header-white);
  background-image: url("/system_panel/uploads/images/20260812231129447475.svg");
  background-repeat: repeat;
  background-size: 90rem 45.875rem;
  background-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
  visibility: hidden;
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
  visibility: visible;
}

.site-menu .container {
  max-width: 17rem;
}

.site-menu__links > a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4rem;
  border-bottom: 1px solid var(--header-gray);
  color: var(--header-text);
  font-size: 0.875rem;
  font-weight: 300;
  text-decoration: none;
}

.site-menu__links > a::after {
  position: absolute;
  top: 50%;
  right: 0.375rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 1px solid var(--header-text);
  border-right: 1px solid var(--header-text);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.site-menu__links > a:hover,
.site-menu__links > a:focus-visible {
  color: var(--header-text);
  opacity: 0.75;
  text-decoration: none;
}

.site-menu__links > a p,
.site-menu__student p {
  margin: 0;
}

.site-menu__student {
  margin-top: 3rem;
}

.site-menu__student a {
  display: grid;
  min-height: 3rem;
  place-items: center;
  border: 1px solid #d9d9d9;
  border-radius: 0.25rem;
  background-color: var(--header-white);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
  color: var(--header-text);
  font-size: 0.875rem;
  font-weight: 300;
  text-decoration: none;
  transition:
    opacity 0.3s ease,
    box-shadow 0.3s ease;
}

.site-menu__student a:hover,
.site-menu__student a:focus-visible {
  box-shadow: none;
  color: var(--header-text);
  opacity: 0.75;
  text-decoration: none;
}

@media (min-width: 768px) {
  .site-header {
    z-index: 10;
    background-color: transparent;
    background-image: none;
  }

  .site-header .container {
    max-width: calc(100vw - 2rem);
  }

  .site-header__top-row {
    display: flex;
    flex-wrap: wrap;
    min-height: 0;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .site-header__brand {
    padding-left:15px;
  }

  .site-header__utilities {
    position: relative;
  }

  .site-header__logo {
    width: 4.75rem;
  }

  .site-header__actions {
    display: flex;
  }

  .site-navigation {
    display: inline-block;
    padding-bottom: 1.25rem;
  }

  .toggle-menu,
  .site-menu {
    display: none;
  }
}

@media (min-width: 1200px) {
  .site-header .container {
    max-width: calc(100vw - 10rem);
  }
}

/* 管理画面では編集しやすいようヘッダーを固定しない */
.site-header[data-gjs-type],
.site-header:has([data-gjs-type]) {
  position: relative;
}

/* Smoooth管理画面では、編集対象のサブメニューを常時表示する。 */
.site-navigation__submenu[data-gjs-type] {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
  visibility: visible;
}

/* Smoooth管理画面では、トグルメニューを開いた状態で編集できるようにする。 */
.site-menu[data-gjs-type],
.site-menu:has([data-gjs-type]) {
  position: relative;
  inset: auto;
  display: block;
  padding: 5rem 0;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
