*, *::before, *::after { box-sizing: border-box; }
:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fefdfa;
  --ink: #1c302b;
  --muted: #4d6058;
  --accent: #245a46;
  --line: #ced8cf;
  --sage: #e4ede4;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.85 var(--sans); }
a { color: inherit; text-underline-offset: .27em; }
a:focus-visible { outline: 3px solid #a55229; outline-offset: 4px; }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
p { overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.38; }
h2 { font-size: clamp(1.65rem, 3.45vw, 2.75rem); letter-spacing: .015em; }
h3 { line-height: 1.55; }
section[id] { scroll-margin-top: 1rem; }
.frame { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: fixed; z-index: 2; inset: .6rem auto auto .6rem; transform: translateY(-170%); padding: .65rem 1rem; background: var(--white); border: 1px solid var(--accent); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .15rem 1.2rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; font: 600 1.5rem/1 Georgia, serif; letter-spacing: -.035em; }
.brand img { flex: none; }
nav { display: flex; gap: .15rem 1.1rem; flex-wrap: wrap; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .84rem; font-weight: 700; text-decoration: none; }
nav a:hover, .site-footer a:hover { text-decoration: underline; }
.hero { display: grid; gap: 2.15rem; align-items: center; padding-block: 3.45rem 2.75rem; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: var(--accent); font-weight: 700; font-size: .83rem; letter-spacing: .06em; margin-bottom: 1rem; }
.eyebrow span { width: 1.4rem; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(1.92rem, 7.65vw, 3.95rem); letter-spacing: -.025em; }
.hero-lead { color: var(--muted); max-width: 27rem; margin-block: 1.15rem 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.1rem; min-height: 48px; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 6px; font-weight: 700; font-size: .92rem; text-decoration: none; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #194634; }
.hero .primary { min-height: 52px; padding-inline: 1.35rem; font-size: .98rem; box-shadow: 0 3px 8px #245a4629; }
.notebook { min-width: 0; }
.notebook-art {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  min-height: 322px;
  padding: clamp(1rem, 3vw, 1.85rem);
  border: 1px solid #c1d1c3;
  border-radius: 10px;
  background: radial-gradient(#728d783b 1px, transparent 1px) 0 0 / 15px 15px, linear-gradient(135deg, #e5eee2, #d1e0d3);
}
.art-caption, .art-footer { display: flex; flex-wrap: wrap; align-items: center; color: #385647; font-weight: 700; }
.art-caption { justify-content: space-between; font-size: .69rem; letter-spacing: .15em; }
.art-index { font-variant-numeric: tabular-nums; }
.note-stack { position: relative; isolation: isolate; width: min(90%, 325px); margin-inline: auto; }
.note-stack::before, .note-stack::after { content: ""; position: absolute; inset: 0; border: 1px solid #a5b7aa; border-radius: 8px; z-index: -1; }
.note-stack::before { transform: rotate(-7deg); background: #f4f5e9; }
.note-stack::after { transform: rotate(6deg); background: #eaf2e9; }
.note-sheet { background: #fffefa; border: 1px solid #b9c8bc; border-radius: 8px; padding: clamp(.8rem, 2.7vw, 1.5rem); box-shadow: 0 12px 22px #284b3630; }
.note-top { display: flex; align-items: center; flex-wrap: wrap; gap: .42rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.note-mark { height: 10px; width: 10px; border-radius: 3px; background: var(--accent); }
.private-label { margin-left: auto; color: #254735; border: 1px solid #ccdbce; border-radius: 3px; background: #edf4ed; padding-inline: .4rem; }
.note-kicker { color: var(--muted); margin-top: .8rem; font-size: .7rem; letter-spacing: .06em; }
.note-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 3.8vw, 1.55rem); }
.note-lines { list-style: none; color: #40564b; font-size: .78rem; margin: .55rem 0 .65rem; padding: 0; }
.note-lines li { border-top: 1px solid #e0e7df; padding: .22rem 0; }
.note-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.note-tags span { padding: .05rem .52rem; border-radius: 20px; font-size: .7rem; color: #254735; background: #e9f0e9; }
.art-footer { justify-content: center; gap: .55rem; font-size: .72rem; }
.notebook figcaption { color: var(--muted); font-size: .73rem; margin-top: .6rem; }
.section-label { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .1em; margin-bottom: .65rem; }
.section-label span { margin-left: .45rem; }
.feature-section, .compare-section, .privacy-section { padding-block: 3rem; }
.feature-section { border-top: 1px solid var(--line); display: grid; gap: 1.65rem; }
.section-intro > p:not(.section-label) { color: var(--muted); max-width: 24rem; margin-top: .85rem; }
.feature-list { border-top: 1px solid var(--line); }
.feature-list > div { display: grid; gap: .24rem; border-bottom: 1px solid var(--line); padding-block: .85rem; }
.feature-list dt { font-weight: 700; }
.feature-list dt span { color: var(--accent); font-size: .73rem; letter-spacing: .07em; margin-right: .8rem; }
.feature-list dd { color: var(--muted); font-size: .91rem; margin-inline-start: 1.85rem; }
.how-section { background: var(--sage); border-block: 1px solid var(--line); padding-block: 3rem; }
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.35rem; }
.steps li { border-top: 1px solid #8aa590; padding-top: .8rem; }
.step-no { font: 400 1.65rem/1 Georgia, serif; color: var(--accent); }
.steps h3 { font-size: 1.08rem; margin-block: .36rem .3rem; }
.steps p, .compare-card p:not(.role-label), .privacy-copy p { color: var(--muted); font-size: .92rem; }
.compare-grid { display: grid; gap: .9rem; margin-top: 1.35rem; }
.compare-card { min-width: 0; border-radius: 8px; border: 1px solid var(--line); padding: 1.35rem; background: var(--white); }
.personal { background: #edf2e9; }
.role-label { color: var(--accent); font-size: .73rem; font-weight: 700; letter-spacing: .08em; }
.compare-card h3 { font: 600 1.55rem/1.5 Georgia, serif; margin-block: .25rem .35rem; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; color: var(--accent); font-size: .85rem; font-weight: 700; }
.compare-note { color: var(--accent); font-size: .88rem; font-weight: 700; margin-top: 1rem; }
.privacy-section { border-top: 1px solid var(--line); display: grid; gap: 1.3rem; }
.privacy-copy h3 { font-size: 1rem; margin-bottom: .2rem; }
.privacy-copy p + h3 { margin-top: .9rem; }
.entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 1.8rem; background: #203c31; color: #fcfbf4; border-radius: 8px; padding: clamp(1.15rem, 3vw, 1.9rem); }
.entry p { color: #e0ebe2; font-size: .86rem; margin-top: .25rem; max-width: 35rem; }
.entry-button { background: #f4f4e9; color: #203c31; }
.entry-button:hover { background: #dae8d9; }
.entry-button:focus-visible { outline-color: #ffbf88; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer .brand { color: var(--ink); font-size: 1.25rem; }
.site-footer p, .site-footer a:not(.brand) { font-size: .78rem; }
.site-footer a:not(.brand) { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
@media (min-width: 640px) {
  .frame { width: min(1120px, 100% - 4rem); }
  .header-inner { padding-block: .85rem; }
  nav { gap: 1.65rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .compare-card { padding: 1.8rem; }
  .small-break { display: none; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr .92fr; gap: 3.6rem; padding-block: clamp(3rem, 7vh, 4.15rem) clamp(2.75rem, 5.5vh, 3.5rem); }
  .hero h1 { font-size: clamp(2.7rem, 4.6vw, 3.95rem); }
  .notebook-art { min-height: 377px; }
  .feature-section, .privacy-section { grid-template-columns: .8fr 1fr; gap: 2.2rem 3.8rem; }
  .feature-section, .compare-section, .privacy-section, .how-section { padding-block: 4.1rem; }
  .entry { grid-column: 1 / -1; margin-top: .45rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
