/* ==========================================================================
   Walkers Global CSS — Design System Variables & Base Styles
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Brand */
  --color-primary: #0170B9;
  --color-secondary: #E98212;

  /* Colors — Text */
  --color-text: #3a3a3a;
  --color-text-gray: #4B4F58;
  --color-text-white: #FFFFFF;

  /* Colors — Background */
  --color-bg-white: #FFFFFF;
  --color-bg-light: #F5F5F5;
  --color-bg-lighter: #F7F8FA;
  --color-footer-bg: #2B323B;

  /* Colors — UI */
  --color-border: #E5E5E5;
  --color-submit-start: #F48B19;
  --color-submit-end: #FAC849;

  /* Typography */
  --font-en: 'Manrope', sans-serif;
  --font-ja: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.4;

  /* Spacing */
  --content-width: 1240px;
  --section-padding-x: 120px;
  --section-gap-y: 64px;
  --card-padding: 32px;

  /* Border Radius */
  --radius-btn: 99px;
  --radius-card: 24px;
  --radius-hero-img: 64px;
  --radius-img: 12px;
  --radius-input: 8px;

  /* Shadows */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-base: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  /* scroll-behavior: smooth はJSの高速スムーススクロール(main.js initSmoothScroll)と競合するため無効化 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-ja);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-secondary);
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ja);
  font-weight: 600;
  line-height: var(--line-height-heading);
  color: var(--color-text);
}

.heading-en {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Layout Utilities ---------- */
.container {
  padding: 0 var(--section-padding-x);
}

.section {
  padding: var(--section-gap-y) 0;
}

.section--light {
  background-color: var(--color-bg-light);
}

.section--lighter {
  background-color: var(--color-bg-lighter);
}

.section--dark {
  background-color: var(--color-footer-bg);
  color: var(--color-text-white);
}

/* ---------- Visibility ---------- */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/* ---------- Animations ---------- */
@keyframes RightToLeft {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 3000;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  40% {
    opacity: 1;
  }
  50% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes wobbleHorizontal {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(4px); }
  45% { transform: translateX(-2px); }
  60% { transform: translateX(1px); }
}

/* JS adds .js-loaded to body, then animate-in elements start hidden */
.js-loaded .animate-in {
  opacity: 0;
  transform: translateX(50px);
}

.js-loaded .animate-in.is-visible {
  animation: RightToLeft 0.6s ease-out forwards;
}

/* Staggered delays */
.animate-in.delay-1 { animation-delay: 0.2s; }
.animate-in.delay-2 { animation-delay: 0.4s; }
.animate-in.delay-3 { animation-delay: 0.6s; }
.animate-in.delay-4 { animation-delay: 0.8s; }

/* ---------- Responsive ---------- */
@media (max-width: 921px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  :root {
    --section-padding-x: 40px;
    --section-gap-y: 48px;
    --card-padding: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-x: 20px;
    --section-gap-y: 40px;
    --card-padding: 20px;
  }

  html {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding-x: 16px;
    --section-gap-y: 32px;
  }
}
