:root {
  --bg: #FFFAF6;
  --peach: #FFE9DF;
  --peach2: #FFF3EC;
  --coral: #FF8A7A;
  --coral-d: #D9503F;
  --lemon: #FFE27A;
  --mint: #CFEFE3;
  --ink: #5A3E36;
  --ink2: #8A6C63;
  --line: #F3D9CE;
  --card: #FFFFFF;
  --lock: #EDE6E2;
  --shadow: 0 6px 24px rgba(217, 80, 63, .10);
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 500; line-height: 1.8; font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 246, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { margin: 0; font-weight: 900; font-size: 18px; letter-spacing: .04em; }
.logo span { color: var(--coral); margin-right: 4px; }
.top-link { font-size: 13px; font-weight: 700; color: #fff; background: var(--coral); padding: 6px 14px; border-radius: 99px; text-decoration: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--peach); padding: 0; }
.hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 70% center; }
.hero-in { position: relative; padding-top: 22px; padding-bottom: 36px; }
.hero-kicker { display: inline-block; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--coral-d); background: #fff; border: 2px solid var(--coral); padding: 2px 14px; border-radius: 99px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(26px, 7vw, 40px); line-height: 1.45; font-weight: 900; letter-spacing: .02em; }
mark { background: linear-gradient(transparent 58%, #FFC2B8 58%); color: inherit; padding: 0 2px; }
mark.y { background: linear-gradient(transparent 58%, var(--lemon) 58%); }
.hero-sub { margin: 0 0 20px; color: var(--ink2); font-size: 15px; }
@media (min-width: 760px) {
  .hero-img { aspect-ratio: auto; height: 600px; object-position: right center; }
  .hero-in { position: absolute; inset: 0; max-width: 1180px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 0; padding-bottom: 0; }
  .hero-in > * { max-width: 40%; }
  .hero h1 { font-size: clamp(30px, 3.2vw, 44px); }
  .hero h1 { text-shadow: 0 0 18px rgba(255, 250, 246, .9); }
}

/* buttons */
.btn { display: inline-block; border: 0; border-radius: 99px; font-weight: 900; text-decoration: none; text-align: center; transition: transform .15s, box-shadow .15s, background .2s; }
.btn-main { background: linear-gradient(180deg, #FF9C8C, var(--coral)); color: #fff; padding: 14px 28px; box-shadow: 0 6px 0 var(--coral-d), var(--shadow); font-size: 16px; }
.btn-main:hover:not(:disabled) { transform: translateY(-2px); }
.btn-main:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--coral-d); }
.btn-main:disabled { background: #E9DCD6; color: #A99189; box-shadow: 0 6px 0 #D8C8C1; cursor: not-allowed; font-size: 14px; }
.btn-sub { background: #fff; border: 2px solid var(--line); padding: 10px 18px; font-size: 14px; }
.btn-sub:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }

/* section title */
section { padding: 48px 0; }
.ttl { text-align: center; font-size: 24px; font-weight: 900; margin: 0 0 24px; line-height: 1.4; }
.ttl small { display: block; font-size: 12px; letter-spacing: .25em; color: var(--coral); }

/* how */
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); position: relative; }
.how b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lemon); font-size: 18px; font-weight: 900; }
.how h3 { margin: 10px 0 4px; font-size: 17px; }
.how p { margin: 0; font-size: 14px; color: var(--ink2); }

/* roadmap */
.roadmap { background: linear-gradient(180deg, var(--peach2), var(--bg)); }
.why-order { background: #fff; border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow); margin-bottom: 30px; }
.why-order h3 { margin: 0 0 8px; font-size: 19px; text-align: center; }
.why-order > p { margin: 0 0 16px; font-size: 14.5px; }
.layers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.layers li { background: color-mix(in srgb, var(--c) 22%, #fff); border-left: 8px solid var(--c); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--ink2); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.layers li span { font-weight: 900; color: var(--ink); font-size: 15px; min-width: 9.5em; }
.layers li:nth-child(1) { margin: 0 0; } .layers li:nth-child(2) { margin: 0 2%; } .layers li:nth-child(3) { margin: 0 4%; }
.layers li:nth-child(4) { margin: 0 6%; } .layers li:nth-child(5) { margin: 0 8%; } .layers li:nth-child(6) { margin: 0 10%; } .layers li:nth-child(7) { margin: 0 12%; }

.rm-list { list-style: none; padding: 0; margin: 0; position: relative; }
.rm-list::before { content: ""; position: absolute; left: 19px; top: 10px; bottom: 10px; border-left: 3px dotted #F2B8AC; }
.rm { position: relative; padding-left: 52px; margin-bottom: 18px; }
.rm-node { position: absolute; left: 0; top: 14px; width: 41px; height: 41px; border-radius: 50%; background: #fff; border: 3px solid var(--c); display: grid; place-items: center; font-weight: 900; z-index: 1; }
.rm.is-done .rm-node { background: var(--c); color: #fff; }
.rm.is-done .rm-node span::after { content: "✓"; } .rm.is-done .rm-node span { font-size: 0; } .rm.is-done .rm-node span::after { font-size: 18px; }
.rm.is-now .rm-node { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent); }
.rm-body { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border-top: 6px solid var(--c); }
.rm-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--peach); }
.rm-text { padding: 14px 16px 16px; }
.rm-days { margin: 0; font-size: 13px; font-weight: 900; color: color-mix(in srgb, var(--c) 70%, var(--ink)); }
.rm-days em { font-style: normal; margin-left: 8px; background: color-mix(in srgb, var(--c) 25%, #fff); padding: 1px 10px; border-radius: 99px; }
.rm h3 { margin: 2px 0 6px; font-size: 19px; }
.rm-why { margin: 0 0 8px; font-size: 14px; }
.rm-get { margin: 0 0 10px; font-size: 13.5px; color: var(--ink2); background: var(--peach2); border-radius: 12px; padding: 8px 12px; }
.rm-get b { display: block; color: var(--ink); font-size: 12px; }
.rm-bar, .bar { height: 8px; background: var(--lock); border-radius: 99px; overflow: hidden; }
.rm-bar i, .bar i { display: block; height: 100%; background: var(--c, var(--coral)); border-radius: 99px; transition: width .6s; }

.goal { margin-top: 30px; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 3px solid #FFD3C9; }
.goal img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.goal-text { padding: 18px 20px 22px; }
.goal-kicker { margin: 0; font-size: 12px; letter-spacing: .25em; color: var(--coral); font-weight: 900; }
.goal h3 { margin: 0 0 8px; font-size: 22px; }
.goal ul { margin: 0; padding: 0; list-style: none; }
.goal li { padding-left: 1.5em; position: relative; margin: 4px 0; font-size: 15px; }
.goal li::before { content: "✿"; position: absolute; left: 0; color: var(--coral); }

/* drill */
.start-box { text-align: center; background: #fff; border-radius: var(--r); padding: 24px 18px; box-shadow: var(--shadow); border: 3px dashed #FFC2B8; }
.start-box p { margin: 0 0 16px; }
.dash { display: flex; gap: 18px; align-items: center; background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.ring { --p: 0; flex: none; width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--coral) calc(var(--p) * 360deg), var(--lock) 0); transition: background .6s; }
.ring > div { width: 86px; height: 86px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring b { font-size: 30px; font-weight: 900; color: var(--coral-d); }
.ring small { font-size: 11px; color: var(--ink2); }
.dash-info { flex: 1; min-width: 0; }
.dash-phase { margin: 0 0 8px; font-weight: 900; font-size: 14px; }
.dash-stats { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 18px; }
.dash-stats li { font-size: 13px; }
.dash-stats b { font-size: 24px; font-weight: 900; color: var(--coral-d); }
.dash-stats small { display: block; color: var(--ink2); font-size: 11px; margin-top: -4px; }

.grid-wrap { margin: 18px 0 24px; }
.grid-note { font-size: 12px; color: var(--ink2); margin: 0 0 6px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.cell { aspect-ratio: 1; border: 0; border-radius: 8px; font-size: 11px; font-weight: 700; padding: 0; display: grid; place-items: center; }
.cell.lock { background: var(--lock); position: relative; cursor: default; }
.cell.lock::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #D8CCC6; }
.cell.open { background: #fff; border: 2px solid var(--c); color: var(--ink); animation: pulse 1.8s infinite; }
.cell.done { background: var(--c); color: #fff; }
.cell.cur { outline: 3px solid var(--ink); outline-offset: 1px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent); } }

.today { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 70px; border: 3px solid color-mix(in srgb, var(--c) 45%, #fff); }
.today-head { position: relative; }
.today-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.today-head-text { position: absolute; left: 14px; bottom: 12px; }
.day-label { margin: 0; display: inline-block; background: var(--c); color: #fff; font-weight: 900; font-size: 22px; letter-spacing: .08em; padding: 2px 16px; border-radius: 12px; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.day-phase { margin: 6px 0 0; background: rgba(255,255,255,.94); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; display: table; }
.today-body { padding: 18px 18px 22px; }
.today h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.5; }
.lesson { background: var(--peach2); border-radius: 16px; padding: 12px 14px; font-size: 14.5px; }
.lesson-h { margin: 0 0 2px; font-weight: 900; color: var(--coral-d); font-size: 13px; }
.lesson p { margin: 0; }
.meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); margin: 10px 2px 6px; }
.meta span:first-child { background: var(--mint); color: #2F6B57; font-weight: 700; padding: 0 10px; border-radius: 99px; }
.tasks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.task label { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; transition: background .2s, border-color .2s; }
.task input { position: absolute; opacity: 0; pointer-events: none; }
.task .box { flex: none; width: 28px; height: 28px; border-radius: 9px; border: 2.5px solid var(--coral); margin-top: 2px; display: grid; place-items: center; background: #fff; transition: background .2s; }
.task input:focus-visible + .box { outline: 3px solid var(--lemon); }
.task.checked label { background: #FFF1EC; border-color: var(--coral); }
.task.checked .box { background: var(--coral); }
.task.checked .box::after { content: "✓"; color: #fff; font-weight: 900; font-size: 17px; }
.task-body { font-size: 15px; line-height: 1.7; }
.task-body small { display: block; font-size: 11.5px; font-weight: 900; color: var(--coral-d); letter-spacing: .05em; }
.task.checked .task-body { color: var(--ink2); }
.tip { background: #FFFBE6; border: 2px dashed #F5D66B; border-radius: 16px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.tip b { font-size: 12.5px; color: #A07B00; }
.tip p { margin: 0; }
.memo-l { font-size: 12.5px; font-weight: 700; color: var(--ink2); }
textarea { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); margin: 4px 0 16px; resize: vertical; }
textarea:focus { outline: none; border-color: var(--coral); }
.pager { display: flex; justify-content: space-between; margin-top: 14px; }

/* footer */
.foot { background: var(--peach); padding: 30px 0 90px; font-size: 13px; color: var(--ink2); }
.caution { font-size: 12px; }
.reset { background: none; border: 1px solid #D9BFB5; border-radius: 99px; padding: 6px 16px; font-size: 12px; color: var(--ink2); }
.copy { text-align: center; margin-top: 20px; }

.fab { position: fixed; right: 14px; bottom: 16px; z-index: 30; width: 66px; height: 66px; border-radius: 50%; background: var(--coral); color: #fff; font-size: 12px; font-weight: 900; line-height: 1.3; display: grid; place-content: center; text-align: center; text-decoration: none; box-shadow: 0 6px 18px rgba(217,80,63,.35); }

/* modal / toast / confetti */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(90, 62, 54, .45); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 26px; max-width: 460px; width: 100%; overflow: hidden; text-align: center; animation: pop .4s cubic-bezier(.2,1.4,.4,1); max-height: 92vh; overflow-y: auto; }
.modal-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.modal-card .m-kicker { margin: 16px 0 0; font-size: 12px; letter-spacing: .25em; font-weight: 900; color: var(--coral); }
.modal-card h3 { margin: 2px 18px 8px; font-size: 21px; }
.modal-card p { margin: 0 20px 18px; font-size: 14.5px; text-align: left; }
.modal-card .btn { width: auto; margin: 0 20px 22px; display: block; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti span { position: absolute; top: -30px; color: var(--coral); animation: fall 2.4s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* headings in mincho (design comp) */
.hero h1, .ttl, .logo, .today h3, .goal h3, .modal-card h3 { font-family: "Zen Old Mincho", "Hiragino Mincho ProN", serif; font-weight: 900; }
.hero h1 { color: var(--coral-d); }
.hero h1 mark { color: var(--ink); }
.locked { display: grid; gap: 10px; margin-top: 14px; }
.locked-card { display: flex; align-items: center; gap: 12px; background: var(--lock); border-radius: 16px; padding: 14px 16px; color: #A99189; font-size: 14px; }
.locked-card b { font-size: 15px; color: #8F7A72; }
.locked-card .lk { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 16px; }
