/* PingNest — shared styles (mobile-first, web.ping-nest.com と同一トーン) */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-primary: #1C6DD0;
  --color-primary-dark: #1657A8;
  --color-primary-light: #E4EEFB;
  --color-ink: #1C1A1D;
  --color-text: #1C1A1D;
  --color-text-secondary: #5E5A57;
  --color-text-muted: #8A8683;
  --color-bg: #EEF2F8;
  --color-card: #FFFFFF;
  --color-border: #DEE6F0;
  --shadow-card: 0 1.5px 0 var(--color-border), 0 10px 22px rgba(40, 28, 18, 0.06);
  --shadow-btn: 0 8px 20px rgba(28, 109, 208, 0.33);
  --font-family: 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', -apple-system, sans-serif;
  --radius-card: 24px;
  --radius-box: 18px;
  --radius-pill: 999px;
  --max-width: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-weight: 500;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(circle, rgba(28, 20, 18, 0.035) 1.15px, transparent 1.6px);
  background-size: 11px 11px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  /* 追従CTA分の余白 */
  padding-bottom: 76px;
}

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

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

.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--color-ink); }
.logo-img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; display: block; }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.header-link {
  font-size: 12px; font-weight: 700; color: var(--color-primary); text-decoration: none;
  border: 1px solid var(--color-border); padding: 6px 11px; border-radius: var(--radius-pill); white-space: nowrap;
  background: #fff;
  transition: background 0.2s;
}
.header-link:hover { background: var(--color-primary-light); }
.header-link--plain { border: 0; background: transparent; padding: 6px 2px; }

/* ===== Section basics ===== */
.section { padding: 44px 0; }
.section--alt { background: transparent; }
.section--ink { background: transparent; color: var(--color-text); }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 4px;
  color: var(--color-primary); text-transform: uppercase;
}
.section--ink .section-label { color: var(--color-primary); }
.section-title {
  font-size: clamp(21px, 5.4vw, 30px); font-weight: 900; letter-spacing: -0.8px;
  line-height: 1.5; margin-top: 4px; color: var(--color-ink);
}
.section--ink .section-title { color: var(--color-ink); }
.section-head { margin-bottom: 20px; }

/* ===== Hero（白カード） ===== */
.hero { padding: 70px 16px 0; }
.hero-inner {
  position: relative; overflow: hidden;
  background: var(--color-card); border-radius: var(--radius-card);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  padding: 30px 24px 0;
}
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero-badge {
  align-self: flex-start; justify-self: start; width: fit-content;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--radius-pill); background: var(--color-primary-light);
  font-size: 12px; font-weight: 700; color: var(--color-primary);
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary); }
.hero h1 {
  font-size: clamp(29px, 8.4vw, 46px); font-weight: 900; line-height: 1.3;
  letter-spacing: -1.2px; color: var(--color-ink);
}
/* 強調部の途中で折り返させない（「に。」だけが最終行に残るのを防ぐ） */
.hero h1 span { color: var(--color-primary); white-space: nowrap; }
.hero-sub { font-size: clamp(14px, 3.7vw, 16px); color: var(--color-text-secondary); max-width: 34em; text-wrap: pretty; }
/* ヒーロービジュアル（端末2枚 + マスコット）: トップLP / for-clubs 共通 */
.hero-visual {
  position: relative; align-self: center;
  width: min(90%, 380px); margin: 0 auto 18px;
  /* 手前の端末が枠から溢れない高さ（溢れるとコピーに被る） */
  aspect-ratio: 380 / 382;
}
.hero-phone { position: absolute; margin: 0; }
.hero-phone img {
  display: block; width: 100%;
  filter: drop-shadow(0 14px 28px rgba(28, 26, 29, 0.22));
}
/* 奥: 少し小さく傾けて主役を引き立てる */
.hero-phone--back { width: 42%; left: 23%; bottom: 4%; z-index: 1; transform: rotate(-7deg); }
/* 手前: 最大・ほぼ正対で主役 */
.hero-phone--front { width: 48%; right: 0; bottom: 0; z-index: 2; transform: rotate(3deg); }
/* マスコット: 画面を隠さないよう手前・左下の余白に配置 */
.hero-mascot {
  position: absolute; left: 0; bottom: -1%; z-index: 3;
  width: 26%; height: auto;
  animation:
    monnya-hero-enter 1.6s cubic-bezier(0, 0, 0.58, 1) both,
    monnya-hero-float 6s ease-in-out 1.6s infinite;
}
/* プレイヤー版モンにゃ: 管理者版（334x480, 26%）と描画高さが揃う幅にする
   （体型比が異なるため: 26% × (480/334) × (607/746) ≈ 30%） */
.hero-mascot--hello { width: 30%; }
@keyframes monnya-hero-enter {
  from { opacity: 0; transform: translateY(60px); }
}
@keyframes monnya-hero-float {
  50% { transform: translateY(-10px); }
}

/* ===== Store badges ===== */
.store-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.store-badges--center { justify-content: center; }
.store-badge { display: block; text-decoration: none; transition: transform 0.2s, opacity 0.2s; }
.store-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.store-badge img { display: block; height: 46px; width: auto; }
.store-badge img.store-badge-apple { height: 42px; }

/* ===== Trust strip ===== */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--color-border);
  margin: 18px 16px 0; border-radius: var(--radius-box); overflow: hidden;
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
}
.trust div { background: var(--color-card); padding: 14px 8px; text-align: center; }
.trust dt { font-size: 15px; font-weight: 800; color: var(--color-ink); line-height: 1.5; }
.trust dd { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; line-height: 1.6; }


/* ===== Features ===== */
.features { display: flex; flex-direction: column; gap: 12px; }
.feature {
  display: flex; gap: 14px; align-items: center; padding: 16px;
  border-radius: var(--radius-box); background: var(--color-card);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
}
.feature img { flex: none; width: 120px; border-radius: 10px; display: block; }
.feature-no { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--color-primary); }
.feature h3 { font-size: 15px; font-weight: 700; color: var(--color-ink); margin-top: 2px; line-height: 1.55; }
.feature p { font-size: 12.5px; color: var(--color-text-secondary); margin-top: 6px; text-wrap: pretty; }

/* ===== Steps ===== */
.steps { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-number {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 15px; font-weight: 700; color: var(--color-ink); line-height: 1.7; }
.step p { font-size: 13px; color: var(--color-text-secondary); margin-top: 2px; }
/* オーナー向け3ステップ（イラスト） */
.steps-illust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; list-style: none; }
.steps-illust img { width: 100%; display: block; }
.steps-illust h3 { font-size: 13px; font-weight: 700; color: var(--color-ink); margin-top: 4px; line-height: 1.6; }
.steps-illust p { font-size: 11.5px; color: var(--color-text-secondary); line-height: 1.7; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  padding: 14px 16px; border-radius: 14px; background: var(--color-card);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
}
.faq-item summary {
  font-size: 14px; font-weight: 700; color: var(--color-ink); line-height: 1.7;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 18px; font-weight: 400; color: var(--color-primary); line-height: 1.3;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { font-size: 13px; color: var(--color-text-secondary); margin-top: 8px; text-wrap: pretty; }

/* ===== Problem list（オーナー向け） ===== */
.problems { display: flex; flex-direction: column; gap: 10px; }
.problem {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 16px; border-radius: 14px; background: var(--color-card);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
}
.problem img { flex: none; width: 96px; height: 64px; object-fit: contain; }
.problem h3 { font-size: 15px; font-weight: 700; color: var(--color-ink); line-height: 1.6; }
.problem p { font-size: 13.5px; color: var(--color-text-secondary); text-wrap: pretty; }
.problem h3 + p { font-size: 13px; margin-top: 4px; }

/* ===== Solution cards（オーナー向け） ===== */
.solutions { display: flex; flex-direction: column; gap: 12px; }
.solution {
  display: flex; flex-direction: column;
  padding: 18px; border-radius: var(--radius-box); background: var(--color-card);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
}
.solution-head { display: flex; align-items: center; gap: 10px; }
.solution-no {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: var(--color-primary-light); color: var(--color-primary);
  font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.solution h3 { font-size: 15.5px; font-weight: 700; color: var(--color-ink); line-height: 1.6; }
.solution p { font-size: 13px; color: var(--color-text-secondary); margin: 10px 0 12px; text-wrap: pretty; }
.solution-shot {
  display: flex; align-items: center; justify-content: center;
  margin-top: auto; /* カード高が揃ったとき端末画像の下端を揃える */
  padding: 10px; border-radius: 12px; background: var(--color-bg);
}
.solution-shot img {
  width: 40%; min-width: 132px; max-width: 184px; /* カード幅に追従（2カラム時に大きく） */
  display: block; filter: drop-shadow(0 10px 20px rgba(28, 26, 29, 0.16));
}

/* ===== Owner banner ===== */
.owner-banner {
  margin: 22px 0; padding: 24px; border-radius: var(--radius-card); color: #fff;
  background: var(--color-primary);
  box-shadow: var(--shadow-btn);
}
.owner-banner .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; color: #BBDEFB; text-transform: uppercase; }
.owner-banner h2 { font-size: 19px; font-weight: 900; margin-top: 6px; line-height: 1.6; }
.owner-banner p { font-size: 13px; color: #D6E7F8; margin: 8px 0 14px; text-wrap: pretty; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 14px;
  font-size: 14px; font-weight: 700; text-decoration: none; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { color: #fff; background: var(--color-primary-dark); }
.btn--accent { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-btn); font-size: 15px; padding: 13px 24px; }
.btn--accent:hover { color: #fff; background: var(--color-primary-dark); }
.btn--white { background: #fff; color: var(--color-primary); }
.btn--white:hover { color: var(--color-primary-dark); }

/* ===== CTA ===== */
.cta { padding: 48px 0; text-align: center; }
.cta h2 { font-size: clamp(22px, 5.6vw, 32px); font-weight: 900; color: var(--color-ink); letter-spacing: -0.8px; line-height: 1.5; }
.cta p { font-size: 14px; color: var(--color-text-secondary); margin: 8px 0 20px; }
.cta--ink { background: var(--color-primary); }
.cta--ink h2 { color: #fff; }
.cta--ink p { color: #D6E7F8; }

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 12px;
}
.sticky-cta-copy { flex: 1; min-width: 0; }
.sticky-cta-copy strong { display: block; font-size: 13px; font-weight: 700; color: var(--color-ink); line-height: 1.5; }
.sticky-cta-copy span { font-size: 11px; color: var(--color-text-muted); }

/* ===== Footer ===== */
.footer { padding: 32px 0 36px; text-align: center; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.footer-links a { font-size: 12.5px; color: var(--color-text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--color-primary); }
.footer-copy { font-size: 12.5px; color: var(--color-text-muted); }

/* ===== Fade-in ===== */
/* JS無効環境で非表示のままにならないよう、html.js が付いた場合のみ初期非表示にする */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Tablet / Desktop ===== */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 96px 20px 0; }
  .hero-inner {
    display: flex; align-items: center; gap: 48px;
    max-width: var(--max-width); margin: 0 auto; padding: 56px 48px;
  }
  .hero-copy { flex: 1 1 auto; gap: 18px; }
  .hero-visual { flex: none; width: clamp(300px, 34vw, 380px); margin: 0; }
  /* 端末（left:23%〜）と重ならないよう左へ逃がす（モバイルはカード端で見切れるため無効） */
  .hero-mascot--hello { left: -9%; }
  .trust { max-width: 720px; margin: 26px auto 0; }
  .section-head { text-align: center; margin-bottom: 32px; }
  .features, .problems { flex-direction: row; flex-wrap: wrap; }
  /* Solutionは4枚を2×2に（3+1で最後だけ横長になるのを避ける） */
  .solutions { display: grid; grid-template-columns: 1fr 1fr; }
  .problem { flex: 1 1 210px; flex-direction: column; text-align: center; padding: 22px 18px; gap: 12px; }
  .problem img { width: 100%; height: 104px; }
  .feature { flex: 1 1 300px; flex-direction: column; align-items: flex-start; }
  /* 管理者LP（.solution-shot ≈184px）と同水準の端末サイズに揃える */
  .feature img { width: 180px; align-self: center; }
  .steps { flex-direction: row; }
  .step { flex: 1 1 260px; }
  /* align-items: start で、開いた項目に隣の閉じた項目が引き伸ばされないようにする */
  .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
  .owner-banner { padding: 32px; }
}

@media (min-width: 1080px) {
  .hero-visual { width: 430px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .store-badge:hover { transform: none; }
  .hero-mascot { animation: none; }
}
