@charset "UTF-8";

@import "_variable.css";

/* ============================================ */
/* 共通設定 */
/* ============================================ */

body {
  background: #F7F9F7;
  color: var(--font_c);
  font-family: var(--font_normal);
  font-optical-sizing: auto;
  font-style: normal;
  font-size: clamp(0.875rem, 0.6227rem + 0.4505vw, 1rem);/*16~14(1340~896)*/
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  &.--is-fixed {
    height: 100%;
    overflow: hidden;
  }
}

a {
  color: currentColor;
  transition: all 0.3s ease-out;
  &:hover {
    @media (hover: hover) {
      opacity: 0.7;
    }
  }
}

img {
  max-width: 100%;
  height: auto;
}

.reading {
  display: block;
  overflow: hidden;
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
}

.pconly {
  @media (width <= 896px) {
    display: none;
  }
}
.sponly {
  display: none;
  @media (width <= 896px) {
    display: block;
  }
}
.portraitonly {
  display: none;
  @media (width <= 480px) {
    display: block;
  }
}
.portraitnone {
  @media (width <= 480px) {
    display: none;
  }
}
.tabonly {
  display: none;
  @media (width <= 1025px) {
    display: block;
  }
}
.tabnone {
  @media (width <= 1025px) {
    display: none;
  }
}
.mdonly {
  display: none;
  @media (width <= 600px) {
    display: block;
  }
}
.mdnone {
  @media (width <= 600px) {
    display: none;
  }
}

.span_br {
  display: inline-block;
}

.width {
  container-type: inline-size;
  max-width: 1340px;
  width: calc(100% - 80px);
  margin: 0 auto;
  @media (width <= 896px) {
    width: calc(100% - 40px);
  }
}

.outer {
  overflow: clip;
}


/* blockskip */
/* ============================================ */
#blockskip {
  overflow: hidden;
  height: 0;
  background: #ddd;
  text-align: center;
}


/* header */
/* ============================================ */
.header {
  width: calc(100% - 80px);
  padding: 16px min(64px, calc((64 / 1920) * 100vw));
  background: #fff;
  border-radius: 9999px;
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 600;
  @media (width <= 1025px) {
    width: calc(100% - 40px);
    padding: 16px 24px;
    top: 20px;
    left: 20px;
  }
  @media (width <= 896px) {
    width: calc(100% - 30px);
    top: 12px;
    left: 15px;
  }
  .header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    @media (width <= 896px) {
      gap: 16px;
    }
  }
  .header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  .header-logo {
    @media (width <= 896px) {
      display: none;
    }
    img {
      @media (width <= 896px) {
        width: calc((156px * 0.8));
      }
    }
  }
  .header-ttl {
    word-break: keep-all;
    font-family: var(--font_gothic);
    font-size: clamp(1rem, 0.5625rem + 0.7813vw, 1.5rem);/*24~16(1920~896)*/
    font-weight: 600;
    letter-spacing: 0.15em;
    @media (width <= 896px) {
      font-size: calc((14 / 16) * 1rem);
    }
    @media (width <= 480px) {
      font-size: calc((12 / 16) * 1rem);
    }
  }
  .header-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    @media (width <= 1025px) {
      gap: 12px;
    }
    @media (width <= 896px) {
      display: none;
    }
  }
  .header-link__btn {
    text-align: center;
    &.--case {
      .header-link__btn__link {
        border-color: #0087C0;
        background: var(--case_c);
      }
    }
    .header-link__btn__link {
      display: block;
      font-size: clamp(1rem, 0.5625rem + 0.7813vw, 1.5rem);/*24~16(1920~896)*/
      font-weight: 700;
      letter-spacing: 0.15em;
      line-height: 1.4;
      color: #fff;
      padding: 0.3em 1.6em;
      border: calc((3 / 24) * 1em) solid #028E20;
      background: var(--business_c);
      border-radius: 9999px;
    }
  }
  .header-link__ex {
    .header-link__ex__link {
      display: block;
      font-family: var(--font_gothic);
      font-size: clamp(1rem, 0.5625rem + 0.7813vw, 1.5rem);/*24~16(1920~896)*/
      font-weight: 600;
      letter-spacing: 0.15em;
      padding: 0.3em 0;
    }
  }
  .header-nav {
    display: none;
    @media (width <= 896px) {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 80px 32px;
      width: 100%;
      height: 100dvh;
      background: #fff;
      position: fixed;
      top: 0;
      right: 0;
      z-index: 200;
      translate: 100% 0;
      transition: all .5s;
      overflow: auto;
    }
    &.--open  {
      translate: 0 0;
    }
    .header-nav__wrap {
      width: 100%;
      max-width: 300px;
    }
    .header-nav__link {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 16px;
    }
    .header-nav__link__btn {
      width: 100%;
      text-align: center;
      &.--case {
        .header-nav__link__btn__link {
          border-color: #0087C0;
          background: var(--case_c);
        }
      }
      .header-nav__link__btn__link {
        display: block;
        font-size: calc((18 / 16) * 1rem);
        font-weight: 700;
        letter-spacing: 0.15em;
        line-height: 1.4;
        color: #fff;
        padding: 0.5em 1em;
        border: calc((3 / 24) * 1em) solid #028E20;
        background: var(--business_c);
        border-radius: 9999px;
      }
    }
    .header-nav__link__ex {
      width: 100%;
      text-align: center;
      .header-nav__link__ex__link {
        display: block;
        font-family: var(--font_gothic);
        font-size: calc((18 / 16) * 1rem);
        font-weight: 600;
        letter-spacing: 0.15em;
        padding: 0.5em 0;
      }
    }
  }
  .header-hamburger {
    display: none;
    @media (width <= 896px) {
      cursor: pointer;
      display: block;
      width: 32px;
      height: 32px;
      position: relative;
      z-index: 400;
    }
    &.--active {
      .header-hamburger__line {
        &:nth-of-type(1) {
          translate: 0 0;
          rotate: 45deg;
        }
        &:nth-of-type(2) {
          opacity: 0;
        }
        &:nth-of-type(3) {
          translate: 0 0;
          rotate: -45deg;
        }
      }
    }
    .header-hamburger__line {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--font_c);
      position: absolute;
      inset: 0;
      margin: auto;
      transition: rotate .3s ease-out, opacity .1s ease-out;
      &:nth-of-type(1) {
        translate: 0 -7px;
      }
      &:nth-of-type(3) {
        translate: 0 7px;
      }
    }
  }
}



/* footer */
/* ============================================ */
.footer {
  padding: 40px 0;
  background: #2B1C0E;
  color: #fff;
  position: -webkit-sticky;
  position: sticky;
  top: 100dvh;
  z-index: 200;
  @media (width <= 896px) {
    padding: 32px 0 64px;
  }
  .footer-wrap {
    width: calc(100% - 80px);
    margin-inline: auto;
    @media (width <= 896px) {
      width: calc(100% - 40px);
    }
  }
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    @media (width <= 896px) {
      flex-direction: column;
    }
  }
  .footer-logo {
    img {
      filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7487%) hue-rotate(327deg) brightness(97%) contrast(105%);
      @media (width <= 896px) {
        width: calc(228px * 0.6);
      }
    }
  }
  .footer-copyright {
    font-size: clamp(0.75rem, 0.4977rem + 0.4505vw, 0.875rem);/*14~12(1340~896)*/
    font-family: var(--font_en);
  }
  .footer-pagetop {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    @media (width <= 896px) {
      top: auto;
      left: auto;
      bottom: 24px;
      right: 24px;
      translate: 0 0;
    }
    img {
      @media (width <= 896px) {
        width: calc(20px * 0.7);
      }
    }
  }
}


/* 共通パーツ */
/* ============================================ */

.common-ttl {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  color: var(--main_c);
  @media (width <= 896px) {
    gap: 10px;
  }
  &.--white {
    color: #fff;
    .common-ttl__en {
      &::before {
        background-image: url("../images/common/ttl_mark_w.svg");
      }
    }
  }
  &.--left {
    align-items: flex-start;
  }
  .common-ttl__en {
    font-family: var(--font_en);
    font-size: clamp(1rem, 0.7477rem + 0.4505vw, 1.125rem);/*18~16(1340~896)*/
    font-weight: 800;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: calc((8 / 18) * 1em);
    padding-right: calc((24 / 18) * 1em);
    &::before {
      content: "";
      display: inline-block;
      width: calc((16 / 18) * 1em);
      height: calc((16 / 18) * 1em);
      background: url("../images/common/ttl_mark.svg") center center/ 100% auto no-repeat;
    }
  }
}

