.contact-container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 52px 80px 150px 80px;
  gap: 30px;
  position: relative;
  background: #F7F7F7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 0;
  z-index: 1;
}

.ellipse-container{
  position: relative;
}

.ellipse {
  position: relative;
}

.contact-title {
  position: absolute;
  top: 0;
  left: 0;
}

.heading-solution {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  height: 59px;
  top: 38px;
  left: 80px;
  color: #000000;
  font-family: Kantumruy Pro, var(--default-font-family);
  font-size: 58.12443542480469px;
  font-weight: 700;
  line-height: 58.124px;
  text-align: left;
  white-space: nowrap;
  z-index: 4;
}

.contact {
  position: absolute;
  width: 128px;
  height: 32px;
  top: 112px;
  left: 90px;
  font-family: Karla, var(--default-font-family);
  font-size: 27.11864471435547px;
  font-weight: 500;
  line-height: 31.702px;
  text-align: left;
  text-overflow: initial;
  white-space: nowrap;
  z-index: 3;
}


.contact-content-wrap {
  padding: 0 10%;
}

.contact-row {
  padding: 21px 0;
  display: flex;
  width: 100%;
}

.contact-label {
  font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Hiragino Sans', 'Arial', 'sans-serif';
  font-size: 30px;
  width: 40%;
  font-weight: 600;
}

.contact-value {
  font-family: 'Inter', sans-serif;
  padding: 13.5297px 11.0697px;
  width: 100%;
  height: 2rem;
  background: #FFFFFF;
  box-shadow: 0px 0px 9.03423px rgba(0, 0, 0, 0.1);
  border-radius: 3.36865px;
  border: none;
}

.contact-value#message {
  height: 150px; /* デフォルトの高さを設定 */
  min-height: 100px; /* 最小高さを設定 */
  max-height: 300px; /* 最大高さを設定 */
}

.contact-border {
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.title-frame {
  position: relative;
}

.contact-icon {
  background: url(../image/contact-icon.svg);
  width: 267px;
  height: 285px;
  position: absolute;
  top: 0;
  right: 0;
}

.personal-info {
  text-align: center;
  width: 100%;
  font-size: 1.3rem;
}

.modal, .confirm-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content, .confirm-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 40px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
}

.privacy-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.privacy-content {
  font-size: 14px;
  line-height: 1.8;
}

.privacy-content h3 {
  font-size: 18px;
  margin: 25px 0 15px;
  font-weight: bold;
}

.privacy-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

.privacy-content li {
  margin: 5px 0;
}

.contact-info {
  margin-top: 15px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.close, .confirm-close {
  color: #aaa;
  float: right;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 20px;
}

.close:hover {
  color: #000;
}

.contact-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 590px;
  height: 103.51px;
  background: #1C1C1C;
  border-radius: 86.2573px;
}

.contact-submit-text {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
}

.submit-conteiner {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* エラー表示用スタイル */
.required-mark {
  color: #F24343;
  margin-left: 5px;
}

.error-message {
  color: #F24343;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

.contact-value.error {
  border: 1px solid #F24343;
}

.input-container {
  width: 50%;
}

/* モーダルボタンスタイル */
.modal-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#confirm-submit {
  width: 300px;
  cursor: pointer;
}
