@font-face {
  font-family: "Noto Sans JP";
  src: url("../fonts/noto-sans-jp-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --header: #1c1c24;
  --paper: #fff;
  --canvas: #f1f1f1;
  --ink: #202024;
  --blue: #3da9fc;
  --sidebar: 270px;
  --bar-height: 60px;
  font-family: "Noto Sans JP", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 15px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
svg { display: block; fill: currentColor; }

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 8px 12px;
  background: #fff;
  color: #000;
}

.archive-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: var(--bar-height);
  display: flex;
  align-items: center;
  background: var(--header);
  color: #fff;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px rgba(0,0,0,.14), 0 1px 10px rgba(0,0,0,.12);
}

.menu-button { margin-left: 10px; padding: 15px; cursor: pointer; }
.menu-button svg { width: 17.5px; height: 20px; }

.archive-logo {
  display: block;
  margin-left: 8px;
  user-select: none;
}

.archive-logo img { position: relative; top: -2px; display: block; height: 16px; }
.logo-full { width: 144px; }
.logo-small { display: none !important; width: 100px; }

.search-area { width: 100%; display: flex; justify-content: center; }
.archive-search { position: relative; width: 70%; display: flex; align-items: center; justify-content: center; }

.archive-search input {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 32px;
  padding: 0 15px;
  border: 1px solid #000;
  border-radius: 100px 0 0 100px;
  outline: 0;
  background: var(--header);
  color: #fff;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px rgba(0,0,0,.14), 0 1px 10px rgba(0,0,0,.12);
}

.archive-search input::placeholder { color: rgba(255,255,255,.7); }

.archive-search button {
  width: 40px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 0 100px 100px 0;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.archive-search button svg { width: 14px; height: 14px; }

.header-actions { display: flex; align-items: center; }
.cart-link { padding: 15px; cursor: pointer; }
.cart-link svg { width: 22px; height: 20px; }

.sign-in {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px;
  padding: 5px 10px;
  border: 1px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.sign-in svg { display: block; width: 20px; height: 20px; }
.sign-in span { width: 58px; margin-left: 10px; color: #fff; user-select: none; text-transform: uppercase; }

.archive-sidebar {
  position: fixed;
  z-index: 10;
  top: var(--bar-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  overflow-y: auto;
  background: var(--paper);
  scrollbar-width: thin;
}

.side-nav {
  padding: 15px 0 10px;
  border-bottom: 1px solid #d8d8d8;
}

.side-nav a,
.theme-row {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 22px;
  cursor: pointer;
}

.side-nav a:hover,
.side-nav a.active { background: #f3f3f3; }

.nav-icon {
  width: 26px;
  margin-right: 20px;
  display: grid;
  place-items: center;
  flex: none;
}

.nav-icon svg { width: 18px; height: 18px; }
.side-nav a > span:last-child,
.theme-row > span:nth-child(2) { min-width: 0; flex: 1; overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }

.theme-row i {
  position: relative;
  width: 45px;
  height: 25px;
  min-width: 45px;
  border: 1px solid #d0d0d0;
  border-radius: 100px;
  background: #fff;
  font-style: normal;
}

.theme-row i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.theme-row i b { position: absolute; top: 4px; right: 4px; font-size: 12px; font-weight: 400; line-height: 15px; }

.channel-list { padding-top: 4px; }

.channel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 4px 12px 16px;
  padding: 8px;
  border-radius: 12px;
  transition: .2s;
}

.channel:hover { box-shadow: 0 10px 20px rgba(0,0,0,.19), 0 6px 6px rgba(0,0,0,.23); }
.channel-cover { width: 100%; height: 80px; margin-bottom: 8px; border-radius: 4px; object-fit: cover; }
.channel > span { display: flex; align-items: center; font-size: 15px; font-weight: 500; }
.channel > span img { width: 26px; height: 26px; margin-right: 20px; border-radius: 50%; object-fit: cover; }

.archive-main {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding: 80px 20px 42px;
  background: var(--canvas);
}

.archive-ad {
  width: 100%;
  height: 140px;
  display: grid;
  grid-template-columns: minmax(190px,.75fr) 1.6fr minmax(180px,.6fr);
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  overflow: hidden;
  border-radius: 9px;
  background:
    linear-gradient(100deg, transparent 0 35%, rgba(58,114,191,.35) 35% 63%, transparent 63%),
    repeating-linear-gradient(120deg, #080808 0 16px, #111 16px 32px);
  color: #fff;
  box-shadow: 0 4px 9px rgba(0,0,0,.35);
}

.ad-logo { font-size: clamp(24px,2.4vw,40px); font-weight: 900; letter-spacing: -.06em; }
.ad-logo span { color: #a9a9ae; font-size: .43em; letter-spacing: -.02em; }
.archive-ad div:nth-child(2) { text-align: center; }
.archive-ad strong { font-size: clamp(25px,3vw,48px); line-height: .95; letter-spacing: -.04em; }
.archive-ad p { margin: 9px 0 0; color: #d4d4d8; font-size: 14px; }
.ad-action { padding: 17px 21px; border: 2px solid #fff; border-radius: 40px; background: #fff; color: #080808; font-size: clamp(17px,1.8vw,28px); font-weight: 800; text-align: center; white-space: nowrap; }
.ad-action:hover { background: var(--blue); border-color: var(--blue); }

.archive-carousel {
  position: relative;
  height: 438px;
  margin-top: 46px;
  display: grid;
  grid-template-columns: 15% 70% 15%;
  gap: 8px;
  overflow: hidden;
}

.carousel-center,
.carousel-side {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  background:
    radial-gradient(circle at 65% 28%, rgba(61,169,252,.24), transparent 24%),
    linear-gradient(132deg,#111318,#26303a 52%,#09090b);
  box-shadow: 0 4px 13px rgba(0,0,0,.55);
}

.carousel-center {
  z-index: 1;
  padding: 42px 42px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.carousel-center::before,
.carousel-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(117deg, transparent 0 85px, rgba(255,255,255,.025) 86px 88px);
}

.carousel-center > * { position: relative; z-index: 1; }
.carousel-center img { width: 220px; max-width: 48%; height: auto; margin-bottom: 24px; }
.carousel-kicker { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.carousel-center h1 { max-width: 720px; margin: 0; font-size: clamp(36px,4.2vw,62px); line-height: .9; letter-spacing: -.045em; }
.carousel-center > p:not(.carousel-kicker) { max-width: 650px; margin: 20px auto 15px; color: #dddde0; font-size: 17px; line-height: 1.45; }
.carousel-center code { max-width: 580px; overflow: hidden; color: #98989e; font: 12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; text-overflow: ellipsis; white-space: nowrap; }

.donate-button {
  margin: 2px 0 17px;
  padding: 12px 23px;
  border-radius: 5px;
  background: var(--blue);
  color: #08111a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
}
.donate-button:hover { background: #fff; }

.carousel-side { display: grid; place-items: center; filter: blur(.35px); color: rgba(255,255,255,.33); }
.carousel-side span { transform: rotate(-7deg); font-size: 25px; font-weight: 900; text-align: center; }
.side-left { margin-left: -55%; }
.side-right { margin-right: -55%; }

.carousel-arrow {
  position: absolute;
  z-index: 5;
  top: calc(50% - 25px);
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font-size: 39px;
  line-height: 43px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.arrow-left { left: 16px; }
.arrow-right { right: 16px; }

.feed-switch {
  height: 81px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 20px;
}

.feed-switch b,
.feed-switch span {
  padding: 6px 12px;
  border: 1px solid #222;
  font-size: 12px;
  line-height: 1;
}

.feed-switch b { border-radius: 5px 0 0 5px; background: #222; color: #fff; }
.feed-switch span { border-radius: 0 5px 5px 0; background: #fff; color: #222; }

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 10px;
}

.placeholder-grid article { min-width: 0; padding: 0 2px; }
.placeholder-grid article > div {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 65% 35%, rgba(61,169,252,.21), transparent 28%),
    repeating-linear-gradient(130deg,#12151a 0 45px,#242a32 45px 90px);
  box-shadow: 0 2px 7px rgba(0,0,0,.3);
}
.placeholder-grid article > div span { padding: 7px 10px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.placeholder-grid h2 { margin: 8px 0 4px; font-size: 14px; line-height: 1.25; }
.placeholder-grid p { margin: 0; color: #666; font-size: 11px; }

.donation-page { max-width: 1120px; margin: 46px auto 0; }
.donation-intro {
  padding: 58px 56px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 68% 20%, rgba(61,169,252,.25), transparent 26%),
    linear-gradient(132deg,#111318,#26303a 52%,#09090b);
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 13px rgba(0,0,0,.55);
}
.donation-intro img { width: 220px; max-width: 52%; margin-bottom: 25px; }
.donation-intro h1 { max-width: 780px; margin: 0 auto; font-size: clamp(38px,5vw,64px); line-height: .92; letter-spacing: -.05em; }
.donation-intro > p:last-child { max-width: 760px; margin: 22px auto 0; color: #dddde0; font-size: 17px; line-height: 1.6; }

.cost-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.cost-grid article { padding: 24px; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.15); }
.cost-grid strong { font-size: 14px; letter-spacing: .08em; }
.cost-grid p { margin: 10px 0 0; color: #606066; font-size: 13px; line-height: 1.55; }

.wallet-panel { padding: 38px; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.15); }
.wallet-heading { margin-bottom: 24px; text-align: center; }
.wallet-heading h2 { margin: 0; font-size: 31px; letter-spacing: -.03em; }
.wallet-heading > p:last-child { margin: 9px auto 0; color: #666; font-size: 13px; }
.wallet-list { display: grid; gap: 10px; }
.wallet-list article { min-width: 0; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 20px; padding: 18px 20px; border: 1px solid #dedee2; border-radius: 7px; background: #f7f7f8; }
.wallet-list article > div { display: flex; flex-direction: column; }
.wallet-list strong { font-size: 14px; letter-spacing: .07em; }
.wallet-list span { color: #707078; font-size: 11px; }
.wallet-list code { min-width: 0; overflow-x: auto; padding: 10px 12px; border-radius: 4px; background: #1c1c24; color: #fff; font: 13px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; white-space: nowrap; user-select: all; }
.wallet-warning { margin: 18px 0 0; color: #777; font-size: 11px; text-align: center; }

.contact-page { max-width: 1040px; margin: 46px auto 0; }
.contact-intro {
  padding: 58px 56px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 68% 20%, rgba(61,169,252,.25), transparent 26%),
    linear-gradient(132deg,#111318,#26303a 52%,#09090b);
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 13px rgba(0,0,0,.55);
}
.contact-intro img { width: 220px; max-width: 52%; margin-bottom: 25px; }
.contact-intro h1 { margin: 0; font-size: clamp(38px,5vw,64px); line-height: .92; letter-spacing: -.05em; }
.contact-intro > p:last-child { max-width: 760px; margin: 22px auto 0; color: #dddde0; font-size: 17px; line-height: 1.6; }
.contact-panel { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 26px; margin: 16px 0; padding: 34px 38px; border-radius: 9px; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.15); }
.contact-email-mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: #1c1c24; color: var(--blue); font-size: 39px; font-weight: 900; }
.contact-panel h2 { margin: 2px 0 10px; font-size: clamp(25px,3vw,38px); letter-spacing: -.035em; }
.contact-panel h2 a { color: #19191f; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; }
.contact-panel div > p:last-child { max-width: 740px; margin: 0; color: #606066; font-size: 13px; line-height: 1.6; }
.contact-topics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.contact-topics article { padding: 24px; border-radius: 8px; background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.15); }
.contact-topics strong { font-size: 13px; letter-spacing: .06em; }
.contact-topics p { margin: 9px 0 0; color: #606066; font-size: 13px; line-height: 1.55; }
.contact-safety { margin: 18px auto 0; max-width: 850px; color: #707078; font-size: 11px; line-height: 1.55; text-align: center; }

@media (max-width: 1023px) {
  :root { --sidebar: 0px; }
  .archive-sidebar { display: none; }
  .archive-main { margin-left: 0; }
}

@media (max-width: 700px) {
  .menu-button { margin-left: 5px; }
  .logo-full { display: none !important; }
  .logo-small { display: block !important; }
  .search-area { flex: 1; justify-content: flex-end; }
  .archive-search { width: 100%; justify-content: flex-end; }
  .archive-search input { display: none; }
  .archive-search button { height: 50px; border-radius: 0; background: transparent; }
  .cart-link { display: none; }
  .sign-in { width: 40px; justify-content: center; padding: 5px; }
  .sign-in svg { display: block; }
  .sign-in span { display: none; }
  .archive-main { padding: 72px 12px 30px; }
  .archive-ad { min-height: 105px; grid-template-columns: 1fr; padding: 16px; text-align: center; }
  .archive-ad div:nth-child(2) p, .archive-ad > .ad-action, .ad-logo { display: none; }
  .archive-carousel { height: 430px; margin-top: 24px; grid-template-columns: 0 100% 0; gap: 0; }
  .carousel-side { display: none; }
  .carousel-center { padding: 38px 42px; }
  .carousel-center img { width: 180px; margin-bottom: 25px; }
  .carousel-center h1 { font-size: 38px; }
  .carousel-center > p:not(.carousel-kicker) { font-size: 14px; }
  .arrow-left { left: 8px; }
  .arrow-right { right: 8px; }
  .carousel-arrow { width: 38px; height: 38px; top: calc(50% - 19px); font-size: 30px; line-height: 31px; }
  .placeholder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .donation-page { margin-top: 24px; }
  .donation-intro { padding: 42px 24px; }
  .donation-intro h1 { font-size: 38px; }
  .donation-intro > p:last-child { font-size: 14px; }
  .cost-grid { grid-template-columns: 1fr; }
  .wallet-panel { padding: 26px 16px; }
  .wallet-list article { grid-template-columns: 1fr; gap: 10px; padding: 16px; }
  .wallet-list code { overflow-wrap: anywhere; white-space: normal; }
  .contact-page { margin-top: 24px; }
  .contact-intro { padding: 42px 24px; }
  .contact-intro h1 { font-size: 38px; }
  .contact-intro > p:last-child { font-size: 14px; }
  .contact-panel { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
  .contact-email-mark { margin: 0 auto; }
  .contact-topics { grid-template-columns: 1fr; }
}
