/* ========================================
   KSPレンズ Landing Page
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 112.5%; /* 18px base */
}

body {
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

strong {
  font-weight: 700;
}

/* --- Custom Properties --- */
:root {
  --primary: #EB580F;
  --primary-dark: #D04E0D;
  --primary-light: #FF6A1F;
  --primary-bg: #FFF7F2;
  --primary-bg-subtle: #FFFBF8;

  --text-primary: #1A1A1A;
  --text-secondary: #3A3A3A;
  --text-muted: #7A7A7A;
  --text-on-dark: #EDEDEC;
  --text-on-dark-muted: #999998;

  --bg-white: #FFFFFF;
  --bg-warm: #F0EDE5;
  --bg-warm-alt: #E9E5DC;
  --bg-dark: #1A1A1A;
  --bg-dark-alt: #222222;

  --border: #DDD9D0;
  --border-light: #E8E4DC;

  --font-display: 'Shippori Antique', sans-serif;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;

  --section-py: clamp(5rem, 10vw, 8rem);
  --container-max: 1080px;
  --container-px: clamp(1.25rem, 5vw, 2rem);

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--warm {
  background: var(--bg-warm);
}

.section--warm::before,
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section--warm > .container,
.section--dark > .container {
  position: relative;
  z-index: 1;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

/* --- Section-specific backgrounds & textures --- */
#problem {
  background: #EBE5D9;
}

#problem::before {
  background: url('../images/texture-noise.png') repeat;
  background-size: 200px;
  opacity: 0.04;
}

#features {
  background: #F3F2EE;
}

#comparison {
  background: #E7E2D7;
}

#comparison::before {
  background: url('../images/texture-dots.png') repeat;
  background-size: 200px;
  opacity: 0.05;
}


#about {
  background: #ECE9E2;
}

#about::before {
  background: url('../images/texture-grain.png') repeat;
  background-size: 150px;
  opacity: 0.04;
}

.section--dark::before {
  background: url('../images/texture-noise.png') repeat;
  background-size: 200px;
  opacity: 0.03;
}

/* --- Typography Helpers --- */
.text-accent {
  color: var(--primary);
}

.title-accent {
  background:
    linear-gradient(180deg, #22B5A2, #12756A),
    linear-gradient(to top, transparent 0.05em, #A8DDD5 0.05em, #A8DDD5 0.3em, transparent 0.3em);
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  padding: 0 0.05em;
}

.marker {
  background: linear-gradient(transparent 65%, rgba(235, 88, 15, 0.15) 65%);
  padding: 0 0.05em;
}

.hide-sp {
  display: none;
}

@media (min-width: 768px) {
  .hide-sp {
    display: inline;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
}

.btn--primary:hover {
  background: #fff;
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(235, 88, 15, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.section--dark .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.section--dark .btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--outline:hover {
  background: var(--primary-bg);
  transform: translateY(-2px);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

.btn--lg {
  font-size: 0.9375rem;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius-md);
}

/* --- Link Arrow --- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: gap 0.3s var(--ease-out);
}

.link-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover {
  text-decoration: none;
}

.link-arrow:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* --- Section Headers --- */
.section__header {
  margin-bottom: 2rem;
}

.section__accent-line {
  display: block;
  position: relative;
  width: 32px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.section__accent-line::after {
  content: '';
  position: absolute;
  right: -13px;
  top: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.45;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.section__title-logo {
  height: 0.75em;
  width: auto;
  vertical-align: baseline;
  display: inline;
}

.section--dark .section__title {
  color: var(--text-on-dark);
}

.section__lead {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.section__sub-lead {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.875rem var(--container-px);
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 28px;
  width: auto;
}


.header__nav {
  display: none;
  gap: 2rem;
}

.header__nav-link {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width 0.3s var(--ease-out);
}

.header__nav-link:hover {
  color: var(--text-primary);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__cta {
  display: none;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
  z-index: 99;
}

.header__mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.header__mobile-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.header__mobile-menu.is-open .header__mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.header__mobile-menu.is-open .header__mobile-link:nth-child(1) { transition-delay: 0.1s; }
.header__mobile-menu.is-open .header__mobile-link:nth-child(2) { transition-delay: 0.15s; }
.header__mobile-menu.is-open .header__mobile-link:nth-child(3) { transition-delay: 0.2s; }
.header__mobile-menu.is-open .header__mobile-link:nth-child(4) { transition-delay: 0.25s; }

.header__mobile-cta {
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out) 0.3s, transform 0.3s var(--ease-out) 0.3s,
              background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.header__mobile-menu.is-open .header__mobile-cta {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  }

  .header__cta.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header__hamburger {
    display: none;
  }
}

/* ========================================
   Hero
   ======================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(170deg, #FFFFFF 0%, #FAF9F6 100%);
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 2rem;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.hero__lens-circle {
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  border: 1px solid rgba(235, 88, 15, 0.06);
  top: 50%;
  right: -12vw;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__lens-circle--sm {
  width: 35vw;
  height: 35vw;
  max-width: 460px;
  max-height: 460px;
  right: -5vw;
  border-color: rgba(235, 88, 15, 0.04);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.4;
  letter-spacing: -0.06em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero__kw--primary {
  background:
    linear-gradient(180deg, #22B5A2, #12756A),
    linear-gradient(to top, transparent 0.06em, #A8DDD5 0.06em, #A8DDD5 0.34em, transparent 0.34em);
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  padding: 0 0.05em;
  background-size: 100% 100%, 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0, left center;
}

.hero__kw--secondary {
  background:
    linear-gradient(180deg, #22B5A2, #12756A),
    linear-gradient(to top, transparent 0.06em, #A8DDD5 0.06em, #A8DDD5 0.34em, transparent 0.34em);
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  padding: 0 0.05em;
  background-size: 100% 100%, 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0, left center;
}

.hero__title .text-accent {
  background:
    linear-gradient(180deg, #F59035, #D14A0B),
    linear-gradient(to top, transparent 0.06em, #F5CBAA 0.06em, #F5CBAA 0.34em, transparent 0.34em);
  -webkit-background-clip: text, padding-box;
  background-clip: text, padding-box;
  -webkit-text-fill-color: transparent;
  padding: 0 0.05em;
  background-size: 100% 100%, 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0, left center;
}

@keyframes highlighter-draw {
  to {
    background-size: 100% 100%, 100% 100%;
  }
}

.hero__title.is-visible .hero__kw--primary {
  animation: highlighter-draw 0.5s var(--ease-out) 0.35s forwards;
}

.hero__title.is-visible .hero__kw--secondary {
  animation: highlighter-draw 0.4s var(--ease-out) 0.5s forwards;
}

.hero__title.is-visible .text-accent {
  animation: highlighter-draw 0.4s var(--ease-out) 0.6s forwards;
}

.hero__subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero__cta-btn {
  font-size: 1rem;
  padding: 1rem 2.75rem;
}


/* ========================================
   Problem Section
   ======================================== */
.pain-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.pain-card {
  background: var(--bg-white);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1.75rem;
  border-left: 3px solid var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.pain-card__icon {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  color: var(--primary);
  background: var(--primary-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pain-card__icon svg {
  width: 100%;
  height: 100%;
}

.pain-card__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.problem__conclusion {
  text-align: center;
  padding: 1.5rem 0 0;
}

.problem__conclusion p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.problem__emphasis {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.problem__emphasis .marker {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

.problem__bridge {
  font-size: 1.125rem;
  line-height: 2;
  color: var(--text-primary);
}

.problem__bridge .text-accent {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

@media (min-width: 768px) {
  .pain-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .pain-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 2rem 1.5rem;
    border-left: none;
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
}

/* ========================================
   Bridge CTA
   ======================================== */
.section--bridge {
  padding: 3rem 0;
  background: var(--primary-bg);
  border-top: 1px solid rgba(235, 88, 15, 0.08);
  border-bottom: 1px solid rgba(235, 88, 15, 0.08);
}

.bridge__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.bridge__text {
  text-align: center;
}

.bridge__lead {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.bridge__message {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-feature-settings: "palt";
}

.bridge__emphasis {
  background: #FFFFFF;
  color: #3F3D8C;
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.bridge__visual {
  display: flex;
  justify-content: center;
}

.bridge__mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
  border: 1px solid #ebe3d9;
}

.bridge__mockup-bar,
.cta-mid__mockup-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.4rem 0.5rem;
  background: #faf5f0;
  border-bottom: 1px solid #ebe3d9;
}

.mockup-bar__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-bar__btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd5cb;
}

.mockup-bar__btn--close {
  background: #d4c4b4;
}

.bridge__mockup-screen {
  aspect-ratio: 16 / 10;
  background: #f9fafb;
  overflow: hidden;
}

.bridge__mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

@media (min-width: 768px) {
  .bridge__layout {
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
  }

  .bridge__text {
    text-align: left;
  }
}

/* ========================================
   Features (Signs)
   ======================================== */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #F8F7F3;
}

.feature__check {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
}

.feature__check svg {
  width: 13px;
  height: 13px;
}

.feature__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 0.625rem;
  font-feature-settings: "palt";
}

.feature__desc {
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    column-gap: 1.25rem;
    row-gap: 0;
  }

  .feature {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
  }

  .feature__body {
    display: contents;
  }
}


/* ========================================
   Before / After
   ======================================== */
.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.comparison__card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
}

.comparison__card--before {
  background: #F5EEEB;
  border: 1px solid #E0D2CC;
}

.comparison__card--after {
  background: #EEF1F6;
  border: 1px solid rgba(59, 89, 133, 0.12);
}

.comparison__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #9C7065;
}

.comparison__label--accent {
  background: #3B5985;
  color: #fff;
}

.comparison__lead {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.comparison__list li {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.375rem;
}

.comparison__card--before .comparison__list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #B0A8A0;
}

.comparison__card--after .comparison__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #3B5985;
}

.comparison__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.comparison__divider-logo {
  width: 112px;
  height: auto;
  background: var(--bg-white);
  padding: 0.375rem 0.75rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.comparison__divider-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(235, 88, 15, 0.25);
}

.comparison__arrow {
  color: #fff;
  transform: rotate(90deg);
  width: 36px;
  height: 36px;
}

@media (min-width: 768px) {
  .comparison {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 2rem;
  }

  .comparison__arrow {
    transform: rotate(0);
  }

  .comparison__divider {
    padding: 0;
    align-self: center;
  }

  .comparison__divider-circle {
    width: 64px;
    height: 64px;
  }
}

/* ========================================
   Design Philosophy (Pillars)
   ======================================== */
.pillars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pillar {
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  text-align: center;
  width: 100%;
  transition: box-shadow 0.3s var(--ease-out);
}

.pillar:hover {
  box-shadow: var(--shadow-md);
}

.pillar__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar__step {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.pillar__desc {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: left;
}

.pillar__connector {
  color: var(--border);
  transform: rotate(90deg);
}

.pillars__conclusion {
  text-align: center;
  padding: 1.5rem 0 0;
}

.pillars__conclusion-lead {
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.pillars__conclusion-emphasis {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.pillars__conclusion-emphasis .text-accent {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

@media (min-width: 768px) {
  .pillars {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
  }

  .pillar {
    flex: 1;
  }

  .pillar__connector {
    transform: rotate(0);
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
}

/* ========================================
   Filter Examples (sub-section of Design)
   ======================================== */
.filters-subsection {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.filters-subsection__title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.filter-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.filter-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}

.filter-card__category {
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-feature-settings: "palt";
}

.filter-card__body {
  flex: 1;
  padding: 0 1.5rem 1.25rem;
  background: var(--bg-warm);
}

/* カテゴリ別配色（ネガティブ：文字色→背景色、白文字） */
.filter-card--trend .filter-card__header { background: #EB580F; color: #fff; }
.filter-card--trend .filter-card__category { color: #fff; }

.filter-card--flavor .filter-card__header { background: #B5540E; color: #fff; }
.filter-card--flavor .filter-card__category { color: #fff; }

.filter-card--standard .filter-card__header { background: #6B7280; color: #fff; }
.filter-card--standard .filter-card__category { color: #fff; }

.filter-card--menu .filter-card__header { background: #92630D; color: #fff; }
.filter-card--menu .filter-card__category { color: #fff; }

.filter-card__desc {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.filter-card__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.filter-card__examples li {
  font-size: 0.75rem;
  background: var(--bg-white);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  color: var(--text-secondary);
}

.filter-card__more {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* ========================================
   Product Visuals
   ======================================== */
.visuals__mockup {
  margin-bottom: 2.5rem;
}

.mockup-laptop {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.mockup-laptop__top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: var(--bg-dark-alt);
}

.mockup-laptop__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-laptop__screen {
  aspect-ratio: 16 / 10;
  background: #2A2A2A;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-laptop__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.2);
}

.mockup-laptop__placeholder span {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.mockup-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}

.mockup-dot--active {
  background: var(--primary);
}

.visuals__action {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}

.visuals__caption {
  text-align: center;
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--text-secondary);
}

.visuals__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

/* ========================================
   Screenshot Modal & Carousel
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  width: 95vw;
  max-width: 1000px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease-out-expo);
}

.modal.is-open .modal__content {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  flex: 1;
  min-width: 0;
}

.carousel__track {
  display: flex;
  transition: transform 0.4s var(--ease-out-expo);
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel__img-wrapper {
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.carousel__img-wrapper::-webkit-scrollbar {
  width: 6px;
}

.carousel__img-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.carousel__img-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 3px;
}

.carousel__img {
  width: 100%;
  display: block;
}

.carousel__caption {
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.carousel__btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.carousel__btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel__dot--active {
  background: var(--primary);
}

/* ========================================
   Mid CTA
   ======================================== */
.section--cta-mid {
  padding: 3rem 0;
  background: var(--primary-bg);
  border-top: 1px solid rgba(235, 88, 15, 0.08);
  border-bottom: 1px solid rgba(235, 88, 15, 0.08);
}

.cta-mid__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.cta-mid__text {
  text-align: center;
}

.cta-mid__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.cta-mid__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.cta-mid__visual {
  display: flex;
  justify-content: center;
}

.cta-mid__mockup {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
  border: 1px solid #ebe3d9;
}

.cta-mid__mockup-screen {
  aspect-ratio: 16 / 10;
  background: #f9fafb;
  overflow: hidden;
}

.cta-mid__mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

@media (min-width: 768px) {
  .cta-mid__layout {
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
  }

  .cta-mid__text {
    text-align: left;
  }
}

/* ========================================
   Data Source
   ======================================== */
.data-source {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.data-source__content p {
  font-size: 1rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.data-source__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.data-source__number {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 4rem;
  letter-spacing: -0.05em;
  color: var(--primary);
  line-height: 1;
  min-width: 3.5ch;
  text-align: center;
  display: inline-block;
}

.data-source__unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.375rem;
}

.data-source__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .data-source {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .data-source__badge {
    min-width: 180px;
  }

  .data-source__links {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ========================================
   Final CTA
   ======================================== */
.section--cta-final {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.cta-final {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.cta-final__lead {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  line-height: 2;
  margin-bottom: 2.5rem;
  color: var(--text-on-dark);
}

.cta-final__lead strong {
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent 65%, rgba(235, 88, 15, 0.4) 65%);
  padding: 0 0.05em;
}

.cta-final__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.cta-final__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-final__col-text {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  margin-top: 0.75rem;
  line-height: 1.7;
  text-align: left;
  align-self: stretch;
}

.cta-final__col .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .cta-final__buttons {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #111111;
  color: var(--text-on-dark-muted);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.375rem;
}

.footer__name {
  display: inline;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-on-dark);
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.footer__name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

.footer__copyright {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

/* ========================================
   Scroll Reveal Animations
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--delay-1 {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.2s;
}

.reveal--delay-3 {
  transition-delay: 0.3s;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__kw--primary,
  .hero__kw--secondary,
  .hero__title .text-accent {
    background-size: 100% 100%, 100% 100%;
  }

  html {
    scroll-behavior: auto;
  }
}
