/* =========================================================
   cocopi LP — style.css
   ========================================================= */

:root {
  --color-pink: #e94170;
  --color-pink-light: #ff8fb4;
  --color-pink-dark: #b81e52;
  --color-pink-border: #ffd5e0;
  --color-pink-card-border: #f4a0b8;
  --color-pink-bg: #fff3f6;
  --color-pink-bg-2: #fdf0f4;
  --color-pink-soft: #fff8fa;
  --color-pink-soft-2: #fff0f4;
  --color-pink-8: rgba(233, 65, 112, 0.08);
  --color-pink-shadow-25: rgba(233, 65, 112, 0.25);

  --color-text: #1d2022;
  --color-text-muted: #7d8487;
  --color-text-placeholder: #b5bdc0;
  --color-border: #dee2e3;
  --color-faq-bg: #f3f5f6;
  --color-white: #ffffff;

  --shadow-card: 0 4px 14px rgba(233, 65, 112, 0.25);
  --shadow-card-soft: 0 4px 7px rgba(233, 65, 112, 0.18);
  --shadow-cta-outer: 0 11.96px 30px rgba(233, 65, 112, 0.5), 0 0 26px rgba(255, 94, 146, 0.7);
  --shadow-cta-inner: inset 0 -6px 12px rgba(122, 20, 56, 0.5), inset 0 2px 2px rgba(255, 255, 255, 0.8);
  --shadow-cta-card: 0 12px 24px rgba(233, 65, 112, 0.08);

  --font-jp: "Hiragino Sans";
  --font-en: "Hiragino Sans";

  --radius-card: 24px;
  --radius-faq: 16px;
  --radius-pill: 9999px;
  --radius-big: 48px;
  --radius-cta-card: 36px;

  --container: 1200px;
  --section-pad-y: clamp(60px, 12vw, 150px);
  --section-pad-x: 48px;
  --container-outer: calc(var(--container) + var(--section-pad-x) * 2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.text-pink { color: var(--color-pink); }
.text-gradient {
  background: linear-gradient(to right, #fed0dc, var(--color-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   Buttons / Pills
   ========================================================= */
.btn-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 48px;
  min-height: 48px;
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-white);
  background: linear-gradient(to bottom, #ff8fb4 0%, #e94170 45%, #b81e52 100%);
  border: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta-outer), var(--shadow-cta-inner);
  letter-spacing: 0.5px;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), filter 0.15s ease;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
/* 01 Glossy — Glint: 斜めの光が周期的にきらりと走る */
.btn-pill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 60%;
  height: 100%;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  transform: skewX(-20deg);
  animation: glint 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glint {
  0% { left: -140%; }
  14% { left: 180%; }
  100% { left: 180%; }
}
.btn-pill:hover { transform: translateY(-3px) scale(1.04); filter: brightness(1.05); }
.btn-pill:hover::after { animation-duration: 1.2s; }
.btn-pill:active { transform: scale(0.96); }

.btn-pill--sm {
  padding: 10px 24px;
  min-height: 44px;
  font-size: 14px;
}
.btn-pill__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* β募集ゲート: 募集開始前のグレー状態 + 告知テキスト */
.cta-note {
  display: none;
  margin: 0 0 8px;
  color: var(--color-pink);
  font-family: "Hiragino Sans";
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  text-align: center;
}
html.is-beta-closed .cta-note { display: block; }

/* 一旦グレーがけを無効化（デザイン確認のためコメントアウト） */
/*
html.is-beta-closed .btn-pill[data-cta-gate],
html.is-beta-closed .site-header .btn-pill[data-cta-gate],
html.is-beta-closed .cta__form .btn-pill[data-cta-gate] {
  background: linear-gradient(180deg, #d4d4d4 0%, #9e9e9e 45%, #6f6f6f 100%);
  border-color: #e2e2e2;
  box-shadow:
    inset 0 -4px 8px rgba(0, 0, 0, 0.18),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  text-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
html.is-beta-closed .btn-pill[data-cta-gate]:hover {
  transform: none;
  filter: none;
}
*/

.hero__cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero__cta-block .btn-pill {
  display: flex;
  width: 288px;
  height: 56px;
  padding: 16px 32px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(222, 226, 227, 0.6);
}
.site-header__inner {
  max-width: var(--container-outer);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--section-pad-x) + 24px);
}
.site-header__logo img { height: 38px; width: auto; }
.site-header .btn-pill {
  border-radius: 9999px;
  border: none;
  background: linear-gradient(180deg, #FF8FB4 0%, #E94170 45%, #B81E52 100%);
  box-shadow:
    0 -6px 12px 0 rgba(122, 20, 56, 0.50) inset,
    0 2px 2px 0 rgba(255, 255, 255, 0.80) inset,
    0 11.96px 30px 0 rgba(233, 65, 112, 0.50),
    0 0 26px 2px rgba(255, 94, 146, 0.70);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background: linear-gradient(175.9deg, #fff8fa 2.2%, #ffffff 45.2%);
  padding-top: 65px;
  padding-bottom: 65px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -15% auto auto;
  width: 80%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(253, 213, 221, 0.6), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 715px;
  max-width: 100%;
  flex: 0 1 715px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero__badge {
  display: flex;
  padding: 6px 16px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  border-radius: 9999px;
  background: rgba(233, 65, 112, 0.08);
}
.hero__badge-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: stretch;
}
.hero__badge-dot {
  width: 10px;
  height: 10px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  opacity: 0.8894;
  background: #E94170;
  flex-shrink: 0;
}
.hero__badge-text {
  color: #E94170;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 21.6px;
  letter-spacing: 0.3px;
}

.hero__title {
  width: 100%;
  color: #1D2022;
  font-family: "Hiragino Sans";
  font-size: 44px;
  font-style: normal;
  font-weight: 300;
  line-height: 1.45;
  margin: 16px 0 0;
  letter-spacing: 0;
}
.hero__title .text-pink {
  color: #E94170;
  font-family: "Hiragino Sans";
  font-size: inherit;
  font-style: normal;
  font-weight: 300;
  line-height: inherit;
}

.hero__lead {
  font-size: 16px;
  line-height: 28px;
  margin: 36px 0 0;
  color: var(--color-text);
  font-weight: 400;
}
.hero__lead-break {
  display: none;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}

.hero__share {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 16px;
  background: #fffcfd;
  border: 1px solid rgba(233, 65, 112, 0.25);
  border-radius: 12px;
}
.hero__share-label {
  margin: 0;
  color: #e94170;
  text-align: center;
  font-family: "Hiragino Sans";
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}
.hero__share-list {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.hero__share-item {
  display: flex;
  width: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: #ffffff;
  border-radius: 12px;
  text-decoration: none;
  color: #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero__share-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(233, 65, 112, 0.12);
}
.hero__share-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}
.hero__share-name {
  font-family: Roboto, "Hiragino Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  color: #000;
  text-align: center;
  white-space: nowrap;
}

.hero__caption {
  color: #1D2022;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 16px 0 0;
}
.hero__caption-num {
  color: #E94170;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}
.hero__caption-num--1 {
  letter-spacing: -2px;
}
.hero__caption-unit {
  color: #E94170;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* Hero visual — text 右隣に配置 */
.hero__visual {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hero__visual-image {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  margin-left: auto;
}
.hero__visual-bubble-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
}
.hero__visual-character {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}
.hero__visual-phone {
  position: absolute;
  right: 0;
  top: 8%;
  width: 38%;
  z-index: 2;
}
.hero__visual-phone img:first-child {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(124, 35, 70, 0.18);
}
.hero__visual-phone-character {
  position: absolute;
  bottom: 4%;
  left: -36%;
  width: 76%;
  z-index: 3;
}

.hero__visual-bubbles {
  position: absolute;
  right: -8%;
  top: 6%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4;
  pointer-events: none;
}

.speech-bubble {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px 4px 16px 16px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--color-text);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.speech-bubble--right { border-radius: 4px 16px 16px 16px; }

/* =========================================================
   Second section wrapper (shared bunny background)
   ========================================================= */
.second-section {
  position: relative;
  background-image: url('public/images/second-back.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 1600px auto;
}

/* Black pill statement */
.hero__pill-section {
  position: relative;
  z-index: 1;
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 130px var(--section-pad-x) 0;
  text-align: center;
}
.hero__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 560px;
  max-width: 100%;
  height: 70px;
  padding: 24px;
  background: var(--color-text);
  color: #FFF;
  text-align: center;
  font-family: "Hiragino Sans";
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  border-radius: 100px;
}
.hero__pill-triangle {
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 18px solid var(--color-text);
  margin: 0 auto 24px;
}
.hero__post-pill {
  position: relative;
  font-family: "Hiragino Sans", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
  margin: 16px 0 0;
}
.hero__post-pill:first-of-type {
  margin-top: 80px;
}
.hero__post-pill + .hero__post-pill {
  margin-top: 40px;
}
.hero__post-pill__glow,
.hero__post-pill__text {
  display: block;
}
.hero__post-pill__glow {
  position: absolute;
  inset: 0;
  color: #FFF;
  -webkit-text-stroke: 8px #FFF;
  filter: blur(6px);
  pointer-events: none;
}
.hero__post-pill__text {
  position: relative;
  color: #1D2022;
}

/* =========================================================
   Features section
   ========================================================= */
.features {
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 530px 0 0;
}
.features__container {
  position: relative;
  display: flex;
  width: calc(100% - var(--section-pad-x) * 2);
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px var(--section-pad-x);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  background: var(--color-white);
  border-radius: var(--radius-big);
  box-shadow: 0 4px 14px rgba(233, 65, 112, 0.12);
}
.features__hand {
  position: absolute;
  top: 0;
  width: 270px;
  height: 270px;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}
.features__hand--left {
  left: 50%;
  transform: translate(calc(-50% - 300px), -55%);
}
.features__hand--right {
  right: 50%;
  width: 240px;
  height: 240px;
  transform: translate(calc(50% + 312px), -55%);
}
.features__head {
  text-align: center;
  margin-bottom: 48px;
}
.features__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin: 0 0 22px;
}
.features__title-logo {
  height: 1.4em;
  width: auto;
}
.features__subtitle {
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
}

.features__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.features__row {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.feature-card {
  display: flex;
  width: 330px;
  max-width: 100%;
  padding: 36px 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 24px;
  border: 1px solid #F4A0B8;
  background: #FFF;
  box-shadow: 0 4px 14px 0 rgba(233, 65, 112, 0.25);
}
.feature-card__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
}
.feature-card__icon {
  display: flex;
  width: 44px;
  height: 44px;
  padding: 2px 11px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: rgba(233, 65, 112, 0.08);
}
.feature-card__icon img {
  object-fit: contain;
}
.feature-card__icon-img--camera {
  width: 21px;
  height: 19.08px;
}
.feature-card__icon-img--ai {
  width: 18px;
  height: 21.75px;
}
.feature-card__icon-img--chart {
  width: 18.12px;
  height: 17.16px;
}
.feature-card__icon-img--target {
  width: 21px;
  height: 21px;
}
.feature-card__icon-img--key {
  width: 20.8px;
  height: 20.8px;
}
.feature-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
}
.feature-card__head {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}
.feature-card__title {
  min-height: 24px;
  flex: 1 0 0;
  margin: 0;
  color: #1D2022;
  font-family: "Hiragino Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.feature-card__body-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
}
.feature-card__body {
  flex: 1 0 0;
  margin: 0;
  color: #1D2022;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.feature-card__body .text-pink {
  color: #E94170;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

/* =========================================================
   Data Appeal（データに基づく、確かなサポート。）
   ========================================================= */
.data-appeal {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  min-height: 645px;
  background: var(--color-white);
  padding: 50px 0 var(--section-pad-y);
  overflow: hidden;
}
.data-appeal__deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.data-appeal__deco--1 { top: 5px; right: 35px; width: 200px; height: 200px; }
.data-appeal__deco--2 { bottom: 130px; left: -40px; width: 160px; height: 160px; }
.data-appeal__deco--3 { top: 85px; left: 7%; width: 80px; height: 80px; }

.data-appeal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}
.data-appeal__title {
  margin: 100px 0 36px;
  color: #1D2022;
  text-align: center;
  font-family: "Hiragino Sans";
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.data-appeal__title-br {
  display: none;
}
.data-appeal__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 52px;
}

/* --- カード共通（背景はFigma書き出しPNGを使用） --- */
.data-card {
  position: relative;
  flex: 1 1 460px;
  max-width: 553px;
  min-width: 0;
  aspect-ratio: 1106 / 621;
}
.data-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
/* テキストは白カード領域に重ねる */
.data-card__inner {
  position: absolute;
  top: 11%;
  right: 3%;
  bottom: 7%;
  left: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 4%;
  text-align: center;
}
.data-card__num {
  margin: 0;
  font-family: "Roboto", var(--font-jp), sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-pink);
  text-align: center;
}
.data-card__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.data-card__label {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #667075;
  text-align: center;
}
.data-card__body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-text);
  text-align: center;
}

/* --- バッジ（ブルーカード） --- */
.data-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
}
.data-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 1000px;
  background: #e2f0ff;
  color: #4384ea;
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
}

/* --- 2カードの間に立つキャラクター --- */
.data-appeal__character {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 122px;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

/* 2カードは 2×460 + gap52 ≒ 972px 必要なため、約1020px以下で縦積みになる。
   レスポンシブ時の構図:「タイトル(2行)＋テキストのすぐ隣にウサギ → 青カード → ピンクカード」 */
@media (max-width: 1020px) {
  /* container を flex-wrap にし、1行目=タイトル+ウサギ、2行目=カード */
  .data-appeal__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* テキスト+ウサギのセットを中央揃え */
    align-items: center;
    column-gap: 12px;
    row-gap: 28px;
    padding-bottom: 30px;
  }
  /* タイトル(2行・左寄せ)は中身幅に収め、すぐ右にウサギを並べる */
  .data-appeal__title {
    order: 1;
    width: auto;
    margin: 0;
    padding: 0;
    min-height: 0;
    text-align: left;
  }
  .data-appeal__title-br { display: inline; }
  .data-appeal__character {
    order: 2;
    position: static;
    transform: none;
    width: 113px;
    margin: 0;
  }

  /* カードは縦積み: 青 → ピンクの順(常に新しい行へ) */
  .data-appeal__grid {
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .data-card {
    flex: 1 1 auto;
    width: 100%;
    max-width: 553px;
  }
  .data-card--blue { order: 1; }
  .data-card--pink { order: 2; }
}

@media (max-width: 768px) {
  /* スマホでは上下paddingを無しに */
  .data-appeal {
    padding-top: 0;
    padding-bottom: 0;
  }
  .data-appeal__title {
    font-size: 24px;
  }
  .data-card {
    max-width: 460px;
    margin: 10px 0;
  }
  .data-card__num {
    font-size: 30px;
  }
  /* ウサギはタイトルのすぐ隣。スマホ用にサイズ調整 */
  .data-appeal__character {
    width: 91px;
  }
}

/* 横長カード（aspect-ratio 1106/621）は幅が狭いほど縦が低くなるため、
   500px以下ではテキストを縮小し白カード内に収める（背景画像は無加工のまま） */
@media (max-width: 500px) {
  .data-appeal__title {
    font-size: 22px;
  }
  .data-card__inner {
    top: 8%;
    right: 2%;
    bottom: 5%;
    left: 2%;
    gap: 10px;
    padding: 0;
  }
  .data-card__num {
    font-size: 26px;
  }
  .data-card__text {
    gap: 6px;
  }
  .data-card__label {
    font-size: 12px;
  }
  .data-card__body {
    font-size: 13px;
    line-height: 21px;
  }
  .data-card__badges {
    gap: 6px;
  }
  .data-card__badge {
    padding: 7px 14px;
    font-size: 11px;
  }
  .data-appeal__character {
    width: 91px;
  }
}

/* =========================================================
   Steps
   ========================================================= */
.steps {
  background: var(--color-pink-bg);
  padding: 100px 0;
}
.steps__container {
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.steps__title {
  align-self: stretch;
  color: #1D2022;
  text-align: center;
  font-family: "Hiragino Sans", var(--font-jp), sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 36px;
}
.steps__title .text-gradient {
  background: linear-gradient(90deg, #F4A0B8 0%, #E94170 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Hiragino Sans", var(--font-jp), sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.steps__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
}
.step-card {
  display: flex;
  padding: 36px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  border: 1px solid #DEE2E3;
  background: #FFF;
  flex-shrink: 0;
}
.step-card__inner {
  display: flex;
  width: 280px;
  max-width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.step-card__image {
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 16px;
  overflow: hidden;
  height: 199px;
}
.step-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}
.step-card__head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
}
.step-card__num {
  display: flex;
  width: 24px;
  height: 24px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(233, 65, 112, 0.08);
  color: #E94170;
  text-align: center;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}
.step-card__title {
  color: #1D2022;
  text-align: center;
  font-family: "Hiragino Sans", var(--font-jp), sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}
.step-card__body-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
}
.step-card__body {
  flex: 1 0 0;
  color: #1D2022;
  text-align: center;
  font-family: "Hiragino Sans", var(--font-jp), sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  margin: 0;
}

/* =========================================================
   Daily Timeline
   ========================================================= */
.timeline {
  background: var(--color-white);
  padding: 100px 0;
}
.timeline__container {
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: grid;
  grid-template-columns: minmax(0, 407px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.timeline__phone {
  position: relative;
  width: 407px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 407 / 719;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.timeline__phone > img:first-child,
.timeline__phone-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 28px;
  transition: opacity 0.2s ease;
}
.timeline__copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.timeline__title {
  color: #1D2022;
  text-align: center;
  font-family: "Hiragino Sans", var(--font-jp), sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 12px;
}
.timeline__subtitle {
  align-self: stretch;
  color: #7D8487;
  text-align: center;
  font-family: "Hiragino Sans", var(--font-jp), sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin: 0 0 60px;
}

.timeline__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.timeline-row {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.timeline-row:hover,
.timeline-row--active {
  border-color: var(--color-pink);
  box-shadow: var(--shadow-card-soft);
}
.timeline-row__badge {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-pink-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E94170;
  font-family: "Hiragino Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
}
.timeline-row__badge--wide {
  font-size: 13px;
}
.timeline-row__body { flex: 1; }
.timeline-row__heading {
  margin: 0 0 4px;
  color: #1D2022;
  font-family: "Hiragino Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
}
.timeline-row:hover .timeline-row__heading,
.timeline-row--active .timeline-row__heading {
  color: #E94170;
  font-family: "Hiragino Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
}
.timeline-row__sub {
  margin: 0;
  color: #1D2022;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* =========================================================
   Beta CTA
   ========================================================= */
.cta {
  background: linear-gradient(169.6deg, #fff8fa 8.49%, #fff0f4 50%, #fff8fa 91.51%);
  padding: 100px 0;
}
.cta__container {
  display: flex;
  width: 100%;
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.cta__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta__title {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  margin: 0;
}
.cta__lead {
  font-size: 14px;
  line-height: 24px;
  color: var(--color-text);
  margin: 0;
}

.cta__card {
  display: flex;
  padding: 60px 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 36px;
  border: 1px solid rgba(233, 65, 112, 0.10);
  background: #FFF;
  box-shadow: 0 12px 24px 0 rgba(233, 65, 112, 0.08);
}
.cta__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.cta__character {
  width: 138px;
  height: 138px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.cta__card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.cta__card-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  margin: 0;
  color: var(--color-text);
  text-align: center;
  font-family: "Hiragino Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.cta__sparkle {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
.cta__num {
  color: #E94170;
  font-family: Roboto, sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.cta__form {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cta__form input[type="email"] {
  width: 324px;
  padding: 12px 24px;
  align-self: stretch;
  border-radius: 9999px;
  border: 1px solid #DEE2E3;
  background: #FFF;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease;
}
.cta__form input[type="email"]::placeholder { color: var(--color-text-placeholder); }
.cta__form input[type="email"]:focus { border-color: var(--color-pink); }
.cta__form .btn-pill {
  display: flex;
  padding: 12px 48px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  min-height: unset;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(180deg, #FF8FB4 0%, #E94170 45%, #B81E52 100%);
  box-shadow:
    0 -6px 12px 0 rgba(122, 20, 56, 0.50) inset,
    0 2px 2px 0 rgba(255, 255, 255, 0.80) inset,
    0 11.96px 30px 0 rgba(233, 65, 112, 0.50),
    0 0 26px 2px rgba(255, 94, 146, 0.70);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  background: var(--color-faq-bg);
  padding: 65px 0;
}
.faq__container {
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}
.faq__title {
  color: #1D2022;
  text-align: center;
  font-family: "Hiragino Sans";
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 36px;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  width: 638px;
  max-width: 100%;
  padding: 24px;
  align-items: flex-start;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-faq);
  overflow: hidden;
  transition: border-color 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-item.is-expanded { border-color: var(--color-pink); }

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
  color: #1D2022;
  font-family: "Hiragino Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  cursor: pointer;
  list-style: none;
  gap: 16px;
  user-select: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { display: none; }

.faq-item__icon {
  position: relative;
  display: flex;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #FDF0F4;
  transition: background-color 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-item__icon svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq-item__icon-plus { opacity: 1; transform: rotate(0deg); }
.faq-item__icon-close { opacity: 0; transform: rotate(-45deg); }
.faq-item.is-expanded .faq-item__icon { background: #E94170; }
.faq-item.is-expanded .faq-item__icon-plus { opacity: 0; transform: rotate(45deg); }
.faq-item.is-expanded .faq-item__icon-close { opacity: 1; transform: rotate(0deg); }

.faq-item__a {
  padding: 0;
  width: 100%;
  color: #1D2022;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  margin-top: 0;
  transition:
    margin-top 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    line-height 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.12s linear,
    visibility 0s linear 0.3s;
}
.faq-item.is-expanded .faq-item__a {
  line-height: 1.7;
  opacity: 1;
  visibility: visible;
  margin-top: 16px;
  transition:
    margin-top 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    line-height 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.18s linear 0.12s,
    visibility 0s linear 0s;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-text);
  color: var(--color-white);
  padding: 60px 0;
}
.site-footer__inner {
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  text-align: center;
}
.site-footer__logo {
  width: 92px;
  height: 71px;
  margin: 0 auto 24px;
  display: block;
}
.site-footer__note {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}
.site-footer__copyright {
  margin: 24px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-en);
}

/* =========================================================
   Thanks page
   ========================================================= */
.thanks-hero {
  padding: 100px 0;
  background: url('public/images/thanks-back.png') center / cover no-repeat;
}
.thanks-hero__inner {
  max-width: var(--container-outer);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: grid;
  grid-template-columns: 567px 361px;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.thanks-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.thanks-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  background: var(--color-white);
  border: 1px solid rgba(233, 65, 112, 0.5);
  border-radius: 9999px;
  padding: 16px 24px;
  box-shadow: 0 4px 7px rgba(233, 65, 112, 0.25);
}
.thanks-hero__badge-icon {
  flex-shrink: 0;
  width: 17.5px;
  height: 17.5px;
}
.thanks-hero__badge-text {
  color: var(--color-pink);
  font-family: "Hiragino Sans";
  font-size: 24px;
  font-weight: 500;
  line-height: 21.6px;
  letter-spacing: 0.3px;
}
.thanks-hero__title {
  margin: 0;
  color: var(--color-text);
  font-family: "Hiragino Sans";
  font-size: 44px;
  font-weight: 300;
  line-height: 64px;
}
.thanks-hero__title .text-pink {
  color: var(--color-pink);
  font-weight: 300;
}
.thanks-hero__lead {
  margin: 0;
  color: var(--color-text);
  font-family: "Hiragino Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}
.thanks-hero__visual {
  position: relative;
  width: 361px;
  height: 419px;
}
.thanks-hero__character {
  position: absolute;
  left: 84px;
  top: 0;
  width: 193px;
  height: 323px;
  object-fit: contain;
}
.thanks-hero__bubble {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: #1d2022;
  color: var(--color-white);
  padding: 16px;
  border-radius: 24px;
  text-align: center;
  width: max-content;
  max-width: 100%;
}
.thanks-hero__bubble p {
  margin: 0;
  font-family: "Hiragino Sans";
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
}
.thanks-hero__bubble::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #1d2022;
}

.thanks-flow {
  padding: 80px 0;
  background: var(--color-white);
}
.thanks-flow__inner {
  max-width: 1046px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  flex-direction: column;
}
.thanks-flow__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.thanks-flow__chara {
  width: auto;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
}
.thanks-flow__title {
  margin: 0;
  color: var(--color-text);
  font-family: "Hiragino Sans";
  font-size: 32px;
  font-weight: 400;
  text-align: center;
}
.thanks-flow__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.thanks-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--color-white);
  border: 1px solid var(--color-pink);
  border-radius: 24px;
  padding: 25px;
}
.thanks-step__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 44px;
  background: var(--color-pink-bg-2);
  color: var(--color-pink);
  font-family: Roboto, sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.thanks-step__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thanks-step__title {
  margin: 0;
  color: var(--color-pink);
  font-family: "Hiragino Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
}
.thanks-step__text {
  margin: 0;
  color: var(--color-text);
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.thanks-share {
  position: relative;
  padding: 100px 0 50px 0;
  background: url('public/images/thanks-intro.png') center top / cover no-repeat;
}
.thanks-share__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.thanks-share__bubble {
  position: relative;
  display: inline-flex;
  height: 76px;
  padding: 16px;
  justify-content: center;
  align-items: center;
  background: #1d2022;
  color: var(--color-white);
  border-radius: 24px;
  font-family: Roboto, "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
}
.thanks-share__bubble::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #1d2022;
}
.thanks-share__character {
  width: 130px;
  height: 211px;
  object-fit: contain;
}
.thanks-share__text {
  position: relative;
  margin: 0;
  text-align: center;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  line-height: 24px;
}
.thanks-share__text-glow,
.thanks-share__text-main {
  display: block;
}
.thanks-share__text-glow {
  position: absolute;
  inset: 0;
  color: #FFF;
  text-align: center;
  -webkit-text-stroke-width: 5px;
  -webkit-text-stroke-color: #FFF;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  filter: blur(3px);
  pointer-events: none;
}
.thanks-share__text-main {
  position: relative;
  color: #1D2022;
  text-align: center;
  font-family: "Hiragino Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.thanks-share__back {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 183px;
  background: linear-gradient(180deg, #ff8fb4 0%, #e94170 45%, #b81e52 100%);
  box-shadow: var(--shadow-cta-inner);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 9999px;
  font-family: "Hiragino Sans";
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1), filter 0.15s ease;
}
/* 01 Glossy — Glint */
.thanks-share__back::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 60%;
  height: 100%;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  transform: skewX(-20deg);
  animation: glint 3.4s ease-in-out infinite;
  pointer-events: none;
}
.thanks-share__back:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.05);
}
.thanks-share__back:hover::after {
  animation-duration: 1.2s;
}
.thanks-share__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* =========================================================
   Responsive — Intermediate (1024px < viewport ≤ 1199px)
   1440px 完成形と 1024px タブレットモードを滑らかに繋ぐ。
   font-size の縮小はここから開始。
   ========================================================= */
@media (max-width: 1199px) {
  :root {
    /* 1199px → ~48px、1024px → 24px。線形補間で連続変化 */
    --section-pad-x: clamp(24px, calc(24px + (100vw - 1024px) * 0.1371), 48px);
  }

  /* Hero */
  .hero__inner { gap: clamp(16px, 2vw, 24px); }
  .hero__visual { justify-content: center; }
  .hero__visual-image {
    max-width: clamp(320px, 32vw, 420px);
    margin-left: 0;
    margin-right: 0;
  }
  .hero__title,
  .hero__title .text-pink {
    font-size: clamp(28px, calc(9.1vw - 65px), 44px);
    line-height: 1.45;
    white-space: nowrap;
  }
  .hero__lead {
    font-size: clamp(14px, calc(2px + 1vw), 16px);
    line-height: 1.75;
  }

  /* Pill */
  .hero__pill {
    width: min(560px, 100%);
    font-size: clamp(24px, 2.4vw, 32px);
  }
  .hero__post-pill { font-size: clamp(16px, 1.5vw, 20px); }

  /* Features */
  .features__title { font-size: clamp(24px, 2.5vw, 32px); }

  /* Steps */
  .steps__title,
  .steps__title .text-gradient { font-size: clamp(24px, 2.5vw, 32px); }

  /* Timeline */
  .timeline__container { gap: clamp(24px, 3vw, 40px); }
  .timeline__phone { width: clamp(300px, 32vw, 407px); }
}

/* =========================================================
   Responsive — Tablet (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --section-pad-x: 24px;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  /* hero__copy を display:contents にして子要素を hero__inner 直下に並べ、Figma 順に整列 */
  .hero__copy {
    display: contents;
  }
  .hero__badge,
  .hero__title,
  .hero__lead,
  .hero__cta-row,
  .hero__caption {
    margin: 0;
  }
  .hero__badge { order: 1; align-self: center; }
  .hero__title { order: 2; text-align: center; }
  .hero__visual { order: 3; justify-content: center; flex: 0 0 auto; }
  .hero__lead { order: 4; text-align: center; }
  .hero__lead-break { display: block; }
  .hero__cta-row { order: 5; align-self: center; justify-content: center; }
  .hero__caption { order: 6; text-align: center; }
  .hero__title {
    width: auto;
    line-height: 1.45;
    white-space: nowrap;
  }
  .hero__visual-image {
    max-width: clamp(280px, 42vw, 380px);
  }

  .features__container {
    width: 100%;
    padding: 48px 24px;
  }
  .features__row {
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .feature-card {
    width: auto;
    min-width: 0;
    /* 等高ストレッチを解除し、各カードを中身の高さに合わせる
       （テキスト下の余白を消す） */
    align-self: flex-start;
  }
  .feature-card__inner { gap: 12px; }

  .steps__grid { gap: 24px; }
  .step-card__inner {
    width: auto;
    max-width: 280px;
  }

  .timeline__container { grid-template-columns: 1fr; gap: 36px; justify-items: center; }
  .timeline__phone {
    width: min(407px, 100%);
  }

  .cta__head {
    width: 100%;
    max-width: 687px;
    height: auto;
  }
  .cta__form input[type="email"] {
    width: auto;
    flex: 1 1 240px;
  }

  /* Thanks page */
  .thanks-hero { padding: 80px 0; }
  .thanks-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 24px;
  }
  .thanks-hero__title,
  .thanks-hero__title .text-pink {
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.45;
  }
  .thanks-hero__visual { width: auto; }
  .thanks-hero__character {
    left: 50%;
    transform: translateX(-50%);
  }
  .thanks-hero__bubble { max-width: 100%; }

  .thanks-flow { padding: 60px 0; }
  .thanks-flow__chara { height: 96px; width: auto; }
  .thanks-flow__title { font-size: 28px; }

  .thanks-share { padding: 80px 0; }
}

/* =========================================================
   Responsive — Mobile (≤ 768px) — Figma 390px 設計準拠
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --section-pad-x: 20px;
  }

  body { font-size: 14px; }

  /* Header */
  .site-header {
    height: 56px;
  }
  .site-header__inner {
    height: 56px;
    padding: 0 21px;
  }
  .site-header__logo img { height: 28px; }
  /* ヘッダーのコンパクトボタン: 後続の汎用 .btn-pill(line 2104) に
     上書きされないよう .site-header で詳細度を上げる */
  .site-header .btn-pill--sm {
    height: 32px;
    min-height: 32px;
    padding: 0 16px;
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }
  .site-header .btn-pill__icon {
    width: 14px;
    height: 14px;
  }

  /* Hero */
  .hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  .hero__inner {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    padding: 0 20px;
    gap: 24px;
    align-items: stretch;
  }
  /* hero__copy を display:contents にして子要素を hero__inner の直下フレックスアイテム扱いにし、Figma 順に並び替える */
  .hero__copy { display: contents; }
  .hero__badge,
  .hero__title,
  .hero__lead,
  .hero__cta-row,
  .hero__caption { margin: 0; }
  .hero__badge { order: 1; align-self: center; }
  .hero__title { order: 2; align-self: center; text-align: center; width: auto; max-width: 100%; }
  .hero__visual { order: 3; justify-content: center; }
  .hero__lead { order: 4; }
  .hero__cta-row { order: 5; align-self: center; flex-direction: column; gap: 20px; }
  .hero__caption { order: 6; }
  .hero__badge { padding: 4px 12px; }
  .hero__badge-text { font-size: 12px; line-height: normal; }
  .hero__title,
  .hero__title .text-pink {
    font-size: clamp(16px, 5.5vw, 24px);
    line-height: 1.45;
    font-weight: 350;
  }
  .hero__lead {
    font-size: 13px;
    line-height: 22px;
    text-align: center;
  }
  .hero__caption {
    font-size: 11px;
    text-align: center;
  }
  .hero__visual { min-height: 240px; }
  .hero__visual-image { max-width: 320px; margin: 0 auto; }
  .hero__sns {
    justify-content: center;
    margin: 0;
  }
  .btn-pill {
    font-size: 14px;
    padding: 12px 36px;
    min-height: 44px;
  }
  .hero__cta-block .btn-pill {
    width: 282px;
    height: 56px;
    padding: 16px 32px;
    min-height: 56px;
  }

  /* SP では pill セクションのみ非表示。バニーは縦700pxで上部に表示 */
  .second-section {
    background-size: auto 700px;
    padding: 0;
  }
  .hero__pill-section { display: none; }

  /* Features — 白カードを復活し、カード上端をバニーの手あたりに重ねる */
  /* 手の画像が画面端からはみ出すため、横方向だけクリップして横スクロールを防ぐ
     （縦は visible のままなので手の上部の見え方は維持） */
  .features {
    padding: 480px 0 0;
    overflow-x: clip;
  }
  .features__container {
    width: 100%;
    max-width: none;
    padding: 48px 20px;
    background: var(--color-white);
    box-shadow: none;
    border-radius: 0;
    gap: 0;
  }
  /* SP: 手(righthand/lefthand)を白カード上端の左右に前面で重ね、
     キャラがカードを手前で掴んでいるように見せる */
  .features__hand {
    display: block;
    top: 0;
    width: 112px;
    height: 112px;
    z-index: 3;
  }
  /* 中央基準の固定px。背景バニー(background-size:auto 700px=中央固定)と同じ基準なので
     画面幅が変わっても手の位置は動かない（710px時の見た目を維持） */
  .features__hand--left {
    left: 54%;
    right: auto;
    width: 130px;
    height: 130px;
    transform: translate(calc(-50% - 156px), -55%);
  }
  .features__hand--right {
    left: auto;
    right: 57%;
    width: 112px;
    height: 112px;
    transform: translate(calc(50% + 170px), -55%);
  }
  .features__head { margin-bottom: 36px; }
  .features__title {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 12px;
  }
  .features__title-logo { height: 1em; }
  .features__subtitle {
    font-size: 12px;
    font-weight: 350;
  }
  .features__grid { gap: 16px; width: 100%; }
  .features__row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }
  .feature-card {
    width: 100%;
    padding: 24px 20px;
    border-radius: 20px;
    gap: 12px;
  }
  .feature-card__inner { gap: 12px; }
  .feature-card__icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
  }
  .feature-card__head { min-height: auto; }
  .feature-card__title {
    font-size: 14px;
    font-weight: 500;
  }
  .feature-card__body,
  .feature-card__body .text-pink {
    font-size: 12px;
    line-height: 20px;
  }

  /* Steps */
  .steps {
    background: #fff0f4;
    padding: 60px 0;
  }
  .steps__container { padding: 0 20px; }
  .steps__title {
    font-size: 24px;
    margin: 0 0 24px;
  }
  .steps__title .text-gradient { font-size: 24px; }
  .steps__grid {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    flex-wrap: nowrap;
  }
  .step-card {
    width: 100%;
    padding: 24px 20px;
    border-radius: 20px;
  }
  .step-card__inner {
    width: 100%;
    max-width: none;
    gap: 16px;
  }
  .step-card__image {
    height: 160px;
    border-radius: 12px;
  }
  .step-card__num {
    width: 22px;
    height: 22px;
    font-size: 12px;
    border-radius: 10px;
  }
  .step-card__title {
    font-size: 14px;
    font-weight: 500;
  }
  .step-card__body {
    font-size: 12px;
    line-height: 20px;
  }

  /* Timeline */
  .timeline { padding: 60px 0; }
  /* スマホでは「タイトル → サブタイトル → スマホ画像 → リスト」の順に並べる。
     copy を display:contents にして子要素を container 直下のフレックスアイテム化し order で並び替え */
  .timeline__container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .timeline__copy { display: contents; }
  .timeline__title {
    order: 1;
    font-size: 24px;
    margin: 0 0 8px;
  }
  .timeline__subtitle {
    order: 2;
    font-size: 12px;
    color: #7d8487;
    margin: 0 0 32px;
  }
  .timeline__phone {
    order: 3;
    width: 220px;
    height: auto;
    aspect-ratio: 220 / 300;
    border-radius: 24px;
    margin: 0 0 32px;
  }
  .timeline__phone-screen {
    background: none;
  }
  .timeline__list { order: 4; gap: 12px; width: 100%; }
  .timeline-row {
    padding: 16px;
    gap: 16px;
    border-radius: 20px;
  }
  .timeline-row__badge {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }
  .timeline-row__badge--wide { font-size: 10px; }
  .timeline-row__heading,
  .timeline-row:hover .timeline-row__heading,
  .timeline-row--active .timeline-row__heading {
    font-size: 13px;
    line-height: normal;
  }
  .timeline-row__sub { font-size: 11px; }

  /* CTA */
  .cta {
    padding: 60px 0;
    background: linear-gradient(167deg, #fff8fa 0%, #fff0f4 44%, #fff8fa 88%);
  }
  .cta__container {
    padding: 0 20px;
    gap: 16px;
  }
  .cta__head {
    width: 100%;
    max-width: none;
    height: auto;
    margin-bottom: 0;
    gap: 12px;
  }
  .cta__title { font-size: 22px; }
  .cta__lead {
    font-size: 11px;
    line-height: 18px;
  }
  .cta__card {
    padding: 36px 20px;
    border-radius: 24px;
    width: 100%;
  }
  .cta__card-inner { gap: 20px; }
  .cta__character {
    width: 80px;
    height: 80px;
    border-radius: 40px;
  }
  .cta__card-title {
    font-size: 14px;
    gap: 8px;
  }
  .cta__num { font-size: 22px; }
  .cta__form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .cta__form input[type="email"] {
    width: 100%;
    padding: 12px 20px;
    font-size: 13px;
    flex: none;
  }
  .cta__form .btn-pill {
    width: 100%;
    padding: 12px 36px;
    font-size: 14px;
  }

  /* FAQ */
  .faq {
    background: #f3f5f6;
    padding: 60px 0;
  }
  .faq__container {
    padding: 0 20px;
    max-width: none;
  }
  .faq__title {
    font-size: 24px;
    margin: 0 0 24px;
  }
  .faq__list { gap: 8px; }
  .faq-item {
    border-radius: 12px;
    padding: 16px;
    width: 100%;
  }
  .faq-item__q {
    padding: 0;
    font-size: 13px;
    font-weight: 350;
    gap: 12px;
  }
  .faq-item__icon {
    width: 20px;
    height: 20px;
    border-radius: 10px;
  }
  .faq-item__icon svg {
    width: 12px;
    height: 12px;
  }
  .faq-item__a {
    padding: 0;
    font-size: 12px;
  }
  .faq-item.is-expanded .faq-item__a {
    margin-top: 12px;
    line-height: 20px;
  }

  /* Footer */
  .site-footer { padding: 40px 0; }
  .site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .site-footer__logo {
    width: 60px;
    height: 46px;
    margin: 0 0 16px;
  }
  .site-footer__note {
    font-size: 10px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
  }
  .site-footer__copyright {
    margin: 8px 0 0;
    font-size: 10px;
    line-height: 16px;
  }

  /* Thanks page — Section 1: hero / 完了通知 */
  .thanks-hero {
    padding: 40px 0 56px;
    background-position: center top;
  }
  .thanks-hero__inner {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 24px;
    justify-items: center;
  }
  .thanks-hero__copy {
    order: 2;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .thanks-hero__visual {
    order: 1;
    width: 100%;
    max-width: 320px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .thanks-hero__character {
    position: static;
    transform: none;
    width: 160px;
    height: auto;
    margin: 0 auto;
  }
  .thanks-hero__bubble {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    max-width: 100%;
    padding: 12px 16px;
  }
  .thanks-hero__bubble p {
    font-size: 13px;
    line-height: 20px;
  }
  .thanks-hero__bubble::before {
    border-bottom-width: 10px;
    border-left-width: 10px;
    border-right-width: 10px;
    top: -10px;
  }
  .thanks-hero__badge {
    align-self: center;
    padding: 10px 16px;
    gap: 8px;
  }
  .thanks-hero__badge-icon {
    width: 16px;
    height: 16px;
  }
  .thanks-hero__badge-text {
    font-size: 14px;
    line-height: normal;
  }
  .thanks-hero__title,
  .thanks-hero__title .text-pink {
    font-size: 24px;
    line-height: 36px;
  }
  .thanks-hero__lead {
    font-size: 13px;
    line-height: 22px;
    text-align: center;
  }

  /* Thanks page — Section 2: これからの流れ */
  .thanks-flow { padding: 60px 0; }
  .thanks-flow__inner {
    padding: 0 20px;
    gap: 20px;
  }
  .thanks-flow__head {
    gap: 12px;
  }
  .thanks-flow__chara {
    height: 96px;
    width: auto;
  }
  .thanks-flow__title {
    font-size: 22px;
  }
  .thanks-flow__list { gap: 16px; }
  .thanks-step {
    padding: 20px 16px;
    border-radius: 20px;
    gap: 12px;
  }
  .thanks-step__num {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  .thanks-step__title {
    font-size: 14px;
    line-height: 22px;
  }
  .thanks-step__text {
    font-size: 12px;
    line-height: 20px;
  }

  /* Thanks page — Section 3: シェア & 戻る */
  .thanks-share { padding: 60px 0; }
  .thanks-share__inner {
    padding: 0 20px;
    gap: 20px;
  }
  .thanks-share__bubble {
    font-size: 16px;
    line-height: 24px;
    padding: 14px 20px;
  }
  .thanks-share__bubble::after {
    border-top-width: 10px;
    border-left-width: 10px;
    border-right-width: 10px;
    bottom: -10px;
  }
  .thanks-share__character {
    width: 100px;
    height: auto;
  }
  .thanks-share__text,
  .thanks-share__text-glow,
  .thanks-share__text-main {
    font-size: 13px;
    line-height: 22px;
  }
  .thanks-share__back {
    min-width: 0;
    padding: 12px 24px;
    font-size: 13px;
  }
}

/* Tiny phones (≤ 380px) — Figma 基準幅未満の微調整 */
@media (max-width: 380px) {
  .thanks-hero__title,
  .thanks-hero__title .text-pink {
    font-size: 22px;
    line-height: 32px;
  }
  .thanks-flow__title { font-size: 20px; }
  .thanks-share__bubble { font-size: 15px; line-height: 22px; }
}
