/* Seikotsuin house style — Color tokens
   Base: clean white/off-white. Main: trustworthy navy-blue.
   Accent: warm orange/beige, used sparingly. */

:root {
  /* --- Brand: navy-blue (trust) --- */
  --navy-900: #0d2742;
  --navy-800: #103154;
  --navy-700: #14467a;   /* primary */
  --navy-600: #1d5a96;
  --navy-500: #2f72b4;
  --navy-400: #5a93c9;
  --navy-200: #b6d3e8;
  --navy-100: #dcebf6;
  --navy-50:  #eff6fb;

  /* --- Accent: warm orange (warmth, call to action) --- */
  --orange-700: #c75f1d;
  --orange-600: #e0762c;   /* accent */
  --orange-500: #ef8a3f;
  --orange-200: #f8cda4;
  --orange-100: #fce6d3;
  --orange-50:  #fdf3ea;

  /* --- Beige (soft surfaces) --- */
  --beige-200: #ece0cd;
  --beige-100: #f6efe3;
  --beige-50:  #faf6ee;

  /* --- LINE green (LINE booking button only) --- */
  --line-green: #06c755;
  --line-green-dark: #05a948;

  /* --- Neutrals / ink --- */
  --white:    #ffffff;
  --offwhite: #f5f8fb;   /* page base */
  --ink-900:  #15293c;   /* heading / strong text */
  --ink-800:  #1f3548;
  --ink-700:  #3a4c5d;   /* body text */
  --ink-500:  #647585;   /* secondary text */
  --ink-400:  #8b99a6;
  --ink-300:  #b6c0c9;   /* disabled */
  --line-200: #e4eaf0;   /* hairline borders */
  --line-100: #eef2f6;

  /* --- Semantic (forms / states) --- */
  --success: #2f9e5e;
  --success-bg: #e7f5ed;
  --warning: #d8941f;
  --warning-bg: #fbf1dc;
  --error:   #cf3b3b;
  --error-bg: #fbe9e9;

  /* --- Semantic aliases (use these in components) --- */
  --color-primary: var(--navy-700);
  --color-primary-hover: var(--navy-800);
  --color-primary-press: var(--navy-900);
  --color-accent: var(--orange-600);
  --color-accent-hover: var(--orange-700);

  --bg-page: var(--offwhite);
  --bg-section: var(--white);
  --bg-section-alt: var(--navy-50);
  --bg-warm: var(--beige-100);
  --surface-card: var(--white);

  --text-heading: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: var(--ink-500);
  --text-on-primary: #ffffff;
  --text-on-accent: #ffffff;
  --text-link: var(--navy-700);

  --border-default: var(--line-200);
  --border-strong: var(--navy-200);
}

/* Seikotsuin house style — Typography tokens
   Legibility first: large body text and generous line spacing, so older patients can read it. */

:root {
  /* Families */
  --font-display: 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;
  --font-body: 'Noto Sans JP', system-ui, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-number: 'Roboto', 'Noto Sans JP', system-ui, sans-serif; /* phone numbers, fees */

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --weight-black: 900;   /* display headings only */

  /* Type scale — mobile-first, large for legibility */
  --text-display: 2.5rem;   /* 40px  first-view heading */
  --text-h1: 2rem;          /* 32px */
  --text-h2: 1.625rem;      /* 26px  section heading */
  --text-h3: 1.25rem;       /* 20px */
  --text-lead: 1.1875rem;   /* 19px  lead text */
  --text-body-lg: 1.125rem; /* 18px  body text (default) */
  --text-body: 1.0625rem;   /* 17px */
  --text-sm: 0.9375rem;     /* 15px  notes */
  --text-xs: 0.8125rem;     /* 13px  smallest (insurance notes and the like) */

  /* Line heights — generous */
  --leading-tight: 1.3;     /* headings */
  --leading-snug: 1.5;
  --leading-body: 1.9;      /* body text */
  --leading-loose: 2.05;

  /* Letter spacing */
  --tracking-heading: 0.01em;
  --tracking-body: 0.02em;
}

/* Base element defaults (consumers inherit these) */
:root {
  font-family: var(--font-body);
  color: var(--text-body);
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Seikotsuin house style — Spacing tokens
   Generous whitespace that never feels cramped, on a 4px base. */

:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Semantic spacing */
  --gutter: var(--space-5);            /* mobile side padding */
  --gutter-lg: var(--space-8);         /* desktop side padding */
  --section-y: var(--space-16);        /* vertical rhythm between sections (mobile) */
  --section-y-lg: var(--space-24);     /* desktop */
  --stack: var(--space-4);             /* default gap in a vertical stack */
  --card-padding: var(--space-6);

  /* Layout */
  --content-max: 1080px;               /* desktop content width */
  --reading-max: 680px;                /* prose measure */
  --tap-min: 48px;                     /* min hit target (≥44px) */
}

/* Seikotsuin house style — Radius tokens
   Lightly rounded corners: soft, but not childish. */

:root {
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;   /* default for cards, inputs */
  --radius-lg: 16px;   /* large cards, hero panels */
  --radius-xl: 24px;
  --radius-pill: 999px;

  --radius-card: var(--radius-lg);
  --radius-button: var(--radius-md);
  --radius-input: var(--radius-md);
}

/* Seikotsuin house style — Shadow tokens
   Soft, clean shadows, never heavy, faintly tinted navy. */

:root {
  --shadow-xs: 0 1px 2px rgba(13, 39, 66, 0.06);
  --shadow-sm: 0 2px 6px rgba(13, 39, 66, 0.07);
  --shadow-md: 0 6px 18px rgba(13, 39, 66, 0.08);
  --shadow-lg: 0 14px 34px rgba(13, 39, 66, 0.10);
  --shadow-cta: 0 8px 20px rgba(224, 118, 44, 0.28);  /* accent CTA glow */

  --ring-focus: 0 0 0 3px rgba(47, 114, 180, 0.35);   /* keyboard focus */

  --shadow-card: var(--shadow-md);
}

/* Seikotsuin house style — Motion tokens
   Restrained: fades and short easing, no bouncing motion (calm, trust). */

:root {
  --ease-standard: cubic-bezier(0.2, 0, 0.1, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */

  --dur-fast: 120ms; /* @kind other */
  --dur-base: 200ms; /* @kind other */
  --dur-slow: 360ms; /* @kind other */

  --transition-button: background-color var(--dur-fast) var(--ease-standard),
                       box-shadow var(--dur-fast) var(--ease-standard),
                       transform var(--dur-fast) var(--ease-standard);
}

html,body{margin:0;background:#fff;color:#3d3d3d;font-family:'Noto Sans JP',sans-serif;-webkit-text-size-adjust:100%}
    *{box-sizing:border-box}
    a{color:#028729;text-decoration:none}
    a:hover{color:#028729}
    details>summary{list-style:none;cursor:pointer}
    details>summary::-webkit-details-marker{display:none}
    details[open] .faq-chev{transform:rotate(180deg)}
html{scroll-behavior:smooth}section[id]{scroll-margin-top:16px}
.dc-s0:hover{color:#028729 !important}
.dc-s1:hover{background:#05a948 !important;color:#fff !important}
.dc-s2:hover{background:#ebf5ee !important;color:#028729 !important}
.dc-s3:hover{background:#028729 !important;color:#fff !important;filter:brightness(.9) !important}
.dc-s4:active{transform:scale(.98) !important}
.dc-s5:hover{background:#f5faed !important;color:#028729 !important}
.dc-s6:hover{filter:brightness(.94) !important}
.dc-s7:focus-visible,.dc-s7:focus{outline:none !important;border-color:#028729 !important;box-shadow:0 0 0 3px rgba(2,135,41,.18) !important}
.dc-s8:hover{filter:brightness(.9) !important}
.dc-s9:hover{filter:brightness(.97) !important}
.dc-s10:active{transform:scale(.99) !important}
.dc-s11:hover{background:#f5faed !important;color:#1a1a1a !important}
.dc-s12:hover{color:#028729 !important;text-decoration:underline !important}
/* tools/runtime.css (appended to assets/site.css by tools/compile.mjs): what the design runtime's
   image-slot element drew in its shadow root, as plain CSS for the <span class="dc-slot"> that
   replaces it. The slot fills its box (width and height 100 %, a 3:2 ratio when the box has no
   height) and shows its photo cropped to cover, or letterboxed for fit="contain"; an inline style
   on the slot overrides the size, as it did on the element. */
[hidden]{display:none !important}
.dc-slot{display:block;position:relative;width:100%;height:100%;aspect-ratio:3/2;overflow:hidden;background:rgba(127,127,127,.08)}
.dc-slot>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 50%;display:block}
.dc-slot.dc-fit-contain>img{object-fit:contain}
.dc-slot.dc-shape-circle{border-radius:50%}
.dc-slot.dc-shape-pill{border-radius:9999px}
