body {
    margin: 0;
    font-family: 'Noto Sans JP',sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: left;
    background-color: #fff;
}

*, *:before, *:after {
	box-sizing: border-box;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

h4 {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: left;
}

.title {
    color: #0061c3;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 16px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 1em;
    border-bottom: solid 2px #0061c3;
    margin-top: 0;
}

#logo {
    padding: 50px 0 50px 15px;
}

footer {
    padding: 50px 0px;
}

footer p {
    text-align: center;
}

.main-content {
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
}

#discription {
    padding: 0 15px;
}

.discription-text {
    line-height: 1.8;
    padding: 0 10px;
}

.content-block {
    flex: 1;
}

.form-wrapper {
    width: 100%;
    background-color: #f9f9f9;
    overflow-x: hidden;
    padding: 0 15px;
  }

.form-p {
    margin: 20px 20px 0 20px;
}

.mail_notes {
    color: #333;
    display: block;
    background: rgba(0,0,0,.1);
    border: 1px solid rgba(0, 0, 0, .1);
    padding: 0 4px;
    border-radius: 2px;
    transition: background .25s ease-in-out;
}

#form-area {
    color: #666;
    padding: 20px;
    width: calc(100% - 30px);
    margin: 0 auto;
}

.form-row {
    padding: 10px 0;
}

label {
    display: flex;
    flex-wrap: wrap;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    padding-bottom: 5px;
}
.trigger, .category {
    font-weight: 400;
    font-size: 13px;
}

.item {
    font-weight: 500;
    color: #333;
}

.required,
.optional {
    font-size: 11px;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 6px;
    font-weight: 400;
    display: inline-block;
    font-style: normal;
    line-height: .64em;
    margin: .1em .5em;
}

.required {
    background: #ff6450;
    color: #fff;
}

.optional {
    background: #a3a3a3;
    color: #fff;
    white-space: nowrap;
}

.inputFormat {
    padding: 2px 4px;
    font-size: 13px;
    color: #777;
}

.checkbox-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

.checkbox-options {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.checkbox-options label {
    font-size: 13px;
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    background-color: #fff;
    border-radius: 6px;
    color: #333;
    padding: 10px 10px;
    line-height: 1.4;
    box-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .1);
    border: 1px solid rgba(0, 0, 0, .3);
    border-color: #f9f9f9;
    height: auto;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
}

input::placeholder,
textarea::placeholder {
  font-size: 13px;
  color: #999;
}

.invalid {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8em;
    width: 100%;
}

.name-group {
    display: flex;
    gap: 10px;
}

.name-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    box-shadow: inset 1px 1px 2px 0 rgba(0, 0, 0, .1);
    border: 1px solid rgba(0, 0, 0, .3);
    border-color: #f9f9f9;
    resize: vertical;
    font-size: 14px;
}

.inquiry {
    display: inline;
    white-space: normal;
}
.note {
    display: inline;
    flex: 1;
    font-size: 13px;
    color: #777;
    font-weight: 500;
}
  
.privacy-text {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    text-align: center;
}
  
.privacy-text a {
    color: #00a57e;
    text-decoration: none;
}
  
.privacy-agree {
    text-align: center;
    display: block;
    margin-top: 0px;
    font-size: 14px;
    cursor: pointer;
    color: rgba(51, 51, 51, .6);
}
  
.submit-button {
    background-color: white;
    border: 2px solid #0071ce;
    color: #0071ce;
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin: 10px auto 0 auto;
}
  
.submit-button:hover {
    background-color: #1e90ff;
  color: white;
}

button:active {
    transform: scale(0.96);
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.2);
  }
  
.submit-button:disabled {
    background-color: white;
    border: 2px solid #0071ce;
    color: #0071ce;
    cursor: not-allowed;
    opacity: 0.5;
}

.thanks {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 80px auto;
    line-height: 1.8;
  }

  .thanks > h1 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.thanks > p {
    font-size: 0.8rem;
}

@media (max-width: 767px) {

    .main-content {
        flex-direction: column;
      }

    h1 {
        font-size: 20px;
    }

    #registrationForm {
        padding: 20px 15px;
        margin: 0 auto;
        width: 100%;
      }
    
      input[type="text"],
      input[type="email"],
      input[type="tel"],
      input[type="password"],
      textarea {
        width: 100%;
        padding: 5px;
      }
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    .main-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .content-block {
        /* 等分されるように flex: 1 を残しつつ余計な margin は削除 */
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
