* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

:root {
  --blue: #3c43e6;
  --border: 1.5px solid var(--blue);
}

html,
body {
  width: 100%;
  height: 100%;
  background: #f9f1ef;
  position: relative;
}

h1,
h2,
h3,
h4,
p,
a,
button,
span {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: var(--blue);
}

.goo-filter {
  position: absolute;
  width: 0;
  height: 0;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  filter: url("#goo");
  will-change: transform;
  transform: translateZ(0);
}

.safari .cursor {
  filter: none;
}

@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  .cursor {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }

  html,
  body {
    cursor: auto !important;
  }
}

.cursor-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
}

.safari .cursor-dot {
  width: 12px;
  height: 12px;
}

.header {
  padding: 15px 35px;
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@media screen and (max-width: 700px) {
  .header {
    padding: 20px 15px 15px;
  }
}

.header .copy-phone {
  display: none;
}

@media screen and (max-width: 550px) {
  .header .copy-phone {
    display: block;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-container .header-left,
.header-container .header-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

@media screen and (max-width: 700px) {
  .header-container .header-right {
    gap: 15px;
  }
}

.header-container .header-left .logo {
  width: 80px;
  height: 27.6321px;
}

@media screen and (max-width: 550px) {
  .header-container .header-left .copy {
    display: none;
  }
}

.header button,
.header p,
.header a {
  color: var(--blue);
  font-size: 10pt;
  text-decoration: none;
  background: none;
  border: none;
}

.phone-form {
  padding-top: 100px;
  padding-bottom: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0px 100px;
}

@media screen and (max-width: 500px) {
  .phone-form {
    margin: 0px 15px;
  }
}

.phone-form__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.phone-form__title {
  margin: 4px 0 0;
  font-size: 24px;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.phone-form__annotation {
  font-size: 10px;
  color: #f14444;
}

.phone-form__X {
  height: 30px;
  width: 250px;
  border-radius: 15px;
  font-size: 10px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 12px 0px 40px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

#contactForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 0 100px;
  border: none;
  max-width: 500px;
  width: 100%;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 11px;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.asterisk {
  color: #f14444;
  font-size: 15px;
}

.edit {
  display: grid;
  gap: 25px;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  border: none;
  border-bottom: var(--border);
  padding: 5px 10px 5px 5px;
  font-size: 13px;
  color: var(--blue);
  background: transparent;
  outline: none;
  font-size: 13px;
}

.field__textarea {
  resize: none;
  border: 1.5px solid var(--blue);
  border-radius: 5px;
  padding: 10px 10px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.submit {
  margin-top: 2px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #f9f1ef;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.submit:hover {
  background: #2d33ed;
}

.note {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  opacity: 0.75;
}

.actions {
  display: grid;
  gap: 8px;
}

.ghost {
  height: 40px;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  display: none; /* 編集モードでは隠す */
}

.confirm {
  display: none;
  padding: 30px 10px 10px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  background: rgba(249, 241, 239, 0.95);
}

.confirm__title {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.confirm__list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.confirm__list dt {
  font-size: 11px;
  opacity: 0.8;
  color: var(--blue);
}

.confirm__list dd {
  margin: 2px 0 0;
  font-size: 13px;
  word-break: break-word;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(81, 68, 241, 0.25);
  color: var(--blue);
}

.confirm__note {
  margin: 10px 0 0;
  font-size: 11px;
  opacity: 0.75;
}

/* 確認モード（bodyにクラスが付く想定） */
body.is-confirm .confirm {
  display: block;
}
body.is-confirm #confirmBtn {
  display: none;
}
body.is-confirm #backToEditBtn {
  display: block;
}
body.is-confirm #sendBtn {
  display: block;
}
body.is-confirm .phone-form__X {
  display: none;
}

/* 編集モードでは送信ボタンを隠す */
#sendBtn {
  display: none;
}

.form-error {
  margin: 0;
  padding: 8px 0px;
  font-size: 10px;
  line-height: 1.4;
  display: none;
  color: #f14444;
}

.form-error.is-show {
  display: block;
}

/* 確認モードでは入力側を非表示、確認側を表示 */
#confirmPanel {
  display: none;
}
body.is-confirm #confirmPanel {
  border: none;
  display: flex;
  flex-direction: column;
}
body.is-confirm #editPanel {
  display: none;
}

#confirmList {
  margin-top: 20px;
  margin-bottom: 40px;
}

#donePanel {
  display: none;
}

body.is-done #donePanel {
  display: block;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.is-done #editPanel {
  display: none;
}
body.is-done #confirmPanel {
  display: none;
}
body.is-done #backToSiteBtn {
  display: block;
  border: var(--border);
  width: 250px;
  height: 30px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
body.is-done .phone-form__X {
  display: none;
}

/* 親ページに繋げて1枚スクロールにしたいモード */
.mode-page,
.mode-page body {
  height: auto;
}

.mode-page .phone-form {
  height: auto;
  overflow: visible;
}
