/* =========================================================
   SmallShift LP — style.css
   構成:
   1. リセット / ベース
   2. カラー変数（ここを変えるだけで全体の配色が変わります）
   3. タイポグラフィ / 共通レイアウト
   4. ヘッダー
   5. ボタン（CTA）
   6. セクション見出し
   7. 各セクション
   8. アニメーション
   9. レスポンシブ（min-width: 768px 以上が PC 表示）
   ========================================================= */

/* ---------- 1. リセット / ベース ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 2. カラー変数 ---------- */
:root {
  --color-primary: #14304f;
  --color-primary-dark: #0a1a2c;
  --color-primary-light: #dce6f0;

  --color-accent: #0e7c9e;
  --color-accent-dark: #0a5f78;

  --color-background: #f4f7fa;
  --color-background-alt: #e6edf3;
  --color-surface: #ffffff;

  --color-text: #16212c;
  --color-muted: #55677a;
  --color-border: #cfdbe4;

  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Helvetica Neue",
    Arial, sans-serif;

  --content-max: 1200px;
  --prose-max: 760px;
}

/* ---------- 3. タイポグラフィ / 共通レイアウト ---------- */
body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-break: strict;
  overflow-wrap: break-word;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}

section[id] {
  scroll-margin-top: 84px;
}

.section {
  padding-block: 72px;
}

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

.section--dark {
  background: var(--color-primary-dark);
  color: #ffffff;
}

.text-balance {
  text-wrap: balance;
}

/* スマホでは改行させず自動折り返しに任せ、PC(768px〜)でのみ改行させる */
.br-pc-only {
  display: none;
}

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

/* ---------- 4. ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  background: rgba(244, 247, 250, 0.95);
  box-shadow: 0 2px 16px -6px rgba(20, 32, 44, 0.25);
  backdrop-filter: blur(6px);
}

.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  transition: width 0.15s ease-out;
}

.site-header__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
}

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

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.cta-button.header-cta {
  display: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.cta-button.header-cta:hover {
  background: var(--color-primary-dark);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
  padding: 8px 24px 24px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 8px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
}

.mobile-nav a:hover {
  background: var(--color-primary-light);
}

.mobile-nav .header-cta {
  display: inline-flex;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- 5. ボタン（CTA） ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  padding: 14px 28px;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
}

.cta-button--lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

.cta-button--accent {
  background: var(--color-accent);
  color: #fff;
}
.cta-button--accent:hover {
  background: var(--color-accent-dark);
}

.cta-button--primary {
  background: var(--color-primary);
  color: #fff;
}
.cta-button--primary:hover {
  background: var(--color-primary-dark);
}

.cta-button--outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}
.cta-button--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.cta-button--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: transparent;
}
.cta-button--ghost:hover {
  background: #fff;
  color: var(--color-primary-dark);
}

/* ---------- 6. セクション見出し ---------- */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.section-heading--left {
  align-items: flex-start;
  text-align: left;
}

.section-heading__title {
  font-size: 1.6rem;
  line-height: 1.55;
  font-weight: 900;
}

.section-heading__lead {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.section--dark .section-heading__lead {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- 7-1. HERO ---------- */
.hero {
  position: relative;
  background: rgba(220, 230, 240, 0.6);
  padding-block: 56px 80px;
}

.hero__grid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__title {
  font-size: 1.75rem;
  line-height: 1.5;
  font-weight: 900;
}

.hero__subcopy {
  max-width: 560px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.hero__subcopy p + p {
  margin-top: 1em;
}

.hero__emphasis {
  max-width: 560px;
  margin-inline: auto;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-text);
}

.image-placeholder {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: var(--color-primary-light);
  aspect-ratio: 4 / 3;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder--square {
  aspect-ratio: 1 / 1;
}

/* ---------- 7-2. PROBLEMS ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}

.problem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 24px;
  text-align: center;
}

.problem-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.problem-card__icon svg {
  width: 24px;
  height: 24px;
}

.problem-card__text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
}

/* ---------- 7-3. SOLUTION ---------- */
.solution__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin-inline: auto;
  margin-top: 32px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
  text-align: center;
}

.solution__highlight {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.solution__pill {
  display: block;
  width: fit-content;
  margin: 36px auto 0;
  border-radius: 999px;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

.solution__note {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--color-muted);
  text-align: center;
}

/* ---------- 7-6. SERVICES ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 28px;
}

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

.service-card__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card__body {
  line-height: 1.8;
  color: var(--color-muted);
}

.service-card__list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.service-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9375rem;
}

.service-card__list li::before {
  content: "";
  margin-top: 8px;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---------- 7-7. FEATURES（現在は非表示。復活時にそのまま使えます） ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  display: flex;
  gap: 20px;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 28px;
}

.feature-card__number {
  flex-shrink: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: rgba(20, 48, 79, 0.2);
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.feature-card__body {
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-muted);
}

/* ---------- 7-8. MID CTA ---------- */
.mid-cta {
  background: rgba(14, 124, 158, 0.12);
  padding-block: 80px;
  text-align: center;
}

.mid-cta__title {
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 900;
}

.mid-cta__body {
  max-width: 560px;
  margin-inline: auto;
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.mid-cta .cta-button {
  margin-top: 28px;
}

/* ---------- 7-9. TARGET（現在は非表示） ---------- */
.target-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}

.target-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 16px 24px;
}

.target-item__check {
  margin-top: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ---------- 7-10. FLOW ---------- */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 64px;
}

.flow-step {
  position: relative;
  display: flex;
  gap: 20px;
}

.flow-step__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-step__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flow-step__connector {
  margin-top: 8px;
  width: 1px;
  flex: 1;
  background: var(--color-border);
}

.flow-step__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 40px;
}

.flow-step__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.flow-step__body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-muted);
}

/* ---------- 7-11. ABOUT（現在は非表示） ---------- */
.about-profile {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
  max-width: 880px;
  margin: 56px auto 0;
  border-radius: 32px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 32px;
}

.about-profile__photo {
  width: 160px;
  margin-inline: auto;
}

.about-profile__name {
  font-size: 1.25rem;
  font-weight: 700;
}

.about-profile__meta {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.about-profile__bio {
  margin-top: 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.about-profile__tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag-row__label {
  font-weight: 700;
  color: var(--color-primary-dark);
}

.tag {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
}

.tag--primary {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.tag--muted {
  background: var(--color-background-alt);
  color: var(--color-muted);
}

/* ---------- 7-12. FINAL CTA ---------- */
.final-cta {
  padding-block: 64px;
  text-align: center;
}

/* ---------- 7-13. フッター ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__company {
  margin-top: 8px;
  font-size: 0.875rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.875rem;
}

.site-footer__nav a:hover {
  color: #fff;
}

.site-footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 8. アニメーション ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  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: opacity, transform;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.icon-draw path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.fade-in-up.is-visible .icon-draw path {
  stroke-dashoffset: 0;
}

/* ---------- 9. レスポンシブ（768px 以上 = PC） ---------- */
@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }

  .section {
    padding-block: 112px;
  }

  .br-pc-only {
    display: inline;
  }

  .site-nav {
    display: flex;
  }

  .cta-button.header-cta {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .section-heading__title {
    font-size: 2.25rem;
    line-height: 1.5;
  }

  .section-heading__lead {
    font-size: 1.125rem;
  }

  .hero {
    padding-block: 80px 112px;
  }

  .hero::before {
    width: 520px;
    height: 520px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subcopy,
  .hero__emphasis {
    font-size: 1.125rem;
  }

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

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

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mid-cta__title {
    font-size: 2.25rem;
  }

  .target-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-list {
    flex-direction: row;
  }

  .flow-step {
    flex-direction: column;
  }

  .flow-step__indicator {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  .flow-step__connector {
    margin-top: 0;
    margin-left: 16px;
    width: auto;
    height: 1px;
    flex: 1;
  }

  .flow-step__content {
    padding-bottom: 0;
    padding-top: 16px;
  }

  .about-profile {
    grid-template-columns: 220px 1fr;
    padding: 40px;
  }

  .about-profile__photo {
    width: 100%;
  }

  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

