:root {
  --ink: #101114;
  --paper: #f4f2eb;
  --line: #c8c5bc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
}
.hero {
  min-height: 54vh;
  padding: 28px clamp(24px, 6vw, 92px) 64px;
  color: white;
  background:
    radial-gradient(circle at 82% 20%, #405273 0 7%, transparent 25%),
    linear-gradient(125deg, #0b0c0f 0 62%, #20242b 62%);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.16em;
}
nav a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #777;
  padding-bottom: 5px;
}
.hero-copy {
  max-width: 850px;
  margin-top: 9vh;
}
.eyebrow {
  font-weight: 700;
  letter-spacing: 0.16em;
}
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 7.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 22px 0;
}
.hero-copy > p:last-child {
  max-width: 580px;
  color: #c7c8cc;
  line-height: 1.9;
}
main {
  padding: 70px clamp(20px, 6vw, 92px) 130px;
}
.finder {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 22px;
}
.section-no {
  font-size: 12px;
  letter-spacing: 0.2em;
  margin: 0;
}
.finder h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  margin: 8px 0 0;
}
.search {
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #888;
  padding: 9px 2px;
  width: min(320px, 42vw);
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
}
.device-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 22px 0 40px;
}
.device-tabs button {
  border: 1px solid #aaa;
  border-radius: 999px;
  padding: 10px 19px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.device-tabs button.active {
  background: var(--ink);
  color: white;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.guide-card {
  --accent: #5d83ff;
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  background: #faf9f5;
  padding: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.guide-card:before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(70px);
  opacity: 0.16;
  right: -50px;
  top: -50px;
}
.guide-card:last-child {
  grid-column: span 2;
}
.accent-violet {
  --accent: #946dff;
}
.accent-lime {
  --accent: #99c93d;
}
.accent-orange {
  --accent: #f47d42;
}
.accent-cyan {
  --accent: #34b8d2;
}
.device-mark {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-no {
  position: absolute;
  right: 28px;
  top: 16px;
  font-size: 64px;
  font-weight: 900;
  color: #e1dfd8;
  margin: 0;
}
.guide-card h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin: 55px 0 14px;
}
.guide-card > p:not(.card-no) {
  max-width: 560px;
  line-height: 1.8;
  color: #606167;
}
.guide-card ol {
  list-style: none;
  padding: 0;
  margin: auto 0 24px;
  border-top: 1px solid var(--line);
}
.guide-card li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.guide-card li b {
  margin-right: 18px;
  color: var(--accent);
}
.trick-open {
  align-self: flex-end;
  border: 0;
  background: var(--ink);
  color: white;
  padding: 13px 17px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.trick-open span {
  color: var(--accent);
  margin-left: 18px;
}
.floating-tip {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  background: #d8ff47;
  color: #101114;
  box-shadow: 0 16px 45px #0004;
  display: grid;
  place-content: center;
  cursor: pointer;
  z-index: 5;
  transform: rotate(3deg);
}
.floating-tip span {
  position: absolute;
  top: 12px;
  left: 16px;
}
.floating-tip small {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.floating-tip b {
  font-size: 22px;
}
dialog {
  border: 0;
  width: min(500px, calc(100vw - 36px));
  padding: 34px;
  background: #111;
  color: white;
  box-shadow: 0 30px 90px #0008;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(4px);
}
dialog > p {
  color: #d8ff47;
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 900;
}
dialog h2 {
  font-size: 2rem;
  margin: 6px 0 24px;
}
dialog li {
  margin: 14px 0;
  line-height: 1.7;
}
.dialog-close {
  position: absolute;
  right: 18px;
  top: 15px;
  border: 0;
  background: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
}
.empty {
  text-align: center;
  padding: 70px 20px;
  color: #777;
}
@media (max-width: 760px) {
  .hero {
    min-height: 46vh;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .finder {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .guide-card,
  .guide-card:last-child {
    grid-column: auto;
    min-height: 490px;
    padding: 24px;
  }
  .card-no {
    font-size: 48px;
  }
  .guide-card h2 {
    margin-top: 50px;
    font-size: 2.5rem;
  }
  .floating-tip {
    width: 82px;
    height: 82px;
    right: 14px;
    bottom: 14px;
  }
}
:root {
  --link-fix: 1;
}
.guide-card li {
  padding: 0;
}
.guide-card li a {
  display: flex;
  align-items: center;
  padding: 13px 4px;
  color: inherit;
  text-decoration: none;
  transition:
    padding 0.18s ease,
    background 0.18s ease;
}
.guide-card li a:hover,
.guide-card li a:focus-visible {
  padding-left: 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  outline: none;
}
.guide-card li a span {
  margin-left: auto;
  color: var(--accent);
  font-weight: 900;
}
:where(.guide-card[hidden]) {
  display: none !important;
}
:where(.official-all) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
  padding: 13px 16px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
:where(.official-all:hover, .official-all:focus-visible) {
  background: var(--ink);
  color: #fff;
  outline: none;
}
.tip-library-link {
  display: block;
  margin-top: 22px;
  padding: 13px 16px;
  background: #d8ff47;
  color: #101114;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}
:where(.guide-categories) {
  margin: 0 0 14px;
  border-top: 2px solid var(--ink);
}
:where(.category-heading) {
  margin: 0 !important;
  padding: 14px 4px 10px;
  font-size: 11px !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--ink) !important;
}
:where(.guide-categories details) {
  border-top: 1px solid var(--line);
}
:where(.guide-categories summary) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
:where(.guide-categories summary::-webkit-details-marker) {
  display: none;
}
:where(.guide-categories details[open] summary span) {
  transform: rotate(45deg);
}
:where(.guide-categories summary span) {
  color: var(--accent);
  font-size: 20px;
  transition: transform 0.18s ease;
}
:where(.guide-categories details div) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 0 0 10px;
}
:where(.guide-categories details a) {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}
:where(
  .guide-categories details a:hover,
  .guide-categories details a:focus-visible
) {
  background: color-mix(in srgb, var(--accent) 18%, #fff);
  outline: none;
}
:where(.guide-categories details a b) {
  color: var(--accent);
}
@media (max-width: 560px) {
  :where(.guide-categories details div) {
    grid-template-columns: 1fr;
  }
}
