:root {
  --orange: #ff8400;
  --cream: #fffcf9;
  --sand: #eee4d8;
  --green: #acca92;
  --yellow: #ffc400;
  --coral: #ff7f69;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--orange);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
}

button,
a {
  font: inherit;
}

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

img {
  display: block;
}

.page {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-shell {
  position: relative;
  width: min(100vw, 390px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--cream);
}

#opening {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--cream);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#opening.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loading-wheel {
  animation: spin 1.1s linear infinite;
}

.kucc-logo,
.hero h1,
.footer__logo {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.kucc-logo {
  color: var(--orange);
  font-size: 64px;
  line-height: 1;
}

.hero {
  position: relative;
  height: 780px;
  background: #ffffff;
}

.hero__image {
  position: absolute;
  top: 0;
  left: 50%;
  width: 523px;
  height: 780px;
  transform: translateX(-50%);
  object-fit: cover;
}

.hero__title {
  position: absolute;
  top: 172px;
  left: 0;
  width: 100%;
  text-align: center;
}

.hero h1 {
  color: var(--orange);
  font-size: 64px;
  line-height: 1;
}

.hero p {
  margin: 32px 0 0;
  font-size: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 16px 0 20px;
  background: var(--sand);
}

.site-header__brand {
  font-size: 20px;
}

.menu-button {
  width: 40px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 1px;
  margin: 0 auto 7px;
  background: var(--orange);
}

.menu-button span:last-child {
  margin-bottom: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgb(0 0 0 / 0.2);
}

.drawer {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  width: min(100vw, 390px);
  padding-bottom: 24px;
  background: var(--cream);
  transform: translate(-50%, -110%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.drawer.is-open {
  transform: translate(-50%, 0);
  opacity: 1;
}

.drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
}

.drawer__bar p {
  margin: 0;
  font-size: 20px;
}

.drawer__close {
  border: 0;
  background: transparent;
  color: var(--orange);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.drawer a {
  display: block;
  padding: 6px 20px;
  font-size: 20px;
  line-height: 2;
}

.section,
.view-more {
  position: relative;
  min-height: 780px;
  padding: 84px 20px;
  background: var(--cream);
}

.section h2,
.calendar h2,
.more-block h2 {
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 1.4;
}

.copy {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 1.2px;
  text-align: justify;
}

.copy p {
  margin: 0 0 10px;
}

.copy--center {
  text-align: center;
}

.about {
  display: flex;
  min-height: 720px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 40px;
}

.about .copy {
  width: 311px;
  max-width: 100%;
}

.tour {
  min-height: 780px;
  padding-top: 86px;
}

.tour .copy {
  width: 329px;
  max-width: 100%;
  margin-inline: auto;
}

.photo {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  background: var(--sand);
}

.photo img,
.event__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo:hover img,
.event__photo:hover img {
  transform: scale(1.08);
}

.photo--summer-1 {
  left: 20px;
  top: 320px;
  width: 165px;
  height: 124px;
}

.photo--summer-2 {
  right: 20px;
  top: 356px;
  width: 104px;
  height: 139px;
}

.photo--summer-3 {
  left: 70px;
  top: 546px;
  width: 175px;
  height: 131px;
}

.photo--summer-4 {
  right: 52px;
  top: 664px;
  width: 143px;
  height: 107px;
}

.tour--foreign {
  min-height: 780px;
}

.photo--foreign-1 {
  left: 90px;
  top: 356px;
  width: 177px;
  height: 132px;
}

.photo--foreign-2 {
  right: 20px;
  top: 534px;
  width: 150px;
  height: 200px;
}

.photo--foreign-3 {
  left: 20px;
  top: 534px;
  width: 111px;
  height: 83px;
}

.pill-button {
  position: absolute;
  right: 20px;
  bottom: 36px;
  z-index: 3;
  min-width: 57px;
  height: 20px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: var(--sand);
  color: var(--orange);
  font-size: 8px;
  cursor: pointer;
}

.view-more {
  display: block;
  min-height: 2340px;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.45s ease;
}

.view-more[hidden] {
  display: none;
}

.more-block {
  position: relative;
  min-height: 780px;
  padding: 84px 18px;
  background: var(--cream);
}

.more-block h2 {
  font-size: 20px;
}

.more-block .copy {
  margin-inline: auto;
}

.more-block--tqu .copy {
  width: 344px;
}

.photo--tqu-1 {
  left: 68px;
  top: 306px;
  width: 149px;
  height: 112px;
}

.photo--tqu-2 {
  right: 42px;
  top: 418px;
  width: 67px;
  height: 89px;
}

.photo--tqu-3 {
  left: 94px;
  top: 554px;
  width: 155px;
  height: 207px;
}

.more-block--tt .copy {
  width: 337px;
}

.photo--tt-1 {
  left: 58px;
  top: 474px;
  width: 187px;
  height: 140px;
}

.photo--tt-2 {
  right: 36px;
  top: 294px;
  width: 210px;
  height: 157px;
}

.photo--tt-3 {
  right: 20px;
  top: 650px;
  width: 139px;
  height: 105px;
}

.more-block--training .copy {
  width: 254px;
}

.photo--training-1 {
  left: 58px;
  top: 314px;
  width: 150px;
  height: 112px;
}

.photo--training-2 {
  left: 147px;
  top: 486px;
  width: 129px;
  height: 172px;
}

.pill-button--close {
  bottom: 12px;
}

.orientation {
  min-height: 1120px;
  padding-top: 86px;
}

.event {
  margin-top: 52px;
  text-align: center;
}

.event__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.event h3 {
  margin: 0;
  font-size: 20px;
}

.dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.dot--green,
.green {
  background: var(--green);
}

.dot--yellow,
.yellow {
  background: var(--yellow);
}

.dot--coral,
.coral {
  background: var(--coral);
}

.event .copy {
  width: 349px;
  max-width: 100%;
  margin: 12px auto 0;
}

.event__photo {
  width: 136px;
  height: 102px;
  margin: 12px auto 0;
  overflow: hidden;
}

.calendar {
  min-height: 520px;
  padding: 84px 20px;
  background: var(--cream);
}

.calendar h2 {
  font-size: 20px;
}

.month-tabs {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 48px;
}

.month-tabs span {
  display: grid;
  width: 29px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: var(--sand);
  font-size: 12px;
}

.month-tabs .active {
  background: var(--orange);
  color: #ffffff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  justify-content: center;
  gap: 18px 9px;
  margin-top: 24px;
  color: var(--orange);
  font-size: 12px;
  text-align: center;
}

.calendar-days {
  margin-top: 12px;
  gap: 18px 9px;
}

.calendar-days b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: var(--orange);
  font-size: 16px;
}

.calendar-days b.green,
.calendar-days b.yellow,
.calendar-days b.coral {
  color: #ffffff;
}

.calendar-days .muted {
  color: var(--sand);
}

.legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  font-size: 11px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend .dot {
  width: 14px;
  height: 14px;
}

.footer {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: #ffffff;
}

.footer > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__brand,
.footer__info {
  position: relative;
  z-index: 1;
}

.footer__brand {
  padding-top: 144px;
  text-align: center;
}

.footer__logo {
  font-size: 64px;
  line-height: 1;
}

.footer__brand p:last-child {
  margin: 24px 0 0;
  font-size: 16px;
}

.footer__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 360px 32px 0;
  font-size: 12px;
}

.footer__info p {
  margin: 0 0 6px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 360px) {
  .copy {
    letter-spacing: 0.6px;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, 34px);
    gap: 16px 6px;
  }

  .calendar-days b {
    width: 34px;
    height: 34px;
  }

  .legend {
    gap: 8px;
    font-size: 10px;
  }
}
