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

/* Family First Clinic — component styles. Every colour, space and radius is a token from tokens.css. */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.9; letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
.ffc-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-5); }
.ffc-stack { display: grid; gap: var(--space-4); padding: var(--space-5); }
.ffc-disp { font-family: var(--font-display); }
.ffc-num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Button */
.ffc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--touch-min); padding: var(--space-2) var(--space-6); border-radius: var(--radius-pill); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 700 14px/1.4 var(--font-body); letter-spacing: .08em; text-decoration: none; text-align: center; cursor: pointer; }
.ffc-btn:hover { filter: brightness(1.06); }
.ffc-btn-solid { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ffc-btn-white { background: var(--surface); border-color: var(--surface); color: var(--primary); box-shadow: var(--shadow-card); }
.ffc-btn-sm { min-height: 36px; padding: 4px var(--space-4); font-size: 12.5px; }
.ffc-btn svg { width: 20px; height: 20px; }

/* MoreLink */
.ffc-more { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px; border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); text-decoration: none; font: 700 13.5px/1.6 var(--font-body); letter-spacing: .04em; }
.ffc-more::after { content: ""; border-left: 8px solid var(--primary); border-block: 5px solid transparent; }

/* Eyebrow: the three-dot mark + section heading */
.ffc-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 21px/1.5 var(--font-display); letter-spacing: .04em; color: var(--ink); }
.ffc-eyebrow::before { content: ""; flex-shrink: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 14px 0 0 -1px var(--sun), 26px 0 0 -1.5px var(--leaf); margin-right: 26px; }
.ffc-eyebrow small { font: 500 11px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.ffc-dots { display: inline-flex; gap: 4px; align-items: center; }
.ffc-dots i { display: block; border-radius: 50%; }
.ffc-dots i:nth-child(1) { width: 10px; height: 10px; background: var(--primary); }
.ffc-dots i:nth-child(2) { width: 8px; height: 8px; background: var(--sun); }
.ffc-dots i:nth-child(3) { width: 7px; height: 7px; background: var(--leaf); }

/* Tag */
.ffc-tag { display: inline-block; padding: 2px 12px; border-radius: var(--radius-pill); font: 700 12px/1.6 var(--font-body); letter-spacing: .12em; white-space: nowrap; }
.ffc-tag-primary { background: var(--primary); color: var(--on-primary); }
.ffc-tag-soft { background: var(--primary-soft); color: var(--primary); }
.ffc-tag-neutral { border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; padding: 1px 11px; }
.ffc-tag-important { border: 1px solid var(--alert); color: var(--alert); padding: 1px 11px; }
.ffc-tag-closed { background: var(--ink); color: var(--paper); border-radius: var(--radius-xs); }

/* NoticeBox */
.ffc-notice { display: grid; grid-template-columns: auto 1fr; border: 1.5px solid var(--alert); border-radius: var(--radius-lg); background: var(--surface); }
.ffc-notice-h { display: flex; align-items: center; gap: var(--space-2); padding: 18px 26px; color: var(--alert); font: 700 15px/1.5 var(--font-display); border-right: 1px solid var(--line); white-space: nowrap; }
.ffc-notice-h svg { width: 18px; height: 18px; }
.ffc-notice ul { list-style: none; margin: 0; padding: var(--space-3) var(--space-6); display: grid; gap: 2px; }
.ffc-notice li { display: flex; gap: var(--space-4); font-size: 14px; }
.ffc-notice time { color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; flex-shrink: 0; padding-top: 1px; }
.ffc-notice li a, .ffc-notice li span { color: var(--alert); text-decoration: none; font-weight: 500; }
@media (max-width: 620px) { .ffc-notice { grid-template-columns: 1fr; } .ffc-notice-h { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 18px; } .ffc-notice li { flex-direction: column; gap: 0; } }

/* HoursTable */
.ffc-hours { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-5) var(--space-4); box-shadow: var(--shadow-card); overflow-x: auto; }
.ffc-hours table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 300px; }
.ffc-hours th, .ffc-hours td { padding: 12px 4px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.ffc-hours thead th { font-weight: 500; color: var(--ink-2); font-size: 13px; }
.ffc-hours tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
.ffc-hours .sat { color: var(--primary); } .ffc-hours .sun { color: var(--alert); }
.ffc-o { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); }
.ffc-x { display: inline-block; width: 14px; height: 2px; background: var(--ink-2); vertical-align: middle; opacity: .6; }
.ffc-hours-note { font-size: 12.5px; color: var(--ink-2); margin: var(--space-3) 0 0; line-height: 1.8; }
.ffc-hours-note b { color: var(--alert); font-weight: 500; }

/* DeptCard */
.ffc-dept { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); max-width: 240px; }
.ffc-dept-ic { width: 96px; height: 96px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.ffc-dept-ic img { width: 48px; height: 48px; }
.ffc-dept h3 { margin: 0; font: 700 17px/1.5 var(--font-display); position: relative; padding-bottom: var(--space-2); }
.ffc-dept h3::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 22px; height: 2px; background: var(--primary); transform: translateX(-50%); }
.ffc-dept p { margin: 0; font-size: 13px; color: var(--ink-2); text-align: left; line-height: 1.85; flex: 1; }
.ffc-dept a { align-self: stretch; display: block; border: 1px solid var(--ink); border-radius: var(--radius-pill); padding: 5px 12px; font-size: 12.5px; text-decoration: none; color: var(--ink); letter-spacing: .1em; }
.ffc-dept a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* NewsList */
.ffc-news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ffc-news li { border-bottom: 1px solid var(--line); }
.ffc-news a { display: grid; grid-template-columns: auto auto 1fr auto; gap: 18px; align-items: center; padding: 18px 4px; text-decoration: none; color: var(--ink); }
.ffc-news time { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ffc-news .t { font-weight: 500; font-size: 14.5px; }
.ffc-news a::after { content: ""; border-left: 7px solid var(--primary); border-block: 5px solid transparent; }
.ffc-news a:hover .t { color: var(--primary); }
@media (max-width: 620px) { .ffc-news a { grid-template-columns: auto 1fr auto; row-gap: 2px; } .ffc-news .t { grid-column: 1 / 3; } .ffc-news a::after { grid-row: 1 / 3; grid-column: 3; } }

/* SiteHeader */
.ffc-hdr { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); padding-left: var(--space-6); background: var(--paper); border-bottom: 1px solid var(--line); }
.ffc-brand { display: flex; flex-direction: column; text-decoration: none; flex-shrink: 0; }
.ffc-brand img { height: 34px; width: auto; }
.ffc-brand small { font-size: 10.5px; color: var(--ink-2); letter-spacing: .08em; line-height: 1.4; margin-top: 2px; }
.ffc-logo-rev { display: none; }
[data-theme="dark"] .ffc-logo-std { display: none; } [data-theme="dark"] .ffc-logo-rev { display: block; }
.ffc-hdr nav { display: flex; gap: 22px; margin-left: auto; font-size: 13.5px; font-weight: 500; }
.ffc-hdr nav a { text-decoration: none; color: var(--ink); padding-block: 6px; border-bottom: 2px solid transparent; }
.ffc-hdr nav a:hover { border-color: var(--primary); }
.ffc-hdr-tel { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--ink-2); line-height: 1.4; white-space: nowrap; }
.ffc-hdr-tel b { font: 700 19px/1.3 var(--font-display); color: var(--ink); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ffc-hdr-cta { display: flex; align-self: stretch; }
.ffc-hdr-cta a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 96px; text-decoration: none; font-size: 12.5px; font-weight: 700; }
.ffc-hdr-cta svg { width: 22px; height: 22px; }
.ffc-hdr-cta .c1 { background: var(--surface); color: var(--primary); }
.ffc-hdr-cta .c2 { background: var(--primary); color: var(--on-primary); }
@media (max-width: 900px) { .ffc-hdr nav { display: none; } .ffc-hdr-tel { margin-left: auto; } }
@media (max-width: 560px) { .ffc-hdr-tel { display: none; } .ffc-hdr-cta { margin-left: auto; } .ffc-brand small { display: none; } .ffc-brand img { height: 28px; } }

/* Print objects are always light: data-theme="light" is set on their root by the components. */
.ffc-print { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.10); position: relative; overflow: hidden; font-family: var(--font-body); }

/* BusinessCard — 91 × 55mm at 5px/mm */
.ffc-bcard { width: 455px; height: 275px; border-radius: 4px; box-sizing: border-box; padding: 22px 24px; display: grid; grid-template-rows: auto 1fr auto; }
.ffc-bcard img.logo { height: 30px; width: auto; }
.ffc-bcard .who { align-self: center; display: grid; gap: 2px; }
.ffc-bcard .role { font-size: 11px; color: var(--ink-2); letter-spacing: .08em; line-height: 1.5; }
.ffc-bcard .name { font: 700 24px/1.3 var(--font-display); letter-spacing: .14em; }
.ffc-bcard .name-en { font-size: 10.5px; color: var(--ink-2); letter-spacing: .06em; }
.ffc-bcard .meta { display: grid; gap: 0; font-size: 9.5px; line-height: 1.7; color: var(--ink-2); letter-spacing: .02em; border-top: 1px solid var(--line); padding-top: 8px; }
.ffc-bcard .meta b { color: var(--ink); font-weight: 500; }
.ffc-bcard .dots { position: absolute; right: 24px; top: 30px; }
.ffc-bcard-back { background: var(--primary); display: grid; place-items: center; padding: 0; }
.ffc-bcard-back img { height: 44px; width: auto; }
.ffc-bcard-back .url { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 10px; letter-spacing: .12em; color: var(--on-primary); }

/* ClinicCard (診察券) */
.ffc-ccard { width: 455px; height: 275px; border-radius: 15px; box-sizing: border-box; padding: 18px 22px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; gap: 8px 18px; }
.ffc-ccard .top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.ffc-ccard .top img { height: 30px; }
.ffc-ccard .top b { font: 700 15px/1.3 var(--font-display); letter-spacing: .06em; }
.ffc-ccard .top span { display: block; font-size: 9px; color: var(--ink-2); letter-spacing: .1em; font-weight: 400; font-family: var(--font-body); }
.ffc-ccard .top em { margin-left: auto; font-style: normal; font-size: 9px; color: var(--primary); background: var(--primary-soft); border-radius: var(--radius-pill); padding: 1px 10px; letter-spacing: .1em; }
.ffc-ccard .fields { display: grid; gap: 8px; align-content: start; font-size: 9.5px; color: var(--ink-2); }
.ffc-ccard .field { border-bottom: 1px solid var(--line); padding-bottom: 2px; display: flex; justify-content: space-between; gap: 6px; }
.ffc-ccard .field b { color: var(--ink); font: 500 13px/1.4 var(--font-body); letter-spacing: .08em; }
.ffc-ccard table { border-collapse: collapse; width: 100%; font-size: 8.5px; font-variant-numeric: tabular-nums; align-self: start; }
.ffc-ccard th, .ffc-ccard td { border-bottom: 1px solid var(--line); padding: 3px 1px; text-align: center; line-height: 1.3; font-weight: 400; }
.ffc-ccard tbody th { text-align: left; white-space: nowrap; }
.ffc-ccard .o { color: var(--primary); } .ffc-ccard .x { color: var(--ink-2); }
.ffc-ccard .foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; font-size: 9px; color: var(--ink-2); }
.ffc-ccard .foot b { font: 700 16px/1 var(--font-display); color: var(--ink); letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* Signage (room plate) */
.ffc-sign { display: inline-flex; align-items: center; gap: 18px; padding: 18px 28px 18px 22px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.ffc-sign .n { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font: 700 22px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ffc-sign .ja { font: 700 26px/1.3 var(--font-display); letter-spacing: .16em; display: flex; align-items: center; gap: 12px; }
.ffc-sign .en { font: 500 11px/1.4 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }
.ffc-sign-arrow { font-size: 26px; color: var(--primary); margin-left: 6px; }

/* SocialPost — rendered at 1/3 of export size */
.ffc-post { width: 360px; height: 450px; background: var(--paper); color: var(--ink); display: grid; grid-template-rows: auto 1fr auto; box-sizing: border-box; font-family: var(--font-body); position: relative; overflow: hidden; border-radius: 2px; box-shadow: var(--shadow-card); }
.ffc-post.square { height: 360px; } .ffc-post.story { height: 640px; } .ffc-post.landscape { width: 400px; height: 300px; }
.ffc-post .hd { padding: 22px 22px 0; display: flex; justify-content: space-between; align-items: center; }
.ffc-post .bd { padding: 14px 22px; display: grid; align-content: start; gap: 12px; position: relative; z-index: 1; }
.ffc-post .ill { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
.ffc-post h3 { margin: 0; font: 700 26px/1.45 var(--font-display); letter-spacing: .04em; text-wrap: balance; }
.ffc-post h3 em { font-style: normal; color: var(--primary); }
.ffc-post ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ffc-post li { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.6; background: var(--surface); border-radius: var(--radius-md); padding: 6px 12px; }
.ffc-post li::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); margin-top: .6em; }
.ffc-post .blk { position: absolute; right: -40px; top: 60px; width: 150px; height: 150px; border-radius: 50%; opacity: 1; }
.ffc-post .blk.primary { background: var(--primary-soft); } .ffc-post .blk.sun { background: var(--sun); opacity: .28; } .ffc-post .blk.leaf { background: var(--leaf); opacity: .3; }
.ffc-post .ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 22px; background: var(--surface); border-top: 1px solid var(--line); }
.ffc-post .ft img { height: 22px; width: auto; }
.ffc-post .ft b { font: 700 13px/1.2 var(--font-display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ffc-post .ft span { display: block; font-size: 8.5px; color: var(--ink-2); font-weight: 400; font-family: var(--font-body); text-align: right; }

/* NoticePoster — A4 at 2px/mm */
.ffc-poster { width: 420px; height: 594px; box-sizing: border-box; padding: 40px 40px 28px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; background: var(--paper); }
.ffc-poster h2 { margin: 0; font: 700 34px/1.4 var(--font-display); letter-spacing: .06em; text-wrap: balance; }
.ffc-poster .lead { margin: 0; font-size: 13px; line-height: 1.9; }
.ffc-poster dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; align-content: start; background: var(--surface); border-radius: var(--radius-lg); padding: 6px 18px; }
.ffc-poster dt, .ffc-poster dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ffc-poster dt { font-weight: 700; padding-right: 18px; color: var(--primary); white-space: nowrap; }
.ffc-poster dl > :nth-last-child(-n+2) { border-bottom: 0; }
.ffc-poster .en { font-size: 10px; line-height: 1.6; letter-spacing: 0; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.ffc-poster .ft { display: flex; justify-content: space-between; align-items: flex-end; border-top: 2px solid var(--primary); padding-top: 12px; }
.ffc-poster .ft img { height: 26px; }
.ffc-poster .ft b { font: 700 18px/1.2 var(--font-display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ffc-poster .ft span { display: block; font-size: 9px; color: var(--ink-2); text-align: right; }

/* LangSwitch — 日本語 / English segmented pill */
.ffc-lang { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line); flex-shrink: 0; }
.ffc-lang button { font: 700 12px/1 var(--font-body); letter-spacing: .04em; padding: 7px 14px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-2); cursor: pointer; min-height: 30px; }
.ffc-lang button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.ffc-lang button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.ffc-bi-bar { display: flex; justify-content: flex-end; padding: 10px 16px 0; }

/* English text: drop the Japanese tracking */
[lang="en"] .ffc-hours-note, [lang="en"] .ffc-dept p, [lang="en"] .ffc-dept a, [lang="en"] .ffc-news .t, [lang="en"] .ffc-post li,
[lang="en"] .ffc-poster .lead, [lang="en"] .ffc-poster dd, [lang="en"] .ffc-bcard .meta, [lang="en"] .ffc-ccard .fields { letter-spacing: 0; }
[lang="en"] .ffc-hdr nav { gap: 18px; }
[lang="en"] .ffc-post h3, [lang="en"] .ffc-poster h2 { letter-spacing: 0; }
