html {
  scroll-behavior: smooth;
}

/* Custom CSS — add project-specific styles here */

body {
  overflow-x: hidden;
}

input::placeholder,
textarea::placeholder {
  color: #b2b2b2 !important;
}

/* 確認画面・完了画面は確認ボタン押下まで非表示 */
.confirm_area,
.thanks_area {
  display: none;
}

/* CF7 デフォルトの送信完了メッセージを非表示（/thanks へリダイレクトするため） */
.wpcf7-response-output {
  display: none;
}

.wpcf7-spinner {
  display: none;
}

.submit-button,
.confirm_button {
  padding: 20px 0;
  width: 100%;
  border-radius: 4px;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  background-color: #558E59;
  color: white;
  cursor: pointer;
  border: none;
}

.submit-button:disabled,
.confirm_button:disabled {
  background-color: #f3f3f3;
  color: #495057;
  cursor: not-allowed;
}

.submit-button:hover,
.confirm_button:hover {
  opacity: 0.8;
}

.wpcf7-list-item {
  margin-left: 0 !important;
}

.wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.template-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #495057;
  background: #eff6ff;
  border: 1px dashed #558E59;
  border-radius: 9999px;
}

.template-section {
  border-bottom: 1px dashed #cbd5e1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ページ読み込み時（ヘッダーなど） */
.animate-fade-in {
  animation: fadeIn 1.2s ease-out forwards;
}

.hidden-element-fade-in {
  opacity: 0;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.hidden-element {
  opacity: 0;
  transform: translateY(24px);
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .animate-fade-in-up,
  .hidden-element,
  .hidden-element-fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #558E59;
  border-radius: 50%;
  color: #495057;
  text-decoration: none;
  font-size: 16px;
}

a.next.page-numbers, a.prev.page-numbers {
  width: 20px;
  height: 20px;
  background-color: #EBF3F0;
  color: #558E59;
  border: none;
  border-radius: 0;
}

.page-numbers.current {
  background-color: #558E59;
  color: #fff;
}
@media (max-width: 767px) {
  .pagination .page-numbers {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  
}

.template-ready.is-ready {
  color: #34d399;
  opacity: 1;
  font-weight: 600;
}

/* 会社設立の手段表（SP: 手段列固定 + 横スクロール） */
@media (max-width: 767px) {
  .means-table-sp {
    --means-table-h: clamp(280px, 88vw, 334px);
    --means-left-h: 1024;
    --means-right-h: 1028;
    --means-offset-y: 7;
    display: flex;
    align-items: flex-start;
    line-height: 0;
  }

  .means-table-sp__fixed {
    flex-shrink: 0;
    z-index: 1;
    background: #fff;
  }

  .means-table-sp__fixed img {
    display: block;
    height: var(--means-table-h);
    width: auto;
    max-width: none;
  }

  .means-table-sp__scroll {
    flex: 1;
    min-width: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #558e59 #e5e7eb;
  }

  .means-table-sp__scroll::-webkit-scrollbar {
    -webkit-appearance: none;
    height: 6px;
  }

  .means-table-sp__scroll::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 3px;
  }

  .means-table-sp__scroll::-webkit-scrollbar-thumb {
    background: #558e59;
    border-radius: 3px;
    min-width: 48px;
  }

  .means-table-sp__scroll img {
    display: block;
    height: calc(var(--means-table-h) * var(--means-right-h) / var(--means-left-h));
    width: auto;
    max-width: none;
    transform: translateY(calc(var(--means-table-h) * var(--means-offset-y) / var(--means-left-h) * -1));
  }
}

/* フローティングフッター：下スクロール時のみ表示 */
.footer-floating {
  transform: translateY(100%);
  transition: transform 0.3s ease;
  will-change: transform;
}

.footer-floating.show {
  transform: translateY(0);
}

/* モバイルサブメニュー：ページ最上部では非表示 */
.mobile-sub-menu {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.mobile-sub-menu.show {
  max-height: 48px;
  opacity: 1;
}
