/* =========================================
   CEN Site / Hero (Phase 1 - first iteration)
========================================= */

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--container-pad);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}
.site-nav a:hover {
  opacity: 0.6;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-cta:hover {
  background: var(--cta-bg-hover);
  transform: translateY(-1px);
}

/* === Background Logo (fixed across page) === */
.bg-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(60vw, 880px);
  height: auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
  transition: filter 0.6s ease;
  filter: blur(0px);
}

.bg-logo.is-blurred {
  filter: blur(12px);
}

/* === Hero Section === */
.hero {
  position: relative;
  z-index: 2;
}

.hero-block {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-block .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: 100%;
}

.hero-block h1,
.hero-block p {
  font-family: var(--font-jp);
  color: var(--text-primary);
}

.hero-block .text {
  display: block;
}

/* タイプライター用文字 span（B1 で使う） */
.hero-block .char {
  display: inline-block;
  opacity: 0;
}

/* 漢字変換中の状態：薄い下線（IME っぽい） */
.hero-block .char.is-converting {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(0, 122, 255, 0.6);
}

/* タイプ中・完了後に表示する点滅カーソル */
.type-cursor {
  display: inline-block;
  width: 0.06em;
  height: 1em;
  background: currentColor;
  vertical-align: -0.1em;
  margin-left: 0.05em;
  opacity: 0;
  animation: blink 1.05s steps(2, start) infinite;
}
.hero-block.is-typing .type-cursor,
.hero-block.is-typed .type-cursor {
  opacity: 1;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* B1: 64px Bold（2 行に収まるサイズ） */
.hero-b1 .hero-headline {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero-b1 .line-1 {
  color: var(--text-primary);
}
.hero-b1 .line-2 {
  color: var(--text-secondary);
}

/* Story（B2+B3+B4 統合）: 同サイズで連続 */
.hero-story p {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}
.hero-story .text {
  /* フェードイン用に初期は不可視 */
  opacity: 0;
}
.hero-story .line-emphasis,
.hero-story .phrase-emphasis {
  font-weight: 700;
  color: var(--text-primary);
}

/* B1 だけ下にスクロールヒント */
.hero-b1 .scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
}

/* === Mobile === */
@media (max-width: 767px) {
  .hero-block {
    min-height: auto;
    padding: 80px 0;
  }
  .hero-b1 {
    min-height: 100vh;
  }
  .hero-block .char {
    opacity: 1; /* mobile: タイプライターは省略、即時表示 */
  }
  .hero-story .text {
    opacity: 1;
  }
  .bg-logo {
    width: 90vw;
  }
}


/* =========================================
   Common: Section / Container / Headers
========================================= */
.section {
  position: relative;
  z-index: 2;
  padding: var(--sp-4xl) 0;
  /* 背景は透過。body の白 + 固定 bg-logo (5% ぼかし) が透けて見える */
  background: transparent;
}

/* セクションごとに背景色を指定したい場合のモディファイア */
.section--bg-light {
  background: var(--bg-primary);
}
.section--bg-secondary {
  background: var(--bg-secondary);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-header {
  margin-bottom: var(--sp-3xl);
}

.section-label {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-md);
}

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--sp-lg);
}

/* タイプライター対象は .text を block 化（B1 以外でも有効） */
[data-typewriter-id] .text {
  display: block;
}

/* セクション見出し用の char 表示（hero-block 外でも .char/.is-converting/.type-cursor を使えるように） */
[data-typewriter-id] .char {
  display: inline-block;
  opacity: 0;
}
[data-typewriter-id] .char.is-converting {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(0, 122, 255, 0.6);
}
[data-typewriter-id].is-typing .type-cursor,
[data-typewriter-id].is-typed .type-cursor {
  opacity: 1;
}

.section-lead {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: opacity 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover {
  opacity: 0.7;
  gap: 8px;
}
.link-arrow .arrow {
  font-size: 18px;
  line-height: 1;
}

/* =========================================
   Products Section
========================================= */
.products .section-header {
  margin-bottom: var(--sp-4xl);
}

.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: var(--sp-4xl);
}
.product-block.reversed {
  direction: rtl; /* 簡易反転 */
}
.product-block.reversed > * {
  direction: ltr;
}

.product-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-logo {
  height: 36px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  align-self: flex-start;
}

.product-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.product-demo {
  width: 100%;
  /* デモ枠は実際のウィジェット高さ 500px に合わせる */
}

/* === Chat Mock (SupportHub AI) === */
.chat-mock {
  display: flex;
  flex-direction: column;
  height: 500px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-demo);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--cta-bg);
  color: var(--cta-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.chat-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.chat-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28b463;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px 16px;
  align-items: flex-start;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--bg-secondary);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 80%;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.chat-chip {
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chat-chip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border-top: 1px solid var(--border-subtle);
}

.chat-input-text {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-tertiary);
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.chat-send:hover {
  background: var(--cta-bg-hover);
  transform: translateY(-1px);
}

/* === Feature Carousel (WEBSTUDIO DESK) === */
.carousel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 500px;
  background: var(--bg-secondary);
  border-radius: var(--radius-demo);
  padding: 28px 32px;
  box-sizing: border-box;
}

.carousel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.carousel-label {
  color: var(--text-primary);
}
.carousel-counter {
  color: var(--text-tertiary);
}

.carousel-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  position: relative;
}

.carousel-teaser {
  font-size: 12px;
  color: var(--text-tertiary);
  opacity: 0.5;
  line-height: 1.4;
}

.carousel-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  /* JS でフェード/移動アニメ */
  will-change: opacity, transform;
}

.carousel-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.carousel-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 360px;
}

.carousel-mini {
  width: 280px;
  padding: 18px 22px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.mini-label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
}

.mini-value {
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
}

.mini-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

/* generic mini bullet list (代替 UI) */
.mini-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.mini-list li {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mini-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-primary);
  flex-shrink: 0;
}

.carousel-controls {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.carousel-arrow:hover {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-text);
  transform: translateY(-1px);
}

.carousel-arrow:active {
  transform: translateY(0);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: width 0.25s ease, background 0.25s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dots .dot.active {
  width: 24px;
  background: var(--text-primary);
}

.carousel-dots .dot:hover {
  background: var(--text-secondary);
}

/* === Closing line === */
.products-closing {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  margin-top: var(--sp-3xl);
}

.closing-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border-strong);
}

.products-closing p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Products Mobile === */
@media (max-width: 767px) {
  .product-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-block.reversed {
    direction: ltr;
    /* デモを上、テキストを下に表示 */
    grid-template-rows: auto auto;
  }
  .product-block.reversed .product-demo {
    order: 0;
  }
  .product-block.reversed .product-text {
    order: 1;
  }
  .chat-mock,
  .carousel {
    height: 460px;
  }
  .products-closing {
    flex-direction: column;
    gap: 16px;
  }
  .closing-line {
    width: 40px;
    max-width: none;
  }
  .products-closing p {
    text-align: center;
    font-size: 13px;
  }
}

/* =========================================
   Services Section
========================================= */
.services .heading-rule {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--text-primary);
  margin-top: var(--sp-md);
}

.services-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: var(--sp-3xl);
}

/* Left: nav */
.services-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.services-nav-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.18s ease;
}

.services-nav-item .num {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.services-nav-item .title {
  font-weight: 500;
}

.services-nav-item .arrow {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  color: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.services-nav-item:hover {
  background: var(--bg-secondary);
}

.services-nav-item.active {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
}

.services-nav-item.active .num {
  color: var(--cta-text);
  opacity: 0.6;
}

.services-nav-item.active .title {
  font-weight: 700;
}

.services-nav-item.active .arrow {
  opacity: 1;
}

/* Right: content */
.services-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.services-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-image);
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.services-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.services-active-title {
  font-family: var(--font-jp);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.services-active-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* AI Estimate CTA */
.ai-estimate-cta {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 56px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ai-estimate-headline {
  font-family: var(--font-jp);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

.ai-estimate-note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-estimate-button {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 8px;
}

.ai-estimate-button:hover {
  background: var(--cta-bg-hover);
  transform: translateY(-1px);
}

/* === Services Mobile（5 サービスを縦積みカード）=== */
@media (max-width: 767px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .services-nav {
    /* mobile はナビを横スクロールタブに */
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .services-nav::-webkit-scrollbar { display: none; }

  .services-nav-item {
    grid-template-columns: auto auto;
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 14px;
  }
  .services-nav-item .arrow { display: none; }

  .ai-estimate-cta {
    padding: 40px 24px;
    border-radius: 16px;
  }
  .ai-estimate-headline {
    font-size: 17px;
  }
}


/* =========================================
   Process Section
========================================= */
.process .section-header {
  text-align: left;
}

.process-carousel {
  margin-top: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
}

.process-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.process-step-indicator {
  color: var(--text-tertiary);
}

.process-auto-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
}

.process-auto-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  animation: process-pulse 1.4s ease-in-out infinite;
}

@keyframes process-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.process-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.process-card {
  width: 800px;
  max-width: 100%;
  min-height: 380px;
  padding: 56px;
  background: var(--bg-secondary);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.process-num {
  font-family: "Inter", sans-serif;
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.process-step-title {
  font-family: var(--font-jp);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.process-step-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* Prev/Next buttons */
.process-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.process-arrow:hover {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-text);
  transform: translateY(-1px);
}

.process-arrow.next {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-text);
}

.process-arrow.next:hover {
  background: var(--cta-bg-hover);
  border-color: var(--cta-bg-hover);
}

.process-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.process-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.process-dots .dot.active {
  width: 28px;
  background: var(--text-primary);
}

.process-dots .dot:hover {
  background: var(--text-secondary);
}

/* Process note line */
.process-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: var(--sp-3xl);
}

.process-note .note-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border-strong);
}

.process-note p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Process Mobile === */
@media (max-width: 767px) {
  .process-stage {
    gap: 12px;
  }

  .process-card {
    width: 100%;
    min-height: 320px;
    padding: 32px 24px;
    gap: 16px;
  }

  .process-num {
    font-size: 56px;
  }

  .process-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .process-note {
    flex-direction: column;
    gap: 16px;
  }

  .process-note .note-line {
    width: 40px;
    max-width: none;
  }

  .process-note p {
    text-align: center;
    font-size: 13px;
  }
}


/* =========================================
   汎用 CTA ピル（Footer / Final CTA / Works などで使用）
========================================= */
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.cta-pill:hover {
  background: var(--cta-bg-hover);
  transform: translateY(-1px);
}
.cta-pill--large {
  padding: 18px 36px;
  font-size: 17px;
}

/* =========================================
   About Section（会社情報 + チーム）
========================================= */
.company-info {
  max-width: 800px;
  margin: 0 auto var(--sp-3xl);
  display: flex;
  flex-direction: column;
}

.company-info-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-primary);
}

.company-info-row:first-child {
  border-top: 1px solid var(--border-primary);
}

.company-info-row dt {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.company-info-row dd {
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.about-team {
  margin-top: var(--sp-3xl);
}

.about-team-intro {
  max-width: 800px;
  margin: 0 auto var(--sp-2xl);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 767px) {
  .company-info {
    margin-bottom: var(--sp-2xl);
  }
  .company-info-row {
    grid-template-columns: 100px 1fr;
    gap: 16px;
    padding: 14px 0;
  }
  .company-info-row dt {
    font-size: 12px;
  }
  .company-info-row dd {
    font-size: 14px;
  }
  .about-team-intro {
    font-size: 15px;
    text-align: left;
  }
}

/* =========================================
   Team Cards (About 内)
========================================= */
.team-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.team-card h3 {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.team-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .team-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .team-card {
    padding: 24px;
  }
  .about-team {
    margin-top: var(--sp-2xl);
  }
}

/* =========================================
   Works Section
========================================= */
.works-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sp-xl);
}

.works-pills li {
  list-style: none;
}

.works-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.works-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: var(--sp-3xl);
  text-align: center;
}

.works-cta p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .works-pills {
    gap: 8px;
  }
  .works-pill {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* =========================================
   Hokkaido Section
========================================= */
.hokkaido .section-header {
  text-align: center;
  margin-bottom: var(--sp-3xl);
}

.hokkaido .section-label {
  display: inline-block;
}

.hokkaido-image {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto var(--sp-3xl);
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-image);
  overflow: hidden;
  background: var(--bg-primary);
}

.hokkaido-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hokkaido-text {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.hokkaido-text p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.hokkaido-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-2xl);
}

@media (max-width: 767px) {
  .hokkaido-text p {
    font-size: 15px;
    text-align: left;
  }
}

/* =========================================
   Final CTA Section
========================================= */
.final-cta {
  text-align: center;
  padding: calc(var(--sp-4xl) + var(--sp-xl)) 0;
}

.final-cta-header {
  margin-bottom: var(--sp-2xl);
}

.final-cta-headline {
  font-family: var(--font-jp);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: var(--sp-md);
}

.final-cta-body {
  max-width: 720px;
  margin: 0 auto var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.final-cta-quote {
  font-family: var(--font-jp);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  color: var(--text-primary);
}

.final-cta-sub {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (max-width: 767px) {
  .final-cta {
    padding: var(--sp-4xl) 0;
  }
  .final-cta-sub {
    font-size: 15px;
  }
}

/* =========================================
   Legal Pages（プライバシーポリシー等）
========================================= */
.legal-page {
  padding-top: 60px; /* fixed header の分 */
}

.container--narrow {
  max-width: 760px;
}

.legal-content {
  padding-top: var(--sp-3xl);
  padding-bottom: var(--sp-4xl);
}

.legal-header {
  margin-bottom: var(--sp-3xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border-primary);
}

.legal-title {
  font-family: var(--font-jp);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: var(--sp-md) 0 var(--sp-md);
}

.legal-meta {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.legal-body {
  font-family: var(--font-jp);
  color: var(--text-primary);
}

.legal-intro {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2xl);
}

.legal-section {
  margin-bottom: var(--sp-2xl);
}

.legal-section h2 {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: var(--sp-md);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}

.legal-section p {
  margin-bottom: var(--sp-md);
}

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

.legal-section ul,
.legal-section ol {
  list-style: none;
  margin: 0 0 var(--sp-md);
  padding-left: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 6px;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.85em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-secondary);
}

.legal-section ol {
  counter-reset: legal-counter;
}

.legal-section ol li {
  counter-increment: legal-counter;
  position: relative;
  padding-left: 2em;
  margin-bottom: 6px;
}

.legal-section ol li::before {
  content: counter(legal-counter) ".";
  position: absolute;
  left: 0;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  width: 1.5em;
}

.legal-section a,
.legal-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: opacity 0.2s ease;
}

.legal-section a:hover,
.legal-body a:hover {
  opacity: 0.6;
}

.legal-contact-block {
  margin-top: var(--sp-md);
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.legal-contact-block p {
  margin-bottom: 4px;
}

.legal-footer {
  margin-top: var(--sp-3xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border-primary);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: var(--text-tertiary);
}

.legal-footer p {
  margin: 0 0 4px;
}

@media (max-width: 767px) {
  .legal-content {
    padding-top: var(--sp-2xl);
    padding-bottom: var(--sp-3xl);
  }
  .legal-section h2 {
    font-size: 17px;
  }
  .legal-section p,
  .legal-section li {
    font-size: 14px;
    line-height: 1.85;
  }
  .legal-intro {
    font-size: 15px;
  }
}

/* =========================================
   Contact Form (ContactHub 埋め込み)
   - サイトのデザイントークンに合わせて override
========================================= */
.contact-form-wrap {
  max-width: 640px;
  margin: var(--sp-2xl) auto 0;
  text-align: left;
}

.contact-form-wrap .efo-form-container {
  max-width: 100%;
  font-family: var(--font-jp);
  background: transparent;
}

/* ラベル */
.contact-form-wrap .efo-label {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

/* テキスト入力 / textarea / select */
.contact-form-wrap .efo-input,
.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea,
.contact-form-wrap select {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-jp);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form-wrap .efo-input:focus,
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus,
.contact-form-wrap select:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, 0.08);
  outline: none;
}

/* 送信 / 次へ ボタン → 黒ピル */
.contact-form-wrap .efo-btn,
.contact-form-wrap .efo-btn--next,
.contact-form-wrap .efo-btn--submit,
.contact-form-wrap button[type="submit"] {
  background: var(--cta-bg);
  color: var(--cta-text);
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-form-wrap .efo-btn:hover,
.contact-form-wrap .efo-btn--next:hover,
.contact-form-wrap .efo-btn--submit:hover,
.contact-form-wrap button[type="submit"]:hover {
  background: var(--cta-bg-hover);
  transform: translateY(-1px);
}

/* 戻るボタンは控えめに */
.contact-form-wrap .efo-btn--prev,
.contact-form-wrap .efo-btn--back {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.contact-form-wrap .efo-btn--prev:hover,
.contact-form-wrap .efo-btn--back:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
  transform: translateY(-1px);
}

/* エラー文言 */
.contact-form-wrap .efo-error {
  color: #d4351c;
  font-size: 13px;
}

/* 進捗バー / 必須マーク */
.contact-form-wrap .efo-progress-bar,
.contact-form-wrap .efo-step-indicator {
  background: var(--bg-secondary);
}
.contact-form-wrap .efo-progress-bar-fill {
  background: var(--cta-bg);
}

@media (max-width: 767px) {
  .contact-form-wrap {
    margin-top: var(--sp-xl);
  }
}

/* =========================================
   Footer
========================================= */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-primary);
  padding: 80px 0 32px;
}

/* Footer 上段：左にブランド、右にナビ */
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 56px;
}

/* ロゴ + タグライン：左カラム内で中央揃え */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  height: 120px;
  width: auto;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
}

/* ナビ 3 カラム：右カラム内で中央揃え */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 64px;
  justify-content: center;
}

.footer-nav-col h4 {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer-nav-col a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-nav-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 56px 0 32px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  .footer-logo {
    height: 88px;
  }
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    justify-items: center;
  }
  .footer-nav-col {
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}
