/* ============================================================
   AMILIE 工務店向け AIチャットボット LP
   Brand: 黄〜オレンジ グラデーション
   ============================================================ */

:root {
  /* Brand Gradient */
  --gradient-yellow: #fff3a6;
  --gradient-orange-mid: #ffc36a;
  --gradient-orange: #f36b00;
  --gradient-brand: linear-gradient(160deg, #fff3a6 0%, #ffc36a 52%, #f36b00 100%);
  --gradient-brand-soft: linear-gradient(160deg, #fff8d0 0%, #ffe4a8 45%, #ffd08a 100%);

  /* Base Colors */
  --warm-white: #fffbf0;
  --light-ivory: #fff8e6;
  --soft-beige: #ffe8b8;
  --warm-sand: #ffd08a;

  /* Accent Colors */
  --main: #f36b00;
  --main-light: #ff9f1c;
  --main-dark: #d85a00;
  --main-bg: rgba(243, 107, 0, 0.08);
  --main-bg-strong: rgba(243, 107, 0, 0.14);
  --main-shadow: rgba(243, 107, 0, 0.35);
  --main-shadow-soft: rgba(243, 107, 0, 0.15);
  --accent-gold: #ffc36a;
  --accent-warm: #ff9f1c;
  --muted-green: #e8a84a;
  --sage-blue: #ffc36a;
  --dusty-rose: #ffb347;
  --warm-terracotta: #ff9f1c;

  /* Text */
  --text-primary: #1b1b1b;
  --text-secondary: #555555;
  --text-dark: #1b1b1b;
  --text-on-gradient: #783100;
  --text-min: 1rem;
  --text-body: 1.0625rem;

  /* UI */
  --cta-dark: #5c2800;
  --btn-primary: #f36b00;
  --btn-primary-hover: #d85a00;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 12px rgba(120, 49, 0, 0.08);
  --shadow-md: 0 12px 40px rgba(120, 49, 0, 0.12);
  --shadow-lg: 0 24px 64px rgba(243, 107, 0, 0.15);
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--text-primary);
  background: var(--gradient-brand-soft);
  background-attachment: fixed;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.pc-only { display: inline; }
.sp-only { display: none; }

@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .container { padding: 0 20px; }

  .site-header.is-scrolled .site-header__actions {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .site-header__actions,
  .site-header__cta,
  .site-header__cta:hover {
    box-shadow: none !important;
  }
}

/* ========== Section backgrounds ========== */
.section--white { background: rgba(255, 255, 255, 0.78); }
.section--ivory { background: rgba(255, 248, 230, 0.88); }
.section--beige { background: rgba(255, 232, 184, 0.65); }
#product.section--beige {
  position: relative;
  background-color: #fffbf8;
  background-image: url("assets/Pc_bg.jpg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  padding: 64px 0 0;
  overflow: hidden;
}

#product > .container {
  position: relative;
  z-index: 1;
}
.section--sand { background: rgba(255, 208, 138, 0.55); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn--primary {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(243, 107, 0, 0.35);
}

.btn--primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(243, 107, 0, 0.42);
}

.btn--dark {
  background: var(--btn-primary);
  color: #fff;
  box-shadow: 0 6px 24px rgba(243, 107, 0, 0.35);
}

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

.btn--sm { padding: 10px 22px; font-size: 1rem; }
.btn--lg { padding: 18px 40px; font-size: 1.125rem; }
.btn--full { width: 100%; white-space: normal; }

.btn__free {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px 12px;
  margin-right: 10px;
  background: #fff;
  color: var(--btn-primary);
  font-size: 0.92em;
  font-weight: 900;
  line-height: 1;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn--primary:hover .btn__free {
  background: #fffbf0;
  color: var(--btn-primary-hover);
}

.hero__cta-row .btn {
  gap: 0;
  white-space: nowrap;
  text-align: left;
}

.btn__label {
  display: inline;
}

@media (max-width: 768px) {
  .hero__cta-row .btn {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    white-space: nowrap;
    padding: 16px 22px;
    font-size: 1.0625rem;
  }

  .hero__cta-row .btn__label {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .hero__cta-row .btn {
    padding: 15px 18px;
    font-size: 1rem;
  }

  .btn__free {
    padding: 5px 11px;
    margin-right: 10px;
    font-size: 0.92em;
  }
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  pointer-events: none;
}

.site-header__inner {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border-radius: var(--radius-full);
  box-shadow: none;
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header__logo img {
  display: block;
  height: 58px;
  width: auto;
  transition: height 0.25s ease;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: transparent;
  padding: 0;
  border-radius: var(--radius-full);
  box-shadow: none;
  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.is-scrolled .site-header__logo {
  background: #fff;
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled .site-header__logo img {
  height: 36px;
}

.site-header.is-scrolled .site-header__actions {
  background: #fff;
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header__nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: background 0.2s, color 0.2s;
}

.site-header__nav a:hover {
  background: var(--main-bg);
  color: var(--main);
}

.site-header__cta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .site-header { padding: 12px 16px; }
  .site-header__inner { gap: 10px; }
  .site-header__nav { display: none; }
  .site-header__logo img { height: 44px; }
  .site-header__actions {
    min-width: 0;
    flex-shrink: 1;
  }
  .site-header__cta {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  .site-header.is-scrolled .site-header__actions { padding: 6px 8px; }
  .site-header.is-scrolled .site-header__logo img { height: 28px; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 120px 0 48px;
  background: linear-gradient(
    160deg,
    var(--gradient-yellow) 0%,
    #ffe8b8 40%,
    var(--gradient-orange-mid) 100%
  );
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero__blob--1 {
  width: 560px; height: 560px;
  background: var(--gradient-orange);
  opacity: 0.18;
  top: -180px; right: -100px;
}

.hero__blob--2 {
  width: 420px; height: 420px;
  background: var(--gradient-yellow);
  opacity: 0.45;
  bottom: 0; left: -120px;
}

.hero__blob--3 {
  width: 300px; height: 300px;
  background: var(--gradient-orange-mid);
  opacity: 0.35;
  top: 40%; right: 30%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 24px;
  align-items: center;
  max-width: none;
  width: 100%;
  padding-left: max(32px, calc((100% - 1400px) / 2 + 32px));
  padding-right: 0;
}

.hero__content {
  max-width: 640px;
}

.hero__badge {
  display: inline-block;
  /* ボタンっぽく見えないラベル表現に変更 */
  background: rgba(243, 107, 0, 0.12);
  border: 1px solid rgba(243, 107, 0, 0.22);
  color: var(--main);
  font-size: 0.98rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  box-shadow: none;
}

.hero__title {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: var(--main);
  margin-bottom: 24px;
  line-height: 1.55;
}

.hero__features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--soft-beige);
  box-shadow: var(--shadow-sm);
}

.hero__check {
  display: inline-block;
  width: 15px;
  height: 15px;
  background: url("assets/check.svg") center / contain no-repeat;
  flex-shrink: 0;
}

.hero__cta-row {
  margin-top: 50px;
  margin-bottom: 0;
  text-align: center;
}

.hero-lead {
  width: 100%;
  background: #fff;
  padding: 48px 0 56px;
}

.hero-lead__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-rows: auto auto;
  gap: 10px 40px;
  align-items: start;
}

.hero-lead__visual {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  grid-row: 1 / -1;
  align-self: center;
}

.hero-lead__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-lead__text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.95;
  text-align: left;
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.hero-lead__stats {
  background: transparent;
  padding: 0;
  border-bottom: none;
  grid-column: 2;
  grid-row: 2;
}

.hero-lead__stats .stats__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.hero-lead__stats .trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
  text-align: center;
  background: #fff;
  padding: 16px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--main);
  opacity: 0;
  transform: translateY(18px) scale(0.72);
}

.hero-lead__stats .trust-bar__item > span:last-child {
  font-size: clamp(0.58rem, 1.3vw, 0.875rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.hero-lead__stats.is-in .trust-bar__item {
  animation: heroLeadStatPop 0.58s cubic-bezier(0.22, 1.35, 0.36, 1) both;
}

.hero-lead__stats.is-in .trust-bar__item:nth-child(2) {
  animation-delay: 0.14s;
}

.hero-lead__stats.is-in .trust-bar__item:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes heroLeadStatPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.72);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-lead__stats .trust-bar__item {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.hero-lead__stats .trust-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  height: 40px;
  flex-shrink: 0;
}

.hero-lead__stats .trust-bar__icon img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(43%) sepia(97%) saturate(3470%) hue-rotate(7deg) brightness(101%) contrast(101%);
}

.hero-lead__stats .trust-bar__icon--pets img {
  width: 29px;
  height: 29px;
}

@media (max-width: 768px) {
  .hero-lead {
    padding: 32px 0 40px;
  }

  .hero-lead__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 24px;
  }

  .hero-lead__visual {
    grid-row: auto;
    align-self: auto;
  }

  .hero-lead__text {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-lead__stats {
    grid-column: auto;
    grid-row: auto;
    padding-top: 0;
  }

  .hero-lead__stats .stats__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-lead__stats .trust-bar__item {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    font-size: 0.75rem;
    text-align: center;
  }
}

.hero__visual {
  position: relative;
  width: 100%;
  min-width: 0;
  align-self: stretch;
}

.hero__visual-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  border-radius: 24px 0 0 24px;
}

.hero__visual-main-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.hero__visual-main {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: left center;
}

.hero-chat-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.hero-chat-bubble {
  position: absolute;
  max-width: min(40%, 300px);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.8125rem;
  line-height: 1.55;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.94) translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s, top 0.45s ease, left 0.45s ease, right 0.45s ease;
  box-shadow: 0 12px 32px rgba(27, 27, 27, 0.2);
}

.hero-chat-bubble.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.hero-chat-bubble--user {
  background: #2d9cdb;
  color: #fff;
}

.hero-chat-bubble__text {
  margin: 0;
  min-height: 1.2em;
}

.hero-chat-bubble--laptop {
  left: 3%;
  top: 38%;
}

.hero-chat-bubble--laptop::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: 14px;
  border: 7px solid transparent;
  border-left-color: #2d9cdb;
}

.hero-chat-bubble--phone {
  right: 2%;
  top: 13%;
}

.hero-chat-bubble--phone::after {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 12px;
  border: 7px solid transparent;
  border-right-color: #2d9cdb;
}

.hero-chat-bubble--tablet {
  left: 40%;
  top: 7%;
}

.hero-chat-bubble--tablet::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #2d9cdb;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__content {
    max-width: none;
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero__visual {
    width: 100%;
  }

  .hero__visual-main {
    object-fit: contain;
    object-position: center;
  }

  .hero__visual-bg {
    border-radius: 0;
  }

  .hero-chat-bubble {
    max-width: min(48%, 240px);
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .hero-chat-bubble--laptop {
    left: 1%;
    top: 40%;
  }

  .hero-chat-bubble--phone {
    right: 0;
    top: 11%;
  }

  .hero-chat-bubble--tablet {
    left: 36%;
    top: 6%;
  }
}

@media (max-width: 768px) {
  .hero__content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-chat-bubble {
    max-width: 52%;
    font-size: 0.6875rem;
    padding: 7px 9px;
    border-radius: 10px;
  }

  .hero-chat-bubble--laptop {
    top: 42%;
  }

  .hero-chat-bubble--phone {
    top: 9%;
  }

  .hero-chat-bubble--tablet {
    left: 32%;
    top: 4%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-chat-bubble {
    transition: none;
  }
}

/* ========== Hero Collage (unite.yapp.li style) ========== */
.hero-collage {
  position: relative;
  width: 100%;
  min-height: 520px;
}

.hero-collage__grid {
  position: absolute;
  top: 0; right: 0;
  width: 88%;
  height: 88%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  z-index: 1;
}

.hero-collage__cell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-collage__cell--1 { transform: translate(-8px, 12px); }
.hero-collage__cell--2 { transform: translate(8px, -4px); }
.hero-collage__cell--3 { transform: translate(-4px, -8px); }
.hero-collage__cell--4 { transform: translate(12px, 8px); }

.hero-collage__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.hero-collage__phones {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-45%, -50%);
  z-index: 3;
  width: 100%;
  max-width: 420px;
  height: 480px;
}

.hero-collage__phone {
  position: absolute;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(61, 61, 61, 0.25);
}

.hero-collage__phone--back {
  width: 52%;
  left: 0; top: 8%;
  transform: rotate(-8deg);
  z-index: 1;
  opacity: 0.92;
}

.hero-collage__phone--front {
  width: 58%;
  right: 0; top: 0;
  transform: rotate(4deg);
  z-index: 2;
}

/* ========== Floating UI Cards (yappli point card style) ========== */
.float-card {
  position: absolute;
  z-index: 4;
  padding: 14px 20px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(243, 107, 0, 0.35);
  overflow: hidden;
  animation: floatY 4s ease-in-out infinite;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255,255,255,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(255, 195, 106, 0.6) 0%, transparent 50%),
    linear-gradient(135deg, #ff9f1c 0%, #f36b00 35%, #ffc36a 65%, #d85a00 100%);
  box-shadow: 0 12px 32px var(--main-shadow);
}

.float-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 0% 100%, rgba(255,200,180,0.4) 0%, transparent 55%),
    radial-gradient(ellipse 70% 100% at 100% 0%, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.float-card--green {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(255,255,255,0.2) 0%, transparent 60%),
    linear-gradient(135deg, #ffc36a 0%, #ff9f1c 50%, #f36b00 100%);
  box-shadow: 0 12px 32px var(--main-shadow);
}

.float-card__label {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 2px;
  letter-spacing: 0.02em;
}

.float-card__value {
  position: relative;
  font-size: 1.375rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.float-card__unit {
  font-size: 1rem;
  font-weight: 700;
  margin-left: 2px;
}

/* Hero float card positions */
.float-card--1 {
  top: 6%; left: -4%;
  animation-delay: 0s;
}

.float-card--2 {
  bottom: 18%; left: 2%;
  animation-delay: 1.2s;
}

.float-card--3 {
  top: 12%; right: -2%;
  animation-delay: 0.6s;
}

.float-card--wide {
  min-width: 160px;
}

/* Floating icon circles */
.float-icon {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  font-size: 1.375rem;
  animation: floatY 5s ease-in-out infinite;
}

.float-icon--1 { bottom: 8%; right: 8%; animation-delay: 0.3s; }
.float-icon--2 { top: 4%; right: 28%; animation-delay: 1.5s; }
.float-icon--3 { bottom: 32%; right: -2%; animation-delay: 0.8s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .float-card,
  .float-icon { animation: none; }
}

/* ========== Product Showcase ========== */
.product-showcase {
  margin-top: -14px;
  padding: 0;
}

#product .section__header {
  margin-bottom: 0;
}

#product .section__title {
  margin-bottom: 8px;
}

#product .section__lead {
  margin-bottom: 0;
  line-height: 1.75;
}

.product-showcase__stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: clamp(300px, 34vw, 460px);
  overflow: visible;
}

.product-showcase__device {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-showcase__device--pc {
  left: 50%;
  bottom: 0;
  width: 58%;
  z-index: 5;
  transform: translate(-50%, 48px);
  filter: drop-shadow(0 18px 36px rgba(120, 49, 0, 0.18));
}

.product-showcase__device--tab {
  left: -5%;
  bottom: 26%;
  width: 33%;
  z-index: 2;
  transform: translate(-40px, 36px);
  filter: drop-shadow(0 16px 28px rgba(120, 49, 0, 0.16));
}

.product-showcase__device--sp {
  right: 0;
  bottom: 23%;
  width: 28%;
  z-index: 3;
  transform: translate(36px, 40px);
  filter: drop-shadow(0 14px 24px rgba(120, 49, 0, 0.16));
}

.product-showcase.is-devices-in .product-showcase__device--pc {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.05s;
}

.product-showcase.is-devices-in .product-showcase__device--tab {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 0.28s;
}

.product-showcase.is-devices-in .product-showcase__device--sp {
  opacity: 1;
  transform: translate(0, 0);
  transition-delay: 0.48s;
}

@media (prefers-reduced-motion: reduce) {
  .product-showcase__device {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .product-showcase__device--pc {
    transform: translate(-50%, 0) !important;
  }
}

@media (max-width: 768px) {
  #product.section--beige {
    padding-top: 48px;
  }

  .product-showcase {
    margin-top: -6px;
  }

  .product-showcase__stage {
    height: clamp(240px, 58vw, 340px);
  }

  .product-showcase__device--pc {
    width: 70%;
    bottom: 12%;
  }

  .product-showcase__device--tab {
    left: -10%;
    width: 44%;
    bottom: 16%;
  }

  .product-showcase__device--sp {
    right: 0;
    width: 33%;
    bottom: 14%;
  }
}

.product-showcase__ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  border: 2px dashed rgba(243, 107, 0, 0.22);
  border-radius: 50%;
  z-index: 0;
}

.product-showcase__phone {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.float-card--showcase { padding: 16px 24px; }

.float-card--s1 {
  top: 12%; left: 0;
  animation-delay: 0s;
}

.float-card--s2 {
  top: 8%; right: 0;
  animation-delay: 0.8s;
}

.float-card--s3 {
  bottom: 16%;
  left: 32%;
  animation-delay: 1.4s;
}

.float-icon--s1 { top: 42%; left: 4%; animation-delay: 0.5s; }
.float-icon--s2 { top: 38%; right: 4%; animation-delay: 1.2s; }
.float-icon--s3 { bottom: 28%; left: 12%; animation-delay: 0.2s; }
.float-icon--s4 { bottom: 24%; right: 10%; animation-delay: 1.8s; }

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: 100px 0 32px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero__visual { order: -1; }
  .hero__visual-main {
    max-width: 560px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px 12px;
  }
  .site-header__inner {
    gap: 8px;
  }
  .site-header__logo img {
    height: 38px;
  }
  .site-header__cta {
    padding: 10px 14px;
    font-size: 0.8rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    /* 右上が切れないように折り返し許可 */
    white-space: normal;
    text-align: center;
  }
  .hero__badge {
    font-size: 0.9rem;
    padding: 6px 12px;
    margin-bottom: 16px;
  }
  .hero__visual-main {
    width: 100%;
    max-width: 100%;
  }
  .float-card { padding: 10px 14px; }
  .float-card__value { font-size: 1.125rem; }
  .float-card--3 { display: none; }
  .float-icon { width: 44px; height: 44px; font-size: 1.125rem; }
}

/* ========== STATS (unite style) ========== */
.stats {
  position: relative;
  overflow: hidden;
  padding: 56px 20px 0;
}

.stats.hero-lead__stats {
  padding-top: 10px;
}

.stats__inner {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stats__item {
  display: flex;
  align-items: center;
  gap: 45px;
}

.stats__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px; height: 120px;
  background: linear-gradient(145deg, var(--main-light) 0%, var(--main) 100%);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 32px var(--main-shadow);
}

.stats__circle--outline {
  background: transparent;
  border: 3px solid var(--main);
  color: var(--main);
  box-shadow: none;
}

.stats__num {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

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

.stats__label {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.6;
}

.stats__bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 900;
  color: var(--main);
  opacity: 0.04;
  pointer-events: none;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .stats,
  .stats.hero-lead__stats {
    padding: 0;
  }

  .stats__inner { gap: 32px; }
  .stats__item { flex-direction: column; text-align: center; gap: 12px; }
  .stats__circle { width: 100px; height: 100px; }
  .stats__num { font-size: 2rem; }
}

/* ========== SECTIONS ========== */
.section { padding: 96px 0; }

.section__header { margin-bottom: 48px; }
.section__header--center { text-align: center; }

.section__tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.section__title {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--main);
  line-height: 1.5;
  margin-bottom: 16px;
}

.section__lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.9;
  max-width: 1000px;
  margin: 0 auto;
}

/* ========== PROBLEM ========== */
.problem__title-mark {
  position: relative;
  display: inline-block;
  font-size: 1em;
  line-height: 1.35;
  z-index: 0;
  transition: font-size 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem__title-mark.is-marked {
  font-size: 1.28em;
}

.problem__title-mark::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.04em;
  height: 0.45em;
  background: linear-gradient(90deg, rgba(255, 227, 140, 0.95) 0%, rgba(255, 195, 106, 0.85) 100%);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem__title-mark.is-marked::after {
  transform: scaleX(1);
}

.problem__intro {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.9;
}

.problem__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 90px;
  overflow: visible;
}

.problem-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border-radius: 5px 5px 0 0;
  padding: 64px 40px 72px;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.problem-card--wall {
  position: relative;
  overflow: visible;
  justify-content: flex-start;
  text-align: left;
  padding: 15% 10% 25%;
  opacity: 0;
  transform: translateY(-56px);
  z-index: 0;
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
}

.problem-card--wall::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -78px;
  width: 100%;
  height: 78px;
  background: linear-gradient(180deg, rgba(120, 49, 0, 0.18) 0%, rgba(120, 49, 0, 0.08) 46%, rgba(120, 49, 0, 0) 100%);
  transform: skewX(42deg);
  transform-origin: top left;
  z-index: -1;
  pointer-events: none;
}

.problem-card--wall.is-wall-in {
  opacity: 1;
  transform: translateY(0);
}

.problem-card--wall.is-wall-in:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.problem-card--wall .problem-card__lead,
.problem-card--wall .problem-card__label,
.problem-card--wall .problem-card__list {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem-card--wall.is-text-in .problem-card__lead,
.problem-card--wall.is-text-in .problem-card__label,
.problem-card--wall.is-text-in .problem-card__list {
  opacity: 1;
  transform: translateY(0);
}

.problem-card--wall.is-text-in .problem-card__label {
  transition-delay: 0.08s;
}

.problem-card--wall.is-text-in .problem-card__list {
  transition-delay: 0.16s;
}

.problem-card__illust {
  position: absolute;
  right: -4px;
  bottom: -40px;
  width: 30%;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.problem-card--wall.is-illust-in .problem-card__illust {
  opacity: 1;
  transform: translateY(0);
}

.problem-card--wall.is-illust-in:hover .problem-card__illust {
  transform: translateY(-6px);
}

.problem-card--wall .problem-card__label,
.problem-card--wall .problem-card__lead,
.problem-card--wall .problem-card__list {
  position: relative;
  z-index: 2;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.problem-card--wall:hover {
  transform: none;
  box-shadow: none;
}

.problem-card__label {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--main);
  margin-bottom: 28px;
  line-height: 1.2;
}

.problem-card__label-sub {
  font-size: 1rem;
  font-weight: 900;
  color: var(--main);
}

.problem-card--wall .problem-card__label {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 30px;
}

.problem-card--wall .problem-card__label-sub {
  font-size: 1.25rem;
}

.problem-card .problem-card__lead {
  font-weight: 700;
  margin-bottom: 0;
}

.problem-card--wall .problem-card__lead {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 700;
}

.problem-card p {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.75;
  text-align: left;
}

.problem-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.problem-card__list li {
  position: relative;
  padding-left: 1.1em;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 6px;
}

.problem-card__list li:last-child {
  margin-bottom: 0;
}

.problem-card__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--main);
  font-weight: 700;
}

.problem__closing {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.problem__closing p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.problem__closing--bold {
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--text-dark) !important;
}

.problem__closing-marker {
  padding: 0 0.08em;
  background: linear-gradient(
    transparent 58%,
    rgba(255, 195, 106, 0.9) 58%,
    rgba(255, 195, 106, 0.9) 92%,
    transparent 92%
  );
}

@media (prefers-reduced-motion: reduce) {
  .problem-card--wall,
  .problem-card--wall .problem-card__lead,
  .problem-card--wall .problem-card__label,
  .problem-card--wall .problem-card__list,
  .problem-card__illust,
  .problem__title-mark {
    font-size: 1.28em;
    transition: none !important;
  }

  .problem__title-mark::after {
    transform: scaleX(1) !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  #problem {
    overflow-x: clip;
  }

  .problem__intro,
  .problem__closing {
    text-align: left;
  }

  .problem__title-mark.is-marked {
    font-size: 1.1em;
    white-space: nowrap;
  }

  .problem__cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 56px;
  }

  .problem-card {
    padding: 48px 24px 56px;
  }

  .problem-card--wall {
    padding: 15% 10% 25%;
  }

  .problem-card--wall::after {
    left: 0;
    bottom: -46px;
    width: 100%;
    height: 52px;
  }

  .problem-card--wall .problem-card__label {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }

  .problem-card--wall .problem-card__lead {
    margin-bottom: 12px;
  }

  .problem-card--wall .problem-card__label-sub {
    font-size: 1.125rem;
  }

  .problem-card__illust {
    right: -18px;
    width: 30%;
    height: auto;
    bottom: -16px;
  }

  .problem-card--wall:nth-child(1) .problem-card__illust {
    left: -4px;
    right: auto;
  }

  .problem-card--wall:nth-child(2) .problem-card__illust,
  .problem-card--wall:nth-child(3) .problem-card__illust {
    right: -18px;
    left: auto;
  }

  .problem-card--wall:nth-child(1) .problem-card__list {
    padding-left: 24px;
  }

  .problem__closing--bold {
    font-size: 1.3rem !important;
  }
}

/* ========== MANGA（PC: 左右見開き / スマホ: ページめくり） ========== */
.manga-story-section {
  background: #fff;
}

.manga-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.manga-book {
  overflow: visible;
  gap: 0;
}

/* 漫画＋左右タップボタンのラッパー */
.manga-book__stage {
  position: relative;
  overflow: visible;
  padding: 0 70px;
}

.manga-section__lead {
  position: relative;
  width: fit-content;
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  color: #fff;
  margin: 0 auto 70px;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--main-light), var(--main));
  border-radius: 18px;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: scale(0.35);
  transform-origin: center bottom;
}

.manga-section__lead::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  border-top: 15px solid var(--main);
  border-right: 12px solid transparent;
  border-left: 12px solid transparent;
}

.manga-section__lead.is-in {
  animation: mangaLeadBounce 0.9s ease-out both;
}

@keyframes mangaLeadBounce {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  48% {
    opacity: 1;
    transform: scale(1.16);
  }
  65% {
    transform: scale(0.88);
  }
  80% {
    transform: scale(1.07);
  }
  90% {
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .manga-section__lead,
  .manga-section__lead.is-in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.manga-book__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 32px;
}

.manga-book__caption[hidden] { display: none; }

.manga-panel__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.manga-panel__badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  color: #fff;
}

.manga-panel__badge--before { background: var(--text-secondary); }
.manga-panel__badge--after { background: var(--main); }

.manga-panel__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* 読み順ガイド（右→左） */
.manga-book__read-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--warm-sand);
}

.manga-book__read-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.06em;
}

.manga-book__read-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-secondary);
}

.manga-book__read-page.is-current {
  color: var(--main);
  transform: scale(1.15);
}

.manga-book__read-arrow {
  color: var(--main);
  font-size: 1.125rem;
  animation: readArrowLeft 1.4s ease-in-out infinite;
}

@keyframes readArrowLeft {
  0%, 100% { transform: translateX(3px); opacity: 0.6; }
  50% { transform: translateX(-5px); opacity: 1; }
}

/* ビューポート（横読み・左タップで右へスライド） */
.manga-book__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 896 / 1200;
  border-radius: 0;
  box-shadow: var(--shadow-lg);
  background: #1a1a1a;
  overflow: hidden;
  cursor: default;
}

.manga-book__sheet {
  margin: 0;
}

.manga-book__sheet img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border: solid 1px #d4d4d4;
  user-select: none;
  -webkit-user-drag: none;
  background: #fff;
}

/* 2ページ目（下に敷く） */
.manga-book__sheet--2 {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* 1ページ目 → 右へスライドアウト */
.manga-book__sheet--1 {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.manga-book__sheet--1.is-turned {
  transform: translateX(100%);
  pointer-events: none;
}

/* 左右タップボタン（漫画の外・被らない位置） */
.manga-tap-left,
.manga-tap-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 56px;
  height: 56px;
}

.manga-tap-left {
  left: 0;
}

.manga-tap-right {
  right: 0;
}

.manga-tap-left[hidden],
.manga-tap-right[hidden] { display: none; }

.manga-tap-left__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--main);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: 0 4px 20px rgba(243, 107, 0, 0.55);
  animation: tapPulse 2s ease-in-out infinite;
  pointer-events: none;
}

.manga-tap-left:hover .manga-tap-left__circle,
.manga-tap-left:focus-visible .manga-tap-left__circle,
.manga-tap-right:hover .manga-tap-left__circle,
.manga-tap-right:focus-visible .manga-tap-left__circle {
  background: var(--main-dark);
  transform: scale(1.08);
}

@keyframes tapPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(243, 107, 0, 0.55); }
  50% { box-shadow: 0 4px 28px rgba(243, 107, 0, 0.85), 0 0 0 8px rgba(243, 107, 0, 0.2); }
}

/* 横読みモードバッジ（右下） */
.manga-mode-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

/* ページ送りナビ（漫画の外に配置・被らない） */
.manga-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.manga-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}

.manga-nav__btn--next {
  background: var(--main);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(243, 107, 0, 0.4);
}

.manga-nav__btn--next:hover:not(:disabled) {
  background: var(--main-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(243, 107, 0, 0.5);
}

.manga-nav__btn--prev {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--warm-sand);
}

.manga-nav__btn--prev:hover:not(:disabled) {
  border-color: var(--main);
  color: var(--main);
  background: var(--main-bg);
  transform: translateY(-2px);
}

.manga-nav__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.manga-nav__arrow {
  font-size: 1.125rem;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .manga-book__sheet--1 { transition: none; }
  .manga-tap-left__circle { animation: none; }
  .manga-book__read-arrow { animation: none; }
  .manga-book__sheet--1.is-turned { transform: none; opacity: 0; visibility: hidden; }
}

/* Lightbox */
.manga-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.manga-lightbox[hidden] { display: none; }

.manga-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 26, 0.88);
  cursor: pointer;
}

.manga-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(960px, 96vw);
  max-height: 96vh;
  overflow: auto;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.manga-lightbox__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-md) - 4px);
}

.manga-lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--text-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s;
}

.manga-lightbox__close:hover {
  background: var(--soft-beige);
}

@media (max-width: 768px) {
  .manga-section { margin-top: 0; padding-top: 0; }
  .manga-book__stage { padding: 0; }
  .manga-tap-left,
  .manga-tap-right { display: none; }
  .manga-nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
  }
  .manga-nav__btn {
    flex: 1;
    justify-content: center;
    padding: 12px 10px;
    font-size: 1rem;
  }
  .manga-nav__text { white-space: nowrap; }
}

/* PC: 右に1P・左に2Pの見開き（ページめくりなし） */
@media (min-width: 769px) {
  .manga-section {
    max-width: 1400px;
    width: min(1400px, calc(100vw - 48px));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .manga-book {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px 0;
    align-items: start;
  }

  .manga-book__caption#manga-caption-2 {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 0;
    min-height: 3.5rem;
  }

  .manga-book__caption#manga-caption-1 {
    grid-row: 1;
    grid-column: 2;
    margin-bottom: 0;
    min-height: 3.5rem;
  }

  .manga-book__caption[hidden] {
    display: flex !important;
  }

  .manga-book__stage {
    grid-row: 2;
    grid-column: 1 / -1;
    padding: 0;
  }

  .manga-tap-left,
  .manga-tap-right,
  .manga-nav {
    display: none !important;
  }

  .manga-book__viewport {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    background: #fff;
    cursor: default;
    position: relative;
    isolation: isolate;
  }

  /* 見開きの綴じ目（中央暗く・左右透過） */
  .manga-book__viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    pointer-events: none;
    z-index: 4;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.05) 30%,
      rgba(0, 0, 0, 0.14) 50%,
      rgba(0, 0, 0, 0.05) 70%,
      transparent 100%
    );
  }

  .manga-book__sheet--1,
  .manga-book__sheet--2 {
    position: relative;
    inset: auto;
    flex: 1;
    min-width: 0;
    aspect-ratio: 896 / 1200;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: #fff;
  }

  .manga-book__sheet--1 {
    order: 2;
    transition: none;
  }

  .manga-book__sheet--2 {
    order: 1;
    z-index: auto;
  }

  .manga-book__sheet--1.is-turned {
    transform: none;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .problem__cards { grid-template-columns: 1fr; }
}

/* ========== FEATURES ========== */
.features {
  position: relative;
  padding: 64px 0 80px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.features__body {
  width: 100%;
  background: transparent;
  border-top: none;
  border-bottom: none;
  box-shadow: none;
  overflow: hidden;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}

.feature--from-right {
  margin-left: 50px;
  margin-bottom: 20px;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(90deg, #f47106 0%, #f98710 28%, #fd9516 68%, #ffad49 100%);
}

.feature--from-left {
  margin-right: 50px;
  margin-bottom: 20px;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(90deg, #ffad49 0%, #fd9516 32%, #f98710 72%, #f47106 100%);
}

.feature--from-right .feature__title,
.feature--from-right .feature__desc,
.feature--from-right .feature__list li,
.feature--from-left .feature__title,
.feature--from-left .feature__desc,
.feature--from-left .feature__list li {
  color: #fff;
}

.feature--from-right .feature__list li::before,
.feature--from-left .feature__list li::before {
  filter: brightness(0) invert(1);
}

.feature--from-right .feature__label,
.feature--from-left .feature__label {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.feature--from-right .feature__bg-num,
.feature--from-left .feature__bg-num {
  color: #fff;
  opacity: 0.12;
}

.feature--alt {
  /* gradient handled by .feature--from-left */
}

.feature + .feature {
  border-top: none;
}

#product + .features {
  padding-top: 48px;
}

.feature__section-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 40px;
}

.feature__section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 900;
  color: var(--main);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.feature__bg-num {
  position: absolute;
  top: -2%;
  left: 50%;
  transform: translate(-50%, 0);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 900;
  color: var(--main);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.feature--from-right .feature__bg-num {
  left: 0%;
  right: auto;
  transform: none;
}

.feature--from-left .feature__bg-num {
  left: auto;
  right: 0%;
  transform: none;
}

.feature__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 40px;
}

/* POINT 01 / 03: text left, image flush right */
.feature--from-right .feature__inner {
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  padding-left: max(24px, calc((100% - 1400px) / 2 + 32px));
  padding-right: 0;
  justify-content: end;
}

.feature--from-right .feature__text {
  text-align: left;
  margin-left: auto;
  max-width: 480px;
}

.feature--from-right .feature__label {
  margin-left: 0;
  text-align: left;
}

.feature--from-right .feature__title {
  text-align: left;
}

.feature--from-right .feature__list {
  text-align: left;
  display: inline-block;
  width: 100%;
}

.feature--from-right .feature__visual {
  justify-self: stretch;
  width: 100%;
}

.feature--from-right .feature__visual--large img {
  width: 100%;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  box-shadow: -12px 18px 40px rgba(120, 49, 0, 0.14);
}

.feature--from-right .feature__visual--cards {
  padding-right: max(24px, calc((100% - 1400px) / 2 + 32px));
}

/* POINT 02: image flush left, text right */
.feature--from-left .feature__inner {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  padding-left: 0;
  padding-right: max(24px, calc((100% - 1400px) / 2 + 32px));
}

.feature--from-left .feature__text {
  text-align: left;
  margin-right: auto;
  max-width: 480px;
}

.feature--from-left .feature__visual {
  justify-self: stretch;
  width: 100%;
}

.feature--from-left .feature__visual--large img {
  width: 100%;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  box-shadow: 12px 18px 40px rgba(120, 49, 0, 0.14);
}

.feature__label {
  display: inline-block;
  background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  letter-spacing: 0.12em;
  text-align: left;
}

.feature__title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 20px;
  text-align: left;
}

.feature__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.95;
  text-align: left;
}

.feature__list {
  list-style: none;
  margin-top: 24px;
}

.feature__list li {
  position: relative;
  padding-left: 28px;
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 500;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  background: url("assets/check.svg") center / contain no-repeat;
}

.feature__visual--large img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

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

.benefit-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--warm-sand);
  transition: transform 0.2s, border-color 0.2s;
}

.benefit-card:hover {
  transform: translateX(6px);
  border-color: var(--main);
}

.benefit-card__icon { font-size: 1.75rem; margin-bottom: 10px; }

.benefit-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Scroll-in animations */
.feature--from-right .feature__text,
.feature--from-right .feature__visual {
  opacity: 0;
  transform: translateX(72px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature--from-right .feature__visual {
  transition-delay: 0.12s;
}

.feature--from-left .feature__text,
.feature--from-left .feature__visual {
  opacity: 0;
  transform: translateX(-72px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature--from-left .feature__text {
  transition-delay: 0.12s;
}

.feature.is-in .feature__text,
.feature.is-in .feature__visual {
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .feature--from-right .feature__text,
  .feature--from-right .feature__visual,
  .feature--from-left .feature__text,
  .feature--from-left .feature__visual {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .features {
    padding: 40px 0 56px;
  }

  .feature {
    padding: 48px 0;
  }

  .feature--from-right {
    margin-left: 20px;
    padding-left: 0;
    background: linear-gradient(90deg, #f47106 0%, #f98710 28%, #fd9516 68%, #ffad49 100%);
  }

  .feature--from-left {
    margin-right: 20px;
    padding-right: 0;
    background: linear-gradient(90deg, #ffad49 0%, #fd9516 32%, #f98710 72%, #f47106 100%);
  }

  .feature__section-header {
    margin-bottom: 28px;
  }

  .feature--from-right .feature__inner,
  .feature--from-left .feature__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .feature--from-right .feature__text,
  .feature--from-left .feature__text {
    text-align: left;
    margin: 0;
    max-width: none;
  }

  .feature--from-right .feature__label {
    margin-left: 0;
  }

  .feature--from-left .feature__visual {
    order: -1;
  }

  .feature--from-right .feature__visual--large img,
  .feature--from-left .feature__visual--large img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  .feature--from-right .feature__visual--cards {
    padding-right: 0;
  }

  .feature--from-right .feature__text,
  .feature--from-right .feature__visual,
  .feature--from-left .feature__text,
  .feature--from-left .feature__visual {
    transform: translateY(28px);
  }

  .feature.is-in .feature__text,
  .feature.is-in .feature__visual {
    transform: translateY(0);
  }
}

/* ========== USE CASES（UNITE風 横スクロール） ========== */
#demo .section__header {
  margin-bottom: 120px;
}

.use-cases {
  position: relative;
  width: 100%;
  padding: 56px 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 190, 0.72) 0, transparent 34%),
    var(--gradient-brand);
  overflow-x: clip;
  overflow-y: visible;
}

.use-cases__pets {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.use-cases__pet {
  position: absolute;
  bottom: -52px;
  width: clamp(130px, 16vw, 210px);
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(80%);
}

.use-cases__pet--dog {
  left: clamp(24px, 5vw, 88px);
}

.use-cases__pet--cat {
  right: clamp(24px, 7vw, 120px);
}

.use-cases__pets.is-in .use-cases__pet {
  animation: useCasesPetPeek 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.use-cases__pets.is-in .use-cases__pet--cat {
  animation-delay: 0.16s;
}

@keyframes useCasesPetPeek {
  0% {
    opacity: 0;
    transform: translateY(80%);
  }
  55% {
    opacity: 1;
    transform: translateY(-8px);
  }
  78% {
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .use-cases__pet,
  .use-cases__pets.is-in .use-cases__pet {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.use-cases__heading {
  position: relative;
  z-index: 4;
  text-align: center;
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  font-weight: 800;
  color: var(--text-on-gradient);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  padding: 0 24px;
}

@media (max-width: 768px) {
  #demo .section__header {
    margin-bottom: 90px;
  }

  .use-cases__pet {
    bottom: -26px;
    width: clamp(86px, 24vw, 130px);
  }

  .use-cases__pet--dog {
    left: 10px;
  }

  .use-cases__pet--cat {
    right: 10px;
  }
}

.use-cases__experience {
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 0 24px;
}

.use-cases__board {
  position: relative;
  background: #fdfafa;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(120, 49, 0, 0.1);
  padding: 28px 32px 32px;
  overflow: visible;
}

.use-cases__schedule-head {
  position: relative;
  z-index: 1;
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(27, 27, 27, 0.1);
}

.use-cases__schedule-title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}

.use-cases__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.use-cases__timeline-entry {
  margin: 0;
  padding: 0;
}

.use-cases__timeline-btn {
  display: grid;
  grid-template-columns: 4.5rem 1.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.use-cases__timeline-btn:hover {
  background: rgba(243, 107, 0, 0.06);
  border-color: rgba(243, 107, 0, 0.14);
}

.use-cases__timeline-entry.is-active .use-cases__timeline-btn {
  background: rgba(243, 107, 0, 0.1);
  border-color: rgba(243, 107, 0, 0.22);
  box-shadow: inset 3px 0 0 var(--main);
}

.use-cases__timeline-time {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.use-cases__timeline-entry.is-active .use-cases__timeline-time {
  color: var(--main);
}

.use-cases__timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: stretch;
  min-height: 100%;
}

.use-cases__timeline-rail::before {
  content: "";
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: 50%;
  width: 2px;
  background: #c8d0d8;
  transform: translateX(-50%);
}

.use-cases__timeline-entry:first-child .use-cases__timeline-rail::before {
  top: 50%;
}

.use-cases__timeline-entry:last-child .use-cases__timeline-rail::before {
  bottom: 50%;
}

.use-cases__timeline-dot {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin: auto 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #9aa8b5;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.use-cases__timeline-entry.is-active .use-cases__timeline-dot {
  background: var(--main);
  border-color: var(--main);
  transform: scale(1.15);
}

.use-cases__timeline-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

.use-cases__timeline-entry.is-active .use-cases__timeline-label {
  color: var(--text-dark);
  font-weight: 800;
}

.use-cases__timeline-chevron {
  display: none;
  color: var(--text-secondary);
  transition: transform 0.25s ease, color 0.2s ease;
}

.use-cases__timeline-btn:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 2px;
}

.use-cases__timeline-detail {
  display: none;
}

.use-cases__detail-panel {
  display: none;
  overflow: visible;
}

.use-cases__detail-panel .use-cases__bubble {
  margin: 0;
}

.use-cases__detail-panel .use-case-card__mock {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  animation: useCaseMockSlideIn 0.38s cubic-bezier(0.22, 0.8, 0.24, 1) 0.35s both;
}

.use-cases__timeline-entry.is-active .use-cases__timeline-detail {
  display: block;
}

.use-cases__bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 6px 24px rgba(120, 49, 0, 0.08);
}

.use-cases__scene-image {
  margin: 0;
  overflow: hidden;
  background: #d9dde3;
}

.use-cases__scene-image img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  background: #d9dde3;
}

.use-cases__bubble::before {
  content: none;
  position: absolute;
  left: -13px;
  top: var(--bubble-tail-y, 50%);
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-right: 12px solid rgba(27, 27, 27, 0.16);
  z-index: 1;
}

.use-cases__bubble::after {
  content: "";
  position: absolute;
  left: -11px;
  top: var(--bubble-tail-y, 50%);
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 11px solid #fff;
  z-index: 2;
}

.use-case-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(243, 107, 0, 0.12);
}

.use-case-card__clock {
  flex-shrink: 0;
  color: var(--main);
}

.use-case-card__time {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--main);
  letter-spacing: 0.08em;
  line-height: 1;
}

.use-case-card__content {
  flex: 1;
  min-width: 0;
}

.use-case-card__title {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 8px;
}

.use-case-card__company {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.use-case-card__tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.use-case-card__list {
  list-style: none;
}

.use-case-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 6px;
}

.use-case-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.38em;
  width: 14px;
  height: 14px;
  background: url("assets/check.svg") center / contain no-repeat;
}

.use-case-card__visual {
  margin-top: auto;
}

.use-case-card__mock {
  width: 100%;
  background: var(--light-ivory);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateX(36px);
  transform-origin: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
  visibility: hidden;
}

.use-cases__timeline-entry.is-active .use-case-card__mock {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  animation: useCaseMockSlideIn 0.38s cubic-bezier(0.22, 0.8, 0.24, 1) 0.4s both;
}

.use-case-card__mock--accent {
  background: linear-gradient(145deg, var(--gradient-yellow) 0%, var(--gradient-orange-mid) 100%);
  border-color: var(--main-shadow-soft);
}

.use-case-card__mock-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--main);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.use-case-card__mock p:last-child {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.65;
  font-weight: 500;
}

@keyframes useCaseMockSlideIn {
  0% {
    opacity: 0;
    transform: translateX(48px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.use-cases__footer {
  margin-top: 32px;
  padding: 0 24px 8px;
}

.use-cases__cta-text {
  text-align: center;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-on-gradient);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.chat-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 390px);
  gap: 24px;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
  padding: 30px 60px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.chat-demo-intro {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.chat-demo-intro__eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.chat-demo-intro__title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #3f1c00;
  line-height: 1.5;
  margin-bottom: 14px;
}

.chat-demo-intro__lead,
.chat-demo-intro__note {
  font-size: 1rem;
  color: #fff;
  line-height: 1.85;
}

.chat-demo-intro__lead {
  margin-bottom: 20px;
  color: #333;
}

.chat-demo-devices {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  color: #333;
}

.chat-demo-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--soft-beige);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.chat-demo-device__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--main-bg);
  color: var(--main);
  flex-shrink: 0;
}

.chat-demo-device__label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.chat-demo-device__desc {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.6;
}

.chat-demo-intro__note {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.use-cases__chat-demo {
  position: relative;
  width: min(100%, 390px);
  height: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, #fbf5ef 0%, #f7efe7 100%);
  border: 10px solid #2c211a;
  border-radius: 38px;
  padding: 72px 18px 24px;
  box-shadow:
    0 18px 48px rgba(44, 33, 26, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 152, 0, 0.5) transparent;
}

.chat-demo-layout .use-cases__chat-demo {
  margin: -76px auto 0;
}

@media (max-width: 1024px) {
  .chat-demo-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chat-demo-layout .use-cases__chat-demo {
    margin: 12px auto 0;
  }
}

.use-cases__chat-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  max-width: 128px;
  height: 22px;
  border-radius: 999px;
  background: #2c211a;
  z-index: 2;
}

.use-cases__chat-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.use-cases__chat-demo::-webkit-scrollbar {
  width: 6px;
}

.use-cases__chat-demo::-webkit-scrollbar-thumb {
  background: rgba(243, 152, 0, 0.45);
  border-radius: 999px;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.chat-message--user {
  justify-content: flex-end;
}

.chat-message__avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.chat-message__avatar--ai {
  background: transparent;
  box-shadow: none;
}

.chat-message__avatar--ai img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-bubble {
  position: relative;
  min-width: 0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(120, 49, 0, 0.1);
}

.chat-message--user .chat-bubble {
  flex: 0 1 auto;
  max-width: min(100%, 520px);
}

.chat-message--ai .chat-bubble {
  flex: 1;
  max-width: calc(100% - 58px);
}

.chat-bubble--user {
  background: #f39800;
  color: #fff;
}

.chat-bubble--user::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -7px;
  border: 7px solid transparent;
  border-left-color: #f39800;
  border-right: 0;
}

.chat-bubble--ai {
  background: #fff;
  border: none;
}

.chat-bubble--ai::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -7px;
  border: 7px solid transparent;
  border-right-color: #fff;
  border-left: 0;
  filter: drop-shadow(-1px 1px 1px rgba(120, 49, 0, 0.06));
}

.chat-bubble p {
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}

.chat-bubble--user p {
  color: #fff;
  font-weight: 500;
}

.chat-message--ai.is-chat-row-hidden {
  opacity: 0;
  transform: scale(0.88) translateY(14px);
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.chat-message--ai.is-chat-pop {
  max-height: none;
  margin-bottom: 20px;
  overflow: visible;
  pointer-events: auto;
  animation: chatPopIn 0.42s cubic-bezier(0.34, 1.35, 0.64, 1) both;
}

.is-chat-hidden {
  display: none !important;
}

.chat-answer.is-typing .is-chat-pending {
  display: none;
}

.typing-cursor--rich {
  display: inline;
  vertical-align: baseline;
}

.typing-cursor::after {
  content: "|";
  animation: typingBlink 0.75s step-end infinite;
  margin-left: 1px;
}

.chat-bubble--user .typing-cursor::after {
  opacity: 0.95;
}

@keyframes chatPopIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(14px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes chatFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes typingBlink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-message--ai.is-chat-pop {
    animation: none;
  }
}

.chat-bubble--ai p,
.chat-bubble--ai .chat-answer {
  color: var(--text-primary);
}

.chat-bubble strong {
  color: var(--main);
  font-weight: 700;
}

.chat-answer__lead {
  font-weight: 600;
  margin-bottom: 16px;
}

.chat-answer__heading {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 14px 0 8px;
  line-height: 1.4;
}

.chat-answer__heading:first-child {
  margin-top: 0;
}

.chat-answer__list,
.chat-answer__questions {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
}

.chat-answer__list li,
.chat-answer__questions li {
  position: relative;
  padding-left: 1em;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 6px;
}

.chat-answer__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--main);
  font-weight: 700;
}

.chat-answer__questions {
  counter-reset: chat-q;
}

.chat-answer__questions li {
  counter-increment: chat-q;
  padding-left: 1.6em;
}

.chat-answer__questions li::before {
  content: counter(chat-q) ".";
  position: absolute;
  left: 0;
  color: var(--main);
  font-weight: 700;
}

.chat-answer p {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.85;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .use-cases__experience {
    padding: 0 16px;
  }

  .use-cases__board {
    padding: 20px 16px 16px;
  }

  .use-cases__timeline-btn {
    grid-template-columns: 4rem 1.5rem minmax(0, 1fr) 1.25rem;
    gap: 8px;
    min-height: 48px;
    padding: 10px 8px;
  }

  .use-cases__timeline-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .use-cases__timeline-entry.is-active .use-cases__timeline-chevron {
    transform: rotate(180deg);
    color: var(--main);
  }

  .use-cases__detail-panel {
    display: none !important;
  }

  .use-cases__timeline-detail {
    display: none;
    width: 100%;
    padding: 0 0 12px;
    box-sizing: border-box;
  }

  .use-cases__timeline-entry.is-active .use-cases__timeline-detail {
    display: block;
  }

  .use-cases__timeline-detail .use-cases__bubble {
    width: 100%;
    box-sizing: border-box;
    gap: 12px;
    padding: 16px;
  }

  .use-cases__scene-image img {
    height: 120px;
  }

  .use-cases__bubble::before,
  .use-cases__bubble::after {
    display: none;
  }

  .use-cases__bubble {
    padding: 18px 16px;
    box-shadow: none;
    border-color: rgba(27, 27, 27, 0.08);
    background: #faf8f4;
  }

  .chat-demo-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
  }

  .chat-demo-intro {
    padding: 0 6px;
  }

  .chat-demo-intro__title {
    font-size: 1.7rem;
  }

  .chat-demo-devices {
    grid-template-columns: 1fr;
  }

  .chat-demo-device {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .use-cases__chat-demo {
    width: min(100%, 360px);
    height: 620px;
    padding: 64px 14px 20px;
  }

  .chat-demo-layout .use-cases__chat-demo {
    margin: 12px auto 0;
  }

  .chat-message__avatar {
    width: 40px;
    height: 40px;
  }

  .chat-message--ai .chat-bubble {
    max-width: calc(100% - 50px);
  }

  .chat-bubble {
    padding: 14px 16px;
  }
}

@media (min-width: 769px) {
  .use-cases__board {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 12px;
    align-items: start;
    padding: 24px 28px 28px;
  }

  .use-cases__schedule-head {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 12px;
  }

  .use-cases__timeline {
    grid-column: 1;
    grid-row: 2;
  }

  .use-cases__detail-panel {
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding-top: 0;
    min-height: 0;
    overflow: visible;
  }

  .use-cases__detail-panel .use-cases__bubble {
    gap: 12px;
    padding: 18px 20px 18px 22px;
    margin-left: 6px;
    max-height: none;
    overflow: visible;
  }

  .use-cases__detail-panel .use-cases__bubble::before,
  .use-cases__detail-panel .use-cases__bubble::after {
    top: var(--bubble-tail-y, 26px);
    transform: none;
  }

  .use-cases__detail-panel .use-cases__scene-image img {
    height: 140px;
  }

  .use-cases__detail-panel .use-case-card__visual {
    display: none;
  }

  .use-cases__timeline-chevron {
    display: none;
  }

  .use-cases__timeline-entry.is-active .use-cases__timeline-detail {
    display: none;
  }
}

@media (max-width: 768px) {
  .use-cases { padding-bottom: 40px; }
  .use-case-card__visual {
    order: 3;
    margin-top: 8px;
  }
  .use-case-card__mock { padding: 14px 12px; }
}

/* ========== CONTACT ========== */
.section--contact {
  background: linear-gradient(180deg, rgba(255, 232, 184, 0.7) 0%, rgba(255, 195, 106, 0.55) 100%);
}

#contact > .container {
  max-width: 1200px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact__desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 32px;
}

.contact__steps { list-style: none; }

.contact__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  font-weight: 500;
}

.contact__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--main-light) 0%, var(--main) 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact__phone {
  margin-top: 28px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--soft-beige);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.contact__phone-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.contact__phone-number {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--main);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.contact__phone-icon {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  flex-shrink: 0;
  background: url("assets/tel.svg") center / contain no-repeat;
}

.contact__phone-number:hover {
  opacity: 0.78;
}

.contact-form {
  background: rgba(255, 253, 248, 0.9);
  border-radius: 28px;
  padding: 44px 38px;
  box-shadow: 0 12px 36px rgba(120, 49, 0, 0.08);
}

.contact-form__title {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 32px;
  text-align: center;
}

.contact-form__title::before {
  content: "＼ ";
}

.contact-form__title::after {
  content: " ／";
}

.form-group {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.form-group label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--main-light), var(--main));
}

.contact-form .required {
  font-size: 0.7rem;
  color: #fff;
  opacity: 0.8;
  margin-left: 4px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: #fff;
  transition: box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(243, 107, 0, 0.35);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.contact-form .btn--primary {
  display: flex;
  width: min(100%, 400px);
  margin: 20px auto 0;
  min-height: 58px;
  background: #191919;
  border-radius: var(--radius-full);
  box-shadow: none;
}

.contact-form .btn--primary:hover {
  background: #333;
  box-shadow: none;
}

.contact-form__note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 14px;
}

.contact-form .btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.contact-form-success {
  background: rgba(255, 253, 248, 0.9);
  border-radius: 28px;
  padding: 56px 38px;
  box-shadow: 0 12px 36px rgba(120, 49, 0, 0.08);
  text-align: center;
}

.contact-form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--main-light), var(--main));
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.contact-form-success__title {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.contact-form-success__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact-form {
    padding: 36px 20px;
    border-radius: 22px;
  }
  .form-group {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .form-group label {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  .form-group input,
  .form-group textarea {
    padding: 13px 14px;
  }
  .section { padding: 64px 0; }
}

/* ========== LAST CTA ========== */
.section--cta {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("assets/bg_img.jpeg") center top / cover no-repeat;
  background-attachment: fixed;
  text-align: center;
  padding: 96px 0;
}

@media (max-width: 768px) {
  .section--cta {
    background-attachment: scroll;
  }
}

.cta__inner { position: relative; z-index: 1; }

.cta__title {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 20px;
}

.cta__desc {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.9;
  margin-bottom: 0;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

#demo {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(160deg, #783100 0%, #5c2800 100%);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  display: block;
  height: 36px;
  width: auto;
}

.footer__copy { font-size: 1rem; margin-top: 8px; }
.footer__legal { font-size: 1rem; }

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__logo {
    height: 28px;
    margin: 0 auto;
  }
}
