/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: 'Noto Sans JP', ui-sans-serif, system-ui, sans-serif;
}
body {
  margin: 0;
  line-height: inherit;
  font-family: 'Noto Sans JP', sans-serif;
  scroll-behavior: smooth;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
}
a {
  color: inherit;
  text-decoration: inherit;
}
button, input, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}
button {
  cursor: pointer;
  background-color: transparent;
  background-image: none;
}

/* Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-6 { gap: 1.5rem; }

/* Sizing */
.w-full { width: 100%; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-auto { height: auto; }
.min-h-screen { min-height: 100vh; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.p-2 { padding: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; }
.top-10 { top: 2.5rem; }
.top-1\/2 { top: 50%; }
.bottom-10 { bottom: 2.5rem; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }

/* Typography */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* Colors */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.bg-white { background-color: #ffffff; }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900 { background-color: #111827; }
.bg-blue-600 { background-color: #2563eb; }

/* Borders */
.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.rounded-md { border-radius: 0.375rem; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Effects */
.opacity-70 { opacity: 0.7; }
.overflow-hidden { overflow: hidden; }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.pointer-events-none { pointer-events: none; }
.drop-shadow-text { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-duration: 150ms; }
.transition-all { transition-property: all; transition-duration: 150ms; }

/* Interactive States */
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:scale-105:hover { transform: scale(1.05); }
.active\:scale-95:active { transform: scale(0.95); }
.focus\:border-blue-500:focus { border-color: #3b82f6; }
.focus\:ring-blue-500:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6;
}

/* Display */
.block { display: block; }
.hidden { display: none; }

/* Form Elements */
input:not([type="checkbox"]), textarea {
  appearance: none;
  background-color: #fff;
}
input:focus, textarea:focus {
  outline: none;
}

/* Responsive - md (768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:max-w-xl { max-width: 36rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* Responsive - lg (1024px) */
@media (min-width: 1024px) {
  .lg\:max-w-2xl { max-width: 42rem; }
}

/* Mobile Fixed CTA Button */
.mobile-cta {
  display: block;
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  z-index: 100;
}

.mobile-cta-button {
  display: block;
  width: 100%;
  padding: 22px 32px;
  background: linear-gradient(180deg, #4a90e2 0%, #3b7dd8 50%, #2d6bc4 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  border-radius: 60px;
  box-shadow:
    0 4px 15px rgba(59, 130, 246, 0.4),
    0 8px 30px rgba(59, 130, 246, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: glow 2s ease-in-out infinite;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.05em;
}

.mobile-cta-button:hover {
  transform: translateY(-3px);
  box-shadow:
    0 6px 20px rgba(59, 130, 246, 0.5),
    0 12px 40px rgba(59, 130, 246, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-cta-button:active {
  transform: translateY(0);
}

@keyframes glow {
  0%, 100% {
    box-shadow:
      0 4px 15px rgba(59, 130, 246, 0.4),
      0 8px 30px rgba(59, 130, 246, 0.3),
      inset 0 2px 4px rgba(255, 255, 255, 0.25),
      inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow:
      0 4px 20px rgba(59, 130, 246, 0.6),
      0 8px 45px rgba(59, 130, 246, 0.5),
      0 0 20px rgba(59, 130, 246, 0.4),
      inset 0 2px 4px rgba(255, 255, 255, 0.3),
      inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  }
}

/* デスクトップでもCTAボタンを表示（中央寄せ・幅制限） */
@media (min-width: 768px) {
  .mobile-cta {
    display: block !important;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 700px;
    bottom: 40px;
  }

  .mobile-cta-button {
    font-size: 1.8rem;
    padding: 32px 64px;
    border-radius: 80px;
    letter-spacing: 0.1em;
  }

  .mobile-cta-button:hover {
    transform: translateY(-4px);
  }
}

/* 大画面用：さらに大きく */
@media (min-width: 1200px) {
  .mobile-cta {
    width: 800px;
    bottom: 50px;
  }

  .mobile-cta-button {
    font-size: 2rem;
    padding: 36px 80px;
    border-radius: 90px;
  }
}

/* Contact Section */
.contact-section {
  padding: 3rem 1.5rem;
  padding-bottom: 6rem;
  background-color: #f9fafb;
}

.contact-container {
  max-width: 24rem;
  margin: 0 auto;
}

.contact-header {
  margin-bottom: 2rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.contact-subtitle {
  color: #4b5563;
  margin-top: 0.5rem;
}

.contact-note {
  color: #6b7280;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact-required-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #374151;
}

.required-badge {
  display: inline-block;
  background-color: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}

.optional-badge {
  display: inline-block;
  background-color: #6b7280;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  font-weight: 700;
  vertical-align: middle;
}

.form-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.form-sublabel {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.25rem;
  display: block;
}

.address-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.address-row {
  display: flex;
  flex-direction: column;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Accordion Select */
.accordion-select {
  position: relative;
  width: 100%;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  border-color: #9ca3af;
}

.accordion-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  color: #6b7280;
}

.accordion-select.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: max-height 0.3s ease;
}

.accordion-select.open .accordion-content {
  max-height: 200px;
}

.accordion-select.open .accordion-header {
  border-radius: 0.5rem 0.5rem 0 0;
}

.accordion-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  transition: background-color 0.2s ease;
}

.accordion-option:hover {
  background-color: #f3f4f6;
}

.accordion-option.selected {
  background-color: #e0f2fe;
  color: #0369a1;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #2563eb;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #2563eb;
  color: #fff;
  font-weight: 700;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.form-button:hover {
  background-color: #1d4ed8;
}

/* デスクトップ用：大きなフォーム */
@media (min-width: 768px) {
  .contact-section {
    padding: 5rem 2rem;
  }

  .contact-container {
    max-width: 800px;
  }

  .contact-header {
    margin-bottom: 3rem;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .contact-subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
  }

  .contact-note {
    font-size: 1rem;
  }

  .contact-required-note {
    font-size: 1rem;
  }

  .required-badge,
  .optional-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
  }

  .contact-form {
    gap: 1.5rem;
  }

  .form-label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .form-input {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
  }

  .form-textarea {
    min-height: 180px;
  }

  .form-hint {
    font-size: 0.85rem;
  }

  .form-sublabel {
    font-size: 0.95rem;
  }

  .address-group {
    gap: 1rem;
  }

  .checkbox-group {
    gap: 0.75rem 1.5rem;
  }

  .checkbox-label {
    font-size: 1rem;
  }

  .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }

  .form-button {
    padding: 1.25rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
}

/* Desktop Header */
.desktop-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.6rem 2rem;
  border-bottom: 1px solid #e0e0e0;
}

@media (min-width: 768px) {
  .desktop-header {
    display: block;
  }

  /* ヘッダー分の空白をbodyに追加 */
  body {
    padding-top: 45px;
  }
}

.header-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.header-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #000000;
  text-shadow: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.3rem 0;
  letter-spacing: 0.05em;
}

.header-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #f4d03f);
  transition: width 0.3s ease;
}

.header-link:hover {
  color: #555555;
}

.header-link:hover::after {
  width: 100%;
}

.header-cta {
  background: #ffffff;
  color: #000000;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-shadow: none;
  letter-spacing: 0.05em;
  border: 2px solid #000000;
}

.header-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
  background: #f0f0f0;
}

/* Footer */
.site-footer {
  background: #1f2937;
  color: #fff;
  padding: 3rem 1.5rem 2rem;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-company {
  margin-bottom: 1.5rem;
}

.footer-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-address,
.footer-tel {
  font-size: 0.9rem;
  color: #9ca3af;
  margin: 0.25rem 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.875rem;
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #374151;
}

/* Policy Pages */
.policy-page {
  padding: 2rem 1rem;
  padding-top: 80px;
}

@media (min-width: 768px) {
  .policy-page {
    padding: 3rem 2rem;
    padding-top: 100px;
  }
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .policy-container {
    padding: 3rem;
  }
}

.policy-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .policy-title {
    font-size: 2.25rem;
  }
}

.policy-subtitle {
  font-size: 1rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
}

.policy-content {
  line-height: 1.8;
  color: #374151;
}

.policy-content h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

.policy-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 0.75rem;
}

.policy-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.policy-contact-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.policy-contact-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.policy-contact-box p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}

.back-link:hover {
  background: #1d4ed8;
}

/* Privacy Agreement Box */
.privacy-agreement {
  margin-top: 1.5rem;
}

.privacy-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.privacy-text {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.privacy-link {
  color: #2563eb;
  text-decoration: underline;
}

.privacy-link:hover {
  color: #1d4ed8;
}

.privacy-checkbox {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.policy-content ol,
.policy-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* フォーム注意書き */
.form-notice {
  font-size: 0.85rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
  line-height: 1.5;
}

/* 運営事業者テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.company-table th,
.company-table td {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.company-table th {
  background: #f8fafc;
  font-weight: 600;
  width: 30%;
  color: #334155;
}

.company-table td {
  background: #fff;
  color: #475569;
}
