@charset "UTF-8";

main {
  padding-bottom: 10rem;
  overflow: hidden;
}

[class^="sec__"] {
  position: relative;
  z-index: 1;
}

[class^="sec__"]::after {
  content: "";
  position: absolute;
  background-color: var(--bg03-color);
  width: 100%;
  height: 100%;
  z-index: -1;
}

[class^="sec__"] h2 {
  font-size: 2.8rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

[class^="sec__"] .en {
  font-size: 1.2rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-align: center;
  color: var(--primary-color);
  text-align: center;
  margin: 1rem auto 0;
}

/* mainvisual */
hgroup {
  text-align: center;
  padding: 3rem 2rem 0;
}

hgroup h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 2.7rem;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  margin: 20px 0 0 0;
  font-size: 2.7rem;

  &.h1--en {
    line-height: 1.3;
    letter-spacing: 0.02em;
  }
}

hgroup p {
  font-size: 1.4rem;
  margin-top: 1rem;
}

.mainvisual {
  position: relative;
  background-image: url(/img/renewal/mainvisual__bg-sp.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.mainvisual__inner {
  position: relative;
  height: 369px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

/* アニメーション */
.splide__slide {
  filter: blur(4px);
  opacity: 0;
}

.loaded .splide__slide {
  filter: none;
  opacity: 1;
}

.loaded :is(.splide--front-01, .splide--back-01) {
  transition: 0.5s ease-in-out 0.3s;
}

.loaded :is(.splide--front-02, .splide--middle-01) {
  transition: 0.5s ease-in-out 0.6s;
}

.loaded :is(.splide--front-03, .splide--middle-02) {
  transition: 0.5s ease-in-out 0.9s;
}

.loaded :is(.splide--front-04) {
  transition: 0.5s ease-in-out 1.2s;
}

.splide--back-01 figure {
  width: calc(353px / 2);
  margin: 130px 15px 0 375px;
  padding-bottom: 50px;
}

.splide--front-01 figure {
  width: calc(447px / 2);
  margin: 70px 0 0 50px;
}

.splide--front-02 figure {
  width: calc(356px / 2);
  margin: 60px 0 0 100px;
}

.splide--front-03 figure {
  width: calc(356px / 2);
  margin: 60px 0 0 50px;
}

.splide--middle-01 figure {
  width: calc(189px / 2);
  margin: 50px 0 0 calc(375px / 2);
}

.splide--middle-02 figure {
  width: calc(189px / 2);
  margin: 200px 0 0 calc(375px / 2);
}

/* 画像ぼかし */
.splide--back-01 figure img {
  filter: blur(10px);
}

.splide--back,
.splide--back--sp,
.splide--middle,
.splide--middle--sp,
.splide--front,
.splide--front--sp {
  position: absolute;
  top: 0;
  left: 0;
}

/* お知らせ・今後の予定 */
.sec__notice {
  padding: 0 2rem 4rem;
}

.sec__notice::after {
  top: 2rem;
  left: -4rem;
  display: block;
  border-radius: 0 50px 50px 0;
}

.sec__notice h2 {
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  text-align: left;
}

.sec__notice .en {
  text-align: left;
}

[class^="blog__"] {
  background-color: #fff;
  border-radius: var(--radius);
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 2rem;
}

[class^="blog__"] ul li:not(:last-child) {
  border-bottom: solid 1px var(--border-color);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.group__schedule {
  margin-top: 5rem;
}

.sec__notice .date {
  font-size: 1.3rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.sec__notice .date .tag {
  display: inline-block;
  border: solid 1px var(--primary-color);
  border-radius: calc(var(--radius) / 2);
  font-size: 1.3rem;
  font-weight: normal;
  padding: 0.1rem 0.5rem;
}

.sec__notice .title {
  margin-top: 0.5rem;
}

.sec__notice .title a {
  font-size: 1.5rem;
  color: #333;
  text-decoration: underline;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.sec__notice .title a:active {
  color: var(--primary-color);
  text-decoration: none;
}

.blog__schedule .date {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.more__list--group {
  display: flex;
  justify-content: flex-end;
}

.more__list--block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.more__list--li:not(:first-of-type) {
  margin-top: 0.5rem;
}

.more__list--link {
  position: relative;
  font-size: 1.5rem;
  line-height: 2;
  color: #333;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 8px;
  margin-top: 2rem;
  padding-left: 2rem;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.more__list--link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 8px;
  height: 8px;
  border-top: 3px solid var(--primary-color);
  border-right: 3px solid var(--primary-color);
  transform: translateY(-50%) rotate(45deg);
}

.more__list--link:active {
  color: var(--primary-color);
  text-decoration: none;
}

/* ギャラリー */
.sec__gallery {
  margin-top: 10rem;
  padding: 0 2rem 4rem;
}

.sec__gallery::after {
  top: 2rem;
  left: 4rem;
  display: block;
  border-radius: 50px 0 0 50px;
}

.gallery__group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.gallery__group button {
  width: calc(50% - (1rem / 2));
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.gallery__group button img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.modal-trigger-button:active img {
  transform: scale(1.1);
}

.gallery__more--button {
  width: 14.5rem;
  margin: 3rem auto 0;
}

.gallery__more--link {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  border: solid 1px var(--primary-color);
  border-radius: calc(var(--radius) - 4px);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  padding: 1.5rem 0;
  position: relative;
  overflow: hidden;
  transition: border 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  z-index: 1;
}

.gallery__more--link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(22, 51, 125, 1) 0%, rgba(32, 66, 151, 1) 100%);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.modal-trigger-button {
  cursor: pointer;
}

/* モーダルコンテンツ */
#gallery-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;

  .modal-content {
    border: none;
    box-shadow: none;
    border-radius: var(--radius);
  }

  .modal-body {
    padding: 0;
  }
}

#gallery-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  position: relative;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  max-width: calc(100% - 3rem);
  width: 100%;
  max-height: calc(100% - 3rem);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  z-index: 1001;
}

#gallery-modal.is-visible .modal-content {
  transform: translateY(0);
}

.modal-close-button {
  position: absolute;
  top: -15px;
  right: -10px;
  background-color: #fff;
  border: solid 1px #afafaf;
  border-radius: 100px;
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  z-index: 1002;
}

.gallery-content figure {
  margin: 0;
}

.gallery-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.gallery-content figure figcaption {
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  margin-top: 1rem;
}

.gallery-content figure p {
  font-size: 1.2rem;
  color: #333;
  margin: 0.75rem 0 0;
}

/* タブレット */
@media screen and (min-width: 768px) {
  [class^="sec__"] h2 {
    font-size: 3rem;
    font-weight: 700;
  }

  [class^="blog__"] {
    margin-top: 1.5rem;
  }

  hgroup h1 {
    font-size: 4rem;
    margin: 0;
  }

  hgroup p {
    font-size: 1.5rem;
  }

  .mainvisual {
    background-image: url(/img/renewal/mainvisual__bg-pc.png);
  }

  .sec__notice::after {
    top: 2.5rem;
  }

  .sec__gallery::after {
    top: 2.5rem;
  }

  .gallery__group {
    gap: 2rem;
  }

  .gallery__group button {
    width: calc(50% - (2rem / 2));
  }
}

@media screen and (min-width: 1138px) {
  [class^="sec__"] h2 {
    font-size: 3.6rem;
  }

  main {
    padding-bottom: 15rem;
  }

  .mainvisual__inner {
    height: 701px;
    margin-top: 5rem;
  }

  hgroup h1 {
    font-size: 5.2rem;
    letter-spacing: 0.15em;
  }

  hgroup p {
    font-size: 1.8rem;
    line-height: 2;
  }

  /* アニメーション */
  .loaded :is(.splide--back-01, .splide--front-01) {
    transition: 0.5s ease-in-out 0.3s;
  }

  .loaded .splide--back-02 {
    transition: 0.5s ease-in-out 0.45s;
  }

  .loaded :is(.splide--front-02, .splide--middle-01) {
    transition: 0.5s ease-in-out 0.6s;
  }

  .loaded :is(.splide--front-03, .splide--middle-02) {
    transition: 0.5s ease-in-out 0.75s;
  }

  .loaded :is(.splide--front-04) {
    transition: 0.5s ease-in-out 0.9s;
  }

  .splide--back-01 figure {
    width: 338px;
    margin: 170px 15px 0 375px;
  }

  .splide--back-02 figure {
    width: 332px;
    margin: 40px 0 0 400px;
    padding: 50px 0;
  }

  .splide--front-01 figure {
    width: 383px;
    margin: 0 0 0 100px;
  }

  .splide--front-02 figure {
    width: 509px;
    margin: 100px 0 0 100px;
  }

  .splide--front-03 figure {
    width: 481px;
    margin: 50px 0 0 100px;
  }

  .splide--front-04 figure {
    width: 383px;
    margin: 0 0 0 100px;
  }

  .splide--middle-01 figure {
    width: 201px;
    margin: 0 0 0 50vw;
  }

  .splide--middle-02 figure {
    width: 201px;
    margin: 235px 0 0 50vw;
  }

  /* 画像ぼかし */
  .splide--back-01 figure img,
  .splide--back-02 figure img {
    filter: blur(10px);
  }

  .sec__notice {
    display: flex;
    justify-content: space-between;
    max-width: var(--contents-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 0 4rem;
  }

  .sec__notice::before {
    content: "";
    position: absolute;
    top: 3rem;
    left: calc(50% - 50vw);
    background-color: var(--bg03-color);
    width: 50vw;
    height: 100%;
    z-index: -1;
  }

  .sec__notice::after {
    top: 3rem;
    left: -10rem;
  }

  .sec__notice [class^="group__"] {
    width: 52rem;
  }

  [class^="blog__"] {
    padding: 4rem 5rem;
  }

  .sec__notice .date {
    font-size: 1.4rem;
  }

  [class^="sec__"] .en {
    font-size: 1.5rem;
  }

  [class^="blog__"] ul li:not(:last-child) {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .sec__notice .date .tag {
    font-size: 1.4rem;
  }

  .sec__notice .title a {
    font-size: 1.6rem;
  }

  .sec__notice .title a:hover {
    color: var(--primary-color);
    text-decoration: none;
  }

  .group__schedule {
    margin-top: 0;
  }

  .more__list--link {
    font-size: 1.6rem;
  }

  .more__list--link::before {
    top: calc(50% + 1px);
  }

  .more__list--link:hover {
    color: var(--primary-color);
    text-decoration: none;
  }

  .sec__gallery {
    max-width: var(--contents-width);
    width: 100%;
    margin: 10rem auto 0;
    padding: 0 0 4rem;
  }

  .sec__gallery::before {
    content: "";
    position: absolute;
    top: 3rem;
    right: calc(50% - 50vw);
    background-color: var(--bg03-color);
    width: 50vw;
    height: 100%;
    z-index: -1;
  }

  .sec__gallery::after {
    top: 3rem;
    left: 10rem;
  }

  .gallery__group {
    gap: 3rem;
  }

  .gallery__group button {
    width: 26.2rem;
  }

  .modal-trigger-button:hover img {
    transform: scale(1.1);
  }

  .gallery__more--link {
    font-size: 1.8rem;
  }

  .gallery__more--link:hover {
    border: solid 1px var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
  }

  .gallery__more--link:hover::after {
    opacity: 0;
  }

  /* モーダルコンテンツ */
  .modal-content {
    max-width: 69rem;
    width: 100%;
    padding: 2.5rem;
  }

  .gallery-content figure figcaption {
    margin-top: 1rem;
  }

  .gallery-content figure p {
    font-size: 1.5rem;
  }

  .modal-close-button {
    top: -30px;
    right: -30px;
    font-size: 3rem;
    font-weight: 500;
    width: 6rem;
    height: 6rem;
  }

  /* スクロールバー対策 */
  body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
  }

  body.modal-open header {
    width: 100vw;
    padding: 2rem calc(3rem + var(--scrollbar-width)) 0 3rem;
  }

  body.modal-open main {
    width: 100vw;
    padding-right: var(--scrollbar-width);
  }

  body.modal-open footer {
    width: 100vw;
    padding-right: var(--scrollbar-width);
  }

  body.modal-open .sec__gallery::before {
    right: calc(50% - 50vw - var(--scrollbar-width));
    width: calc(50vw + var(--scrollbar-width));
  }
}