@charset "UTF-8";
:root {
  --text-color: #2E1A1A;
  --base-color: #FFFFFF;
  --base-color2: #F8F8F4;
  --parts-color: #B3ACAC;
  --window-width: 100%;
  --window-height: 100%;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  line-height: 1.8;
  font-family: "Zen Antique", serif;
  color: var(--text-color);
  width: 100%;
  height: 100%;
}
@media screen and (min-height: 622px) {
  html {
    overflow: hidden;
  }
}

body {
  position: relative;
  margin: 0;
  width: 100%;
  width: var(--window-width);
  height: 100%;
  height: var(--window-height);
}

h1,
p {
  margin: 0;
}

ol {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s linear, visibility 1s linear;
  z-index: 1;
}
.decoration-canvas {
  width: 100%;
  height: 100%;
}

.scene-first .decoration,
.scene-loadingStart .decoration,
.scene-loadingEnd .decoration {
  visibility: hidden;
  opacity: 0;
}

.scene-openingEnd .decoration {
  opacity: 0;
}

.loading {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #F8F8F4;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  z-index: 10;
  opacity: 1;
  transition: opacity 1s linear;
}
.loading-image {
  max-width: 100%;
  width: 324px;
  transition: transform 1s cubic-bezier(0, 0.65, 0.35, 1);
  transform: translateY(0);
}
.loading-circle {
  position: absolute;
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: var(--base-color);
  transform-origin: 50%;
  transform: scale(0);
  transition: transform 1s ease-in;
}
@supports not (aspect-ratio: auto) {
  .loading-circle {
    width: 100%;
  }
}

.scene-first .loading {
  opacity: 0;
}
.scene-first .loading-image {
  transform: translateY(20px);
}

.scene-loadingEnd .loading {
  z-index: -1;
  opacity: 0;
}
.scene-loadingEnd .loading-image {
  transition-timing-function: cubic-bezier(0.65, 0, 1, 0.5);
  transition-duration: 0.6s;
  transform: translateY(-40px);
}
.scene-loadingEnd .loading-circle {
  transform: scale(1.2);
}

.scene-openingStart .loading,
.scene-openingEnd .loading,
.scene-page .loading {
  display: none;
}

.background {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
  background-color: var(--base-color);
  z-index: 0;
  visibility: visible;
  overflow: hidden;
}
.background .ground {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("/special/greeting/2022/img/background/ground.png") no-repeat center bottom;
  transition: opacity 0.3s linear, visibility 0.3s linear;
  visibility: hidden;
  opacity: 0;
}
@media screen and (min-width: 1400px) {
  .background .ground {
    background-size: 100%;
  }
}
.background .cloud {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: url("/special/greeting/2022/img/background/cloud-f-sp.png") no-repeat, url("/special/greeting/2022/img/background/cloud-b-sp.png") no-repeat;
  background-size: 100%;
  background-position: center 180%, center 240%;
  transition: background-position 1s ease;
}
@media screen and (min-width: 600px) {
  .background .cloud {
    background-image: url("/special/greeting/2022/img/background/cloud-b.png"), url("/special/greeting/2022/img/background/cloud-f.png");
  }
}

.scene-first .background,
.scene-loadingStart .background {
  visibility: hidden;
}

.scene-loadingEnd .ground,
.scene-openingStart .ground {
  visibility: visible;
  opacity: 1;
}

.scene-page .cloud {
  bottom: 18px;
  width: calc(100% - 36px);
  background-position: center 100%, center 100%;
}
@media screen and (min-width: 1000px) {
  .scene-page .cloud {
    bottom: 40px;
    width: calc(100% - 80px);
  }
}

.picture-frame {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  transition: transform 0.3s ease-in-out;
  /* TODO: イージング調整 */
  transform-origin: 50%;
  transform: scale(1.3);
}
.picture-frame::before, .picture-frame::after {
  content: "";
  position: absolute;
  display: block;
  width: 45px;
  height: 45px;
  background: url("/special/greeting/2022/img/decoration/picture-frame-corner-sp.png") no-repeat;
}
@media screen and (min-width: 1000px) {
  .picture-frame::before, .picture-frame::after {
    width: 117px;
    height: 117px;
    background: url("/special/greeting/2022/img/decoration/picture-frame-corner.png") no-repeat;
  }
}
.picture-frame::before {
  left: 0;
  top: 0;
}
.picture-frame::after {
  left: 0;
  bottom: 0;
  transform: rotate(270deg);
}
.picture-frame-inner {
  width: 100%;
  height: 100%;
}
.picture-frame-inner::before, .picture-frame-inner::after {
  content: "";
  position: absolute;
  display: block;
  width: 45px;
  height: 45px;
  background: url("/special/greeting/2022/img/decoration/picture-frame-corner-sp.png") no-repeat;
}
@media screen and (min-width: 1000px) {
  .picture-frame-inner::before, .picture-frame-inner::after {
    width: 117px;
    height: 117px;
    background: url("/special/greeting/2022/img/decoration/picture-frame-corner.png") no-repeat;
  }
}
.picture-frame-inner::before {
  top: 0;
  right: 0;
  transform: rotate(90deg);
}
.picture-frame-inner::after {
  bottom: 0;
  right: 0;
  transform: rotate(180deg);
}
.picture-frame-top, .picture-frame-right, .picture-frame-bottom, .picture-frame-left {
  position: absolute;
  margin: auto;
}
.picture-frame-top, .picture-frame-bottom {
  width: calc(100% - 90px);
  height: 18px;
  left: 0;
  right: 0;
}
@media screen and (min-width: 1000px) {
  .picture-frame-top, .picture-frame-bottom {
    width: calc(100% - 234px);
    height: 40px;
  }
}
.picture-frame-right, .picture-frame-left {
  width: 18px;
  height: calc(100% - 90px);
  top: 0;
  bottom: 0;
}
@media screen and (min-width: 1000px) {
  .picture-frame-right, .picture-frame-left {
    width: 40px;
    height: calc(100% - 234px);
  }
}
.picture-frame-top {
  top: 0;
  background: url("/special/greeting/2022/img/decoration/picture-frame-border-top-sp.png") round;
}
@media screen and (min-width: 1000px) {
  .picture-frame-top {
    background: url("/special/greeting/2022/img/decoration/picture-frame-border-top.png") round;
  }
}
.picture-frame-bottom {
  bottom: 0;
  background: url("/special/greeting/2022/img/decoration/picture-frame-border-bottom-sp.png") round;
}
@media screen and (min-width: 1000px) {
  .picture-frame-bottom {
    background: url("/special/greeting/2022/img/decoration/picture-frame-border-bottom.png") round;
  }
}
.picture-frame-right {
  right: 0;
  background: url("/special/greeting/2022/img/decoration/picture-frame-border-right-sp.png") round;
}
@media screen and (min-width: 1000px) {
  .picture-frame-right {
    background: url("/special/greeting/2022/img/decoration/picture-frame-border-right.png") round;
  }
}
.picture-frame-left {
  left: 0;
  background: url("/special/greeting/2022/img/decoration/picture-frame-border-left-sp.png") round;
}
@media screen and (min-width: 1000px) {
  .picture-frame-left {
    background: url("/special/greeting/2022/img/decoration/picture-frame-border-left.png") round;
  }
}

.scene-page .picture-frame {
  transform: scale(1);
}

.stage {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: clip-path 1s 0.2s ease-in;
  padding: 26px;
  z-index: 2;
  top: 0;
  left: 0;
  overflow: hidden;
}
@media screen and (min-width: 1000px) {
  .stage {
    padding: 80px 80px 56px;
  }
}

.scene-first .stage,
.scene-loadingStart .stage {
  clip-path: circle(0 at 50% 50%);
}

.scene-loadingEnd .stage {
  clip-path: circle(120% at 50% 50%);
}

.contents {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  transition: padding-top 0.5s ease;
}
@media screen and (min-width: 1000px) {
  .contents {
    padding-top: 0;
  }
}

.scene-page .contents {
  padding-top: 18px;
}
@media screen and (min-width: 1000px) {
  .scene-page .contents {
    padding-top: 0;
  }
}

.header {
  text-align: center;
}
.header-logo {
  max-width: 324px;
  width: 90%;
  transition: transform 1s cubic-bezier(0, 0.65, 0.35, 1), opacity 1s linear;
  opacity: 1;
  transform: translateY(0);
}

.scene-loadingStart .header-logo,
.scene-loadingEnd .header-logo {
  opacity: 0;
  transform: translateY(-50px);
}

.scene-page .header-logo {
  transition: transform 0.5s ease, width 0.5s ease;
  width: 162px;
}
@media screen and (min-width: 1000px) {
  .scene-page .header-logo {
    width: 256px;
  }
}

.pages {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: auto;
  flex: auto;
}
@media screen and (min-width: 1000px) {
  .pages {
    max-width: none;
  }
}

.page {
  position: absolute;
  display: flex;
  align-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-size: 1.4rem;
  justify-content: center;
}
@media screen and (max-width: 364px) {
  .page {
    font-size: 1.2rem;
  }
}
@media screen and (min-width: 600px) {
  .page {
    font-size: 1.8rem;
  }
}
@media screen and (min-width: 768px) {
  .page {
    font-size: 2rem;
  }
}
@media screen and (min-width: 1000px) {
  .page {
    font-size: 2.4rem;
  }
}
@media screen and (min-width: 1200px) {
  .page {
    font-size: 2.8rem;
  }
}
.page-text {
  text-align: center;
}
.page-text.-small {
  font-size: 0.85em;
  margin-top: 10px;
}
@media screen and (min-width: 1000px) {
  .page-text.-small {
    margin-top: 22px;
  }
}
@media screen and (min-width: 1000px) {
  .page {
    top: 0;
    padding: 0 160px;
  }
}

.scene-page .pages {
  flex: none;
  height: 180px;
}
@media screen and (min-width: 1000px) {
  .scene-page .pages {
    flex: auto;
    height: 250px;
  }
}
@media screen and (max-width: 364px) {
  .scene-page .pages {
    height: 160px;
  }
}

[data-page="1"] .page-1,
[data-page="2"] .page-2,
[data-page="3"] .page-3,
[data-page="4"] .page-4,
[data-page="5"] .page-5,
[data-page="6"] .page-6 {
  opacity: 1;
  visibility: visible;
}

.footer {
  text-align: center;
}
.footer-logo {
  width: 120px;
}
.footer .copyright {
  font-size: 1rem;
  margin-bottom: 0;
}
@media screen and (min-width: 1000px) {
  .footer-logo {
    width: auto;
  }
  .footer .copyright {
    font-size: 1.2rem;
  }
}

.foreground {
  position: absolute;
  width: 60%;
  max-width: 250px;
  height: 150px;
  z-index: 3;
  top: calc(50% + 60px);
  left: 50%;
  margin: auto;
  transform: translate(-50%, -50%);
}
@media screen and (min-width: 1000px) {
  .foreground {
    width: 400px;
    height: 320px;
    margin: 0;
    max-width: none;
  }
}
.foreground-button {
  width: 100%;
  height: 100%;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  padding: 0;
  cursor: pointer;
}
@media screen and (min-width: 1000px) {
  .foreground-button {
    width: 400px;
    height: 320px;
  }
}
.foreground-canvas {
  width: 100%;
  pointer-events: none;
  user-select: none;
}
.foreground-cursor {
  display: none;
}
@media screen and (min-width: 1000px) {
  .foreground-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 84px;
    height: 84px;
    pointer-events: none;
    transform: scale(0);
    transition: transform 0.2s ease;
  }
}
.foreground-cursor-image {
  width: 100%;
}

.scene-openingEnd .foreground,
.scene-page .foreground {
  top: calc(100% - 75px);
  left: 0;
  right: 0;
  transform: translate(15px, -100%) scale(1);
  display: flex;
  align-items: flex-end;
}
@media screen and (min-width: 1000px) {
  .scene-openingEnd .foreground,
.scene-page .foreground {
    top: calc(100% - 85px);
    left: 100%;
    transform: translate(-100%, -100%) scale(1);
  }
}

.scene-openingEnd .foreground {
  transition: top 2.5s linear, left 2.5s linear, transform 2.5s linear;
  transform: translate(0, -95%) scale(0.8);
}
@media screen and (min-width: 1000px) {
  .scene-openingEnd .foreground {
    transform: translate(-100%, -100%) scale(0.8);
  }
}

@media screen and (min-width: 1000px) {
  .scene-page .foreground {
    height: 600px;
  }

  .scene-openingStart .foreground-cursor,
.scene-page .foreground-cursor {
    display: block;
  }
}
.-scene-openingEnd .foreground-button,
.-prevent .foreground-button {
  cursor: auto;
}
.-scene-openingEnd .foreground-cursor,
.-prevent .foreground-cursor {
  transform: scale(0) !important;
}

.indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.indicator-list {
  display: flex;
  justify-content: center;
  width: 320px;
  height: 44px;
}
.indicator-item {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 44px;
}
.indicator-item.-current .indicator-button {
  background-image: url("/special/greeting/2022/img/ui/current.png");
  background-position: center;
  background-repeat: no-repeat;
}
.indicator-item.-current .indicator-button::before {
  content: none;
}
.indicator-item.-current::after {
  background-image: url("/special/greeting/2022/img/ui/dot-d.png");
}
.indicator-item.-current ~ .indicator-item::after {
  background-image: url("/special/greeting/2022/img/ui/dot-d.png");
}
.indicator-item.-current ~ .indicator-item .indicator-button::before {
  background-color: #B3ACAC;
}
.indicator-item::after {
  content: "";
  display: block;
  width: 21px;
  height: 3px;
  background-image: url("/special/greeting/2022/img/ui/dot.png");
  background-repeat: no-repeat;
  background-size: contain;
}
.indicator-item:last-child::after {
  visibility: hidden;
}
.indicator-button {
  position: relative;
  background: none;
  border: none;
  box-shadow: none;
  width: 100%;
  aspect-ratio: 1/1;
  cursor: pointer;
}
@supports not (aspect-ratio: auto) {
  .indicator-button {
    height: 100%;
  }
}
.indicator-button::before {
  content: "";
  position: absolute;
  display: block;
  width: 8px;
  height: 8px;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  border-radius: 50%;
  background-color: #2E1A1A;
}
.indicator-button-text {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
}

.scene-page .indicator {
  opacity: 1;
  visibility: visible;
  flex: auto;
}

.-script-disable body {
  overflow: auto;
}
.-script-disable .picture-frame {
  transition: none;
  transform: scale(1);
}
