* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #192e42; --cream: #fff2d8; }
html { scroll-padding-top: 8px; }
body { margin: 0; background: #162838; color: var(--cream); font: 16px/1.7 system-ui, "Yu Gothic", sans-serif; }
a { color: inherit; }
.skip { position: absolute; top: 0; left: 8px; z-index: 8; padding: 10px 20px; color: var(--ink); background: white; transform: translateY(-120%); }
.skip:focus { transform: none; }
.layout { display: grid; grid-template-columns: minmax(288px, 320px) minmax(0, 530px); gap: clamp(36px, 7vw, 108px); justify-content: center; align-items: start; padding-inline: 24px; }
.rail { position: sticky; top: 0; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; }
.rail-inner { width: 100%; padding-block: 42px; }
.account { margin: 0 0 12px; letter-spacing: .1em; color: #e7c994; }
h1 { margin: 0; font: 400 3rem/1.45 "Yu Mincho","Hiragino Mincho ProN",serif; word-break: keep-all; }
nav { margin: 28px 0; border-top: 1px solid #58646b; }
nav a { display: block; padding: 12px 3px; text-decoration: none; border-bottom: 1px solid #58646b; }
nav a:hover { text-decoration: underline; }
.action { display: flex; min-height: 48px; justify-content: center; align-items: center; padding: 9px 14px; border: 1px solid #d4bb92; border-radius: 40px; color: var(--ink); background: var(--cream); font-weight: 650; text-decoration: none; }
.action:hover { background: white; }
main { width: 100%; max-width: 530px; background: #f8f0e1; color: var(--ink); }
.panel { position: relative; }
.panel img { display: block; width: 100%; height: auto; color: var(--ink); }
.image-action { position: absolute; min-height: 44px; border-radius: 100px; }
.first-action { left: 4.9%; width: 90.2%; top: 88.7%; height: 7.6%; }
.last-action { left: 4%; width: 92%; top: 87.1%; height: 9.9%; }
.image-action:hover { background: rgba(249,237,215,.09); }
a:focus-visible { outline: 3px solid #548ab0; outline-offset: 2px; }
.mobile-action { display: none; }
@media (max-width: 799px) {
  body { background: #192e42; }
  .rail { display: none; }
  .layout { display: block; padding: 0; }
  main { margin: auto; }
  .mobile-action:not([hidden]) { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); display: block; width: min(100%, 530px); background: #192e42; padding: 7px 13px max(7px,env(safe-area-inset-bottom)); border-top: 1px solid #64717d; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto; } }

#letter > img { aspect-ratio: 880 / 1310; object-fit: cover; object-position: top; height: auto; }
.letter-end { padding: 12px 5% 24px; background: #faf0dd; }
.letter-end p { margin: 0 0 14px; font-size: clamp(16px, 3.8vw, 20px); }
.letter-end .action { color: #fff2d8; background: #1c3044; }
