/* PinPath LP — アプリのデザイントークン（lib/core/app/themes/mk_tokens.dart）を Web へ移したもの。
   ja / en / support の 4 ページで共有する。JS には依存しない。 */

:root {
  /* 地はアプリと同じクリーム（MkColors.paper）。カード・シートだけ白で持ち上げる。 */
  --bg: #fcf7ee;
  --bg-alt: #f6efe2; /* 帯（MkColors.paperLo） */
  --surface: #ffffff;
  --paper: #fcf7ee;
  --paper-hi: #fffcf5;
  --paper-lo: #f6efe2;
  --stage: #efe7da;
  --ink: #2b2119;
  --ink-top: #3a2c21;
  --amber: #ee6c2c;
  --amber-deep: #a1481b;
  --amber-text: #c25a22;
  --amber-tint: #fdecdd;
  --teal: #0e8377;
  --teal-tint: #dff0ec;
  --slate: #6a594b;
  --sand: #c4b7a9;
  --border: #ebe0ce;
  --hairline: #f3eadc;
  --radius: 18px; /* MkRadii.card */
  --shadow: 0 1px 2px rgba(43, 33, 25, .05), 0 12px 24px -16px rgba(43, 33, 25, .45);
  --wrap: 1080px;
  /* 見出しは Zen Maru Gothic 900（MkText.display）、中見出し・本文は
     Zen Kaku Gothic New / Noto Sans JP、ラテンの eyebrow は Space Grotesk。 */
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --font-title: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  word-break: break-word;
  overflow-wrap: anywhere;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
/* 本文中のリンクは色だけに頼らず下線でも示す（WCAG 1.4.1）。 */
p a:not(.cta), li a:not(.cta), .prose a:not(.brand):not(.cta) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 10px;
}

/* 和文の eyebrow は大文字化も字間も効かせない（アプリの Eb と同じ扱い）。 */
.eyebrow--jp {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.28;
  margin: 0;
  /* 見出しは単語の途中で折らない（body の anywhere は長い URL 用）。 */
  overflow-wrap: normal;
  word-break: normal;
}

h1 { font-size: clamp(30px, 6.4vw, 52px); }
h2 { font-size: clamp(23px, 3.6vw, 33px); }

/* 中見出しはアプリの MkText.title（Zen Kaku Gothic New 700）に合わせる。
   Zen Maru は見出し（display）だけに使い、面の中の小見出しは角ゴシックにする。 */
h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(17px, 2.2vw, 20px);
  letter-spacing: -.005em;
}

p { margin: 0 0 14px; }
.lead { font-size: clamp(15px, 2.1vw, 18px); color: var(--slate); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 247, 238, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding-block: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.header-spacer { flex: 1; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}
.lang a, .lang span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
}
.lang [aria-current="true"] { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------------- cta */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-hi);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 16px 30px -16px rgba(43, 33, 25, .62);
  transition: transform .18s cubic-bezier(.16, 1, .3, 1);
}
.cta:hover { text-decoration: none; transform: translateY(-1px); }
.cta .cta-mark { color: var(--amber); font-size: 18px; line-height: 1; }

.cta[data-state="pending"] {
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--slate);
  box-shadow: none;
  pointer-events: none;
  cursor: default;
}
.cta[data-state="pending"] .cta-mark { color: var(--sand); }

.cta--small { min-height: 44px; padding: 0 18px; font-size: 14px; }

.cta-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--slate);
}

@media (max-width: 640px) {
  .site-header .cta { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero { padding: clamp(36px, 7vw, 72px) 0 clamp(28px, 5vw, 56px); }

.hero .wrap {
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.05fr .95fr; }
}

.hero-copy h1 { margin-bottom: 16px; }
.hero-shot { justify-self: center; }
.hero-shot img {
  width: min(280px, 72vw);
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

/* --------------------------------------------------------------- section */

section { padding: clamp(34px, 6vw, 64px) 0; }

/* 地はクリーム。帯は一段濃い紙色（paperLo）と細い罫線で区切る。 */
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--hairline);
}
.section-head { max-width: 640px; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head p { color: var(--slate); margin: 10px 0 0; }

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}


.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 15px; margin: 0; }

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--amber-tint);
  color: var(--amber-text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
}
.card-mark--teal { background: var(--teal-tint); color: var(--teal); }

/* -------------------------------------------------------------- features */

.features { display: grid; gap: clamp(36px, 6vw, 72px); }

.feature-row {
  display: grid;
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
}

@media (min-width: 860px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  /* 交互に左右を入れ替える（読み進めるリズムを作る）。 */
  .feature-row:nth-child(even) .feature-shot { order: -1; }
}

.feature-shot { justify-self: center; }
.feature-shot img {
  width: min(240px, 62vw);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

.feature-copy h3 { margin-bottom: 10px; }
.feature-copy > p { color: var(--slate); }

.feature-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.75;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--amber-tint);
  border: 1.5px solid var(--amber);
}
.feature-list strong { font-weight: 700; }
.feature-list span {
  display: block;
  color: var(--slate);
  font-size: 14px;
}

.feature-note {
  margin: 16px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--teal);
  color: var(--slate);
  font-size: 14px;
  line-height: 1.7;
}

/* 無料でできることの補足（Pro パネル内）。 */
.pro-free {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #e6dccd;
  font-size: 14px;
  line-height: 1.7;
}

/* ------------------------------------------------------------------- pro */

.pro-panel {
  background: linear-gradient(180deg, var(--ink-top), var(--ink));
  color: var(--paper-hi);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
}
.pro-panel h2 { color: var(--paper-hi); }
.pro-panel .eyebrow { color: var(--amber); }
.pro-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  margin: 6px 0 18px;
}
.pro-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pro-list li { position: relative; padding-left: 26px; color: #e6dccd; font-size: 15px; }
.pro-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .68em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
}
.pro-note { margin: 20px 0 0; font-size: 13px; color: #c4b7a9; }
.pro-note a { color: var(--amber); }

/* ------------------------------------------------------------------- faq */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 18px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--amber-text);
  font-family: var(--font-mono);
  font-size: 18px;
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--slate); font-size: 15px; margin: 0 0 14px; }

/* -------------------------------------------------------------- cta band */

.cta-band { text-align: center; }
.cta-band .card { padding: clamp(26px, 4vw, 40px) 20px; }
.cta-band h2 { margin-bottom: 16px; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--slate);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 14px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer p { margin: 0 0 6px; }

/* ------------------------------------------------------- support / prose */

.prose { padding: clamp(28px, 5vw, 56px) 0; }
.prose h2 { margin: 32px 0 10px; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--slate); }
.prose li { margin: 6px 0; }
.prose .card { margin: 18px 0; }
.prose .card p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
