.contact-title {
  white-space: nowrap;
}
/*── ベーススタイル ──*/
* {
  margin: 0;
  padding: 0;
  font-weight: 700;
}
ol,
ul,
li {
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  vertical-align: top;
}
button {
  /* all: unset; */
  cursor: pointer;
}

/*── セレクトボックス ──*/
select {
  background: none;
  font: inherit;
  padding: 9.5px 10px;
  border: 1px solid #d5daed;
  box-sizing: border-box;
  /* width: 250px; */
  width: 100%;
  border-radius: 2px;
  /* margin: 0 0 0 70px; */
}
@media screen and (max-width: 840px) {
  select {
    margin: 0;
  }
}

/*── レイアウトラッパー ──*/
.wrapper {
  margin: 0 10% 0;
}
@media screen and (max-width: 840px) {
  .wrapper {
    margin: 0 5% 0;
  }
}

/*── エラーメッセージ ──*/
.ec-errorMessage {
  color: red;
}

/*── カスタムチェックボックス ──*/
.ec-checkbox label {
  display: flex;
  align-items: center;
}
input {
  box: sizung;
}
input[type="checkbox"] {
  appearance: none;
  border: none;
  outline: none;
  position: relative;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  cursor: pointer;
}
input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #d5daed;
  border-radius: 2px;
}
input[type="checkbox"]:checked::before {
  background-color: #629649;
  border-color: transparent;
}
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 6px;
  height: 13px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
  opacity: 0;
}
input[type="checkbox"]:checked::after {
  opacity: 1;
}

/*── 見出し ──*/
h1 {
  padding: 30px 0 20px;
  text-align: center;
  border-bottom: 1px solid #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
@media screen and (max-width: 840px) {
  h1 {
    font-size: 18px;
  }
}

/*── タイトルアイコン付き ──*/
.ec-title {
  display: flex;
  align-items: center;
}
.ec-title img {
  width: 35px;
}
@media screen and (max-width: 840px) {
  .ec-title img {
    width: 22px;
  }
}
.title-ic {
  padding-right: 10px;
}
@media screen and (max-width: 840px) {
  .title-ic {
    width: 15%;
  }
}

/*── 下線付き見出し ──*/
h2 {
  border-left: 2px solid #629649;
  padding: 5px 0 5px 10px;
  color: #111111;
}
h3 {
  border-left: 2px solid #215f9a;
  padding: 5px 0 5px 10px;
}

/*── コーナー装飾（お問い合わせタイトル） ──*/
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #629649;
}
.corner-top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}
.corner-top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}
.corner-bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}
.corner-bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/*── プログレスバー（三ステップ） ──*/
.cart-progress-list {
  display: flex;
  justify-content: space-between;
  position: relative;
  width: 70%;
  margin: 0 auto;
  padding: 50px 0;
}
.cart-progress-list::before {
  content: "";
  position: absolute;
  top: 72.5px;
  left: 30px;
  width: 95%;
  border-bottom: 2px solid #9ccb8c;
}
@media screen and (max-width: 840px) {
  .cart-progress-list,
  .ec-progress {
    width: 90%;
  }
  .cart-progress-list::before {
    width: 80% !important;
  }
}
.cart-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cart-progress-spot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #9ccb8c;
  position: relative;
}

/*── フォーム共通 ──*/
.ec-input-pw {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.ec-input-pw__flextop {
  align-items: flex-start;
}
.ec-input-pwTitle {
  width: 200px;
}
@media screen and (max-width: 840px) {
  .ec-input-pwTitle {
    font-size: 14px;
  }
}
.ec-input-pwbox {
  flex: 1;
}
.ec-halfInput input {
  width: calc(50% - 5px);
  margin-right: 10px;
}

.ec-halfInput {
    display: flex;
    flex-direction: column;
    gap: 4px 0;
}

.custom-textarea {
  width: 100%;
  height: 150px;
  padding: 20px;
  box-sizing: border-box;
}

/*── プライバシー同意 ──*/
/* .privacy-checkbox {
  display: flex;
  align-items: center;
  margin: 1em 0;
} */
.privacy-checkbox .required-badge {
  background-color: #e8353e;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}
/* .checkmark {
  width: 26px;
  height: 26px;
  margin-right: 10px;
} */

/*── 送信ボタン ──*/
.ec-blockBtn--cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  padding: 15px 0;
  border-radius: 30px;
  background-color: #629649;
  color: #ffffff;
  position: relative;
  cursor: pointer;
  border: none;
  font-size: 16px;
}
.ec-blockBtn--cancel::before {
  content: "→";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-family: "Noto Sans JP";
  font-weight: 700;
  
}
@media screen and (max-width: 840px) {
  .ec-blockBtn--cancel {
    width: 200px;
    font-size: 12px;
  }
}

/* タイトルセクション */
.contact-title-section {
  padding: 60px 20px;
}

.contact-box {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 60px 40px 40px;
  border: 1px solid transparent;
}

/* タイトル */
.contact-title {
  position: absolute;
  top: -15px;
  padding: 0 10px;
  font-size: 27px;
  font-weight: bold;
  margin: 0;
  border-bottom: none;
  display: block;
}
.contact-title .title-ic {
  margin: 6px 0;
  padding-right: 0;
}

@media screen and (max-width: 840px) {
  .contact-title {
    font-size: 24px;
    align-items: center;
    justify-content: center;
  }
}

/* 四隅の黒角線 */
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid #111;
}
.corner-top-left {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}
.corner-top-right {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}
.corner-bottom-left {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}
.corner-bottom-right {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

/* テキスト部分 */
.contact-content p {
  margin: 10px 0;
  line-height: 1.6;
  color: #555555;
}
.contact-content .note {
  font-size: 14px;
  color: #444;
}

/* お問い合わせフォームセクション */
.contact-section {
  background-color: #f9f9fc;
  padding: 60px 20px;
}
.contact-section .cart-progress-list {
  width: 25%;
}
.contact-section .cart-progress-list::before {
  width: 90%;
}

@media screen and (max-width: 840px) {
  .contact-section {
    padding: 0 15px 30px 15px;
  }
  .contact-section .cart-progress-list {
    width: 80%;
  }
  .contact-section .cart-progress-list::before {
    width: 90%;
  }
  .contact-content {
    font-size: 14px;
  }
  .contact-content .note {
    font-size: 12px;
  }
}

/* 進行状況アイコン（最初のみ白丸） */
.cart-progress-item:nth-of-type(1) .cart-progress-spot::before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: #ffffff;
}

/* フォーム配置 */
.contact-section .ec-input {
  width: 50%;
  margin: 30px auto 0;
}
@media screen and (max-width: 840px) {
  .contact-section .ec-input {
    width: 70%;
    margin-top: 30px;
  }
}

/* 必須表示 */
.required-call {
  width: 60px;
}
@media screen and (max-width: 840px) {
  .required-call {
    margin-bottom: 4px;
  }
}

.required-badge {
  background-color: #e46a6a;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  margin-right: 10px;
  border-radius: 2px;
}

/* テキストエリア */
.custom-textarea {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  min-height: 120px;
}

/* プライバシー同意エリア */
.privacy-area {
  background-color: #f9f9fc;
  padding: 20px;
  font-family: sans-serif;
  text-align: center;
}
.privacy-link a {
  color: #629649;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

@media screen and (max-width: 840px) {
  .privacy-area {
    padding: 0;
  }
  .privacy-link a {
    font-size: 12px;
  }
}

.privacy-icon {
  font-size: 18px;
}

/* 同意チェックボックス */
.privacy-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  position: relative;
}
.privacy-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.privacy-checkbox .checkmark {
  width: 20px;
  height: 20px;
  background-color: white;
  border: 2px solid #629649;
  border-radius: 2px;
  position: relative;
  transition: background-color 0.2s ease;
}

@media screen and (max-width: 840px) {
  .privacy-checkbox .checkmark {
    font-size: 14px;
  }
  .privacy-checkbox {
    padding-bottom: 15px;
    font-size: 2.5vw;
  }
}

.privacy-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✔";
  color: #fff;
  font-size: 14px;
  position: absolute;
  left: 3px;
  top: -1px;
}
.privacy-checkbox input[type="checkbox"]:checked + .checkmark {
  background-color: #629649;
}

/* ユーザーデータ属性フォーム */
.h-adr {
  color: #555555;
}

.ec-input-mailbox input,
.ec-input-pwbox input {
  width: 100%;
  border: 1px solid #d5daed;
  border-radius: 2px;
  padding: 15px;
  box-sizing: border-box;
}

.ec-login__actions {
  padding-bottom: 10px;
  display: flex;
  justify-content: center;
}

.ec-login__actions .ec-blockBtn--cancel::before {
  content: "→";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: auto;
  right: 20px;
}

.checkmark {
  /* width: 26px;
    height: 26px; */
  /* margin-right: 10px; */
}

.address {
  font-size: 14px;
  margin: 10px 0;
}

@media screen and (max-width: 820px) {
  .ec-input-mail,
  .ec-input-pw {
    display: inline-block;
    width: 100%;
  }
}

.ec-input textarea {
  width: 100%;
  padding: 20px 0 0 20px;
}

.ec-off4Grid {
  margin-top: 30px;
}
