/* 育児マップ's introduction site (ikujimap.jp): the app's own
   colours (lib/app/theme.dart), cream and warm orange. Light by default; the header's
   button switches to the dark version (data-theme="dark", remembered on the device).
   Nothing loaded from elsewhere. */
:root {
  color-scheme: light;
  --page: #FFFAF4;
  --card: #FFFFFF;
  --tint: #FFF1E4;
  --line: #EFE2D3;
  --text: #2B2420;
  --muted: #6F6258;
  --brand: #EF8A47;
  --brand-text: #C2581F;
  --green: #2E9E6B;
  --grey: #8A8F98;
  --phone: #2B2420;
  --shadow: 0 18px 40px rgba(120, 70, 30, .16);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #17130F;
  --card: #241F1A;
  --tint: #2B221A;
  --line: #3A3129;
  --text: #F3ECE4;
  --muted: #BDB1A5;
  --brand-text: #F2A06B;
  --green: #52C98F;
  --grey: #9BA1AA;
  --phone: #0C0A08;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-text); text-underline-offset: .18em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.nb { display: inline-block; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* header: the logo, then the three pages */
.site { border-bottom: 1px solid var(--line); }
.site .top { display: flex; align-items: center; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.theme-toggle {
  margin-left: auto; width: 40px; height: 40px; padding: 0;
  display: inline-grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text);
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle .sun, :root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.pages { display: flex; flex-wrap: wrap; gap: 2px 20px; padding-bottom: 8px; }
.pages a {
  color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.7;
  border-bottom: 2px solid transparent;
}
.pages a:hover { color: var(--text); }
.pages a[aria-current="page"] { color: var(--text); font-weight: 800; border-bottom-color: var(--brand); }

/* hero */
.hero { padding: 32px 0 16px; background: radial-gradient(ellipse 80% 60% at 80% 0%, var(--tint), transparent 70%); }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
.kicker { margin: 0 0 .5em; color: var(--brand-text); font-weight: 800; font-size: .95rem; line-height: 1.5; }
h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.3; letter-spacing: .01em; word-break: keep-all; }
.lead { margin: .9em 0 0; font-size: 1.05rem; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.stores li {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 8px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  font-size: .9rem; line-height: 1.35;
}
.stores svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.stores small { display: block; color: var(--muted); font-size: .75rem; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; }
.facts div { display: grid; }
.facts dt { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.facts dd { margin: 0; font-weight: 800; font-size: .98rem; line-height: 1.5; }

/* a phone with a screenshot */
.phone {
  width: min(270px, 72vw); margin: 0 auto;
  padding: 9px; border-radius: 40px; background: var(--phone);
  box-shadow: var(--shadow);
}
.phone img { width: 100%; height: auto; aspect-ratio: 900 / 1948; object-fit: cover; object-position: top; border-radius: 31px; background: #FFFAF4; }

/* sections */
section { padding: 40px 0; }
h2 { margin: 0 0 .7em; font-size: clamp(1.4rem, 5.4vw, 1.8rem); line-height: 1.4; }
h3 { margin: 0 0 .3em; font-size: 1.1rem; line-height: 1.5; }
.section-lead { margin: -.3em 0 1.4em; color: var(--muted); }

.features { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.features li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-content: start;
  padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line);
}
.features li .icon { grid-row: span 2; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; background: var(--tint); color: var(--brand-text);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin { display: inline-block; min-width: 1.6em; padding: 0 .45em; border-radius: 999px; color: #fff; font-weight: 800; font-size: .85em; line-height: 1.5; text-align: center; }
.pin.open { background: var(--green); }
.pin.full { background: var(--grey); }

/* the screens: side by side on wide screens, a row you can swipe on phones */
.screens {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(240px, 66vw); gap: 20px;
  margin: 0 -16px; padding: 8px 16px 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  list-style: none;
}
.screens li { scroll-snap-align: center; }
.screens .phone { width: 100%; }
.screens p { margin: 14px 4px 0; text-align: center; font-size: .92rem; color: var(--muted); }

.panel { padding: 22px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.panel + .panel { margin-top: 14px; }
.panel p { margin: 0; }
.area-name { font-size: 1.2rem; font-weight: 800; }
.areas { margin: 0; padding: 0; list-style: none; }
.areas li { display: grid; grid-template-columns: minmax(0, 1fr); padding: 10px 0; }
.areas li + li { border-top: 1px solid var(--line); }
.areas .area-name { font-size: 1.05rem; line-height: 1.5; }
.areas small { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.muted { color: var(--muted); }
.sources { margin: 0; padding: 0; list-style: none; }
.sources li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sources small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.notes { margin: 0; padding-left: 1.2em; }
.notes li + li { margin-top: .4em; }

/* releases */
.release { padding: 22px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.release + .release { margin-top: 14px; }
.release h2 { margin: 0; font-size: 1.2rem; }
.release time, .release .when { color: var(--muted); font-size: .9rem; }
.release .when { margin: 0 0 .3em; }
.release ul { margin: .7em 0 0; padding-left: 1.2em; }
.tag {
  display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; line-height: 1.8; vertical-align: .15em;
}
.tag.app { background: var(--tint); color: var(--brand-text); }
.tag.data { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }

/* areas */
.areas-page { max-width: 960px; }
.lead-count { margin: 0 0 1.6em; font-size: 1.05rem; }
.nowrap { white-space: nowrap; }
.lead-count strong { font-size: 1.3rem; color: var(--brand-text); }
.pref { padding: 0; }
.pref + .pref { margin-top: 32px; }
.doc .pref h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 .7em; font-size: 1.25rem; }
.pref h2 small { color: var(--muted); font-size: .9rem; font-weight: 600; }
.cities, .doc .cities { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.city { padding: 18px 18px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.doc .city h3 { margin: 0; font-size: 1.2rem; }
.city p { margin: 0; }
.city .count { margin-top: .2em; font-weight: 700; }
.city .period { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.chip {
  display: inline-block; padding: 0 10px; border-radius: 999px; background: var(--tint); color: var(--brand-text);
  font-size: .8rem; font-weight: 800; line-height: 1.9; white-space: nowrap;
}
.doc .city-sources { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; }
.doc .city-sources li { font-size: .82rem; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.about-numbers, .doc .about-numbers { margin: 36px 0 20px; padding: 22px 20px; }
.doc .about-numbers h2 { margin: 0 0 .7em; }
.about-numbers dl { align-items: center; margin-bottom: 12px; }
.about-numbers .muted { font-size: .9rem; }

/* long text (privacy policy) */
.doc { max-width: 760px; padding-top: 28px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(1.7rem, 6.5vw, 2.2rem); }
.doc h2 { margin: 1.8em 0 .5em; font-size: 1.2rem; }
.doc h3 { margin: 1.2em 0 .3em; font-size: 1rem; }
.doc p, .doc li { font-size: .97rem; }
.doc ul { padding-left: 1.2em; }
.doc .dates { color: var(--muted); font-size: .9rem; margin: .6em 0 1.4em; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }
.toc { margin: 1.2em 0 0; padding: 16px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.toc ol { margin: 0; padding-left: 1.4em; }

/* footer */
footer { margin-top: 24px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 10px; }
footer a { color: var(--muted); }
footer p { margin: 0; }

@media (min-width: 760px) {
  .hero { padding: 56px 0 24px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screens { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 8px 0 0; overflow: visible; }
  .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .two .panel + .panel { margin-top: 0; }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- the introduction page (index.html) ---- */
:root { --pink: #D9467A; --pink-tint: #FDEBF1; }
:root[data-theme="dark"] { --pink: #F07FA6; --pink-tint: #33202A; }

.intro .hero { padding-bottom: 8px; }
.intro .lead { color: var(--text); }
.stores.light li { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.stores.light small { color: rgba(255, 255, 255, .8); }

/* two phones, the second a little lower and behind */
.phones { display: flex; justify-content: center; align-items: flex-start; padding: 8px 0 12px; }
.phones .phone { width: min(230px, 46vw); margin: 0; }
.phones .phone + .phone { margin-left: -14%; margin-top: 56px; position: relative; z-index: -1; transform: rotate(4deg); }
.phones .phone:first-child { transform: rotate(-3deg); }

/* where to jump on the page */
.jump { margin-top: 18px; }
.jump ul { display: flex; gap: 8px; margin: 0 -16px; padding: 4px 16px 12px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  display: inline-block; white-space: nowrap; padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 700;
}
.jump a:hover { border-color: var(--brand); }

.chip-label {
  display: inline-block; margin-bottom: 10px; padding: 2px 12px; border-radius: 999px;
  background: var(--tint); color: var(--brand-text); font-size: .8rem; font-weight: 800; line-height: 1.8;
}
.chip-label.pink { background: color-mix(in srgb, var(--pink) 16%, transparent); color: var(--pink); }
.intro section { padding: 48px 0; scroll-margin-top: 8px; }
.intro section .lead { margin: 0 0 1.2em; }
.note { margin: 14px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }

/* feature cards */
.ways { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.card { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.card b { display: block; font-size: 1rem; line-height: 1.5; }
.card p { margin: .3em 0 0; color: var(--muted); font-size: .92rem; line-height: 1.75; }

/* a tinted block for the bigger features */
.spotlight { padding: 28px 18px; border-radius: 26px; background: linear-gradient(160deg, var(--tint), var(--page) 75%); border: 1px solid var(--line); }
.spotlight.pink { background: linear-gradient(160deg, var(--pink-tint), var(--page) 75%); }

/* numbered steps */
.steps { display: grid; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
}
.steps b { display: block; line-height: 1.5; padding-top: 4px; }
.steps span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.7; }

/* screenshots: a row to swipe on phones, side by side on wide screens */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(230px, 64vw); gap: 18px;
  margin: 20px -16px 0; padding: 6px 16px 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
}
.spotlight .rail { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
.rail li { scroll-snap-align: center; }
.rail figure, .one-shot { margin: 0; }
.rail .phone { width: 100%; }
.rail figcaption { margin: 14px 2px 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.rail figcaption b { display: block; color: var(--text); font-size: .95rem; }
.swipe { display: block; margin-top: -4px; text-align: right; color: var(--muted); font-size: .8rem; }
.one-shot { display: grid; justify-items: center; gap: 14px; margin-top: 24px; }
.one-shot .phone { width: min(260px, 70vw); }
.one-shot figcaption { color: var(--muted); font-size: .88rem; text-align: center; }

/* questions */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; font-weight: 700; line-height: 1.6; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--brand-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: .95rem; }

/* the closing call */
.start-card {
  display: grid; justify-items: center; text-align: center; gap: 4px; padding: 36px 20px;
  border-radius: 28px; color: #fff; background: linear-gradient(140deg, #F7A35C, #E0703A);
}
.start-card img { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.start-card h2 { margin: 0; color: #fff; }
.start-card p { margin: 0; }
.start-card .stores { justify-content: center; margin-top: 18px; }

@media (min-width: 760px) {
  .phones .phone { width: 230px; }
  .jump ul { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 12px; }
  .split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
  .split.reverse > :first-child { order: 2; }
  .split .one-shot { margin-top: 0; }
  .ways.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spotlight { padding: 40px 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
  .rail, .spotlight .rail { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; padding: 0; overflow: visible; gap: 28px; }
  .rail.n2 { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; gap: 48px; }
  .split .rail.n2.tight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 0; }
  .swipe { display: none; }
  .start-card { padding: 48px 32px; }
}
