@charset "utf-8";

/* グレーの背景のエリア */
main{
  grid-template-rows: calc((100dvh - 85px - 50px)* 0.7) calc((100dvh - 85px - 50px)* 0.3);
  @media screen and (max-height: 906px) {
      grid-template-rows: calc(780px* 0.7) calc(780px* 0.3);
  }
  .contents_area{
      overflow: hidden;
      height: -webkit-fill-available;
      padding-right: 60px;
      grid-area: 1 / 2 / 2 / 3;
      @media screen and (max-width: 1032px){
          height: 70%;
          padding: 0 20px;
      }
      @media screen and (max-width: 575px){
        height: 60%;
    }
      .hdg_area{
          display: flex;
          align-items: center;
          justify-content: space-between;
          h2{
              display: flex;
              align-items: center;
              height: 100px;
              font-size: 30px;
              &::before{
                  display: block;
                  content: '';
                  width: 100px;
                  height: 100%;
                  background: url(../../images/common/menu_icon01.svg) center/contain no-repeat;
              }
              @media screen and (max-width: 1199px){
                  font-size: 1.5em;
              }
              @media screen and (max-width: 1032px){
                  height: 70px;
                  &::before{
                      width: 70px;
                  }
              }
              @media screen and (max-width: 575px){
                  height: 52px;
                  font-size: 1.1em;
                  &::before{
                      width: 52px;
                  }
              }
            }
            p.contentstitle_sub{
              margin: 0;
              padding-left: clamp(1rem, 0.789rem + 0.68vw, 1.6rem);
              /* 画面サイズ1920px以上　余白1.6rem */
              /* 画面サイズ500px以下　余白1rem */
              font-family: "a-otf-ud-shin-maru-go-pr6n", sans-serif;
              font-size: clamp(0.875rem, 0.633rem + 0.77vw, 1.563rem);
              /* 画面サイズ1920px以上　フォントサイズ25px */
              /* 画面サイズ500px以下　フォントサイズ14px */
            }
            .title-button-area{
              margin-left: auto;
            }
      }
      .contents_inner{
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          height: calc(100% - 100px);
          padding: 7px;
          overflow-y: auto;
          @media screen and (max-height: 906px){
            height: calc(780px* 0.7 - 100px);
            padding: 7px 1rem 20px 7px;
          }
          @media screen and (max-width: 1032px){
            height: calc(100% - 100px);
          }
          @media screen and (max-width: 575px){
            height: calc(100% - 50px);
          }
          h3{
              margin-bottom: 21px;
              font-size: 28px;
              span{
                  margin-left: 0.5em;
              }
              @media screen and (max-width: 1199px){
                  font-size: 1.5em;
              }
              @media screen and (max-width: 575px){
                  font-size: 1.1em;
              }
          } 
          .mainmenu {
            overflow: auto;
            .item-container {
              width: calc(100% - 10px);
              display: flex;
              flex-wrap: wrap;
              align-content: flex-start;
              padding: 5px;
              .item {
                width: 100%;
                background: #ffffff;
                box-shadow: 0px 0px 5px #00000033;
                border-radius: 10px;
                text-align: left;
                margin: 0 0 10px 0;
                padding-top: 11px;
                padding-left: 20px;
                padding-bottom: 11px;
                padding-right: 15px;
                position: relative;
                cursor: pointer;
                &.item-hide {
                  display: none;
                }
                &[data-layer="1"] {
                  margin-left: 50px;
                }
                &[data-layer="2"] {
                  margin-left: 100px;
                }
                &[data-layer="3"] {
                  margin-left: 150px;
                }
                @media screen and (max-width: 1199px) {
                  &[data-layer="1"] {
                    margin-left: 30px;
                  }
                  &[data-layer="2"] {
                    margin-left: 60px;
                  }
                  &[data-layer="3"] {
                    margin-left: 90px;
                  }
                }
                @media screen and (max-width: 1032px) {
                  width: 100%;
                  padding: 8px 10px 7px 15px;                
                  &[data-layer="1"] {
                    margin-left: 20px;
                  }
                  &[data-layer="2"] {
                    margin-left: 40px;
                  }
                  &[data-layer="3"] {
                    margin-left: 60px;
                  }
                }             
                .row-icon {
                  width: 20px;
                  height: 20px;
                  margin: 9px 20px auto auto;
                  position: relative;
                  float: left;
                  @media screen and (max-width: 1032px) {
                    width: 15px;
                    height: 15px;
                    margin: 7px 10px auto auto;
                  }                
                  svg {
                    width: 20px;
                    height: 20px;
                    stroke: var(--main-color);
                    display: none;
                    @media screen and (max-width: 1032px) {
                      width: 15px;
                      height: 15px;
                      position: relative;
                      top: -3px;
                    }
                  }                
                  &[data-open="false"] {
                    .icon-close {
                      display: inline-block;
                    }
                  }                
                  &[data-open="true"] {
                    .icon-open {
                      display: inline-block;
                    }
                  }
                }                
                .item-text {
                  /* row-icon=20px margin=20px margin=10px threecheck=30px */
                  width: calc(100% - 20px - 20px - 10px - 30px);
                  float: left;
                  @media screen and (max-width: 1032px) {
                    width: calc(100% - 15px -10px -5px -25px);
                  }
                  .index-text {
                    color: var(--text-color);
                    font-size: 25px;
                    font-weight: normal;
                    letter-spacing: 0;
                    line-height: 38px;
                    float: left;
                    @media screen and (max-width : 1199px) {
                      font-size: 20px;
                    }
                    @media screen and (max-width: 1032px) {
                      font-size: 18px;
                      line-height: 28px;
                    } 
                  }
                  .rate-text {
                    color: var(--text-color);
                    font-size: 16px;
                    font-weight: normal;
                    letter-spacing: 0;
                    line-height: 38px;
                    float: right;
                    @media screen and (max-width : 1199px) {
                      font-size: 12px;
                    }
                    @media screen and (max-width: 1032px) {
                      font-size: 11px;
                      line-height: 28px;
                    }
                  }
                }
                .threecheck {
                  width: 30px;
                  height: 30px;
                  box-sizing: border-box;
                  border: 2px solid var(--main-color);
                  border-radius: 5px;
                  position: relative;
                  margin: 3px auto auto 10px;
                  float: right;
                  cursor: pointer;
                  &[data-checked="true"]::after {
                    content: "";
                    display: block;
                    width: 10px;
                    height: 20px;
                    box-sizing: border-box;
                    border-right: 3px solid var(--main-color);
                    border-bottom: 3px solid var(--main-color);
                    transform: translateX(70%) translateY(10%) rotate(20deg);
                    position: absolute;
                    cursor: pointer;
                  }
                  &[data-checked="mixed"] {
                    background-color: var(--sub-color);
                    cursor: pointer;
                  }
                  @media screen and (max-width: 1032px) {
                    width: 25px;
                    height: 25px;
                    float: right;
                    margin: 3px auto auto 5px;
                      &[data-checked="true"]::after {
                        width: 8px;
                        height: 16px;
                      }
                  }
                }
              }
            }
          }
      }
  }
  .logo_area{
      grid-area: 2 / 2 / 3 / 3;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
      img{
          width: 105px;
      }
      @media screen and (max-width: 1032px){
        height: 30%;
      }
      @media screen and (max-width: 575px){
        height: 40%;
      }
      .below-area {
        width: 100%;
        padding-right: 5%;
        align-items: end;
        position: relative;
        @media screen and (max-width: 1032px) {
          width: 90%;
          padding-right: 0;
          align-items: center;
        }
        .below-left {
          width: calc(100% - 370px - 10px);
          height: 60px;
          display: inline-block;
          position: relative;
          @media screen and (max-width : 1399px) {
            width: 100%;
            height: 58px;
            display: inline-block;
          }
          @media screen and (max-width : 575px) {
            height: 80px;
          }
          .bookmark-only-area {
            line-height: 40px;
            background-color: var(--sub-color);
            border-radius: 5px;
            padding: 0 7px;
            position: absolute;
            left: 0;
            bottom: 0;
            @media screen and (max-width: 1032px) {
              line-height: 30px;
              padding: 0 6px 0 3px;
              position: relative;
              float: left;
            }
            span {
              height: 40px;
              font-size: 20px;
              font-weight: normal;
              letter-spacing: 0;
              line-height: 40px;
              display: inline-block;
              @media screen and (max-width: 1032px) {
                height: 30px;
                font-size: 16px;
                line-height: 30px;
              }
            }
            .bookmark-only {
              width: 30px;
              height: 30px;
              margin-right:7px;
              margin-bottom: 4px;
              box-sizing: border-box;
              accent-color: var(--main-color);
              appearance: none;
              outline: none;
              position: relative;
              cursor: pointer;
              &::before{
                content: "";
                width: 30px;
                height: 30px;
                box-sizing: border-box;
                border: 2px solid var(--main-color);
                border-radius: 5px;
                position: absolute;
                top: 0;
                left: 0;
                cursor: pointer;
              }
              &:checked::after {
                content: "";
                display: block;
                width: 10px;
                height: 20px;
                box-sizing: border-box;
                border-right: 3px solid var(--main-color);
                border-bottom: 3px solid var(--main-color);
                transform: translateX(90%) translateY(20%) rotate(20deg);
                position: absolute;
                cursor: pointer;
              }
              label {
                cursor: pointer;
              }
              @media screen and (max-width: 1032px) {
                width: 24px;
                height: 24px;
                &::before{
                  width: 24px;
                  height: 24px;
                }
                &:checked::after {
                  width: 8px;
                  height: 16px;
                }
              }
            }
          }
          .select-num-area {
            font-size: 20px;
            font-weight: normal;
            letter-spacing: 0;
            vertical-align: bottom;
            position: absolute;
            right: 0;
            bottom: 0;
            @media screen and (max-width: 1032px) {
              margin: 10px 0; 
              font-size: 20px;
              position: relative;
              float: right;
            }
            #select-num {
              font-size: 38px;
              color: var(--main-color);
              @media screen and (max-width: 1032px) {
                font-size: 30px;
              }
            }
          }
        }
        .start-area {
          float: right;
          @media screen and (max-width: 1032px) {
            width: 100%;
          }
          #btnStart {
            width: 370px;
            height: 60px;
            background: var(--main-color);
            border-radius: 10px;
            border: none;
            color: white;
            padding: 10px 20px;
            cursor: pointer;
            font-size: 25px;
            font-weight: 700;/*demi-bold*/
            text-align: center;
            letter-spacing: 0;
            @media screen and (max-height: 906px){
              height: auto;
            }
            @media screen and (max-width: 1032px) {
              width: 100%;
            }
          }
        }
      }
  }
}

.d-none{
  display: none;
}

.d-640-block{
  @media screen and (max-width : 640px) { 
    display: block;
  }
}


/* モーダル */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
  z-index: 100;
	transition: all 1s;
	background-color: rgba(0,0,0,0.5);  
  align-items: center;
}
.dialog-win {
  background: #ffffff;
  box-shadow: 0px 0px 7px #00000033;
  border-radius: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px 50px;
  color: var(--text-color);
  font-size: 30px;
  font-weight: normal;
  letter-spacing: 0;
  @media screen and (max-width: 1032px) {
    border-radius: 10px;
    padding: 30px 40px;
    font-size: 20px;
  }
  @media screen and (max-width : 575px) {
    border-radius: 10px;
    padding: 20px 30px;
    font-size: 18px;
  }
}
.dialog-btn-area {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  @media screen and (max-width: 1032px) {
    margin-top: 20px;
  }
  @media screen and (max-width : 575px) {
    margin-top: 15px;
  }
}
.dialog-btn-area button:first-child {
  @media screen and (max-width : 575px){
    margin-right: 10px;
  }
}
.dialog-btn-area button:last-child {
  margin-left: 40px;
  @media screen and (max-width: 1032px) {
    margin-left: 20px;
  }
}
.dialog-btn {
  width: 250px;
  height: 60px;
  background: #ffffff;
  border: 2px solid #c1c1c1;
  border-radius: 10px;
  color: var(--text-color);
  font-size: 30px;
  font-weight: normal;
  text-align: center;
  letter-spacing: 0;
  cursor: pointer;
  @media screen and (max-width: 1032px) {
    width: 170px;
    height: 40px;
    font-size: 20px;
  }
  @media screen and (max-width : 575px) {
    width: 130px;
    height: 35px;
    font-size: 18px;
  }
}