:root {
  --ink: #64351c;
  --muted: #7a675d;
  --paper: #fff;
  --bg-cream: #f9eede;
  --chip: #f0c694;
  --field: #f3f3f3;
  --stroke: #eadfce;
  --accent: #edad87;
}

/* section */
.contact {
  padding: 120px 0;
  background: rgba(249, 238, 222, 0.57);
  color: var(--ink);
  margin-bottom: -48px;
  position: relative;
}
.contact_logo {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}
.contact_dog1 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.contact_dog2 {
  bottom: 0;
  right: 0;
  position: absolute;
  z-index: 1;
}
.contact_dogs {
  position: absolute;
  bottom: -3%;
  left: 15%;
}
.contact .inner {
  width: min(1100px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.contact__title {
  text-align: center;
  font-size: 48px;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  font-family: serif;
  font-weight: 600;
  margin-bottom: 70px;
}
.contact__lead1 {
  text-align: center;
  color: #64351c;
  font-size: 22px;
  margin: 0 auto 20px;
  line-height: 1.6;
  letter-spacing: 0.2em;
}
.contact__lead {
  text-align: center;
  color: #64351c;
  font-size: 22px;
  margin: 0 auto 58px;
  line-height: 1.6;
  letter-spacing: 0.2em;
}
.contact__form {
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 50px 30px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}
.field {
  display: block;
  margin: 14px 0 18px;
}
.field__label {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  font-family: serif;
  font-weight: 500;
}
.req {
  font-size: 20px;
  color: #fff;
  background: #bb511f;
  border-radius: 999px;
  padding: 0.1em 1em;
  margin-left: 0.5em;
}
.input,
.textarea,
.select__trigger {
  width: 100%;
  background: var(--field);
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 20px;
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.input:focus,
.textarea:focus,
.select--open .select__trigger {
  border-color: #e7e7e7;
  box-shadow: 0 0 0 3px color-mix(in srgb, #e7e7e7 25%, transparent);
}
.textarea {
  resize: vertical;
}
.select {
  position: relative;
}
.select__text {
  font-size: 20px;
}
.select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}
.select__caret {
  inline-size: 22px;
  block-size: 22px;
  flex: 0 0 auto;
  background: no-repeat center/contain;
}
.select__menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline: 0;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.1);
  padding: 8px;
  margin: 0;
  list-style: none;
  display: none;
  z-index: 20;
}
.select--open .select__menu {
  display: block;
}
.select__option {
  padding: 14px 14px;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  font-size: 20px;
  color: var(--ink);
}
.select__option:hover {
  background: #f9f9f9;
}
.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 50px auto 60px;
  font-size: 22px;
  justify-content: center;
}
.btn-submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #bb511f;
  color: #fff;
  padding: 6px 65px;
  font-size: 30px;
  border-radius: 999px;
  letter-spacing: 0.2em;
  transition: transform 0.1s ease, background 0.15s ease;
  font-family: serif;
}
.btn-submit:hover {
  opacity: 0.75;
  color: #fff;
  transform: translateY(-1px);
}
.actions {
  text-align: center;
}
.agree a:hover {
  opacity: 0.75;
}

.agree a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.agree input {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #d9d3c9;
  border-radius: 2px;
  background: #d9d3c9;
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.agree input:focus-visible {
  outline: 3px solid #edad87;
  outline-offset: 2px;
}
.agree input::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0px;
  width: 8px;
  height: 14px;
  border-right: 2px solid #64351c;
  border-bottom: 2px solid #64351c;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.15s ease;
}
.agree input:checked::after {
  transform: rotate(45deg) scale(1);
}
.select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 44px 14px 16px;
  background: #eee;
  border: 1px solid #e8e0d6;
  border-radius: 8px;
  color: var(--ink, #64351c);
  text-align: left;
}
.select__trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 22px solid #a3a3a3;
  pointer-events: none;
  transition: transform 0.2s ease;
}
.select__trigger[aria-expanded="true"]::after,
.select__trigger.is-open::after {
  transform: translateY(-50%) rotate(180deg);
}
@media (max-width: 1150px) {
  .contact_logo {
    width: 400px;
  }
  .contact_dog1 {
    width: 450px;
  }
  .contact_dog2 {
    width: 350px;
  }
  .contact_dogs {
    left: 5%;
  }
}
@media (max-width: 768px) {
  .inner {
    padding: 0 10px;
  }
  .contact {
    padding: 120px 0 60px;
  }
  .contact__title {
    font-size: 28px;
    margin-bottom: 28px;
  }
  .contact_logo {
    width: 200px;
    top: 2%;
  }
  .contact_dog1 {
    width: 250px;
    top: 1%;
  }
  .contact_dog2 {
    max-width: 220px;
    right: 0%;
    width: 100%;
  }
  .contact__lead1 {
    font-size: 14px;
    padding: 0 10px;
  }
  .contact_dogs {
    width: 291px;
    left: 5%;
    bottom: -2%;
  }
  .select__trigger {
    padding: 8px 40px 8px 10px;
    white-space: nowrap;
  }
  .contact__lead {
    font-size: 14px;
    padding: 0 10px;
    margin: 0 auto 40px;
  }
  .pc {
    display: none;
  }
  .contact__form {
    padding: 20px;
  }
  .field__label {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .req {
    font-size: 14px;
  }
  .select__text {
    font-size: 14px;
  }
  .select__option {
    font-size: 14px;
    padding: 10px 10px;
    white-space: nowrap;
  }
  span {
    font-size: 14px;
  }
  .btn-submit {
    font-size: 20px;
  }
  .agree {
    margin: 30px auto;
  }
}

/* =============================
  Thanks Section
============================= */
.thanks {
  background: var(--bg-cream);
  color: var(--ink);
  padding: 120px 0;
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
  margin-bottom: -50px;
}

.thanks__inner {
  width: 90%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: 60px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.thanks__title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 24px;
  line-height: 1.4;
  border-left: 4px solid var(--ink);
  display: inline-block;
  padding-left: 12px;
}

.thanks__text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}

.thanks__linkwrap {
  margin-top: 24px;
}

.thanks__link {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  padding: 12px 24px;
  border-radius: 999px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(100, 53, 28, 0.15);
  transition: opacity 0.3s;
}

.thanks__link:hover {
  opacity: 0.8;
}

/* =============================
  Tablet (〜1024px)
============================= */
@media (max-width: 1024px) {
  .thanks {
    padding: 100px 0;
  }

  .thanks__inner {
    padding: 48px 20px;
  }

  .thanks__title {
    font-size: 24px;
    margin-bottom: 20px;
    border-left-width: 4px;
    padding-left: 12px;
  }

  .thanks__text {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .thanks__link {
    font-size: 15px;
    padding: 12px 22px;
  }
}

/* =============================
  SP (〜768px)
============================= */
@media (max-width: 768px) {
  .thanks {
    padding: 80px 0;
  }

  .thanks__inner {
    width: 92%;
    padding: 40px 16px;
    border-radius: 12px;
  }

  .thanks__title {
    font-size: 20px;
    margin-bottom: 16px;
    line-height: 1.4;
    border-left-width: 3px;
    padding-left: 10px;
  }

  .thanks__text {
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
  }

  .thanks__link {
    font-size: 14px;
    padding: 11px 20px;
  }
}
