/* ==========================================================================
   KARURECO landing page
   深緑 (#4E7C3F / #3A5E2F) アクセント + ミント地 + 丸ゴシック見出し。
   参照 LP の「質感」を KARURECO のカラー/中身で再構築 (著作権セーフ・自作)。
   ========================================================================== */

:root {
  --accent: #4e7c3f;
  --accent-dark: #3a5e2f;
  --accent-soft: #eaf2e6;
  --mint: #dceace;
  --mint-deep: #cfe3bf;
  --bg: #ffffff;
  --text-primary: #17201a;
  --text-secondary: #66706a;
  --border: #e3e7e3;
  --card: #ffffff;
  --card-soft: #f2f6ee;
  --pin-red: #d95b4e;
  --pin-brown: #8b6f47;
  --pin-blue: #4282e0;
  --lime: #8fb85f;
  /* 影は控えめに (盛らない)。カードは背景色で分離し、影に頼らない。 */
  --shadow-sm: 0 1px 3px rgba(23, 32, 26, 0.05);
  --shadow-md: 0 3px 10px rgba(23, 32, 26, 0.07);
  --shadow-lg: 0 8px 22px rgba(23, 32, 26, 0.10);
  /* 角は丸くしすぎない。 */
  --radius-xl: 14px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.center { text-align: center; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 42px; width: auto; }
.site-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; font-family: var(--round); }
.site-nav a { color: var(--text-secondary); white-space: nowrap; }
.site-nav a:hover { color: var(--accent-dark); text-decoration: none; }

/* ---------- ヒーロー (ツートーン) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-top {
  background: var(--mint);
  padding: 64px 0 92px;
}
.hero-grid {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.hero-copy { flex: 1 1 52%; max-width: 560px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--accent-dark);
  font-size: 13px; font-weight: 700; font-family: var(--round);
  padding: 7px 16px; border-radius: 999px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.badge.light { background: rgba(255,255,255,.16); color: #fff; }
.badge.light .dot { background: #cdeab6; }

.hero-title {
  font-family: var(--round);
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin: 20px 0 16px;
}
.hero-title em { font-style: normal; color: var(--accent-dark); }

.hero-sub {
  font-family: var(--round);
  font-weight: 700;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--accent-dark);
  margin: 0 0 16px;
}
.hero-desc { max-width: 500px; color: #47554b; font-size: 15px; margin: 0; }

.hero-media { flex: 0 0 auto; position: relative; z-index: 2; }

/* 端末フレーム */
.phone-frame {
  width: 268px; padding: 5px; border-radius: 46px;
  background: #1d1d1f;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
}
.phone-screen { border-radius: 41px; overflow: hidden; background: #000; aspect-ratio: 1206 / 2622; }
.phone-video { width: 100%; height: 100%; object-fit: cover; }
.phone-slides { position: relative; width: 100%; height: 100%; }
.phone-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease-in-out;
}
.phone-slides img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .phone-slides img { transition: none; }
}

/* 浮遊ステッカー */
.hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sticker { position: absolute; display: block; }
.sticker svg { width: 100%; height: 100%; }
.sticker.dot { border-radius: 50%; background: currentColor; }
.c-green { color: var(--accent); }
.c-red { color: var(--pin-red); }
.c-lime { color: var(--lime); }
.c-brown { color: var(--pin-brown); }
.c-blue { color: var(--pin-blue); }
.s1 { width: 44px; height: 44px; top: 40px; left: 48%; transform: rotate(-12deg); }
.s2 { width: 30px; height: 38px; top: 96px; right: 5%; }
.s3 { width: 40px; height: 40px; top: 300px; right: 34%; transform: rotate(10deg); }
.s4 { width: 14px; height: 14px; top: 150px; left: 43%; }
.s5 { width: 22px; height: 22px; top: 250px; left: 40%; transform: rotate(8deg); }
.s6 { width: 16px; height: 16px; top: 70px; right: 24%; }
.s7 { width: 36px; height: 36px; bottom: 150px; right: 3%; transform: rotate(14deg); }

/* ダウンロード帯 */
.hero-download {
  background: var(--accent-dark); color: #fff;
  padding: 26px 0 30px; position: relative; z-index: 2;
}
.hero-download .container {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; text-align: center;
}
.download-lead {
  font-family: var(--round); font-weight: 700; font-size: 15px; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 16px; color: #fff;
}
.download-lead::before, .download-lead::after {
  content: ""; width: 40px; height: 1px; background: rgba(255,255,255,.55);
}
.store-badges { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.store-badge { height: 64px; width: auto; display: block; }
@media (max-width: 480px) {
  .store-badge { height: 56px; }
}
.download-hint { font-size: 12.5px; color: rgba(255,255,255,.75); }

/* ---------- セクション共通 ---------- */
.section, .cases, .features, .trust, .guides { padding: 84px 0; }
.section-alt { background: var(--accent-soft); }
.cases { background: #fff; }
.features { background: #f1f6ec; }
.trust { background: #fff; }

.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-eyebrow {
  font-family: var(--round); font-weight: 700; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-title {
  font-family: var(--round); font-weight: 800;
  font-size: clamp(23px, 3.4vw, 32px); line-height: 1.4; margin: 0; color: var(--text-primary);
}
.section-desc { color: var(--text-secondary); font-size: 15px; margin: 12px auto 0; max-width: 620px; }

/* ---------- Case カード ---------- */
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.case {
  background: var(--card-soft); border-radius: var(--radius-xl);
  padding: 28px 24px 26px;
  transition: transform .2s ease;
}
.case:hover { transform: translateY(-3px); }
.case-label {
  display: inline-block; font-family: var(--round); font-weight: 800; font-size: 13px;
  color: var(--accent); letter-spacing: .06em;
}
.case-persona {
  font-family: var(--round); font-weight: 800; font-size: 21px; margin: 6px 0 18px;
}
.case-bubbles { display: flex; flex-direction: column; gap: 12px; }
.bubble {
  position: relative; margin: 0; padding: 12px 15px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.7;
}
.bubble.problem { background: #f4f3ee; color: #5c5a52; }
.bubble.solution {
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 600;
}
.bubble.solution::before {
  content: "解決"; display: inline-block; font-family: var(--round); font-weight: 800;
  font-size: 11px; color: #fff; background: var(--accent);
  padding: 1px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 1px;
}

/* ---------- 機能 (ジグザグ) ---------- */
.feature-row {
  display: flex; align-items: center; gap: 56px;
  margin-bottom: 40px;
}
.feature-row.reverse { flex-direction: row-reverse; }
.feature-visual { flex: 1 1 50%; }
.feature-visual svg {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  background: #fff;
}
.feature-text { flex: 1 1 50%; }
.feature-text h3 {
  font-family: var(--round); font-weight: 800; font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.45; margin: 0 0 12px;
}
.feature-text p { color: #4b564e; font-size: 15px; margin: 0 0 18px; }
.feature-text strong { color: var(--accent-dark); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--round); font-weight: 700; font-size: 12.5px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px; padding: 5px 13px;
}

/* アイコングリッド */
.feature-icons {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  margin: 48px 0 32px;
}
.ficon {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  font-family: var(--round); font-weight: 700; font-size: 12.5px; color: var(--text-primary);
}
.ficon-badge {
  width: 60px; height: 60px; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: var(--accent);
}
.ficon-badge svg { width: 26px; height: 26px; }

.pill-outline {
  display: inline-block; font-family: var(--round); font-weight: 700; font-size: 15px;
  color: #fff; background: var(--accent);
  border-radius: 999px; padding: 13px 30px;
  transition: background .2s ease;
}
.pill-outline:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- トラスト ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-card {
  background: var(--card-soft); border-radius: var(--radius-xl);
  padding: 30px 26px; text-align: center;
}
.trust-icon {
  width: 56px; height: 56px; border-radius: 10px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.trust-icon svg { width: 28px; height: 28px; }
.trust-card h3 { font-family: var(--round); font-weight: 800; font-size: 18px; margin: 0 0 8px; }
.trust-card p { color: var(--text-secondary); font-size: 14px; margin: 0; }

/* ---------- プラン表 ---------- */
.plan-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); background: #fff; }
.plan-table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
.plan-table th, .plan-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); font-size: 14px; }
.plan-table thead th { vertical-align: top; background: #fff; border-bottom: 2px solid var(--border); }
.plan-table tbody th { text-align: left; font-weight: 600; color: var(--text-primary); background: #fbfcfa; white-space: nowrap; }

/* ==========================================================================
   法務ページ (privacy / terms / tokushoho / account-deletion)
   本文レイアウト + データ表。区切りは枠でなく余白・背景・行下線で作る。
   ========================================================================== */
.legal-header { border-bottom: 1px solid var(--border); }

.legal-main { max-width: 820px; margin: 0 auto; padding: 56px 24px 88px; }
.legal-main h1 {
  font-family: var(--round); font-size: 30px; line-height: 1.4;
  margin: 0 0 22px; color: var(--text-primary);
}
.legal-meta { margin: 2px 0; font-size: 14px; color: var(--text-secondary); }
.legal-lede { margin: 22px 0 8px; font-size: 16px; color: var(--text-primary); }
.legal-main h2 {
  font-family: var(--round); font-size: 20px; line-height: 1.5;
  margin: 40px 0 12px; color: var(--accent-dark);
}
.legal-main h3 { font-size: 16px; margin: 24px 0 8px; color: var(--text-primary); }
.legal-main p { margin: 12px 0; }
.legal-main ol, .legal-main ul { margin: 12px 0; padding-left: 1.4em; }
.legal-main li { margin: 6px 0; }
.legal-main a { color: var(--accent-dark); text-decoration: underline; }

/* データ表: 罫線で囲まず「行下線 + 見出し背景」で分離 (plan-table と同じ流儀) */
.legal-main table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 14px; table-layout: fixed;
}
.legal-main th, .legal-main td {
  padding: 12px 14px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere; word-break: break-word;
}
.legal-main thead th {
  background: var(--card-soft); font-weight: 700; color: var(--text-primary);
  border-bottom: 2px solid var(--border);
}
.legal-main tbody th { font-weight: 600; }

.doc-note {
  margin: 16px 0; padding: 14px 16px; background: var(--accent-soft);
  border-radius: var(--radius-md); font-size: 14px; color: var(--text-primary);
}
.doc-close { margin: 32px 0 0; text-align: right; color: var(--text-secondary); }
.back-to-top {
  display: inline-block; margin-top: 36px; padding: 10px 20px;
  background: var(--accent-soft); border-radius: 999px;
  color: var(--accent-dark); font-weight: 600; font-size: 14px;
}
.back-to-top:hover { background: var(--mint); text-decoration: none; }

@media (max-width: 560px) {
  .legal-main { padding: 36px 18px 64px; }
  .legal-main h1 { font-size: 25px; }
  .legal-main h2 { font-size: 18px; margin-top: 36px; }
  .legal-main table { font-size: 13px; }
  .legal-main th, .legal-main td { padding: 9px 8px; }
}
.plan-row-label { background: #fff !important; }
/* 全列で上端を揃える。上部に固定のバッジ枠 (32px) を確保することで、
   「人気」バッジの有無に関わらずプラン名の高さが揃う。 */
.plan-col-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 32px 4px 12px; position: relative; }
/* おすすめ列は「色の箱」で囲まず、バッジと文字色だけで上品に強調 */
.plan-col-head.featured .plan-name { color: var(--accent-dark); }
.plan-badge {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--round); font-weight: 800; font-size: 11px; color: #fff; background: var(--accent);
  padding: 3px 14px; border-radius: 999px;
}
.plan-name { font-family: var(--round); font-weight: 800; font-size: 17px; }
/* 説明文の高さを揃えることで、下に続く価格の高さも列間で揃う。 */
.plan-desc { font-size: 11.5px; color: var(--text-secondary); font-weight: 400; line-height: 1.5; max-width: 180px; min-height: 3.4em; display: flex; align-items: center; }
.plan-price { font-family: var(--round); font-size: 26px; font-weight: 800; color: var(--accent-dark); margin-top: 2px; }
.plan-price .unit { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.plan-price-yearly { font-size: 11px; color: var(--text-secondary); }
.plan-table td.ok { color: var(--accent); font-weight: 800; font-size: 16px; }
.plan-table td.dim { color: #c3c8c2; }
.plan-common-block { margin: 28px auto 0; max-width: 720px; background: #fff; border-radius: var(--radius-lg); padding: 22px 26px; }
.plan-common-block h3 { font-family: var(--round); font-weight: 800; font-size: 15px; margin: 0 0 12px; color: var(--accent-dark); }
.plan-common-block ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0; padding-left: 20px; }
.plan-common-block li { font-size: 13.5px; color: var(--text-primary); }
.pricing-note { text-align: center; color: var(--text-secondary); font-size: 12.5px; margin: 20px 0 0; }

/* ---------- 最終 CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--accent-dark); color: #fff; padding: 72px 0; text-align: center; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { font-family: var(--round); font-weight: 800; font-size: clamp(21px, 3.2vw, 30px); line-height: 1.5; margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 15px; margin: 0 0 20px; }

/* ---------- フッター ---------- */
.site-footer { background: #16241a; color: #d7ded8; padding: 44px 0 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { height: 26px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; }
.footer-links a { color: #d7ded8; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 12px; color: #9aa79d; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 900px) {
  .feature-icons { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
@media (max-width: 820px) {
  .hero-grid { flex-direction: column; text-align: center; gap: 32px; }
  .hero-copy { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-sub { }
  .phone-frame { transform: rotate(0); width: 240px; }
  .sticker { display: none; }
  .case-grid, .trust-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { flex-direction: column; gap: 28px; text-align: center; }
  .chip-row { justify-content: center; }
  .section, .cases, .features, .trust, .guides { padding: 60px 0; }
}
@media (max-width: 560px) {
  /* 項目が 4 つになったので、狭い端末ではロゴを小さくして 1 行に収める */
  .site-nav { gap: 14px; font-size: 13px; }
  .brand-logo { height: 32px; }
  /* 2列時は全体を凝縮して中央へ（列間の間延び防止） */
  .feature-icons {
    grid-template-columns: repeat(2, 1fr);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    column-gap: 28px;
    row-gap: 26px;
  }
  .plan-common-block ul { grid-template-columns: 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ GUIDES (資料ダウンロード) ============
   参考: Intercom の型 — 生成り地に白いカードが浮かぶ編集記事のような組み方。
   枠線は使わず、面の差と浅い影だけで区切る (全社ルール)。 */
.guides { background: var(--accent-soft); }
.guide-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.guide {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-xl);
  padding: 28px 26px 22px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide-eyebrow {
  display: inline-block; align-self: flex-start;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--accent-dark); background: var(--accent-soft);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 14px;
}
.guide-title {
  font-family: var(--round); font-weight: 800; font-size: 19px;
  margin: 0 0 10px; line-height: 1.45;
}
.guide-desc {
  color: var(--text-secondary); font-size: 14px; line-height: 1.85;
  margin: 0 0 20px; flex: 1;
}
.guide-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--accent-dark);
}
.guide-dl {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 15px; transition: background .18s ease;
}
.guide:hover .guide-dl { background: var(--mint); }

.guide-note {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 8px 20px; margin-top: 20px;
  background: #fff; border-radius: var(--radius-xl);
  padding: 22px 26px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-note:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guide-note strong {
  font-family: var(--round); font-weight: 800; font-size: 17px; white-space: nowrap;
}
.guide-note > span:not(.guide-note-meta) {
  color: var(--text-secondary); font-size: 14px; line-height: 1.8;
}
.guide-note-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; color: var(--accent-dark); white-space: nowrap;
}

@media (max-width: 720px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guide { padding: 24px 22px 20px; }
  .guide-note {
    grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px;
  }
  .guide-note strong { white-space: normal; }
  .guide-note-meta { justify-content: space-between; }
}
