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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 400;
  color: #2D2D2D;
  background: #FFF5F8;
  line-height: 1.7;
  padding-top: 0;
  overflow-x: hidden;
}

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

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

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

/* ========== ヒーローセクション ========== */
.hero {
  padding: 40px 20px 0;
  background: #FFF5F8;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-text {
  text-align: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-top: 24px;
}

.hero-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
  transform: translateX(10%);
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
  color: #2D2D2D;
}

.hero-sub {
  font-size: 14px;
  color: #6B6B6B;
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ========== トークバブル流れるセクション ========== */
.bubble-marquee {
  overflow: hidden;
  padding: 16px 0;
  margin-top: 80px;
  background: #fff;
  border-top: 1px solid rgba(255, 107, 157, 0.12);
  border-bottom: 1px solid rgba(255, 107, 157, 0.12);
}

.bubble-track {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}

.bubble-pair {
  display: inline-flex;
  gap: 10px;
  margin-right: 32px;
  flex-shrink: 0;
}

.bubble {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B9D, #FF8E72);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 18px 18px 4px 18px;
  flex-shrink: 0;
}

.bubble.alt {
  background: #fff;
  color: #FF6B9D;
  border: 1.5px solid rgba(255, 107, 157, 0.25);
  border-radius: 18px 18px 18px 4px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.bubble-track.reverse {
  animation: marquee-reverse 50s linear infinite;
}

@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.bubble-marquee-top {
  margin-top: 0;
}

/* ========== CTAボタン ========== */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B9D, #FF8E72);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

/* ========== 3ステップ ========== */
.steps {
  padding: 48px 0;
}

.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 32px;
  color: #2D2D2D;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(255, 107, 157, 0.1);
}

.step-num {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B9D, #FF8E72);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.step-img {
  margin: 0 auto 14px;
  width: 120px;
  height: auto;
}

.step-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: #2D2D2D;
}

/* ========== 機能紹介 ========== */
.features {
  padding: 80px 0 48px;
  background: #FFF5F8;
  overflow: hidden;
}

/* スマホ: 縦並び（テキスト上・画像下） */
.feature-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin: 0 auto 56px;
  padding: 0 24px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

/* スマホでは reverse も同じ縦並び */
.feature-row.reverse {
  flex-direction: column;
}

.typea-img {
  width: 90%;
  max-width: 400px;
}

.feature-text {
  flex: 1;
  min-width: 0;
}

.feature-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.feature-heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #FF6B9D;
}

.feature-desc {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.8;
}

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

/* チャート＋キャラクターのコンボ */
.feature-combo {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0;
}

.combo-char {
  width: 100px !important;
  height: auto;
  margin-left: -8px;
  flex-shrink: 0;
}

.combo-char-lg {
  width: 110px !important;
}

.summary-img {
  width: 55%;
  max-width: 220px;
}

/* ========== レーダーチャート ========== */
.radar-wrap {
  width: 180px;
  height: 180px;
}

.radar-chart {
  width: 100%;
  height: 100%;
}

.radar-data {
  animation: radarGrow 1s ease-out forwards;
  transform-origin: center;
}

@keyframes radarGrow {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

/* ========== 愛情表現カード ========== */
.love-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(255, 107, 157, 0.12);
  width: 100%;
}

.love-header {
  background: linear-gradient(135deg, #FF6B9D, #FF4B7B);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
}

.love-counts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 8px;
  background: rgba(255, 107, 157, 0.06);
}

.love-count {
  text-align: center;
}

.love-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.love-self { color: #FF6B9D; }
.love-partner { color: #FF8E72; }

.love-label {
  font-size: 10px;
  color: #6B6B6B;
}

.love-heart {
  font-size: 18px;
  color: #FF6B9D;
}

.love-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px 10px;
}

.love-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
}

.badge-self {
  background: rgba(255, 107, 157, 0.1);
  color: #FF6B9D;
}

.badge-partner {
  background: rgba(255, 142, 114, 0.1);
  color: #FF8E72;
}

/* ========== CTAセクション ========== */
.cta-section {
  text-align: center;
  padding: 48px 0 56px;
}

.cta-img {
  margin: 0 auto 20px;
  width: 180px;
  height: auto;
}

.cta-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #2D2D2D;
}

/* ========== フッター ========== */
.footer {
  text-align: center;
  padding: 40px 20px 32px;
  background: #fff;
}

.footer-img {
  margin: 0 auto 12px;
  width: 64px;
  height: auto;
}

.footer-app {
  font-size: 18px;
  font-weight: 700;
  color: #FF6B9D;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-nav a {
  font-size: 13px;
  color: #6B6B6B;
  transition: color 0.2s;
}

.footer-nav a:active {
  color: #FF6B9D;
}

.footer-copy {
  font-size: 12px;
  color: #AAAAAA;
}

/* ========== よくある質問 ========== */
.faq {
  padding: 48px 0 56px;
  background: #fff;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #FFF5F8;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 157, 0.1);
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  padding: 18px 20px;
  cursor: pointer;
  color: #2D2D2D;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: #FF6B9D;
  flex-shrink: 0;
  transition: transform 0.3s;
}

details[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.8;
  padding: 0 20px 18px;
}

/* ========== アニメーション ========== */

/* フェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* バウンス */
.bounce {
  animation: bounce 3s ease-in-out infinite;
}

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

/* パルス */
.pulse {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35); }
  50% { box-shadow: 0 4px 28px rgba(255, 107, 157, 0.55); }
}

/* ========== タブレット以上 ========== */
@media (min-width: 600px) {
  .container {
    max-width: 560px;
  }

  .hero {
    padding: 48px 40px 0;
  }

  .hero-inner {
    flex-direction: row;
    gap: 24px;
    justify-content: center;
  }

  .hero-text {
    flex: 1;
    min-width: 0;
    text-align: left;
    padding-left: 8%;
  }

  .hero-visual {
    flex: 1.2;
    min-width: 0;
    margin-top: 0;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-img {
    max-width: 340px;
    transform: none;
  }

  .step-list {
    flex-direction: row;
    gap: 16px;
  }

  .step-card {
    flex: 1;
  }

  .section-title {
    font-size: 26px;
  }

  .feature-row {
    flex-direction: row;
    text-align: left;
    max-width: 900px;
    gap: 40px;
    padding: 0 40px;
    margin-bottom: 72px;
  }

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

  .feature-heading {
    font-size: 24px;
  }

  .feature-desc {
    font-size: 15px;
  }

  .radar-wrap {
    width: 200px;
    height: 200px;
  }

  .combo-char {
    width: 100px !important;
  }

  .love-num {
    font-size: 24px;
  }

  .love-badge {
    font-size: 10px;
  }
}

/* ========== PC ========== */
@media (min-width: 960px) {
  .container {
    max-width: 720px;
  }

  .hero {
    padding: 60px 60px 0;
  }

  .hero-inner {
    gap: 40px;
  }

  .hero-text {
    padding-left: 10%;
  }

  .hero-visual {
    flex: 1.3;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-img {
    max-width: 400px;
  }

  .feature-row {
    max-width: 1100px;
    gap: 64px;
    padding: 0 60px;
    margin-bottom: 80px;
  }

  .feature-heading {
    font-size: 28px;
  }

  .feature-desc {
    font-size: 16px;
  }

  .radar-wrap {
    width: 260px;
    height: 260px;
  }

  .combo-char {
    width: 130px !important;
  }

  .love-header {
    font-size: 13px;
    padding: 10px 16px;
  }

  .love-num {
    font-size: 28px;
  }

  .love-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
}
