/* しゃじゅ LP — 紙と黒板 */
:root {
  --paper: #f6f2e9;
  --paper-2: #eee8d9;
  --ink: #1c2130;
  --ink-2: #575d70;
  --line: #d8d0bd;
  --board: #1f3f38;
  --wood: #8b6a44;
  --chalk: #f3f1e7;
  --red: #c9442f;
  --mark: #ffe27a;
  --maxw: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.95 "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.serif { font-family: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif; }
.hand { font-family: "Klee One", "Hiragino Maru Gothic ProN", sans-serif; }
.mark { background: linear-gradient(transparent 60%, var(--mark) 60%, var(--mark) 92%, transparent 92%); padding: 0 0.08em; }

/* header */
.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 8px; }
.soon { font-size: 13px; border: 1px solid var(--ink); border-radius: 999px; padding: 3px 14px; }

/* hero */
.hero { padding: 36px 0 84px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.kicker { font-size: 15px; color: var(--red); margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.5; letter-spacing: 0.02em; }
.lead { margin-top: 26px; color: var(--ink-2); max-width: 30em; }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); padding: 13px 26px; border-radius: 10px; font-weight: 700; }
.cta small { color: var(--ink-2); font-size: 14px; }

.board {
  position: relative; overflow: hidden;
  background: var(--board);
  border: 12px solid var(--wood); border-radius: 6px;
  padding: 120px 20px 0;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.38), 0 26px 40px -26px rgba(28, 33, 48, 0.65);
}
.board .phone { width: min(62%, 270px); margin-inline: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.board .phone .screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.board .chalk { position: absolute; left: 26px; top: 22px; color: var(--chalk); font-size: 18px; line-height: 1.6; transform: rotate(-3deg); }
.board .arrow { position: absolute; left: 44px; top: 78px; width: 92px; opacity: 0.92; }

/* phone */
.phone {
  aspect-ratio: 1206 / 2622;
  border-radius: 15.6% / 7.2%;
  padding: 2.4%;
  background: #15171e;
  box-shadow: 0 20px 36px -20px rgba(28, 33, 48, 0.55), 0 2px 5px rgba(28, 33, 48, 0.25);
}
.phone .screen { width: 100%; height: 100%; overflow: hidden; border-radius: 13.4% / 6.2%; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

/* problem */
.problem { background: var(--paper-2); padding: 80px 0 84px; border-block: 1px solid var(--line); }
.problem h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.5; }
.notebook {
  margin-top: 36px; max-width: 660px;
  background-image: repeating-linear-gradient(transparent 0, transparent 51px, var(--line) 51px, var(--line) 52px);
  border-top: 1px solid var(--line);
}
.notebook p { font-family: "Klee One", sans-serif; font-size: 19px; line-height: 52px; }
.because { margin-top: 28px; color: var(--red); font-size: 22px; font-weight: 600; }

/* features */
.feat { padding: 76px 0; border-bottom: 1px solid var(--line); }
.feat .wrap { display: grid; grid-template-columns: 5fr 6fr; gap: 68px; align-items: center; }
.feat.rev .wrap { grid-template-columns: 6fr 5fr; }
.feat.rev .wrap > :first-child { order: 2; }
.label { color: var(--red); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feat h3 { font-size: clamp(23px, 2.8vw, 31px); font-weight: 800; line-height: 1.55; }
.feat .text p + p { margin-top: 1em; }
.feat .text h3 + p { margin-top: 16px; }
.aside { font-size: 14.5px; color: var(--ink-2); border-left: 3px solid var(--mark); padding-left: 12px; margin-top: 18px !important; line-height: 1.8; }
.shots { display: flex; gap: 18px; justify-content: center; align-items: flex-start; }
.shots .phone { width: min(47%, 232px); }
.shots .phone:nth-child(2) { margin-top: 34px; }
.shots.one { flex-direction: column; align-items: center; }
.shots.one .phone { width: min(58%, 250px); }
.shots.one .cap { text-align: center; }

/* compare */
.compare {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  border: 1px solid var(--line); border-radius: 6px; background: #17382f;
  cursor: ew-resize; user-select: none; touch-action: pan-y;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { object-fit: contain; background: #17382f; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-50%); }
.compare .handle::after {
  content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; color: var(--ink); font-size: 11px; letter-spacing: 2px; padding: 8px 10px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.compare .tag { position: absolute; top: 12px; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.compare .l { left: 12px; }
.compare .r { right: 12px; }
.cap { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* privacy (黒板) */
.privacy { background: var(--board); color: var(--chalk); padding: 84px 0; border-block: 12px solid var(--wood); box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.3); }
.privacy h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; line-height: 1.5; }
.privacy p { max-width: 36em; margin-top: 20px; color: #dedccb; }
.privacy h2 + p { margin-top: 24px; }

/* know */
.know { padding: 80px 0 90px; }
.know h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.know ul { margin-top: 28px; padding: 0; list-style: none; max-width: 760px; border-top: 1px solid var(--line); }
.know li { display: grid; grid-template-columns: 9.5em 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.know li b { font-weight: 700; }
.know li span { color: var(--ink-2); }

/* footer */
.foot { padding: 34px 0 54px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }

/* fade */
.fade { opacity: 0; transition: opacity 0.7s ease; }
.fade.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fade { opacity: 1; transition: none; } }

/* responsive */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero .wrap, .feat .wrap, .feat.rev .wrap { grid-template-columns: 1fr; gap: 36px; }
  .feat.rev .wrap > :first-child { order: 0; }
  .feat { padding: 56px 0; }
  .hero { padding-bottom: 56px; }
  .board { padding-top: 112px; }
  .know li { grid-template-columns: 1fr; gap: 2px; }
  .notebook p { font-size: 17px; line-height: 46px; }
  .because { font-size: 18px; }
  .notebook { background-image: repeating-linear-gradient(transparent 0, transparent 45px, var(--line) 45px, var(--line) 46px); }
}
