@import url("_reset.css");
@import url("_vars.css?1");
@import url("_font.css");

html {
  width: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--base-color);
  @media (min-width: 781px){
    font-size: 20px;
  }
}


body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.5;
  color: var(--black-color);
  width: 100%;
  font-feature-settings: "palt";
  word-wrap: break-word;
}

a {
  text-decoration: underline;
  outline: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
}

img {
  vertical-align: bottom;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

p:not(:last-child) {
  margin-bottom: 0.6em;
}

/*----------------------------------------------
header
----------------------------------------------*/
.gHeader{
  /* height: 100px; */
  background-color: var(--base-color);
  padding: 5px;

  .inner{
    width: 100%;
    height: 100%;
    border: 3px solid var(--black-color);
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    @media (min-width: 781px){
      border-width: 4px;
      height: 68px;
    }
  }
  h1{
    /* font-family: "Special Gothic Condensed One", sans-serif; */
    /* color: #fff; */
    font-size: 24px;
    font-weight: 900;
    display: inline-block;
    line-height: 1;
    @media (min-width: 781px){
      font-size: 32px;
    }
  }
  .logo{
    width: 40px;
    position: absolute;
    top: 5px;
    right: 5px;
    @media (min-width: 781px){
      width: 58px;
      /* top: 10px;
      right: 10px; */
    }
  }
}

main {
  margin: 0 auto;
  overflow: clip;
  padding: 20px 20px 50px;
  position: relative;
  @media (min-width: 781px){
    padding-block: 40px 60px;
  }
  &::after{
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    z-index: -1;
    /* background: url(../img/texture.jpg) center/200px auto; */
    mix-blend-mode: multiply;
    background: url(../img/texture.jpg) center/cover;
    opacity: .5;
    /* background-attachment: fixed; */
  }
}

/*----------------------------------------------
メインページ
----------------------------------------------*/
.stepCatch{
  text-align: center;
  color: var(--primary-color-400);
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: .2em;
  letter-spacing: .05em;
}
.naviContainer{
  position: sticky;
  top: 0;
  z-index: 999;
  max-width: calc(var(--content-width) + 1px);
  margin: 0 auto 20px;
  background-color: var(--base-color);
  padding-top: 5px;
}
.stepNavi{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 5px;
  gap: 5px;
  overflow: hidden;
  /* filter: drop-shadow(0 0 5px rgba(61, 61, 61, 0.2)); */
  box-shadow: 0 0 7px rgba(0,0,0,.1);
  /* border: 1px solid #fff; */
  @media (min-width: 781px){
    margin-bottom: 30px;
  }
  > li{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Special Gothic Condensed One", sans-serif;
    padding: 7px 7px 5px;
    position: relative;
    z-index: 3;
    /* filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); */
    /* background-image: linear-gradient(90deg, #e4e4e4, #f8f8f8 50%); */
    background-color: #fff;
    /* border: 1px solid #f00; */
    color: var(--primary-color-400);
    @media (min-width: 781px){
      padding: 10px 10px 7px;
    }
    /* &:not(:last-child){
      clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
      width: calc(100% + 15px);
    } */
    &:first-child{
      clip-path: polygon(0 0,calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
      width: calc(100% + 15px);
      /* margin-right: 15px; */
    }
    &:nth-child(2){
      clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
      width: calc(100% + 15px);
      /* margin-right: 15px; */
    }
    &:nth-child(3){
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 15px 50%);
      width: calc(100% + 15px);
      /* margin-right: 15px; */
    }
    &:nth-child(2){
      z-index: 2;
    }
    &:nth-child(3){
      z-index: 1;
    }
    .num{
      /* opacity: .5; */
      font-size: 18px;
      letter-spacing: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 28px;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      margin-bottom: 3px;
      background-color: #fff;
      color: var(--primary-color-400);
      box-shadow: 0 0 5px rgba(0,0,0,.1);
      @media (min-width: 781px){
        width: 38px;
        font-size: 24px;
      }
    }
    .label{
      /* opacity: .5; */
      font-size: .85rem;
      letter-spacing: .15em;
      line-height: 1;
    }
    &.active{
      /* background-image: linear-gradient(90deg, var(--primary-color-500), var(--primary-color-400) 50%); */
      /* color: #fff; */
      .num{
        opacity: 1;
        background-color: var(--primary-color-400);
        color: #fff;
        box-shadow: none;
      }
      .label{
        opacity: 1;
      }
    }
    /* &::after{
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #fff;
      z-index: -1;
    } */
  }
}
.step{
  max-width: var(--content-width);
  margin: 0 auto;
  animation: fadeIn .4s;
  margin-bottom: 30px;
  @media (min-width: 781px){
    margin-bottom: 30px;
  }
  &.disabled{
    display: none;
  }
  > h3{
    /* background-color: var(--primary-color-500); */
    /* color: var(--primary-color-500); */
    margin-bottom: .75em;
    /* font-size: 1.1rem; */
    font-weight: 500;
    @media (min-width: 781px){
      font-size: 1.1rem;
      text-align: center;
    }
    em{
      font-style: normal;
      font-weight: bold;
      font-size: 1.15rem;
      color: var(--primary-color-400);
      @media (min-width: 781px){
        font-size: 1.3rem;
      }
    }
  }
}

.occupation{
  .occupation__options{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    @media (min-width: 781px){
      gap: 8px;
      grid-template-columns: repeat(3, 1fr);
    }
  }
}
label.checkBox{
  input[type="checkbox"]{
    display: none;
  }
  >span {
		display: flex;
    flex-direction: column;
		align-items: center;
    justify-content: center;
		height: 100%;
		border: 2px solid var(--black-color);
    color: var(--black-color);
		background-color: #fff;
    /* box-shadow: 3px 3px 10px rgba(0,0,0, .1); */
		border-radius: 5px;
		padding: .5em 1em 1em;
		line-height: 1.2;
		position: relative;
		cursor: pointer;
		/* font-size: .9rem; */
    font-weight: 500;
    transition: all .4s;
    @media (hover: hover) and (pointer: fine) {
      &:hover{
        opacity: .8;
      }
    }
    .icon{
      display: block;
      margin-bottom: 5px;
      &:before{
        transition: all .4s;
        font-size: 60px;
        color: var(--black-color);
      }
    }
	}
  input[type=checkbox]:checked {
		&+span {
      background-color: var(--primary-color-400);
      border-color: var(--primary-color-500);
      color: #fff;
      /* color: var(--primary-color-400); */
      /* border-color: var(--primary-color-400); */
      .icon{
        &:before{
          color: #fff;
          /* color: var(--primary-color-400); */
        }
      }
    }
  }
}

.selectContainer{
  position: relative;
	/* display: inline-block; */
  &::after {
    content: "";
    position: absolute;
    width: 14px;
    aspect-ratio: 1/1;
    top: 50%;
    right: 15px;
    pointer-events: none;
    transform: translateY(-50%);
    background: url(../img/arrow.svg?1) center/contain no-repeat;
  }
  select{
    border: none;
		appearance: none;
		padding: .8em 40px .8em 1.2em;
		background-color: #fff;
		border-radius: 5px;
		width: 100%;
    border: 2px solid var(--black-color);
		/* font-size: 16px; */
		outline: none;
		cursor: pointer;
    
  }
}

.itemSet{
  &:not(:last-child){
    margin-bottom: 1em;
  }
  .label{
    font-size: .85rem;
    margin-bottom: .2em;
  }
}
input.input{
  /* padding: .5em; */
  border-radius: 5px;
  border: 2px solid var(--black-color);
  padding: .8em 1.2em .8em 1.2em;
  width: 100%;
  box-sizing: border-box;
  &:focus{
    /* background-color: lightblue; */
    outline: none;
  }
}

/* chromeのオートコンプリート時水色になるのを打ち消す */
input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px white inset !important;
}

.buttonContainer{
  margin-top: 25px;
  display: grid;
  grid-template-rows: 1fr;
  @media (min-width: 781px){
    margin-top: 40px;
  }
  &:has(.disabled){
    transition: all .5s;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
  }
}
.button{
  appearance: none;
  border: none;
  background-image: linear-gradient(45deg, var(--primary-color-300), var(--primary-color-200));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  width: 15em;
  font-size: 1.15rem;
  font-weight: bold;
  border-radius: 100vmax;
  cursor: pointer;
  margin: 0 auto;
  outline: none;
  box-shadow: 0 0 15px rgba(0,0,0,.2);
  transition: all .4s;
  &:disabled{
    /* background-color: #ccc!important; */
    background-image: linear-gradient(90deg, #ccc, #ccc)!important;
    /* pointer-events: none; */
    cursor: not-allowed;
    box-shadow: none;
  }
  @media (hover: hover) and (pointer: fine) {
    &:not(:disabled){
      &:hover{
        opacity: .8;
        /* background-image: linear-gradient(90deg, var(--primary-color-300), var(--primary-color-400)); */
      }
    }
  }
  &.lastButton{
    /* background-image: linear-gradient(45deg, #ff6a00, #ff8400); */
  }
}

.errorMessage{
  margin-top: .3em;
  color: #ff3c00;
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  font-size: .95rem;
  transition: all .4s;
  &.center{
    text-align: center;
  }
  &.hidden{
    opacity: 0;
    grid-template-rows: 0fr;
  }
}

/*----------------------------------------------
thanks
----------------------------------------------*/
.thanks{
  /* background-color: rgba(255,255,255, .75); */
  max-width: var(--content-width);
  > .inner{
    min-height: calc(100dvh - 300px);
    @media (min-width: 781px){
      min-height: calc(100dvh - 380px);
    }
  }
  .lead{
    /* font-size: 1.1rem; */
    /* color: var(--primary-color-400); */
     margin-bottom: 30px;
    em{
      font-weight: bold;
      font-style: normal;
    }
  }
  .line{
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    margin-block: 1em;
    padding: 1em 0 0;
    text-align: center;
    > .inner{
      padding: 0 1em;
    }
    h3{
      margin-bottom: .5em;
      /* font-size: .9rem; */
      font-weight: bold;
      color: var(--primary-color-300);
    }
    a{
      background-color: #06c755;
      text-decoration: none;
      color: #fff;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: .5em;
      border-radius: 5px;
      max-width: 420px;
      margin-inline: auto;
      transition: opacity .4s;
      @media (hover: hover) and (pointer: fine) {
        &:hover{
          opacity: .8;
        }
      }
      .icon{
        width: 1.4em;
        display: inline-block;
        margin-right: 5px;
      }
      
    }
    .caption{
      pointer-events: none;
      text-align: left;
      font-size: .8rem;
      margin-top: -15px;
      color: #666;
      display: flex;
      align-items: flex-end;
      @media (min-width: 781px){
        margin-top: -90px;
      }
      p{
        padding: 1em .5em 1em 1.5em;
        flex: 1;
        @media (min-width: 781px){
          padding: 1em 1.5em 1.5em 4em;
        }
      }
      img{
        width: 130px;
        @media (min-width: 781px){
          width: 190px;
        }
      }
    }
  }



  .headline{
    margin-top: 3.5em;
    text-align: center;
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 1em;
    padding-block: .5em;
    border-top: 3px solid #333;
    border-bottom: 3px solid #333;
    & + .subHeadline{
      margin-top: 0;
    }
  }
  .subHeadline{
    margin-top: 3em;
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: .75em;
    color: var(--primary-color-400);
    em{
      font-family: "Special Gothic Condensed One", sans-serif;
      padding: .2em .5em;
      background-color: var(--primary-color-400);
      border-radius: 100vmax;
      color: #fff;
      letter-spacing: .05em;
      margin-right: .5em;
    }
  }
  .textList{
    list-style: disc;
    list-style: inside;
    padding-left: 1.3em;
    margin-block: 1.5em;
    > li{
      text-indent: -1.3em;
      &:not(:last-child){
        margin-bottom: .25em;
      }
    }
  }
  
  .catch{
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1em;
  }

  .back{
    margin-top: 60px;
    display: inline-block;
  }
}


/*----------------------------------------------
footer
----------------------------------------------*/
.gFooter{
  /* background-color: var(--primary-color-600); */
  background-color: var(--black-color);
  color: #fff;
  padding: 30px 20px 10px;
  font-size: .8rem;
  /* margin-top: 50px; */
  @media (min-width: 781px){
    padding-block: 50px;
  }
  .inner{
    max-width: var(--content-width);
    margin-inline: auto;
    @media (min-width: 781px){
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
    }
  }
  dl{
    display: flex;
    flex-wrap: wrap;
    line-height: 1;
    dt{
      width: 7em;
    }
    dd{
      width: calc(100% - 8em);
      position: relative;
      padding-left: 1.5em;
      &::after{
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 1px;
        height: 60%;
        transform: translateY(-50%);
        background-color: #fff;
        opacity: .5;
      }
    }
    dt,dd{
      padding-block: .5em;
    }
  }
  .copyright{
    font-size: .75rem;
    opacity: .7;
    margin-top: 15px;
    /* text-align: center; */
    @media (min-width: 781px){
      width: 50%;
      text-align: right;
    }
  }
}



