#page.reservation footer .line-animation,
#page.privacy-policy footer .line-animation,
#page.the-404 footer .line-animation {
  display: none;
}

/* -------------------------- */
/* sub page header */
/* -------------------------- */

.fixed-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 60px;
  z-index: 401;
  /* max-width: 1200px;
  margin: 0 auto; */
}

#wpadminbar + #page .fixed-header {
  top: 46px;
}

@media (min-width: 782px) {
  #wpadminbar + #page .fixed-header {
    top: 32px;
  }
}

/* @media (min-width: 1200px) {
  .fixed-header {
    margin-right: calc((100vw - 1200px) / 2 );
  }
} */

.site-header-sub {
  position: relative;
  overflow: hidden;
  transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
}

body.side-menu-open .site-header-sub {
  opacity: 0;
  filter: blur(5px);
}

.wave-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  display: block;
  z-index: 0;
  height: 90px;
  backface-visibility: hidden;
}

.wave-bg path {
  fill: var(--background);
}

.site.reservation .wave-bg path,
.site.privacy-policy .wave-bg path,
.site.the-404 .wave-bg path {
  fill: var(--text-color);
}

.site-header-sub__inner {
  position: relative;
  z-index: 1;
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 10px;
  /* max-width: 1200px;
  margin: 0 auto; */
}

.site-header-sub__inner img {
  width: auto;
  height: 30px;
  object-fit: contain;
  position: relative;
  top: -2px;

}

.sub-header-wrapper {
  position: relative;
  height: initial;
  margin-top: 50px;
}

#page.overlay .sub-header-wrapper {
  height: 500px;
  margin-top: 0;
}

#page.overlay.output .sub-header-wrapper {
  height: 450px;
}

#page.overlay.items .sub-header-wrapper {
  height: 400px;
}

.sub-header-wrapper img.fade-img {
  position: relative;
  top: -25px;
  object-position: 0px -50px;
  z-index: -1;
}

#page.overlay.items .sub-header-wrapper img.fade-img {
  position: relative;
  top: -10px;
  object-position: 0px 0px;
  z-index: -1;
}

.sub-header-wrapper > .sub-header-content {
  width: calc(100% - 72px);
  max-width: 400px;
  margin: 0 auto;
}

#page.overlay .sub-header-wrapper > .sub-header-content {
  position: absolute;
  left: 50%;
  top: calc(50% - 75px);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.sub-header-wrapper > div img {
  opacity: 0;
}

#page.overlay .sub-header-wrapper > div img {
  opacity: 1;
  width: 100%;
  object-fit: contain;
  animation: yurayura 24s ease-in-out infinite;
}

@keyframes yurayura{
  0%,100%{ transform: skewX(0deg) translate3d(0,0,0) rotate(-2deg) scale(1.02); }
  25%    { transform: skewX(-10deg) translate3d(4px,-6px,0) rotate(1.6deg) scale(0.96); }
  50%    { transform: skewX(12deg) translate3d(-2px,-2px,0) rotate(-0.8deg) scale(1); }
  75%    { transform: skewX(-14deg) translate3d(2px,2px,0) rotate(1.2deg) scale(1.04); }
}

.sub-header-wrapper .page-title {
  display: flex;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.sub-header-wrapper .page-title h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-color);
  margin: 0;
  width: 100%;
  white-space: nowrap;
}

#page.overlay.items .sub-header-wrapper .page-title h1,
#page.privacy-policy .sub-header-wrapper .page-title h1 {
  font-size: 20px;
}

.sub-header-wrapper .page-title div {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-color);
}

body.page .section-title-bg,
body.error404 .section-title-bg {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

#page.overlay.items .section-title-bg {
  top: 85%;
}

body.page .container {
  padding-top: 0;
}

#page.overlay .container {
  margin-top: -150px;
  margin-bottom: -150px;
  background: linear-gradient(to bottom, transparent 0%, var(--background) 140px);
}

body.page section {
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 100px;
  padding: 0;
}

body.page section#kakimori {
  margin-bottom: 50px;
}

body.page main {
  overflow: hidden;
  padding-bottom: 10px;
}

body.page #content {
  transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
  background: var(--background);
}

/* -------------------------- */
/* sub page content */
/* -------------------------- */

body.page main > section:nth-child(odd),
body.page main > section:nth-child(odd) .section-header {
  text-align: left;
}
body.page main > section:nth-child(even),
body.page main > section:nth-child(even) .section-header {
  text-align: right;
}

body.page main > section .section-header h2 {
  display: inline-block;
  border-bottom: 1px solid var(--text-color);
  letter-spacing: 0.15em;
  min-width: 200px;
  padding: 0 20px;
  font-size: 18px;
  color: var(--text-color);
  position: relative;
  z-index: 1;
}

body.page main > section .section-content-inner {
  font-size: 14px;
  line-height: 2.4;
  letter-spacing: 0.05em;
  padding: 0 20px;
}

@media (max-width: 400px) {
  body.page main > section .section-content-inner {
    font-size: 13px;
    padding: 0 12px;
  } 
}


body.page main > section .illust {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);

}

body.page main > section#color-bottle .illust {
  width: 125px;
  bottom: 30px;
  transform: translateX(45%);
}
body.page main > section#number-ology .illust {
  width: 282px;
  transform: translateX(-70%);
}
body.page main > section#horoscope .illust {
  width: 260px;
  bottom: -100px;
  transform: translateX(-10%) rotate(8deg);
}

body.page main > section#book-time .illust {
  width: 200px;
  bottom: -130px;
  transform: translateX(-40%);
}
body.page main > section#future-note .illust {
  bottom: -85px;
  width: 105px;
  transform: translateX(-150%);
}
body.page main > section#writing-tools .illust {
  width: 163px;
  bottom: 50%;
  transform: translate(0%, 50%);
}
body.page main > section#journaling .illust {
  width: 140px;
  bottom: -55px;
  transform: translateX(30%);
}

body.page a.back-btn,
body.error404 a.back-btn {
  font-size: 13px;
  letter-spacing: 0.15em;
  line-height: 2.8;
  background-color: var(--text-color);
  color: var(--background);
  border-radius: 6px;
  padding: 5px 25px;
  display: inline;
}
body.page a.back-btn span,
body.error404 a.back-btn span {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
body.page div.btn-container {
  margin-top: 60px;
  position: relative;
  z-index: 1;
  text-align: center;
}
body.page .separator {
  width: 250px;
  margin: 0 auto;
  
}
body.page .instagram-view-more {
  position: relative;
  top: initial;
  left: initial;
  transform: initial;
  margin-top: 20px;
  margin-bottom: 10px;
}

body.page .kakimori-logo {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}
body.page .kakimori-images {
  margin: 20px auto;
  margin-bottom: 30px;
  padding: 0 30px;
  width: 100%;
  max-width: 800px;
  display: flex;
  gap: 5px;
}

body.page .kakimori-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-color);
  text-decoration: underline;
}

body.page .items-text-container {
  margin-top: 50px;
}

body.page .items-text {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: var(--text-color);
  text-align: center;
  padding: 0 20px;
}

@media (max-width: 400px) {
  body.page .items-text {
    font-size: 13px;
    padding: 0 12px;
  }
}

#privacy-policy {
  margin-bottom: 0px;
}

#privacy-policy > div {
  max-width: 800px;
  padding: 0 20px;
  margin: 0 auto;
}



/* -------------------------- */
/* media query */
/* -------------------------- */

@media (min-width: 450px) {
  body.page #content {
    box-shadow: 0 -0px 200px 175px rgba(221, 220, 209, 0.8);
  }
}

@media (min-width: 550px) {
  #page.overlay .sub-header-wrapper {
    height: 600px;
  }

  body.page main > section .section-content-inner {
    font-size: 16px;
    margin-top: 10px;
    line-height: 3;
    letter-spacing: 0.1em;
  }

  body.page main > section .section-header h2 {
    letter-spacing: 0.2em;
    font-size: 20px;
    padding-bottom: 3px;
  }

  body.page main > section#color-bottle .illust {
    width: calc(125px * 1.2);
    bottom: 60px;
    transform: translateX(70%);
  }
  body.page main > section#number-ology .illust {
    width: calc(282px * 1.2);
    transform: translateX(-70%);
  }
  body.page main > section#horoscope .illust {
    width: calc(250px * 1.2);
    bottom: -100px;
    transform: translateX(-5%) rotate(8deg);
  }

  body.page main > section#book-time .illust {
    width: calc(200px * 1.2);
    transform: translateX(-40%);
  }
  body.page main > section#future-note .illust {
    bottom: -65px;
    width: calc(105px * 1.2);
    transform: translateX(-150%);
  }
  body.page main > section#journaling .illust {
    width: calc(140px * 1.3);
    transform: translateX(55%);
  }

  body.page main > section#writing-tools .illust {
    width: calc(163px * 1.3);
    /* bottom: 50%;
    transform: translate(0%, 50%); */
  }
  

  body.page .separator {
    width: 280px;
    
  }

}

@media (min-width: 768px) {

  #page.overlay.items .sub-header-wrapper {
    height: 600px;
  }
  
  .sub-header-wrapper img.fade-img {
    object-position: 0px -150px;
  }

  body.page main > section#color-bottle .illust {
    width: calc(125px * 1.5);
    bottom: 75px;
    transform: translateX(70%);
  }
  body.page main > section#number-ology .illust {
    width: calc(282px * 1.3);
  }
  body.page main > section#horoscope .illust {
    width: calc(250px * 1.5);
    bottom: -75px;
    transform: translateX(-20%) rotate(8deg);
  }

  body.page main > section#book-time .illust {
    width: calc(200px * 1.5);
  }
  body.page main > section#future-note .illust {
    width: calc(105px * 1.5);
  }
  body.page main > section#journaling .illust {
    width: calc(140px * 1.6);
    bottom: -30px;
    transform: translateX(8%);
  }
  body.page main > section#writing-tools .illust {
    width: calc(163px * 1.6);
    transform: translate(-25%, 50%);
  }


}

@media (min-width: 1024px) {
  .sub-header-wrapper img.fade-img {
    object-position: 0px -200px;
  }

  .sub-header-wrapper > .sub-header-content {
    transform: scale(1.2);
  }


  #page.overlay .sub-header-wrapper > .sub-header-content {
    transform: translate(-50%, -50%) scale(1.2);
  }
}


/* -------------------------- */
/* animation */
/* -------------------------- */

#page.overlay .sub-header-wrapper > div img {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 2s ease-in-out, filter 2s ease-in-out;
}

body.started #page.overlay .sub-header-wrapper > div img {
  opacity: 1;
  filter: blur(0px);
}

.sub-header-wrapper .page-title h1,
.sub-header-wrapper .page-title div {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 2s ease-in-out, filter 2s ease-in-out, transform 2s ease-in-out;
}

.sub-header-wrapper .page-title h1 {
  transform: translateX(-15px);
}
.sub-header-wrapper .page-title div {
  transform: translateX(15px);
}

body.started .sub-header-wrapper .page-title h1,
body.started .sub-header-wrapper .page-title div {
  opacity: 1;
  transform: translateX(0px);
  filter: blur(0px);
}

.sub-header-wrapper img.fade-img {
  opacity: 0;
  filter: blur(10px);
  transition: opacity 3s ease-in-out, filter 3s ease-in-out;
}
body.started .sub-header-wrapper img.fade-img {
  opacity: 1;
  filter: blur(0px);
}

body.page main > section,
body.error404 main > section {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(10px);
  transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out, transform 1.5s ease-in-out;
  transition-delay: 2s;
}

body.page main > section:nth-child(2) {
  transition-delay: 2.5s;
}

body.page main > section:nth-child(3) {
  transition-delay: 3s;
}

body.page.started main > section,
body.error404.started main > section {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0px);
}

body.page div.btn-container {
  opacity: 0;
  filter: blur(5px);
  transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out;
  transition-delay: 4s;
}
body.page.started div.btn-container {
  opacity: 1;
  filter: blur(0px);
}


body.page .site-header-sub__inner {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-10px);
  transition: opacity 1.5s ease-in-out, filter 1.5s ease-in-out, transform 1.5s ease-in-out;
}

body.page.started .site-header-sub__inner {
  opacity: 1;
  filter: blur(0px);
  transform: translateX(0px);
}

body.page .header-right-wrapper .hamburger > span {
  filter: opacity(0);
  transition: opacity .8s ease-in-out .4s,
  background-color .4s ease-in-out,
  top .8s ease-in-out .4s,
  transform .8s ease-in-out .4s,
  margin-left 1.5s ease-in-out,
  margin-right 1.5s ease-in-out,
  filter 1.5s ease-in-out;
}

body.page .site.reservation .header-right-wrapper .hamburger span,
body.page .site.privacy-policy .header-right-wrapper .hamburger span,
body.error404 .site.the-404 .header-right-wrapper .hamburger span {
  background-color: var(--background);
}

body.page.scroll-down .site.reservation .header-right-wrapper .hamburger span,
body.page.scroll-down .site.privacy-policy .header-right-wrapper .hamburger span,
body.error404.scroll-down .site.the-404 .header-right-wrapper .hamburger span {
  background-color: var(--accent-color);
}


body.page .header-right-wrapper .hamburger > span:nth-child(odd) {
  margin-left: -5px;
}
body.page .header-right-wrapper .hamburger > span:nth-child(even) {
  margin-right: -5px;
}

body.page.started .header-right-wrapper .hamburger > span:nth-child(odd),
body.page.started .header-right-wrapper .hamburger > span:nth-child(even) {
  margin-left: 0px;
  margin-right: 0px;
  filter: opacity(1);
}

body.page .ani-obj {
  opacity: 1;
  filter: blur(0px);
}