/*==== RESET =====================*/

*, *::before, *::after {
  box-sizing: border-box;
}
html{
  height: 100%;
  font-size: 62.5%;
}
html.fixed, html.fixed body {
  height: 100%;
  overflow: hidden;
}
body{
  height: 100%;
  margin: 0;
  color: #263747;
  font-family: 'Noto Sans JP', sans-serif;
}
body.fixed {
  margin: auto;
  position: fixed;
  left: 0;
  right: 0;
}
h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: normal;
}
a{
  color: #444;
  text-decoration: none;
  transition: opacity 0.4s;
}
a:hover {
  opacity: 0.8;
}
a[href^="tel"] {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
img{
  width: 100%;
  vertical-align: bottom;
}
ul, ol {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
ul > li::marker,
ol > li::marker {
  content: '';
}
table{
  border-collapse: collapse;
}
th, td {
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
  font-weight: normal;
}

@media screen and (max-width:768px) {
  .pc-content {
    display: none !important;
  }
}
@media screen and (min-width:769px) {
  .sp-content {
    display: none;
  }
}

/*==== COMMON =====================*/
:root {
  --rootFontSize: 1vw;
	/* --fontBaseUnit: 1; */
  --fontBaseUnit: 0.693962526;
	--baseFontSize: calc(var(--rootFontSize) * var(--fontBaseUnit));
  --fontCoef: 1rem;

  --globalContentWidth: calc(144 * var(--fontCoef));
  --globalContentPadding: calc(12 * var(--fontCoef));

	--baseUnit: 8px;
	--headerHeight: calc(7.84 * var(--fontCoef));
	--footerHeight: calc(15.5 * var(--fontCoef));
}
:root:has(.gnav.active) {
  overflow: hidden;
  scrollbar-gutter: stable;
}
html {
	font-size: var(--baseFontSize);
  scroll-behavior: smooth;
}
body {
	font-family: "Shippori Mincho", serif;
	font-weight: 500;
	font-style: normal;
}
main p + p {
  margin-top: calc(1 * var(--fontCoef));
}
th, td {
  padding: calc(1 * var(--fontCoef));
}
.text-en {
  font-family: "Bellefair", serif;
  font-weight: 400;
  font-style: normal;
}
ul.list-disc {
  margin-left: calc(1.8 * var(--fontCoef));
}
ul.list-disc > li::marker {
  content: '・';
}
@media screen and (min-width: 1080px) and (max-width: 1440px) {
	:root {
    --globalContentWidth: 1440px;

    /* --fontCoef: 10px; */

		--headerHeight: 78.4px;
		--footerHeight: 155px;
	}
}
@media screen and (min-width: 1441px) {
  :root {
    --fontBaseUnit: 0.693962526;
  }
}
@media screen and (max-width:768px) {
  :root {
    --fontBaseUnit: 2.6666666667;
    --headerHeight: calc(5 * var(--fontCoef));
    --footerHeight: calc(16.65 * var(--fontCoef));

    --globalContentPadding: calc(1.8 * var(--fontCoef));
  }
  main p {
    line-height: 1.75;
  }
}


main a {
  color: #E00312;
  text-decoration: underline;
}

/*==== HEADER =====================*/
.header {

}
.header__inner {
  
}
.header-logo {
  
}
.gnav-open-btn {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  width: 20.3rem;
  height: 7.84rem;
  padding: 0 2.5em;
  background-color: #d6e0e7;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 5;
}
.gnav-open-btn .text,
.gnav-open-btn .icon {
  flex-shrink: 0;
}
.gnav-open-btn .icon {
  display: block;
  width: 3rem;
  height: 3rem;
  position: relative;
}
.gnav-open-btn .icon::before,
.gnav-open-btn .icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 0.2rem;
  background-color: #263747;
  position: absolute;
  left: 50%;
}
.gnav-open-btn .icon::before {
  top: 1rem;
  transform: translate(-50%, 0);
}
.gnav-open-btn .icon::after {
  bottom: 1rem;
  transform: translate(-50%, 0);
}
.gnav-open-btn.open .icon::before {
  animation: topToCross 0.4s ease forwards;
}

.gnav-open-btn.open .icon::after {
  animation: bottomToCross 0.4s ease forwards;
}
.gnav-open-btn.close .icon::before {
  animation: topToCrossReverse 0.4s ease forwards;
}

.gnav-open-btn.close .icon::after {
  animation: bottomToCrossReverse 0.4s ease forwards;
}
.gnav-open-btn:hover {
  opacity: 1;
}
@media screen and (min-width:769px) {
  .header__logo {
    display: none;
  }
}
@media screen and (max-width:768px) {
  .header,
  .gnav-open-btn {
    height: var(--headerHeight);
  }
  .header {
    background-color: #e9edf0;
  }
  .header__inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 calc(2.2 * var(--fontCoef));
  }
  .header__logo {
    width: calc(7.29 * var(--fontCoef));
  }
  .gnav-open-btn {
    gap: calc(2 * var(--fontCoef));
    width: calc(13.1 * var(--fontCoef));
    padding: 0 calc(2.4 * var(--fontCoef));
    font-size: calc(1.03 * var(--fontCoef));
  }
  .gnav-open-btn .icon {
    width: calc(2 * var(--fontCoef));
    height: calc(2.6 * var(--fontCoef));
  }
  .gnav-open-btn .icon::before,
  .gnav-open-btn .icon::after {
    height: calc(0.115 * var(--fontCoef));
  }

}

/* navigation
------------------------------------------------ */
.gnav {
  width: 37.5rem;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 4;
  overflow: hidden;
}
.gnav:not(.active) {
  pointer-events: none;
}
.gnav__list {
  display: grid;
  grid-template-columns: 100%;
  gap: 1.2rem;
  max-height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  padding: 12.8rem 2.8rem 5.6rem;
  background-color: #ccd3d8;
  position: relative;
  transition: left 0.4s 0.1s, opacity 0.4s 0.1s;
  left: 0;
  overflow: scroll;
  border-left: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
} 
.gnav:not(.active) .gnav__list {
  left: 100%;
  opacity: 0;
}
.gnav-item a {
  display: flex;
  flex-direction: column;
  gap: 0.24em;
  padding: 0.36em 1.27em;
  color: #263747;
  font-size: 2.2rem;
}
.gnav-item .title,
.gnav-item .subtitle {
  line-height: 1;
}
.gnav-item .title {

}
.gnav-item .subtitle {
  color: #fff;
  font-size: 0.636363em;
  transition: transform 0.2s 0.6s, opacity 0.4s 0.6s;
}
.gnav:not(.active) .gnav-item .subtitle {
  transform: rotate(-15deg);
  opacity: 0;
}

@media screen and (max-width:768px) {
  .gnav {
    width: 100%;
    max-width: calc(37.5 * var(--fontCoef));
  }
  .gnav-item a {
    font-size: 1.8rem;
  }
}

/* contents
------------------------------------------------ */


/* footer
------------------------------------------------ */
.footer {
  background-color: #263747;
}
.footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  height: var(--footerHeight);
  max-width: var(--globalContentWidth);
  margin: 0 auto;
  padding: calc(2.4 * var(--fontCoef)) var(--globalContentPadding);
  position: relative;
}
.footer .scroll-top {
  position: absolute;
  top: 50%;
  left: var(--globalContentPadding);
  transform: rotate(90deg) translateX(-50%) ;
  transform-origin: left top;
}
.footer .scroll-top .text {
  padding-left: calc(6.4 * var(--fontCoef));
  color: #fff;
  font-size: calc(1.4 * var(--fontCoef));
  position: relative;
}
.footer .scroll-top .text .icon,
.footer .scroll-top .text::before,
.footer .scroll-top .text::after {
  content: '';
  display: block;
  position: absolute;
}
.footer .scroll-top .text .icon {
  width: calc(5.2 * var(--fontCoef));
  height: calc(0.1 * var(--fontCoef));
  background-color: #7a7a7a;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
}
.footer .scroll-top .text::before {
  width: calc(5.2 * var(--fontCoef));
  height: calc(0.1 * var(--fontCoef));
  background-color: #fff;
  animation: scroll-bar-reverse 3s infinite linear;
  top: 50%;
  left: 0;
  z-index: 1;
  transform: translate(0, -50%);
}
.footer .scroll-top .text::after {
  aspect-ratio: 1;
  width: calc(1 * var(--fontCoef));
  border-radius: 50%;
  animation: scroll-dot-reverse 3s infinite linear;
  top: 50%;
  left: 0;
  background-color: #fff;
  transform: translate(0, -50%) scale(0.1);
}
.copyright {
  color: #fff;
  font-size: calc(1.2 * var(--fontCoef));
}
@media screen and (max-width:768px) {
  .footer__inner {
    padding: calc(1.8 * var(--fontCoef)) var(--globalContentPadding);
  }
  .footer .scroll-top {
    top: 0;
    left: auto;
    right: calc(-5.5 * var(--fontCoef));
    transform-origin: left bottom;
    transform: rotate(90deg) translate(-14%, 0);
  }
  .footer .scroll-top .text {
    padding-left: calc(4.8 * var(--fontCoef));
    font-size: calc(1.2 * var(--fontCoef));
  }
  .footer .scroll-top .text .icon {
    width: calc(4.4 * var(--fontCoef));
    height: calc(0.1 * var(--fontCoef));
  }
  .footer .scroll-top .text::before {
    width: calc(4.4 * var(--fontCoef));
    height: calc(0.1 * var(--fontCoef));
    animation: scroll-bar-reverse 3s infinite linear;
  }
  .footer .scroll-top .text::after {
    width: calc(0.8 * var(--fontCoef));
    animation: scroll-dot 3s infinite linear;
  }
}

/* アニメーション */
@keyframes scroll-bar {
  0% {
    transform: translate(0, -50%) scale(0, 1);
    transform-origin: 0 0;
  }
  15% {
    transform: translate(0, -50%) scale(1, 1);
    transform-origin: 0 0;
  }
  18% {
    transform: translate(0, -50%) scale(1, 1);
    transform-origin: 100% 0;
  }
  28%, 100% {
    transform: translate(0, -50%) scale(0, 1);
    transform-origin: 100% 0;
  }
}
@keyframes scroll-dot {
  0%, 5% {
    right: calc(5.2 * var(--fontCoef));
    transform: translate(0, -50%) scale(0.1);
  }
  15% {
    right: 0;
    transform: translate(0, -50%) scale(1);
  }
  28% {
    right: 0;
    transform: translate(0, -50%) scale(1.1);
  }
  60%, 100% {
    right: 0;
    transform: translate(0, -50%) scale(0);
    opacity: 0;
  }
}
@keyframes scroll-bar-reverse {
  0% {
    transform: translate(0, -50%) scale(0, 1);
    transform-origin: 100% 0;
  }
  15% {
    transform: translate(0, -50%) scale(1, 1);
    transform-origin: 100% 0;
  }
  18% {
    transform: translate(0, -50%) scale(1, 1);
    transform-origin: 0 0;
  }
  28%, 100% {
    transform: translate(0, -50%) scale(0, 1);
    transform-origin: 0 0;
  }
}
@keyframes scroll-dot-reverse {
  0%, 5% {
    left: calc(5.2 * var(--fontCoef));
    transform: translate(0, -50%) scale(0.1);
  }
  14% {
    left: 0;
    transform: translate(0, -50%) scale(1);
  }
  28% {
    left: 0;
    transform: translate(0, -50%) scale(1.1);
  }
  60%, 100% {
    left: 0;
    transform: translate(0, -50%) scale(0);
    opacity: 0;
  }
}
@keyframes topToCross {
  0% {
    top: 1rem;
    transform: translate(-50%, 0) rotate(0);
  }
  50% {
    top: 50%;
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}
@keyframes bottomToCross {
  0% {
    bottom: 1rem;
    transform: translate(-50%, 0) rotate(0);
  }
  50% {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(0);
  }
  100% {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
  }
}
@keyframes topToCrossReverse {
  0% {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
  }
  50% {
    top: 50%;
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    top: 1rem;
    transform: translate(-50%, -50%) rotate(0);
  }
}
@keyframes bottomToCrossReverse {
  0% {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
  }
  50% {
    top: 50%;
    transform: translate(-50%, 50%) rotate(0);
  }
  100% {
    bottom: 1rem;
    transform: translate(-50%, 50%) rotate(0);
  }
}