.form-section {
  background: #f5e2cd;
  padding: 2em;
  margin: 2em auto; 
  border-radius: 10px;
  max-width: 1000px; 
  width: 100%;       
}

.form-main{
  margin-bottom: 100px;
}

.form-container{
  margin-top: 80px;
}

h2 {
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.2em;
}
.sub {
  font-size: 1em;
  color: #e8a12b;
  text-align: center;
  margin-bottom: 2em;
  letter-spacing: 0.05em;
}

.form-p {
  font-size: 1.2em;
  text-align: center;
  max-width: 670px;
  margin: 0 auto;
  margin-top: 30px;
}

.form-link{
  color: #0066cc !important;   
  text-decoration: none;  
}
.form-link:hover{
  text-decoration: underline; 
}

.down-arrow {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 30px solid #e8a12b; 
  border-radius: 2px;
  margin: auto;
  transform: translateY(5px);
}

.form-section h3 {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 1em;
  margin-top: 10px;
  text-align: center;
}

@media screen and (max-width: 488px) {
 .form-section h3{
  font-size: 1.5rem
 }
  
}

.section-two{
  margin-top: 30px;
  height: auto;
  min-height: 280px;
}



input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 0.8em 1em;
  border: none;
  background: #fff;
  font-size: 1em;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px #ccc;
  box-sizing: border-box;
}


input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 0.4em;
}

.form-group {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2em;
}

.form-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
}

.required-label {
  display: inline-block;
  background-color: #e8a12b;
  color: #fff;
  font-size: 1.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 3px;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.nonrequired-label {
  display: inline-block;
  background-color: #77ca76;
  color: #fff;
  font-size: 1.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 3px;
  min-width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.form-label input[type="text"],
.form-label input[type="email"],
.form-label input[type="tel"],
.form-label textarea {
  flex: 1;
  padding: 0.5em;
  font-size: 1.4em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.checkbox-group {
  justify-content: center;
  margin-top: 30px;
}



.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  flex: 1;
  width: 600px;
}

.form-group select {
  width: 600px;
  height: 45px;
  font-size: 1.4em !important;
  padding-left: 6px;
}



@media screen and (max-width: 835px) {
  .form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
  width: 100%;
}

.form-label input[type="text"],
.form-label input[type="email"],
.form-label input[type="tel"],
.form-label textarea {
font-size:1.4em;
}
}




.checkbox-group .wpcf7-list-item-label {
  font-size: 1.6rem; /* 例：任意のサイズに変更 */
}

.form-group .wpcf7-list-item {
  display: block;
  width: auto;
  margin-left: 0;
}

.form-year-underline {
  border-bottom: 4px solid #e8a12b; 
  padding-bottom: 1em;              
  margin-bottom: 1.5em;             
}

.form-group:has([name*="select_year[]"]) .wpcf7-list-item {
  display: inline-block;
  margin-right: 1.5em;
}

.form-group:has([name*="type[]"]) {
  column-count: 3;
  column-gap: 2em;
}
.form-group:has([name*="type[]"]) .wpcf7-list-item {
  break-inside: avoid;
  margin-bottom: 0.5em;
}

.form-check-columns {
  gap: 2em;
  flex-wrap: wrap;
  align-items: flex-start;
  font-size: 1.6rem;
  margin-top: 30px;
}


.checkbox-col {
  flex: 1 1 0;
  min-width: 200px;
}

.checkbox-col .wpcf7-list-item {
  display: block;
  margin-bottom: 0.5em;
}

.type-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 2em; 
  justify-content: flex-start;
}

.type-checkbox .wpcf7-list-item {
  width: calc(33.333% - 2em); 
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.type-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.form-check-columns {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  align-items: flex-start;
  gap: 2em;
  max-width: 100%;           
  padding: 1em;              
  box-sizing: border-box;    
}

@media screen and (max-width: 488px) {
.form-check-columns{
  display: block;
}
  
}

.checkbox-col {
  flex: 1 1 0;
  min-width: 100px;
  max-width: 300px;
}

@media screen and (max-width: 488px) {
  .checkbox-col {
    flex: 1 1 100%;
  }
}

.checkbox-col .wpcf7-list-item {
  display: block;
  margin-bottom: 0.5em;
  text-align: left;
}

.checkbox-col .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4em;
  width: 100%;
  text-align: left;
  margin-bottom: 15px;
}

.submit-wrapper {
  text-align: center;
  margin-top: 2em;
}

.submit-wrapper input[type="submit"] {
  display: block;
  margin: 0 auto;
  background-color: #e8a12b;
  color: #fff;
  padding: 1em 2em;
  font-size: 1.5em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
}

.submit-wrapper input[type="submit"]:hover {
  background-color: #e08900;
}

span.wpcf7-not-valid-tip {
  color: red;
  font-size: 0.9em;
}

@media screen and (max-width: 835px) {
  .form-label {
    width: 100%;
  }
   .wpcf7-form-control-wrap{
     flex:1;
   }

   .wpcf7-form-control-wrap.privacy{
flex:none;
}
}

.checkbox-group .wpcf7-list-item-label {
    font-size: 1.4em;
}

/* アコーディオン */
/* オレンジの細長いバー */
.accordion-toggle {
  position: relative;
  background-color: #e69500;
  color: white;
  font-size: 1.5em;
  text-align: left;
  padding: 1rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%;
  line-height: 1.4;
  box-sizing: border-box;
}

/* 左側に透明の押下領域を作る */
.accordion-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%; /* 全体をクリック可能にしたい場合は100% */
  cursor: pointer;
  z-index: 1;
}

.accordion-toggle:hover,
.accordion-toggle:focus {
  background-color: #cc8400;
}
.accordion-toggle:active {
  transform: scale(0.98);
}
/* 押下時（クリック時）の軽いアニメーション */
.accordion-toggle:active {
  transform: scale(0.98);
}

/* 中身の折りたたみエリア */
.accordion-content {
  overflow: hidden;
  transition: max-height 0.3s ease;
  max-height: 1000px; /* 開いてるとき */
  margin-top: -30px;
}

.accordion-content:not(.open) {
  max-height: 0;
  padding: 0;
}

/* カラム調整（任意。既存CSSに追加でもOK） */
.form-check-columns {
  gap: 2rem;
}

.checkbox-col {
  flex: 1;
}

span.wpcf7-not-valid-tip{
  margin-top: 3px;
}

