@charset "UTF-8";

/* ============================================
   Contact Page — contact.css
   ============================================ */

/* ─── Page Hero / Breadcrumb (news.css と共通構造) ── */
/* → news.css の .page-hero / .breadcrumb を流用 */

/* ─── Contact Section ───────────────────────── */
.contact-page-section {
  background: #fff;
  padding: 70px 0 100px;
}
.contact-page-inner {
  padding: 0 max(40px, calc((100% - 1100px) / 2));
}

/* ─── Page Note (above tabs) ───────────────── */
.contact-page-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.8;
  text-align: center;
  background: #f6f6f6;
  padding: 24px 40px;
  margin: 0 0 36px;
}
.contact-page-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-page-note a:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .contact-page-note {
    font-size: 15px;
    margin-bottom: 24px;
  }
}

/* ─── Form Type Selector (Radio → Button style) ── */
.form-type-selector {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
  gap: 0;
}
.form-type-btn {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  background: #f6f6f6;
  border: 1px solid var(--border);
  border-bottom: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1.5;
  text-align: center;
  margin-right: 4px;
}
.form-type-btn:last-child {
  margin-right: 0;
}
.form-type-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.form-type-btn:hover {
  background: #ececec;
  color: var(--dark);
}
.form-type-btn.is-active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border-color: var(--border);
  border-bottom: 2px solid #fff;
  margin-bottom: -2px;
  z-index: 1;
}

@media (max-width: 768px) {
  .form-type-selector {
    flex-direction: column;
    border-bottom: none;
    gap: 4px;
    margin-bottom: 32px;
  }
  .form-type-btn {
    margin-right: 0;
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    padding: 14px 12px;
  }
  .form-type-btn.is-active {
    border-color: var(--primary);
    margin-bottom: 0;
    border-bottom: 2px solid var(--primary);
  }
}

/* ─── Tab Navigation ────────────────────────── */
.contact-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 60px;
  gap: 0;
}
.contact-tab {
  flex: 1;
  padding: 16px 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  background: #f6f6f6;
  border: 1px solid var(--border);
  border-bottom: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  line-height: 1.5;
  text-align: center;
  position: relative;
  margin-right: 4px;
}
.contact-tab:last-child {
  margin-right: 0;
}
.contact-tab:hover {
  background: #ececec;
  color: var(--dark);
}
.contact-tab.is-active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  border-color: var(--border);
  border-bottom: 2px solid #fff;
  margin-bottom: -2px;
  z-index: 1;
}

/* ─── Tab Panel ─────────────────────────────── */
.contact-tab-panel {
  display: none;
}
.contact-tab-panel.is-active {
  display: block;
}

/* ─── Form Note ─────────────────────────────── */
.form-note-block {
  background: #f8f8f8;
  border-left: 3px solid var(--primary);
  padding: 16px 20px;
  margin-bottom: 40px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.8;
}
.form-note-block p {
  margin: 0 0 6px;
}
.form-note-block p:last-child {
  margin-bottom: 0;
}
.form-note{
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

/* ─── Form Group ────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

/* ─── Form Row ──────────────────────────────── */
.form-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}
.form-label-col {
  flex-shrink: 0;
  width: 220px;
  background: #f6f6f6;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
}
.form-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 6px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  border-radius: 2px;
  flex-shrink: 0;
  white-space: nowrap;
}
.form-field-col {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

/* ─── Form Controls ─────────────────────────── */
.form-input,
.form-select,
.form-textarea {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 10px 14px;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-input--sm {
  max-width: 200px;
}
.form-input--md {
  max-width: 360px;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-select--sm {
  max-width: 200px;
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ─── Radio / Checkbox ──────────────────────── */
.form-radio-group,
.form-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.form-radio-label,
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--dark);
  cursor: pointer;
}
.form-radio-label input,
.form-checkbox-label input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ─── Zip Row (input + search button) ──────── */
.form-zip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-zip-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #666;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-zip-search:hover {
  opacity: 0.85;
}

/* ─── Address Group ─────────────────────────── */
.form-address-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-address-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-address-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 60px;
}

/* ─── Form Section Heading ──────────────────── */
.form-section-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.form-section-title:first-child {
  margin-top: 0;
}

/* ─── Hint Text ─────────────────────────────── */
.form-hint {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--gray);
  margin: 0;
}

/* ─── Area Row (select + modal button) ─────── */
.form-area-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-area-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-area-modal:hover {
  background: var(--primary);
  color: #fff;
}

/* ─── 対応エリア Modal ───────────────────────── */
.area-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.area-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.area-modal {
  background: #fff;
  width: 100%;
  max-width: 680px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-16px);
  transition: transform 0.3s ease;
}
.area-modal-overlay.is-open .area-modal {
  transform: translateY(0);
}
.area-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.area-modal-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  margin: 0;
}
.area-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s;
}
.area-modal-close:hover {
  color: var(--dark);
}
.area-modal-close .material-icons {
  font-size: 24px;
}
.area-modal-body {
  overflow-y: auto;
  padding: 28px;
}
.area-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}
.area-modal-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.area-modal-pref {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--dark);
  padding: 4px 10px;
  margin: 0;
}
.area-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.area-modal-list li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--dark);
  padding: 3px 10px;
  border-left: 3px solid var(--primary);
}

.area-modal-notes {
  list-style: none;
  margin: 0 0 24px;
  padding: 16px 20px;
  background: #f8f8f8;
  border-left: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.area-modal-notes li {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: #333333;
  line-height: 1.7;
  padding-left: 1em;
  text-indent: -1em;
}
.area-modal-notes li::before {
  content: '・';
}

@media (max-width: 768px) {
  .area-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .area-modal-body {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .area-modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Privacy Agree Block ───────────────────── */
.form-privacy-agree {
  margin-top: 40px;
}

/* Header — .agree_termHeader */
.form-privacy-header {
  background: #f8f8f8;
  border: 1px solid #dedede;
  border-bottom: none;
  padding: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  color: var(--dark);
  line-height: 1.71;
  text-align: center;
}

/* Scroll wrapper — .agree_term */
.form-privacy-scroll {
  border: 1px solid #dedede;
  height: 250px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  line-height: 1.71;
  color: var(--dark);
  background: #fff;
}

/* headLine1 — 個人情報保護方針 */
.form-privacy-heading {
  position: relative;
  margin: 20px 0;
  padding-bottom: 12px;
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.25;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--dark);
}
.form-privacy-heading:first-child {
  margin-top: 0;
}
.form-privacy-heading::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 75px;
  height: 2px;
  background-color: var(--primary);
  z-index: 2;
}

/* headLine2 — 各見出し */
.form-privacy-subheading {
  position: relative;
  margin: 20px 0;
  padding: 7px 16px;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--primary);
  background-color: #faece2;
}
.form-privacy-subheading:first-child {
  margin-top: 0;
}
.form-privacy-subheading span {
  color: var(--primary);
}

/* 本文・リスト */
.form-privacy-scroll p {
  margin: 20px 0 0;
}
.form-privacy-scroll p:first-child {
  margin-top: 0;
}
.form-privacy-list {
  padding-left: 2rem;
  margin: 20px 0 0;
  list-style: disc;
}
.form-privacy-list li {
  display: list-item;
  margin-bottom: 4px;
  line-height: 1.71;
}
.form-privacy-list .form-privacy-list {
  margin-top: 4px;
}
.form-privacy-scroll a {
  color: #1a0dab;
  text-decoration: underline;
}
.form-privacy-section {
  margin-bottom: 0;
}

/* terms link — .agree_terms / .agree_termsLink */
.form-privacy-link {
  margin-top: 24px;
  text-align: center;
}
.form-privacy-link a {
  position: relative;
  display: inline-block;
  padding: 5px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-privacy-link a:hover {
  opacity: 0.75;
}

/* agree check — .agree_agree / .agree_agreeCheck / .customInput */
.form-privacy-check {
  padding: 10px;
  text-align: center;
  margin-top: 20px;
}

/* .agree_agreeCheck */
.form-privacy-check-box {
  display: inline-block;
  margin: 0 auto;
  padding: 10px;
  min-width: 290px;
  border: 1px dotted #dedede;
}

/* .customInput */
.form-privacy-check-label {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 8px;
  width: 100%;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

/* native checkbox を非表示 */
.form-privacy-check-label input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 0;
  height: 0;
}

/* .customInput_inner — チェックボックスアイコン付きテキスト */
.form-privacy-check-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

/* カスタムチェックボックス (::before) */
.form-privacy-check-inner::before {
  content: '';
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border: 1px solid #dedede;
  border-radius: 2px;
  background: #fff;
  font-size: 10px;
  line-height: 1;
}

/* チェック済み */
.form-privacy-check-label input:checked + .form-privacy-check-inner::before {
  content: '✓';
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .form-privacy-scroll {
    height: 150px;
    overflow: hidden;
    overflow-y: auto;
    padding: 10px;
  }
  .form-privacy-heading {
    font-size: 1.5714rem;
  }
  .form-privacy-heading::after {
    width: 55px;
  }
  .form-privacy-subheading {
    font-size: 1.2857rem;
    padding: 6px 10px;
  }
  .form-privacy-link {
    margin-top: 20px;
  }
  .form-privacy-check {
    margin-top: 10px;
  }
  .form-privacy-check-box {
    min-width: auto;
    width: 100%;
  }
}

/* ─── Submit Area ───────────────────────────── */
.form-submit-area {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 60px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-submit:hover {
  opacity: 0.85;
}

/* ─── Thanks Page ───────────────────────────── */
.thanks-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
}
.thanks-icon {
  font-size: 64px;
  color: var(--primary);
  margin-bottom: 24px;
}
.thanks-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 28px;
}
.thanks-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--dark);
  line-height: 2;
  margin: 0 0 20px;
}
.thanks-note {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.9;
  margin: 0 0 40px;
}
.thanks-btn {
  text-decoration: none;
}

@media (max-width: 768px) {
  .thanks-block {
    padding: 40px 0;
  }
  .thanks-title {
    font-size: 20px;
  }
  .thanks-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }
}

/* ─── Confirm Page ──────────────────────────── */
.confirm-intro {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 40px;
}

/* confirm table (reuses .form-group / .form-row / .form-label-col) */
.confirm-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  color: var(--dark);
  line-height: 1.8;
  white-space: pre-line;
  word-break: break-all;
}

.confirm-section-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  margin: 48px 0 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.confirm-section-title:first-child {
  margin-top: 0;
}

/* Action buttons row */
.confirm-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--gray);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 40px;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-back:hover {
  border-color: var(--dark);
  color: var(--dark);
}

@media (max-width: 768px) {
  .confirm-actions {
    flex-direction: column;
    gap: 16px;
  }
  .btn-back,
  .confirm-actions .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }
}

/* ============================================
   Responsive — Tablet (1100px and below)
   ============================================ */
@media (max-width: 1100px) {
  .contact-page-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ============================================
   Responsive — Mobile (768px and below)
   ============================================ */
@media (max-width: 768px) {
  .contact-page-section {
    padding: 40px 0 60px;
  }
  .contact-page-inner {
    padding: 0 20px;
  }

  /* Tabs */
  .contact-tabs {
    flex-direction: column;
    border-bottom: none;
    gap: 4px;
    margin-bottom: 32px;
  }
  .contact-tab {
    margin-right: 0;
    border: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    padding: 14px 12px;
  }
  .contact-tab.is-active {
    border-color: var(--primary);
    margin-bottom: 0;
    border-bottom: 2px solid var(--primary);
  }

  /* Form Row */
  .form-row {
    flex-direction: column;
    min-height: auto;
  }
  .form-label-col {
    width: 100%;
    padding: 12px 16px;
    min-height: auto;
  }
  .form-field-col {
    padding: 12px 16px;
  }

  /* Controls */
  .form-input--sm,
  .form-input--md,
  .form-select--sm {
    max-width: 100%;
  }

  .form-address-row {
    flex-wrap: wrap;
  }

  /* Submit */
  .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }
}
