:root {
  /* ベースカラー */
  --base: #231815;
  /* キーカラー */
  --key: #7c5b40;
  /* サブキーカラー */
  --subkey: #ed6d46;
  /* バックカラー */
  --back: #f3efe4;
  /* グレーカラー */
  --gray: #686767;
  /* ライトグレーカラー */
  --lightgray: #72c4b1;
  /* ライトイエローカラー */
  --lightyellow: #f6ae54;
  /* ダークグレーカラー */  
  --darkgray: #545251;
}

/* ベース */
html {
    font-size:62.5%;
    scroll-behavior: smooth;
}
body{
  background-color: var(--back);
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", serif;
  color: var(--base);
    font-size: 1.6rem;
/*  font-size: clamp(14px, calc(1.333vw + 8px), 18px); */
   }
}
.mincho{
  font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
.center{
  text-align: center;
}
a{
  text-decoration: none;
  color: var(--base);
  &:hover{
    text-decoration: underline;
  }
}
.mb20{
  margin-bottom: clamp(15px, calc(1.212vw + 7.455px), 20px);
  @media screen and (min-width: 1200px) {
    margin-bottom: 20px;
  }
}
.pb20{
  padding-bottom: clamp(10px, calc(1.212vw + 7.455px), 20px);
  @media screen and (min-width: 1200px) {
    padding-bottom: 20px;
  }
}
.mb140{
  margin-bottom: clamp(50px, calc(1.212vw + 7.455px), 140px);
  @media screen and (min-width: 1200px) {
    margin-bottom: 140px;
  }
}
.pb140{
  padding-bottom: clamp(50px, calc(1.212vw + 7.455px), 140px);
  @media screen and (min-width: 1200px) {
    padding-bottom: 140px;
  }
}
.pl70{
    padding-left: 0;
  @media screen and (min-width: 1200px) {
    padding-left: 70px;
  }
}
.pr70{
  padding-right: 0;
  @media screen and (min-width: 1200px) {
    padding-right: 70px;
  }
}
.required{
        color: var(--subkey);
      }
      .optional{
        color: var(--lightgray);
      }


/* ヘッダー */
header{
   padding: clamp(20px, calc(1.212vw + 7.455px), 33px) clamp(21px, calc(1.212vw + 7.455px), 42px);
  @media screen and (min-width: 1200px) {
  padding: 33px 42px;
  }
  h1{
    text-align: center;
    @media screen and (min-width: 1200px) {
      text-align: left;
    }
    img{
      width: 31.58vw;
      min-width: 200px;
      @media screen and (min-width: 1200px) {
        width: 379px;
      }
    }
  }
  }

/* セクション */

  .entry{
    width: 100%;
    width: 80vw;
  max-width: 960px;
    margin: 0 auto;
     @media screen and (min-width: 1200px) {
       width: 80vw;
    }
    h1{
      padding: 50px 0 50px;
    font-size: clamp(24px, calc(2.667vw + 18px), 30px);
     @media screen and (min-width: 1200px) {
    font-size:3rem;
    padding: 70px 0 80px;
   }
    font-weight: normal;
  }

  }
  .entry-form{
    h2{
      font-size: clamp(20px, calc(2.424vw + 15.91px), 25px);
      font-weight: normal;
      @media screen and (min-width: 1200px) {
    font-size:  2.5rem;
    &.basis{
      font-size: clamp(24px, calc(2.667vw + 18px), 30px);
       @media screen and (min-width: 1200px) {
    font-size:2.5rem;
   }
    }
   }
      font-weight: normal;
      color: var(--key);
    }
    .notes{
      font-size: clamp(14px, calc(1.333vw + 8px), 16px);
      line-height: 1.4;
      @media screen and (min-width: 1200px) {
        font-size: 1.6rem;
      }
    }
    .hr{
      border-bottom: 1px solid var(--base);
    }
    .hr-top{
      border-top: 1px solid var(--base);
    }
  }
  .entry-form-group{
    @media screen and (min-width: 1200px) {
       display: grid;
      grid-template-columns:repeat(2,1fr);
      grid-template-columns: minmax(0, 31.90vw) 1fr;
      align-items: center;
    }
    @media screen and (min-width: 1537px) {
      grid-template-columns: minmax(0, 490px) 1fr;
    }
    input{
      height: 5rem;
      border: 1px solid var(--gray);
      padding: 0 20px;
      border-radius: 3px;
      @media screen and (min-width: 1200px) {
       height: 6rem;
      }
    }
     input[type="file"],input[type="radio"]{
      padding: 0;
     }
    &.col2{
          li{
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 2rem;
            margin-top: 2rem;
            align-items: center;
            @media screen and (min-width: 1200px) {
              grid-template-columns: repeat(2, 1fr);
              gap: 3rem;
            margin-top: 3rem;
            }
          }
          input{
           vertical-align: middle;
           font-size: clamp(14px, calc(1.333vw + 8px), 16px);
   @media screen and (min-width: 1200px) {
        width: calc(100% - 3.5rem);
    font-size: 1.6rem;
   }
          }
   }
    &.col1{
          li{
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            margin-top: 0;
            align-items: baseline;
            @media screen and (min-width: 1200px) {
              margin-top: 3rem;
            }
            &:first-child{
                  line-height: 3.2;
            }
          }
          input{
           width:auto;
           vertical-align: middle;
           font-size: clamp(14px, calc(1.333vw + 8px), 16px);
   @media screen and (min-width: 1200px) {
    width: calc(100% - 3.5rem);
    font-size: 1.6rem;
   }
          }
   }
   &.col3{
          li{
            margin-top: 2rem;
            @media screen and (min-width: 769px) {
              display: flex;
            gap: 2rem;
            align-items: center;
               margin-top: 3rem;
            }
            .sp{
              display: block;
              @media screen and (min-width: 769px) {
                display: none;
              }
            }
            #graduation-month{
              margin-top: 2rem;
              @media screen and (min-width: 769px) {
                margin-top: 0;
              }
            }
          }
          input{
           vertical-align: baseline;
           font-size: clamp(14px, calc(1.333vw + 8px), 16px);
           margin-right: 1rem;
           @media screen and (min-width: 769px) {
            margin-right: 0;
           }
   @media screen and (min-width: 1200px) {
    font-size: 1.6rem;
   }
          }
   }
   &.col4{
    display: flex;
    @media screen and (min-width: 1200px) {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3rem;
    }
    h3{
      margin-top: 2rem;
      white-space: nowrap;
      vertical-align: middle;
      @media screen and (min-width: 1200px) {
      margin-top: 3rem;
      }
    }
    ul{
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-wrap: wrap;
      gap: 2rem;
      margin-top: 2rem;
      @media screen and (min-width: 1200px) {
         gap: 3rem;
      margin-top: 3rem;
      }
     
    }
   }
   &.hr{
    border: none;
    @media screen and (min-width: 1200px) {
      border-bottom: 1px solid var(--base);
    }
    h2{
      padding-bottom: 1rem;
      border-bottom: 1px solid var(--base);
       @media screen and (min-width: 1200px) {
        padding-bottom: 0;
        border: none;
    }
    
    }
   }
  }
  
  .entry-form-table--col{
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-top: 2rem;
    @media screen and (min-width: 1200px) {
    margin-top: 0;
    }
    tr{
      @media screen and (min-width: 1200px) {
      display: grid;
      grid-template-columns:repeat(3,1fr); 
      }
    }
    label{vertical-align: middle;
    }
    td{
      display: block;
      margin-bottom: 2rem;
      @media screen and (min-width: 1200px) {
        margin-bottom: 0;
        display: table-cell;
      }
      &:last-child{
        margin-bottom: 0;
      }
    }
  }

  .entry-form-upload{
    margin-top: 2rem;
     @media screen and (min-width: 1200px) {
    margin-top: 3rem;
     }
    
    li{
      position: relative;
      margin-bottom: 1rem;
    }
  }
  
.submit{
  margin: 4rem 0 0;
  padding: 4rem 0;
  @media screen and (min-width: 1200px) {
     margin: 6rem 0 0;
  padding: 6rem 0;
  }
  button{
    background-color: var(--lightyellow);
    color: white;
    border-radius: 5px;
    font-size: 1.6rem;
    width:100%;
    max-width: 30rem;
    height: 5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
     @media screen and (min-width: 1200px) {
      border-radius: 10px;
    font-size: 2rem;
    max-width: 40rem;
    height: 6rem;
     }
    &:hover{
      background-color: var(--subkey);
    }
  }
  p{
    margin-top: 5rem;
  }

}
  input[type="radio"] {
  /* 正方形のサイズ指定 */
 
  width: 2rem;
  height: 2rem;
  @media screen and (min-width: 1200px) {
  width: 3rem;
  height: 3rem;
  }
  
  /* デフォルトのスタイルを解除 */
   @media screen and (min-width: 1200px) {
  -webkit-appearance: none;
  -moz-appearance: none;
    appearance: none;
   }

  
  /* 正方形の枠線 */
  border: 1px solid var(--gray);
  border-radius: 6px;
  vertical-align: middle;
  margin-right: 10px;
  @media screen and (min-width: 1200px) {
    border-radius: 10px;
  }
  
  /* チェック時の背景色 */
  position: relative;
  cursor: pointer;
}
input[type="radio"].circle {
  border-radius: 50%;
}
/* チェックマーク */
input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2rem;
  height:  2rem;
  background-color: var(--subkey);
  border-radius: 8px;
  border: 1px solid var(--subkey);
  @media screen and (min-width: 1200px) {
      width: 100%;
      height: 100%;
  }
}
input[type="radio"].circle:checked::after {
  border-radius: 50%;
}
	
input[type="radio"] , input[type="file"] { -webkit-appearance: none; }


.styled-file-upload{
  display: none;
}
.entry-form-upload li{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}
.entry-form-upload label {
    background: url(../img/upload.svg) no-repeat center center white;
    border: 1px solid var(--gray);
    padding: 1.5rem;
    display: inline-block;
    cursor: pointer;
    background-size: 15px;
    background-position: 7px;
    position: relative;
       width: 77px;
    &::after{
    content: "書類を添付";
        display: inline-block;
        margin-left: 5px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.2rem;
        color: var(--gray);
        white-space: nowrap;
        @media screen and (min-width: 769px) {
          font-size: 1.4rem;
        }

    }
}
footer{
  text-align: center;
  background-color: var(--darkgray);
  color: white;
  font-size: 1.6rem;
  height: 4rem;
  line-height: 4rem;
}


/* .confirm-list {
    dt {
        margin-top: 4rem;
        font-weight: bold;
    }
    dd {
        margin-top: 1rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--gray);
    }
} */

.submit {
    button[type="button"] {
        background-color: var(--gray);
        color: white;
        border-radius: 5px;
        font-size: 1.6rem;
        width: 100%;
        max-width: 30rem;
        height: 5rem;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 4rem;
        &:hover {
            opacity: 0.8;
        }
         @media screen and (min-width: 1200px) {
          max-width: 40rem;
         }
    }
}
.error-messages {
  color: #ff0000;
  margin: 20px 0;
  padding: 15px;
  border: 1px solid #ff0000;
  border-radius: 5px;
  display: none;
  background: #fff;
}

.error-messages p {
  margin: 5px 0;
  font-size: 14px;
}

/* ありがとうメッセージ */
.thanks-message {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  text-align: center;
  line-height: 1.8;
}

.thanks-message p {
  margin-bottom: 1rem;
}

.back-to-home {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--base);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: opacity 0.3s;
}

.back-to-home:hover {
  opacity: 0.8;
}

  .entry-preview {
    
    .entry-form{
padding: 20px 21px;
    @media screen and (min-width: 1200px) {
    padding: 30px 32px;
    }
    }
    .entry-form-group {
    @media screen and (min-width: 1200px) {
        display: grid;
        grid-template-columns: minmax(0, 490px) 1fr;
        align-items: center;
    }
    p{
      margin-top: 2rem;
      @media screen and (min-width: 1200px) {
        margin-top: 0;
      }
    }
}
    .confirm-list{
      display: grid;
      grid-template-columns:repeat(2,1fr);
      align-items: center;
      border-bottom: 1px solid var(--gray);
      dt{
        margin: 2rem 0;
        font-weight: normal;
        color: var(--base);
      }
      dd{
        margin: 2rem 0;
        padding: 0;
      }
     @media screen and (min-width: 1200px) {
       
      grid-template-columns: minmax(0, 490px) 1fr;
      
      dt{
        margin: 4rem 0;
      }
      dd{
        margin: 4rem 0;
      }
    }

    dd{
      border: none;
    }
    .confirm-list-school{
      p{
        margin: 0;
        padding: 2rem 0;
        border-bottom: 1px solid var(--gray);
        &:first-child{
          padding-top: 0;
        }
        &:last-child{
          border: none;
          padding-bottom: 0;
        }
        @media screen and (min-width: 1200px) {
           padding: 4rem 0;
        }
      }
    }
    }
    .file-list{
    @media screen and (min-width: 1200px) {
        display: grid;
        grid-template-columns: minmax(0, 490px) 1fr;
        align-items: center;
    }  
    }
    .submit-preview{padding: 0;
    
    }
    .submit-form{
      
      @media screen and (max-width: 1199px) {
        padding: 0;
      }

    }
  }