:root {
  --ink: #241d20;
  --ink-soft: #4f4147;
  --paper: #fffaf8;
  --paper-pink: #fbe9ec;
  --paper-deep: #f4cbd4;
  --pink: #e86f8f;
  --pink-dark: #bd4668;
  --pink-soft: #f6a9ba;
  --red: #bd4d61;
  --gold: #d9ae5e;
  --line: rgba(44, 31, 36, .23);
  --shadow: 0 18px 50px rgba(74, 39, 52, .15);
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.7) 0 1px, transparent 2px) 0 0/17px 17px,
    linear-gradient(135deg, #f9e6e9, #f2d0d7 58%, #edc4cd);
  font-family: var(--sans);
  font-feature-settings: "palt" 1;
  line-height: 1.75;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .17;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}
button, a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }
::selection { color: white; background: var(--pink-dark); }

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: -80px;
  padding: .65rem 1rem;
  color: white;
  background: var(--ink);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.boot {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: #181416;
  transition: opacity .5s ease, visibility .5s ease;
}
.boot.is-hidden { opacity: 0; visibility: hidden; }
.boot__card { width: min(420px, calc(100% - 48px)); padding: 2rem; border: 1px solid #f6a9ba; text-align: center; }
.boot__card p, .boot__card small { font: 700 .68rem/1.5 var(--mono); letter-spacing: .17em; }
.boot__card strong { display: block; margin: 1.2rem 0; color: #f6a9ba; font: 800 3rem/.84 Georgia, serif; letter-spacing: -.06em; }
.boot__meter { height: 8px; border: 1px solid #f6a9ba; }
.boot__meter i { display: block; width: 0; height: 100%; background: #f6a9ba; animation: bootmeter 1.4s ease forwards; }
@keyframes bootmeter { to { width: 100%; } }

.site-frame { width: min(1920px, 100%); margin: 0 auto; background: var(--paper); box-shadow: 0 0 0 1px rgba(45,30,36,.12), 0 30px 100px rgba(64,34,45,.25); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 78px;
  padding: 0 clamp(18px, 3vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(45,30,36,.18);
  background: rgba(255,248,247,.92);
  backdrop-filter: blur(15px);
}
.site-brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; min-width: 265px; }
.site-brand svg { width: 48px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-brand span { display: grid; line-height: 1.1; }
.site-brand b { font-family: var(--serif); font-size: 1rem; letter-spacing: .06em; }
.site-brand small { margin-top: .35rem; color: var(--pink-dark); font: 700 .54rem/1 var(--mono); letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.3rem, 2.3vw, 3rem); }
.site-nav a { position: relative; padding: 1.75rem 0 1.55rem; text-decoration: none; font: 700 .72rem/1 var(--serif); letter-spacing: .12em; }
.site-nav a::after { content: "◆"; position: absolute; left: 50%; bottom: .6rem; color: var(--ink); font-size: .42rem; transform: translateX(-50%) scale(0); transition: transform .2s; }
.site-nav a:hover::after, .site-nav a.is-current::after { transform: translateX(-50%) scale(1); }
.site-nav a.is-current { color: var(--pink-dark); }
.menu-button { display: none; }

.scrapbook { position: relative; isolation: isolate; overflow: hidden; }
.scrapbook::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(104,64,76,.08) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(90deg, rgba(104,64,76,.08) 1px, transparent 1px) 0 0/24px 24px,
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.85), transparent 25%),
    linear-gradient(135deg, #f8e3e6, #f2cbd3);
}
.scrapbook::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .43;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='240'%3E%3Cpath d='M1 16C61 7 92 22 141 10s92 6 138-3M0 214c55 9 117-6 168 7s72 2 112 11' fill='none' stroke='%23b47082' stroke-opacity='.12'/%3E%3C/svg%3E");
}
.paper-grid { position: absolute; inset: 0; z-index: -1; }

.hero {
  min-height: 880px;
  display: grid;
  grid-template-columns: minmax(520px, 1.34fr) minmax(350px, .75fr) minmax(330px, .64fr);
  grid-template-rows: 180px 1fr;
  gap: 28px;
  padding: 72px clamp(30px, 4vw, 78px) 44px 100px;
  border-bottom: 12px solid var(--ink);
}
.vertical-index {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  bottom: 0;
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(50,32,39,.18);
  color: var(--ink-soft);
  font: 700 .56rem/1 var(--mono);
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: rgba(255,250,248,.55);
}
.system-labels { position: absolute; left: 74px; top: 22px; z-index: 8; display: grid; gap: 4px; transform: rotate(-3deg); }
.system-labels span { width: max-content; padding: .4rem .8rem; color: #fff; background: var(--ink); box-shadow: 4px 3px 0 rgba(232,111,143,.7); font: 700 .58rem/1 var(--mono); letter-spacing: .13em; }
.system-labels i { display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: #9dffae; box-shadow: 0 0 10px #9dffae; }

.torn-paper { position: relative; background: rgba(255,252,249,.9); border: 1px solid var(--line); box-shadow: var(--shadow); }
.torn-paper::before, .torn-paper::after { content: ""; position: absolute; pointer-events: none; }
.torn-paper::before { inset: 8px; border: 1px dashed rgba(80,48,59,.13); }
.torn-paper::after { left: 0; right: 0; bottom: -7px; height: 13px; background: linear-gradient(135deg, transparent 7px, rgba(255,252,249,.95) 0) 0 0/16px 16px repeat-x; }

.hero-sheet { grid-column: 1; grid-row: 1 / 3; align-self: center; padding: clamp(42px, 4.5vw, 76px) clamp(34px, 4.2vw, 72px) 54px; transform: rotate(-.4deg); }
.hero-sheet::after { bottom: -8px; }
.hero-sheet__eyebrow, .card-index { margin: 0; color: var(--pink-dark); font: 800 .58rem/1.4 var(--mono); letter-spacing: .14em; }
.hero-sheet h1 { margin: 1.4rem 0 .4rem; font-family: var(--serif); font-weight: 500; font-size: clamp(4.2rem, 6vw, 8.4rem); line-height: .93; letter-spacing: -.1em; text-shadow: 3px 3px 0 rgba(232,111,143,.17); }
.hero-sheet h1 > span { display: inline-block; }
.hero-sheet h1 > span + span { margin-left: .06em; }
.hero-sheet .ruby { position: relative; }
.hero-sheet .ruby small { position: absolute; top: -1.15rem; left: 50%; width: 100%; transform: translateX(-50%); text-align: center; font: 600 .62rem/1 var(--sans); letter-spacing: .6em; }
.hero-sheet__roman { margin: 0 0 1.4rem; padding-left: 1.2rem; font: 700 clamp(.85rem, 1.4vw, 1.35rem)/1.2 Georgia, serif; letter-spacing: .34em; }
.hero-sheet__catch { margin: 0; color: var(--pink-dark); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 2rem); letter-spacing: .06em; }
.hero-sheet__catch b { color: var(--ink); font-weight: 600; }
.hero-sheet__intro { margin: 1.1rem 0 .5rem; font-family: var(--serif); font-size: clamp(.9rem, 1.15vw, 1.08rem); }
.hero-sheet__activity { margin: 0; font-weight: 700; font-size: .82rem; }
.hero-sheet__activity i { color: var(--pink-dark); font-style: normal; }
.hero-actions { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 16px; }
.cta { min-height: 72px; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: 1fr 1fr; align-items: center; padding: .8rem 1.1rem; color: white; text-decoration: none; border: 2px solid var(--paper); outline: 1px solid var(--pink-dark); box-shadow: 5px 5px 0 rgba(53,34,41,.15); transition: transform .2s ease, box-shadow .2s ease; }
.cta:hover { transform: translate(-2px,-3px) rotate(-.6deg); box-shadow: 9px 10px 0 rgba(53,34,41,.16); }
.cta__icon { grid-row: 1 / 3; font-size: 1.35rem; text-align: center; }
.cta b { font: 700 1rem/1 Georgia, serif; letter-spacing: .08em; }
.cta small { font-size: .62rem; }
.cta--youtube { background: var(--pink); }
.cta--x { background: var(--ink); outline-color: var(--ink); }
.hero-doodle { position: absolute; right: 26px; bottom: 13px; margin: 0; color: var(--pink-dark); font: 600 .65rem/1 var(--mono); transform: rotate(-5deg); }

.tape { position: absolute; z-index: 4; width: 78px; height: 25px; opacity: .92; box-shadow: 0 2px 3px rgba(50,30,36,.15); }
.tape--black { right: 6%; top: -10px; transform: rotate(8deg); background: #231e20; clip-path: polygon(5% 8%, 98% 0, 94% 92%, 0 100%); }
.tape--pink { left: 7%; bottom: -10px; transform: rotate(-6deg); background: #e57d98; clip-path: polygon(2% 0, 96% 7%, 100% 90%, 5% 100%); }
.tape--soft { right: 10%; top: -11px; transform: rotate(7deg); background: rgba(232,111,143,.75); }

.character-figure { grid-column: 2; grid-row: 1 / 3; position: relative; z-index: 4; align-self: end; margin: 0 -26px -43px -80px; height: 800px; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; filter: drop-shadow(0 18px 15px rgba(67,38,47,.15)); }
.character-figure img { width: min(100%, 435px); max-height: 800px; object-fit: contain; object-position: bottom; }
.character-figure figcaption { position: absolute; bottom: 65px; left: 50%; width: max-content; padding: .35rem .6rem; color: white; background: var(--ink); font: 700 .5rem/1 var(--mono); letter-spacing: .12em; transform: translateX(-50%) rotate(-2deg); }
.character-halo { display: none; }
.emotion-core { position: absolute; z-index: 7; left: 50%; top: 28.5%; width: 40px; height: 40px; border: 0; border-radius: 50%; color: transparent; background: transparent; pointer-events: auto; cursor: pointer; transform: translate(-50%, -50%); }
.emotion-core::after { content: ""; position: absolute; inset: 8px; border: 1px solid transparent; border-radius: 50%; transition: border-color .2s, box-shadow .2s; }
.emotion-core:hover::after, .emotion-core:focus-visible::after { border-color: var(--pink-dark); box-shadow: 0 0 18px var(--pink); }

.paper-note { background: rgba(251,224,230,.9); border: 1px solid rgba(124,61,79,.24); box-shadow: 8px 10px 0 rgba(120,66,82,.09); }
.save-panel { grid-column: 3; grid-row: 1; align-self: start; padding: 22px 24px; transform: rotate(1.2deg); }
.save-panel h2 { margin: 0 0 .85rem; color: var(--pink-dark); font: 700 1rem/1 Georgia, serif; letter-spacing: .12em; }
.save-slot { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: .65rem; align-items: center; padding: .52rem .55rem; border: 0; border-top: 1px solid rgba(117,58,74,.24); color: var(--ink); background: rgba(255,255,255,.28); cursor: pointer; text-align: left; }
.save-slot:last-of-type { border-bottom: 1px solid rgba(117,58,74,.24); }
.save-slot:hover, .save-slot.is-active { background: rgba(255,255,255,.72); }
.save-slot b { color: var(--pink-dark); font: 700 .63rem/1 var(--mono); }
.save-slot span { font: 700 .66rem/1 var(--mono); letter-spacing: .05em; }
.save-slot small { color: var(--pink-dark); font: 700 .52rem/1 var(--mono); }
.memory-reader { margin-top: .75rem; padding: .7rem; border-left: 3px solid var(--pink-dark); background: rgba(255,255,255,.45); }
.memory-reader span { color: var(--pink-dark); font: 700 .5rem/1 var(--mono); }
.memory-reader p { margin: .3rem 0 0; font-size: .69rem; line-height: 1.5; }
.clip { position: absolute; width: 16px; height: 45px; border: 3px solid var(--pink-dark); border-radius: 10px; transform: rotate(26deg); }
.clip::after { content: ""; position: absolute; inset: 4px 3px -10px; border: 2px solid currentColor; border-radius: 8px; }
.clip--dark { right: 12px; top: -7px; color: var(--ink); border-color: var(--ink); }
.clip--pink { left: -7px; top: -12px; color: var(--pink-dark); }

.profile-note { grid-column: 3; grid-row: 2; align-self: stretch; padding: 34px 34px 32px; margin-top: -2px; transform: rotate(.8deg); }
.profile-note h2 { margin: 0 0 1rem; font: 700 1.3rem/1 var(--serif); letter-spacing: .12em; }
.profile-note dl { margin: 0; }
.profile-note dl div { display: grid; grid-template-columns: 90px 1fr; gap: .5rem; padding: .42rem 0; border-bottom: 1px dotted rgba(62,40,48,.26); }
.profile-note dt { font-weight: 700; font-size: .72rem; }
.profile-note dd { margin: 0; font-size: .78rem; }
.profile-quote { margin: 1.2rem 0 .65rem; padding: .8rem; color: var(--pink-dark); background: var(--paper-pink); font-family: var(--serif); font-weight: 700; }
.quote-button { border: 0; border-bottom: 1px solid var(--ink); padding: .2rem 0; background: transparent; cursor: pointer; font-size: .65rem; }
.paperclip { position: absolute; right: 20px; top: -5px; width: 19px; height: 63px; border: 3px solid var(--pink-dark); border-radius: 12px; transform: rotate(31deg); }
.paperclip::after { content: ""; position: absolute; inset: 5px 4px -14px; border: 2px solid var(--pink-dark); border-radius: 9px; }
.secret-stamp { position: absolute; right: 18px; bottom: 25px; width: 86px; height: 86px; display: grid; place-content: center; border: 3px double var(--pink); border-radius: 50%; color: var(--pink); text-align: center; font: 800 .54rem/1.2 var(--mono); transform: rotate(-14deg); opacity: .7; }
.heart-scribble { position: absolute; color: rgba(232,111,143,.5); font-family: Georgia, serif; }
.heart-scribble--one { right: 37%; top: 17%; font-size: 3rem; transform: rotate(-11deg); }
.heart-scribble--two { left: 49%; bottom: 5%; font-size: 5rem; transform: rotate(15deg); }
.ink-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.ink-dot--one { left: 48%; top: 35%; box-shadow: 16px 6px 0 -3px var(--ink), -7px 15px 0 -4px var(--ink); }
.ink-dot--two { right: 2%; bottom: 5%; box-shadow: -18px -4px 0 -3px var(--ink); }

.content-board {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr .82fr 1.15fr;
  gap: 20px;
  padding: 34px clamp(28px, 4vw, 72px) 56px;
}
.info-card { min-height: 365px; padding: 30px 30px 28px; }
.info-card h2, .ai-disclosure h2 { margin: .6rem 0 1.1rem; font: 700 clamp(1.35rem, 2vw, 2rem)/1 var(--serif); letter-spacing: .05em; }
.info-card h2 small { font: 500 .75rem/1 var(--sans); }
.info-card p { margin: .7rem 0; font-size: .78rem; }
.story-card blockquote { margin: 1.1rem 0 0; padding: .9rem 1rem; border-left: 4px solid var(--pink); background: var(--paper-pink); color: var(--pink-dark); font-family: var(--serif); font-weight: 700; }
.stream-card ul { list-style: none; margin: 0; padding: 0; }
.stream-card li { display: grid; grid-template-columns: 36px 1fr; gap: .6rem; margin: .85rem 0; }
.stream-card li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-weight: 700; font-size: .72rem; }
.stream-card li div { display: grid; }
.stream-card li b { font-size: .8rem; }
.stream-card li small { font-size: .67rem; line-height: 1.6; }
.stream-card > a { display: inline-block; margin-top: .6rem; color: var(--pink-dark); font-weight: 800; font-size: .72rem; }
.tags-card { background: rgba(255,246,246,.9); }
.tag-list { display: grid; gap: .65rem; }
.tag-list a { width: max-content; max-width: 100%; padding: .45rem .7rem; border: 1px solid rgba(185,70,100,.25); color: var(--pink-dark); background: white; text-decoration: none; font-size: .7rem; transition: transform .2s, background .2s; }
.tag-list a:hover { transform: translateX(5px) rotate(-1deg); background: var(--paper-pink); }
.tag-note { margin-top: 1.2rem!important; padding-top: .8rem; border-top: 1px dashed var(--line); color: var(--ink-soft); }
.ai-disclosure { position: relative; min-height: 365px; padding: 34px; color: #fff3f4; background: var(--ink); border: 2px solid #161214; box-shadow: inset 0 0 0 7px var(--ink), inset 0 0 0 8px rgba(246,169,186,.4), 10px 12px 0 rgba(232,111,143,.32); transform: rotate(.5deg); }
.ai-disclosure::before { content: ""; position: absolute; right: -12px; top: -14px; width: 86px; height: 28px; background: var(--pink); opacity: .82; transform: rotate(14deg); }
.ai-disclosure .card-index { color: var(--pink-soft); }
.ai-disclosure__lead { margin: 1.2rem 0; color: white; font: 700 1.08rem/1.8 var(--serif); }
.ai-disclosure p:not(.card-index):not(.ai-disclosure__lead) { font-size: .75rem; }
.warning-icon { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--pink-soft); color: var(--pink-soft); }
.ai-disclosure__sign { position: absolute; left: 34px; right: 34px; bottom: 25px; padding-top: .7rem; border-top: 1px dashed rgba(255,255,255,.35); color: var(--pink-soft); font: 700 .53rem/1 var(--mono); letter-spacing: .1em; }

.archive-section { padding: clamp(70px, 8vw, 130px) clamp(30px, 6vw, 110px); color: #fff7f7; background: var(--ink); }
.archive-heading { display: grid; grid-template-columns: 1.2fr 2fr 1fr; align-items: end; gap: 3rem; margin-bottom: 4rem; }
.archive-heading p, .archive-heading small { margin: 0; color: var(--pink-soft); font: 700 .6rem/1.7 var(--mono); letter-spacing: .14em; }
.archive-heading h2 { margin: 0; font: 800 clamp(3.5rem, 8vw, 9.5rem)/.75 Georgia, serif; letter-spacing: -.07em; }
.archive-heading h2 span { color: transparent; -webkit-text-stroke: 1.5px var(--pink-soft); }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); }
.archive-grid article { min-height: 290px; padding: 2rem; border-right: 1px solid rgba(255,255,255,.22); }
.archive-grid article:last-child { border-right: 0; }
.archive-grid span { color: var(--pink-soft); font: 700 .65rem/1 var(--mono); }
.archive-grid h3 { margin: 3rem 0 1rem; color: var(--pink-soft); font: 700 1.5rem/1.2 var(--serif); }
.archive-grid p { margin: 0; font-size: .78rem; color: rgba(255,247,247,.78); }

.links-section { position: relative; overflow: hidden; min-height: 600px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 6vw; align-items: center; padding: clamp(70px, 8vw, 130px) clamp(30px, 7vw, 130px); background:
  radial-gradient(circle at 78% 32%, rgba(232,111,143,.38), transparent 30%),
  linear-gradient(145deg, #fff8f6, #f3cdd5);
}
.links-section::before { content: "AMADA"; position: absolute; left: -4vw; bottom: -4vw; color: transparent; -webkit-text-stroke: 2px rgba(36,29,32,.08); font: 900 20vw/.7 Georgia, serif; letter-spacing: -.08em; }
.links-copy, .links-buttons { position: relative; z-index: 2; }
.links-copy > p:first-child { color: var(--pink-dark); font: 800 .58rem/1.5 var(--mono); letter-spacing: .14em; }
.links-copy h2 { margin: 1rem 0 1.8rem; font: 600 clamp(2.7rem, 5.2vw, 6rem)/1.15 var(--serif); letter-spacing: -.05em; }
.links-copy h2 span { color: var(--pink-dark); }
.links-copy > p:last-child { max-width: 600px; font-size: .9rem; }
.links-buttons { display: grid; gap: 18px; }
.links-buttons a { min-height: 120px; display: grid; grid-template-columns: 55px 1fr 32px; grid-template-rows: 1fr 1fr; align-items: center; padding: 1.2rem 1.5rem; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--ink); text-decoration: none; box-shadow: 8px 8px 0 var(--pink); transition: transform .2s, box-shadow .2s, background .2s; }
.links-buttons a:hover { transform: translate(-4px,-4px); box-shadow: 13px 13px 0 var(--pink-dark); background: white; }
.links-buttons span { grid-row: 1 / 3; font-size: 1.6rem; text-align: center; }
.links-buttons b { font: 700 1.3rem/1 Georgia, serif; letter-spacing: .08em; }
.links-buttons small { font: 700 .6rem/1 var(--mono); color: var(--pink-dark); }
.links-buttons i { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-size: 1.3rem; }
.links-seal { position: absolute; right: 4%; bottom: 6%; width: 130px; height: 130px; display: grid; place-content: center; border: 4px double var(--pink-dark); border-radius: 50%; color: var(--pink-dark); text-align: center; font: 800 .7rem/1.3 var(--mono); transform: rotate(11deg); opacity: .72; }

.site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; padding: 26px clamp(24px, 5vw, 80px); color: #fff5f6; background: var(--ink); font-size: .64rem; }
.site-footer p { margin: 0; }
.site-footer p:first-child { display: grid; }
.site-footer b { font-family: var(--serif); font-size: 1rem; }
.site-footer small { color: var(--pink-soft); font: 700 .52rem/1.6 var(--mono); letter-spacing: .12em; }

.core-toast { position: fixed; z-index: 300; left: 50%; bottom: 24px; padding: .75rem 1.1rem; border: 1px solid var(--ink); color: var(--ink); background: white; box-shadow: 6px 6px 0 var(--pink); font-weight: 800; font-size: .75rem; opacity: 0; visibility: hidden; transform: translate(-50%, 180%); transition: transform .25s, opacity .25s, visibility .25s; }
.core-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid var(--pink-dark); outline-offset: 4px; }

@media (max-width: 1320px) {
  .hero { grid-template-columns: 1.1fr .72fr .65fr; padding-left: 88px; }
  .character-figure { margin-left: -110px; margin-right: -45px; }
  .hero-sheet h1 { font-size: clamp(4rem, 6vw, 6.7rem); }
  .content-board { grid-template-columns: repeat(2, 1fr); }
  .info-card, .ai-disclosure { min-height: 340px; }
  .archive-heading { grid-template-columns: 1fr; gap: 1.3rem; }
}

@media (max-width: 1000px) {
  .site-brand { min-width: auto; }
  .site-nav { gap: 1.2rem; }
  .hero { grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto auto; min-height: auto; }
  .hero-sheet { grid-column: 1 / -1; grid-row: 1; margin-right: 28%; z-index: 2; }
  .character-figure { grid-column: 2; grid-row: 1 / 3; height: 720px; margin: 100px -45px -43px -130px; }
  .save-panel { grid-column: 1; grid-row: 2; }
  .profile-note { grid-column: 1; grid-row: 3; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid article:nth-child(2) { border-right: 0; }
  .archive-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  .links-section { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header { min-height: 70px; }
  .site-brand small { display: none; }
  .menu-button { display: flex; align-items: center; gap: .6rem; margin-left: auto; border: 0; background: transparent; cursor: pointer; font: 800 .65rem/1 var(--mono); }
  .menu-button i, .menu-button i::before { display: block; width: 24px; height: 2px; background: var(--ink); content: ""; transition: transform .2s; }
  .menu-button i::before { transform: translateY(7px); }
  .menu-button[aria-expanded="true"] i { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] i::before { transform: rotate(-90deg); }
  .site-nav { position: absolute; top: 70px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 24px; border-bottom: 1px solid var(--line); background: rgba(255,248,247,.98); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .9rem 0; border-bottom: 1px solid rgba(45,30,36,.14); }
  .site-nav a::after { display: none; }
  .vertical-index { display: none; }
  .system-labels { left: 18px; }
  .hero { display: block; padding: 82px 18px 38px; }
  .hero-sheet { margin: 0; padding: 42px 26px 34px; }
  .hero-sheet h1 { font-size: clamp(3.2rem, 14vw, 6rem); }
  .hero-sheet h1 > span { display: block; }
  .hero-sheet h1 > span + span { margin-left: 0; }
  .hero-sheet__roman { padding-left: 0; letter-spacing: .2em; }
  .hero-actions { grid-template-columns: 1fr; }
  .character-figure { height: 700px; margin: 24px auto -40px; }
  .character-figure img { width: min(92%, 430px); }
  .emotion-core { top: 28.5%; }
  .save-panel, .profile-note { margin: 20px 0 0; transform: none; }
  .heart-scribble, .ink-dot { display: none; }
  .content-board { grid-template-columns: 1fr; padding-inline: 18px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-grid article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .archive-grid article:last-child { border-bottom: 0; }
  .links-seal { opacity: .3; }
  .site-footer { grid-template-columns: 1fr; gap: .7rem; }
}

@media (max-width: 520px) {
  .site-brand svg { width: 40px; }
  .site-brand b { font-size: .87rem; }
  .hero-sheet__intro br { display: none; }
  .hero-sheet__activity { line-height: 1.9; }
  .character-figure { height: 610px; }
  .profile-note dl div { grid-template-columns: 76px 1fr; }
  .secret-stamp { width: 72px; height: 72px; opacity: .4; }
  .content-board { gap: 14px; }
  .info-card, .ai-disclosure { min-height: auto; padding: 26px 24px; }
  .ai-disclosure { padding-bottom: 78px; }
  .archive-section, .links-section { padding-inline: 22px; }
  .archive-heading h2 { font-size: 3.4rem; }
  .archive-grid article { min-height: auto; padding: 1.7rem 1rem; }
  .archive-grid h3 { margin-top: 1.5rem; }
  .links-buttons a { grid-template-columns: 44px 1fr 24px; padding-inline: 1rem; }
  .links-copy h2 { font-size: 2.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}

/* v4: verified-alpha generated assets only */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-brand {
  min-width: 0;
}
.site-brand img {
  display: block;
  width: clamp(176px, 17vw, 248px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(189, 70, 104, .18));
}

.hero-sheet {
  overflow: visible;
}
.hero-brand-logo {
  display: block;
  width: min(100%, 780px);
  height: auto;
  margin: .3rem auto 1.1rem;
  filter: drop-shadow(0 12px 18px rgba(89, 42, 57, .13));
}
.hero-sheet__catch {
  margin-top: .25rem;
}

.save-panel,
.profile-note,
.ai-disclosure,
.archive-heading {
  position: relative;
}
.save-ui-asset {
  position: absolute;
  z-index: 3;
  top: -22px;
  right: 12px;
  width: 132px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(38, 25, 29, .18));
}
.save-panel h2 {
  padding-right: 118px;
}
.profile-wing-asset {
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 16px;
  width: 106px;
  height: auto;
  opacity: .33;
  pointer-events: none;
}
.profile-note > *:not(.profile-wing-asset) {
  position: relative;
  z-index: 1;
}
.disclosure-heart-asset {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 72px;
  height: auto;
  opacity: .88;
  pointer-events: none;
  filter: drop-shadow(0 7px 10px rgba(0,0,0,.28));
}
.ai-disclosure h2,
.ai-disclosure .card-index {
  padding-right: 74px;
}
.archive-heading {
  padding-top: 42px;
}
.archive-bow-asset {
  position: absolute;
  top: -20px;
  left: 50%;
  width: 88px;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.35));
}
.footer-brand {
  display: block !important;
}
.footer-brand img {
  width: 190px;
  height: auto;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.94);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}

@media (max-width: 1000px) {
  .site-brand img { width: 196px; }
  .hero-brand-logo { width: min(100%, 680px); }
}

@media (max-width: 820px) {
  .site-brand img { width: 170px; max-height: 52px; }
  .hero-brand-logo { margin-top: .5rem; }
  .save-ui-asset { width: 116px; top: -18px; }
  .archive-bow-asset { width: 74px; }
}

@media (max-width: 520px) {
  .site-brand img { width: 142px; }
  .hero-brand-logo { width: 100%; margin-bottom: .8rem; }
  .save-ui-asset { width: 104px; right: 8px; }
  .save-panel h2 { padding-right: 96px; }
  .profile-wing-asset { width: 86px; }
  .disclosure-heart-asset { width: 60px; }
  .footer-brand img { width: 170px; }
}

/* v4.1: mobile standing-illustration fix only.
   Every generated/logo asset and all desktop layout rules remain exactly as v4. */
@media (max-width: 820px) {
  .character-figure {
    height: auto;
    min-height: 0;
    margin: 24px auto 0;
    overflow: visible;
  }

  .character-figure img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(88vw, 430px);
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: center bottom;
  }

  .character-figure figcaption {
    bottom: 10px;
  }

  .emotion-core {
    top: 28.5%;
  }
}

@media (max-width: 520px) {
  .character-figure {
    height: auto;
    min-height: 0;
    margin: 18px auto 0;
  }

  .character-figure img {
    width: auto;
    max-width: min(92vw, 390px);
    max-height: none;
  }

  .character-figure figcaption {
    bottom: 6px;
  }
}

/* v4.2: readable Japanese body + gothic-lolita display typography */
:root {
  --body-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --display-jp: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --display-en: "Cormorant Garamond", Georgia, serif;
  --serif: var(--display-jp);
  --sans: var(--body-jp);
  --ink: #21181d;
  --ink-soft: #514148;
  --pink-dark: #b63f63;
}

body {
  font-family: var(--body-jp);
  font-weight: 400;
  letter-spacing: .012em;
  line-height: 1.82;
}

p,
li,
dd,
small,
button {
  font-family: var(--body-jp);
}

.site-brand b,
.site-nav a,
.hero-sheet h1,
.hero-sheet__catch,
.profile-note h2,
.profile-quote,
.info-card h2,
.ai-disclosure h2,
.ai-disclosure__lead,
.story-card blockquote,
.archive-grid h3,
.links-copy h2,
.site-footer b {
  font-family: var(--display-jp);
}

.hero-sheet h1 {
  font-weight: 800;
  letter-spacing: -.075em;
  color: var(--ink);
  text-shadow:
    1px 0 0 rgba(255,255,255,.78),
    -1px 0 0 rgba(255,255,255,.78),
    0 1px 0 rgba(255,255,255,.78),
    0 -1px 0 rgba(255,255,255,.78),
    3px 3px 0 rgba(214, 90, 126, .2);
}
.hero-sheet h1::after {
  content: "✦ ♡ ✦";
  display: block;
  margin-top: .42rem;
  color: var(--pink-dark);
  font: 600 clamp(.85rem, 1.2vw, 1.15rem)/1 var(--display-en);
  letter-spacing: .6em;
  text-align: center;
}
.hero-sheet__roman,
.archive-heading h2,
.links-buttons b,
.cta b,
.boot__card strong {
  font-family: var(--display-en);
}
.hero-sheet__roman {
  font-weight: 700;
  letter-spacing: .25em;
}
.hero-sheet__catch {
  font-weight: 700;
  letter-spacing: .035em;
}
.hero-sheet__intro {
  font-family: var(--body-jp);
  font-weight: 400;
}

.site-nav a {
  font-weight: 700;
  letter-spacing: .16em;
}
.site-nav a::before {
  content: "♡";
  position: absolute;
  left: 50%;
  top: 1rem;
  color: rgba(182, 63, 99, .28);
  font-family: var(--display-en);
  font-size: .55rem;
  transform: translateX(-50%);
}

.torn-paper,
.paper-note {
  box-shadow:
    var(--shadow),
    inset 0 0 0 5px rgba(255,255,255,.42),
    inset 0 0 0 6px rgba(182,63,99,.1);
}

.info-card h2,
.profile-note h2,
.ai-disclosure h2 {
  position: relative;
  padding-bottom: .5rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.info-card h2::after,
.profile-note h2::after,
.ai-disclosure h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 8px;
  margin-top: .6rem;
  background:
    radial-gradient(circle at 4px 4px, var(--pink-dark) 0 2px, transparent 2.5px) 0 0 / 16px 8px repeat-x;
  opacity: .7;
}

.card-index,
.hero-sheet__eyebrow {
  font-family: var(--display-en);
  font-weight: 700;
  letter-spacing: .2em;
}

.profile-note dl dt,
.profile-note dl dd,
.stream-card li b,
.stream-card li small,
.tag-note,
.ai-disclosure p:not(.card-index):not(.ai-disclosure__lead),
.archive-grid p,
.links-copy > p:last-child {
  font-family: var(--body-jp);
}

.story-card blockquote,
.profile-quote {
  font-weight: 700;
  letter-spacing: .02em;
}

.archive-heading h2 {
  font-weight: 700;
  letter-spacing: -.045em;
}
.archive-heading h2 span {
  -webkit-text-stroke: 1.2px var(--pink-soft);
}
.archive-grid h3 {
  font-weight: 800;
  letter-spacing: .04em;
}

.links-copy h2 {
  font-weight: 800;
  letter-spacing: -.035em;
}
.links-buttons b {
  font-size: 1.45rem;
  font-weight: 700;
}

.cta,
.links-buttons a {
  position: relative;
}
.cta::after,
.links-buttons a::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(255,255,255,.42);
  pointer-events: none;
}
.links-buttons a::after {
  border-color: rgba(182,63,99,.22);
}

@media (max-width: 820px) {
  .hero-sheet h1 {
    letter-spacing: -.06em;
  }
  .hero-sheet h1::after {
    margin-top: .3rem;
    letter-spacing: .42em;
  }
  .site-nav a::before {
    display: none;
  }
}
