/* =========================================================
   0. 共通（全幅）
   ========================================================= */

.list-normal1 .list {
  margin: 0;
  padding: 0 0rem;
  border-radius: 10px;
}


.p-card {
  background: #ffffff;
  color: #19447e;
  border-radius: 8px;
  padding: 2.5rem 6rem;
  margin: 2rem 4rem 3rem;
}


.p-card form {
  width: 100%;
  margin: 0 auto;
}


.p-card table {
  width: auto;             
  max-width: 800px;        
  margin: 0 auto;          
  border-collapse: collapse;
  
}


.p-card td {
  padding: 0.6rem 0;
  vertical-align: middle;
}


.p-card td:last-child {
  width: auto;
  word-break: break-word;   
  overflow-wrap: break-word;
  white-space: normal;
}


.p-card input[type="text"],
.p-card input[type="tel"],
.p-card input[type="email"] {
  width: 100%;
  max-width: 480px;      
  box-sizing: border-box;
  display: block;
  padding: 4px 8px;
  line-height: 1.4;
}


.p-card textarea {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  display: block;
  min-height: 6em;
  resize: vertical;
  padding: 4px 8px;
  line-height: 1.4;
}


.p-card input[type="radio"] {
  margin-right: 0.25rem;
}


.p-card .inquiry-radios label {
  margin-right: 1.5rem;
}


.ime-ja {
  ime-mode: active;      
}

.ime-en {
  ime-mode: disabled;    
}


.btn-gradient {
  display: inline-block;
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  background: linear-gradient(45deg, #ff8a00, #e52e71);
}


.privacy-consent {
  margin: 2rem auto 0;
  max-width: 800px;
  font-size: 0.9rem;
}

.privacy-note {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.privacy-radio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.privacy-label {
  margin-right: 0.5rem;
}

.required {
  color: #c00;
}

.privacy-error {
  margin-top: 0.4rem;
  color: #c00;
}


#submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.privacy-box {
  margin: 2rem auto 0;
  max-width: 800px;
  font-size: 0.9rem;
}

.privacy-box h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.privacy-box h5 {
  margin: 0.8rem 0 0.4rem;
  font-size: 0.95rem;
}

.privacy-scroll {
  border: 1px solid #ccc;
  background: #f9f9f9;
  padding: 1rem;
  max-height: 260px;   
  overflow-y: auto;
  line-height: 1.6;
}

.privacy-scroll ol {
  padding-left: 1.2rem;
}

.privacy-scroll ul {
  padding-left: 1.2rem;
  list-style: disc;
}


.form-errors {
display: none;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid #c00;
  background: #ffecec;
  color: #c00;
  font-size: 0.9rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}


.p-card td:first-child {
  width: 10em;
  padding-right: 1rem;
  white-space: nowrap;
  vertical-align: top;   
}


.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.confirm-buttons button {
  width: 140px;
  height: 50px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid #19447e;
  display: flex;
  align-items: center;
  justify-content: center;
}


.confirm-buttons .btn-back {
  background: #fff;
  color: #19447e;
}


.confirm-buttons .btn-send {
  background: #19447e;
  color: #fff;
  border-color: #19447e;
}


#submit-btn {
  width: 140px;
  height: 50px;
  border-radius: 6px;
  border: 2px solid #19447e;
  background: #fff;
  color: #19447e;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 0;      
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);  
  transition: background-color 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease,
              transform 0.1s ease;
}


#submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.confirm-buttons .btn-back {
  background: #fff;
  color: #19447e;
}


.confirm-buttons .btn-send {
  background: #19447e;
  color: #fff;
  border-color: #19447e;
}


#submit-btn:hover:not(:disabled),
.confirm-buttons .btn-back:hover,
.confirm-buttons .btn-send:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}


#submit-btn:active:not(:disabled),
.confirm-buttons .btn-back:active,
.confirm-buttons .btn-send:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transform: translateY(0);
}


.confirm-buttons .btn-send:hover {
  background: #215291; 
}

.p-card input::placeholder,
.p-card textarea::placeholder {
  color: #CCCCCC;
  opacity: 1;
}


.p-card textarea {
  font-size: 1rem;
}

/* =========================================================
   1. [SP] ～767px
   ========================================================= */

@media (max-width: 767px) {

  /* 元: @media (max-width: 599px) */
  .p-card {
      padding: 1.8rem 1.2rem;
      max-width: 100%;
      margin: 2rem auto 3rem;
    }

    .p-card table {
      table-layout: auto;
    }

    .p-card td:first-child,
    .p-card td:last-child {
      width: 100%;
      display: block;
    }

    .p-card td:first-child {
      padding-bottom: 0.2rem;
    }


    .p-card input[type="text"],
    .p-card input[type="tel"],
    .p-card input[type="email"],
    .p-card textarea {
      max-width: 100%;
    }


    .p-card .inquiry-radios label {
      display: block;      
      margin-right: 0;
      margin-bottom: 0.5rem;
    }

    .p-card .inquiry-radios br {
      display: none;
    }

  .p-card table td:last-child {
    word-break: break-word;   
    overflow-wrap: break-word;
    white-space: normal;       
  }

  /* 元: @media (max-width: 599px) */
  .privacy-radio {
      flex-direction: column;
      align-items: flex-start;
    }

  /* 元: @media (max-width: 599px) */
  .privacy-box {
      max-width: 100%;
    }
    .privacy-scroll {
      max-height: 220px;
    }

  /* 元: @media (max-width: 599px) */
  .p-card table {
      width: 100%;
    }

    .p-card table tr {
      display: block;
      margin-bottom: 1.4rem;
    }

    .p-card table td {
      display: block;
      width: 100% !important;
      padding: 0.2rem 0;
    }


    .p-card table td:first-child {
      font-weight: bold;
      color: #19447e;
      margin-bottom: 0.3rem;
      padding-top: 0.4rem;
      padding-bottom: 0.2rem;
      position: relative;
    }

    .p-card table td:last-child {
      padding-left: 0.2rem;
      line-height: 1.6;
    }

  /* 元: @media (max-width: 599px) */
  .confirm-buttons {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    .confirm-buttons button {
      width: 80%;
      max-width: 260px;
    }
}

/* =========================================================
   2. [TB] 768～1279px
   ========================================================= */

@media (min-width: 768px) and (max-width: 1279px) {

  /* 元: @media (min-width: 600px) */
  .list-normal1 .list {
      display: flex;
      gap: 2rem;
    }

  /* 元: @media (min-width: 600px) and (max-width: 1024px) */
  .p-card {
      padding: 2rem 2rem;
      margin: 2rem 2rem 3rem;
    }


    .p-card table {
      width: 100%;
      max-width: 100%;
    }


    .p-card input[type="text"],
    .p-card input[type="tel"],
    .p-card input[type="email"],
    .p-card textarea {
      max-width: 100%;
    }


    .confirm-buttons button {
      width: 45%;
      max-width: 260px;
    }
}

/* =========================================================
   3. [PC] 1280px～
   ========================================================= */

@media (min-width: 1280px) {

  /* 元: @media (min-width: 600px) */
  .list-normal1 .list {
      display: flex;
      gap: 2rem;
    }
}
