/* 色はアプリに合わせる。赤は使わない。ライトモードのみ */
:root {
  color-scheme: light;
  --paper: #FBF5E6;
  --ink: #0F2A66;
  --blue: #1A4099;
  --wash: #DCEBFA;
  --white: #FFFFFF;
  --muted: #435574;
  --line: #B5C4D8;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.in { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--white); padding: 8px 12px; }
.skip:focus { top: 8px; }

h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(32px, 9vw, 40px); line-height: 1.38; }
h2 { font-size: 28px; line-height: 1.45; }
h3 { font-size: 21px; line-height: 1.5; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.screen { border: 1px solid var(--line); border-radius: 26px; background: var(--white); box-shadow: 0 14px 32px #0F2A6622; }

.bar { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: var(--paper); }
.bar .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
/* Leggodt のホームと同じ方眼と積み木で、作り手へ戻る入口にする */
.maker-bar { background-color: #FBF8EF; background-image: linear-gradient(#E6E2D6 1px, transparent 1px), linear-gradient(90deg, #E6E2D6 1px, transparent 1px); background-size: 24px 24px; border-bottom: 1px solid #E6E2D6; }
.maker-bar a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #1C1C1C; font-size: 16px; font-weight: 800; text-decoration: none; }
.maker-bar a:hover { text-decoration: underline; }
.maker-mark { flex: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 20px; font-weight: 700; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand img.wordmark { width: 118px; height: auto; border-radius: 0; }
.bar nav { display: flex; gap: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.bar .brand { font-size: 17px; gap: 6px; }
.bar .brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar .brand img.wordmark { width: 102px; height: auto; border-radius: 0; }

.hero { padding: 40px 0 56px; }
.hero .in { display: grid; gap: 36px; }
.eyebrow { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.lead { margin-top: 20px; }
.status { margin-top: 24px; padding: 12px 0; border-block: 1px solid var(--line); }
.status strong { display: block; font-size: 19px; }
.status span { color: var(--muted); font-size: 16px; }
.cta { display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 24px; padding: 10px 24px; border-radius: 12px; background: var(--blue); color: var(--white); font-weight: 700; text-decoration: none; }
.cta:hover { background: var(--ink); }
.hero-art { position: relative; display: flex; justify-content: flex-end; padding: 32px 16px 32px 0; }
.hero-art::before { content: ""; position: absolute; inset: 88px 0 0; background: var(--wash); border-radius: 24px; }
.hero-art .screen { position: relative; width: 66%; max-width: 260px; }
.hero-bee { position: absolute; left: 0; bottom: 28px; width: 34%; max-width: 132px; }

.sec { padding: 56px 0; border-top: 1px solid var(--line); }
.two { display: grid; gap: 24px; }

.worries li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; line-height: 1.6; }
.worries li:first-child { padding-top: 0; }

.work { background: var(--white); }
.work-head { display: flex; align-items: center; gap: 16px; }
.work-head img { width: 72px; flex: none; }
.flow { display: grid; gap: 28px; margin-top: 32px; }
.flow li { position: relative; padding-left: 60px; }
.flow .num { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 21px; font-weight: 700; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: -20px; width: 2px; background: var(--line); }
.flow h3 { font-size: 24px; }
.flow p { margin-top: 4px; }
.scope { margin-top: 32px; padding: 18px 20px; border-radius: 12px; background: var(--paper); }

.room { padding: 64px 0; background: var(--wash); }
.room h2 { font-size: 34px; }
.room-lead { margin-top: 12px; font-size: 20px; line-height: 1.7; }
.room-lead span, .scene figcaption span { display: inline-block; }
.scenes { display: grid; gap: 40px; margin-top: 36px; }
.scene { margin: 0; }
.scene figcaption { margin-bottom: 16px; }
.scene figcaption strong { display: block; font-size: 24px; line-height: 1.5; }
.scene .screen { width: 100%; max-width: 340px; margin-inline: auto; }
.paper img { width: 100%; background: var(--white); border-radius: 2px; box-shadow: 0 14px 32px #0F2A6633; }
.room-note { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }

.plans { display: grid; gap: 20px; margin-top: 28px; }
.plan { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.plan.paid { border: 2px solid var(--blue); }
.plan-lead { margin: -8px 0 12px; color: var(--muted); font-size: 16px; }
.plan .big strong { color: var(--blue); }
.plan h3 { font-size: 24px; margin-bottom: 12px; }
.plan li { padding: 8px 0 8px 1.2em; text-indent: -1.2em; border-top: 1px solid #B5C4D866; line-height: 1.6; }
.plan li::before { content: "・"; display: inline-block; width: 1.2em; text-indent: 0; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; }
.prices div { padding: 10px 4px; border-radius: 10px; background: var(--wash); text-align: center; }
.prices dt { font-size: 16px; }
.prices dd { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4; }
.plan-note { margin-top: 10px; font-size: 16px; color: var(--muted); }
.terms { margin-top: 16px; font-size: 16px; line-height: 1.7; }

.safe { background: var(--white); }
.safe-list { display: grid; gap: 24px; }
.safe-list p { margin-top: 4px; }

.start-grid { display: grid; gap: 32px; }
.start-grid > .screen { width: 70%; max-width: 280px; margin-inline: auto; }
.steps { counter-reset: s; margin: 24px 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; color: var(--blue); font-size: 30px; font-weight: 700; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 0; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; flex: none; color: var(--blue); }
details[open] summary::after { content: "－"; }
details p { padding-bottom: 16px; }
.faq-more { margin-top: 20px; }

.name { background: var(--wash); border-top: 0; }
.name-grid { display: grid; gap: 20px; }
.name-grid > img { width: 112px; }
.name-grid h2 { margin-bottom: 12px; }
.placeholder { margin-top: 12px; color: var(--muted); }
.sample { margin-top: 16px; color: var(--muted); font-size: 16px; }
.room-note .sample { display: block; margin-top: 4px; font-weight: 400; }
@media (max-width: 359px) { .bar .brand span, .bar .brand img.wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* ジュシンビーのフッター */
.app-foot { padding: 12px 0; border-top: 1px solid var(--line); background: var(--white); }
.app-foot .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.app-foot .brand { font-size: 17px; gap: 6px; }
.app-foot .brand img { width: 32px; height: 32px; border-radius: 8px; }
.app-foot .brand img.wordmark { width: 102px; height: auto; border-radius: 0; }
.app-foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.app-foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px; font-weight: 600; }
/* Leggodt 共通のフッター。ホームと同じ方眼と積み木 */
.site-foot { padding: 12px 0; border-top: 1px solid #E6E2D6; background-color: #FBF8EF; background-image: linear-gradient(#E6E2D6 1px, transparent 1px), linear-gradient(90deg, #E6E2D6 1px, transparent 1px); background-size: 24px 24px; color: #1C1C1C; font-size: 16px; }
.site-foot > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.site-foot a { color: #1C1C1C; display: inline-flex; align-items: center; min-height: 44px; margin: 0; }
.site-home { gap: 10px; font-weight: 800; text-decoration: none; }
.site-home svg { flex: none; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-weight: 600; }

/* 下層ページ */
.doc { max-width: 800px; padding: 48px 0 64px; }
.doc h1 { font-size: 32px; line-height: 1.4; margin-bottom: 16px; }
.doc h2 { font-size: 24px; margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.doc p { margin: 12px 0; }
.doc ul { list-style: disc; padding-left: 1.4em; margin: 12px 0; }
.doc li { margin: 6px 0; }
.muted { color: var(--muted); font-size: 16px; }
.toc { list-style: decimal; padding: 16px 20px 16px 44px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.toc li { min-height: 32px; }
.card, .links .card { display: block; margin: 16px 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-decoration: none; }
.card strong { font-size: 21px; }
.shots { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.shots figure { margin: 0; flex: 0 1 260px; }
.shots img { width: 100%; border: 1px solid var(--line); border-radius: 22px; }
.shots figcaption { margin-top: 8px; color: var(--muted); font-size: 16px; }
.note { margin-top: 48px !important; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--white); font-size: 16px; line-height: 1.7; }
th, td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.todo { border-bottom: 2px dotted var(--muted); font-weight: 600; }

@media (min-width: 840px) {
  body { font-size: 19px; }
  h1 { font-size: 56px; line-height: 1.35; }
  h2 { font-size: 32px; }
  .bar nav { gap: 28px; font-size: 16px; }
  .bar .brand { font-size: 20px; gap: 10px; }
  .bar .brand img { width: 40px; height: 40px; border-radius: 10px; }
  .bar .brand img.wordmark { width: 118px; height: auto; border-radius: 0; }
.brand img.wordmark { width: 118px; height: auto; border-radius: 0; }
  .hero { padding: 64px 0 80px; }
  .hero .in { grid-template-columns: 54fr 46fr; gap: 56px; align-items: center; }
  .lead { font-size: 20px; max-width: 30em; }
  .cta { display: inline-flex; }
  .status { max-width: 24em; }
  .hero-art .screen { width: 290px; max-width: none; }
  .hero-art { padding-right: 32px; }
  .hero-bee { max-width: 170px; width: 170px; }
  .sec { padding: 80px 0; }
  .two { grid-template-columns: 300px 1fr; gap: 48px; }
  .work-head img { width: 96px; }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
  .flow li { padding: 60px 0 0; }
  .flow li:not(:last-child)::after { left: 56px; right: -32px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .room { padding: 96px 0; }
  .room h2 { font-size: 44px; }
  .room-lead { font-size: 22px; max-width: 30em; }
  .scenes { grid-template-columns: 380px 1fr; gap: 64px; align-items: start; margin-top: 48px; }
  .plans { grid-template-columns: 2fr 3fr; }
  .safe-list { grid-template-columns: 1fr 1fr; gap: 40px; }
  .start-grid { grid-template-columns: 1fr 300px; gap: 72px; align-items: center; }
  .start-grid > .screen { width: 100%; }
  .name-grid { grid-template-columns: 160px 1fr; gap: 40px; align-items: center; }
  .name-grid > img { width: 160px; }
}
