/* ========================================
   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: 1600px;
  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: 26px 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 var(--container-px);
  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: -20px;
  margin-top: -20px;
}

.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, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  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: 40px;
  max-width: 700px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.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: center;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

/* ========================================
   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.1rem, 2.2vw, 1.4rem);
  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.05rem;
}

.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;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  flex: 0 0 auto;
  /* FIXED: was 0 0 140px (fixed width) */
  min-width: 80px;
  max-width: 140px;
  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;
}

.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.15rem;
  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: 600px;
  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.2rem;
  color: var(--text-primary);
  padding: 30px 40px;
  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: 20px;
  margin-bottom: 40px;
}

.quality-card {
  text-align: center;
  padding: 32px 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 14px;
}

.quality-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-primary);
}

.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;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}

.comparison-table thead {
  background: #0f1b3d;
}

.comparison-table thead th,
.comparison-table thead th.comparison-table__highlight {
  color: #ffffff !important;
}

.comparison-table th {
  padding: 20px 28px;
  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;
}

.comparison-table td {
  padding: 22px 28px;
  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;
}

.strength-card {
  position: relative;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.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.15rem;
  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(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.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.25rem;
  /* 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;
}

/* ========================================
   USE CASES
   ======================================== */
.section--usecases {
  background: var(--bg-secondary);
}

.usecase-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  /* Increased from 1000px */
  margin: 0 auto;
}

.usecase-card {
  flex: 0 1 calc(33.333% - 24px);
  /* 3 columns base */
  min-width: 300px;
  background: #fff;
  padding: 40px 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: 850px;
  /* Increased from 700px */
  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;
}

.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(1.8rem, 7vw, 2.6rem);
    /* Controlled mobile size */
    letter-spacing: -0.01em;
    margin-bottom: 20px;
  }

  .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 scrollable === */
  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid var(--border-color);
  }

  /* 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 thumbnail next to tags */
  .hero__tags-image {
    width: 160px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: cover;
    margin-left: auto;
    margin-right: -30px;
    margin-top: -30px;
    align-self: flex-start;
  }

  .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 auto 20px;
    gap: 6px;
    display: inline-flex;
  }

  .hero__tags li {
    text-align: left;
  }

  /* Full-width CTA button on mobile */
  .btn--lg {
    width: 90%;
    max-width: 320px;
    justify-content: center;
    padding: 14px 20px;
    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 {
    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: Stacked Single-Column Cards ===== */
  .comparison-table-wrap {
    overflow: hidden;
    /* Clip table overflow */
    max-width: 100%;
    border: none;
    border-radius: 0;
    background: none;
  }

  .comparison-table {
    display: block;
    width: 100%;
    max-width: 100%;
    /* Override desktop max width */
    min-width: 0 !important;
    /* Override desktop min-width: 560px */
  }

  /* Hide original header row */
  .comparison-table thead {
    display: none;
  }

  /* Stack each row as a card */
  .comparison-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Each tr = a card with single column, 3 rows stacked */
  .comparison-table tbody tr {
    display: block;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  /* All td: full width, block */
  .comparison-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
    word-break: break-word;
    text-align: left;
  }

  .comparison-table td:last-child {
    border-bottom: none;
  }

  /* Category label row: dark header background */
  .comparison-table td.comparison-table__label {
    background: #f7fafc;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    padding: 8px 14px;
    border-bottom: 2px solid var(--border-color);
  }

  /* Label above general company cell */
  .comparison-table td:nth-child(2)::before {
    content: '一般的な制作会社';
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2px;
  }

  /* Label above AI Craft Works cell */
  .comparison-table td:nth-child(3)::before {
    content: 'AI Craft Works';
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 2px;
  }

  /* AI Craft Works row: blue highlight */
  .comparison-table td.comparison-table__highlight {
    background: #eef3ff;
    color: var(--accent-blue);
    border-left: 3px solid var(--accent-blue);
    padding-left: 11px;
    /* Compensate for 3px border */
  }

  /* Already set above, consolidate */
}