/* refuge.tokyo CSS 2026 */

@font-face {
	font-family: 'Arimo';
	src: url("../font/Arimo/Arimo-Bold.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
	font-display: swap;
}
/*
"Arimo" https://fonts.google.com/specimen/Arimo

licensed under the Apache License version 2.0
http://www.apache.org/licenses/LICENSE-2.0.html
*/
@font-face {
	font-family: 'CascadiaCode';
	src: url("../font/CascadiaCode/CascadiaMono.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
	font-display: swap;
}
/*
"Cascadia Code" https://fonts.google.com/specimen/Cascadia+Code

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
*/
@font-face {
  font-family: 'KaiseiOpti';
  src: url("../font/Kaisei_Opti/KaiseiOpti-Bold.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/*
"Kaisei Opti" https://fonts.google.com/specimen/Kaisei+Opti

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
*/

@font-face {
  font-family: 'KleeOne';
  src: url("../font/Klee_One/KleeOne-Regular.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/*
"Klee One" https://fonts.google.com/specimen/Klee+One

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
*/

/* ---------- RESET & CUSTOM Property ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1a3a5c;
  --blue:    #2563a8;
  --mid:     #4e8ecb;
  --light:   #ddeeff;
  --paper:   #f5f8ff;
  --lines:   #c8daf5;
  --ink:     #1a2d44;
  --white:   #ffffff;
  --black:   #000000;
  --console: #03ca03;
  --shadow:  rgba(26,58,92,0.18);
  --tab-h:   62px;
  --tab-gap: 8px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  /* sticky note colors */
  --sn1: #ffe57a;  /* yellow */
  --sn2: #b5e8a2;  /* green  */
  --sn3: #f9b8d4;  /* pink   */
  --sn4: #c4b3f7;  /* lavender */
  --sn5: #ffd0a0;  /* peach  */
  /* font */
  --font-kaisei:   'KaiseiOpti';
  --font-klee:     'KleeOne';
  --font-cascadia: 'CascadiaCode';
  --font-arimo: 'Arimo';

  --window-title: #24292d;
  --window-menu:  #333333;
  --background-a: #000000;
  --background-b: #292c30;
  --background-c: #161314;
  --mailer:       #19aab4;
  --column-alpha: #654864;
  --column-beta:  #292c30;
  --text-a:       #fcfcfc;
  --text-b:       #c9c9c9;
  --text-c:       #ff961e;
  --text-d:       #1e87ff;
  --text-e:       #c4b3f7;
  --border:       #000000;
  --border-top:   #1a1919;
}

.draggable-element { cursor: grab; }
.draggable-element:active { cursor: grabbing; }

.undraggable-element { cursor: default; }
.undraggable-element:active { cursor: default; }

.notebook {
  display: none;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-kaisei);
  font-size: 16px;
}

#desktop {
  position: fixed;
  width: 100%;
  height: 100vh;
  inset: 0;
  background-image: url("../image/wallpaper_001.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* frame */
#frame_top {
	top: 0px; right: 0px; width: 100%; height: 30px; position: fixed; z-index: 5;
	background-color: #000000; user-select: none;
}
#frame_bottom {
	bottom: 0px; right: 0px; width: 100%; height: 40px; position: fixed; z-index: 5;
	background-color: #000000; user-select: none;
}
#frame_left {
	top: 0px; left: 0px; width: 30px; height: 100%; position: fixed; z-index: 100;
	background-color: #000000; user-select: none;
}
#frame_right {
	top: 0px; right: 0px; width: 30px; height: 100%; position: fixed; z-index: 100;
	background-color: #000000; user-select: none;
}

/* icon */
#taskbar {
  position: fixed;
  bottom: 3px;
  left: 240px;
  z-index: 40;
  display: flex;
}
.task_icon {
  min-width: 80px;
  font-family: var(--font-klee);
  color: var(--white);
  font-size: 1rem;
  margin-left: 10px;
  border: solid 1px transparent;
  padding: 3px;
}
.task_icon:hover {
  border: solid 1px var(--white);
  padding: 3px;
}

/* log */
#window__lima { position: fixed; top: 27%; left: 30%; display: none; }
.log {
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
	box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.16);
}
.log__title {
  background-color: var(--window-title);
  color: var(--text-a);
  font-size: 0.7rem;
  padding: 6px 1px 6px 30px;
  border-top:   solid 1px var(--border-top);
  border-left:  solid 1px var(--border);
  border-right: solid 1px var(--border);
	background-image: url("../image/window_bg_top.png"),url("../image/window_bg_close.png"),url("../image/window_bg_text.png");
	background-repeat: repeat-x, no-repeat, no-repeat;
	background-position: top 0 right 0, top 5px right 10px, top 51% left 8px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.log__menu {
  background-color: var(--window-menu);
	font-family: var(--font-arimo);
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-b);
  padding: 3px 0 3px 10px;
  white-space: pre;
  border-left: solid 1px var(--black);
  border-right: solid 1px var(--black);
}
.log__editor {
  background-color: var(--background-a);
  background-image: url("../image/window_bg_border.png");
	background-repeat: repeat-y;
	background-position: top 0px left 5px;
	font-family: var(--font-kaisei);
  font-size: 0.8rem;
  color: var(--text-a);
  padding: 3px 30px 50px 30px;
  white-space: pre;
  width: 500px;
  height: 380px;
  border-left:   solid 1px  var(--black);
  border-right:  solid 1px  var(--black);
  border-bottom: solid 15px var(--black);
  border-bottom-left-radius:  var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: var(--column-beta) var(--black);
}
.log__editor a {
  text-decoration: none;
  outline: none;
  color: var(--text-e);
}
.log__editor a:hover {
  opacity: 0.5;
}
#log__tabs {
  display: flex;
}
.log__tab {
  min-width: 100px;
  font-family: var(--font-klee);
  color: var(--white);
  text-align: center;
  font-size: 1rem;
  margin-left: 10px;
  border: solid 1px var(--text-a);
  padding: 3px;
}
.log__tab:hover {
  opacity: 0.5;
}
.log__delete { color: var(--text-b); }
.hidden {
    display: none !important;
}
/* sticky */
#window__india { position: fixed; top: 70%; left: 6%; z-index: 50; }

#window__india {
	background: rgba(95, 130, 190, 0.55); width:250px;
	box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.16);
  border-radius: var(--radius-sm);
	font-family: var(--font-klee); font-weight: bold; font-size: 12px; color: #dbdbdb;
}
#sticky__title {
	background-color:#ffeb81; height:32px;
}
#sticky__note {
	font-family: var(--font-klee); font-weight: bold; font-size: 12px; color: #dbdbdb;
	padding: 15px 0 10px 8px; white-space: pre; overflow-y: scroll;
}
#window__india::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 16px;
  background: rgba(200,220,255,0.55);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
	#sticky__note::-webkit-scrollbar { display: none; }
	#sticky__note A:link { color:#666144; }
	#sticky__note A:visited { color:#666144; }
	#sticky__note A:active { color:#666144; }
	#sticky__note A:hover { background-color:#fbd600; }
.sticky__ul {
	border-bottom: solid 1px #666144; width: 200px;
}

/* Google search */
#custom__search {
  bottom: 60px; left: 200px;
  position: fixed;
}
#custom__search form {
  display: flex;
}
.custom__search-text {
  box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.16);
}
.custom__search-button {
  margin-left: 5px;
  padding: 1px 20px 1px 20px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.16);
}

/* Wallpaper switcher */
.wallpaper-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0 50px;
}

.wallpaper-label {
  font-size: 11px;
  color: #999;
  margin-right: 2px;
}

.wallpaper-btn {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: all 0.15s;
  opacity: 0.6;
}

.wallpaper-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wallpaper-btn:hover {
  opacity: 1;
  border-color: #000000;
}

.wallpaper-btn.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(82, 148, 226, 0.4);
}

/* console window */
#window__golf { position: fixed; bottom: 70px; right: 130px; }

.console {
  user-select: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
	box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.16);
  z-index: 30;
}
.console__title {
  background-color: var(--window-title);
  color: var(--text-a);
  font-size: 0.7rem;
  padding: 6px 1px 6px 30px;
  border-top:   solid 1px var(--border-top);
  border-left:  solid 1px var(--border);
  border-right: solid 1px var(--border);
	background-image: url("../image/window_bg_top.png"),url("../image/window_bg_close.png"),url("../image/window_bg_pic.png");
	background-repeat: repeat-x, no-repeat, no-repeat;
	background-position: top 0 right 0, top 5px right 10px, top 5px left 5px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.console__menu {
  background-color: var(--window-menu);
	font-family: var(--font-kaisei);
  font-size: 0.8rem;
  font-weight: bold;
  color: #202020;
  padding: 0 0 0 10px;
  white-space: pre;
}
.console__text {
  position: relative;
  background-color: var(--background-a);
  font-family: var(--font-cascadia);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--console);
  text-shadow: 0 0 5px #00ff88;
  white-space: pre;
  padding: 10px 25px 15px 25px;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);

}
.console__text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.3) 3px
  );
  pointer-events: none;
}
.console__text-url { color: #ff7627; text-shadow: 0 0 5px #f8b78f; }
.menu__ul { text-decoration: underline; }

.flicker { animation: flicker 0.15s infinite; }
@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.9; }
  100% { opacity: 1; }
}

/* archive window */
#window__juliett { position: fixed; top: 30%; left: 40%; display: none; }

.archive {
  user-select: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
	box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.16);
}
.archive__title {
  background-color: var(--window-title);
  color: var(--text-a);
  font-size: 0.7rem;
  padding: 6px 1px 6px 25px;
  border-top:   solid 1px var(--border-top);
  border-left:  solid 1px var(--border);
  border-right: solid 1px var(--border);
	background-image: url("../image/window_bg_top.png"),url("../image/window_bg_close.png"),url("../image/window_bg_ice.png");
	background-repeat: repeat-x, no-repeat, no-repeat;
	background-position: top 0 right 0, top 5px right 10px, top 55% left 8px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.archive__main {
  background-color: var(--background-a);
  font-family: var(--font-arimo);
  color: var(--text-a);
  font-size: 0.7rem;
  font-weight: bold;
  white-space: pre;
  padding: 10px 50px 40px 10px;
  height: 340px;
  width: 300px;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: var(--column-beta) var(--black);
}

.archive__main a {
  text-decoration: none;
  outline: none;
  color: var(--text-a);
}
.archive__main li {
  margin-top: 4px;
}
.archive__main a:hover {
  opacity: 0.5;
}
.text__update {
  color: var(--text-c);
}
.text__link {
  color: var(--text-d);
}
.text__copy {
  display: inline-block;
  cursor: pointer;
  position: relative;
  color: var(--text-c);
  text-decoration: underline;
  user-select: none;
}
.copy-popup {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  background: var(--mailer);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s, transform 0.12s;
  white-space: nowrap;
}
.copy-popup.show {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.copy-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #111;
}

/* filemanager window */
#window__hotel { position: absolute; top: 7%; left: 7%; z-index: 30; }

.filemanager {
  user-select: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
	box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.16);
}
.filemanager a {
  text-decoration: none;
  outline: none;
  display: block;
  color: var(--text-a);
}
.filemanager__title {
  background-color: var(--window-title);
  color: var(--text-a);
  font-size: 0.7rem;
  padding: 6px 1px 6px 28px;
  border-top:   solid 1px var(--border-top);
  border-left:  solid 1px var(--border);
  border-right: solid 1px var(--border);
	background-image: url("../image/window_bg_top.png"),url("../image/window_bg_close.png"),url("../image/window_bg_folder.png");
	background-repeat: repeat-x, no-repeat, no-repeat;
	background-position: top 0 right 0, top 5px right 10px, top 50% left 8px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}
.filemanager__menu {
  background-color: var(--window-menu);
	font-family: var(--font-arimo);
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-b);
  padding: 3px 0 3px 10px;
  white-space: pre;
  border-left: solid 1px #000;
  border-right: solid 1px #000;
}
.filemanager__list {
  background-color: var(--background-a);
  font-family: var(--font-arimo);
  color: var(--text-a);
  font-size: 0.7rem;
  font-weight: bold;
  padding: 10px;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.label {
	border: solid 1px #4c4e51;
	background: #292c30;
  background: linear-gradient(to bottom, #292c30 50%, #654864 50%);
  padding: 4px;
}
.machine__column-a { background: var(--column-alpha); }
.machine__column-b { background: var(--column-beta); }
.machine__column-a:hover, .machine__column-b:hover { opacity: 0.7; cursor: pointer; }
.machine__column-a, .machine__column-b {
  min-width: 250px;
  font-family: var(--font-arimo);
  font-size: 0.7rem;
  padding: 4px 0 4px 2px;
  border: solid 1px var(--column-alpha);
}
.size, .type, .date {
  background: var(--background-b);
  font-family: var(--font-arimo);
  color: var(--text-b);
  font-size: 0.7rem;
  padding: 2px 2px 2px 2px;
  text-align: center;
}
.filemanager__tabs {
  display: flex;
  padding-left: 5px;
}
.filemanager__tab {
  min-width: 70px;
  font-family: var(--font-arimo);
  color: var(--text-b);
  font-size: 0.7rem;
  padding: 5px 10px 3px 10px;
  margin-right: 5px;
  text-align: center;
  border-top: solid 1px var(--column-alpha);
  border-left: solid 1px var(--column-alpha);
  border-right: solid 1px var(--column-alpha);
}
.filemanager__tab:hover { cursor: pointer; background: var(--column-alpha); }
.tabactive { background: var(--column-alpha); }
#table__nintendo { display: block; }
#table__sega { display: none; }
#table__pc { display: none; }
#table__misc { display: none; }

/* screenshot window z-index 20-25 */

#window__alpha   { position: absolute; top: 34%; left: 10%; z-index: 21; }
#window__beta    { position: absolute; top: 10%; left: 43%; z-index: 25; }
#window__charlie { position: absolute; top: 48%; left: 32%; z-index: 20; }
#window__delta   { position: absolute; top: 35%; left: 50%; z-index: 24; }
#window__echo    { position: absolute; top: 50%; left: 73%; z-index: 20; }
#window__foxtrot { position: absolute; top: 15%; left: 65%; z-index: 21; }


.screenshot {
  user-select: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
	box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.16);
}
.screenshot img {
  background-color: var(--window-title);
  padding: 0 5px 5px 5px;
  border-bottom: solid 1px #000;
  border-left: solid 1px #000;
  border-right: solid 1px #000;
  vertical-align: bottom;
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.screenshot__title {
  background-color: var(--window-title);
  color: var(--text-a);
  font-size: 0.7rem;
  padding: 6px 1px 6px 30px;
  border-top: solid 1px #1a1919;
  border-left: solid 1px #000;
  border-right: solid 1px #000;
	background-image: url("../image/window_bg_top.png"),url("../image/window_bg_close.png"),url("../image/window_bg_pic.png");
	background-repeat: repeat-x, no-repeat, no-repeat;
	background-position: top 0 right 0, top 5px right 10px, top 5px left 5px;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

@media screen and (max-width: 500px) {

#desktop, #frame_top, #frame_bottom, #frame_left, #frame_right {
  display: none;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background: #b8cfe8;
  font-family: var(--font-klee);
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.pencil {
  position: fixed;
  right: 20px;
  bottom: 100px;
  font-size: 60px;
  pointer-events: none;
  z-index: 110;
}

/* ===== NOTEBOOK WRAPPER ===== */
.notebook {
  display: block;
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  position: relative;
  background: var(--white);
  box-shadow: 4px 0 24px var(--shadow), -2px 0 8px var(--shadow);
}

/* ===== HEADER / COVER ===== */

.nb-cover {
  width: 100%;
  max-width: 450px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 60%, var(--mid) 100%);
  padding: 20px 28px 24px 20px;
  position: fixed;
  overflow: hidden;
  min-height: 120px;
  z-index: 100;
}
.nb-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(255,255,255,0.06) 19px,
      rgba(255,255,255,0.06) 20px
    );
}
.nb-cover::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cover-circle {
  position: absolute;
  right: 30px; top: 20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
}
.cover-label {
  font-family: var(--font-kaisei);
  font-size: 0.6rem;
  font-weight: bold;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cover-title {
  font-family: var(--font-kaisei);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.cover-date {
  font-family: var(--font-kaisei);
  font-size: 13px;
  margin-top: 3px;
  color: rgba(255,255,255,0.45);
}
.cover-mascot {
  position: absolute;
  right: 30px; bottom: 10px;
}
/* ===== STICKY TAB NAVIGATION ===== */
.sticky-nav {
  position: fixed;
  left: 6px;
  top: 160px;
  display: flex;
  flex-direction: column;
  gap: var(--tab-gap);
  z-index: 20;
}
.sticky-tab {
  width: 62px;
  height: var(--tab-h);
  border-radius: 3px 8px 8px 3px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.18), -1px 0 3px rgba(0,0,0,0.08);
  border: none;
  background: none;
  padding: 0;
}
.sticky-tab::before {
  content: '';
  position: absolute;
  top: 0; left: -6px;
  width: 6px; height: 100%;
  background: inherit;
  filter: brightness(0.82);
  clip-path: polygon(0 3px, 100% 0, 100% 100%, 0 calc(100% - 3px));
}
/* fold corner */
.sticky-tab::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 12px; height: 12px;
  background: rgba(0,0,0,0.08);
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  border-radius: 0 0 8px 0;
}
.sticky-tab:hover { transform: translateX(-4px); box-shadow: 4px 3px 12px rgba(0,0,0,0.22); }
.sticky-tab.active {
  transform: translateX(-8px);
  box-shadow: 6px 4px 16px rgba(0,0,0,0.25);
  z-index: 25;
}
.tab-icon { font-size: 20px; line-height: 1; }
.tab-label {
  font-family: var(--font-klee);
  font-size: 12px;
  font-weight: bold;
  color: rgba(0,0,0,0.6);
  writing-mode: horizontal-tb;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.sticky-tab:nth-child(1) { background: var(--sn1); }
.sticky-tab:nth-child(2) { background: var(--sn2); }
.sticky-tab:nth-child(3) { background: var(--sn3); }
.sticky-tab:nth-child(4) { background: var(--sn4); }
.sticky-tab:nth-child(5) { background: var(--sn5); }

/* ===== PAGE CONTENT ===== */
.nb-pages {
  min-height: calc(100vh);
  background: var(--paper);
  position: relative;
  margin: 120px 0 0 0;
}
/* ruled lines */
.nb-pages::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 31px,
      var(--lines) 31px,
      var(--lines) 32px
    );
  pointer-events: none;
}
/* left red margin line */
.nb-pages::after {
  content: '';
  position: absolute;
  top: 0; left: 28px;
  width: 1.5px; height: 100%;
  background: rgba(200,90,90,0.22);
  pointer-events: none;
}

.page-section {
  display: none;
  padding: 20px 60px 80px 88px;
  animation: pageFlip 0.28s ease;
  min-height: calc(100vh - 160px);
}
.page-section.active { display: block; }

@keyframes pageFlip {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* page-header sticky note on page */
.page-header {
  margin-bottom: 24px;
  position: relative;
  padding: 14px 16px 12px;
  border-radius: 2px;
  display: inline-block;
  font-family: var(--font-kaisei);
}
.page-header h2 {
  font-family: var(--font-kaisei);
  font-weight: bold;
  font-size: 1.0rem;
  color: var(--navy);
  font-weight: 700;
}
.page-header p {
  font-size: 0.8rem;
  margin-top: 3px;
}
/* tape on top of page header sticky */
.page-header::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 16px;
  background: rgba(200,220,255,0.55);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
/* page-header color variants */
.page-header--nintendo       { background: var(--sn1); }
.page-header--sega       { background: var(--sn2); }
.page-header--pc   { background: var(--sn3); }
.page-header--misc { background: var(--sn4); }
.page-header--mail   { background: var(--sn5); }
.page-header a {
  text-decoration: none;
  outline: none;
  display: block;
  color: #000;
}

/* ===== MEMO ===== */

.memo-card {
  background: #fff;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 1px 2px 8px rgba(26,58,92,0.1);
  position: relative;
  border-left: 3px solid var(--mid);
  font-family: 'Klee One', cursive;
}
.memo-card .mc-date {
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.memo-card .mc-text {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 3px;
}
.memo-card .mc-tag {
  display: inline-block;
  background: var(--light);
  color: var(--blue);
  font-size: 9px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.memo-mascot {
  padding: 0 0 0 100px;
  margin-bottom: 6px;
}

/* ===== BOTTOM NAV ===== */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 450px;
  height: 50px;
  background: var(--navy);
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(26,58,92,0.3);
}
}