/*
  ScaleKeep の LP（index.html / index-ja.html / business-ja.html）のスタイル。
  デザインはストアの画像と同じ「暗い背景・高級感」の方向（2026-10-11 にオーナーが選んだもの）。
  ポリシーやサポートなど文書のページは custom.css のまま。
*/

:root {
  --bg: #07130e;
  --bg-2: #0d241b;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f2f7f4;
  --muted: rgba(214, 236, 226, 0.74);
  --accent: #2fbf84;
  --accent-deep: #1e8159;
  --accent-soft: #6fe0ae;
  --warn: #ffb547;
  --radius: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

:lang(ja) body, body:lang(ja) { font-family: "Noto Sans JP", "Inter", system-ui, sans-serif; }

a { color: var(--accent-soft); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }

/* ---- ナビゲーション ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 19, 14, 0.72);
  border-bottom: 1px solid var(--panel-border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; min-width: 0; }
.nav-links a { white-space: nowrap; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }

/* ---- ヒーロー ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 600px at 70% 20%, rgba(47, 191, 132, 0.32), transparent 70%),
    radial-gradient(900px 700px at 0% 100%, rgba(30, 129, 89, 0.35), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding: 72px 0 88px; }
.eyebrow { color: var(--accent-soft); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.12; margin: 0 0 20px; font-weight: 900; letter-spacing: -0.01em; text-wrap: balance; }
/* 日本語の見出しは語の途中で割らない（改行は <br> で決める）。そのぶん大きさの上限を下げる */
:lang(ja) h1 { letter-spacing: 0; line-height: 1.22; word-break: keep-all; font-size: clamp(30px, 4.4vw, 54px); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cta .badge img { height: 54px; width: auto; }
.cta .note { color: var(--muted); font-size: 14px; }

/* 端末の枠と、重ねる通知 */
.device {
  position: relative; width: min(340px, 78vw); margin: 0 auto;
  border-radius: 46px; padding: 9px;
  background: linear-gradient(145deg, #3a3f3d 0%, #121514 40%, #0b0d0c 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 120px rgba(47, 191, 132, 0.16);
}
.device img { border-radius: 38px; }
.hero .device { width: min(330px, 74vw); }
.notif {
  position: absolute; left: -28px; right: -28px; top: 54px;
  background: rgba(246, 250, 248, 0.98); color: #0f1714;
  border-radius: 22px; padding: 14px 16px 16px; text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.notif-head { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #5d6b65; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.notif-head img { width: 30px; height: 30px; border-radius: 7px; }
.notif-head span:last-child { margin-left: auto; text-transform: none; }
.notif-title { margin-top: 8px; font-weight: 700; font-size: 16px; }
.notif-body { font-size: 15px; color: #26332e; }
.notif-actions { position: absolute; left: -28px; right: -28px; top: 196px; display: flex; gap: 10px; }
.notif-actions span {
  flex: 1; text-align: center; padding: 13px 0; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: rgba(18, 30, 25, 0.92); color: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.notif-actions span:first-child { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }

/* ---- 機能 ---- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; margin: 0 0 14px; font-weight: 800; text-wrap: balance; }
:lang(ja) h2, :lang(ja) .feature h3 { line-height: 1.35; word-break: keep-all; }
.section-head p { color: var(--muted); margin: 0; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--panel-border); }
.feature.reverse .feature-media { order: 2; }
.feature h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 12px; line-height: 1.35; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.feature .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent-soft); border: 1px solid rgba(111, 224, 174, 0.4); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }
.feature .device { width: min(300px, 72vw); }

/* ---- 種 ---- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips span { padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border); font-size: 15px; }

/* ---- 安心の 4 点 ---- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- 料金 ---- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 32px; }
.plan.pro { border-color: rgba(47, 191, 132, 0.6); background: linear-gradient(180deg, rgba(47, 191, 132, 0.12), rgba(47, 191, 132, 0.03)); }
.plan h3 { margin: 0 0 6px; font-size: 22px; }
.plan .price { font-size: 30px; font-weight: 800; margin: 0 0 16px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.plan .sub { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---- よくある質問 ---- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---- 業務プランの案内 ---- */
.biz { background: linear-gradient(135deg, rgba(47, 191, 132, 0.16), rgba(255, 181, 71, 0.08)); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.biz h2 { font-size: clamp(22px, 2.6vw, 30px); }
.biz p { color: var(--muted); margin: 0; }
.button { display: inline-block; padding: 14px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #fff; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); box-shadow: 0 16px 40px rgba(47, 191, 132, 0.3); }

/* ---- 最後の CTA とフッター ---- */
.final { text-align: center; background: radial-gradient(800px 400px at 50% 0%, rgba(47, 191, 132, 0.25), transparent 70%); }
.final .cta { justify-content: center; }
footer { border-top: 1px solid var(--panel-border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---- 業務プランのページ ---- */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.notice { color: var(--muted); font-size: 14px; border-left: 3px solid var(--warn); padding: 8px 14px; background: rgba(255, 181, 71, 0.06); border-radius: 0 12px 12px 0; }

/* ---- 飼育の記事 ---- */
.article { width: min(760px, 100% - 32px); margin: 0 auto; }
.article-head {
  padding: 40px 0 32px;
  background: radial-gradient(800px 420px at 80% 0%, rgba(47, 191, 132, 0.22), transparent 70%), linear-gradient(180deg, var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--panel-border);
}
/* 記事の見出しは長いので、LP の見出しの「語の途中で割らない」を外す。対応するブラウザでは文節で折り返す */
.article-head h1, .article-body h2, .article-body h3, .app-box h2 { word-break: normal; word-break: auto-phrase; overflow-wrap: anywhere; }
.article-head h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.35; margin-bottom: 16px; }
.article-head .lead { margin-bottom: 16px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.crumbs a { color: var(--muted); }
.article-meta { font-size: 13px; color: var(--muted); margin: 0; }
.article-body { padding: 16px 0 8px; font-size: 16px; line-height: 1.9; }
.article-body h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 48px 0 14px; }
.article-body h3 { font-size: 18px; margin: 28px 0 8px; }
.article-body p, .article-body li { color: rgba(242, 247, 244, 0.88); }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: 6px; }
.article-body .cite { font-size: 12px; vertical-align: super; line-height: 0; text-decoration: none; margin-left: 1px; }
.article-body table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0 8px; }
.article-body th, .article-body td { border-bottom: 1px solid var(--panel-border); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-body th { color: var(--accent-soft); font-weight: 700; white-space: nowrap; }
.points { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 16px; padding: 18px 22px; margin: 16px 0; }
.points p { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.points ul { margin: 0; }
.sources { font-size: 13px; line-height: 1.7; }
.article-body .sources li { color: var(--muted); overflow-wrap: anywhere; }
.article-notice { margin: 40px 0 24px; }
.app-box { background: linear-gradient(135deg, rgba(47, 191, 132, 0.16), rgba(255, 181, 71, 0.08)); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 72px; }
.app-box h2 { font-size: clamp(20px, 2.4vw, 26px); }
.app-box p { color: var(--muted); margin: 0; }
.app-box .eyebrow { margin-bottom: 8px; }
.app-box .badge img { height: 54px; width: auto; }
.guide-list { display: grid; gap: 16px; padding: 32px 0 72px; }
/* 一覧は記事の本文の枠に入るので、本文の見出しの余白を打ち消す */
.guide-list .card h3 { margin: 0 0 8px; }
a.card { display: block; text-decoration: none; color: var(--text); }
a.card:hover { border-color: rgba(111, 224, 174, 0.5); }
.card .eyebrow { margin-bottom: 6px; }
.guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-cards h3 { margin: 0; line-height: 1.5; }

/* ---- 狭い画面 ---- */
@media (max-width: 860px) {
  /* 列の最小幅を 0 にする（画像の幅の指定で列が広がり、横にはみ出すのを防ぐ） */
  .hero .wrap, .feature, .biz, .app-box { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding: 48px 0 64px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .cta { justify-content: center; }
  .feature { gap: 28px; text-align: center; }
  .feature.reverse .feature-media { order: 0; }
  .feature ul { text-align: left; display: inline-block; }
  .cards { grid-template-columns: 1fr 1fr; }
  .plans, .doc-list, .guide-cards { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .nav-links .hide-sm { display: none; }
  .nav-links { gap: 12px; font-size: 13px; }
}
@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .notif, .notif-actions { left: -12px; right: -12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
