/* ベーススタイル（モバイルファースト） */

:root {
  --primary-color: #333333;
  --secondary-color: #ffffff;
  --text-color: #fff;
  --accent-color: #FFA500;
  --sub-nav-color: #000000;
  --button-color: #633319;
}


.shipping-info-form {
  max-width: 640px;
  margin: 0 auto;
}

.shipping-info-form p {
  text-align: center;
  margin-bottom: 1.5rem;
}

input[readonly],
textarea[readonly] {
  background-color: #f0f0f0;
  color: #555;
  cursor: default;
  caret-color: transparent;
}

input[readonly]:focus,
textarea[readonly]:focus {
  outline: none;
  box-shadow: none;
}

.required {
  color: red;
  margin-left: 0.25em;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.info-message {
  background-color: #e6f7ff;
  border: 1px solid #91d5ff;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  color: #005280;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  margin: 0.5rem 0;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  display: block;
  min-width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.3rem;
  font-size: 1rem;
}

button.btn {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  background-color: var(--button-color);
}

.btn-group {
  text-align: center;
}

.btn-blue {
  background-color: #007BFF;
  color: white;
}

.btn-blue:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-blue:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.btn-gray {
  background-color: #ccc;
  color: #333;
}

.btn-gray a {
  text-decoration: none;
  color: inherit;
  display: block;
  color: var(--secondary-color);
}

/* タブレット以上の画面サイズ用スタイル */
@media (min-width: 768px) and (max-width: 1024px) {

  .form-group label {
    width: 120px;
    margin-bottom: 0;
  }

  .form-group input {
    flex: 1;
  }


  .form-group:last-child {
    display: flex;
    justify-content: space-between;
  }

  .form-group:last-child .btn {
    flex: 1;
    margin-right: 0.5rem;
  }

  .form-group:last-child .btn:last-child {
    margin-right: 0;
  }
}

/* PCサイズ用の追加調整 */
@media (min-width: 960px) {
  .container {
    max-width: 800px;
  }


  .wrapper-title h1 {
    font-size: 2rem;
  }
}