/* ================================================
   人間模様トップ（マリッシュ版）専用スタイル
   コンセプト：女性好み・可愛らしく・新しい出会いにドキドキ
   共通styles.cssには依存しない（下層ページはstyles.cssのまま）
   ================================================ */

:root {
  color-scheme: light;
  --bg: #fff6f9;
  --surface: #ffffff;
  --ink: #52343f;
  --muted: #93707d;
  --line: #f6d9e3;
  --pink: #e87ba2;
  --pink-deep: #bd4471;   /* CTA背景・白文字でWCAG AA確保 */
  --pink-hover: #a93a63;
  --pink-soft: #ffe3ec;
  --peach: #fff0e6;
  --lavender: #f4ecfa;
  --link: #1f6fb2;
  --link-soft: #fdeef4;
  --shadow: 0 10px 30px rgba(189, 68, 113, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pr-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.header-link {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(560px 320px at 12% 0%, #ffe9f1 0%, rgba(255, 233, 241, 0) 70%),
    radial-gradient(520px 300px at 92% 18%, #fdeaf7 0%, rgba(253, 234, 247, 0) 70%),
    linear-gradient(180deg, #fff2f7 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-inner {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ふわふわ舞うハート（装飾） */
.hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hearts .h {
  position: absolute;
  color: var(--pink);
  opacity: 0.35;
  animation: floatHeart 7s ease-in-out infinite;
}

.hearts .h1 { left: 4%;  top: 12%; font-size: 22px; animation-delay: 0s; }
.hearts .h2 { left: 88%; top: 8%;  font-size: 16px; animation-delay: 1.2s; }
.hearts .h3 { left: 72%; top: 66%; font-size: 20px; animation-delay: 2.1s; opacity: 0.25; }
.hearts .h4 { left: 16%; top: 78%; font-size: 14px; animation-delay: 3s; }
.hearts .h5 { left: 46%; top: 6%;  font-size: 13px; animation-delay: 1.8s; opacity: 0.28; }
.hearts .h6 { left: 94%; top: 46%; font-size: 24px; animation-delay: 0.6s; opacity: 0.22; }

@keyframes floatHeart {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(189, 68, 113, 0.08);
}

.eyebrow-heart {
  color: var(--pink);
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.34;
  letter-spacing: 0.01em;
  font-weight: 900;
}

h1 {
  font-size: clamp(28px, 6.4vw, 46px);
  max-width: 720px;
}

h2 {
  font-size: clamp(22px, 4vw, 30px);
}

h3 {
  font-size: 19px;
  font-weight: 700;
}

/* H1の蛍光マーカー風アクセント */
.marker {
  background: linear-gradient(transparent 62%, #ffcfe0 62%);
  padding: 0 2px;
}

.hero-disclosure {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-disclosure p {
  margin: 0;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-actions.center {
  justify-content: center;
}

/* ---------- ボタン ---------- */
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.35;
  font-family: inherit;
}

.button:focus-visible,
.header-link:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(189, 68, 113, 0.35);
  outline-offset: 3px;
}

.primary {
  background: var(--pink-deep);
  color: #fff;
  box-shadow: 0 10px 22px rgba(189, 68, 113, 0.28);
}

.primary:hover {
  background: var(--pink-hover);
}

.btn-heart {
  display: inline-block;
  animation: heartBeat 1.6s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 40%, 100% { transform: scale(1); }
  10%           { transform: scale(1.25); }
  20%           { transform: scale(1); }
  30%           { transform: scale(1.18); }
}

.secondary {
  background: var(--surface);
  color: var(--pink-deep);
  border-color: var(--line);
}

.secondary:hover {
  background: var(--pink-soft);
}

.cta-note {
  font-size: 11px;
  line-height: 1.55;
  margin-top: 10px;
}

/* ---------- チャットモック ---------- */
.chat-visual {
  justify-self: center;
  width: min(100%, 340px);
}

.phone-frame {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0 16px 16px;
  overflow: hidden;
}

.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 -16px 14px;
  padding: 12px 18px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  margin: 9px 0;
  padding: 9px 14px;
  border-radius: 18px;
  background: #f7f2f4;
  font-weight: 700;
  font-size: 14px;
}

.bubble.left {
  border-bottom-left-radius: 6px;
}

.bubble.right {
  margin-left: auto;
  background: #ffd7e4;
  border-bottom-right-radius: 6px;
}

.bubble.stamp {
  background: transparent;
  padding: 0 6px;
  font-size: 34px;
  color: var(--pink);
  line-height: 1.2;
}

.typing {
  display: flex;
  gap: 5px;
  width: fit-content;
  margin: 10px 0 2px;
  padding: 10px 13px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: #f7f2f4;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: typingBlink 1.2s ease-in-out infinite;
}

.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBlink {
  0%, 60%, 100% { opacity: 0.3; }
  30%           { opacity: 1; }
}

/* ---------- セクション共通 ---------- */
.section,
.final-cta {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.soft {
  width: 100%;
  max-width: none;
  padding: 36px max(16px, calc((100% - 1040px) / 2));
  background: #ffeaf2;
}

.note-text {
  max-width: 800px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* お悩みチップ */
.worry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 920px;
}

.worry-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.worry-list span::before {
  content: "\2661";
  color: var(--pink);
  font-size: 12px;
}

/* ---------- サービスカード ---------- */
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  gap: 14px;
}

.service-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px 20px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card .label {
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.ad-link-panel {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px dashed var(--pink);
  border-radius: 16px;
  background: var(--link-soft);
}

.tap-guide {
  margin: 0;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 700;
}

.ad-text-link {
  min-height: 34px;
  display: flex;
  align-items: center;
}

.ad-text-link a {
  color: var(--link);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.ad-text-link a:hover {
  color: #155789;
}

.ad-text-link img {
  width: 1px;
  height: 1px;
}

/* ---------- 理由カード ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}

.choice-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tint-pink     { background: #fff1f6; }
.tint-peach    { background: var(--peach); }
.tint-lavender { background: var(--lavender); }

.reason-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink-deep);
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}

/* ---------- 登録3ステップ ---------- */
.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 60px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink-deep);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
}

.steps-list h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.steps-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 更新日・注意・FAQ ---------- */
.update-strip {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.update-strip p {
  margin: 0;
}

.update-strip p + p {
  margin-top: 4px;
}

.caution {
  padding: 24px;
  border: 1px solid #f2d4dc;
  border-radius: 20px;
  background: #fff8fa;
}

.caution p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  padding: 15px 16px;
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "Q";
  flex: 0 0 auto;
  color: var(--pink-deep);
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 16px 16px 42px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 最終CTA ---------- */
.final-cta {
  margin-top: 14px;
  margin-bottom: 30px;
  padding: 30px 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffe3ec 0%, #fdeaf7 55%, var(--lavender) 100%);
  text-align: center;
}

.final-cta p:not(.pr-label) {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.final-cta .hero-actions {
  margin-top: 18px;
}

.final-cta .cta-note {
  margin-top: 12px;
}

/* ---------- フッター ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #503a44;
  color: #ecdce3;
}

.site-footer nav,
.footer-text {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 24px 0 10px;
}

.site-footer a {
  color: #ffd7e4;
  font-size: 13px;
}

.footer-text {
  padding: 0 0 28px;
  color: #d4bfc9;
  font-size: 12px;
}

.footer-text p {
  margin: 8px 0;
}

/* ---------- スマホ追従CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.sticky-cta.visible {
  display: block;
}

.sticky-cta .button {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
}

.sticky-cta .pr-mini {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

body.sticky-visible main {
  padding-bottom: 100px;
}

/* ---------- レスポンシブ ---------- */
.sp-only {
  display: inline;
}

@media (min-width: 600px) {
  .sp-only {
    display: none;
  }
}

@media (min-width: 861px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.7fr);
    padding: 48px 0 42px;
  }

  .sticky-cta {
    display: none !important;
  }

  body.sticky-visible main {
    padding-bottom: 0;
  }
}

@media (max-width: 860px) {
  .header-inner {
    width: min(100% - 24px, 1040px);
    min-height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px 0;
  }

  .header-link {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .hero-inner {
    width: min(100% - 24px, 1040px);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .section,
  .final-cta {
    width: min(100% - 24px, 1040px);
  }

  .soft {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* 動きが苦手な人への配慮 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hearts .h,
  .btn-heart,
  .typing span {
    animation: none;
  }
}
