/* ========================================
   AI Craft Works LP — Style Sheet
   Matching ai-craft-school / ai-craft-reskilling design
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors — Corporate Blue Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #f0f4ff;
  --bg-card: #ffffff;

  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;

  --accent-blue: #3b55e6;
  --accent-blue-hover: #2a41c0;
  --accent-blue-light: #eff2fe;
  --accent-blue-shadow: rgba(59, 85, 230, 0.2);

  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e0;

  --gradient-rainbow: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  --gradient-cta: linear-gradient(135deg, #3b55e6, #2980b9);

  /* Spacing */
  --section-py: 140px;
  --container-px: 40px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Fonts */
  --font-main: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.text-danger {
  color: #ff3b30;
  font-weight: bold;
}

.text-accent {
  color: var(--accent-blue);
  font-weight: bold;
}

.text-marker {
  background: linear-gradient(transparent 60%, #fff3bf 60%);
  font-weight: 700;
  color: var(--text-primary) !important;
  padding: 0 2px;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

strong {
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.sp-only {
  display: none;
}

/* --- Utility --- */
.text-accent {
  color: var(--accent-blue);
}

/* --- Animation --- */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.anim-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  height: 100px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-rainbow);
  z-index: 1001;
}

.header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--accent-blue);
}

.header__cta {
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 4px;
  background: var(--accent-blue);
  color: #fff;
  transition: background 0.3s, transform 0.2s;
}

.header__cta:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Nav --- */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--accent-blue);
}

.mobile-nav__cta {
  margin-top: 16px;
  padding: 14px 36px;
  border-radius: 50px;
  background: var(--gradient-cta);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--accent-blue-shadow);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn--primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 10px 20px var(--accent-blue-shadow);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(59, 85, 230, 0.4);
}

.btn--lg {
  padding: 20px 48px;
  font-size: 1.2rem;
}

.btn__arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  padding: 60px 0 60px;
  background: #fff;
  overflow: hidden;
}

.hero__bg-effects {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__image {
  flex: 0 0 42%;
  max-width: 42%;
  margin-left: 0;
  margin-right: 0;
  align-self: flex-end;
}

.hero__image img {
  width: 100%;
  height: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(59, 85, 230, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 8px rgba(59, 85, 230, 0);
  }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: #000;
}

.hero__title-gradient {
  color: var(--accent-blue);
}

.hero__title-small {
  font-size: 0.75em;
  font-weight: 700;
}

.hero__sub {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 700px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero__tags li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero__tags li::before {
  content: '✓';
  color: #fff;
  background: var(--accent-blue);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}

.hero__cta-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 80px;
}

/* ========================================
   SECTIONS (generic)
   ======================================== */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--problems,
.section--why,
.section--comparison,
.section--flow,
.section--faq {
  background: var(--bg-secondary);
}

.section--why .section__heading {
  margin-bottom: 40px;
}

.section--service,
.section--quality {
  background: #ffffff;
}

.section--service .section__heading {
  margin-bottom: 30px;
  /* Reduced spacing between heading and card */
}

.section__heading {
  font-size: clamp(1.5rem, 5vw, 3.2rem);
  font-weight: 800;
  text-align: center;
  margin: 0 auto 60px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  white-space: normal;
  /* FIXED: was nowrap, caused overflow on mobile */
  word-break: break-word;
  position: relative;
  padding-bottom: 15px;
  width: fit-content;
  max-width: 100%;
  /* Prevent overflow */
}

.section__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 2px;
}

.section__heading .text-gradient {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  display: inline;
}

.section--results__wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
  position: relative;
}

.section--results__image {
  flex-shrink: 0;
  width: 40%;
  position: relative;
  left: -10%;
  /* Overlap to the left */
  z-index: 1;
}

.section--results__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section__lead {
  text-align: center;
  color: var(--text-secondary);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.8;
  max-width: 1100px;
  margin: 0 auto 60px;
}

/* ========================================
   PROBLEMS
   ======================================== */
.problem-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.problem-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}

.problem-list__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.problem-list__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue-light);
  border-radius: 50%;
}

.problem-cta {
  text-align: center;
}

.problem-cta__text {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.problem-cta__desc {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-accent {
  color: var(--accent-blue);
  font-weight: bold;
}

/* ========================================
   SERVICE OVERVIEW
   ======================================== */
.service-overview-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px clamp(20px, 5vw, 60px);
  /* FIXED: was 40px 60px, now responsive */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  max-width: 1000px;
  margin: 0 auto;
}

.service-overview-card strong {
  font-size: 1.15em;
}

.service-overview-card strong.text-accent {
  color: var(--accent-blue);
}

.service-overview__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-overview__text {
  max-width: 850px;
  margin-bottom: 30px;
  /* Reduced margin */
}

.service-overview__text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  /* Reduced margin */
  line-height: 1.6;
  font-size: 1.2rem;
}

.service-overview__points {
  margin: 32px 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.service-overview__points li {
  position: relative;
  padding-left: 32px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.service-overview__points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #fff;
  background: var(--accent-blue);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 2px;
}

.service-overview__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  /* Reduced padding */
  background: var(--bg-secondary);
  border-radius: 16px;
  width: 100%;
}

.service-visual-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  width: 140px;
  height: 140px;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-visual-card--highlight {
  border-top-color: #22c55e;
  background: #f0fdf4;
}

.service-visual-card__icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.service-visual-card__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-visual-card__connector {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* ========================================
   WHY CHEAP
   ======================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 36px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.why-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.why-card--old {
  border-top: 4px solid var(--text-muted);
}

.why-card--new {
  border-top: 4px solid var(--accent-blue);
  position: relative;
}

.why-card__badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--accent-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px var(--accent-blue-shadow);
}

.why-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.why-card__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.why-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  top: 2px;
}

.why-card--old .why-card__list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #e53e3e;
  font-weight: 700;
}

.why-card--new .why-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #38a169;
  font-weight: 700;
}

.why-result-wrapper {
  position: relative;
  max-width: 750px;
  margin: 40px auto 0;
}

.why-result-img {
  position: absolute;
  right: -20px;
  /* Move slightly more to the right to overlap the edge */
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: auto;
  opacity: 0.9;
  z-index: 3;
  pointer-events: none;
}

.why-result {
  text-align: center;
  font-size: 1.45rem;
  color: var(--text-primary);
  padding: 36px 48px;
  background: var(--accent-blue-light);
  border-radius: var(--radius-md);
  border-left: 6px solid var(--accent-blue);
  /* Moved back to left side */
  position: relative;
  z-index: 2;
}

/* ========================================
   QUALITY
   ======================================== */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.quality-card {
  text-align: center;
  padding: 48px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-blue);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

.quality-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.quality-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue-light);
  border-radius: 50%;
  margin: 0 auto 24px;
}

.quality-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

.quality-note {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

.quality-note p {
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
}

/* ========================================
   COMPARISON TABLE
   ======================================== */
.comparison-table-wrap {
  overflow-x: auto;
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  border: none;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
  table-layout: fixed;
}

.comparison-table th:nth-child(1),
.comparison-table td:nth-child(1) {
  width: 20%;
}

.comparison-table th:nth-child(2),
.comparison-table td:nth-child(2) {
  width: 40%;
}

.comparison-table th:nth-child(3),
.comparison-table td:nth-child(3) {
  width: 40%;
}

.comparison-table thead {
  background: #0f1b3d;
}

.comparison-table thead th {
  color: #ffffff !important;
}

.comparison-table thead th.comparison-table__highlight {
  color: #ffd700 !important;
}

.comparison-table th {
  padding: 20px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.04em;
}

.comparison-table th:last-child {
  border-right: none;
}

.comparison-table th:first-child {
  text-align: center;
}

.comparison-table th.comparison-table__highlight {
  background: #0f1b3d !important;
  font-size: 1.05rem;
  color: #ffd700;
}

.comparison-table td {
  padding: 22px 8px;
  color: var(--text-secondary);
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
}

.comparison-table td:last-child {
  border-right: none;
}

.comparison-table td:first-child {
  text-align: center;
}

.comparison-table__label {
  font-weight: 700;
  color: var(--text-primary) !important;
}

.comparison-table__highlight {
  background: #eef3ff !important;
  color: var(--accent-blue) !important;
}

.comparison-table td.comparison-table__highlight strong {
  color: var(--accent-blue);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background: rgba(59, 85, 230, 0.03);
}

/* Icons */
.ct-icon {
  font-weight: 700;
  margin-right: 4px;
}

.ct-icon--x {
  color: #e53e3e;
}

.ct-icon--o {
  color: #38a169;
}

.ct-icon--tri {
  color: #dd9a00;
}

.comparison-note {
  text-align: center;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-primary);
  line-height: 1.8;
  margin-top: 40px;
}

/* ========================================
   STRENGTHS
   ======================================== */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

.strength-card {
  position: relative;
  padding: 40px 28px 28px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.strength-card:nth-child(1) {
  background: #f0f7ff;
  /* Very Light Blue */
  border: 1px solid #dbeafe;
  border-top: 4px solid var(--accent-blue);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.strength-card:nth-child(2) {
  background: #e1efff;
  /* Soft Blue (More distinct) */
  border: 1px solid #c3d9fb;
  border-top: 4px solid var(--accent-blue);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.strength-card:nth-child(3) {
  background: #d2e7ff;
  /* Deeper Blue tint */
  border: 1px solid #b7d1f8;
  border-top: 4px solid var(--accent-blue);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
}

.strength-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.strength-card__number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #f0f4ff;
  line-height: 1;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
  -webkit-text-stroke: 1px #cbd5e0;
}

.strength-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.strength-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   FLOW / TIMELINE
   ======================================== */
.flow-timeline {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  /* Increased gap */
  max-width: 1100px;
  /* Increased from 900px */
  margin: 0 auto 48px;
  /* Increased bottom margin */
  position: relative;
}

.flow-timeline::before {
  display: none;
}

.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '▶';
  position: absolute;
  top: 32px;
  /* Adjusted for larger number */
  right: -25px;
  /* Adjusted gap */
  transform: translateX(50%);
  color: #cbd5e0;
  font-size: 1.4rem;
  /* Slightly larger arrow */
  z-index: 2;
}

.flow-step__number {
  width: 72px;
  /* Increased from 56px */
  height: 72px;
  border-radius: 50%;
  background: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  /* Increased from 1.2rem */
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  margin-bottom: 24px;
  /* Increased margin */
  box-shadow: 0 4px 10px var(--accent-blue-shadow);
}

.flow-step__content {
  background: #fff;
  padding: 20px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  width: 100%;
  flex: 1;
  /* Stretch to fill height */
  display: flex;
  flex-direction: column;
}

.flow-step__content h3 {
  font-size: 1.25rem;
  /* Increased from 1rem */
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.flow-step__content p {
  font-size: 1rem;
  /* Increased from 0.85rem */
  color: var(--text-secondary);
  line-height: 1.6;
}

.flow-note {
  max-width: 900px;
  /* Increased from 700px */
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  /* Increased from 0.85rem */
  color: var(--text-muted);
  line-height: 1.7;
  background: #fffaf0;
  border: 1px solid #fbd38d;
  padding: 16px 24px;
  /* Increased padding */
  border-radius: 20px;
  display: inline-block;
}

.section--flow .container {
  text-align: center;
}

/* ========================================
   SERVICES LIST
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.service-item {
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-blue);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-item__icon {
  font-size: 3rem;
  /* Increased from 2.5rem */
  margin-bottom: 20px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue-light);
  border-radius: 50%;
  margin: 0 auto 14px;
}

.service-item h4 {
  font-size: 1.4rem;
  /* Increased from 1.1rem */
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.services-note {
  text-align: center;
  font-size: 1rem;
  /* Increased from 0.9rem */
  color: var(--text-muted);
  margin-top: 32px;
  margin-bottom: 60px;
}

/* ========================================
   PRODUCTIONS GRID
   ======================================== */
.productions-area {
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

.productions__heading {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.productions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.production-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

.production-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.production-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .productions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .productions-area {
    margin-top: 40px;
    padding-top: 40px;
  }
}

/* ========================================
   USE CASES
   ======================================== */
.section--usecases {
  background: var(--bg-secondary);
}

.usecase-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  /* Reduced from 1200px to bring cards closer */
  margin: 0 auto;
}

.usecase-card {
  flex: 0 1 280px;
  /* Narrower to be closer to square */
  min-width: 240px;
  background: #fff;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.usecase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.usecase-card__icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.usecase-card p {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ========================================
   FAQ
   ======================================== */
.section--faq {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 750px;
  /* Reduced from 850px to make it narrower */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Increased from 12px */
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  /* Increased from 20px 22px */
  background: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1.15rem;
  /* Increased from 0.95rem */
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.2s;
}

.faq-item__question:hover {
  background: var(--bg-secondary);
}

.faq-item__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.faq-item.is-open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 28px;
}

.faq-item.is-open .faq-item__answer {
  max-height: 400px;
  /* Increased from 200px to accommodate larger text */
  padding-bottom: 24px;
}

.faq-item__answer p {
  font-size: 1.05rem;
  /* Increased from default */
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   FINAL CTA
   ======================================== */
.section--cta {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.cta-box {
  text-align: center;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 4vw, 60px);
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  max-width: 850px;
  margin: 0 auto;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-rainbow);
}

.cta-box__heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: var(--text-primary);
}

.cta-box__heading .text-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--accent-blue);
}

.cta-box__text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.cta-box__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #020c1b;
  padding: 40px 0 20px;
  /* Reduced vertical padding */
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  /* Reduced gap */
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  /* Reduced gap */
  margin-bottom: 10px;
  /* Reduced margin */
}

.footer__logo img {
  height: 120px;
  /* Further enlarged */
  width: auto;
  border-radius: 8px;
}

.footer__company {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  border: none !important;
  /* Explicitly remove any border */
  text-decoration: none !important;
}

.footer__tagline {
  font-size: 0.85rem;
  color: #8899bb;
  margin: 0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  /* Reduced margin */
  font-size: 0.9rem;
}

.footer__links a {
  color: #8899bb;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__links span {
  color: #2d3748;
}

.footer__copy {
  margin-top: 20px;
  font-size: 0.85rem;
  color: #4a5568;
}

.footer__links a {
  font-size: 0.8rem;
  color: #8899bb;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__copy {
  font-size: 0.8rem;
  color: #555;
}

/* ========================================
   ANIMATIONS
   ======================================== */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  :root {
    --section-py: 40px;
    --container-px: 16px;
  }

  .header {
    height: 60px;
  }

  .header__inner {
    padding: 0 20px;
  }

  /* === Hero Polish === */
  .hero {
    padding: 20px 0 40px;
  }

  .hero__badge {
    font-size: 0.8rem;
    /* Smaller badge text */
    margin-bottom: 14px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 9vw, 3rem);
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    text-wrap: balance;
  }
  .hero__title br {
    display: none;
  }

  .hero__title .sp-br {
    display: block;
  }
  .hero__title-last {
    white-space: nowrap;
  }

  .hero__sub {
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-align: center;
  }

  .hero__tags {
    justify-content: flex-start;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    margin: 0 auto 28px;
  }

  .hero__cta-wrapper {
    margin-top: -20px;
  }

  /* === Section heading polish === */
  .section__heading {
    margin-bottom: 28px;
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
    padding-bottom: 10px;
  }

  .section__heading::after {
    width: 50px;
    /* Shorter accent line on mobile */
    left: 50%;
    transform: translateX(-50%);
  }

  /* Section lead text */
  .section__lead {
    font-size: 0.9rem;
    margin-bottom: 28px;
    line-height: 1.7;
  }

  /* === Service overview card === */
  .service-overview-card {
    border-radius: 16px;
    padding: 28px 20px;
  }

  /* === Why grid === */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* === Quality grid === */
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* === Strength grid === */
  .strengths-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* === Services grid === */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* === Flow === */
  .flow-timeline {
    flex-direction: column;
    align-items: stretch;
    /* Full width steps */
    gap: 24px;
  }

  .flow-step {
    width: 100%;
    max-width: 100%;
    /* Remove max-width constraint */
  }

  .flow-step:not(:last-child)::after {
    content: '▼';
    top: auto;
    bottom: -18px;
    right: 50%;
    transform: translateX(50%);
    font-size: 1rem;
  }

  .flow-note {
    font-size: 0.85rem;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 8px;
  }

  /* === Use cases === */
  .usecase-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .usecase-card {
    flex: 1 1 100%;
    width: 100%;
    min-width: unset;
    padding: 24px 18px;
    border-left-width: 4px;
    /* Slightly thinner accent border */
  }

  /* Service visual cards — wrap nicely */
  .service-overview__visual {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    justify-content: center;
  }

  /* === Comparison table: card layout on mobile === */
  .comparison-table-wrap {
    overflow: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  /* Why result wrapper full width */
  .why-result-wrapper {
    max-width: 100%;
    padding: 0;
  }

  /* FAQ max width */
  .faq-list {
    max-width: 100%;
  }

  /* === Core responsive toggles === */
  .hero__inner {
    flex-direction: column;
    text-align: left;
    padding-left: 24px;
    padding-right: 20px;
  }

  .hero__image {
    display: none;
  }

  /* Tags + small image: flex row layout on mobile */
  .hero__tags-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  /* SP-only hero image: above CTA button */
  .hero__tags-image.sp-only {
    display: block;
    width: 200px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin: 4px auto 0;
  }

  .hero__tags li {
    font-size: 0.72rem;
    gap: 5px;
  }

  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__menu-btn {
    display: flex;
  }

  .header__logo img {
    height: 32px;
  }

  .sp-only {
    display: inline;
  }
}


@media (max-width: 600px) {
  :root {
    --section-py: 36px;
    /* Further reduced */
    --container-px: 14px;
  }

  body {
    font-size: 13px;
    /* Smaller base  */
    overflow-wrap: break-word;
  }

  .hero {
    padding: 32px 0 24px;
    /* Reduced */
  }

  .hero__tags {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 0 20px 0;
    padding-left: 0;
    gap: 6px;
    display: flex;
    width: fit-content;
  }

  .hero__tags-row {
    margin-left: 0;
    padding-left: 0;
    justify-content: flex-start;
  }

  .hero__tags li {
    text-align: left;
  }

  /* Full-width CTA button on mobile */
  .btn--lg {
    width: auto;
    min-width: 200px;
    max-width: 260px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .hero__cta-wrapper {
    margin-top: -10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Hide low-price image on mobile */
  .why-result-img {
    display: none;
  }

  /* === Natural line breaks: hide PC-specific <br> on mobile === */
  /* Strength cards: full-width on mobile, br creates awkward short lines */
  .strength-card__desc br {
    display: none;
  }

  /* Flow steps: full-width on mobile, br creates awkward breaks */
  .flow-step__content p br {
    display: none;
  }

  /* Service overview description text */
  .service-overview__text p br {
    display: none;
  }
  /* 「システム開発は行わず、」後の改行は表示 */
  .service-overview__text p .sp-br {
    display: block;
  }

  .service-overview__text p {
    font-size: 0.875rem;
    /* Smaller than desktop 1.05rem: more chars per line */
    word-break: auto-phrase;
    /* Break at natural phrase boundaries, not mid-katakana */
    overflow-wrap: break-word;
  }

  /* === Problems Section === */
  .problem-list {
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 10px;
    margin-bottom: 32px;
  }

  .problem-list__item {
    flex-direction: row;
    /* Keep icon + text side by side */
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    word-break: break-word;
  }

  .problem-list__icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .section__heading {
    font-size: 1.2rem;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 24px;
  }

  /* === Quality Section === */
  .quality-grid {
    grid-template-columns: 1fr;
    /* Single column on mobile */
    gap: 12px;
    margin-bottom: 24px;
  }

  .quality-note {
    text-wrap: balance;
    /* Balance lines evenly to prevent orphan chars */
  }

  .quality-note p {
    font-size: 0.9rem;
    line-height: 1.7;
    text-wrap: balance;
  }

  /* ===== Comparison Table: Card Layout ===== */
  .comparison-table-wrap {
    overflow: visible;
    max-width: 100%;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    margin-bottom: 24px;
  }

  /* table要素のデフォルト挙動を完全解除 */
  .comparison-table {
    display: block;
    width: 100%;
    min-width: 0 !important;
    table-layout: auto;
    border-collapse: separate;
  }

  /* ヘッダー行を非表示 */
  .comparison-table thead {
    display: none;
  }

  /* tbody: blockコンテナとして扱う（flexではなくblock） */
  .comparison-table tbody {
    display: block;
    width: 100%;
  }

  /* 各tr = flexカード（wrap で2行レイアウト） */
  .comparison-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: #fff;
    margin-bottom: 12px;
    box-sizing: border-box;
  }

  .comparison-table tbody tr:last-child {
    margin-bottom: 0;
  }

  /* 全tdのデフォルト（table-cellを完全解除） */
  .comparison-table td {
    display: block;
    flex: 0 0 50%;
    width: 50%;
    padding: 10px 12px;
    border: none;
    border-right: 1px solid #f0f0f0;
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.6;
    word-break: break-word;
    box-sizing: border-box;
  }

  .comparison-table td:last-child {
    border-right: none;
  }

  /* 比較項目ラベル：カード全幅のヘッダー行 */
  .comparison-table td.comparison-table__label {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    background: #0f1b3d;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 14px;
    text-align: center;
    border: none;
  }

  /* 列名ラベル（::before） */
  .comparison-table td:nth-child(2)::before {
    content: '一般的な制作会社';
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .comparison-table td:nth-child(3)::before {
    content: 'AI Craft Works';
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 4px;
  }

  /* AI Craft Works 列：青ハイライト */
  .comparison-table td.comparison-table__highlight {
    background: #eef3ff;
    color: var(--accent-blue);
    border-left: 2px solid var(--accent-blue);
  }
}

/* ========================================
   MOBILE NATIVE REDESIGN
   スマホネイティブなデザインへの全面ブラッシュアップ
   ※ PC（min-width: 901px）は一切変更しない
   ======================================== */

/* ─── タブレット〜スマホ共通 (〜900px) ─── */
@media (max-width: 900px) {

  /* 見出し: 均等な折り返し */
  .section__heading,
  .cta-box__heading,
  .hero__title,
  .section__lead {
    text-wrap: balance;
    word-break: auto-phrase;
  }

  /* ヒーローバッジ: ピル型に */
  .hero__badge {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    background: var(--accent-blue-light);
    border: 1px solid rgba(59, 85, 230, 0.2);
    border-radius: 20px;
    padding: 5px 14px;
    white-space: normal;
    word-break: keep-all;
  }

  /* 強みカード: 固定高さを解除 → 横並びレイアウト */
  .strength-card {
    height: auto;
    min-height: auto;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "num title"
      "num desc";
    align-items: start;
    justify-content: start;
    column-gap: 16px;
    row-gap: 4px;
    padding: 20px 20px;
    text-align: left;
  }
  .strength-card__number {
    grid-area: num;
    font-size: 2.4rem;
    margin-bottom: 0;
    align-self: center;
    justify-self: center;
  }
  .strength-card__title {
    grid-area: title;
    font-size: 1rem;
    margin-bottom: 0;
    text-wrap: balance;
  }
  .strength-card__desc {
    grid-area: desc;
    font-size: 0.85rem;
    line-height: 1.6;
    text-wrap: balance;
  }

  /* クオリティカード: 横並びレイアウト */
  .quality-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 18px 20px;
    gap: 16px;
  }
  .quality-card__icon {
    flex-shrink: 0;
    margin: 0;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
  .quality-card h4 {
    font-size: 0.93rem;
    text-wrap: balance;
    word-break: auto-phrase;
  }

  /* フロー: 縦方向タイムライン */
  .flow-timeline {
    gap: 0;
    margin-bottom: 32px;
  }
  .flow-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding-bottom: 28px;
  }
  /* 縦の接続線 */
  .flow-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    width: 2px;
    height: calc(100% - 56px);
    background: var(--border-color);
    right: auto;
    bottom: auto;
    transform: none;
    font-size: 0;
  }
  .flow-step__number {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .flow-step__content {
    padding: 14px 16px;
    flex: 1;
  }
  .flow-step__content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    text-wrap: balance;
  }
  .flow-step__content p {
    font-size: 0.88rem;
  }

  /* ユースケースカード: 横並びレイアウト */
  .usecase-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 16px 20px;
    gap: 16px;
  }
  .usecase-card__icon {
    font-size: 1.8rem;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 36px;
  }
  .usecase-card p {
    font-size: 0.95rem;
    text-wrap: balance;
    word-break: auto-phrase;
  }

  /* テキスト折り返し共通 */
  .problem-cta__text,
  .problem-cta__desc,
  .why-result,
  .comparison-note,
  .flow-note,
  .cta-box__text,
  .cta-box__sub,
  .quality-note p {
    text-wrap: balance;
    word-break: auto-phrase;
  }
}

/* ─── スマホ専用 (〜600px) ─── */
@media (max-width: 600px) {

  /* ベースフォントを読みやすいサイズに修正 (13px→15px) */
  body {
    font-size: 15px;
    overflow-wrap: break-word;
  }

  /* セクション見出し */
  .section__heading {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    text-wrap: balance;
    word-break: auto-phrase;
    margin-bottom: 20px;
  }

  /* 「こんな不安はありませんか？」：長いので1行に収める */
  .section--problems .section__heading {
    font-size: 1.0rem;
    white-space: nowrap;
  }

  /* sp-only br を非表示 */
  .problem-list__item span br:not(.sp-br),
  .section--quality .section__heading br,
  .hero__sub br:not(.sp-br),
  .usecase-card p br {
    display: none;
  }

  .hero__sub .sp-br {
    display: block;
  }

  /* problem-list 内の sp-br は表示 */
  .problem-list__item span .sp-br {
    display: block;
  }

  /* ── ヒーローバッジ ── */
  .hero__badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    letter-spacing: 0;
  }

  /* ── ヒーロー サブテキスト ── */
  .hero__sub {
    font-size: 0.9rem;
    text-wrap: balance;
  }

  /* ── 課題 CTA テキスト ── */
  .problem-cta__text {
    font-size: 1rem;
    line-height: 1.7;
    text-wrap: balance;
  }
  .problem-cta__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    text-wrap: balance;
  }

  /* ── 課題リストアイテム ── */
  .problem-list__item {
    padding: 12px 14px;
    font-size: 0.92rem;
  }
  .problem-list__icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* ── サービス概要カード ── */
  .service-overview-card {
    padding: 22px 16px;
    border-radius: 16px;
  }
  .service-overview__text p {
    font-size: 0.9rem;
    text-wrap: balance;
    word-break: auto-phrase;
  }
  .service-overview__points {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin: 16px auto;
    gap: 8px;
  }
  /* タグ：チェックマークとテキストの間隔を縮める */
  .service-overview__points li {
    font-size: 0.88rem;
    padding-left: 20px;
  }
  .service-overview__points li::before {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
  }
  /* 絵文字図：横3列に並べる */
  .service-overview__visual {
    flex-wrap: nowrap;
    gap: 4px;
    padding: 12px 8px;
  }
  .service-visual-card {
    width: 90px;
    height: 90px;
    padding: 10px;
    border-radius: 10px;
  }
  .service-visual-card__icon {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }
  .service-visual-card__label {
    font-size: 0.55rem;
  }
  .service-visual-card__connector {
    font-size: 0.9rem;
  }

  /* ── なぜ低単価カード ── */
  .why-card {
    padding: 18px 16px;
  }
  .why-card__title {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .why-card__list li {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }
  .why-result {
    font-size: 0.95rem;
    padding: 18px 20px;
    text-wrap: balance;
  }

  /* ── 強みカード (900px で横並び済み。さらに縮小) ── */
  .strength-card {
    grid-template-columns: 48px 1fr;
    padding: 16px 14px;
    column-gap: 12px;
  }
  .strength-card__number {
    font-size: 2rem;
  }
  .strength-card__title {
    font-size: 0.93rem;
  }
  .strength-card__desc {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  /* ── クオリティカード ── */
  .quality-card {
    padding: 14px 14px;
    gap: 12px;
  }
  .quality-card__icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .quality-card h4 {
    font-size: 0.88rem;
  }
  .quality-note p {
    font-size: 0.88rem;
    text-wrap: balance;
    line-height: 1.7;
  }

  /* ── フロー ── */
  .flow-step__content {
    padding: 12px 14px;
  }
  .flow-step__content h3 {
    font-size: 0.95rem;
  }
  .flow-step__content p {
    font-size: 0.84rem;
    line-height: 1.6;
  }
  .flow-step__number {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .flow-step:not(:last-child)::after {
    left: 23px;
    top: 48px;
  }
  .flow-note {
    font-size: 0.82rem;
    padding: 10px 14px;
    text-wrap: balance;
  }

  /* ── 提供サービス ── */
  .service-item {
    padding: 18px 12px;
  }
  .service-item h4 {
    font-size: 0.88rem;
    line-height: 1.5;
  }
  .service-item__icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  .services-note {
    font-size: 0.82rem;
    margin-top: 16px;
    margin-bottom: 32px;
  }

  /* 制作例 1カラム */
  .productions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* ── ユースケースカード ── */
  .usecase-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .usecase-card__icon {
    font-size: 1.6rem;
    width: 32px;
  }
  .usecase-card p {
    font-size: 0.9rem;
    font-weight: 600;
    text-wrap: balance;
  }

  /* ── 比較テーブル ── */
  .comparison-table td {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
  .comparison-table td.comparison-table__label {
    font-size: 0.8rem;
    padding: 7px 10px;
  }
  .comparison-note {
    font-size: 0.88rem;
    text-wrap: balance;
    line-height: 1.7;
  }

  /* ── FAQ ── */
  .faq-item__question {
    font-size: 0.92rem;
    padding: 16px 14px;
  }
  .faq-item__answer {
    padding: 0 14px;
  }
  .faq-item__answer p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  /* ── CTA ── */
  .cta-box {
    padding: 32px 18px;
  }
  .cta-box__text {
    font-size: 0.92rem;
    text-wrap: balance;
  }
  .cta-box__sub {
    font-size: 0.88rem;
    text-wrap: balance;
  }

  /* ── 登録フォーム ── */
  .lp-reg-section {
    padding: 1rem;
  }
  .lp-reg-form label {
    font-size: 0.82rem;
  }

  /* ── フッター ── */
  .footer__links {
    flex-direction: column;
    gap: 6px;
  }
  .footer__links > span {
    display: none;
  }
}