@charset "UTF-8";

/* ════ コンテンツ ════ */
.contact-page {
  padding: 0 20px 100px;
}
.contact-page-inner {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 60px;
}

/* リード文 */
.contact-lead {
  text-align: center;
  font-size: 16px;
  color: #666;
  line-height: 2.2;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

/* 電話ボックス */
.contact-tel-box {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 28px 20px 24px;
  margin-bottom: 56px;
  border-radius: 0 0 4px 4px;
}
.contact-tel-label {
  font-size: 15px;
  color: var(--text-light);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.contact-tel-num {
  font-size: 38px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.contact-tel-num a {
  color: inherit;
  text-decoration: none;
}
.contact-tel-hours {
  font-size: 14px;
  color: #bbb;
  letter-spacing: 0.06em;
}

/* セパレーター */
.contact-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  color: #ccc;
  font-size: 14px;
  letter-spacing: 0.14em;
}
.contact-sep::before,
.contact-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ════ フォーム ════ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}
.form-row.two-col {
  grid-template-columns: 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-required {
  background: var(--d-red);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.form-optional {
  background: #c8c8c8;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 3px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  line-height: 1.5;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(112, 91, 134, 0.12);
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: #ccc;
  font-size: 15px;
}

/* セレクトボックス */
.form-select-wrap {
  position: relative;
}
.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #aaa;
  pointer-events: none;
}
.form-select {
  cursor: pointer;
}

/* テキストエリア */
.form-textarea {
  height: 180px;
  resize: vertical;
  line-height: 1.8;
}

/* チェックボックスグループ */
.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #555;
  cursor: pointer;
  line-height: 1.5;
}
.form-checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.form-checkbox-label input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.form-checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* ════ プライバシーポリシー（スクロール型） ════ */
.form-privacy {
  margin-bottom: 32px;
}
.form-privacy-label {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* スクロールボックス */
.privacy-scroll-box {
  height: 200px;
  overflow-y: scroll;
  border: 1px solid var(--border);
  border-radius: 4px 4px 0 0;
  background: #fff;
  padding: 20px 24px;
  font-size: 13px;
  color: #555;
  line-height: 2.0;
  letter-spacing: 0.03em;
  scroll-behavior: smooth;
}
.privacy-scroll-box::-webkit-scrollbar       { width: 6px; }
.privacy-scroll-box::-webkit-scrollbar-track { background: #f0eef4; }
.privacy-scroll-box::-webkit-scrollbar-thumb {
  background: var(--accent-bg);
  border-radius: 3px;
}
.privacy-scroll-box::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.privacy-scroll-box h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin: 16px 0 6px;
  letter-spacing: 0.06em;
}
.privacy-scroll-box h3:first-child { margin-top: 0; }
.privacy-scroll-box p  { margin-bottom: 10px; }
.privacy-scroll-box ul { padding-left: 16px; margin-bottom: 10px; }
.privacy-scroll-box ul li { margin-bottom: 4px; }

/* 下部バー：プログレス + 同意チェック */
.privacy-footer {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 4px 4px;
  background: #f5f3f8;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.privacy-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.privacy-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--accent-bg);
  border-radius: 2px;
  overflow: hidden;
}
.privacy-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s ease;
}
.privacy-progress-label {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
  letter-spacing: 0.04em;
  min-width: 60px;
  text-align: right;
}
.privacy-progress-label.done {
  color: var(--accent);
  font-weight: 500;
}

/* 同意チェック */
.form-privacy-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.form-privacy-agree.locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.form-privacy-agree input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 3px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.form-privacy-agree input[type="checkbox"]:checked {
  background: var(--accent);
}
.form-privacy-agree input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 7px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
.form-privacy-agree input[type="checkbox"]:disabled {
  border-color: #ccc;
  cursor: not-allowed;
}

.privacy-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.05em;
  animation: hint-bounce 2s ease-in-out infinite;
}
.privacy-scroll-hint svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}

/* ════ 送信ボタン ════ */
.form-submit-wrap {
  text-align: center;
}
.form-submit {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 18px 80px;
  font-size: 16px;
  letter-spacing: 0.14em;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(112, 91, 134, 0.25);
}
.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(112, 91, 134, 0.35);
}
.form-submit:active {
  transform: translateY(0);
}
.form-submit-note {
  margin-top: 12px;
  font-size: 12px;
  color: #bbb;
  letter-spacing: 0.06em;
}

/* ════ 送信完了メッセージ ════ */
.contact-thanks {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.thanks-icon {
  width: 60px;
  height: 60px;
  background: var(--green);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thanks-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.thanks-text {
  font-size: 15px;
  color: #666;
  line-height: 2.2;
  margin-bottom: 40px;
}
.thanks-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 48px;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 14px;
  border-radius: 3px;
}

/* ════ レスポンシブ ════ */
@media (max-width: 600px) {
  .page-title-area       { height: 280px; }
  .page-title-ja         { font-size: 24px; }
  .contact-page-inner    { padding-top: 40px; }
  .form-row.two-col      { grid-template-columns: 1fr; }
  .form-submit           { padding: 16px 48px; }
}
