/**
 * common
*/
img {
  width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

:root {
  --color-navy: #294C7A;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333333;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

@media screen and (min-width: 768px) {
  :root {
    --fs-24: clamp(2rem, 0.6759rem + 1.7241vw, 2.4rem);
    --fs-20: clamp(1.8rem, 1.1379rem + 0.8621vw, 2rem);
    --fs-18: clamp(1.6rem, 0.9379rem + 0.8621vw, 1.8rem);
    --fs-16: clamp(1.4rem, 0.7379rem + 0.8621vw, 1.6rem);
    --fs-14: clamp(1.2rem, 0.5379rem + 0.8621vw, 1.4rem);
    --fs-12: clamp(1.1rem, 0.7690rem + 0.4310vw, 1.2rem);
  }

  body {
    font-size: var(--fs-16);
    line-height: 1.7;
  }

  .niftylifestyle-main {
    background-color: #ffffff;
  }

  .niftylifestyle-main__inner {
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 57px 0;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --fs-30: clamp(3rem, 2.8231rem + 0.4914vw, 3.2rem);
    --fs-24: clamp(2rem, 1.6462rem + 0.9828vw, 2.4rem);
    --fs-20: clamp(1.8rem, 1.6231rem + 0.4914vw, 2rem);
    --fs-18: clamp(1.6rem, 1.4231rem + 0.4914vw, 1.8rem);
    --fs-16: clamp(1.6rem, 1.4231rem + 0.4914vw, 1.8rem);
    --fs-14: clamp(1.4rem, 1.2231rem + 0.4914vw, 1.6rem);
    --fs-12: clamp(1.2rem, 1.0231rem + 0.4914vw, 1.4rem);
  }

  body {
    font-size: var(--fs-14);
    line-height: 1.5;
  }

  .niftylifestyle-main {
    padding-bottom: 50px;
    background-color: #ffffff;
  }

  .niftylifestyle-main__inner {
    width: min(100%, 1000px);
    margin: 0 auto;
  }
}


/************
 * header
 ************/

@media screen and (min-width: 768px) {
  .cmp-header__text {
    padding-top: min(100%, 40px);
    text-align: center;
  }
  
  .cmp-header__par {
    display: flex;
    flex-direction: column;
  }

  .niftylifestyle-header__inner {
    width: min(100%, 1000px);
    margin: 4vw auto;
  }

  .niftylifestyle-header__inner > img {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .cmp-header {
    width: 100%;
    padding: 0;
  }
  
  .cmp-header__text {
    padding: min(100%, 16px);
    text-align: center;
  }

  .cmp-header__par {
    display: block;
  }

  .niftylifestyle-header__inner {
    width: min(100%, 1000px);
    padding: 16px;
  }

  .niftylifestyle-header__inner > img {
    width: 100%;
  }
}


/************
 * scroll page top
 ************/
.page-top {
  position: absolute;
  top: -34px;
  right: 7px;
  display: block;
  width: 114px;
  height: 33px;
  padding-top: 6px;
  background-color: #6A2C07;
  color: #FEFFFF;
  border-radius: 10px 10px 0 0;
  text-align: center;
  text-indent: 10px;
}

.page-top::before {
  position: absolute;
  top: 15px;
  left: 15px;
  content: '';
  width: 7px;
  height: 7px;
  border-left: 1px solid #ffffff;
  border-bottom: 1px solid #ffffff;
  transform: rotate(-225deg);
}

/************
 * footer
 ************/

/* desktop */
@media screen and (min-width: 768px) {
  .niftylifestyle-footer {
    border-top: 1px solid #6A2C07;
    border-bottom: 10px solid #6A2C07;
    font-size: var(--fs-14);
  }

  .niftylifestyle-footer__inner {
    position: relative;
    display: flex;
    width: min(100%, 1000px);
    margin: 0 auto;
    padding: 20px;
  }

  .niftylifestyle-footer-left {
    border-right: 1px solid #2A4C7A;
    padding: 30px 30px 30px 0;
    width: 30%;
  }

  .niftylifestyle-footer-left__niftylifestyle {
    padding-bottom: 25px;
  }

  .niftylifestyle-footer-left__niftylifestyle > img {
    width: min(168px, 100%);
    margin-left: 10%;
  }

  .niftylifestyle-footer-left__gp {
    display: flex;
    gap: 10px;
  }

  .niftylifestyle-footer-left__gp__image {
    width: 43%;
  }

  .niftylifestyle-footer-center {
    width: 38%;
    padding: 30px;
    border-right: 1px solid #2A4C7A;
    font-size: var(--fs-12);
  }

  .niftylifestyle-footer-center__note {
  }

  .niftylifestyle-footer-center__inquiry {
    display: flex;
    margin: 20px 0;
    background-color: #E2D9D3;
    border-radius: 5px;
    padding: 10px;
    gap: 20px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }

  .niftylifestyle-footer-center__inquiry__image {
    width: 10%;
  }

  .niftylifestyle-footer-right {
    width: 32%;
    font-size: var(--fs-12);
    padding: 30px 0 30px 30px;
  }

  .niftylifestyle-footer-right__title {
    font-size: var(--fs-14);
  }
  .niftylifestyle-footer-right__phone {
    font-size: var(--fs-24);
  }
}

/* mobile */
@media screen and (max-width: 767px) {
  .niftylifestyle-footer {
    border-top: 1px solid #6A2C07;
    border-bottom: 10px solid #6A2C07;
    font-size: var(--fs-14);
  }

  .niftylifestyle-footer__inner {
    position: relative;
    display: flex;
    margin: 0 auto;
    padding: 20px;
    flex-direction: column;
    align-items: center;
  }

  .niftylifestyle-footer-left {
    padding: 30px;
  }

  .niftylifestyle-footer-left__niftylifestyle {
    padding-bottom: 25px;
    width: min(80%, 280px);
    margin: auto;
    text-align: center;
  }

  .niftylifestyle-footer-left__niftylifestyle > img {
    width: min(168px, 100%);
  }

  .niftylifestyle-footer-left__gp {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-direction: column;
  }

  .niftylifestyle-footer-left__gp__image {
    width: min(50%, 150px);
  }

  .niftylifestyle-footer-center {
    font-size: var(--fs-12);
  }

  .niftylifestyle-footer-center__note {
    text-align: center;
  }

  .niftylifestyle-footer-center__inquiry {
    display: flex;
    margin: 20px 0;
    background-color: #E2D9D3;
    border-radius: 5px;
    padding: 10px;
    gap: 20px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }

  .niftylifestyle-footer-center__inquiry__image {
    width: 10%;
  }

  .niftylifestyle-footer-right {
    font-size: var(--fs-12);
    text-align: center;
  }

  .niftylifestyle-footer-right__title {
    font-size: var(--fs-14);
  }
  .niftylifestyle-footer-right__phone {
    font-size: var(--fs-30);
  }
}
