/* ============================================================
   WEB工房 — Custom Styles
   Tailwind CDN を補完するカスタムスタイルとコンポーネント定義
   ============================================================ */

:root {
  --primary: #000666;
  --primary-container: #1a237e;
  --primary-fixed-dim: #bdc2ff;
  --secondary: #006875;
  --secondary-container: #00e3fd;
  --accent: #FFD700;
  --accent-hover: #FFED4A;
  --surface: #f7f9fc;
  --surface-container-low: #f2f4f7;
  --surface-container: #eceef1;
  --surface-container-lowest: #ffffff;
  --on-surface: #191c1e;
  --on-surface-variant: #454652;
  --outline: #767683;
  --outline-variant: #c6c5d4;
}

/* ----- Base ----- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* sticky header height */
}

body {
  font-family: "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ローディング中はスクロールロック */
body.is-loading {
  overflow: hidden;
}

/* ============================================================
   PAGE LOADER — Circle Loader
   ============================================================ */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--surface) 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ブランドロゴ(フェードイン) */
.loader-brand {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: loader-fade-in 0.6s 0.1s ease forwards;
}
.loader-brand-accent {
  color: var(--secondary);
}
.loader-tagline {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: var(--on-surface-variant);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: loader-fade-in 0.6s 0.4s ease forwards;
}

/* サークルローダー本体 */
.circle-loader {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(0, 6, 102, 0.08);
  border-top-color: var(--primary);
  border-right-color: var(--accent);
  animation: circle-spin 0.9s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}
/* 内側の小さい円(二重リング) */
.circle-loader::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(0, 104, 117, 0.12);
  border-top-color: var(--secondary);
  animation: circle-spin 1.4s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite reverse;
}

@keyframes circle-spin {
  to { transform: rotate(360deg); }
}
@keyframes loader-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* スクリーンリーダー専用 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

::selection {
  background: var(--secondary-container);
  color: var(--primary);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ----- Header / Nav ----- */
.nav-link {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.nav-link:hover {
  color: var(--secondary);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--primary);
}
.nav-link.active::after {
  width: 100%;
  background: var(--primary);
}

.mobile-link {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: var(--on-surface-variant);
  border-bottom: 1px solid var(--outline-variant);
  transition: color 0.2s ease;
}
.mobile-link:hover {
  color: var(--primary);
}

/* ----- CTA Buttons ----- */
.btn-cta {
  background: var(--accent);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  box-shadow: 0 4px 8px rgba(0, 6, 102, 0.08);
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 6, 102, 0.15);
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  box-shadow: 0 8px 16px rgba(0, 6, 102, 0.1);
}
.btn-cta-large:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 6, 102, 0.18);
}

.btn-ghost-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 8px;
  border: 1.5px solid var(--primary);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}
.btn-ghost-large:hover {
  background: var(--primary);
  color: var(--surface-container-lowest);
}

/* ----- Pain Card ----- */
.pain-card {
  position: relative;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  overflow: hidden;
}
.pain-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 6, 102, 0.08);
  border-color: var(--secondary);
}
.pain-card:hover::before {
  transform: scaleY(1);
}
.pain-card-num {
  display: inline-block;
  font-family: "Hanken Grotesk", serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pain-card-title {
  margin-top: 16px;
  font-family: "Hanken Grotesk", "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.pain-card-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

/* ----- Reason Card ----- */
.reason-card {
  background: var(--surface-container-low);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.reason-card:hover {
  background: var(--surface-container-lowest);
  box-shadow: 0 16px 32px rgba(0, 6, 102, 0.1);
  transform: translateY(-4px);
}
.reason-num {
  display: inline-block;
  font-family: "Hanken Grotesk", serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 2px 2px 0 var(--primary);
}
.reason-title {
  margin-top: 20px;
  font-family: "Hanken Grotesk", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.reason-body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

/* ----- Service Card ----- */
.service-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.service-card:hover {
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 6, 102, 0.08);
}
.service-icon {
  font-size: 36px !important;
  color: var(--secondary);
  background: var(--secondary-container);
  padding: 12px;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-title {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.service-body {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* ----- Plan Card ----- */
.plan-card {
  position: relative;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 6, 102, 0.1);
}

.plan-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 16px 40px rgba(0, 6, 102, 0.15);
  transform: translateY(-8px);
}
.plan-card-featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(0, 6, 102, 0.2);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0, 6, 102, 0.15);
}

.plan-header {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--outline-variant);
}
.plan-name {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-jp {
  margin-top: 4px;
  font-size: 13px;
  color: var(--on-surface-variant);
  letter-spacing: 0.1em;
}
.plan-pages {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 16px;
  background: var(--surface-container);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.plan-pages-featured {
  background: var(--accent);
  color: var(--primary);
}

.plan-prices {
  padding: 24px 0;
  text-align: center;
}
.plan-divider {
  height: 1px;
  background: var(--outline-variant);
  margin: 16px auto;
  width: 60%;
}
.plan-price-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-price {
  margin-top: 4px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.plan-price-featured {
  color: var(--secondary);
}
.plan-tax {
  margin-top: 4px;
  font-size: 11px;
  color: var(--outline);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  flex: 1;
}
.plan-features li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-surface);
  border-bottom: 1px dashed var(--outline-variant);
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--secondary-container);
  color: var(--secondary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.plan-features li:last-child {
  border-bottom: none;
}

.plan-cta {
  display: block;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--surface-container-low);
  color: var(--primary);
  text-align: center;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}
.plan-cta:hover {
  background: var(--primary);
  color: var(--surface-container-lowest);
}
.plan-cta-featured {
  background: var(--accent);
  color: var(--primary);
}
.plan-cta-featured:hover {
  background: var(--accent-hover);
  color: var(--primary);
}

/* ----- Work Card ----- */
.work-card {
  background: var(--surface-container-lowest);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  transition: all 0.3s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 6, 102, 0.12);
}
.work-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.work-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 6, 102, 0.4) 100%);
}
.work-info {
  padding: 20px 24px;
}
.work-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--secondary-container);
  color: var(--secondary);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 99px;
}
.work-title {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
}
.work-body {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

/* ----- Flow Steps ----- */
.flow-list {
  list-style: none;
  padding: 0;
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.flow-list::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 32px;
  bottom: 32px;
  width: 2px;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--accent) 100%);
  opacity: 0.3;
}
.flow-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 16px 0;
  position: relative;
}
.flow-num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-container-lowest);
  border: 2px solid var(--secondary);
  color: var(--primary);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}
.flow-step:hover .flow-num {
  background: var(--secondary);
  color: var(--surface-container-lowest);
  transform: scale(1.05);
}
.flow-body {
  flex: 1;
  padding: 8px 0;
}
.flow-title {
  font-family: "Hanken Grotesk", "Noto Sans JP", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
}
.flow-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-surface-variant);
}

/* ----- FAQ Accordion ----- */
.faq-item {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] {
  border-color: var(--secondary);
  box-shadow: 0 8px 16px rgba(0, 6, 102, 0.05);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q:hover {
  background: var(--surface-container-low);
}
.faq-arrow {
  flex-shrink: 0;
  font-size: 24px !important;
  color: var(--secondary);
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 24px 20px 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--on-surface-variant);
  border-top: 1px dashed var(--outline-variant);
  padding-top: 16px;
  margin-top: 0;
}

/* ----- Contact Form ----- */
.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-container-lowest);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}
.contact-field {
  display: block;
  position: relative;
}
.contact-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.contact-required {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  background: #ffe6e6;
  color: #c00;
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.contact-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: 6px;
  font-size: 15px;
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  font-family: inherit;
  transition: all 0.2s ease;
}
.contact-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 104, 117, 0.15);
}
.contact-input.error {
  border-color: #c00;
  background: #fff5f5;
}
.contact-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #c00;
  min-height: 1em;
}
.contact-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--outline-variant);
  border-radius: 99px;
  cursor: pointer;
  font-size: 14px;
  color: var(--on-surface);
  transition: all 0.2s ease;
}
.contact-radio:hover {
  border-color: var(--secondary);
}
.contact-radio input[type="radio"] {
  accent-color: var(--secondary);
}
.contact-radio:has(input:checked) {
  background: var(--primary);
  color: var(--surface-container-lowest);
  border-color: var(--primary);
}

/* ----- Footer ----- */
.footer-heading {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-list a {
  font-size: 14px;
  color: var(--primary-fixed-dim);
  transition: color 0.2s ease;
}
.footer-list a:hover {
  color: var(--secondary-container);
}

/* ============================================================
   Scroll Animations — Premium "swoosh" feel
   左→右にしゅわっとスライドインを基本に、変種を用意
   ============================================================ */

/* 共通: easing と duration */
.animate-on-scroll {
  --fx-delay: 0s;
  --fx-duration: 1s;
  --fx-easing: cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity var(--fx-duration) var(--fx-easing),
    transform var(--fx-duration) var(--fx-easing);
  transition-delay: var(--fx-delay);
  will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}

/* 出現方向の変種 */
.fx-from-r {
  transform: translateX(60px);
}
.fx-from-r.is-visible {
  transform: translateX(0);
}
.fx-up {
  transform: translateY(40px);
}
.fx-up.is-visible {
  transform: translateY(0);
}
.fx-scale {
  transform: scale(0.92);
}
.fx-scale.is-visible {
  transform: scale(1);
}
.fx-zoom-up {
  transform: translateY(30px) scale(0.95);
}
.fx-zoom-up.is-visible {
  transform: translateY(0) scale(1);
}

/* スタッガー(連続再生)用の遅延 */
.fx-d-1 { --fx-delay: 0.08s; }
.fx-d-2 { --fx-delay: 0.18s; }
.fx-d-3 { --fx-delay: 0.28s; }
.fx-d-4 { --fx-delay: 0.38s; }
.fx-d-5 { --fx-delay: 0.48s; }
.fx-d-6 { --fx-delay: 0.58s; }
.fx-d-7 { --fx-delay: 0.68s; }
.fx-d-8 { --fx-delay: 0.78s; }

/* 速度のバリエーション */
.fx-slow { --fx-duration: 1.3s; }
.fx-fast { --fx-duration: 0.7s; }

/* ============================================================
   見出しの下線が左→右にスーッと描かれるエフェクト
   ============================================================ */
.heading-underline {
  position: relative;
  display: inline-block;
}
.heading-underline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 99px;
  transform: translateX(-50%);
  transition: width 1.1s 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.heading-underline.is-visible::after,
.animate-on-scroll.is-visible .heading-underline::after,
.is-visible.animate-on-scroll .heading-underline::after {
  width: 90px;
}

/* ============================================================
   CTAボタンに光が走るシマーエフェクト
   ============================================================ */
.btn-cta,
.btn-cta-large,
.plan-cta-featured {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-cta::before,
.btn-cta-large::before,
.plan-cta-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}
.btn-cta:hover::before,
.btn-cta-large:hover::before,
.plan-cta-featured:hover::before {
  left: 150%;
}
.btn-cta > *,
.btn-cta-large > *,
.plan-cta-featured > * {
  position: relative;
  z-index: 2;
}

/* ============================================================
   ヒーロー背景の装飾円: ゆっくり浮遊
   ============================================================ */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}
@keyframes float-slow-rev {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, 20px) scale(1.08); }
}
.bg-blob-1 {
  animation: float-slow 12s ease-in-out infinite;
}
.bg-blob-2 {
  animation: float-slow-rev 16s ease-in-out infinite;
}

/* ============================================================
   ホバーリフト強化(card 系)
   ============================================================ */
.pain-card,
.reason-card,
.service-card,
.work-card,
.plan-card {
  will-change: transform, box-shadow;
}

.pain-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 40px rgba(0, 6, 102, 0.12) !important;
}

.reason-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 40px rgba(0, 6, 102, 0.12) !important;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
}

.work-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 24px 48px rgba(0, 6, 102, 0.15) !important;
}
.work-card:hover .work-image {
  transform: scale(1.06);
}
.work-image {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   おすすめバッジを優しくパルス
   ============================================================ */
@keyframes badge-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 4px 8px rgba(0,6,102,0.15); }
  50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 6px 16px rgba(255,215,0,0.4); }
}
.plan-badge {
  animation: badge-pulse 2.4s ease-in-out infinite;
}

/* ============================================================
   ヒーロー画像を浮かせる
   ============================================================ */
@keyframes float-img {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-image-float {
  animation: float-img 6s ease-in-out infinite;
}

/* ============================================================
   ヒーローキャッチの下線(アクセントカラー)が伸びる
   ============================================================ */
@keyframes underline-grow {
  from { width: 0; }
  to { width: 100%; }
}
.hero-underline {
  display: inline-block;
  width: 0;
  animation: underline-grow 1.2s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================
   セクション境界の細い金線(オプション)
   ============================================================ */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  margin: 0 auto 24px;
  border-radius: 99px;
}

/* ============================================================
   FAQアコーディオン: 開閉のなめらか化
   ============================================================ */
.faq-item {
  transition: all 0.3s ease;
}
.faq-a {
  animation: faq-slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes faq-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   FlowStep のホバー強化(タイムラインを通る感じ)
   ============================================================ */
.flow-step {
  transition: transform 0.3s ease;
}
.flow-step:hover {
  transform: translateX(8px);
}

/* ----- Header scrolled state ----- */
.site-header-scrolled {
  height: 64px;
  box-shadow: 0 4px 16px rgba(0, 6, 102, 0.08);
}

/* ----- Back to Top ----- */
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}
#back-to-top:hover {
  transform: translateY(-3px);
}

/* ----- Responsive tweaks ----- */
@media (max-width: 767px) {
  .plan-card-featured {
    transform: translateY(0);
  }
  .plan-card-featured:hover {
    transform: translateY(-4px);
  }
  .flow-list::before {
    left: 20px;
  }
  .flow-num {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }
}

/* ----- Form Success Animation ----- */
#form-success {
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
}
