@charset "UTF-8";

/* ============================================
   Google Fonts
   ============================================ */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

/* ============================================
   CSS Custom Properties - Light Mode (default)
   ============================================ */
:root {
  /* --- Neutral Colors --- */
  --color-black: #000000;
  --color-gray-dark: #586266;
  --color-gray-middle: #b4bec2;
  --color-gray-pale: #dfe5e8;
  --color-gray-tint: #f3f4f5;
  --color-white: #ffffff;

  /* --- Brand Colors --- */
  --color-primary: #00a85a;
  --color-secondary: #cceede;
  --color-gradient-start: #c6fbe2;
  --color-gradient-end: #00bc64;

  /* --- Semantic Colors --- */
  --color-bg: #f3f4f5;
  --color-bg-secondary: #f3f4f5;
  --color-bg-surface: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #586266;
  --color-text-muted: #b4bec2;
  --color-border: #b4bec2;
  --color-border-light: #dfe5e8;

  /* --- Typography --- */
  --font-family: "Inter", sans-serif;

  /* --- CTA Section --- */
  --color-cta-bg: #000000;
  --color-cta-text: #ffffff;

  /* --- Bubble --- */
  --color-bubble-bg: rgba(255, 255, 255, 0.5);

  /* --- Gradient Border --- */
  --gradient-border: conic-gradient(
    from 0deg at 50% 50%,
    #00bc64 0deg,
    #6be8a8 45deg,
    #00bc64 70deg,
    #00bc64 110deg,
    #6be8a8 135deg,
    #00bc64 160deg,
    #00bc64 245deg,
    #6be8a8 270deg,
    #00bc64 295deg,
    #00bc64 360deg
  );

  /* --- Shadow --- */
  --shadow-sm: 0px 4px 12px rgba(13, 10, 44, 0.08);
  --shadow-md: 0px 5px 14px rgba(20, 20, 43, 0.05);
}

/* ============================================
   CSS Custom Properties - Dark Mode
   ============================================ */
body.dark {
  --color-black: #ffffff;
  --color-gray-dark: #b4bec2;
  --color-gray-middle: #586266;
  --color-gray-pale: #2a2d31;
  --color-gray-tint: #1a1d21;
  --color-white: #121517;

  --color-primary: #00c96b;
  --color-secondary: #1a3d2b;
  --color-gradient-start: #1a3d2b;
  --color-gradient-end: #00c96b;

  --color-bg: #121517;
  --color-bg-secondary: #1a1d21;
  --color-bg-surface: #1e2226;
  --color-text: #ffffff;
  --color-text-secondary: #b4bec2;
  --color-text-muted: #6b7280;
  --color-border: #3a3f45;
  --color-border-light: #2a2d31;

  --color-cta-bg: #1e2226;
  --color-cta-text: #ffffff;

  --color-bubble-bg: rgba(30, 34, 38, 0.5);

  --shadow-sm: 0px 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0px 5px 14px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Base (extends reset.css)
   ============================================ */
body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

svg {
  display: block;
}

/* SVG logo color inversion for dark mode */
body.dark .header__logo img,
body.dark .footer__logo img,
body.dark .kv__logo img {
  filter: invert(1);
}

.is-sp {
  display: none;
  @media (max-width: 767px) {
    display: block;
  }
}
.is-pc {
  display: block;
  @media (max-width: 767px) {
    display: none;
  }
}

/* ============================================
   Theme Toggle (utility)
   ============================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: var(--color-bg-secondary);
  color: var(--color-text);
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================
   Header
   ============================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;

  @media (max-width: 767px) {
    padding: 12px 16px;
  }
}

.header__logo {
  display: block;
  width: 120px;

  @media (max-width: 767px) {
    width: 120px;
  }
}

.header__logo img {
  width: 100%;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  border-top: 1px solid var(--color-border-light);
}

.footer__logo {
  display: block;
  width: 148px;

  @media (max-width: 767px) {
    width: 111px;
  }
}

.footer__logo img {
  width: 100%;
}

.footer__copyright {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text);
}

/* ============================================
   Button - Login
   ============================================ */
.button-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 16px 24px;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.button-login:hover {
  opacity: 0.85;
}

/* ============================================
   Utility - Inner Container
   ============================================ */
.inner {
  max-width: calc(1200px + 40px * 2);
  margin-left: auto;
  margin-right: auto;
  padding-inline: 40px;

  @media (max-width: 767px) {
    max-width: 600px;
    padding-inline: 24px;
  }
}

/* ============================================
   KV (Hero) Section
   ============================================ */
.kv {
  position: relative;
  overflow: hidden;
  padding: 24px 40px 100px;

  @media (max-width: 767px) {
    padding: 24px 16px 80px;
  }
}

.kv__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  @media (max-width: 767px) {
    gap: 24px;
  }
}

.kv__title {
  font-size: 56px;
  font-size: clamp(42px, calc(56 / 1440 * 100vw), 56px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 2.8px;
  color: var(--color-text);

  @media (max-width: 767px) {
    font-size: 32px;
    text-align: center;
  }
}

.kv__logo {
  width: 360px;

  @media (max-width: 767px) {
    width: 180px;
  }
}

.kv__description {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-text);
  text-align: center;

  @media (max-width: 767px) {
    font-size: 14px;
  }
}

/* KV Chat */
.kv__area {
  width: 100%;
  height: 373px;
  position: relative;
  margin-top: 40px;
  transform: translateX(-170px);

  @media (max-width: 767px) {
    margin-top: 24px;
    height: 350px;
    transform: none;
  }
}

.kv-chat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  height: fit-content;
  position: absolute;

  /* 1: 左端・上 */
  &:nth-child(1) {
    top: 8px;
    left: calc(50% - 680px);
    scale: 0.8;
    .kv-chat__bubble { width: 228px; }
    .kv-chat__user { width: 190px; }
    @media (max-width: 767px) {
      top: 0;
      left: inherit;
      right: calc(50% + 20px);
      scale: 0.5;
      transform-origin: top right;
    }
  }
  /* 2: 左端・下 */
  &:nth-child(2) {
    flex-direction: column-reverse;
    bottom: 0;
    left: calc(50% - 580px);
    scale: 0.95;
    .kv-chat__bubble { width: 240px; }
    .kv-chat__user { width: 200px; }
    @media (max-width: 767px) { display: none; }
  }
  /* 3: 左・上 */
  &:nth-child(3) {
    top: 30px;
    left: calc(50% - 460px);
    scale: 0.9;
    .kv-chat__bubble { width: 245px; }
    .kv-chat__user { width: 210px; }
    @media (max-width: 767px) {
      top: 110px;
      left: inherit;
      right: calc(50% + 40px);
      scale: 0.5;
      transform-origin: top right;
    }
  }
  /* 4: 左・下 */
  &:nth-child(4) {
    flex-direction: column-reverse;
    bottom: 5px;
    left: calc(50% - 350px);
    scale: 1.05;
    .kv-chat__bubble { width: 250px; }
    .kv-chat__user { width: 215px; }
    @media (max-width: 767px) {
      top: inherit;
      bottom: 0;
      left: inherit;
      right: calc(50% - 34px);
      scale: 0.6;
      transform-origin: bottom right;
    }
  }
  /* 5: 左中央・上 */
  &:nth-child(5) {
    top: 10px;
    left: calc(50% - 220px);
    scale: 0.85;
    .kv-chat__bubble { width: 235px; }
    .kv-chat__user { width: 195px; }
    @media (max-width: 767px) {
      top: 0;
      left: inherit;
      right: calc(50% - 26px);
      scale: 0.6;
      transform-origin: top right;
    }
  }
  /* 6: 左中央・下 */
  &:nth-child(6) {
    flex-direction: column-reverse;
    bottom: 0;
    left: calc(50% - 110px);
    scale: 1.1;
    .kv-chat__bubble { width: 252px; }
    .kv-chat__user { width: 218px; }
    @media (max-width: 767px) { display: none; }
  }
  /* 7: 中央・上 */
  &:nth-child(7) {
    top: 40px;
    left: calc(50% - 10px);
    scale: 0.9;
    .kv-chat__bubble { width: 240px; }
    .kv-chat__user { width: 205px; }
    @media (max-width: 767px) {
      top: 60px;
      left: calc(50% - 30px);
      scale: 0.6;
      transform-origin: top left;
    }
  }
  /* 8: 右中央・下 */
  &:nth-child(8) {
    flex-direction: column-reverse;
    bottom: 5px;
    left: calc(50% + 110px);
    scale: 1.05;
    .kv-chat__bubble { width: 248px; }
    .kv-chat__user { width: 212px; }
    @media (max-width: 767px) {
      top: 16px;
      left: calc(50% + 32px);
      scale: 0.5;
      transform-origin: top left;
    }
  }
  /* 9: 右中央・上 */
  &:nth-child(9) {
    top: 15px;
    left: calc(50% + 220px);
    scale: 0.85;
    .kv-chat__bubble { width: 236px; }
    .kv-chat__user { width: 198px; }
    @media (max-width: 767px) { display: none; }
  }
  /* 10: 右・下 */
  &:nth-child(10) {
    flex-direction: column-reverse;
    bottom: 0;
    left: calc(50% + 340px);
    scale: 1.0;
    .kv-chat__bubble { width: 244px; }
    .kv-chat__user { width: 208px; }
    @media (max-width: 767px) {
      top: inherit;
      bottom: 5px;
      left: calc(50% - 36px);
      scale: 0.7;
      transform-origin: bottom left;
    }
  }
  /* 11: 右・上 */
  &:nth-child(11) {
    top: 25px;
    left: calc(50% + 460px);
    scale: 0.9;
    .kv-chat__bubble { width: 240px; }
    .kv-chat__user { width: 200px; }
    @media (max-width: 767px) { display: none; }
  }
  /* 12: 右端・下 */
  &:nth-child(12) {
    flex-direction: column-reverse;
    bottom: 0;
    left: calc(50% + 570px);
    scale: 0.95;
    .kv-chat__bubble { width: 238px; }
    .kv-chat__user { width: 200px; }
    @media (max-width: 767px) { display: none; }
  }
  /* 13: 右端・上 */
  &:nth-child(13) {
    top: 45px;
    left: calc(50% + 680px);
    scale: 0.8;
    .kv-chat__bubble { width: 230px; }
    .kv-chat__user { width: 190px; }
    @media (max-width: 767px) { display: none; }
  }
  /* 14: 左寄り補助・下 */
  &:nth-child(14) {
    flex-direction: column-reverse;
    bottom: 15px;
    left: calc(50% - 530px);
    scale: 0.85;
    .kv-chat__bubble { width: 232px; }
    .kv-chat__user { width: 192px; }
    @media (max-width: 767px) { display: none; }
  }
  /* 15: 右寄り補助・上 */
  &:nth-child(15) {
    top: 5px;
    left: calc(50% + 120px);
    scale: 0.8;
    .kv-chat__bubble { width: 228px; }
    .kv-chat__user { width: 188px; }
    @media (max-width: 767px) { display: none; }
  }

  &.--reverse {
    flex-direction: column-reverse;
  }
}

.kv-chat__agent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kv-chat__avatar {
  width: 64px;
  flex-shrink: 0;
}

.kv-chat__bubble {
  background: var(--color-bubble-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 8px;
}

.kv-chat__bubble-inner {
  background: var(--color-gray-pale);
  border-radius: 12px;
  padding: 24px;
}

.kv-chat__bubble-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text);
}

.kv-chat__user {
  --border-width: 2px;
  padding: var(--border-width);
  border-radius: 12px;
  background: var(--gradient-border);
}

.kv-chat__user p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg-surface);
  padding: 18px;
  border-radius: 10px;
}

/* ============================================
   Section - Common
   ============================================ */

.c-section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.c-section__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  text-align: center;

  @media (max-width: 767px) {
    font-size: 24px;
  }
}

.c-section__title-line {
  width: 56px;
  height: 4px;
  background-color: var(--color-primary);
  @media (max-width: 767px) {
    height: 2px;
  }
}

/* ============================================
   What Is Section
   ============================================ */
.what-is__content {
  margin-top: -40px;
  display: flex;
  gap: 24px;
  align-items: center;

  @media (max-width: 767px) {
    flex-direction: column;
    gap: 0px;
    margin-top: 0;
  }
}

.what-is__visual {
  width: calc(812 / 1200 * 100%);
  margin-left: -72px;
  margin-left: calc(-72px / 1440 * 100vw);
  position: relative;
  @media (max-width: 767px) {
    width: min(100vw, 390px);
    margin-left: 0;
  }
}

.what-is__visual-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: min(calc(12 / 1200 * 100vw), 12px) min(calc(16 / 1200 * 100vw), 16px);
  gap: 8px;
  background: var(--color-text);
  box-shadow: 0px 0px 20px var(--color-gradient-end);
  border-radius: 9999px;
  position: absolute;
  transition: 0.3s;

  &:hover {
    opacity: 0.8;
  }
  @media (max-width: 767px) {
    padding: 6px 8px;
    gap: 4px;
    box-shadow: 0px 0px 10px var(--color-gradient-end);
    border-radius: 12px;
  }

  &.--left {
    bottom: min(calc(94 / 1200 * 100vw), 94px);
    left: min(calc(74 / 1200 * 100vw), 74px);
    @media (max-width: 767px) {
      bottom: 50px;
      left: calc(50% - 120px);
    }
  }

  &.--right {
    background: var(--color-bg-surface);
    bottom: min(calc(94 / 1200 * 100vw), 94px);
    right: min(calc(60 / 1200 * 100vw), 60px);
    @media (max-width: 767px) {
      bottom: 50px;
      right: calc(50% - 130px);
    }

    .what-is__visual-link-text {
      color: var(--color-text);
    }
  }
}

.what-is__visual-link-icon {
  display: inline-block;
  width: min(calc(24 / 1200 * 100vw), 24px);
  height: min(calc(24 / 1200 * 100vw), 24px);
  @media (max-width: 767px) {
    width: 12px;
    height: 12px;
  }
}

.what-is__visual-link-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: min(calc(16 / 1200 * 100vw), 16px);
  line-height: 150%;
  color: var(--color-bg);
  @media (max-width: 767px) {
    font-size: 8px;
  }
}

.what-is__text {
  flex: 1;
  min-width: 0;
}

.what-is__text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  @media (max-width: 767px) {
    font-size: 14px;
  }
}

.what-is__highlight {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-gradient-end);
  text-decoration-thickness: 20%;
  text-underline-offset: 3px;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding-top: 40px;
  margin-top: 40px;
  @media (max-width: 767px) {
    padding-top: 80px;
    padding-bottom: 20px;
    margin-top: 0;
    overflow: hidden;
  }
}

.features__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 120px;

  @media (max-width: 767px) {
    gap: 24px;
    margin-top: 12px;
  }
}

.feature {
  display: flex;
  gap: 48px;
  align-items: center;

  @media (max-width: 767px) {
    flex-direction: column-reverse;
    gap: 0px;
  }
}

.feature--reverse {
  flex-direction: row-reverse;

  @media (max-width: 767px) {
    flex-direction: column-reverse;
  }

  .feature__content {
    @media (max-width: 767px) {
      margin-top: -40px;
    }
  }
}

.feature__content {
  flex: 1;
  min-width: 0;
  @media (max-width: 767px) {
    width: 100%;
  }
}

.feature__sub {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: var(--color-primary);
}

.feature__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  margin-top: 12px;

  @media (max-width: 767px) {
    gap: 8px;
    font-size: 18px;
  }
}

.feature__title-icon {
  width: 40px;
  height: 40px;
  svg {
    width: 100%;
    height: 100%;
  }
  @media (max-width: 767px) {
    width: 28px;
    height: 28px;
  }
}

.feature__description {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);

  @media (max-width: 767px) {
    font-size: 14px;
  }
}

.feature__description p + p {
  margin-top: 0.5em;
}

/* Agent Cards */
.feature__agents-wrap {
  @media (max-width: 767px) {
    padding-left: 24px;
    margin-inline: -24px;
  }
}

.feature__agents {
  margin-top: 24px;
  display: flex;
  gap: 16px;

  @media (max-width: 767px) {
    overflow-x: auto;
  }
}

.feature__agent-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--color-gray-pale);
  border-radius: 8px;
  flex-shrink: 0;
  @media (max-width: 767px) {
    width: 150px;
  }
}

.feature__agent-avatar {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
}

.feature__agent-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  white-space: nowrap;
  @media (max-width: 767px) {
    font-size: 12px;
  }
}

.feature__agent-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 24px;
  background: var(--color-bg-surface);
  border: 2px solid var(--color-gray-middle);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gray-middle);
  line-height: 1.7;
  transition: 0.3s;
  &:hover {
    color: var(--color-gray-dark);
    border-color: var(--color-gray-dark);
  }
  @media (max-width: 767px) {
    padding: 4px 24px;
  }
}

/* Feature Illustration */
.feature__visual {
  flex: 1;
  min-width: 0;
  @media (max-width: 767px) {
    width: min(100vw, 390px);
  }
}

/* Feature CTA */
.feature__cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  @media (max-width: 767px) {
    margin-top: 24px;
  }
}

.feature__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 400px;
  max-width: 100%;
  padding: 20px 40px;
  background: var(--color-primary);
  border: 2px solid var(--color-bg-surface);
  color: #ffffff;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
  box-shadow: 0 0 20px rgba(0, 188, 100, 0.5);
  transition: 0.3s;

  @media (max-width: 767px) {
    width: 100%;
    max-width: 400px;
    font-size: 14px;
    padding: 14px 32px;
  }
}

.feature__cta-btn:hover {
  opacity: 0.7;
}

.feature__cta-btn svg {
  width: 24px;
  aspect-ratio: 1;
  fill: currentColor;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
  padding-inline: 40px;
  padding-block: 40px;
  @media (max-width: 767px) {
    padding-inline: 20px;
    padding-block: 60px 80px;
  }
}

.cta {
  background: var(--color-cta-bg);
  border-radius: 16px;
  padding: 40px 80px;
  text-align: center;

  @media (max-width: 767px) {
    padding: 40px 16px;
  }
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  @media (max-width: 767px) {
    gap: 24px;
  }
}

.cta__title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-cta-text);

  @media (max-width: 767px) {
    font-size: 24px;
  }
}

.cta__description {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-cta-text);

  @media (max-width: 767px) {
    font-size: 14px;
  }
}

.cta__input {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 640px;
  max-width: 100%;

  --border-width: 4px;
  padding: var(--border-width);
  background: var(--gradient-border);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(0, 188, 100, 0.5);
}

.cta__input-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: var(--color-bg-surface);
  border-radius: 999px;
  width: 100%;
  @media (max-width: 767px) {
    padding: 20px;
  }
}

.cta__input-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  aspect-ratio: 1;
  color: var(--color-gray-middle);
}

.cta__input-icon svg {
  width: 24px;
  aspect-ratio: 1;
  fill: currentColor;
}

.cta__input-field {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-text);
  @media (max-width: 767px) {
    font-size: 14px;
  }

  &::placeholder {
    color: var(--color-gray-middle);
  }
}
