/* =========================================================================
   はねゴル — landing & privacy styles
   Type-driven, calm, focused. Light + dark.
   ========================================================================= */

:root {
  /* Brand */
  --brand-600: #2D7A3E;
  --brand-700: #246E32;
  --brand-800: #1B5E20;
  --brand-50:  #EAF6EC;
  --brand-100: #D4ECD8;

  /* Neutral (light) */
  --bg:        #FBFBF8;
  --surface:   #FFFFFF;
  --surface-2: #F4F3EE;
  --border:    #E5E3DA;
  --text:      #14181A;
  --text-2:    #4A5256;
  --text-3:    #6E767B;
  --link:      var(--brand-700);
  --link-hover:var(--brand-800);

  --shadow-sm: 0 1px 2px rgba(20, 24, 26, 0.04), 0 1px 3px rgba(20, 24, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(20, 24, 26, 0.06), 0 2px 4px rgba(20, 24, 26, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(20, 24, 26, 0.18);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-icon: 22.37%; /* iOS squircle approximation */

  --max-w:     720px;
  --max-w-wide: 960px;

  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
             -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
             Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0E1A12;
    --surface:   #142119;
    --surface-2: #1A2A20;
    --border:    #25382C;
    --text:      #ECEFEA;
    --text-2:    #B8C0BB;
    --text-3:    #8A938E;
    --link:      #7DD391;
    --link-hover:#A8E2B5;

    --brand-50:  #15281C;
    --brand-100: #1B3624;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-700); color: #fff; padding: 8px 12px;
  border-radius: 0 0 6px 6px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 18px 22px;
}
.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.site-header__brand:hover { color: var(--text); text-decoration: none; }
.site-header__mark {
  border-radius: var(--radius-icon);
  box-shadow: var(--shadow-sm);
}
.site-header__name { font-size: 1.05rem; }
.site-header__nav { display: flex; gap: 18px; font-size: 0.92rem; }
.site-header__nav a { color: var(--text-2); }
.site-header__nav a:hover { color: var(--link); }

/* ---- Main / shared ---- */
.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 22px 64px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 32px 0 56px;
}
.hero__icon {
  width: 156px;
  height: 156px;
  margin: 0 auto 28px;
  border-radius: var(--radius-icon);
  box-shadow:
    0 30px 60px -20px rgba(45, 122, 62, 0.45),
    var(--shadow-md);
}
@media (prefers-color-scheme: dark) {
  .hero__icon {
    box-shadow:
      0 30px 60px -20px rgba(0, 0, 0, 0.7),
      0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}
.hero__title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.hero__lede {
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  color: var(--text-2);
  max-width: 30em;
  margin: 0 auto;
  line-height: 1.85;
}
.hero__lede strong { color: var(--text); font-weight: 700; }

/* ---- Quote callout ---- */
.quote {
  margin: 8px auto 56px;
  max-width: 28em;
  padding: 22px 28px;
  border-left: 3px solid var(--brand-600);
  background: var(--brand-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.7;
}

/* ---- Section heading ---- */
.section-h {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 64px 0 24px;
}
.section-h::before {
  content: "";
  flex: 0 0 24px;
  height: 2px;
  background: var(--brand-600);
  align-self: center;
  border-radius: 2px;
}
.section-h h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.section-h__sub {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 0.92rem;
}

/* ---- Feature cards ---- */
.features {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 22px 76px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
}
.feature__num {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
@media (prefers-color-scheme: dark) {
  .feature__num { color: #9CD9A8; }
}
.feature__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feature__body {
  margin: 0;
  color: var(--text-2);
  font-size: 0.97rem;
  line-height: 1.8;
}

/* ---- Privacy summary card ---- */
.privacy-card {
  margin: 0;
  padding: 28px 28px 24px;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.privacy-card__head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--brand-700);
  letter-spacing: 0.02em;
}
@media (prefers-color-scheme: dark) {
  .privacy-card__head { color: #9CD9A8; }
}
.privacy-card__head svg { width: 18px; height: 18px; }
.privacy-card p { margin: 0 0 14px; color: var(--text-2); }
.privacy-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.privacy-card__more::after {
  content: "→";
  transition: transform 0.18s ease;
}
.privacy-card__more:hover::after { transform: translateX(2px); }

/* ---- Status pill (e.g. "App Store 公開準備中") ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--brand-600);
  box-shadow: 0 0 0 4px rgba(45, 122, 62, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* ---- Article (privacy page) ---- */
.article {
  padding: 16px 0 32px;
}
.article__title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.article__meta {
  color: var(--text-3);
  font-size: 0.92rem;
  margin: 0 0 32px;
}
.article__meta dt {
  display: inline;
  font-weight: 600;
  margin-right: 4px;
}
.article__meta dt::after { content: ":"; }
.article__meta dd { display: inline; margin: 0 16px 0 0; }
.article h2 {
  margin: 44px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.article h2:first-of-type { border-top: none; padding-top: 0; }
.article h3 {
  margin: 28px 0 8px;
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--text-2);
}
.article p, .article ul, .article ol {
  color: var(--text-2);
}
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: 4px; }
.article hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.article__lang-summary {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.7;
}
.article__lang-summary h2 {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
  font-size: 1rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 36px 22px 40px;
}
.site-footer__brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.site-footer__brand img {
  border-radius: var(--radius-icon);
  box-shadow: var(--shadow-sm);
}
.site-footer__name { font-weight: 700; }
.site-footer__tag {
  color: var(--text-3);
  font-size: 0.88rem;
}
.site-footer__nav {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.site-footer__nav a { color: var(--text-2); }
.site-footer__nav a:hover { color: var(--link); }
.site-footer__copy {
  margin: 0;
  color: var(--text-3);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

/* ---- Responsive tweaks ---- */
@media (min-width: 720px) {
  .features { gap: 16px; }
  .hero { padding: 56px 0 64px; }
  .hero__icon { width: 180px; height: 180px; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
