/* ============================================================
   Google Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@700&display=swap');


/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  /* Colors */
  --color-primary:      #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-dark:         #0F172A;
  --color-gray:         #475569;
  --color-gray-light:   #94A3B8;
  --color-border:       #E2E8F0;
  --color-bg:           #F7F8FC;
  --color-white:        #FFFFFF;

  /* Typography */
  --font-sans:    'Noto Sans JP', sans-serif;
  --font-heading: 'Inter', 'Noto Sans JP', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --leading-tight:  1.25;
  --leading-normal: 1.7;
  --leading-loose:  1.9;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.16);

  /* Transition */
  --transition: 0.25s ease;
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max:     1120px;
  --container-padding: var(--space-6);
  --header-height:     64px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-dark);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; border: none; background: none; outline: none; appearance: none; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: var(--leading-tight); }


/* ============================================================
   Common Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section          { padding-block: var(--space-16); }
.section--lg      { padding-block: var(--space-20); }
.section--white   { background-color: var(--color-white); }

.section__head {
  margin-bottom: var(--space-10);
  text-align: center;
}

.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

.section__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
  max-width: 560px;
  margin-inline: auto;
}


/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    color var(--transition),
    border-color var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Ripple pseudo-element */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:active::after {
  background: rgba(255,255,255,0.12);
}

.btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Primary */
.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn--primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

/* Secondary (outline) */
.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}
.btn--secondary:active { transform: translateY(0); }

/* Ghost (for hero on dark bg) */
.btn--ghost {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn--ghost:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}
.btn--ghost:active { transform: translateY(0); }

/* Sizes */
.btn--sm  { padding: 0.6rem var(--space-6);  font-size: var(--text-xs); }
.btn--lg  { padding: 1.1rem var(--space-10); font-size: var(--text-base); }


/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  /* backdrop-filter starts at 0, transitions in on scroll */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition:
    transform        0.35s ease,
    background-color 0.35s ease,
    backdrop-filter  0.35s ease,
    box-shadow       0.35s ease,
    border-color     0.35s ease;
}

.header.is-hidden {
  transform: translateY(-100%);
}

/* Glassmorphism on scroll */
.header.is-scrolled {
  background-color: rgba(255,255,255,0.80);
  backdrop-filter: blur(18px) saturate(1.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  box-shadow: 0 2px 24px rgba(15, 23, 42, 0.08);
  border-color: rgba(226, 232, 240, 0.6);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.header__logo:hover { transform: scale(1.04); opacity: 0.85; }
.header__logo span  { color: var(--color-primary); }

/* Desktop Nav */
.header__nav { display: none; }

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.header__nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray);
  position: relative;
  transition: color var(--transition);
}
.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition);
}
.header__nav-link:hover,
.header__nav-link.is-active { color: var(--color-primary); }
.header__nav-link:hover::after,
.header__nav-link.is-active::after { width: 100%; }

.header__cta { display: none; }

/* ============================================================
   Header Dropdown (事業内容)
   ============================================================ */
.header__nav-list li { position: relative; }

.header__nav-link--dropdown {
  display: flex;
  align-items: center;
  gap: 3px;
}

.header__nav-caret {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform var(--transition);
}
.header__nav-item--has-dropdown:hover .header__nav-caret {
  transform: rotate(180deg);
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: translateY(-6px);
  min-width: 180px;
  background: var(--color-white);
  border: none;
  border-left: 3px solid var(--color-primary);
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  padding: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 200;
}
/* ホバー時に表示 */
.header__nav-item--has-dropdown:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
}
/* ギャップを埋める透明ブリッジ */
.header__dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.header__dropdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gray-light);
  padding: 0 var(--space-4) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-1);
}

.header__dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px var(--space-4);
  border-radius: 0;
  text-decoration: none;
  transition: background-color var(--transition);
}
.header__dropdown-link:hover { background-color: var(--color-bg); }

.header__dropdown-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  transition: color var(--transition);
}
.header__dropdown-link:hover .header__dropdown-kicker { color: var(--color-primary); }

.header__dropdown-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
  transition: color var(--transition);
}
.header__dropdown-link:hover .header__dropdown-name { color: var(--color-primary); }

/* ============================================================
   Drawer Sub-menu (事業内容 — 個人/法人)
   ============================================================ */
.header__drawer-item--has-sub { border-bottom: none; }

.header__drawer-sub {
  display: flex;
  flex-direction: column;
  padding-left: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-1);
}

.header__drawer-sub-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition);
}
.header__drawer-sub-link:last-child { border-bottom: none; }
.header__drawer-sub-link::after { content: '→'; font-size: var(--text-xs); color: var(--color-gray-light); }
.header__drawer-sub-link:hover { color: var(--color-primary); }

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
  flex-shrink: 0;
}
.header__hamburger:hover { background-color: var(--color-bg); }

.header__hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: var(--radius-full);
  transition: transform var(--transition), opacity var(--transition);
}
.header__hamburger.is-open .header__hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.is-open .header__hamburger-line:nth-child(2) { opacity: 0; }
.header__hamburger.is-open .header__hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.header__drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--header-height));
  background-color: var(--color-white);
  padding: var(--space-8) var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  z-index: 999;
}
.header__drawer.is-open { transform: translateX(0); }

.header__drawer-list { display: flex; flex-direction: column; gap: 0; }

.header__drawer-item { border-bottom: 1px solid var(--color-border); }

.header__drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-dark);
  transition: color var(--transition);
}
.header__drawer-link:hover { color: var(--color-primary); }
.header__drawer-link::after { content: '→'; font-size: var(--text-sm); color: var(--color-gray-light); }

.header__drawer-cta { margin-top: auto; }
.header__drawer-cta .btn { width: 100%; }

/* Overlay */
.header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-height);
  background-color: rgba(15, 23, 42, 0.45);
  z-index: 998;
  backdrop-filter: blur(3px);
}
.header__overlay.is-open { display: block; }


/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding-block: var(--space-12) var(--space-8);
}

.footer__inner { display: grid; gap: var(--space-10); }

.footer__logo {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.footer__logo span { color: var(--color-primary); }

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  line-height: var(--leading-loose);
}

.footer__nav-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  margin-bottom: var(--space-4);
}

.footer__nav-list { display: flex; flex-direction: column; gap: var(--space-3); }

.footer__nav-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__nav-link:hover { color: var(--color-white); }

.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__copy { font-size: var(--text-xs); color: var(--color-gray-light); }
.footer__policy { font-size: var(--text-xs); color: var(--color-gray-light); transition: color var(--transition); }
.footer__policy:hover { color: var(--color-white); }


/* ============================================================
   Fade-in (Scroll IntersectionObserver)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Card stagger via CSS custom property */
.service-grid .fade-in { transition-delay: calc(var(--card-i, 0) * 0.15s); }

/* Stats stagger */
.stats-grid .fade-in:nth-child(2) { transition-delay: 0.12s; }
.stats-grid .fade-in:nth-child(3) { transition-delay: 0.24s; }


/* ============================================================
   @keyframes
   ============================================================ */

/* Hero line slide up */
@keyframes heroLineUp {
  from {
    opacity: 0;
    transform: translateY(48px) skewY(1.5deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
    filter: blur(0);
  }
}

/* Hero generic element */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA background shift */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero bg gentle pulse */
@keyframes heroBgPulse {
  0%, 100% { background-position: 0% 60%; }
  50%       { background-position: 100% 40%; }
}

/* Scroll hint pulse */
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.75); }
}


/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
}

/* Video background */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  filter: blur(3px);
  transform: scale(1.04);
}

/* Dark overlay for text readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.55);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 3;
  padding-block: var(--space-20);
}

.hero__content { max-width: 760px; }

/* Label animation */
.hero__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-5);
}

/* Per-line animation */
.hero__line {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-white);
  will-change: transform, opacity, filter;
  opacity: 0;
  animation: heroLineUp 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.22s);
}

/* Generic hero animated element */
.hero__anim {
  opacity: 0;
  will-change: transform, opacity;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-10);
  margin-top: var(--space-6);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Decorative circles */
.hero__deco {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero__deco-circle { position: absolute; border-radius: 50%; }
.hero__deco-circle--1 {
  width: 520px; height: 520px;
  bottom: -140px; right: -110px;
  background: radial-gradient(circle, rgba(37,99,235,0.25) 0%, transparent 70%);
}
.hero__deco-circle--2 {
  width: 280px; height: 280px;
  top: 5%; right: 10%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.hero__deco-circle--3 {
  width: 140px; height: 140px;
  top: 45%; right: 3%;
  background: radial-gradient(circle, rgba(255,255,255,0.09) 0%, transparent 70%);
}

/* Scroll hint */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  z-index: 3;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
  transform-origin: top;
}
.hero__scroll-text {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}


/* ============================================================
   Service Cards
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  padding: 40px 28px 36px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition:
    box-shadow var(--transition-slow),
    transform   var(--transition-slow);
  will-change: transform;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.service-card:hover {
  box-shadow: 0 12px 48px rgba(37,99,235,0.13);
  transform: translateY(-8px);
}

.service-card__icon-wrap {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background-color: #EEF3FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: background-color var(--transition), transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .service-card__icon-wrap {
  background-color: #dce8ff;
  transform: scale(1.08) rotate(-4deg);
}

.service-card__icon-wrap svg {
  width: 44px;
  height: 44px;
  display: block;
}

.service-card__title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  line-height: var(--leading-tight);
  margin-bottom: 24px;
  width: 100%;
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.85;
  text-align: center;
  width: 100%;
}

.service-section__cta {
  text-align: center;
  margin-top: var(--space-12);
}

/* ---- Service Switch Tab ---- */
.svc-switch {
  display: flex;
  justify-content: center;
  gap: var(--space-10);
  border-bottom: 2px solid var(--color-border);
  margin-inline: auto;
  margin-bottom: var(--space-10);
}
.svc-switch__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 var(--space-10) var(--space-4);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.svc-switch__btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.svc-switch__btn.is-active::after {
  transform: scaleX(1);
}
.svc-switch__ja {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gray-light);
  white-space: nowrap;
  transition: color 0.3s;
}
.svc-switch__en {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  transition: color 0.3s;
}
.svc-switch__btn.is-active .svc-switch__ja {
  color: var(--color-dark);
}
.svc-switch__btn.is-active .svc-switch__en {
  color: var(--color-primary);
}

/* ---- Service Panel ---- */
.svc-panel {
  display: none;
}
.svc-panel.is-active {
  display: block;
  animation: svcFadeIn 0.35s ease;
}
@keyframes svcFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 法人向け4枚: 2×2グリッド */
.service-grid--corp {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .service-grid--corp { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .service-grid--corp { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   Service Carousel
   ============================================================ */
.svc-carousel {
  position: relative;
}

.svc-carousel__stage {
  position: relative;
}

.svc-carousel__viewport {
  overflow: hidden;
  padding: 2.5rem 0 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.svc-carousel.is-init .svc-carousel__viewport {
  opacity: 1;
}

.svc-carousel__track {
  display: flex;
  align-items: stretch;
  will-change: transform;
}

.svc-carousel__track.is-ready {
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-carousel__slide {
  flex: 0 0 86%;
  display: flex;
  padding: 0 0.625rem;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.55s ease;
  transform: scale(0.88);
  opacity: 0.45;
  cursor: pointer;
}

.svc-carousel__slide.is-active {
  transform: scale(1);
  opacity: 1;
  cursor: default;
}
.svc-carousel.is-jumping .svc-carousel__slide {
  transition: none !important;
}

.svc-carousel__slide.is-adjacent {
  transform: scale(0.92);
  opacity: 0.65;
}

.svc-carousel__slide .service-card {
  flex: 1;
}

/* ── Image-cover card layout (carousel only) ── */
.svc-carousel__slide {
  align-self: stretch;
}

.svc-carousel .service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 380px;
  border-radius: 1rem;
  padding: 0;
  background: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.svc-carousel .service-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.service-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-from, #1e3a5f) 0%, var(--bg-to, #2563eb) 100%);
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.svc-carousel .service-card:hover .service-card__bg {
  transform: scale(1.06);
}

.svc-carousel .service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.service-card__icon-wrap {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.6rem;
  z-index: 2;
  transition: background 0.3s ease;
}

.svc-carousel .service-card:hover .service-card__icon-wrap {
  background: rgba(255, 255, 255, 0.25);
}

.service-card__icon-wrap svg {
  width: 26px;
  height: 26px;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__body {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.75rem 1.75rem;
}

.service-card__num {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.svc-carousel .service-card__title {
  color: #fff;
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.svc-carousel .service-card__text {
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  font-size: 0.825rem;
  line-height: 1.65;
  margin: 0;
}

/* Prev / Next buttons — 丸型半透明 */
.svc-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  background: rgba(0, 0, 0, 0.38);
  border: none;
  box-shadow: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #fff;
  transition:
    background var(--transition),
    transform  var(--transition);
}

.svc-carousel__btn:hover {
  background: rgba(0, 0, 0, 0.6);
  box-shadow: none;
  transform: translateY(-50%) scale(1.08);
}

/* Chevron SVG */
.svc-carousel__arrow {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  pointer-events: none;
  flex-shrink: 0;
}

.svc-carousel__btn--prev { left: calc(12% - 24px); }
.svc-carousel__btn--next { right: calc(12% - 24px); }

/* Dots / Progress indicator */
.svc-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.svc-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    width  0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s ease;
}

.svc-carousel__dot.is-active {
  width: 28px;
  background: #cbd5e1;
}

.svc-carousel__dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--color-primary);
  border-radius: inherit;
  animation: svc-dot-fill 4.5s linear forwards;
}

@keyframes svc-dot-fill {
  to { width: 100%; }
}

@media (min-width: 640px) {
  .svc-carousel__slide { flex: 0 0 72%; }
}

@media (min-width: 768px) {
  .svc-carousel__slide { flex: 0 0 60%; }
  .svc-carousel__btn   { display: flex; }
}


/* ============================================================
   Stats
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.stat-item {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-number {
  font-family: var(--font-sans);
  font-size: var(--text-5xl);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.stat-count { display: inline; }
.stat-unit  { font-size: var(--text-2xl); font-weight: 400; }
.stat-arrow { font-size: var(--text-3xl); color: var(--color-gray-light); margin-inline: 2px; }

.stat-label { font-size: var(--text-base); font-weight: 700; color: var(--color-dark); margin-bottom: var(--space-2); }
.stat-note  { font-size: var(--text-xs); color: var(--color-gray-light); }


/* ============================================================
   SNS Embeds
   ============================================================ */
.sns-section { margin-top: var(--space-16); }

.sns-section__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  text-align: center;
  margin-bottom: var(--space-3);
}

.sns-section__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  text-align: center;
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}

.sns-item-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sns-item__caption {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
}

.sns-item__caption-platform {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--color-white);
  flex-shrink: 0;
}
.sns-item__caption-platform--ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sns-item__caption-platform--tt { background: #000; }

/* Grid layout: 1col(sp) → 2col(tablet) → 3col(pc) */
.sns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.sns-item {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* blockquote / iframe の位置をリセット */
.sns-item > blockquote,
.sns-item > iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ---- Skeleton Loading ---- */
.sns-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: opacity 0.4s ease;
}

.sns-item.is-loaded .sns-skeleton {
  opacity: 0;
  pointer-events: none;
}

.sns-skeleton__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.sns-skeleton__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  animation: skeletonPulse 1.6s ease-in-out infinite;
}

.sns-skeleton__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.sns-skeleton__image {
  flex: 1;
  border-radius: var(--radius-md);
  background: var(--color-border);
  animation: skeletonPulse 1.6s ease-in-out infinite 0.1s;
}

.sns-skeleton__line {
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  animation: skeletonPulse 1.6s ease-in-out infinite 0.2s;
}
.sns-skeleton__line--short  { width: 55%; }
.sns-skeleton__line--medium { width: 75%; }
.sns-skeleton__line--xshort { width: 35%; }

@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.38; }
}

/* ============================================================
   Social Media Section
   ============================================================ */
.social-embed-grid {
  margin-bottom: var(--space-12);
}

/* カード本体: ヘッダー帯 + 埋め込みエリアのラッパー */
.social-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  will-change: transform;
}
.social-card:hover {
  box-shadow: 0 12px 48px rgba(37,99,235,0.10);
  transform: translateY(-2px);
}

/* カードのスタガー */
.social-embed-grid .fade-in {
  transition-delay: calc(var(--card-i, 0) * 0.15s);
}

/* ヘッダー帯 */
.social-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.social-card__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-dark);
}
.social-card__icon svg { width: 18px; height: 18px; display: block; }
.social-card__icon--ig { color: #C13584; }

.social-card__name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-dark);
}

.social-card__handle {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--color-gray-light);
  letter-spacing: 0.03em;
}

/* 埋め込みエリア: 9:16 固定比率 */
.social-card__body {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--color-bg);
}

/* sns-item をカードボディいっぱいに広げる */
.social-card__body .sns-item {
  position: absolute;
  inset: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* 数字パネル: SP=2x2 */
.social-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* 「バズ実績」など長い値用 */
.social-stat-number--compact {
  font-size: var(--text-3xl);
}

/* フォローCTAエリア */
.social-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.social-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.social-cta__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ============================================================
   Greeting
   ============================================================ */
.greeting__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.greeting__photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

.greeting__photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-light);
}
.greeting__photo-placeholder svg { width: 80px; height: 80px; }

.greeting__photo-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.greeting__profile { text-align: center; }
.greeting__name    { font-family: var(--font-sans); font-size: var(--text-xl); font-weight: 600; color: var(--color-dark); margin-bottom: var(--space-1); }
.greeting__name-en { font-size: var(--text-sm); color: var(--color-gray-light); letter-spacing: 0.08em; margin-bottom: var(--space-2); }
.greeting__role    { font-size: var(--text-sm); font-weight: 700; color: var(--color-primary); }

.greeting__social {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  justify-content: center;
}

.greeting__text { display: flex; flex-direction: column; gap: var(--space-6); }
.greeting__text p { font-size: var(--text-sm); color: var(--color-gray); line-height: var(--leading-loose); }

.greeting__achievements {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.greeting__achievement {
  background: rgba(37, 99, 235, 0.04);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
}
.greeting__achievement-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .5rem;
}
.greeting__achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.greeting__achievement-list li {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-normal);
  padding-left: 1.1em;
  position: relative;
}
.greeting__achievement-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}


/* ============================================================
   Founder
   ============================================================ */
.founder__section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gray-light);
  margin-bottom: var(--space-3);
}

.founder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  margin-top: var(--space-10);
}

.founder__photo-wrap {
  position: relative;
  width: 70%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-dark);
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.founder__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
}
.founder__photo-placeholder svg { width: 96px; height: 96px; }

.founder__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.founder__role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.founder__name-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.founder__name {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-dark);
  line-height: var(--leading-tight);
}

.founder__name-en {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-gray-light);
  letter-spacing: 0.2em;
}

.founder__bio {
  font-size: var(--text-base);
  color: var(--color-gray);
  line-height: 1.9;
  margin-top: var(--space-2);
}
.founder__bio strong {
  color: var(--color-dark);
  font-weight: 700;
  font-size: 1.05em;
}

.founder__message {
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.founder__message p {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.75;
}
.founder__message em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-dark);
}

.founder__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-2);
}

.founder__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  color: var(--color-gray);
  line-height: 1;
  white-space: nowrap;
}
.founder__badge svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.founder__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2);
}

.founder__profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.founder__profile-link:hover { gap: 10px; }
.founder__profile-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.founder__links-sep {
  width: 1px;
  height: 18px;
  background-color: var(--color-border);
  display: block;
}

/* 768px+ — 2-col layout */
@media (min-width: 768px) {
  .founder__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(2.5rem, 5vw, 4rem);
  }

  .founder__photo-wrap {
    width: 280px;
    max-width: none;
  }

  .founder__info {
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }

  .founder__badges {
    justify-content: flex-start;
  }

  .founder__links {
    justify-content: flex-start;
  }
}


/* ============================================================
   Founder B — フルブリード引用型
   ============================================================ */
.founder-b {
  position: relative;
  background: #0a0f1e;
}

/* ── ヒーロー ── */
.founder-b__hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.founder-b__photo-bg {
  position: absolute;
  inset: 0;
}

.founder-b__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: rgba(255,255,255,0.08);
}
.founder-b__photo-placeholder svg { width: 80px; height: 80px; }

.founder-b__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.founder-b__hero.is-visible .founder-b__photo-img {
  transform: scale(1);
}

.founder-b__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(5, 10, 30, 0.60) 0%,
    rgba(5, 10, 30, 0.40) 45%,
    rgba(5, 10, 30, 0.80) 100%
  );
  z-index: 1;
}

.founder-b__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem var(--space-6);
  max-width: 860px;
}

.founder-b__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.founder-b__quote {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.75rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  letter-spacing: 0.06em;
  margin: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease 0.25s, transform 1s cubic-bezier(0.25,0.46,0.45,0.94) 0.25s;
}

.founder-b__hero.is-visible .founder-b__eyebrow { opacity: 1; transform: translateY(0); }
.founder-b__hero.is-visible .founder-b__quote   { opacity: 1; transform: translateY(0); }

/* スクロールヒント */
.founder-b__scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.founder-b__scroll-hint span {
  display: block;
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,0.35);
  margin: 0 auto;
  transform-origin: top;
  animation: founderScroll 2s ease-in-out infinite;
}
@keyframes founderScroll {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── カード ── */
.founder-b__card-outer {
  background: #0a0f1e;
  padding-bottom: var(--space-20);
}

.founder-b__card {
  background: #fff;
  border-radius: 1.5rem;
  padding: var(--space-10) var(--space-8);
  box-shadow: 0 32px 96px rgba(0,0,0,0.38);
  margin-top: -3.5rem;
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.85s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.85s cubic-bezier(0.25,0.46,0.45,0.94);
}
.founder-b__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-b__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-6);
}

.founder-b__role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.founder-b__name {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.founder-b__name-en {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-gray-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.founder-b__rule {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

/* 数字バー */
.founder-b__stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.founder-b__stat {
  flex: 1;
  min-width: 90px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease calc(var(--si, 0) * 0.13s + 0.15s),
              transform 0.55s ease calc(var(--si, 0) * 0.13s + 0.15s);
}
.founder-b__card.is-visible .founder-b__stat {
  opacity: 1;
  transform: translateY(0);
}

.founder-b__stat-num {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 5px;
}
.founder-b__stat-num span {
  font-size: 0.6em;
  font-weight: 500;
  opacity: 0.75;
}
.founder-b__stat-label {
  font-size: var(--text-xs);
  color: var(--color-gray-light);
  letter-spacing: 0.06em;
}

/* メッセージ */
.founder-b__message {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.founder-b__message p {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.9;
}
.founder-b__message em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-primary);
}

/* バッジ */
.founder-b__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.founder-b__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gray);
  white-space: nowrap;
}
.founder-b__badge svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--color-primary); }

/* リンク */
.founder-b__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}
.founder-b__links-sep {
  width: 1px;
  height: 18px;
  background: var(--color-border);
  flex-shrink: 0;
}
.founder-b__profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.25s ease, opacity 0.25s ease;
}
.founder-b__profile-link:hover { gap: 12px; opacity: 0.75; }
.founder-b__profile-link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* desktop */
@media (min-width: 768px) {
  .founder-b__card {
    padding: var(--space-12) var(--space-16);
    margin-top: -5rem;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .founder-b__stats { gap: var(--space-12); }
}

@media (min-width: 1024px) {
  .founder-b__hero { min-height: 88vh; }
}

/* ============================================================
   Founder Hero — Full bleed photo + gradient + 2-col text
   ============================================================ */

.founder-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--color-dark);
}


.founder-hero__photo-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.founder-hero__photo {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 44%;
  display: block;
  will-change: transform;
}

.founder-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.05) 0%,
    rgba(15, 23, 42, 0.05) 30%,
    rgba(15, 23, 42, 0.45) 55%,
    rgba(15, 23, 42, 0.88) 75%,
    rgba(15, 23, 42, 1)    100%
  );
}

.founder-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: calc(var(--container-max) + var(--container-padding) * 2);
  margin-inline: auto;
  padding: 0 var(--container-padding) clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .founder-hero__content {
    flex-direction: row;
    align-items: flex-end;
    gap: clamp(4rem, 6vw, 6rem);
  }
}

/* Quote — left */
.founder-hero__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.8vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.4;
  letter-spacing: -0.025em;
  flex: 1;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}

.founder-hero__quote.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Info — right */
.founder-hero__info {
  flex-shrink: 0;
  width: clamp(260px, 32%, 380px);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.founder-hero__info.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .founder-hero__info { width: 100%; }
  .founder-hero__photo { object-position: center 95%; }
}

.founder-hero__eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.founder-hero__name {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.founder-hero__role {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
}

.founder-hero__rule {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.1rem;
}

.founder-hero__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.85;
  margin-bottom: 1.4rem;
}

.founder-hero__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.founder-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition), gap var(--transition);
}

.founder-hero__link:hover {
  color: var(--color-white);
  gap: 10px;
}

.founder-hero__link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.founder-hero .social-icon-link {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
}

.founder-hero .social-icon-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   Founder's Message (fmsg) — dark climax section
   ============================================================ */
.fmsg {
  background-color: #1a1a1a;
  color: #f5f5f5;
  padding-block: clamp(4rem, 10vw, 6.5rem);
}

.fmsg__head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.fmsg__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: var(--space-3);
}

.fmsg__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #f5f5f5;
}

.fmsg__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
}

/* Photo column */
.fmsg__photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.fmsg__photo-wrap {
  position: relative;
  width: 68vw;
  max-width: 260px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: #2a2a2a;
}

.fmsg__photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.12);
}
.fmsg__photo-placeholder svg { width: 72px; height: 72px; }

.fmsg__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.fmsg__photo-caption {
  font-size: 0.75rem;
  color: #555;
  text-align: center;
  line-height: 1.5;
}

/* Body column */
.fmsg__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.fmsg__quote {
  width: 30px;
  height: 30px;
  color: #444;
  flex-shrink: 0;
}

.fmsg__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.fmsg__text p {
  font-family: 'Noto Serif JP', 'Noto Serif', Georgia, serif;
  font-size: var(--text-lg);
  color: #c8c8c8;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.fmsg__text p strong {
  color: #ffffff;
  font-weight: 700;
}

.fmsg__text-callout {
  font-size: 1.2rem !important;
  color: #e2e2e2 !important;
  font-weight: 400;
  letter-spacing: 0.05em !important;
}

/* Signature */
.fmsg__sign {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: var(--space-2);
}

.fmsg__sign-name {
  font-family: 'Parisienne', cursive;
  font-size: 2.75rem;
  color: #f0f0f0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.fmsg__sign-title {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.1em;
}

/* CTA buttons */
.fmsg__cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.fmsg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.fmsg__btn:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}
.fmsg__btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.fmsg__btn--primary {
  background-color: #ffffff;
  color: #111111;
}

.fmsg__btn--line {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.fmsg__btn--line:hover { border-color: rgba(255, 255, 255, 0.65); }

/* 768px+ — 2-col */
@media (min-width: 768px) {
  .fmsg__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .fmsg__photo-wrap {
    width: 310px;
    max-width: none;
  }

  .fmsg__body {
    flex: 1;
  }

  .fmsg__cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .fmsg__btn {
    width: auto;
    flex-shrink: 0;
  }
}


/* ============================================================
   CTA Banner — animated gradient + glow button
   ============================================================ */
.cta-banner {
  background: linear-gradient(-45deg, #0F172A, #1e3a8a, #2563EB, #0e7ccf, #1e3a8a);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
  padding-block: var(--space-16);
  color: var(--color-white);
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.cta-banner__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.cta-banner__sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  line-height: var(--leading-loose);
}

.cta-banner__btn {
  flex-shrink: 0;
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.cta-banner__btn:hover {
  background-color: var(--color-bg);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
  /* Glow effect */
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.18),
    0 0 32px rgba(255,255,255,0.25),
    0 12px 32px rgba(0,0,0,0.28);
}
.cta-banner__btn:active { transform: translateY(0); }
/* Override inherited btn::after for white button */
.cta-banner__btn::after { background: rgba(37,99,235,0); }
.cta-banner__btn:active::after { background: rgba(37,99,235,0.06); }


/* ============================================================
   Utility
   ============================================================ */
.u-text-center { text-align: center; }
.u-text-left   { text-align: left; }
.u-text-right  { text-align: right; }
.u-mt-4        { margin-top: var(--space-4); }
.u-mt-8        { margin-top: var(--space-8); }
.u-mt-12       { margin-top: var(--space-12); }
.u-mb-4        { margin-bottom: var(--space-4); }
.u-mb-8        { margin-bottom: var(--space-8); }

.u-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   Responsive — Tablet (768px+)
   ============================================================ */
@media (min-width: 768px) {
  :root { --container-padding: var(--space-8); }

  .section__title { font-size: var(--text-3xl); }
  .section__desc  { font-size: var(--text-base); }

  .hero__actions  { flex-direction: row; }

  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

  .social-stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  .greeting__inner {
    flex-direction: row;
    align-items: flex-start;
  }
  .greeting__photo { width: 220px; }

  .cta-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .sns-grid           { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }

  .footer__inner      { grid-template-columns: 1fr 1fr; }
  .footer__bottom     { flex-direction: row; justify-content: space-between; align-items: center; }
}


/* ============================================================
   Responsive — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --header-height: 72px; }

  .header__nav  { display: flex; align-items: center; gap: var(--space-10); }
  .header__cta  { display: flex; }
  .header__hamburger { display: none; }

  .section      { padding-block: var(--space-20); }
  .section--lg  { padding-block: var(--space-24); }
  .section__title { font-size: var(--text-4xl); }

  .service-grid { grid-template-columns: repeat(3, 1fr); }

  .sns-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }

  .greeting__photo { width: 260px; }

  .cta-banner__title { font-size: var(--text-3xl); }

  .footer__inner  { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-16); }
}


/* ============================================================
   prefers-reduced-motion — すべてのアニメーションを無効化
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__line,
  .hero__anim {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  .cta-banner    { animation: none !important; }
  .hero__bg      { animation: none !important; }
  .stats-banner  { animation: none !important; }
}


/* ============================================================
   Page Hero（内ページ共通ヒーロー）
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #EEF3FF 0%, #dce8ff 60%, #c7d9ff 100%);
  padding-block: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 装飾ライン */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.page-hero__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: var(--leading-tight);
}

.page-hero__sub {
  font-size: var(--text-sm);
  color: var(--color-gray);
  max-width: 480px;
}

@media (min-width: 768px) {
  .page-hero__title { font-size: var(--text-4xl); }
  .page-hero__sub   { font-size: var(--text-base); }
}

@media (min-width: 1024px) {
  .page-hero {
    padding-block: var(--space-20) var(--space-16);
  }
  .page-hero__title { font-size: var(--text-5xl); }
}


/* ============================================================
   Service Detail（交互レイアウト）
   ============================================================ */

/* =====================================================
   Service Nav — sticky section tabs
   ===================================================== */

.service-detail__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: center;
  padding-inline: var(--container-padding);
  max-width: var(--container-max);
  margin-inline: auto;
}

/* 画像ブロック */
.service-detail__media {
  width: 100%;
  flex-shrink: 0;
}

.service-detail__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-detail__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* 背景カラーバリエーション */
.service-detail__placeholder--blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563EB 60%, #3b82f6 100%);
}
.service-detail__placeholder--navy {
  background: linear-gradient(135deg, #0F172A 0%, #1e3a8a 100%);
}
.service-detail__placeholder--sky {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 60%, #38bdf8 100%);
}
.service-detail__placeholder--orange {
  background: linear-gradient(135deg, #c2410c 0%, #f97316 60%, #fb923c 100%);
}

/* 内側の光沢 */
.service-detail__placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18) 0%, transparent 60%);
}

.service-detail__icon {
  width: 80px;
  height: 80px;
  position: relative;
  z-index: 1;
}

/* テキストブロック */
.service-detail__body { width: 100%; }

.service-detail__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.service-detail__name {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.service-detail__catch {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-primary);
  line-height: var(--leading-normal);
}

.service-detail__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

/* 特徴リスト（番号付き縦並び） */
.service-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: var(--space-6);
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-feature-num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #2563EB;
  flex-shrink: 0;
  min-width: 20px;
  letter-spacing: 0.05em;
}

.service-feature-divider {
  display: block;
  width: 1px;
  height: 16px;
  background-color: #CBD5E1;
  flex-shrink: 0;
}

.service-feature-text {
  font-size: 15px;
  font-weight: 500;
  color: #0F172A;
  transition: color var(--transition);
}

.service-feature-item:hover .service-feature-text {
  color: #2563EB;
}

/* ボタングループ */
.service-detail__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

/* ============================================================
   Service Detail Page (service-marketing.html etc.)
   ============================================================ */

/* ページヒーロー内のパンくず */
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--color-gray);
  margin-bottom: var(--space-2);
}
.page-hero__breadcrumb a { color: var(--color-primary); text-decoration: none; }
.page-hero__breadcrumb a:hover { text-decoration: underline; }
.page-hero__breadcrumb-sep { opacity: 0.5; }

/* 事業概要セクション */
.svc-overview {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}
.svc-overview__text { max-width: 640px; }
.svc-overview__text p + p { margin-top: var(--space-4); }

.svc-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.svc-stat {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.svc-stat__num {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.svc-stat__unit {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}
.svc-stat__label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-gray);
  margin-top: var(--space-2);
  line-height: 1.5;
}

/* サービスカード一覧 */
.svc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.svc-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.svc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.svc-card__num {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.svc-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}
.svc-card__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}
.svc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.svc-card__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(37,99,235,0.08);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}

/* 導入フロー */
.svc-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.svc-flow-step {
  display: flex;
  gap: var(--space-6);
  position: relative;
}
.svc-flow-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -var(--space-4);
  width: 2px;
  background: var(--color-border);
  height: calc(100% + var(--space-8));
}
.svc-flow-step__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.svc-flow-step__body {
  padding-bottom: var(--space-10);
}
.svc-flow-step:last-child .svc-flow-step__body { padding-bottom: 0; }
.svc-flow-step__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
  margin-top: 8px;
}
.svc-flow-step__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

/* こんな方に（チェックリスト） */
.svc-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.svc-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-dark);
  line-height: var(--leading-normal);
}
.svc-checklist__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.svc-checklist__icon svg {
  width: 12px;
  height: 12px;
  color: white;
}

/* section-title ユーティリティ（詳細ページ用） */
.svc-section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.svc-section-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}
.svc-section-sub {
  font-size: var(--text-sm);
  color: var(--color-gray);
  margin-bottom: var(--space-10);
  line-height: var(--leading-normal);
}

/* レスポンシブ：タブレット以上で横並び */
@media (min-width: 768px) {
  .service-detail__name { font-size: var(--text-3xl); }
  .service-detail__icon { width: 100px; height: 100px; }
  .svc-overview {
    flex-direction: row;
    align-items: flex-start;
  }
  .svc-overview__text { flex: 1; }
  .svc-stats {
    flex-shrink: 0;
    width: 280px;
    grid-template-columns: 1fr 1fr;
  }
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .svc-section-title { font-size: var(--text-3xl); }
}

@media (min-width: 1024px) {
  .service-detail__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-20);
  }

  /* テキストを左、画像を右に反転 */
  .service-detail--reverse .service-detail__inner {
    flex-direction: row-reverse;
  }

  .service-detail__media { flex: 1; }
  .service-detail__body  { flex: 1; }

  .service-detail__name { font-size: var(--text-4xl); }
}


/* ============================================================
   Stats Banner（service.html 用・青背景）
   ============================================================ */
.stats-banner {
  background: linear-gradient(-45deg, #0F172A, #1e3a8a, #2563EB, #0e7ccf);
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
  padding-block: var(--space-16);
  color: var(--color-white);
}

.stats-banner__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  text-align: center;
}

.stats-banner__item {
  padding-block: var(--space-6);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-8) var(--space-6);
}

.stats-banner__number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.stats-banner__unit  { font-size: var(--text-2xl); font-weight: 400; }
.stats-banner__arrow { font-size: var(--text-3xl); color: rgba(255,255,255,0.5); margin-inline: 2px; }
.stats-banner__label { font-size: var(--text-base); font-weight: 700; color: rgba(255,255,255,0.95); margin-bottom: var(--space-2); }
.stats-banner__note  { font-size: var(--text-xs); color: rgba(255,255,255,0.55); }

@media (min-width: 768px) {
  .stats-banner__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .stats-banner { padding-block: var(--space-20); }
}


/* ============================================================
   Works Stats（works.html 用・ダークネイビー背景）
   ============================================================ */
.works-stats {
  background: linear-gradient(135deg, #0F172A 0%, #1e3a8a 60%, #2563EB 100%);
  padding-block: var(--space-16);
  color: var(--color-white);
}

.works-stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  text-align: center;
}

.works-stats__item {
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition), transform var(--transition);
}
.works-stats__item:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

.works-stats__number {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 600;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.works-stats__unit  { font-size: var(--text-2xl); font-weight: 400; }
.works-stats__arrow { font-size: var(--text-3xl); color: rgba(255,255,255,0.5); margin-inline: 2px; }
.works-stats__label { font-size: var(--text-base); font-weight: 700; color: rgba(255,255,255,0.95); margin-bottom: var(--space-2); }
.works-stats__note  { font-size: var(--text-xs); color: rgba(255,255,255,0.55); }

@media (min-width: 768px) {
  .works-stats__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .works-stats { padding-block: var(--space-20); }
}




/* ============================================================
   Case Studies (.cs-*)
   ============================================================ */

/* ---- Individual case article ---- */
.cs {
  position: relative;
  padding-top: 100px;
  padding-bottom: 120px;
  overflow: visible;
}

/* Background section number — common styles */
.cs::before {
  content: attr(data-cs-num);
  font-family: 'Inter', sans-serif;
  font-size: 200px;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.05);
  position: absolute;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -8px;
  user-select: none;
}

/* Default (01, 03): text left → number upper left */
.cs:not(.cs--rev)::before {
  top: -67px;
  left: -20px;
}

/* Reversed (02): SNS left, text right → number upper right */
.cs--rev::before {
  top: -67px;
  right: -20px;
}

/* Section divider */
.cs__divider {
  width: 100%;
  height: 1px;
  background: #E2E8F0;
  margin-bottom: 100px;
}

/* Content layout grid */
.cs__layout {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: clamp(3rem, 5vw, 5rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Reversed layout: SNS left, text right */
.cs--rev .cs__layout {
  grid-template-columns: 45% 55%;
}

.cs--rev .cs__embed-col {
  order: -1;
}

/* ---- Text column ---- */
.cs__text-col {
  position: relative;
}

/* Category label */
.cs__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #94A3B8;
  margin-bottom: 20px;
}

/* Client name */
.cs__client {
  font-size: 14px;
  color: #64748B;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Catch copy */
.cs__catch {
  font-family: 'Noto Serif JP', serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #0F172A;
  margin-top: 12px;
  margin-bottom: 0;
}

/* Stat block */
.cs__stat {
  padding: 28px 0;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  margin: 28px 0;
}

.cs__stat-num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 88px;
  font-weight: 800;
  color: #2563EB;
  letter-spacing: -4px;
  line-height: 1;
}

.cs__stat-label {
  display: block;
  font-size: 11px;
  color: #94A3B8;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* CAR blocks */
.cs__car {
  margin: 0;
  padding: 0;
}

.cs__car-block {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #F1F5F9;
}

.cs__car-block:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.cs__car-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cs__car-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.8;
  margin: 0;
}

.cs__car-block--result .cs__car-text {
  color: #0F172A;
  font-weight: 500;
}

/* ---- SNS embed column ---- */
.cs__embed-col {
  height: auto;
  overflow: visible;
  position: relative;
  display: flex;
  justify-content: center;
}

.cs__embed {
  width: 100%;
  height: 100%;
}

.cs__embed--tiktok {
  max-width: 325px;
}

/* social-card をcs__embed-col内で使う場合の上書き */
.cs__embed-col .social-card {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cs__embed-col .social-card--tiktok {
  max-width: 325px;
}
.cs__embed-col .social-card__body {
  height: 700px;
  aspect-ratio: unset;
  flex: none;
}
.cs__embed-col .social-card__body .sns-item {
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: absolute;
  inset: 0;
  height: 100%;
}

/* Instagram カード: 動画全体が収まる固定高さ */
.social-card--instagram .social-card__body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* モックプレースホルダー */
.social-mock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(160deg, #0f0f0f 0%, #1c1c2e 60%, #16213e 100%);
}
.social-mock__icon {
  width: 52px;
  height: 52px;
  color: rgba(255,255,255,0.25);
}
.social-mock__handle {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* スマホ対応 */
@media (max-width: 767px) {
  /* Social stats: 2列でも数値が収まるようにサイズ調整 */
  .stat-item {
    padding: var(--space-4) var(--space-3);
  }
  .stat-number {
    font-size: clamp(1.25rem, 7vw, 1.875rem);
  }
  .stat-unit {
    font-size: var(--text-base);
  }
  .stat-label {
    font-size: var(--text-xs);
  }
  /* Social embed cards: モバイルでも9:16フル表示 */
  .social-card__body {
    aspect-ratio: 9 / 16;
  }

  .cs__layout,
  .cs--rev .cs__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cs--rev .cs__embed-col { order: 1; }

  .cs__embed-col {
    height: auto;
  }

  .cs__catch { font-size: 28px; }

  .cs__stat-num { font-size: 64px; }

  .cs {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  .cs__divider { margin-bottom: 60px; }

  .cs::before {
    font-size: 120px;
    letter-spacing: -4px;
  }

  .cs:not(.cs--rev)::before,
  .cs--rev::before {
    top: -40px;
  }
}


/* ============================================================
   Company Table（会社情報テーブル）
   ============================================================ */
.company-table-wrap {
  max-width: 720px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.company-table tr { border-bottom: 1px solid var(--color-border); }
.company-table tr:last-child { border-bottom: none; }

.company-table th {
  width: 36%;
  padding: var(--space-5) var(--space-6);
  background-color: var(--color-bg);
  font-weight: 700;
  color: var(--color-dark);
  text-align: left;
  vertical-align: top;
  line-height: var(--leading-normal);
  border-right: 1px solid var(--color-border);
}

.company-table td {
  padding: var(--space-5) var(--space-6);
  color: var(--color-gray);
  line-height: var(--leading-normal);
  vertical-align: top;
  background-color: var(--color-white);
}

.company-table__link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}
.company-table__link:hover { opacity: 0.75; }

@media (min-width: 768px) {
  .company-table th { width: 28%; }
}


/* ============================================================
   Philosophy Cards（Mission / Vision / Value）
   ============================================================ */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* stagger */
.philosophy-grid .fade-in { transition-delay: calc(var(--card-i, 0) * 0.12s); }

.philosophy-card {
  padding: var(--space-10) var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow), border-color var(--transition);
}
.philosophy-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: rgba(37,99,235,0.2);
}

.philosophy-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: #EEF3FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
  transition: background-color var(--transition), transform var(--transition);
}
.philosophy-card:hover .philosophy-card__icon {
  background-color: #dce8ff;
  transform: scale(1.08) rotate(-4deg);
}
.philosophy-card__icon svg { width: 26px; height: 26px; display: block; }

.philosophy-card__title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.philosophy-card__lead {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}

.philosophy-card__text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

@media (min-width: 768px) {
  .philosophy-grid { grid-template-columns: repeat(3, 1fr); }
}


/* ============================================================
   Contact Layout
   ============================================================ */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .contact-layout {
    flex-direction: row;
    gap: var(--space-16);
    align-items: flex-start;
  }
  .contact-info     { width: 340px; flex-shrink: 0; }
  .contact-form-wrap { flex: 1; }
}


/* ---- 左カラム ---- */
.contact-info__title {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

.contact-info__text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}

.contact-point-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-point-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-dark);
  line-height: var(--leading-normal);
}

.contact-point-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}
.contact-point-icon svg { width: 18px; height: 18px; display: block; }

.contact-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.contact-service-chip {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  background: #EEF3FF;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(37,99,235,0.15);
}


/* ---- フォーム ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.form-required {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.form-optional {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-gray-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-dark);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-gray-light); }

/* セレクトボックスのラッパー */
.form-select-wrap {
  position: relative;
}

.form-select {
  cursor: pointer;
  padding-right: 2.5rem;
}

.form-select-arrow {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-gray);
  pointer-events: none;
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: var(--leading-normal);
}

/* エラーテキスト */
.form-error {
  font-size: var(--text-xs);
  color: #EF4444;
  min-height: 1.2em;
}

/* チェックボックス */
.form-group--checkbox .form-error { margin-top: var(--space-1); }

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}

.form-checkbox:checked + .form-checkbox-custom {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.form-checkbox:checked + .form-checkbox-custom::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.form-checkbox-text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-normal);
  margin-top: 2px;
}

.form-checkbox-link {
  color: var(--color-primary);
  text-decoration: underline;
}
.form-checkbox-link:hover { opacity: 0.8; }

/* 送信ボタン */
.contact-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}
.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (min-width: 768px) {
  .contact-form__submit { width: auto; }
}


/* ---- 送信完了 ---- */
.contact-thanks {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-16) var(--space-8);
  gap: var(--space-4);
}

.contact-thanks.is-visible {
  display: flex;
  animation: thanksFadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.contact-thanks__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #EEF3FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.contact-thanks__icon svg { width: 32px; height: 32px; display: block; }

.contact-thanks__title {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
}

.contact-thanks__text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}


/* ============================================================
   Company Page v3 — Sidebar + Editorial Layout
   ============================================================ */

/* ---- Wrapper（サイドバー＋コンテンツの2カラム） ---- */
.co-wrapper {
  display: block;
}

@media (min-width: 1024px) {
  .co-wrapper {
    display: grid;
    grid-template-columns: 168px 1fr;
    align-items: start;
    max-width: calc(var(--container-max) + 168px);
    margin-inline: auto;
  }
}

/* ---- Left Sidebar — vertical nav（PC のみ表示） ---- */
.co-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .co-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding-top: 24px;
    padding-left: 28px;
    padding-right: 16px;
    position: sticky;
    top: var(--header-height);
    height: calc(100dvh - var(--header-height));
    z-index: 10;
  }
}

.co-sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border-left: 2px solid var(--color-border);
  padding-left: 20px;
  width: 100%;
}

/* Each nav item row */
.co-sidebar__nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

/* Left accent line — overlays the track border when active */
.co-sidebar__nav-link::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--color-primary);
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.co-sidebar__nav-link:hover::before {
  opacity: 0.3;
  transform: scaleY(1);
}

.co-sidebar__nav-link.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

/* num + name stacked vertically */
.co-sidebar__nav-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.co-sidebar__nav-num {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 1px;
  line-height: 1;
  transition: color 0.3s ease;
}

.co-sidebar__nav-name {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #B8C4CF;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.co-sidebar__nav-link:hover .co-sidebar__nav-num {
  color: var(--color-dark);
}

.co-sidebar__nav-link:hover .co-sidebar__nav-name {
  color: #64748B;
}

.co-sidebar__nav-link.is-active .co-sidebar__nav-num {
  color: #2563EB;
}

.co-sidebar__nav-link.is-active .co-sidebar__nav-name {
  color: #60A5FA;
}

/* Connecting line — spacing only; visual line comes from nav border-left */
.co-sidebar__nav-line {
  height: 52px;
  margin: 6px 0;
}

/* ---- メインコンテンツ ---- */
.co-content {
  min-width: 0;
  max-width: var(--container-max);
  margin-inline: auto;
  width: 100%;
}

/* ---- セクションヘッダー共通コンポーネント（.coh） ---- */
.coh { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.coh__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.coh__num {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  border: 1.5px solid rgba(37,99,235,0.35);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  letter-spacing: 0.06em;
}

.co-section--dark .coh__num {
  color: rgba(147,197,253,0.85);
  border-color: rgba(147,197,253,0.3);
}

.coh__en {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gray-light);
}

.co-section--dark .coh__en { color: rgba(255,255,255,0.35); }

.coh__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, 3rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.co-section--dark .coh__title {
  color: var(--color-white);
  border-bottom-color: rgba(255,255,255,0.1);
}

/* ---- INTRO ---- */
.co-intro {
  background: var(--color-white);
  padding: clamp(4.5rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--color-border);
}

.co-intro__label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.co-intro__label-bar {
  display: block;
  height: 1px;
  flex: 1;
  background: var(--color-border);
}

.co-intro__title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
}

.co-intro__desc {
  font-size: clamp(var(--text-sm), 1.5vw, var(--text-base));
  color: var(--color-gray);
  line-height: var(--leading-loose);
  font-weight: 300;
  max-width: 480px;
}

/* ---- セクション共通 ---- */
.co-section {
  padding: clamp(4rem, 8vw, 6rem) var(--container-padding);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.co-section--dark {
  background: var(--color-dark);
  border-bottom-color: transparent;
}

/* ---- MESSAGE ---- */
.co-message {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.co-message__img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}

.co-message__role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.co-message__name {
  font-family: var(--font-sans);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
}

.co-message__name-en {
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.co-message__social {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* SNS アイコン共通 */
.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-dark);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.social-icon-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.social-icon-link svg {
  width: 17px;
  height: 17px;
}

.co-message__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.co-message__text p {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

.co-message__achievements {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

.co-message__achievement {
  background: rgba(37, 99, 235, 0.04);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
}

.co-message__achievement-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .5rem;
}

.co-message__achievement-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.co-message__achievement-list li {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-normal);
  padding-left: 1.1em;
  position: relative;
}

.co-message__achievement-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .co-message {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(3rem, 5vw, 5rem);
  }
  .co-message__photo { flex-shrink: 0; display: flex; }
  .co-message__img   { max-width: 340px; width: 340px; height: 100%; aspect-ratio: unset; }
  .co-message__body  { flex: 1; }
}

/* ============================================================
   FOUNDER DARK — Type backdrop + photo overlay
   ============================================================ */

.founder-dark {
  background: var(--color-dark);
  padding: clamp(4rem, 9vw, 7rem) var(--container-padding);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

/* ---- Backdrop type ---- */
.founder-dark__backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--container-padding);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.founder-dark__big-line {
  font-family: 'Inter', sans-serif;
  font-size: clamp(4.5rem, 17vw, 14rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.1);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-dark__big-line--2 {
  transform: translateX(50px);
  transition-delay: 0.08s;
}

.founder-dark__big-line.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Main: photo + info ---- */
.founder-dark__main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 768px) {
  .founder-dark__main {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

.founder-dark__photo-wrap {
  flex-shrink: 0;
  width: clamp(180px, 38%, 300px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px) scale(1.04);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.founder-dark__photo-wrap.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.founder-dark__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.founder-dark__info {
  flex: 1;
  padding-top: 0.25rem;
}

.founder-dark__role {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease 0.28s, transform 0.55s ease 0.28s;
}

.founder-dark__role.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-dark__name {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.36s,
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.36s;
}

.founder-dark__name.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-dark__name-en {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.14em;
  margin-bottom: 1.4rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease 0.46s, transform 0.55s ease 0.46s;
}

.founder-dark__name-en.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-dark__socials {
  display: flex;
  gap: 10px;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease 0.54s, transform 0.5s ease 0.54s;
}

.founder-dark__socials.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-dark .social-icon-link {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.founder-dark .social-icon-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.founder-dark__message {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.6s, transform 0.7s ease 0.6s;
}

.founder-dark__message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-dark__message p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: var(--leading-loose);
}

/* ---- Stats row ---- */
.founder-dark__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.founder-dark__stat {
  padding-right: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(0.72s + var(--i, 0) * 0.1s),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(0.72s + var(--i, 0) * 0.1s);
}

.founder-dark__stat.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-dark__stat + .founder-dark__stat {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.founder-dark__stat-num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.founder-dark__stat-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.4rem;
}

.founder-dark__stat-body {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  line-height: 1.75;
}

@media (max-width: 540px) {
  .founder-dark__stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .founder-dark__stat + .founder-dark__stat {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
  }
  .founder-dark__stat { padding-right: 0; }
}

/* ---- OVERVIEW ---- */
.co-overview {
  display: flex;
  flex-direction: column;
}

.co-overview__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding-block: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition-delay: calc(var(--item-i, 0) * 0.07s);
}

.co-overview__item:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.co-overview__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

.co-overview__value {
  font-size: var(--text-base);
  color: var(--color-white);
  line-height: var(--leading-normal);
}

.co-overview__link {
  color: rgba(147,197,253,0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.co-overview__link:hover { color: var(--color-white); }

@media (min-width: 768px) {
  .co-overview__item {
    grid-template-columns: 200px 1fr;
    align-items: baseline;
    gap: var(--space-8);
  }
}

/* ---- PARTNERS ---- */
/* ---- PARTNERS ロゴウォール ---- */
.co-partners__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-normal);
  margin-top: calc(-1 * var(--space-8));
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.co-partners-groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.co-partners-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.co-partners-group__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.co-partners-group__icon {
  width: 15px;
  height: 15px;
  color: var(--color-gray-light);
  flex-shrink: 0;
}

.co-partners-group__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-gray-light);
  white-space: nowrap;
}

.co-partners-group__line {
  display: block;
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.co-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.co-partner-card {
  background: var(--color-white);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.co-partner-card:not(.co-partner-card--empty):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.co-partner-card__logo {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.co-partner-card__logo img {
  max-height: 32px;
  max-width: 100%;
  object-fit: contain;
}

.co-partner-card__name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-dark);
  line-height: var(--leading-tight);
}

.co-partner-card__cat {
  font-size: 0.6875rem;
  color: var(--color-gray-light);
  letter-spacing: 0.03em;
}

.co-partner-card--empty {
  background: transparent;
  border: 0.5px dashed var(--color-border);
  pointer-events: none;
  min-height: 80px;
  justify-content: center;
}

.co-partner-card__empty-label {
  font-size: var(--text-xs);
  color: var(--color-gray-light);
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .co-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ============================================================
   Privacy Policy
   ============================================================ */
.privacy-body {
  max-width: 720px;
  margin-inline: auto;
}

.privacy-lead {
  font-size: var(--text-base);
  color: var(--color-gray);
  line-height: var(--leading-loose);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--color-border);
}

.privacy-section {
  padding-block: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 1px solid var(--color-border);
}

.privacy-heading {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

.privacy-section p {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-3);
}

.privacy-section p:last-child { margin-bottom: 0; }

.privacy-list {
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.privacy-list li {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-normal);
  list-style: disc;
}

.privacy-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-link:hover { color: var(--color-dark); }

.privacy-date {
  font-size: var(--text-xs);
  color: var(--color-gray-light);
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: right;
}


/* ============================================================
   Target Split (index.html — 個人 / 法人 分岐セクション)
   ============================================================ */
.target-split {
  background: var(--color-bg);
  padding-block: var(--space-16);
  border-bottom: 1px solid var(--color-border);
}
.target-split__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.target-split__heading {
  text-align: center;
}
.target-split__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.target-split__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
}
.target-split__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  width: 100%;
  max-width: 840px;
}
@media (min-width: 640px) {
  .target-split__cards { grid-template-columns: 1fr 1fr; }
}

.target-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.target-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
}
.target-card--individual::before {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}
.target-card--corporate::before {
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
}
.target-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.target-card--individual:hover { border-color: #6366f1; }
.target-card--corporate:hover  { border-color: #2563eb; }

.target-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-1);
}
.target-card--individual .target-card__icon {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
}
.target-card--corporate .target-card__icon {
  background: rgba(37,99,235,0.1);
  color: #2563eb;
}
.target-card__icon svg { width: 24px; height: 24px; }

.target-card__kicker {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.target-card--individual .target-card__kicker { color: #6366f1; }
.target-card--corporate  .target-card__kicker { color: #2563eb; }

.target-card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}
.target-card__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-normal);
}
.target-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--space-2);
}
.target-card__list li {
  font-size: var(--text-xs);
  color: var(--color-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.target-card__list li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.target-card--individual .target-card__list li::before { background: #6366f1; }
.target-card--corporate  .target-card__list li::before { background: #2563eb; }

.target-card__cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.target-card--individual .target-card__cta { color: #6366f1; }
.target-card--corporate  .target-card__cta { color: #2563eb; }
.target-card__cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}
.target-card:hover .target-card__cta svg { transform: translateX(4px); }


/* ============================================================
   Service Page Toggle (個人 / 法人 切り替え)
   ============================================================ */
.svc-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.svc-toggle__btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-gray-light);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.svc-toggle__btn:hover:not(.is-active) {
  color: var(--color-dark);
}
.svc-toggle__btn.is-active {
  color: var(--color-primary);
}
.svc-toggle__sep {
  font-size: 10px;
  color: var(--color-border);
  user-select: none;
}

/* ============================================================
   Service Tab Filter (service.html)
   ============================================================ */
.svc-tabs-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-height);
  z-index: 20;
}
.svc-tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}
.svc-tabs::-webkit-scrollbar { display: none; }

.svc-tab {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gray);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.svc-tab:hover { color: var(--color-dark); }
.svc-tab.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}


/* ============================================================
   Target Badge (service.html 各セクション)
   ============================================================ */
.target-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-1);
}
.target-badge--individual {
  background: rgba(99,102,241,0.1);
  color: #6366f1;
}
.target-badge--corporate {
  background: rgba(37,99,235,0.1);
  color: #2563eb;
}
.target-badge--both {
  background: rgba(15,23,42,0.06);
  color: var(--color-gray);
}

/* サイドバー：非対象リンクを薄く */
.co-sidebar__nav-link.is-dimmed {
  opacity: 0.25;
  pointer-events: none;
  transition: opacity var(--transition);
}
.co-sidebar__nav-link.is-dimmed + .co-sidebar__nav-line {
  opacity: 0.25;
}

/* セクション非表示トランジション */
.service-detail[data-target] {
  transition: opacity 0.2s ease;
}
.service-detail.is-hidden {
  display: none;
}


/* ============================================================
   SNS Marketing Detail Page (service-marketing.html)
   ============================================================ */

/* Lead */
.svc-mkt-lead {
  padding: var(--space-12) 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.svc-mkt-lead__text {
  max-width: 680px;
  margin-inline: auto;
  font-size: var(--text-base);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

/* Section header */
.svc-mkt-sec-header {
  margin-bottom: var(--space-10);
}
.svc-mkt-sec-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-top: var(--space-3);
}
.svc-mkt-sec-title--center { text-align: center; }

.svc-mkt-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.svc-mkt-badge--individual {
  background: rgba(37,99,235,0.1);
  color: var(--color-primary);
}
.svc-mkt-badge--corporate {
  background: rgba(15,23,42,0.08);
  color: var(--color-dark);
}

/* Milestone box */
.svc-mkt-milestone {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(37,99,235,0.02) 100%);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  margin-bottom: var(--space-10);
}
.svc-mkt-milestone__inner {
  flex-shrink: 0;
  text-align: center;
}
.svc-mkt-milestone__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.svc-mkt-milestone__num {
  font-family: 'Inter', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.svc-mkt-milestone__num span {
  font-size: var(--text-2xl);
  font-weight: 700;
}
.svc-mkt-milestone__label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-dark);
  margin-top: var(--space-1);
}
.svc-mkt-milestone__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

/* Benefits grid */
.svc-mkt-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.svc-mkt-benefit {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.svc-mkt-benefit__icon {
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
.svc-mkt-benefit__icon svg { width: 22px; height: 22px; }
.svc-mkt-benefit__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}
.svc-mkt-benefit__desc {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

/* Story block */
.svc-mkt-story {
  background: var(--color-bg);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-10);
}
.svc-mkt-story__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}
.svc-mkt-story__text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

/* Target list */
.svc-mkt-targets {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
}
.svc-mkt-targets__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.svc-mkt-target-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.svc-mkt-target-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark);
}
.svc-mkt-target-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* Philosophy text */
.svc-mkt-philosophy {
  font-size: var(--text-base);
  color: var(--color-gray);
  line-height: var(--leading-loose);
  max-width: 720px;
  margin-bottom: var(--space-10);
}

/* Corporate service blocks */
.svc-mkt-corp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}
.svc-mkt-corp-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.svc-mkt-corp-block__num {
  font-family: 'Inter', sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.svc-mkt-corp-block__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}
.svc-mkt-corp-block__sub {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.svc-mkt-corp-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.svc-mkt-corp-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}
.svc-mkt-corp-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Case studies */
.svc-mkt-cases { margin-bottom: var(--space-12); }
.svc-mkt-cases__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-6);
}
.svc-mkt-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.svc-mkt-case {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.svc-mkt-case__industry {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: rgba(37,99,235,0.08);
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.svc-mkt-case__support {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.svc-mkt-case__result {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.6;
}
.svc-mkt-case__result::before {
  content: '→ ';
  color: var(--color-primary);
  font-weight: 700;
}

/* Value block */
.svc-mkt-value {
  background: linear-gradient(135deg, rgba(15,23,42,0.04) 0%, transparent 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-10);
  border: 1px solid var(--color-border);
}
.svc-mkt-value__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}
.svc-mkt-value__text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: var(--leading-loose);
}

/* Strengths */
.svc-mkt-strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.svc-mkt-strength {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.svc-mkt-strength__icon {
  width: 56px;
  height: 56px;
  background: rgba(37,99,235,0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--color-primary);
}
.svc-mkt-strength__icon svg { width: 28px; height: 28px; }
.svc-mkt-strength__title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}
.svc-mkt-strength__list {
  list-style: none;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.svc-mkt-strength__list li {
  font-size: var(--text-xs);
  color: var(--color-gray);
  line-height: var(--leading-loose);
  padding-left: var(--space-4);
  position: relative;
}
.svc-mkt-strength__list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 767px) {
  .svc-mkt-milestone {
    flex-direction: column;
    text-align: center;
    gap: var(--space-5);
    padding: var(--space-6);
  }
  .svc-mkt-benefit-grid { grid-template-columns: 1fr; }
  .svc-mkt-corp-grid    { grid-template-columns: 1fr; }
  .svc-mkt-case-grid    { grid-template-columns: 1fr; }
  .svc-mkt-strength-grid { grid-template-columns: 1fr; }
  .svc-mkt-value { padding: var(--space-6); }
}
@media (min-width: 768px) {
  .svc-mkt-sec-title { font-size: var(--text-3xl); }
  .svc-mkt-milestone__num { font-size: 5rem; }
}
