/* =======================================
   RESET
======================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

dl,
dt,
dd {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
picture,
svg,
video {
  display: block;
  height: auto;
  max-width: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

[hidden] {
  display: none !important;
}

/* =======================================
   BASE
======================================= */
:root {
  --color-blue: #395684;
  --color-dark-blue: #182d78;
  --color-yellow: #d9dc00;
  --font-gothic: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
}

body {
  background-color: #fff;
  color: #202020;
  font-family: var(--font-gothic);
  font-size: 1.6rem;
  line-height: 1.8;
  padding-top: 85px;
}

body.is-menu-open {
  left: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  width: 100%;
}

.l-inner {
  margin-inline: auto;
  max-width: 1260px;
  padding-inline: 30px;
  width: 100%;
}

.pc {
  display: block;
}

.sp {
  display: none;
}

br.pc {
  display: block;
}

br.sp {
  display: none;
}

.u-font-mincho {
  font-family: var(--font-mincho);
}

.u-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* =======================================
   HEADER
======================================= */
.l-header {
  background-color: rgba(255, 255, 255, 0.94);
  height: 85px;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.l-header__inner {
  align-items: center;
  background-image: url("../img/common/header-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 100%;
  display: flex;
  height: 100%;
}

.l-header__logo {
  flex: 0 0 auto;
  line-height: 1;
  width: clamp(120px, 13.62vw, 186px);
}

.l-header__logo a {
  display: block;
}

.l-header__nav {
  height: 100%;
  margin-left: auto;
}

.l-header__menu {
  align-items: center;
  display: flex;
  gap: clamp(12px, 2.8vw, 44px);
  height: 100%;
}

.l-header__menu > li {
  flex: 0 0 auto;
}

.l-header__menu > li:first-child,
.l-header__menu > li:nth-child(8) {
  display: none;
}

.l-header__menu > li:nth-child(5) {
  align-self: flex-start;
  background-image: url("../img/common/header-admission-background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  height: 106px;
  order: 10;
  width: clamp(112px, 13.1vw, 179px);
}

.l-header__menu > li > a {
  align-items: center;
  display: flex;
  font-family: var(--font-mincho);
  font-size: clamp(1.2rem, 1.17vw, 1.6rem);
  height: 85px;
  justify-content: center;
  white-space: nowrap;
}

.l-header__menu > li:nth-child(5) > a {
  color: var(--color-yellow);
  font-family: var(--font-gothic);
  font-size: clamp(1.4rem, 1.32vw, 1.8rem);
  font-weight: 700;
  height: 100%;
  line-height: 1.4;
  padding: 0 16px 12px;
  text-align: center;
  white-space: normal;
}

.l-header__menu > li > a:hover,
.l-header__menu > li > a:focus-visible {
  opacity: 0.65;
}

.l-header__menu > li:nth-child(5) > a:hover,
.l-header__menu > li:nth-child(5) > a:focus-visible {
  opacity: 0.8;
}

/* =======================================
   MOBILE MENU
======================================= */
.l-mobile-menu {
  background-color: var(--color-blue);
  bottom: 0;
  color: #fff;
  left: 0;
  overflow-y: auto;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2000;
}

.l-mobile-menu__panel {
  margin-inline: auto;
  max-width: 390px;
  min-height: 100%;
  padding: 88px 45px 64px;
  position: relative;
}

.l-mobile-menu__close {
  align-items: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.2;
  position: absolute;
  right: 22px;
  top: 17px;
}

.l-mobile-menu__close img {
  margin-bottom: 2px;
  width: 30px;
}

.l-mobile-menu__list {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
}

.l-mobile-menu__list > li {
  grid-column: 1 / -1;
}

.l-mobile-menu__list > li > a {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
}

.l-mobile-menu__list > li:first-child {
  margin-bottom: 38px;
}

.l-mobile-menu__list > li:nth-child(2),
.l-mobile-menu__list > li:nth-child(3) {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
}

.l-mobile-menu__list > li:nth-child(3) {
  margin-top: 41px;
}

.l-mobile-menu__list > li:nth-child(2) > a,
.l-mobile-menu__list > li:nth-child(3) > a {
  grid-column: 1;
}

.l-mobile-menu__list .sub-menu {
  grid-column: 2;
}

.l-mobile-menu__list .sub-menu li + li {
  margin-top: 9px;
}

.l-mobile-menu__list .sub-menu a {
  display: inline-block;
  font-size: 1.6rem;
  line-height: 1.55;
}

.l-mobile-menu__list > li:nth-child(4),
.l-mobile-menu__list > li:nth-child(5) {
  margin-top: 43px;
}

.l-mobile-menu__list > li:nth-child(4),
.l-mobile-menu__list > li:nth-child(6) {
  grid-column: 1;
}

.l-mobile-menu__list > li:nth-child(5),
.l-mobile-menu__list > li:nth-child(7) {
  grid-column: 2;
}

.l-mobile-menu__list > li:nth-child(6),
.l-mobile-menu__list > li:nth-child(7) {
  margin-top: 31px;
}

.l-mobile-menu__list > li:nth-child(8) {
  margin-top: 30px;
}

.l-mobile-menu__list a:hover,
.l-mobile-menu__list a:focus-visible {
  opacity: 0.65;
}

.l-mobile-menu__related {
  margin-top: 38px;
}

.l-mobile-menu__related-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.l-mobile-menu__related-list {
  margin: 22px auto 0;
  width: 223px;
}

.l-mobile-menu__related-list a {
  display: block;
}

.l-mobile-menu__related-list a + a {
  margin-top: 10px;
}

.l-mobile-menu__related-list img {
  width: 100%;
}

/* =======================================
   FOOTER
======================================= */
.l-footer {
  background-color: #3c527d;
  color: #fff;
}

.l-footer__inner {
  display: grid;
  grid-template-columns: clamp(280px, 31.5vw, 430px) minmax(0, 1fr);
}

.l-footer__information {
  border-right: 1px solid #9aa8c3;
  padding: 47px clamp(20px, 2.78vw, 38px) 25px 0;
}

.l-footer__logo {
  display: block;
  width: 250px;
}

.l-footer__address {
  margin-top: 34px;
}

.l-footer__address-block + .l-footer__address-block {
  margin-top: 24px;
}

.l-footer__address-title {
  background-image: url("../img/common/icon-square-white.webp");
  background-position: left 6px;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  padding-left: 19px;
}

.l-footer__address-block p {
  font-size: 1.4rem;
  line-height: 1.9;
  margin-top: 8px;
}

.l-footer__navigation {
  padding: 39px 0 24px clamp(20px, 5.56vw, 76px);
}

.l-footer__menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.l-footer__menu > li > a {
  display: inline-block;
  font-size: clamp(1.2rem, 1.17vw, 1.6rem);
  font-weight: 700;
}

.l-footer__menu > li:first-child {
  grid-column: 1 / -1;
  grid-row: 1;
  margin-bottom: 13px;
}

.l-footer__menu > li:nth-child(2) {
  grid-column: 1;
  grid-row: 2 / span 5;
}

.l-footer__menu > li:nth-child(3) {
  grid-column: 2;
  grid-row: 2 / span 5;
}

.l-footer__menu > li:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.l-footer__menu > li:nth-child(5) {
  grid-column: 3;
  grid-row: 3;
  margin-top: 15px;
}

.l-footer__menu > li:nth-child(6) {
  grid-column: 3;
  grid-row: 4;
  margin-top: 15px;
}

.l-footer__menu > li:nth-child(7) {
  grid-column: 3;
  grid-row: 5;
  margin-top: 15px;
}

.l-footer__menu > li:nth-child(8) {
  grid-column: 3;
  grid-row: 6;
  margin-top: 4px;
}

.l-footer__menu .sub-menu {
  margin-top: 9px;
}

.l-footer__menu .sub-menu li + li {
  margin-top: 7px;
}

.l-footer__menu .sub-menu a,
.l-footer__menu > li:nth-child(8) > a {
  font-size: clamp(1.1rem, 1.02vw, 1.4rem);
  font-weight: 400;
}

.l-footer__menu a:hover,
.l-footer__menu a:focus-visible {
  opacity: 0.65;
}

.l-footer__related {
  align-items: start;
  display: grid;
  grid-template-columns: clamp(70px, 7vw, 96px) minmax(0, 1fr);
  margin-top: 25px;
}

.l-footer__related-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.l-footer__related-list {
  display: grid;
  gap: 20px clamp(10px, 2.5vw, 34px);
  grid-template-columns: repeat(2, minmax(0, 224px));
}

.l-footer__related-list a {
  display: block;
}

.l-footer__related-list img {
  width: 100%;
}

.l-footer__related-rotary {
  grid-column: 1;
  grid-row: 1;
}

.l-footer__related-friend {
  grid-column: 2;
  grid-row: 1;
}

.l-footer__related-district {
  grid-column: 2;
  grid-row: 2;
}

.l-footer__related-library {
  grid-column: 1;
  grid-row: 2;
}

.l-footer__copyright {
  align-items: center;
  background-color: #1e1e1e;
  display: flex;
  font-size: 1.4rem;
  height: 35px;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 48px;
  }

  body {
    font-size: 1.4rem;
    padding-top: 48px;
  }

  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  br.pc {
    display: none;
  }

  br.sp {
    display: block;
  }

  /* =======================================
     HEADER
  ======================================= */
  .l-header {
    height: 48px;
  }

  .l-header__inner {
    background-image: none;
    padding-inline: 15px;
  }

  .l-header__logo {
    width: 96px;
  }

  .l-header__menu-button {
    align-items: center;
    color: #1d54a0;
    font-size: 0.8rem;
    line-height: 1;
    margin-left: auto;
    text-align: center;
  }

  .l-header__menu-button img {
    margin-inline: auto;
    width: 22px;
  }

  .l-header__menu-button span {
    display: block;
    margin-top: 2px;
  }

  /* =======================================
     FOOTER
  ======================================= */
  .l-footer__admission {
    background-color: #3c3fa0;
    border-bottom: 1px solid var(--color-yellow);
    border-top: 1px solid var(--color-yellow);
    color: var(--color-yellow);
    font-family: var(--font-mincho);
    font-size: 1.6rem;
    line-height: 68px;
    padding-inline: 26px;
    position: relative;
    text-align: center;
  }

  .l-footer__admission::after {
    border: 1px solid var(--color-yellow);
    bottom: 10px;
    content: "";
    left: 26px;
    pointer-events: none;
    position: absolute;
    right: 26px;
    top: 10px;
  }

  .l-footer__mobile {
    padding: 17px 30px 20px;
  }

  .l-footer__mobile-logo {
    display: block;
    margin-inline: auto;
    width: 190px;
  }

  .l-footer__copyright {
    background-color: #3c527d;
    font-size: 1.2rem;
    height: 36px;
  }
}
