:root {
  --night: #17172a;
  --paper: #f4f1ed;
  --ink: #202139;
  --aqua: #c2c7ff;
  --muted: #bcc2d3;
  --edge: #4a4b64;
  --pad: clamp(1.25rem, 5.3vw, 6rem);
  --display: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;
  color-scheme: dark;
  font-family: var(--display);
  -webkit-text-size-adjust: 100%;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  line-height: 1.75;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
figure,
h1,
h2,
h3,
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid #e99b42;
  outline-offset: 4px;
}
.shell {
  max-width: 1600px;
  width: 100%;
  padding-inline: var(--pad);
  margin-inline: auto;
}
section[id] {
  scroll-margin-top: 76px;
}
.skip {
  position: fixed;
  z-index: 20;
  left: 12px;
  top: -6em;
  padding: 0.6em 1em;
  background: white;
  color: black;
}
.skip:focus {
  top: 12px;
}
.mast {
  position: sticky;
  z-index: 8;
  top: 0;
  background: #17172af5;
  border-bottom: 1px solid #a4d5bc26;
}
.mast-inner,
.mast nav,
.brand,
.hero-links,
.location,
.view-control,
.button,
.watch {
  display: flex;
  align-items: center;
}
.mast-inner {
  height: 68px;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  flex-shrink: 0;
  gap: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand-name {
  display: grid;
  gap: .12rem;
  line-height: 1.08;
  white-space: nowrap;
}
.brand-name small {
  color: #cdcbe2;
  font-size: .65rem;
  letter-spacing: .035em;
  font-weight: 550;
}
.brand-name strong {
  font-size: 1.42rem;
  font-weight: 780;
  letter-spacing: .015em;
}
.mark {
  display: inline-flex;
  width: 29px;
  height: 30px;
  align-items: end;
  gap: 2px;
  transform: skewY(-21deg);
}
.mark i {
  display: block;
  width: 7px;
  height: 17px;
  background: #76b6a9;
}
.mark i:nth-child(2) {
  height: 25px;
  background: var(--aqua);
}
.mark i:nth-child(3) {
  height: 21px;
  background: #e6fff0;
}
.mast nav {
  gap: clamp(0.7rem, 2.2vw, 2.4rem);
  font-size: 0.82rem;
  font-weight: 650;
}
.mast nav a {
  text-decoration: none;
}
.nav-link:hover,
.watch:hover,
.invite:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.nav-cta,
.motion-switch {
  display: grid;
  align-items: center;
  color: var(--paper);
  background: transparent;
  border: 1px solid #667a78;
  border-radius: 100px;
}
.nav-cta {
  display: flex;
  gap: 1.2rem;
  padding: 0.48rem 1rem;
}
.nav-cta:hover,
.motion-switch:hover {
  border-color: var(--aqua);
  color: var(--aqua);
}
.motion-switch {
  height: 38px;
  width: 38px;
  place-items: center;
  padding: 0;
}
.motion-switch span {
  height: 10px;
  width: 8px;
  border-inline: 2px solid currentColor;
}
.motion-switch[aria-pressed='true'] span {
  height: 0;
  width: 0;
  border: 5px solid transparent;
  border-right: 0;
  border-left: 8px solid currentColor;
  margin-left: 2px;
}
.read-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 2px;
  background: var(--aqua);
  transform: scaleX(var(--reading, 0));
  transform-origin: left;
}

.button,
.watch,
.film-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.button {
  gap: 1.15rem;
  padding: 0.85rem 1.42rem;
  border-radius: 100px;
  border: 0;
  font-size: 0.93rem;
  font-weight: 730;
}
.bright,
.strong {
  background: #f7f4ed;
  color: #1c1b28;
}
.bright:hover,
.strong:hover {
  background: #ffbc99;
}
.bright span,
.nav-cta span {
  transition: transform 0.22s;
}
.bright:hover span {
  transform: translate(3px, 2px);
}
.nav-cta:hover span {
  transform: translate(2px, -2px);
}
.watch {
  min-height: 44px;
  font-size: 0.86rem;
  font-weight: 640;
  gap: 0.45rem;
}
.watch i {
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-content: center;
  border: 1px solid #a7aaca;
  border-radius: 50%;
}
.watch i::after {
  content: '';
  border: 4px solid transparent;
  border-right: 0;
  border-left: 6px solid currentColor;
  margin-left: 2px;
}
.watch small {
  color: #c1bdd8;
  font-size: 0.73rem;
}

@media (max-width: 390px) {
  .mast .brand {
    font-size: clamp(0.76rem, 3.65vw, 0.92rem);
    letter-spacing: 0;
  }
  .mast .nav-cta {
    gap: 0.3em;
    padding-inline: 0.65em;
    white-space: nowrap;
  }
}

@media (max-width: 355px) {
  .mast .mast-inner { padding-inline: 10px; }
  .mast nav { gap: 0.28rem; }
  .mast .nav-cta span { display: none; }
}
.brand .town-mark { width: 2.85rem; height: auto; }
.brand-name strong {
  font-family: 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-weight: 850;
  font-size: 1.52rem;
  letter-spacing: .045em;
}
.brand-name strong span { display: inline-block; color: #ffb599; transform: rotate(9deg); }
.footer .town-mark { width: 3.2rem; }
@media (max-width: 520px) {
  .brand .town-mark { width: 2.35rem; }
}
