@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #2b3326;
  --paper: #f5f2ea;
  --accent: #7c9420;
  --soft: #eef2dc;
  --font-cn: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-jp: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    "Meiryo", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  min-height: 0;
  color: var(--ink);
  font-family: var(--font-cn);
  background:
    radial-gradient(900px 680px at 14% 0%, #fffdf8 0%, rgba(255, 253, 248, 0) 60%),
    radial-gradient(900px 700px at 100% 100%, #efe9dc 0%, rgba(239, 233, 220, 0) 62%),
    var(--paper);
}

:lang(ja) {
  font-family: var(--font-jp);
  font-feature-settings: "palt" 1;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3vw, 38px) clamp(20px, 4vw, 52px);
}

.page-logo {
  transform: translate(-7mm, -7mm);
}

.page-logo img {
  display: block;
  width: clamp(105px, 11.5vw, 170px);
  max-width: calc(100vw - 150px);
  height: auto;
}

.page-main {
  position: relative;
  top: -7mm;
}

.page-back {
  flex: 0 0 auto;
  margin-top: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(43, 51, 38, 0.24);
  color: rgba(43, 51, 38, 0.64);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-back:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-main {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 clamp(20px, 4vw, 52px) 64px;
}

.page-card {
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.page-folder {
  position: relative;
  width: clamp(130px, 18vw, 180px);
  aspect-ratio: 1;
  margin: 0 auto 38px;
}

.page-folder__tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 48%;
  height: 18px;
  border-radius: 10px 10px 0 0;
  background: var(--accent);
}

.page-folder__body {
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 0 26px 26px 26px;
  background: var(--soft);
  color: var(--accent);
  box-shadow: 0 22px 46px rgba(55, 48, 32, 0.08);
}

.page-folder__body svg {
  width: 54%;
  height: 54%;
  fill: currentColor;
}

.page-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
}

.page-title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-note {
  margin: 18px auto 0;
  max-width: 380px;
  color: rgba(43, 51, 38, 0.55);
  font-size: 13px;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .page-header {
    align-items: center;
  }

  .page-logo {
    transform: translate(-3mm, -3mm);
  }

  .page-logo img {
    width: 125px;
    max-width: calc(100vw - 100px);
  }

  .page-main {
    top: -3mm;
    min-height: 0;
    padding-bottom: 42px;
  }

  .page-folder {
    margin-bottom: 30px;
  }
}

/* Keep the scrollbar thin and flush with the page edge. */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 51, 38, 0.36) transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(43, 51, 38, 0.36);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(43, 51, 38, 0.56);
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
