@charset "UTF-8";

:root {
  --bg: #f7f9fc;
  --panel: #ffffff;
  --panel-soft: #f4f7fb;
  --border: #dfe7f2;
  --text: #1f2937;
  --text-muted: #526072;
  --primary: #1d4ed8;
  --primary-dark: #163db0;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: block;
}

.contact-page {
  padding: 48px 20px 72px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.contact-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 40px 48px;
}

.contact-section h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 2vw, 2.6rem);
  line-height: 1.3;
  color: var(--text);
}

.contact-body {
  display: block;
}

.lead {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-body h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.4rem, 1.6vw, 1.9rem);
  line-height: 1.5;
  color: var(--text);
}

.contact-body p,
.contact-body li {
  color: var(--text);
  font-size: 1rem;
}

.privacy-block {
  margin-top: 22px;
  padding-top: 4px;
}

.privacy-block h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text);
}

.privacy-block p {
  margin: 0 0 10px;
}

.privacy-block ol {
  margin: 12px 0 0 1.3em;
  padding: 0;
}

.privacy-block li {
  margin-bottom: 10px;
}

.contact-address {
  padding: 22px 20px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 22px rgba(29, 78, 216, 0.2);
}

.btn-primary:visited {
  color: #fff !important;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.form-page {
  padding: 48px 20px 72px;
}

.form-shell {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px 40px;
}

.page-header {
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 2vw, 2.8rem);
  line-height: 1.3;
}

.form-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-soft);
}

.tab-button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.2);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.form-box {
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.form-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
}

.form-intro p {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.confirm-box {
  background: var(--panel-soft);
}

.confirm-lead {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.confirm-section {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.confirm-section:first-of-type {
  padding-top: 0;
  border-top: none;
}

.confirm-section h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.confirm-list {
  margin: 0;
  padding: 0;
}

.confirm-list>div {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.confirm-list>div:first-child {
  border-top: none;
}

.confirm-list dt {
  font-weight: 700;
}

.confirm-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.confirm-section>p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.confirm-table th,
.confirm-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.confirm-table th {
  background: var(--panel-soft);
  font-weight: 700;
}

.confirm-table th:last-child,
.confirm-table td:last-child {
  width: 90px;
  text-align: center;
}

.empty-state {
  color: var(--text-muted);
}

.confirm-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.confirm-buttons .secondary-button {
  min-width: 180px;
  text-align: center;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.field-row:first-of-type {
  border-top: none;
}

.field-label {
  padding-top: 10px;
}

.field-label label {
  font-weight: 700;
}

.field-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.double-input {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c8d4e6;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 20px;
  font-size: 0.95rem;
}

.consent-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
}

.submit-wrap {
  display: flex;
  justify-content: center;
}

.primary-button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  text-align: center;
  min-width: 220px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(29, 78, 216, 0.18);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-button:hover:not(:disabled),
.primary-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary-button:visited {
  color: #fff !important;
}

.secondary-button {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
}

.order-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(180px, 1fr) minmax(90px, 110px) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.order-row select,
.order-row input {
  min-width: 0;
}

.order-row .remove-order-row {
  border: 1px solid #d7dfe8;
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .contact-page {
    padding-top: 32px;
  }

  .contact-section {
    padding: 28px 20px;
  }

  .action-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .form-page {
    padding-top: 32px;
  }

  .form-shell {
    padding: 24px 16px 28px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .double-input {
    grid-template-columns: 1fr;
  }

  .form-switch {
    width: 100%;
    border-radius: 18px;
  }

  .tab-button {
    flex: 1 1 48%;
  }

  .order-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .order-row select,
  .order-row input,
  .order-row .remove-order-row {
    width: 100%;
    min-width: 0;
  }

  .order-row .remove-order-row {
    grid-column: auto;
  }

  .confirm-list>div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .confirm-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .confirm-buttons {
    flex-direction: column-reverse;
  }

  .confirm-buttons .primary-button,
  .confirm-buttons .secondary-button {
    width: 100%;
  }
}