:root {
  --black: #000000;
  --white: #ffffff;
  --purple: #512D86;
  --blue: #42318f;
  --green: #3F8878;
  --gray: #eeeeee;
  --font-jp: "Zen Kaku Gothic Antique", sans-serif;
  --font-en: "Montserrat", sans-serif;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: clip;
  &:has(dialog[open]) {
    overflow: hidden;
  }
}
body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-jp);
  font-weight: 500;
}
img {
  display: block;
  max-width: 100%;
}
a,button {
  transition: opacity 0.3s ease;
  &:hover {
    opacity: 0.8;
  }
}
.full-bleed {
  display: block;
  height: auto;
  margin-left: calc(50% - 50vw);
  max-width: none;
  width: 100vw;
  @media (max-width: 1024px) {
    aspect-ratio: 39 / 20;
    object-fit: cover;
  }
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  border-radius: 4px;
  color: var(--white);  
  font-size: 18px;
  font-weight: 700;
  line-height: 1.9;
  width: fit-content;
  @media screen and (max-width: 1024px) {
    width: 100%;
    font-size: 14px;
  }
  span {
    display: block;
    font-size: 12px;
  }
  &:after {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: url('../assets/images/svg/arrow-white-down.svg') no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
  }
}
.button--hero {
  gap: 24px;
  padding: 11px 57px;  
  margin-top: 40px;
}

.button--hero-comment {
  color:#333;
  margin-top:10px;
  display:inline-block;
}

.button--event,
.button--blog {
  font-size: 16px;
  gap: 12px;
  padding: 8px 48px;  
  line-height: 1.4;
  max-width: calc(100% - 16px / 2);
  @media screen and (max-width: 1024px) {
    max-width: none;
    width: 100%;
  }
  &:after {
    background: url('../assets/images/svg/arrow-white.svg') no-repeat center center;
  }
}
.button--blog {
  min-width: 410px;
  max-width: 410px;
  @media screen and (max-width: 1024px) {
    min-width: initial;
    max-width: 100%;
  }
}
.pc-only {
  display: block !important;
  @media (max-width: 1024px) {
    display: none !important;
  }
}
main {
  margin: 0 auto;
  max-width: 1440px;
  @media (max-width: 1024px) {
    overflow-x: clip;
  }
}
.inner {
  align-items: flex-start;
  display: flex;
  gap: 64px;
  width: 100%;
  padding-inline: 16px;
  max-width: calc(1280px + 32px);
  margin: 0 auto;
  @media (max-width: 1024px) {
    flex-direction: column;
  }
}
.section-index {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-right: 40px;
  @media (max-width: 1024px) {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding-right: 0;
    padding-bottom: 12px;
    width: 100%;
    border-bottom: 1px solid #969899;
  }
  & .head {
    align-items: center;
    display: flex;
    gap: 12px;
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.02em;
    /* line-height: 2; */
    writing-mode: vertical-rl;  
    @media (max-width: 1024px) {
      writing-mode: horizontal-tb;
    }
    &:before {
      content: '';
      display: block;
      width: 24px;
      height: 24px;
      background: url('../assets/images/svg/circle.svg') no-repeat center center;
    }
  }
  & .num {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--green);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    @media (max-width: 1024px) {
      font-size: 28px;
      flex-direction: row;
      line-height: 1;
    }
    &:after {
      content: '';
      display: block;
      width: 1px;
      height: 80px;
      background: var(--black);
      @media (max-width: 1024px) {
        display: none;
      }
    }
  }  
}
header {
  align-items: center;
  border-bottom: 1px solid var(--gray);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  @media (max-width: 1024px) {
    gap: 20px;
    padding: 12px 0 0;
    flex-direction: column;
  }
  a {
    @media (max-width: 1024px) {
      margin: 0 auto;
    }
  }
  img {
    height: 78px;
    width: 179px;
    @media (max-width: 1024px) {
      height: 40px;
      width: 92px;
    }
  }
  nav {
    align-items: flex-end;
    display: flex;
    font-weight: 700;
    font-size: 16px;
    gap: 48px;
    @media (max-width: 1024px) {
      gap: 24px;
      font-size: 11px;
      justify-content: center;
      margin: 0 auto;
    }
    a {
      position: relative;
      line-height: 2;
      padding-bottom: 4px;
      &:hover::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 24px;
        height: 2px;
        background: var(--green);
        transform: translateX(-50%);
        @media (max-width: 1024px) {
          width: 20px;
        }
      }
    }
  }  
}
.hero {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr calc(823 / 1440 * 100%);
  position: relative;
  @media (max-width: 1024px) {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
    padding: 32px 16px 0;
  }
  &::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 49px;
    z-index: -1;
    width: 322px;
    height: 322px;
    border: 63.36px solid rgba(154, 116, 76, 0.1);
    border-radius: 50%;
    @media (max-width: 1024px) {
      display: none;
    }
  }
  &::after {
    content: "";
    position: absolute;
    top: 443px;
    left: 445px;
    z-index: -1;
    width: 100px;
    height: 100px;
    border: 19.68px solid rgba(63, 136, 120, 0.15);
    border-radius: 50%;
  }
  & .hero-text {
    padding: 0 40px 0 80px;
    width: 100%;
    @media (max-width: 1024px) {
      padding: 0;
    }
  }
  & h1 {
    font-size: 40px;
    font-weight: 700;
    /* letter-spacing: 0.04em; */
    line-height: 1.8;
    @media (max-width: 1024px) {
      font-size: 34px;
    }
  }
  & p {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 2.2;
    margin-top: 24px;
  }
  & img {
    height: auto;
    width: 100%;
  }
}

.button--hero.right-allow:after {
  background: url('../assets/images/svg/arrow-white.svg') no-repeat center center;
}

.concept {
  padding: 160px 0;
  position: relative;
  @media (max-width: 1024px) {
    padding: 88px 0;
  }
  &::before {
    content: "";
    position: absolute;
    top: -202px;
    right: -133px;
    z-index: -1;
    width: 435px;
    height: 435px;
    border: 85.59px solid rgba(154, 116, 76, 0.1);
    border-radius: 50%;
  }
  &::after {
    content: "";
    position: absolute;
    top: 447px;
    left: -137px;
    z-index: -1;
    width: 274px;
    height: 274px;
    border: 53.91px solid rgba(63, 136, 120, 0.1);
    border-radius: 50%;
  }
  & h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.8;
  }
  & .concept-body {
    display: grid;
    flex: 1;
    min-width: 0;
    grid-template-columns: calc(652 / 1136 * 100%) 1fr;
    gap: 64px;
    @media (max-width: 1024px) {
      grid-template-columns: 1fr;
      width: 100%;
    }
    & img {
      height: auto;
      width: 100%;
      @media (max-width: 1024px) {
        aspect-ratio: 358 / 400;
        object-fit: cover;
      }
    }
    & .concept-text {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
      height: 100%;
      p {
        line-height: 2.2;
        letter-spacing: 0.02em;
        & + p {
          margin-top: 32px;
        }
      }
      &::before {
        content: "";
        position: absolute;
        bottom: -60px;
        right: 0;
        z-index: -1;
        width: 120px;
        height: 120px;
        border: 23.61px solid rgba(154, 116, 76, 0.1);
        border-radius: 50%;
      }
      & img {
        aspect-ratio: unset;
        max-width: 128px;
        margin-top: 48px;
      } 
    }  
  }  
}
.events {
  padding: 160px 0 80px;
  @media (max-width: 1024px) {
    padding: 88px 0 44px;
  }
  & ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    @media (max-width: 1024px) {
      grid-template-columns: 1fr;
      gap: 24px;
      width: 100%;
    }
  }
  & li {
    background: var(--white);
    border: 1px solid #969899;
    padding: 40px;
    @media screen and (max-width: 1024px) {
      padding: 32px 20px;
    }
    &:first-child {
      position: relative;
      &::before {
        content: "";
        position: absolute;
        bottom: 145px;
        left: -150px;
        z-index: -1;
        width: 204px;
        height: 204px;
        border: 40.14px solid rgba(63, 136, 120, 0.1);
        border-radius: 50%;
        @media (max-width: 1024px) {
          bottom: auto;
          top: -160px;
          left: -90px;
        }
      }
    }
    &:last-child {
      position: relative;
      &::before {
        content: "";
        position: absolute;
        top: -70px;
        right: -42px;
        z-index: -1;
        width: 128px;
        height: 128px;
        border: 25.19px solid rgba(154, 116, 76, 0.1);
        border-radius: 50%;
      }
    }
  }
  & .event-tags {
    display: flex;
    gap: 16px;
  }
  & .tag {
    border: 1px solid var(--green);
    border-radius: 2px;
    font-size: 14px;
    font-weight: 700;
    line-height: 2;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
  }
  & .tag-outline {
    color: var(--green);
  }
  & .tag-solid {
    border: none;
    background: #9A744C;
    color: var(--white);
  }  
  & img {
    height: auto;
    width: 100%;
    aspect-ratio: 455 / 200;
    object-fit: cover;
    margin-top: 32px;
  }
  & .event-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
    margin-top: 24px;
  }
  & p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    margin-top: 16px;
  }
  dl {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    @media screen and (max-width: 1024px) {
      gap: 24px;
    }
    & div {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      @media screen and (max-width: 1024px) {
        flex-direction: column;
      }
    }
    & dt {
      border: 1px solid var(--green);
      border-radius: 999px;
      color: var(--green);
      flex-shrink: 0;
      font-size: 12px;
      font-weight: 500;
      line-height: 1;
      min-width: 74px;
      padding: 6px 12px;
      text-align: center;
    }
    & dd {
      line-height: 1.8;
      margin-top: -0.4em;
    }
    & div:first-child dd {
      font-size: 18px;
    }
    & div:last-child dd {
      font-size: 16px;
    }
  }
  & .event-more {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 2;
    margin-top: 16px;
    @media screen and (max-width: 1024px) {
      margin-top: 24px;
    }
    &:after {
      content: '';
      display: block;
      width: 16px;
      height: 16px;
      background: url('../assets/images/svg/arrow-black.svg') no-repeat center center;
      background-size: contain;
    }
  }  
  & .event-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    @media screen and (max-width: 1024px) {
      flex-direction: column;
    }
  }
}  
.access {
  padding: 80px 0;
  @media (max-width: 1024px) {
    padding: 44px 0;
  }
  .inner {
    @media (max-width: 1024px) {
      gap: 32px;
    }
  }
  .access-body {
    display: grid;
    grid-template-columns: 1fr calc(612 / 1136 * 100%);
    gap: 64px;
    width: 100%;
    position: relative;
    @media (max-width: 1024px) {
      grid-template-columns: 1fr;
    }
    &::before {
      content: "";
      position: absolute;
      top: -235px;
      right: -201px;
      z-index: -1;
      width: 403px;
      height: 403px;
      border: 79.29px solid rgba(63, 136, 120, 0.1);
      border-radius: 50%;
    }
    & img {
      height: auto;
      width: 100%;
      max-width: 280px;
      aspect-ratio: 28 / 21;
      object-fit: cover;
      margin-top: 73px;
      @media (max-width: 1024px) {
        margin: 32px auto 0;
      }
    }
  }
  & h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
  }
  & span {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 8px;
    font-weight: 400;
  }
  & ul {
    margin-top: 32px;
    & li {
      display: flex;
      gap: 8px;
      line-height: 1.8;
      letter-spacing: 0.02em;
      &::before {
        content: '';
        flex-shrink: 0;
        display: block;
        width: 32px;
        height: 32px;
        background: url('../assets/images/svg/train.svg') no-repeat center center;
      }
      &:last-child {
        &::before {
          background: url('../assets/images/svg/calendar.svg') no-repeat center center;
        }
      }
    }
    & + span {
      padding-left: calc(40px + 1em);
      text-indent: -1em;
      font-size: 12px;
      line-height: 1.8;
      color: #969899;
      margin-top: 4px;
      @media (max-width: 1024px) {
        padding-left: 40px;
        text-indent: 0;
      }
    }
  }
  & iframe {
    display: block;
    aspect-ratio: 612 / 500;
    width: 100%;
    height: auto;
    border: 0;
  }
}
.about {
  padding: 80px 0 160px;
  position: relative;
  @media (max-width: 1024px) {
    padding: 44px 0 88px;
  }
  &::before {
    content: "";
    position: absolute;
    bottom: -243px;
    left: -173px;
    z-index: -1;
    width: 403px;
    height: 403px;
    border: 79.29px solid rgba(154, 116, 76, 0.1);
    border-radius: 50%;
  }
  & button {
    display: flex;
    width: 100%;
    max-width: 1136px;
    margin-left: auto;
    position: relative;
    @media (max-width: 1024px) {
      max-width: none;
      flex-direction: column;
    }
    & img {
      flex-shrink: 0;
      @media (max-width: 1024px) {
        width: 100%;
        height: auto;
      }
    }
    & div {
      flex: 1;
      text-align: center;
      background: linear-gradient(73.81deg, #42318F 46.9%, #E60027 100.84%);
      color: var(--white);
      font-size: 28px;
      font-weight: 700;
      line-height: 2;  
      display: flex;
      align-items: center;
      justify-content: center;
      @media (max-width: 1024px) {
        font-size: 18px;
        padding: 32px 44px;
      }
    }
    &::before {
      content: "";
      position: absolute;
      top: 34px;
      right: 34px;
      width: 20px;
      height: 20px;
      background-image: url('../assets/images/svg/icon-open.svg') ;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
    }
  }
}
.about-dialog {
  outline: none;
  container-type: inline-size;
  width: auto;
  max-width: 100vw;
  height: min(90svh, calc(100vw * 106 / 90));
  max-height: 90svh;
  aspect-ratio: 80 / 106;
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background-image: url("../assets/images/top/08.png");
  background-image: image-set(
    url("../assets/images/top/08.png") 1x,
    url("../assets/images/top/08@2x.png") 2x
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  &[open] {
    display: flex;
    flex-direction: column;
  }
  &::backdrop {
    background: rgba(0, 0, 0, 0.8);
  }
}
.about-dialog-close {
  position: absolute;
  top: 54px;
  right: 24px;
  z-index: 1;
  width: 40px;
  height: 40px;
  &:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
  }
  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--white);
  }
  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}
.about-dialog-body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
}
.about-dialog-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5cqw;
  min-height: 100%;
  font-size: 2cqw;
  & p {
    text-align: center;
    &:nth-child(1) {
      line-height: 4;
    }
    &:nth-child(2) {
      font-size: 4cqw;
      line-height: 1;
    }
    &:nth-child(3) {
      line-height: 2.2;
    }
    &:nth-child(4) {
      font-size: 3cqw;
      line-height: 1.4;
      &::after {
        content: '';
        display: block;
        width: 30cqw;
        height: 2px;
        background: linear-gradient(90deg, #42318F 50%, #E60027 100%);
        background-size: contain;
        margin: 2cqw auto 0;
      }    
    }  
  }
}
.blog {
  padding: 160px 0;
  @media (max-width: 1024px) {
    padding: 80px 0;
  }
  & h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    @media (max-width: 1024px) {
      font-size: 32px;
    }
  }
  & .date {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
    margin-top: 32px;
    @media (max-width: 1024px) {
      font-size: 16px;
    }
  }
  & img {
    height: auto;
    width: 100%;
    aspect-ratio: 96 / 47;
    object-fit: cover;
    margin-top: 64px;
  }
  & p {
    font-weight: 400;
    line-height: 2;
    letter-spacing: 0.02em;
    margin-top: 64px;
  }
  & h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 2;
    letter-spacing: 0.02em;
    margin-top: 64px;
    & + p {
      margin-top: 10px;
    }
  }
  & .event-buttons {
    display: flex;
    gap: 32px;
    margin-top: 64px;
    @media screen and (max-width: 1024px) {
      flex-direction: column;
      gap: 16px;
    }
  }
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--gray);
  padding: 16px 80px;
  @media (max-width: 1024px) {
    padding: 16px 24px;
  }
  .footer-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 64px;
    @media screen and (max-width: 1024px) {
      display: block;
    }
    & a {
      font-size: 14px;
      font-weight: 400;
      letter-spacing: 0.02em;
      line-height: 1.7;
      text-decoration: underline;
      text-underline-offset: 2px;
    }
    & div {
      font-family: var(--font-en);
      font-size: 12px;
      font-weight: 400;
      letter-spacing: 0.02em;
      line-height: 2;
    }  
  }  
}