/* ==========================================================================
   Habitomo（ハビトモ）— 日本語マーケティングサイト
   ランディングページ (/) とガイド (/guides/) の共通スタイル
   モバイルファースト。ブレークポイント: 375 (base) → 768 (tablet) → 1024 (desktop)
   ========================================================================== */

:root {
  --green: #6cbf3f;
  --green-dark: #58a52f;
  --green-deep: #3c7e1e;
  --green-50: #f2f8ea;
  --green-100: #e4f1d3;
  --green-200: #d3e9b8;
  --beige: #f5f3eb;
  --beige-deep: #edeadd;
  --orange: #f09a4e;
  --orange-dark: #e28536;
  --ink: #3d4a54;
  --muted: #6b7680;
  --line: #e7e5da;
  --star: #ffc933;
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(76, 110, 50, .08);
  --shadow-md: 0 12px 34px rgba(76, 110, 50, .12);
  --shadow-lg: 0 24px 60px rgba(76, 110, 50, .18);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
          -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP",
          "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- ボタン・ストアバッジ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(108,191,63,.35); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px rgba(240,154,78,.4); }
.btn-orange:hover { background: var(--orange-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--green-deep); border: 2px solid var(--green); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-deep); }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges.center { justify-content: center; }
.store-badges a { display: inline-block; transition: transform .15s ease, opacity .15s ease; }
.store-badges a:hover { transform: translateY(-2px); opacity: .9; }
.store-badges img { height: 52px; width: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav { display: none; gap: 26px; align-items: center; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--green-deep); text-decoration: none; }
.header-cta { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, var(--green-100), transparent 60%),
              linear-gradient(180deg, var(--beige), #fff 78%);
  padding: 44px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--green-deep); font-weight: 700; font-size: 13px;
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero h1 { font-size: 30px; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
.hero h1 .hl { color: var(--green-dark); }
.hero-sub { margin-top: 16px; font-size: 16px; color: var(--muted); max-width: 560px; }
.hero .store-badges { margin-top: 26px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green-100); color: var(--green-deep);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.hero-media { position: relative; justify-self: center; }
.hero-media img { width: min(320px, 82vw); border-radius: 32px; filter: drop-shadow(0 30px 50px rgba(76,110,50,.28)); }
.hero-badge {
  position: absolute; left: -8px; bottom: 18px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 12px 16px; text-align: left;
}
.hero-badge .emoji { font-size: 17px; letter-spacing: 2px; }
.hero-badge b { font-size: 14px; display: block; }
.hero-badge small { color: var(--muted); display: block; font-size: 12px; }

/* ---------- セクション ---------- */
section { padding: 62px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head .kicker { color: var(--orange-dark); font-weight: 800; letter-spacing: .12em; font-size: 13px; }
.section-head h2 { font-size: 26px; line-height: 1.4; font-weight: 800; margin-top: 8px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.bg-soft { background: var(--green-50); }
.bg-beige { background: var(--beige); }
.bg-green { background: var(--green-100); }

/* ---------- 機能・使い方カード ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--green-100); margin-bottom: 16px;
}
.card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.step-num { font-weight: 800; color: var(--orange-dark); font-size: 14px; letter-spacing: .05em; margin-bottom: 6px; }

/* ---------- スクリーンショット ---------- */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 6px 20px 22px; margin: 0 -20px;
  -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--green-100); border-radius: 999px; }
.shot { scroll-snap-align: center; background: #fff; border-radius: 22px; box-shadow: var(--shadow-md); overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption { padding: 12px 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- 比較表 ---------- */
.compare { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.compare table { border-collapse: collapse; width: 100%; min-width: 520px; background: #fff;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare thead th { background: var(--green); color: #fff; font-weight: 700; }
.compare th.habitomo, .compare td.habitomo { background: var(--green-50); font-weight: 700; }
.compare thead th.habitomo { color: var(--green); }
.compare .yes { color: var(--green-dark); font-weight: 800; }
.compare .no { color: #c26; }

/* ---------- ガイドグリッド ---------- */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.guide-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; }
.guide-card .tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--orange-dark); }
.guide-card h3 { font-size: 17px; font-weight: 800; margin: 8px 0; color: var(--ink); line-height: 1.5; }
.guide-card p { color: var(--muted); font-size: 14px; flex: 1; }
.guide-card .more { margin-top: 14px; font-weight: 700; color: var(--green-deep); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 16px; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 24px; font-weight: 700; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 0 18px; color: var(--muted); font-size: 15px; }
.faq .ans a { font-weight: 700; }

/* ---------- 最終CTA ---------- */
.cta {
  text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
}
.cta img.logo { width: 96px; margin: 0 auto 18px; border-radius: 24px; box-shadow: var(--shadow-md); }
.cta h2 { color: #fff; font-size: 26px; font-weight: 800; }
.cta p { color: rgba(255,255,255,.92); margin-top: 10px; font-size: 16px; }
.cta .store-badges { margin-top: 26px; }

/* ---------- フッター ---------- */
.site-footer { background: #33402c; color: #d5e2cb; padding: 46px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .06em; margin-bottom: 12px; }
.site-footer a { color: #d5e2cb; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-langs a { display: inline; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 20px; color: #a8bb9b; text-align: center; }

/* ---------- ガイド記事レイアウト ---------- */
.article { padding: 40px 0 60px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--green-deep); }
.article h1 { font-size: 26px; line-height: 1.45; font-weight: 800; letter-spacing: -.01em; }
.article .lede-answer {
  background: var(--green-50); border-left: 5px solid var(--green); border-radius: 12px;
  padding: 18px 20px; margin: 24px 0; font-size: 16px; color: #41503a;
}
.article .lede-answer b { color: var(--green-deep); }
.prose { max-width: 760px; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 38px 0 12px; letter-spacing: -.01em; line-height: 1.5; }
.prose h3 { font-size: 17px; font-weight: 800; margin: 26px 0 8px; }
.prose p { margin: 12px 0; color: #47555f; }
.prose ul, .prose ol { margin: 12px 0 12px 22px; color: #47555f; }
.prose li { margin: 7px 0; }
.prose img { border-radius: 16px; box-shadow: var(--shadow-md); margin: 22px 0; }
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange);
  border-radius: 12px; padding: 20px 22px; margin: 26px 0; box-shadow: var(--shadow-sm);
}
.callout h3 { margin: 0 0 8px; color: var(--orange-dark); font-size: 17px; }
.inline-cta { text-align: center; background: var(--green-50); border-radius: var(--radius); padding: 30px 22px; margin: 40px 0 0; }
.inline-cta h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.inline-cta p { color: var(--muted); margin-bottom: 18px; }
.related { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.related h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }

/* ---------- ユーティリティ ---------- */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.sp-only { display: initial; }

/* ==========================================================================
   タブレット ≥768
   ========================================================================== */
@media (min-width: 768px) {
  .hero { padding: 66px 0 72px; }
  .hero h1 { font-size: 40px; }
  .section-head h2 { font-size: 32px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-auto-columns: 300px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cta h2 { font-size: 32px; }
  .article h1 { font-size: 33px; }
  .sp-only { display: none; }
}

/* ==========================================================================
   デスクトップ ≥1024
   ========================================================================== */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 40px; }
  .hero h1 { font-size: 44px; }
  .hero-media img { width: 360px; }
  .cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 84px 0; }
}
