@charset "utf-8";
/* ==========================================================================
   contact.css
   お問い合わせページ／プライバシーポリシー 共通スタイル
   ========================================================================== */

/* ---------------------------------
   フォーム
--------------------------------- */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 30px;
}

.form-row-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.form-required {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: #8b5b27db;
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.form-optional {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--beige-100);
  color: var(--text-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-control:focus {
  outline: none;
  border-color: #8b5b27db;
  box-shadow: 0 0 0 3px rgba(139, 91, 39, 0.12);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
  line-height: 1.9;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%238b5b27' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-light);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------
   プライバシーポリシー同意
--------------------------------- */
.form-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px;
  background: var(--bg-beige);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
}

.form-agree input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.form-agree-box {
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--beige-400);
  background: var(--bg);
  position: relative;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.form-agree-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.form-agree input:checked + .form-agree-box {
  background: #8b5b27db;
  border-color: #8b5b27db;
}

.form-agree input:checked + .form-agree-box::after {
  opacity: 1;
}

.form-agree-text {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text);
}

.form-agree-text a {
  color: #8b5b27db;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-submit {
  margin-top: 34px;
  text-align: center;
}

.form-submit .btn {
  width: 100%;
  max-width: 320px;
  justify-content: center;
  padding: 18px 34px;
}

.form-submit .btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.contact-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.02rem;
}

.contact-note strong {
  color: var(--text);
}

@media (max-width: 768px) {
  
  .contact-note {
    margin: 0 auto 30px;
    text-align: left;
    padding: 20px;
  }
  
}


@media (max-width: 600px) {
  .form-row-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-row-cols .form-row {
    margin-bottom: 30px;
  }
}

/* ---------------------------------
   送信完了ページ（thanks.php）
--------------------------------- */
.thanks-content {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.thanks-message {
  margin-bottom: 36px;
}

.thanks-message p {
  line-height: 2.1;
}

.thanks-notice {
  margin-bottom: 36px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-beige);
}

.thanks-notice p {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
  color: #5f5b58;
}

.thanks-phone-block {
  margin-bottom: 44px;
  padding: 20px;
  border-radius: 18px;
  background: var(--beige-100);
}

.thanks-phone-note {
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-light);
}

.thanks-phone-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8b5b27db;
  font-family: var(--font-jp);
  font-size: 28px;
  font-weight: 600;
}

.thanks-phone-number i {
  font-size: 22px;
  color: #8b5b27db;
}

@media (max-width: 600px) {
  .thanks-notice {
    padding: 18px 20px;
  }

  .thanks-phone-block {
    padding: 26px 20px;
  }

  .thanks-phone-number {
    font-size: 22px;
  }
}

/* ---------------------------------
   プライバシーポリシー（アコーディオン）
--------------------------------- */
.policy-accordion {
  max-width: 720px;
  margin: 40px auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.policy-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  text-align: left;
  transition: background 0.3s var(--ease);
  background: rgb(223 210 210 / 50%);
}

.policy-accordion-toggle:hover {
  background: var(--beige-100);
}

.policy-accordion-toggle h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.policy-accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
}

.policy-accordion-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid #8b5b27db;
  border-bottom: 2px solid #8b5b27db;
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease);
}

.policy-accordion-toggle[aria-expanded="true"] .policy-accordion-icon::after {
  transform: rotate(225deg);
}

.policy-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}

.policy-accordion-body-inner {
  padding: 6px 28px 34px;
  background: rgba(255, 255, 255, 0.5);
}

.policy-accordion-body-inner p {
  font-size: 13px;
  line-height: 2;
  margin-bottom: 18px;
}

.policy-block {
  margin-bottom: 32px;
}

.policy-block h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.policy-block ol,
.policy-block ul {
  margin: 0 0 18px 1.2em;
}

.policy-block li {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-light);
  list-style: decimal;
  margin-bottom: 6px;
}

.policy-block ul li {
  list-style: disc;
}

.policy-date {
  text-align: right;
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 30px;
}

@media (max-width: 600px) {
  .policy-accordion-toggle {
    padding: 18px 20px;
  }

  .policy-accordion-body-inner {
    padding: 6px 20px 28px;
  }
}
