.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1440/900;
}

@media (max-width: 767px) {
  .hero-image {
    aspect-ratio: 375/704;
  }
}

/* Hero Scroll Hint */
.hero {
  position: relative;
}

.hero-scroll {
  position: absolute;
  bottom: min(2.9vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  width: min(6.5vw, 90px);
  height: min(6.5vw, 90px);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 min(0.3vw, 4px) min(0.7vw, 10px) rgba(0, 0, 0, 0.1);
  opacity: 0;
  animation: heroScrollFadeIn 1s ease-out 8s forwards;
}

.hero-scroll-text {
  color: #a474d7;
  font-family: "Noto Serif JP", serif;
  font-size: min(1.1vw, 16px);
  font-weight: 700;
  margin-bottom: min(10px, 0.7vw);
}

.hero-scroll-arrow {
  width: min(0.9vw, 12px);
  height: min(0.9vw, 12px);
  border-right: 2px solid #a474d7;
  border-bottom: 2px solid #a474d7;
  transform: rotate(45deg);
  margin-top: min(0.3vw, 4px);
  animation: arrowDown 2s infinite;
}

@keyframes heroScrollFadeIn {
  from {
    opacity: 0;
    bottom: min(1.6vw, 22px);
  }
  to {
    opacity: 1;
    bottom: min(3.2vw, 44px);
  }
}

@keyframes arrowDown {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(min(-0.4vw, -5px), min(-0.4vw, -5px));
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(min(0.4vw, 5px), min(0.4vw, 5px));
  }
}

@media (max-width: 767px) {
  .hero-scroll {
    bottom: 5.3vw;
    width: 18.6vw;
    height: 18.6vw;
    animation: heroScrollFadeInMobile 1s ease-out 8s forwards;
    box-shadow: 0 min(0.3vw, 4px) min(0.7vw, 10px) rgba(0, 0, 0, 0.1);
  }

  @keyframes heroScrollFadeInMobile {
    from {
      opacity: 0;
      bottom: 0px;
    }
    to {
      opacity: 1;
      bottom: 5.3vw;
    }
  }

  .hero-scroll-text {
    font-size: 3.1vw;
    margin-bottom: 3vw;
  }
  .hero-scroll-arrow {
    width: 2.2vw;
    height: 2.2vw;
    margin-top: 0.6vw;
    animation: arrowDownMobile 2s infinite;
  }
  @keyframes arrowDownMobile {
    0% {
      opacity: 0;
      transform: rotate(45deg) translate(-1vw, -1vw);
    }
    50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: rotate(45deg) translate(1vw, 1vw);
    }
  }
}

/* お知らせ */
.news .container {
  padding: 160px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 76.38vw;
}

@media (min-width: 2000px) {
  .news .container {
    max-width: 1527px;
  }
}

.news-title {
  position: absolute;
  top: 85px;
  left: 0;
  transform: translateX(-85%);
  display: flex;
}

.news-title h2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 46px;
  margin: 0;
  font-weight: 500;
  line-height: 1;
  font-family: "Noto Serif JP", "serif";
}

.news-title span {
  font-size: 24px;
  color: #6894d1;
  font-weight: 300;
  padding-top: 0.25em;
  font-family: "Noto Sans JP", "sans-serif";
}

.news-list {
  display: flex;
  flex-direction: column;
  width: 87%;
  max-width: 957px;
  height: fit-content;
}

.news-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 45px;
}

.news-item-hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-bottom: 0;
  transition: margin-bottom 0.4s ease-out, max-height 0.4s ease-out, opacity 0.3s ease-out;
}

.news-item-hidden.show {
  max-height: 1000px;
  opacity: 1;
  margin-bottom: 45px;
}

.news-item-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 1em 0.5em 1em;
  border-bottom: 1px solid #999;
}

.news-item-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  margin-bottom: 0.25em;
  transform: translateX(-0.5em);
}

.news-item-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.news-item-date {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: #999;
  padding: 0.25em 1em 0 1em;
}

.news-toggle-btn {
  display: block;
  margin: 0 auto;
  padding: 15px 40px;
  color: #6894d1;
  background-color: #fff;
  border: 1px solid #6894d1;
  cursor: pointer;
  font-size: 20px;
  position: relative;
}

.news-toggle-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0;
  width: 2em;
  height: 1px;
  background-color: #6894d1;
  transition: transform 0.3s ease;
}

.news-toggle-btn:hover {
  opacity: 0.8;
}

.news-toggle-btn:hover::before {
  transform: translate(-30%, -50%);
}

@media (max-width: 767px) {
  .news .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6vw 0 4vw;
    max-width: 90% !important;
  }
  .news-title {
    position: relative;
    transform: translateX(0);
    top: 0;
    left: 0;
  }

  .news-item-content {
    padding-left: 0;
    padding-right: 0;
  }

  .news-title h2 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    font-size: 7.5vw;
  }
  .news-title span {
    font-size: 3.8vw;
    margin-top: 1vw;
  }
  .news-list {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8vw;
  }
  .news-toggle-btn {
    font-size: 5vw;
    margin-top: 2vw !important;
    padding: 3vw 10vw !important;
  }
  .news-item-title {
    font-size: 3.8vw;
    padding: 0;
  }

  .news-item-text {
    font-size: 3.8vw;
    padding: 0;
    line-height: 1.4;
  }

  .news-item-date {
    font-size: 3.8vw;
    padding-left: 0;
    padding-right: 0;
  }
}

/* 私たちについて */

.about {
  background-color: white;
  padding: 320px 0 20px;
  margin-top: -130px;
}

.about .container {
  max-width: 76.38vw;
  position: relative;
}

.about-title {
  position: absolute;
  top: calc(((100vw - 1440px) / 2) * 0.2 - 155px);
  left: 0;
  transform: translateX(-85%);
  display: flex;
  z-index: 2;
}

.about-item-content {
  position: relative;
}

.about-bg {
  content: "";
  position: absolute;
  top: -440px;
  left: calc(((100vw - 1440px) / 2) * 0.7638 - 650px);
  width: 930px;
  aspect-ratio: 930/816;
  background-image: url(../img/top/about-bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.about-item:nth-of-type(3) .about-bg {
  top: -300px;
}

@media (min-width: 2000px) {
  .about-bg {
    left: -436px;
  }
}

.about-title h2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 46px;
  margin: 0;
  font-weight: 500;
  line-height: 1;
  font-family: "Noto Serif JP", "serif";
}

.about-title span {
  font-size: 24px;
  color: #6894d1;
  font-weight: 300;
  padding-top: 0.25em;
  font-family: "Noto Sans JP", "sans-serif";
}

.about-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8.6vw;
  gap: 35px;
}

.about-item::before {
  content: "";
  position: absolute;
  top: 3vw;
  left: -6vw;
  width: 70%;
  height: 100%;
  background-color: #f0f4fa;
}

.about-item:nth-of-type(2n) {
  flex-direction: row-reverse;
}

.about-item:nth-of-type(2n)::before {
  left: unset;
  right: -6vw;
}

.about-item-content {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 280px;
}

.about-item-title {
  font-size: max(2.2vw, 20px);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  margin-top: 2vw;
  white-space: nowrap;
  font-family: "Noto Serif JP", "serif";
  position: relative;
  z-index: 2;
}

.about-item-text {
  font-size: max(1.1vw, 14px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  margin-top: 2vw;
  line-height: 1.8;
  position: relative;
  z-index: 2;
}

.about-item-image {
  height: 29.58vw;
  margin-right: -11.81vw;
  position: relative;
  z-index: 1;
}

.about-item:nth-of-type(2n) .about-item-image {
  margin-right: unset;
  margin-left: -11.81vw;
}

.about-item-link {
  font-size: max(1.25vw, 12px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  text-decoration: none;
  color: #000;
  position: absolute;
  bottom: -60px;
  right: 30px;
  z-index: 2;
}

.about-item-link::after {
  content: "";
  position: absolute;
  right: -1.5em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2em;
  height: 1.2em;
  border: 1.5px solid #000;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.about-item-link:before {
  content: "";
  position: absolute;
  right: -1em;
  top: 50%;
  width: 0.4em;
  height: 0.4em;
  border-top: 1.5px solid #000;
  border-right: 1.5px solid #000;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s ease;
}

.about-item-link:hover::before {
  transform: translate(0.5em, -50%) rotate(45deg);
}

.about-item-link:hover::after {
  transform: translate(0.5em, -50%);
}

@media (min-width: 2000px) {
  .about-item-image {
    height: 591px;
    margin-right: -236px;
  }

  .about-item:nth-of-type(2n) .about-item-image {
    margin-right: unset;
    margin-left: -236px;
  }

  .about .container {
    max-width: 1527px;
  }

  .about-title {
    top: -100px;
  }

  .about-item {
    margin-bottom: 172px;
    gap: 50px;
  }

  .about-item::before {
    top: 60px;
    left: -120px;
  }
  .about-item:nth-of-type(2n)::before {
    right: -120px;
  }
  .about-item-title {
    font-size: 44px;
  }

  .about-item-text {
    font-size: 22px;
  }
  .about-item-link {
    font-size: 25px;
    bottom: -80px;
    right: 50px;
  }
}

@media (max-width: 1920px) and (min-width: 1441px) {
  .about-item:nth-of-type(1) .about-bg {
    width: 48.4vw;
    left: -28vw;
    top: -22vw;
  }
  .about-item:nth-of-type(3) .about-bg {
    width: 48.4vw;
    left: -28vw;
    top: -15vw;
  }
}

@media (max-width: 1440px) {
  .about {
    overflow: hidden;
  }

  .about-item:nth-of-type(1) .about-bg {
    width: 48.4vw;
    left: -28vw;
    top: -22vw;
  }
  .about-item:nth-of-type(3) .about-bg {
    width: 48.4vw;
    left: -28vw;
    top: -14vw;
  }
  .about-item {
    gap: 2vw;
  }
  .about-item-link {
    bottom: -4vw;
    right: 2vw;
  }
}

@media (max-width: 767px) {
  .about {
    padding: 4vw 0 0vw;
    margin-top: 0;
  }
  .about .container {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .about-title {
    position: relative;
    transform: translateX(0);
    top: 0;
    left: 0;
    margin-bottom: 8vw;
  }

  .about-title h2 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    font-size: 7.5vw;
  }

  .about-title span {
    font-size: 3.8vw;
    margin-top: 1vw;
  }

  .about-item {
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center;
    margin-bottom: 12vw !important;
  }

  .about-item-image {
    margin-right: 0 !important;
    margin-left: 5vw !important;
    width: 95vw !important;
    aspect-ratio: 356/296;
    height: auto !important;
  }
  .about-item:nth-of-type(2n) .about-item-image {
    margin-right: 5vw !important;
    margin-left: 0 !important;
  }

  .about-item-content {
    align-items: center !important;
    width: 80% !important;
    min-width: unset !important;
  }

  .about-item::before {
    width: 95vw !important;
    right: 5vw !important;
    left: unset !important;
    height: 60%;
    top: unset;
    bottom: 0;
  }
  .about-item:nth-of-type(2n)::before {
    right: unset !important;
    left: 5vw !important;
  }
  .about-item-link {
    position: relative !important;
    bottom: unset !important;
    right: unset !important;
    z-index: 2 !important;
    margin-top: 3vw !important;
  }

  .about-bg {
    display: none !important;
  }

  .about-item-title {
    font-size: 5.3vw !important;
  }
  .about-item-text {
    font-size: 3.6vw !important;
    text-align: center !important;
    font-weight: 300;
  }
  .about-item-link {
    font-size: 4.2vw !important;
    text-align: center;
    font-weight: 300;
    margin-bottom: 4vw;
  }
  .about-item-link::after {
    border-width: 0.3vw;
  }
  .about-item-link:before {
    border-width: 0.3vw;
  }
}

/*  */

.topics {
  padding: 120px 0 120px 0;
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

.topics::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(((100vw - 1440px) / 2));
  aspect-ratio: 1101/689;
  width: 1101px;
  background-image: url(../img/top/topics-bg.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  -webkit-clip-path: polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
  clip-path: polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
  transition: clip-path 1s ease-out;
  z-index: 0;
}

.topics.visible::before {
  -webkit-clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
}

.topics::after {
  content: "";
  position: absolute;
  bottom: 60px;
  left: calc((50% + 100px));
  transform: translateX(-50%);
  aspect-ratio: 1137/613;
  width: 1137px;
  background-image: url(../img/top/external-bg-2.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  -webkit-clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 100% 0%);
  clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 100% 0%);
  transition: clip-path 1s ease-out;
  z-index: 0;
}

.topics.bg2-visible::after {
  -webkit-clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%);
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%);
}

.topics .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 76.38vw;
  z-index: 1;
}

@media (min-width: 2000px) {
  .topics .container {
    max-width: 1527px;
  }
}

.topics-content {
  width: 87%;
  max-width: 957px;
}

.topics-title-left {
  position: absolute;
  top: -35px;
  left: 0;
  transform: translateX(-85%);
  display: flex;
}

.topics-title-left h2 {
  margin: 0;
  line-height: 1;
  z-index: 2;
  font-family: "Noto Serif JP", "serif";
  font-weight: 500;
  font-size: 46px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.topics-title-left span {
  font-size: 24px;
  color: #6894d1;
  font-weight: 300;
  padding-top: 0.25em;
  font-family: "Noto Sans JP", "sans-serif";
}

.topics-title {
  font-size: 36px;
  margin: 0;
  font-weight: 700;
  margin-bottom: 25px;
  font-family: "Noto Serif JP", "serif";
}

.topics-title-2 {
  margin-top: 40px;
}
.topics-text {
  font-size: 18px;
  margin: 0;
  margin-bottom: 40px;
  line-height: 1.6;
}
.topics-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.topics-item {
  display: flex;
  position: relative;
  aspect-ratio: 465/478;
  width: 48.5%;
}

.topics-item:hover .topics-item-content {
  background-color: rgba(104, 148, 209, 0.75);
  color: #fff;
}

.topics-item:hover .topics-item-arrow {
  filter: brightness(0) invert(1);
  transform: translate(0.5em, -50%);
}

.topics-item-image {
  width: 100%;
}
.topics-item-content {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  color: #000;
  padding: 20px 22% 20px 6%;
  transition: all 0.3s ease;
}

.topics-item-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 4%;
  width: 18.5%;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.topics-item-title {
  font-size: 23px;
  margin: 0;
  font-weight: 400;
  margin-bottom: 15px;
  font-family: "Noto Serif JP", "serif";
  line-height: 1;
}
.topics-item-text {
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 1200px) {
  .topics::after {
    bottom: 0;
  }
}

@media (max-width: 767px) {
  .topics {
    padding: 11vw 0 17vw !important;
    background-size: 120vw auto !important;
    background-position: top 0vw right 0vw !important;
  }
  .topics::before {
    width: 100vw !important;
    left: unset !important;
    right: 0 !important;
    top: 0 !important;
  }
  .topics::after {
    width: 136vw !important;
    left: 3vw !important;
    bottom: 100vw !important;
    transform: translateX(0%);
  }
  .topics .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90% !important;
    max-width: 90% !important;
  }
  .topics-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .topics-title-left {
    position: relative;
    transform: translateX(0);
    top: 0;
    left: 0;
  }
  .topics-title-left h2 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    font-size: 7.5vw;
  }
  .topics-title-left span {
    font-size: 3.8vw;
    margin-top: 1vw;
  }
  .topics-title {
    text-align: center;
  }
  .topics-text {
    text-align: center;
    width: 100% !important;
    font-size: 3.8vw;
    margin-top: 4vw;
    font-weight: 300;
    margin-bottom: 4vw;
  }
  .topics-list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5vw;
  }
  .topics-item {
    width: 100% !important;
  }
  .topics-title {
    font-size: 5.3vw;
    margin-top: 6vw;
  }

  .topics-item-title {
    font-size: 4.5vw;
    margin-bottom: 2vw;
  }
  .topics-item-text {
    font-size: 3.6vw;
  }
  .topics-item-arrow {
    width: 15%;
  }
  .topics-item {
    aspect-ratio: unset;
  }
  .topics-title-2 {
    margin-top: 20vw;
  }
  .topics-title-2 + .topics-text {
    text-align: left;
  }
}

/* カレンダー */
.calendar {
  background-color: #f0f4fa;
  padding: 100px 0 80px;
  position: relative;
  max-width: 100vw;
  overflow: hidden;
}

.calendar-bg {
  position: absolute;
  top: 50%;
  right: calc(((100vw - 1440px) / 2) - 500px);
  transform: translateY(-50%);
  height: 804px;
  aspect-ratio: 928/804;
  max-height: 100%;
  background-image: url(../img/top/calendar-bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.calendar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 76.38vw;
}

.calendar-title {
  position: absolute;
  top: -40px;
  left: 0;
  transform: translateX(-85%);
  display: flex;
}

.calendar-title h2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 46px;
  margin: 0;
  font-weight: 500;
  line-height: 1;
  font-family: "Noto Serif JP", "serif";
  z-index: 2;
}

.calendar-title span {
  font-size: 24px;
  color: #6894d1;
  font-weight: 300;
  padding-top: 0.25em;
  font-family: "Noto Sans JP", "sans-serif";
}

.calendar iframe {
  aspect-ratio: 956/637;
  width: 87%;
  max-width: 956px;
  position: relative;
  z-index: 2;
}

@media (min-width: 2000px) {
  .calendar .container {
    max-width: 1527px;
  }
}

@media (max-width: 1440px) {
  .calendar-bg {
    right: -34.7vw;
  }
}

@media (max-width: 767px) {
  .calendar {
    padding: 2vw 0 5vw !important;
  }
  .calendar-bg {
    right: -90vw !important;
  }
  .calendar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
  }
  .calendar-title {
    position: relative;
    transform: translateX(0);
    top: 0;
    left: 0;
  }
  .calendar-title h2 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    font-size: 7.5vw;
  }
  .calendar-title span {
    font-size: 3.8vw;
    margin-top: 1vw;
  }
  .calendar iframe {
    width: 92% !important;
    margin-top: 5vw;
    aspect-ratio: 1/1;
  }
}

/* 外部リンク */
.external {
  padding: 115px 0;
  overflow: hidden;
  position: relative;
}

.external::before {
  content: "";
  position: absolute;
  bottom: -170px;
  left: calc(((100vw - 1440px) / 2) - 300px);
  width: 732px;
  aspect-ratio: 732/421;
  background-image: url(../img/top/external-bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-clip-path: polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
  clip-path: polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
  transition: clip-path 1.2s ease-out;
}

.external.visible::before {
  -webkit-clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
  clip-path: polygon(0% 0%, 0% 100%, 100% 100%, 100% 0%);
}

.external .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 76.38vw;
  gap: 40px;
}

@media (min-width: 2000px) {
  .external .container {
    max-width: 1527px;
  }
}

.external-title {
  position: absolute;
  top: -40px;
  left: 0;
  transform: translateX(-85%);
  display: flex;
}

.external-title h2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 46px;
  margin: 0;
  font-weight: 500;
  line-height: 1;
  font-family: "Noto Serif JP", "serif";
  z-index: 2;
}

.external-title span {
  font-size: 24px;
  color: #6894d1;
  font-weight: 300;
  padding-top: 0.25em;
  font-family: "Noto Sans JP", "sans-serif";
}

.external-content {
  width: 87%;
  max-width: 957px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.external h3 {
  font-size: 36px;
  margin: 0;
  text-align: center;
  font-family: "Noto Serif JP", "serif";
  position: relative;
}
@media screen and (max-width: 1440px) {
  .external h3 {
    font-size: 2.7vw;
  }
}

.external h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1em;
  width: 1px;
  height: 130%;
  background-color: #000;
  transform: translateX(-50%) rotate(-25deg);
}

.external h3::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1em;
  width: 1px;
  height: 130%;
  background-color: #000;
  transform: translateX(-50%) rotate(25deg);
}

.external-item-link-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 9%;
  width: 100%;
  margin-top: 70px;
}

.external-item-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #000;
  border: 1px solid #000;
  padding-right: 6%;
  border-radius: 4px;
  margin-bottom: 1em;
  width: 43.5%;
  height: 108px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
}

.external-item-link:hover {
  opacity: 0.6;
}

.external-item-link::after {
  content: "";
  position: absolute;
  right: 1.6em;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.5em;
  height: 2.5em;
  border: 1px solid #000;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.external-item-link:before {
  content: "";
  position: absolute;
  right: 3.6em;
  top: 50%;
  width: 0.7em;
  height: 0.7em;
  border-top: 1px solid #000;
  border-right: 1px solid #000;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 0.3s ease;
}

.external-item-link:hover::before {
  transform: translate(calc(1em - 50%), -50%) rotate(45deg);
}

.external-item-link:hover::after {
  transform: translate(calc(1em - 50%), -50%);
}

.external-item-link:first-child img {
  width: 54px;
  height: 54px;
  margin-right: 6%;
}

.external-item-link:last-child img {
  width: 65px;
  height: 45px;
  margin-right: 6%;
}

.external-item-link p {
  font-size: 37px;
  margin: 0;
  font-family: "Noto Serif JP", "serif";
}

.link-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 929px;
  height: fit-content;
  margin-top: 20px;
}

.link-item {
  font-size: 22px;
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #ddd;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  position: relative;
  padding: 0.8em 3.5em;
  margin-bottom: 20px;
  line-height: 1.4;
}

.link-item::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 1.5em;
  width: 1em;
  height: 1.5px;
  background-color: #000;
  transition: all 0.3s ease;
}

.link-item:hover {
  color: #6894d1;
  border-bottom: 2px solid #6894d1;
}

.link-item:hover::before {
  background-color: #6894d1;
}

.link-item-hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  border: none;
  transition: all 0.4s ease-out;
}

.link-item-hidden.show {
  max-height: 1000px;
  opacity: 1;
  padding: 0.8em 3.5em;
  margin-bottom: 20px;
  border-bottom: 2px solid #ddd;
}

.link-toggle-btn {
  display: block;
  margin: 40px auto 0;
  padding: 15px 40px;
  color: #6894d1;
  background-color: #fff;
  border: 1px solid #6894d1;
  cursor: pointer;
  font-size: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.link-toggle-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  left: 0;
  width: 2em;
  height: 1px;
  background-color: #6894d1;
  transition: transform 0.3s ease;
}

.link-toggle-btn:hover {
  opacity: 0.8;
}

.link-toggle-btn:hover::before {
  transform: translate(-30%, -50%);
}

@media screen and (max-width: 1440px) {
  .external-item-link-list {
    margin-top: 4.8vw;
  }

  .external-item-link {
    text-decoration: none;
    color: #000;
    border: 1px solid #000;
    padding-right: 9%;
    border-radius: 4px;
    margin-bottom: 1em;
    width: 43.5%;
    height: 8vw;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
  }

  .external-item-link:hover {
    opacity: 0.6;
  }

  .external-item-link:first-child img {
    width: 15%;
    aspect-ratio: 1/1;
    height: auto;
    margin-right: 2vw;
  }

  .external-item-link:last-child img {
    width: 18%;
    aspect-ratio: 65/45;
    height: auto;
    margin-right: 2vw;
  }

  .external-item-link::after {
    right: 1.2vw;
    width: 2.8vw;
    height: 2.8vw;
  }

  .external-item-link:before {
    right: 3.4vw;
    width: 0.8vw;
    height: 0.8vw;
  }

  .external-item-link p {
    font-size: 2.56vw;
  }

  .link-list {
    max-width: 97%;
  }
}

@media (max-width: 767px) {
  .external {
    padding: 11vw 0 15vw !important;
  }
  .external::before {
    bottom: -10vw !important;
    left: -6vw !important;
    width: 50vw !important;
  }
  .external .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    gap: 6.5vw;
  }
  .external-title {
    position: relative;
    transform: translateX(0);
    top: 0;
    left: 0;
  }
  .external-title h2 {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    font-size: 7.5vw;
  }
  .external-title span {
    font-size: 3.8vw;
    margin-top: 1vw;
  }
  .external-content {
    width: 100% !important;
  }
  .external h3 {
    font-size: 5.8vw;
    line-height: 1.4;
  }
  .external-item-link-list {
    margin-top: 7vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3vw;
  }
  .external-item-link {
    width: 75.7% !important;
    height: 19.7vw !important;
    padding-right: 15vw !important;
  }
  .external-item-link:first-child img {
    width: 15% !important;
    margin-right: 5vw !important;
  }
  .external-item-link:last-child img {
    width: 18% !important;
    margin-right: 5vw !important;
  }
  .external-item-link p {
    font-size: 6.8vw !important;
  }
  .external-item-link:before {
    right: 8vw;
    width: 2.5vw;
    height: 2.5vw;
  }
  .external-item-link::after {
    right: 3vw;
    width: 7vw;
    height: 7vw;
  }
  .link-list {
    max-width: 88% !important;
    margin-top: 4vw !important;
  }
  .external h3::before {
    height: 100%;
    transform: translateX(-50%) rotate(-30deg);
    left: -1.2em;
  }
  .external h3::after {
    height: 100%;
    right: -1.2em;
    transform: translateX(-50%) rotate(30deg);
  }
  .link-item {
    font-size: 3.9vw !important;
    padding: 0.8em 1.2em 0.8em 3.2em !important;
    margin-bottom: 2vw !important;
  }
  .link-item::before {
    left: 6vw !important;
    width: 3vw !important;
  }
  .link-item:hover {
    color: #6894d1 !important;
  }
  .link-item:hover::before {
    background-color: #6894d1 !important;
  }
  .link-toggle-btn {
    font-size: 5vw;
    margin-top: 6vw !important;
    padding: 3vw 10vw !important;
  }
  .link-toggle-btn::before {
    width: 2em !important;
  }
  .link-toggle-btn:hover {
    opacity: 0.8 !important;
  }
  .link-toggle-btn:hover::before {
    transform: translate(-30%, -50%) !important;
  }
  .link-item-hidden {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .link-item-hidden.show {
    padding-top: 0.8em !important;
    padding-bottom: 0.8em !important;
    margin-bottom: 2vw !important;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.modal-container {
  position: relative;
  max-width: 780px;
  width: 90%;
  margin: 50px auto;
  background-color: #f0f4fa;
  z-index: 2;
  padding: 50px 70px;
  box-sizing: border-box;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 36px;
  color: #000;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  opacity: 0.7;
}

.modal-bg {
  position: absolute;
  top: 0;
  right: 5%;
  width: auto;
  height: 100%;
  transform: translateX(50%);
  aspect-ratio: 1/1;
  background-image: url(../img/top/calendar-bg.webp);
  background-size: auto 100%;
  background-position: left center;
  background-repeat: no-repeat;
  z-index: 0;
}

.modal-content {
  position: relative;
  z-index: 1;
}

.modal-title {
  color: #4c88c4;
  font-family: "Noto Serif JP";
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 1; /* 100% */
  border-bottom: 2px solid #6894d1;
  padding-bottom: 10px;
  margin-bottom: 30px;
  margin-top: 0;
}

.modal-image-box {
  width: 100%;
  margin-bottom: 30px;
}

.modal-image {
  width: 100%;
  height: auto;
  display: block;
}

.modal-text {
  color: #000;
  font-family: "Noto Serif JP";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.66; /* 166.667% */
}

.modal-text p {
  margin: 0;
}

@media (max-width: 767px) {
  .modal-container {
    width: 95%;
    padding: 4vw 6vw;
    margin: 4vw auto;
  }

  .modal-close {
    top: 3vw;
    right: 3vw;
    width: 7vw;
    height: 7vw;
    font-size: 6vw;
  }

  .modal-title {
    font-size: 5.5vw;
    margin-bottom: 4vw;
    padding-bottom: 2vw;
    border-bottom-width: 0.5vw;
  }

  .modal-image-box {
    margin-bottom: 4vw;
  }

  .modal-text {
    font-size: 3.7vw;
    line-height: 1.8;
  }
}

.topics-text-link {
  margin-top: 40px !important;
  margin-bottom: 8px !important;
}

.topics-text-link-image {
  display: block;
  max-width: 516px;
}

@media (max-width: 767px) {
  .topics-text-link {
    margin-top: 5vw !important;
    margin-bottom: 1vw !important;
    text-align: left;
  }
  .topics-text-link-image {
    max-width: 100%;
  }
}

.nav-brand-text h1 {
  font-size: 16px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 0.2em;
  transform: translateY(0.25em);
  margin-bottom: 0;
  font-weight: 400;
}

.nav-brand-text h1 span {
  font-size: 1.2em;
}