:root {
  --brand-blue: #242179;
  --text-blue: #33637a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
}

#wrapper {
  position: relative;
}

.sp_only {
  display: none;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 30px 50px;
  background: transparent;
}

header h1 {
  margin-right: 100px;
}

header nav {
  margin-left: auto;
}

header ul {
  display: flex;
  gap: 16px;
}

.nav-toggle {
  display: none;
}

header h1,
header h1 a,
header ul li a {
  color: var(--brand-blue);
  font-size: clamp(14px, 1.25vw, 24px);
  text-decoration: none;
}

#main_visual {
  position: relative;
}

#main_visual img {
  display: block;
  width: 100%;
  height: auto;
}

#main_visual .main-visual-sp {
  display: none;
}

#lead_text {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: start;
  gap: 0.35em;
  padding-top: 10%;
  padding-left: 8%;
  color: #fff;
  font-size: clamp(18px, 1.45vw, 28px);
  text-align: left;
}

#lead_text .lead_text__head,
#lead_text .lead_text__line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.95s ease-out,
    transform 0.95s ease-out;
}

#lead_text.is-visible .lead_text__head {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

#lead_text.is-visible .lead_text__line:nth-of-type(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.45s;
}

#lead_text.is-visible .lead_text__line:nth-of-type(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1.85s;
}

#lead_text.is-visible .lead_text__line:nth-of-type(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 2.25s;
}

@media (prefers-reduced-motion: reduce) {
  #lead_text .lead_text__head,
  #lead_text .lead_text__line {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

#lead_text .lead_text__head {
  font-size: clamp(28px, 2.4vw, 46px);
}

#about_text {
  padding: 130px 0;
  color: #fff;
  background: var(--brand-blue);
  font-size: clamp(20px, 1.7vw, 32px);
  text-align: center;
}

#message_text {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: var(--text-blue);
  font-size: clamp(14px, 1.05vw, 20px);
}

#message_text .text_area {
  width: 40%;
  padding-left: 3%;
}

#message_text .text_area p {
  margin-bottom: 1em;
}

#message_text .img_area {
  width: 53%;
}

#message_text .img_area img {
  width: 100%;
  height: auto;
}

#message_text .img_area .pc_only {
  display: block;
}

#message_text .img_area .sp_only {
  display: none;
}

#news {
  position: relative;
  padding: 0;
  color: #fff;
  text-align: center;
}

#news > img {
  width: 100%;
  height: auto;
}

#news > .pc_only {
  display: block;
}

#news > .sp_only {
  display: none;
}

#news .news_content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#news ul li {
  margin-bottom: 20px;
  font-size: clamp(14px, 0.95vw, 18px);
}

#news ul li .news_item_link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

#news ul li .news_item_link:hover {
  opacity: 0.85;
}

#news ul li .news_item_link:hover .content {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#news ul li .category {
  border: 1px solid #fff;
  padding: 2px 10px;
  font-size: clamp(12px, 0.84vw, 16px);
}

.title {
  position: relative;
  margin-bottom: 30px;
  padding: 0 80px 12px;
  font-size: clamp(24px, 1.9vw, 36px);
}

.title span {
  display: block;
  font-size: clamp(10px, 0.63vw, 12px);
}

#news .title::after, #contact .title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120%;
  height: 1px;
  transform: translateX(-50%);
}

#news .title::after {
  background-color: #fff;
}

#contact .title::after {
  width: 97%;
}

#contact {
  padding: 60px 0;
  text-align: center;
}

#contact .title {
  display: inline-block;
}

#contact .title::after {
  background-color: #000;
}

#contact .telephone {
  font-size: clamp(22px, 1.78vw, 34px);
}

#contact .holiday {
  font-size: clamp(16px, 1.25vw, 24px);
}

footer {
  padding: 30px 0;
  color: #fff;
  background-color: var(--brand-blue);
  text-align: center;
}

#copyright {
  font-size: clamp(12px, 0.95vw, 18px);
}

@media (max-width: 900px) {
  .sp_only {
    display: revert;
  }

  .pc_only {
    display: none;
  }

  header {
    justify-content: space-between;
    padding: 20px 16px;
  }

  header h1 {
    margin-right: 0;
  }

  .nav-toggle {
    all: unset;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    z-index: 20;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: var(--brand-blue);
  }

  header nav {
    position: fixed;
    inset: 0;
    display: none;
    padding: 88px 16px 24px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    z-index: 15;
  }

  header nav.is-open {
    display: block;
  }

  header ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  header ul li a {
    font-size: 16px;
    display: block;
    padding: 8px 0;
  }

  #main_visual .main-visual-pc {
    display: none;
  }

  #main_visual .main-visual-sp {
    display: block;
    width: 100%;
    height: auto;
  }

  #lead_text {
    padding-top: 20%;
    font-size: 16px;
  }

  #about_text {
    font-size: 16px;
  }

  #message_text {
    flex-direction: column;
    align-items: center;
  }

  #message_text .text_area {
    width: 100%;
    padding: 10%;
    box-sizing: border-box;
  }

  #message_text .img_area {
    width: 100%;
  }

  #message_text .img_area .pc_only {
    display: none;
  }

  #message_text .img_area .sp_only {
    display: block;
  }

  #news {
    padding: 0;
    background: transparent;
  }

  #news > .pc_only {
    display: none;
  }

  #news > .sp_only {
    display: block;
  }

  #news .news_content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 16px;
    box-sizing: border-box;
  }

  #news .title {
    padding: 0 16px 12px;
    margin-bottom: 24px;
  }

  #news ul {
    width: 100%;
    padding: 0 8px;
    box-sizing: border-box;
  }

  #news ul li {
    margin-bottom: 16px;
  }

  #news ul li .news_item_link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    width: 100%;
    text-align: left;
    justify-content: stretch;
    align-items: center;
  }

  #news ul li .category {
    grid-column: 1;
    grid-row: 1;
  }

  #news ul li .date {
    grid-column: 2;
    grid-row: 1;
  }

  #news ul li .content {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

