@font-face{
  font-family:"LINE Seed JP";
  src:url("../fonts/LINESeedJP_OTF_Bd.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"LINE Seed JP";
  src:url("../fonts/LINESeedJP_OTF_Eb.woff2") format("woff2");
  font-weight:800;
  font-style:normal;
  font-display:swap;
}

:root{
  --c-bg:#ffffff;
  --c-ink:#191919;
  --c-gold:#A28D69;
  --c-line:#D8D6CE;
  --c-deepblue:#0A5AD6;
  --read:720px;
}

*{box-sizing:border-box;margin:0;padding:0;}
html,body{background:var(--c-bg);color:var(--c-ink);}
body{
  font-family:"Zen Kaku Gothic New","Hiragino Kaku Gothic Pro",sans-serif;
  line-height:1.8;
}
a{color:inherit;}
:where(a,button):focus-visible{
  outline:3px solid var(--c-deepblue);
  outline-offset:4px;
}

.notes-site-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:28px 48px;
  border-bottom:1px solid var(--c-line);
}
.notes-site-header a{
  text-decoration:none;
  font-family:"LINE Seed JP","Zen Kaku Gothic New",sans-serif;
  font-weight:700;letter-spacing:0.15em;
}
.notes-site-header .brand{color:var(--c-deepblue);font-size:17px;text-transform:uppercase;}
.notes-site-header .back{font-size:12px;color:#5a5750;letter-spacing:0.12em;}

.notes-page{
  max-width:var(--read);
  margin:0 auto;
  padding:64px 48px 96px;
}
.notes-page__label{
  font-family:"LINE Seed JP","Zen Kaku Gothic New",sans-serif;
  font-weight:700;
  font-size:clamp(26px, 5vw, 68px);
  color:var(--c-deepblue);
  letter-spacing:-0.02em;
  line-height:1.2;
  margin-bottom:12px;
}
.notes-page__lead{
  font-size:clamp(14px, 1.55vw, 18px);
  font-weight:700;
  color:#4a4a4a;
  letter-spacing:0.04em;
  margin-bottom:40px;
}

.notes-list{display:flex;flex-direction:column;gap:40px;}
.notes-list-item{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:24px;
  align-items:start;
  text-decoration:none;
  color:inherit;
}
.notes-list-item__thumb{
  aspect-ratio:16/10;border-radius:8px;overflow:hidden;background:#f6f5f1;
}
.notes-list-item__thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.notes-list-item__meta{display:flex;flex-direction:column;gap:8px;padding-top:4px;}
.notes-list-item__date{font-size:12px;color:#8b887f;letter-spacing:0.06em;}
.notes-list-item__tag{font-size:11px;font-weight:700;letter-spacing:0.12em;color:#8b887f;}
.notes-list-item__title{
  font-size:18px;font-weight:700;line-height:1.55;letter-spacing:0.02em;
  transition:color .25s ease;
}
.notes-list-item:hover .notes-list-item__title,
.notes-list-item:focus-visible .notes-list-item__title{color:var(--c-deepblue);}

.notes-article-header{margin-bottom:40px;}
.notes-article-header .tag{
  font-size:11px;font-weight:700;letter-spacing:0.12em;color:#8b887f;
  margin-bottom:14px;
}
.notes-article-header h1{
  font-family:"LINE Seed JP","Zen Kaku Gothic New",sans-serif;
  font-size:clamp(24px, 4vw, 36px);
  font-weight:700;line-height:1.45;letter-spacing:0.02em;
  margin-bottom:12px;
}
.notes-article-header .date{font-size:13px;color:#8b887f;letter-spacing:0.06em;}
.notes-article-hero{
  margin:0 0 40px;border-radius:8px;overflow:hidden;background:#f6f5f1;
}
.notes-article-hero img{width:100%;height:auto;display:block;}

.notes-prose{font-size:16px;line-height:2;color:#333;letter-spacing:0.03em;}
.notes-prose > * + *{margin-top:1.5em;}
.notes-prose h2{
  font-family:"LINE Seed JP","Zen Kaku Gothic New",sans-serif;
  font-size:22px;font-weight:700;line-height:1.5;
  margin-top:2.5em;margin-bottom:0.5em;color:var(--c-ink);
}
.notes-prose h3{font-size:18px;font-weight:700;line-height:1.55;margin-top:2em;margin-bottom:0.35em;}
.notes-prose p{margin:0;}
.notes-prose ul,.notes-prose ol{padding-left:1.4em;}
.notes-prose li + li{margin-top:0.5em;}
.notes-prose a{color:var(--c-deepblue);text-underline-offset:3px;}
.notes-prose blockquote{
  border-left:3px solid var(--c-line);
  padding:4px 0 4px 20px;color:#5a5750;
}
.notes-prose pre{
  background:#f6f5f1;border-radius:8px;padding:16px 18px;
  overflow-x:auto;font-size:14px;line-height:1.7;
}
.notes-prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:0.92em;}
.notes-prose :not(pre) > code{background:#f6f5f1;padding:0.15em 0.4em;border-radius:4px;}
.notes-prose figure{margin:2em 0;}
.notes-prose figure img{width:100%;border-radius:8px;display:block;}
.notes-prose figcaption{font-size:12px;color:#8b887f;margin-top:10px;line-height:1.7;}
.notes-prose .sample-note{
  font-size:13px;color:#8b887f;border:1px solid var(--c-line);
  border-radius:8px;padding:12px 16px;background:#faf9f6;
}

.notes-back{
  display:inline-block;margin-top:56px;
  font-size:13px;font-weight:700;letter-spacing:0.1em;
  text-decoration:none;color:var(--c-ink);
  border-bottom:1px solid var(--c-ink);
}
.notes-back:hover{color:var(--c-deepblue);border-color:var(--c-deepblue);}

.notes-site-footer{
  text-align:center;padding:40px 0;
  font-size:13px;color:#5a5750;
  border-top:1px solid var(--c-line);
}

.totop{
  position:fixed;right:32px;bottom:32px;z-index:150;
  width:auto;height:auto;
  padding:8px 20px;
  font-size:13px;letter-spacing:0.12em;
  --trace-r:20px;
  text-decoration:none;
}

.cta{
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:999px;
  font-weight:700;
  transition:transform .28s cubic-bezier(.2,.7,.3,1), border-color .2s ease;
  border:1px solid var(--c-ink);background:transparent;color:var(--c-ink);
}
.cta:hover{transform:translateY(-4px);border-color:rgba(25,25,25,.14);}
.cta:active{transform:translateY(-1px);}

.has-trace{position:relative;}
.has-trace.totop{position:fixed;right:32px;bottom:32px;left:auto;top:auto;}
.has-trace > span{position:relative;}
.btn-trace{
  position:absolute;top:-1px;left:-1px;
  width:calc(100% + 2px);height:calc(100% + 2px);
  overflow:visible;pointer-events:none;
}
.btn-trace rect{
  x:0.5px;y:0.5px;width:calc(100% - 1px);height:calc(100% - 1px);
  rx:var(--trace-r,20px);
  fill:none;stroke:var(--c-ink);stroke-width:1;
  stroke-dasharray:100;stroke-dashoffset:100;
  transition:stroke-dashoffset .62s cubic-bezier(.65,0,.35,1);
}
.has-trace:hover .btn-trace rect{stroke-dashoffset:0;}
@media (prefers-reduced-motion:reduce){
  .btn-trace rect{transition:none;}
}

@media (max-width:768px){
  .notes-site-header{padding:16px 20px;}
  .notes-page{padding:48px 20px 72px;}
  .notes-list-item{grid-template-columns:1fr;gap:14px;}
  .notes-list-item__thumb{max-width:100%;}
  .notes-prose{font-size:15px;line-height:1.95;}
  .totop{right:16px;bottom:16px;padding:8px 16px;font-size:12px;}
  .has-trace.totop{right:16px;bottom:16px;}
}
