/* コンタクトフォーム専用CSS */

/* メインレイアウト */
.container--contact {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.container--contact #contact {
  flex: 1;
}

.container--contact .sidebar {
  flex: 0 0 auto;
  max-width: 30%;
}

/* サイドバーがない場合の対応 */
.container--contact:not(:has(.sidebar)) #contact {
  max-width: none;
}

/* サイドバー非表示時の中央寄せ */
.container--contact.no-sidebar {
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.container--contact.no-sidebar #contact {
  max-width: 800px;
  width: 100%;
}

/* サイドバー非表示時のメインカラム幅調整 */
.no-sidebar #main_col {
  width: 100% !important;
  margin: 0 auto !important;
  max-width: 1200px;
  display: flex;
  justify-content: center;
}

.no-sidebar #main_col #article {
  width: 100%;
  max-width: 800px;
}

/* フォームスタイル */
.form {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.form__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.3rem;
}

.form__title span {
  color: #19aad5;
}

.form__item {
  margin-bottom: 1.3rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 100%;
}

  .form__item--agree {
    background-color: #f8f9fa;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 100%;
    border: 1px solid #e9ecef;
  }

.form__item--agree label {
  white-space: nowrap;
  flex-shrink: 0;
}

.form__item--submit {
  text-align: center;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.form__item label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
  width: 14rem;
  flex-shrink: 0;
  padding-top: 0.6em;
  text-align: left;
  white-space: nowrap;
  position: relative;
}

.form__item label::after {
  content: "＊";
  color: #ff0000;
  margin-right: 0.3rem;
}

.form__field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form__field--textarea {
}

.form__item input[type="text"],
.form__item input[type="email"],
.form__item input[type="tel"],
.form__item select,
.form__item textarea {
  width: 100%;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

.form__item textarea {
  resize: vertical;
  min-height: 8rem;
}

.form__item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.form__item--agree {
  background-color: #f8f9fa;
  padding: 1rem 1.3rem;
  border-radius: 8px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 100%;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.form__item--agree:hover {
  background-color: #f1f3f4;
  border-color: #d1d5db;
}

.form__item--agree label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin: 0;
  padding: 0;
  width: auto;
  flex-shrink: 0;
  position: relative;
}

.form__item--agree label::before {
  content: '';
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid #ccc;
  border-radius: 3px;
  background-color: #fff;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.form__item--agree label::after {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 0.3rem;
  height: 0.6rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  opacity: 0;
  transition: all 0.2s ease;
}

.form__item--agree input[type="checkbox"]:checked + label::before {
  background-color: #19aad5;
  border-color: #19aad5;
}

.form__item--agree input[type="checkbox"]:checked + label::after {
  opacity: 1;
}

.form__item--agree input[type="checkbox"]:focus + label::before {
  box-shadow: 0 0 0 3px rgba(25, 170, 213, 0.2);
}

/* エラーメッセージスタイル */
.field-error {
  color: #d63638;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
  line-height: 1.4;
  height: 1.2rem; /* エラーメッセージの固定高さ */
  flex-shrink: 0;
}

/* エラーメッセージ用のプレースホルダー */
.field-error-placeholder {
  height: 1.2rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.form__item button {
  background-color: #333;
  color: #fff;
  padding: 0.6rem 2.9rem;
  border: none;
  border-radius: 4px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form__item button:hover {
  background-color: #555;
}

/* サイドバー */
.sidebar__title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.sidebar__title span {
  color: #19aad5;
}

/* コンタクト情報 */
.contact-info {
  margin-bottom: 2rem;
}

.contact-info__item {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid #ddd;
  transition: all 0.25s ease;
}

.contact-info__item:last-child {
  border-bottom: none;
}

.contact-info__item:hover {
  background: #f6f6f6;
  margin: 0 -1rem;
  padding: 1.5rem 1rem;
}

.contact-info__inner {
  color: #333;
  text-decoration: none;
  display: block;
}

.contact-info__inner:hover {
  text-decoration: none;
}

.contact-info__txt {
  color: inherit;
  text-decoration: none;
}

.contact-info__title {
  color: inherit;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.contact-info__title span {
  font-size: 0.9rem;
  color: #666;
  font-weight: normal;
}

.contact-info__remarks {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* アクセス情報 */
.store-access {
  margin-bottom: 0.8rem;
}

.store-access__map {
  position: relative;
  width: 100%;
  padding-top: 51.28%;
  overflow: hidden;
  margin-bottom: 1.3rem;
}

.store-access__map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.store-access__title {
  font-style: normal;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.store-access__address {
  font-style: normal;
  font-size: 0.9rem;
}

.store-access__directions {
  font-style: normal;
  font-size: 0.9rem;
}

.store-access__directions img {
  vertical-align: middle;
  display: inline-block;
  width: 1.6rem;
  height: auto;
  margin-right: 0.3rem;
}

/* 送迎サービス */
.shuttle {
  background-color: #c6e6f9;
  border-radius: 13px;
  padding: 1rem 0 1rem 1.1rem;
}

.shuttle__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.shuttle__img {
  flex: 0 0 auto;
  max-width: 25%;
}

.shuttle__txt {
  flex: 1;
}

.shuttle__title {
  color: #005eab;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.shuttle__title span {
  display: block;
  font-size: 0.8rem;
}

.shuttle__remarks {
  color: #646464;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ポップアップ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-overlay.show .popup-container {
  transform: scale(1) translateY(0);
  animation: fadeInUp 0.3s ease-out;
}

.popup-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1.3rem 3.8rem rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 40rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.8) translateY(3.1rem);
  transition: transform 0.3s ease;
  position: relative;
}

.popup-container::-webkit-scrollbar {
  width: 8px;
}

.popup-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.popup-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.popup-header {
  padding: 1.5rem 2rem 1rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #19aad5, #0590c4);
  color: white;
  border-radius: 12px 12px 0 0;
}

.popup-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.popup-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.popup-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.popup-content {
  padding: 2rem;
}

.confirmation-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.confirmation-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.confirmation-item label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.confirmation-item p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

.message-content {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid #19aad5;
}

.completion-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.completion-icon svg {
  display: block;
  margin: 0 auto;
}

.completion-message {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.completion-note {
  text-align: center;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.error-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.error-icon svg {
  display: block;
  margin: 0 auto;
}

.error-list {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.error-item {
  margin: 0 0 0.5rem 0;
  color: #d32f2f;
  font-size: 0.9rem;
  line-height: 1.5;
}

.error-item:last-child {
  margin-bottom: 0;
}

.popup-actions {
  padding: 0 2rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 7.5rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #19aad5, #0590c4);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0590c4, #0481b3);
  transform: translateY(-0.1rem);
  box-shadow: 0 0.3rem 0.8rem rgba(25, 170, 213, 0.3);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: #fff;
  color: #666;
  border: 2px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
  border-color: #bbb;
  transform: translateY(-0.1rem);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.9rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レスポンシブ対応 */
@media (max-width: 48rem) {
  .container--contact {
    flex-direction: column;
    gap: 1rem;
  }
  
  .container--contact .sidebar {
    max-width: none;
  }
  
  .form {
    margin: 0 auto 3.8rem;
    width: 100%;
  }

  /* モバイルでのサイドバー非表示時の調整 */
  .no-sidebar #main_col {
    width: 100% !important;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
  }

  .no-sidebar #main_col #article {
    width: 100%;
    max-width: 800px;
  }
  
  .form__item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  .form__item label {
    width: auto;
    padding-top: 0;
    margin-bottom: 0.2rem;
    text-align: left;
    white-space: normal;
  }
  
  .form__field {
    width: 100%;
    height: 3rem; /* モバイル用の固定高さ */
  }
  
  .form__field--textarea {
    height: auto; /* textarea用は高さを固定しない */
  }
  
  .form__item--agree {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
  
  .form__item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }

  .form__item--agree label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin: 0;
    padding: 0;
    width: auto;
    flex-shrink: 0;
    position: relative;
  }

  .form__item--agree label::before {
    content: '';
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .form__item--agree label::after {
    content: '';
    position: absolute;
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 0.25rem;
    height: 0.5rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: all 0.2s ease;
  }
  
  .form__item label {
    font-size: 1rem;
  }
  
  .form__item input[type="text"],
  .form__item input[type="email"],
  .form__item input[type="tel"],
  .form__item select,
  .form__item textarea {
    width: 100%;
    height: auto; /* textareaは高さを固定しない */
  }
  
  .form__item button {
    padding: 1.3rem 4.4rem;
    margin-bottom: 2rem;
  }
  
  .popup-container {
    width: 95%;
    margin: 1.3rem auto;
  }
  
  .popup-header {
    padding: 1.3rem 1.5rem 0.8rem;
  }
  
  .popup-header h3 {
    font-size: 1.1rem;
  }
  
  .popup-content {
    padding: 1.5rem;
  }
  
  .popup-actions {
    padding: 0 1.5rem 1.5rem;
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
  }
  
  .confirmation-item {
    margin-bottom: 1.3rem;
    padding-bottom: 0.8rem;
  }
  
  .confirmation-item label {
    font-size: 0.8rem;
  }
  
  .confirmation-item p {
    font-size: 0.9rem;
  }
  
  .message-content {
    padding: 0.8rem;
  }
  
  .shuttle__inner {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .shuttle__img {
    max-width: none;
    text-align: center;
  }


}

@media (max-width: 30rem) {
  .popup-container {
    width: 98%;
    max-height: 95vh;
  }
  
  .popup-header {
    padding: 1rem 1.3rem 0.6rem;
  }
  
  .popup-content {
    padding: 1.3rem;
  }
  
  .popup-actions {
    padding: 0 1.3rem 1.3rem;
  }
  
  .completion-icon svg,
  .error-icon svg {
    width: 3.8rem;
    height: 3.8rem;
    display: block;
    margin: 0 auto;
  }
}

 