/* ============================================================
   となりの担当さん — Design Tokens
   Colors, typography, spacing, elevation, motion.
   Extracted from source/tonari-no-tantosan.html
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@500;700;900&family=Klee+One:wght@600&display=swap");

:root {
  /* ---------- BRAND COLORS ---------- */
  /* Warm terracotta orange — primary "担当さん" brand */
  --orange:       #D98A5F;
  --orange-deep: #C57448;
  --orange-soft: #F1C9A9;

  /* Ivory paper family — page and card backgrounds */
  --ivory:  #F6F1E7;   /* page bg */
  --ivory-2:#EFE7D5;   /* soft chip / icon bg */
  --paper:  #FBF7EE;   /* lightest neutral, sub-sections */

  /* Ink family — text & dark surfaces */
  --charcoal:   #2E2A26;  /* primary text, dark section bg */
  --charcoal-2: #4A443E;  /* secondary text */
  --muted:      #8A8078;  /* meta / captions */

  /* Nature accent — moss green for supporting states */
  --moss:      #6B7A5A;
  --moss-soft: #DDE1D0;

  /* Sticky-note yellow — hand-written accent */
  --sticky:   #F7E7B8;

  /* Structural */
  --line:  #E3DAC7;       /* hairline dividers, card borders */
  --white: #FFFFFF;

  /* ---------- SEMANTIC COLOR ROLES ---------- */
  --bg:          var(--ivory);
  --bg-alt:      var(--paper);
  --bg-invert:   var(--charcoal);
  --surface:     var(--white);
  --surface-2:   var(--paper);
  --fg:          var(--charcoal);
  --fg-2:        var(--charcoal-2);
  --fg-muted:    var(--muted);
  --fg-invert:   var(--white);
  --brand:       var(--orange);
  --brand-press: var(--orange-deep);
  --brand-wash:  var(--orange-soft);
  --border:      var(--line);
  --accent:      var(--moss);
  --accent-wash: var(--moss-soft);

  /* ---------- TYPOGRAPHY ---------- */
  /* Body — soft, readable Japanese sans */
  --font-body:    "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  /* Display — a touch more character, used for titles & UI labels */
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  /* Hand — friendly hand-written accent (Klee One), used sparingly for eyebrow labels & sticky-notes */
  --font-hand:    "Klee One", "Zen Kaku Gothic New", sans-serif;

  /* Font weights */
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-bold:    700;
  --fw-black:   900;

  /* Type scale — sized for JP hero LP */
  --fs-hero:   56px;   /* h1 hero */
  --fs-h2:     40px;   /* section titles */
  --fs-cta-h2: 44px;   /* CTA closing */
  --fs-h3:     24px;   /* pricing card title */
  --fs-h4:     20px;   /* card headings */
  --fs-lead:   17px;   /* hero lead paragraph */
  --fs-body:   16px;   /* body */
  --fs-sm:     14px;   /* meta, list items */
  --fs-xs:     13px;   /* nav, footer */
  --fs-tiny:   12.5px; /* footer bottom */

  /* Line heights */
  --lh-tight:  1.35;
  --lh-snug:   1.5;
  --lh-body:   1.75;
  --lh-loose:  1.9;

  /* Letter spacing */
  --ls-tight:  -0.01em;
  --ls-normal: 0.005em;
  --ls-wide:   0.01em;

  /* ---------- SPACING ---------- */
  --space-0:  4px;
  --space-1:  8px;
  --space-2:  12px;
  --space-3:  16px;
  --space-4:  20px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  40px;
  --space-8:  56px;
  --space-9:  80px;
  --space-10: 110px;   /* section vertical padding */

  --container-max: 1160px;
  --container-pad: 32px;

  /* ---------- RADII ---------- */
  --r-xs:     4px;    /* sticky notes, tiny */
  --r-sm:     10px;   /* logo mark, small tabs */
  --r-md:     14px;   /* buttons, tab bar */
  --r-lg:     16px;   /* note panels */
  --r-xl:     20px;   /* cards */
  --r-2xl:    22px;   /* chat cards, price cards */
  --r-pill:   999px;  /* pills, eyebrows, nav CTA */

  /* ---------- ELEVATION ---------- */
  --shadow-sm:  0 3px 0 var(--orange-deep);                                                  /* chunky bottom shadow on logo mark / step-num */
  --shadow:     0 8px 24px rgba(46,42,38,.06), 0 2px 6px rgba(46,42,38,.04);
  --shadow-lg:  0 20px 50px rgba(46,42,38,.10), 0 4px 12px rgba(46,42,38,.05);
  --shadow-btn: 0 4px 0 var(--orange-deep);                                                  /* stacked primary button */
  --shadow-btn-hover: 0 6px 0 var(--orange-deep);
  --shadow-note: 0 6px 18px rgba(46,42,38,.12);                                              /* sticky-note lift */

  /* ---------- MOTION ---------- */
  --ease-out:      cubic-bezier(.2, .8, .2, 1);
  --ease-in-out:   cubic-bezier(.4, 0, .2, 1);
  --dur-fast:      .15s;
  --dur-med:       .2s;
  --dur-slow:      .4s;

  /* Interaction transforms */
  --lift-1: translateY(-1px);
  --lift-2: translateY(-2px);
  --lift-4: translateY(-4px);
}

/* ============================================================
   SEMANTIC ELEMENT DEFAULTS
   Drop-in defaults so raw HTML looks on-brand.
   ============================================================ */

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  line-height: var(--lh-tight);
  color: var(--fg);
}

h1 { font-size: var(--fs-hero); line-height: 1.28; }
h2 { font-size: var(--fs-h2);   line-height: 1.4;  }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { color: var(--fg-2); }

a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--brand-press); }

/* Utility classes echoing the LP */
.hand         { font-family: var(--font-hand); font-weight: 600; }
.display      { font-family: var(--font-display); }
.text-muted   { color: var(--fg-muted); }
.text-brand   { color: var(--brand-press); }
.marker       { background: linear-gradient(transparent 65%, var(--brand-wash) 65%); padding: 0 4px; }
.eyebrow-label{ font-family: var(--font-hand); color: var(--brand-press); font-size: 16px; }
.eyebrow-label::before { content:""; display:inline-block; width:28px; height:2px; background:var(--brand-press); vertical-align:middle; margin-right:10px; transform:translateY(-3px); }
