@charset "utf-8";

/* ======================================================================
/* root
====================================================================== */
:root {
  --color-brand: #00a9c8;
  --color-white: #ffffff;
  --color-black: #040000;
  --color-gray: #f0f0f0;
  --color-green: #25a840;
  --color-blue: #00a1e9;
}

/* ======================================================================
/* html
====================================================================== */
html {
  scroll-behavior: smooth;
}

/* ======================================================================
/* a
====================================================================== */
a {
  text-decoration: none;
}

/* ======================================================================
/* ul ol
====================================================================== */
ul,
ol {
  list-style: none;
}

/* ======================================================================
/* br
====================================================================== */
.pc {
  display: block;
}

.sp {
  display: none;
}

@media screen and (width <=768px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }
}

/* ======================================================================
/* font-size
====================================================================== */
.fs-12 {
  font-size: 12px;
}

.fs-13 {
  font-size: 13px;
}

.fs-14 {
  font-size: 14px;
}

/* ======================================================================
/* relative
====================================================================== */
.relative {
  position: relative;
}

/* ======================================================================
/* img
====================================================================== */
img {
  display: block;
  margin: 0 auto;
  max-inline-size: 100%;
  vertical-align: bottom;
}

/* ======================================================================
/* fluidImg
====================================================================== */
@media screen and (width <= 768px) {
  .fluidImg {
    inline-size: 100%;
    block-size: auto;
  }
}

/* ======================================================================
/* Menu
====================================================================== */
.hamburger-fade {
  position: fixed;
  inset-block-start: 0;
  inset-inline-end: calc(50% - 250px);
  z-index: 9999;
  inline-size: 50px;
  block-size: 50px;
  border: none;
  background: var(--color-black);
  cursor: pointer;

  & .wrapper {
    position: relative;
    width: 30px;
    height: 20px;
    margin: 10px auto;

    & .line {
      position: absolute;
      inset-inline-start: 0;
      inline-size: 100%;
      block-size: 1px;
      background-color: var(--color-white);
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);

      &:nth-child(1) {
        top: 0;
      }

      &:nth-child(2) {
        top: 9px;
      }

      &:nth-child(3) {
        top: 18px;
      }
    }
  }

  &.active .line {
    background-color: var(--color-white);

    &:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }

    &:nth-child(2) {
      opacity: 0;
      transform: translateX(20px);
    }

    &:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }
  }
}

.nav-fade {
  position: fixed;
  top: 0;
  left: 0;
  inline-size: 100%;
  block-size: 100vh;
  visibility: hidden;
  z-index: 9998;

  &.active {
    visibility: visible;

    & .nav-fade__bg {
      opacity: 1;
    }

    & .item {
      opacity: 1;
      transform: translateY(0);

      &:nth-child(1) {
        transition-delay: 0.2s;
      }

      &:nth-child(2) {
        transition-delay: 0.3s;
      }

      &:nth-child(3) {
        transition-delay: 0.4s;
      }

      &:nth-child(4) {
        transition-delay: 0.5s;
      }

      &:nth-child(5) {
        transition-delay: 0.6s;
      }

      &:nth-child(6) {
        transition-delay: 0.7s;
      }

      &:nth-child(7) {
        transition-delay: 0.8s;
      }

      &:nth-child(8) {
        transition-delay: 0.9s;
      }

      &:nth-child(9) {
        transition-delay: 1s;
      }

      &:nth-child(10) {
        transition-delay: 1.1s;
      }
    }
  }
}

.nav-fade__bg {
  position: absolute;
  top: 0;
  left: 0;
  inline-size: 100%;
  block-size: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-fade__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  padding: 5vh 36vw;
}

.nav-fadeList {
  margin: 0;
  padding: 0;
  list-style: none;

  & .item {
    position: relative;
    margin-block: 2vh;
    padding-inline-start: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
  }
}

.nav-fade__number {
  position: absolute;
  left: 0;
  color: var(--color-white);
  font-size: 14px;
  line-height: 1;
}

.nav-fade__link {
  display: inline-block;
  color: var(--color-white);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1;
}

.nav-fade__link:hover {
  color: var(--color-brand);
}

@media screen and (width <= 768px) {
  .hamburger-fade {
    inset-inline-end: 0;
  }

  .nav-fade__wrapper {
    padding: 5vh 10vw;
  }

  .nav-fade__link {
    font-size: 20px;
  }

  .nav-fade__item {
    padding-left: 40px;
    margin-bottom: 1.5vh;
  }

  .nav-fade__info {
    padding-left: 40px;
  }
}

/* ======================================================================
/* target_nav
====================================================================== */
.target_nav {
  position: fixed;
  z-index: 100;
  top: 50%;
  right: 50%;
  transform: translate(calc(-50% + 300px), -50%);
  z-index: 50;

  & a:link {
    color: var(--color-black);
  }

  & a:visited {
    color: var(--color-black);
  }

  & a:hover {
    color: var(--color-black);
  }

  & a:active {
    color: var(--color-black);
  }
}

.header__link {
  display: block;
  width: 6px;
  height: 32px;
  background-color: transparent;
  border: 1px solid #000;
  margin-top: 20px;

  &.is-active {
    background-color: #000;
  }
}

.header__item {
  position: relative;
}

.t_nav_tex {
  display: block;
  width: 28px;
  text-align: center;
  position: absolute;
  top: 50%;
  color: var(--color-navy);
  transform: translate(15%, -50%);
}

@media screen and (width <= 599px) {
  .target_nav {
    display: none;
  }
}

.floatMenu,
.target_nav {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease; /* 0.4s はフェードの秒数 */
}

.floatMenu.is-active,
.target_nav.is-active {
  opacity: 1;
  visibility: visible;
}

/* ======================================================================
/* floatMenu
====================================================================== */
.floatMenu {
  position: fixed;
  inline-size: 100%;
  inset-block-end: 0;
  inset-inline-start: 0;
  z-index: 9999;

  & a {
    display: block;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
    }
  }

  & ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: 60px;
    max-inline-size: 500px;
    margin: auto auto;
    font-size: 18px;
    font-weight: bold;

    & li {
      display: grid;
      place-items: center;
      color: var(--color-white) !important;
      background: linear-gradient(to right, var(--color-blue), var(--color-green));

      & a {
        text-decoration: none;
        color: var(--color-white);
      }
    }
  }
}

@media screen and (width <= 768px) {
  .floatMenu {
    & ul {
      inline-size: 100%;
    }
  }
}

/* =====================================================
/* jsAccordion
===================================================== */
.jsAccordion {
  position: relative;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--color-white);
  margin-block: 30px 0;
  padding-block: 10px;

  &::before,
  &::after {
    content: "";
    position: absolute;
    inset-inline-end: 20px;
    inset-block-start: 50%;
    inline-size: 15px;
    block-size: 2px;
    background: var(--color-white);
    transform: translateY(-50%);
    transition: transform 0.3s ease;
  }

  &::after {
    transform: translateY(-50%) rotate(90deg);
  }

  &.is-open::after {
    transform: translateY(-50%) rotate(0deg);
    opacity: 0;
  }
}

.jsAccordion-details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

/* ======================================================================
/* Swiper
====================================================================== */
.swiper {
  position: relative;
  inline-size: 100%;

  & .swiper-slide {
    height: auto;

    & img {
      inline-size: 100%;
    }
  }

  & .swiper-button-prev {
    position: absolute;
    top: 50%;
    left: 1%;
    content: "";
    display: block;
    inline-size: 40px;
    block-size: 40px;
    background: url(../img/common/slide_prev.svg) center center / cover no-repeat;
  }

  & .swiper-button-next {
    top: 50%;
    right: 1%;
    content: "";
    display: block;
    inline-size: 40px;
    block-size: 40px;
    background: url(../img/common/slide_next.svg) center center / cover no-repeat;
  }
}

@media screen and (width <= 768px) {
  .swiper {
    position: relative;

    & .swiper-button-prev {
      inline-size: 30px;
      block-size: 30px;
    }

    & .swiper-button-next {
      inline-size: 30px;
      block-size: 30px;
    }
  }
}

/* ======================================================================
/* tab
====================================================================== */
.tab-content {
  display: none;

  &.selected {
    display: block;
  }
}

/* ======================================================================
/* parent-menu
====================================================================== */
.parent-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-block: 40px 0;

  & li {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-black);
    background-color: var(--color-gray);
    cursor: pointer;
    border-radius: 5px 5px 0 0;

    &:last-child {
      margin-right: 0;
    }
  }
}

.parent-menu li[data-id="parent-tateuri"].selected {
  color: var(--color-white);
  background-color: var(--color-blue);
}

.parent-menu li[data-id="parent-chuko"].selected {
  color: var(--color-white);
  background-color: var(--color-green);
}

/* ======================================================================
/* child-container
====================================================================== */
.child-container.specHouse {
  border-block-start: 5px solid var(--color-blue);
}

.child-container.used {
  border-block-start: 5px solid var(--color-green);
}

.child-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-block: 40px;

  & .specHouse {
    color: var(--color-white);
    background-color: var(--color-blue);
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 10px;
  }

  & .used {
    color: var(--color-white);
    background-color: var(--color-green);
    text-align: center;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 10px;
  }
}

.child-menu li.selected {
  opacity: 1;
  box-shadow: none;
  transform: translateY(2px);
}

.inner-content {
  padding: 0;

  & .specTitle {
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: bold;
    border-block-end: solid 5px var(--color-blue);
  }

  & .usedTitle {
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: bold;
    border-block-end: solid 5px var(--color-green);
  }

  & .linkList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-block-start: 30px;

    & .jsLink {
      padding-bottom: 5px;
      background-image: linear-gradient(#000, #000);
      background-repeat: no-repeat;
      background-position: bottom right;
      background-size: 0 1px;
      transition: background-size 0.3s;
      font-weight: bold;

      &:hover {
        background-position: bottom left;
        background-size: 100% 2px;
      }
    }

    & a:link {
      color: var(--color-black);
      text-decoration: none;
    }

    & a:visited {
      color: var(--color-black);
      text-decoration: none;
    }

    & a:hover {
      color: var(--color-black);
      text-decoration: underline;
      text-decoration: none;
    }

    & a:active {
      color: var(--color-black);
      text-decoration: none;
    }
  }
}

/* ======================================================================
/* iframe
====================================================================== */
#nav09 {
  position: relative;

  & .mapFrame {
    inline-size: 100%;
    block-size: auto;

    & iframe {
      inline-size: 100%;
      block-size: 400px;
      aspect-ratio: 3 / 2;
    }
  }
}
