/* ========================================
   sellerbase LP — カスタムスタイル
   Tailwind CSS CDN と併用
   ======================================== */

/* スムーズスクロール（同一ページ内のアンカーリンクのみ） */
html {
  scroll-padding-top: 7rem;
}

html:has(:target) {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ========== ヘッダー（トップページ準拠） ========== */
.sb-page {
  margin: 0;
  font-family: "LINE Seed JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sb-hd {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(16, 26, 54, 0.09);
}

.sb-hd-in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 68px;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

.sb-hd-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.sb-hd-nav {
  display: none;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
  color: #69738c;
}

.sb-hd-nav a {
  color: #69738c;
  text-decoration: none;
  transition: color 0.15s;
}

.sb-hd-nav a:hover {
  color: #101a36;
}

.sb-hd-sp {
  flex: 1;
}

.sb-hd-login {
  display: none;
  font-size: 13px;
  font-weight: 700;
  color: #101a36;
  text-decoration: none;
  transition: color 0.15s;
}

.sb-hd-login:hover {
  color: #3d5bc4;
}

.sb-hd-cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, #3653c3, #4d6ee4);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 28px -14px rgba(61, 91, 196, 0.9);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sb-hd-cta:hover {
  transform: translateY(-1px);
}

.sb-hd-burger {
  display: block;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #101a36;
}

/* モバイルメニュー */
.sb-hd-mobile {
  display: none;
  border-top: 1px solid rgba(16, 26, 54, 0.09);
  background: #fff;
}

.sb-hd-mobile.open {
  display: block;
}

.sb-hd-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
}

.sb-hd-mobile nav a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #69738c;
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 26, 54, 0.06);
}

.sb-hd-mobile nav a:hover {
  color: #101a36;
}

.sb-hd-mobile-cta {
  margin-top: 8px;
  padding: 12px 18px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #3653c3, #4d6ee4);
  color: #fff !important;
  text-align: center;
  border-bottom: none !important;
}

@media (min-width: 1080px) {
  .sb-hd-nav {
    display: flex;
  }
  .sb-hd-login {
    display: inline;
  }
  .sb-hd-cta {
    display: inline-flex;
  }
  .sb-hd-burger {
    display: none;
  }
}

@media (min-width: 640px) {
  .sb-hd-in {
    padding-inline: 36px;
  }
}

/* ヒーローバナーの上余白調整（旧 fixed ヘッダー→新 sticky ヘッダー） */
/* 旧: pt-36(144px)/md:pt-44(176px) は fixed ヘッダー+バナー用。sticky(68px)では上寄りになるため縮小 */
.sb-page .pt-36 {
  padding-top: 6rem; /* 96px */
}

@media (min-width: 768px) {
  .sb-page .md\:pt-44 {
    padding-top: 7rem; /* 112px */
  }
}

/* フォーカスリング */
:focus-visible {
  outline: 2px solid #3D5BC4;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== シグネチャー要素: blur テキスト ========== */
.blur-text {
  filter: blur(4px);
  user-select: none;
  transition: filter 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .blur-text {
    filter: blur(4px);
    transition: none;
  }
}

/* スクロールで blur が解除されるアニメーション */
.signature-panel.revealed .blur-text {
  filter: blur(0);
}

/* ========== ヘッダーのスクロール影 + ぼかし ========== */
#header.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* ========== FAQ アコーディオン ========== */
.faq-trigger {
  cursor: pointer;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  overflow: hidden;
}

.faq-content.expanded {
  display: block;
  animation: faq-open 0.3s ease forwards;
}

@keyframes faq-open {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-content.expanded {
    animation: none;
  }
}

/* ========== フォームの状態 ========== */
.form-error.visible {
  display: block;
}

input.error,
select.error,
textarea.error {
  border-color: #EF4444;
}

#form-status.success {
  background-color: #ECFDF5;
  color: #065F46;
}

#form-status.error {
  background-color: #FEF2F2;
  color: #991B1B;
}

#form-status.loading {
  background-color: #F0F9FF;
  color: #0369A1;
}

/* ========== 送信ボタンのローディング ========== */
#submit-btn.loading {
  position: relative;
  color: transparent;
}

#submit-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== モバイルメニューアニメーション ========== */
#mobile-menu.open {
  display: block;
  animation: menu-slide 0.2s ease forwards;
}

@keyframes menu-slide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #mobile-menu.open {
    animation: none;
  }
}

/* ========== フローティングCTA ========== */
#floating-cta {
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#floating-cta.visible {
  animation: floating-bounce 1.8s ease-in-out infinite;
}

@keyframes floating-bounce {
  0% { transform: translateY(0); }
  15% { transform: translateY(-10px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-10px); }
  60% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #floating-cta.visible {
    animation: none;
  }
}

/* ========== お客様の声スライダー（走馬灯） ========== */
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    animation: none;
    overflow-x: auto;
  }
}

/* ========== 横スクロールバー非表示 ========== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ========== フローティングCTA光アニメーション ========== */
.btn-shine-wrap {
  position: relative;
  overflow: hidden;
}

#floating-cta.btn-shine-wrap {
  position: fixed;
}

.btn-shine-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(61, 91, 196, 0) 30%,
    rgba(61, 91, 196, 0.15) 50%,
    rgba(61, 91, 196, 0) 70%,
    transparent 100%
  );
  animation: btn-shine 3s ease-in-out infinite;
  pointer-events: none;
}

/* ========== ボタンの光アニメーション ========== */
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }
  60% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-shine::after {
    animation: none;
  }
}

/* ========== 本文（prose）スタイル ========== */
.entry-content h2,
.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F1B2D;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E8ECF7;
}

.entry-content h3,
.prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0F1B2D;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content h4,
.prose h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0F1B2D;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.entry-content p,
.prose p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.entry-content ul,
.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content ol,
.prose ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.entry-content li,
.prose li {
  margin-bottom: 0.375rem;
  line-height: 1.8;
}

.entry-content blockquote,
.prose blockquote {
  border-left: 4px solid #3D5BC4;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  background-color: #F1F5F9;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #334155;
  font-style: italic;
}

.entry-content a,
.prose a {
  color: #3D5BC4;
  text-decoration: underline;
}

.entry-content a:hover,
.prose a:hover {
  color: #5A75D0;
}

.entry-content table,
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content th,
.entry-content td,
.prose th,
.prose td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.entry-content th,
.prose th {
  background-color: #F1F5F9;
  font-weight: 700;
  color: #0F1B2D;
}

.entry-content img,
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.entry-content strong,
.prose strong {
  font-weight: 700;
  color: #0F1B2D;
}

.entry-content mark,
.prose mark {
  background: linear-gradient(transparent 60%, #FFF06B 60%);
  padding: 0 0.15em;
  color: inherit;
}

.entry-content mark.blue,
.prose mark.blue,
.entry-content .has-luminous-vivid-amber-background-color,
.prose .has-luminous-vivid-amber-background-color {
  background: linear-gradient(transparent 60%, #FFF06B 60%);
  padding: 0 0.15em;
  color: inherit;
}

.entry-content mark.navy,
.prose mark.navy,
.entry-content .has-pale-cyan-blue-background-color,
.prose .has-pale-cyan-blue-background-color {
  background: linear-gradient(transparent 60%, #E8ECF7 60%);
  padding: 0 0.15em;
  color: inherit;
}

/* ========== Contact Form 7 スタイル上書き ========== */

/* フォーム項目の行間 */
.wpcf7-form > .space-y-6 > div,
.wpcf7-form > .space-y-6 > fieldset {
  margin-bottom: 1.5rem;
}

.wpcf7-form > .space-y-6 > div:last-child,
.wpcf7-form > .space-y-6 > fieldset:last-child {
  margin-bottom: 0;
}

/* 項目名を太字に */
.wpcf7-form p > .text-sm,
.wpcf7-form div > p:first-child {
  font-weight: 700;
  color: #0F1B2D;
}

/* 項目間の余白 */
.wpcf7-form > .space-y-6 > div {
  margin-bottom: 1rem;
}

/* CF7がpタグでラップする場合 */
.wpcf7-form p {
  margin-bottom: 0.25rem;
}

/* フォーム要素(input/select/textarea)の上は詰める */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0;
}

/* fieldset（チェックボックス・ラジオ）の間隔 */
.wpcf7-form fieldset {
  margin-bottom: 1rem;
}

.wpcf7-form fieldset legend {
  font-weight: 700;
  color: #0F1B2D;
  margin-bottom: 0.375rem;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: #3D5BC4;
  box-shadow: 0 0 0 2px rgba(61, 91, 196, 0.15);
}

.wpcf7 select {
  background-color: white;
  -webkit-appearance: none;
  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.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.wpcf7 input[type="submit"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  background-color: #3D5BC4;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.wpcf7 input[type="submit"]:hover {
  background-color: rgba(61, 91, 196, 0.9);
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid #d1d5db;
  accent-color: #3D5BC4;
}

.wpcf7 .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #334155;
  cursor: pointer;
  margin: 0 !important;
}

.wpcf7 .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* チェックボックス・ラジオのラッパーをflexレイアウトに */
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* カート/モール: gridレイアウト */
.grid.grid-cols-2 > .wpcf7-form-control-wrap > .wpcf7-checkbox,
.grid.grid-cols-2 .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
}

.grid.grid-cols-2 .wpcf7-list-item,
.grid.sm\:grid-cols-3 .wpcf7-list-item {
  white-space: nowrap;
}

/* ラジオボタン横並び */
.flex.gap-6 > .wpcf7-form-control-wrap > .wpcf7-radio,
.flex.gap-6 .wpcf7-radio {
  display: flex;
  gap: 1.5rem;
}

/* wpcf7-form-control-wrap を透過 */
.wpcf7 .wpcf7-form-control-wrap {
  display: contents;
}

/* プライバシーポリシー: チェックボックスとテキスト横並び */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 !important;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
  display: none;
}

.flex.items-start.gap-2 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.flex.items-start.gap-2 .wpcf7-form-control-wrap {
  display: inline;
}

.flex.items-start.gap-2 .wpcf7-acceptance {
  display: inline;
}

.flex.items-start.gap-2 .wpcf7-list-item {
  display: inline;
  margin: 0 !important;
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #ef4444;
}

.wpcf7 .wpcf7-response-output {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.wpcf7 .wpcf7-mail-sent-ok {
  background-color: #ECFDF5;
  color: #065F46;
  border: none;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
  background-color: #FEF2F2;
  color: #991B1B;
  border: none;
}

.wpcf7 .wpcf7-spinner {
  display: none;
}

.wpcf7 .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

/* ========== フッター（トップページ準拠） ========== */
.sb-ft {
  margin-top: 72px;
  background: #fff;
  border-top: 1px solid rgba(16, 26, 54, 0.09);
  padding: 56px 0 40px;
}

.sb-ft-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

.sb-ft-inner {
  display: grid;
  gap: 32px;
}

.sb-ft-brand img {
  height: 28px;
  width: auto;
  display: block;
}

.sb-ft-brand p {
  margin-top: 12px;
  font-size: 12.5px;
  color: #69738c;
  max-width: 24em;
  line-height: 1.85;
}

.sb-ft-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.sb-ft-cols h4 {
  font-size: 12.5px;
  font-weight: 800;
  color: #101a36;
  margin: 0;
}

.sb-ft-cols ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
  color: #69738c;
}

.sb-ft-cols a {
  color: #69738c;
  text-decoration: none;
  transition: color 0.15s;
}

.sb-ft-cols a:hover {
  color: #101a36;
}

.sb-ft-legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 26, 54, 0.09);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 11.5px;
  color: #69738c;
}

.sb-ft-legal a {
  color: #69738c;
  text-decoration: none;
  transition: color 0.15s;
}

.sb-ft-legal a:hover {
  color: #101a36;
}

.sb-ft-copy {
  margin-left: auto;
}

@media (min-width: 1000px) {
  .sb-ft-inner {
    grid-template-columns: 0.9fr 2.1fr;
  }
  .sb-ft-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) {
  .sb-ft-wrap {
    padding-inline: 36px;
  }
}

/* ========== CTA セクション（トップページ準拠） ========== */
.sb-cta-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.sb-cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 64px 24px;
  text-align: center;
  background: linear-gradient(135deg, #22358f 0%, #3d5bc4 50%, #4d6ee4 100%);
}

.sb-cta-inner h2 {
  font-size: 23px;
  line-height: 1.5;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.sb-cta-inner h2 span {
  display: inline-block;
  white-space: nowrap;
}

.sb-cta-inner > p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(231, 236, 251, 0.8);
}

.sb-cta-buttons {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sb-cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  background: #fff;
  color: #101a36;
  text-decoration: none;
  box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.sb-cta-btn-primary:hover {
  transform: translateY(-1px);
}

.sb-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.2s;
}

.sb-cta-btn-outline:hover {
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .sb-cta-inner {
    padding: 84px 48px;
  }
  .sb-cta-inner h2 {
    font-size: 38px;
  }
}

@media (min-width: 640px) {
  .sb-cta-section {
    padding: 0 36px;
  }
}
