:root {
  --bg: #ffffff;
  --bg-soft: #f5f9f8;
  --ink: #2a3534;
  --ink-soft: #5a6766;
  --ink-mute: #8a9694;
  --line: #e5ebe9;
  --line-soft: #f0f4f2;

  --green: #06c755;
  --green-deep: #04a648;
  --green-pale: #d6f4e0;
  --green-bg: #eaf7ef;

  --blue: #4dc4ff;
  --blue-deep: #2ba8e8;
  --blue-pale: #d6eefb;
  --blue-bg: #eaf5fc;

  --orange: #ff8c42;
  --orange-deep: #ed6f1f;
  --orange-pale: #ffe0cc;
  --orange-bg: #fff2e8;

  --yellow: #ffc83d;
  --yellow-pale: #fff0c2;
  --yellow-bg: #fff8e0;

  --primary: var(--green);
  --primary-deep: var(--green-deep);
  --primary-pale: var(--green-pale);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'LINE Seed JP', sans-serif;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 0.05em;
}
.logo-mark {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}
.logo-mark::before,
.logo-mark::after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
  width: 8px; height: 8px;
  top: 12px;
}
.logo-mark::before { left: 11px; }
.logo-mark::after { right: 11px; }
.logo-mouth {
  position: absolute;
  bottom: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  border-bottom: 2.5px solid white;
  border-radius: 0 0 12px 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.25);
}
.btn-primary:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
}
.btn-outline {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ===== Page Title ===== */
.page-title-section {
  background: linear-gradient(135deg, var(--green-bg), var(--blue-bg));
  padding: 48px 32px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.page-title-icon {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.page-subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Main ===== */
.main {
  flex: 1;
  padding: 48px 32px;
}
.contact-layout {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== Form Card ===== */
.form-card {
  background: white;
  border-radius: 18px;
  padding: 40px;
  border: 1.5px solid var(--line-soft);
}
.form-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.form-group {
  margin-bottom: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-label .required {
  color: var(--orange);
  font-size: 10px;
  margin-left: 6px;
  background: var(--orange-bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.form-label .optional {
  color: var(--ink-mute);
  font-size: 10px;
  margin-left: 6px;
  font-weight: 400;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  background: white;
  border-color: var(--primary);
}
.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}
.form-helper {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 6px;
  line-height: 1.7;
}

.terms-block {
  background: var(--bg-soft);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.terms-block input { display: none; }
.terms-block label {
  flex: 1;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.85;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  gap: 10px;
}
.terms-block label::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: white;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
}
.terms-block.checked label::before {
  background: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M6 11.5L2.5 8l-1 1L6 13.5 14.5 5l-1-1z'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.terms-block label a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.submit-button {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}
.submit-button:hover {
  background: var(--primary-deep);
  transform: translateY(-2px);
}
.submit-button:disabled {
  background: var(--line);
  color: var(--ink-mute);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ===== Info Card (sidebar) ===== */
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card {
  background: white;
  border: 1.5px solid var(--line-soft);
  border-radius: 14px;
  padding: 24px;
}
.info-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card-title .icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.info-card-title .icon.green { background: var(--green-bg); }
.info-card-title .icon.blue { background: var(--blue-bg); }
.info-card-title .icon.orange { background: var(--orange-bg); }
.info-card-text {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.95;
  font-weight: 400;
}
.info-card-text strong {
  color: var(--ink);
  font-weight: 700;
}
.info-card-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.info-card-text a:hover { text-decoration: underline; }
.faq-quick-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.faq-quick-list li a {
  display: block;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}
.faq-quick-list li a:hover {
  background: var(--green-bg);
  color: var(--primary-deep);
}

/* ===== Footer ===== */
footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
}
footer a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  margin: 0 8px;
}
footer a:hover { color: var(--primary); }

/* ===== 404 Page ===== */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 32px;
}
.error-card {
  max-width: 560px;
  text-align: center;
}
.error-illust {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--green-bg), var(--yellow-bg));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  margin: 0 auto 32px;
  position: relative;
  overflow: hidden;
}
.error-illust::before,
.error-illust::after {
  content: '✨';
  position: absolute;
  font-size: 24px;
  animation: errorSparkle 2s ease-in-out infinite;
}
.error-illust::before { top: 30px; left: 30px; }
.error-illust::after { bottom: 40px; right: 40px; animation-delay: 1s; }
@keyframes errorSparkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}
.error-code {
  font-size: 80px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Quicksand', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.error-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.error-desc {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 1.95;
  margin-bottom: 32px;
}
.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.error-suggestions {
  background: white;
  border: 1.5px solid var(--line-soft);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: left;
}
.error-suggestions-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.error-suggestions ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.error-suggestions ul li {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 400;
}
.error-suggestions ul li a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.error-suggestions ul li a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-inner { padding: 14px 16px; gap: 8px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; border-radius: 10px; }
  .logo-mark::before { left: 9px; top: 10px; width: 7px; height: 7px; }
  .logo-mark::after { right: 9px; top: 10px; width: 7px; height: 7px; }
  .logo-mouth { bottom: 9px; width: 10px; height: 5px; }
  .header-inner .btn { padding: 10px 14px; font-size: 12px; }
  .page-title-section { padding: 32px 20px; }
  .page-title { font-size: 22px; }
  .main { padding: 32px 16px; }
  .form-card { padding: 28px 22px; border-radius: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .error-illust { width: 160px; height: 160px; font-size: 80px; }
  .error-code { font-size: 60px; }
  .error-title { font-size: 20px; }
  .error-actions { flex-direction: column; }
  .error-actions .btn { width: 100%; }
}
