:root {
  --paper: #f6f1e7;
  --paper-deep: #ebe2d2;
  --ink: #16243a;
  --muted: #647082;
  --coral: #ed6a4a;
  --coral-soft: #f7c2b4;
  --teal: #2a9d8f;
  --teal-soft: #bfe2dd;
  --white: #fffdf8;
  --line: #d8d0c2;
  --shadow: 0 16px 40px rgba(22, 36, 58, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
}
a { color: inherit; }
button, input { font: inherit; }
.sr-only { 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 { position: fixed; left: 16px; top: -80px; z-index: 99; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: .02em; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 7px); align-items: end; gap: 3px; width: 28px; height: 28px; padding: 4px; border: 2px solid var(--ink); border-radius: 7px; transform: rotate(-2deg); }
.brand-mark i { display: block; background: var(--coral); height: 8px; border-radius: 2px; }
.brand-mark i:nth-child(2) { height: 15px; background: var(--teal); }
.brand-mark i:nth-child(3) { height: 11px; background: var(--ink); }
.site-header nav, footer nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.site-header nav a, footer nav a { color: var(--muted); font-size: .9rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, footer nav a:hover { color: var(--coral); }

main { overflow: hidden; }
.hero { max-width: 1240px; margin: 0 auto; min-height: 570px; padding: 72px 28px 62px; display: grid; grid-template-columns: 1.14fr .86fr; gap: 80px; align-items: center; }
.eyebrow { margin: 0 0 15px; color: var(--teal); font-size: .74rem; font-weight: 900; letter-spacing: .18em; }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1.12; letter-spacing: -.055em; }
.hero h1 em { color: var(--coral); font-style: normal; text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .12em; text-decoration-color: var(--coral-soft); }
.hero-lead { max-width: 620px; margin: 28px 0 26px; color: var(--muted); font-size: 1.05rem; }
.search-shell { max-width: 620px; height: 64px; background: var(--white); border: 2px solid var(--ink); border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; box-shadow: 6px 6px 0 var(--ink); transition: transform .16s, box-shadow .16s; }
.search-shell:focus-within { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.search-shell > span { font-size: 1.8rem; line-height: 1; transform: rotate(-15deg); }
.search-shell input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-shell kbd { padding: 3px 9px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; color: var(--muted); background: #fff; }
.search-hint { margin: 12px 0 0 4px; color: var(--muted); font-size: .78rem; }

.hero-board { position: relative; min-height: 370px; background: var(--ink); border-radius: 24px 24px 60px 24px; box-shadow: 14px 14px 0 var(--coral-soft); transform: rotate(1deg); }
.hero-board::before { content: ""; position: absolute; inset: 18px; border: 1px dashed rgba(255,255,255,.32); border-radius: 17px 17px 45px 17px; }
.board-note { position: absolute; display: flex; flex-direction: column; justify-content: center; width: 155px; height: 130px; padding: 22px; border-radius: 5px; box-shadow: 0 12px 22px rgba(0,0,0,.25); transform: rotate(-4deg); }
.board-note::after { content: ""; position: absolute; width: 54px; height: 15px; top: -7px; left: 50%; transform: translateX(-50%) rotate(2deg); background: rgba(255,255,255,.45); }
.board-note strong { font-size: 2.25rem; line-height: 1; letter-spacing: -.05em; }
.board-note span { margin-top: 11px; font-size: .82rem; font-weight: 800; }
.note-coral { left: 42px; top: 48px; background: var(--coral-soft); }
.note-teal { right: 42px; top: 86px; background: var(--teal-soft); transform: rotate(5deg); }
.note-navy { left: 132px; bottom: 38px; background: #fff; transform: rotate(2deg); }
.note-navy strong { font-size: 1.55rem; }
.board-pencil { position: absolute; right: 36px; bottom: 30px; width: 120px; height: 14px; border-radius: 7px 2px 2px 7px; background: var(--coral); transform: rotate(-28deg); box-shadow: inset -17px 0 #f8dfaf; }

.trust-strip { background: var(--ink); color: #fff; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-strip p { margin: 0; min-height: 108px; padding: 24px max(24px, calc((100vw - 1184px) / 6)); display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-content: center; border-right: 1px solid rgba(255,255,255,.14); font-size: .8rem; color: #bfc7d3; }
.trust-strip span { grid-row: 1 / 3; align-self: center; color: var(--coral-soft); font-weight: 900; }
.trust-strip strong { color: #fff; font-size: .98rem; }

.catalog { max-width: 1240px; margin: 0 auto; padding: 110px 28px 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2, .how-it-works h2, .safety-note h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.25; letter-spacing: -.04em; }
.section-heading > p { margin: 0 0 7px; color: var(--muted); font-size: .88rem; }
.section-heading > p strong { color: var(--ink); font-size: 1.6rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 34px 0 28px; }
.filter-button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; color: var(--muted); background: rgba(255,255,255,.45); cursor: pointer; font-weight: 700; font-size: .82rem; transition: .15s ease; }
.filter-button:hover { border-color: var(--ink); color: var(--ink); }
.filter-button[aria-pressed="true"] { border-color: var(--ink); color: #fff; background: var(--ink); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card-wrap { position: relative; min-width: 0; }
.tool-card { position: relative; min-height: 228px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card:hover { transform: translateY(-5px) rotate(-.25deg); border-color: var(--ink); box-shadow: var(--shadow); }
.tool-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 900; font-size: .72rem; letter-spacing: .03em; }
.category-chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(12deg); }
.launch-arrow { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: .18s ease; }
.tool-card:hover .launch-arrow { color: #fff; background: var(--coral); border-color: var(--coral); transform: rotate(-35deg); }
.tool-card h3 { margin: 22px 0 8px; font-size: 1.08rem; line-height: 1.45; letter-spacing: -.01em; }
.tool-card p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.favorite-button { position: absolute; z-index: 2; right: 72px; top: 17px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #a15c00; font-size: 1.35rem; cursor: pointer; box-shadow: 0 3px 10px #16203312; }
.favorite-button:hover { border-color: #a15c00; transform: translateY(-1px); }
.favorite-button:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.badge { padding: 3px 8px; border-radius: 5px; color: var(--muted); background: #f1ede5; font-size: .66rem; font-weight: 800; }
.badge.network { color: #865327; background: #f8e6c9; }
.badge.storage { color: #376b64; background: #dceeea; }
.empty-state { padding: 70px 24px; border: 1px dashed var(--line); border-radius: 16px; text-align: center; background: rgba(255,255,255,.35); }
.empty-state strong { font-size: 1.2rem; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 0; border-radius: 8px; padding: 10px 16px; background: var(--ink); color: #fff; cursor: pointer; }

.ad-shell { width: 100%; max-width: 1184px; min-height: 152px; margin: 42px auto; padding: 18px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.28); }
.ad-shell[hidden], .adsense-disabled .ad-shell { display: none !important; }
.ad-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-align: center; }
.ad-body { min-height: 108px; display: grid; place-items: center; overflow: hidden; }
.ad-shell-catalog { grid-column: 1 / -1; margin: 32px 0; }
.ad-shell-footer { margin-bottom: 92px; }

.how-it-works { max-width: 1240px; margin: 0 auto 110px; padding: 55px; background: var(--coral-soft); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 9px 9px 0 var(--ink); }
.how-it-works { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.how-it-works ol { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.how-it-works li { display: flex; align-items: center; gap: 16px; padding: 15px 18px; background: rgba(255,255,255,.62); border-radius: 12px; }
.how-it-works li > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 50%; font-weight: 900; }
.how-it-works li strong { display: block; }
.how-it-works li p { margin: 0; color: var(--muted); font-size: .8rem; }

.safety-note { max-width: 1184px; margin: 0 auto 110px; padding: 38px 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safety-badge { width: 78px; height: 78px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 22px 22px 22px 6px; font-weight: 900; transform: rotate(-4deg); }
.safety-note h2 { font-size: 1.5rem; }
.safety-note p:not(.eyebrow) { max-width: 740px; margin: 10px 0 0; color: var(--muted); font-size: .86rem; }
.safety-note > a { white-space: nowrap; color: var(--ink); font-weight: 800; font-size: .84rem; text-underline-offset: 5px; }

footer { border-top: 1px solid var(--line); max-width: 1240px; margin: 0 auto; padding: 52px 28px 38px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.footer-brand { margin-bottom: 8px; }
footer p, footer small { color: var(--muted); font-size: .78rem; }
footer small { grid-column: 1 / -1; }

.simple-page { max-width: 820px; margin: 0 auto; padding: 70px 28px 120px; }
.simple-page h1 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.05em; line-height: 1.15; }
.simple-page h2 { margin-top: 48px; font-size: 1.35rem; }
.simple-page p, .simple-page li { color: var(--muted); }
.simple-page .notice { margin: 32px 0; padding: 22px; border-left: 6px solid var(--coral); background: var(--white); }
.simple-page .policy-meta { color: var(--muted); font-size: .82rem; }
.simple-page .policy-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 38px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.simple-page .policy-links a { font-weight: 700; text-underline-offset: 4px; }
.simple-page code { padding: 2px 6px; border-radius: 5px; background: var(--paper-deep); color: var(--ink); }
.back-link { display: inline-block; margin-top: 40px; font-weight: 800; text-underline-offset: 5px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 54px; padding-top: 52px; }
  .hero-board { min-height: 330px; max-width: 560px; width: 100%; justify-self: center; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .how-it-works { grid-template-columns: 1fr; gap: 30px; margin-left: 20px; margin-right: 20px; }
  .safety-note { margin-left: 28px; margin-right: 28px; grid-template-columns: auto 1fr; }
  .safety-note > a { grid-column: 2; }
}

@media (max-width: 640px) {
  .site-header { padding: 20px; }
  .site-header nav a:not(:first-child) { display: none; }
  .site-header nav { gap: 0; }
  .hero { padding: 42px 20px 52px; }
  .hero h1 { font-size: clamp(2.55rem, 14vw, 4.2rem); }
  .hero-board { min-height: 300px; }
  .board-note { width: 132px; height: 112px; padding: 17px; }
  .note-coral { left: 28px; top: 38px; }
  .note-teal { right: 25px; top: 72px; }
  .note-navy { left: 91px; bottom: 28px; }
  .board-pencil { width: 86px; right: 19px; bottom: 23px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip p { min-height: 84px; padding: 18px 24px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .catalog { padding: 80px 20px 88px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { align-self: flex-end; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 10px; scrollbar-width: thin; }
  .filter-button { white-space: nowrap; }
  .tool-grid { grid-template-columns: 1fr; }
  .ad-shell { min-height: 132px; margin: 28px 0; padding: 15px 10px; }
  .ad-body { min-height: 96px; }
  .tool-card { min-height: 210px; }
  .how-it-works { padding: 34px 24px; box-shadow: 6px 6px 0 var(--ink); }
  .safety-note { margin: 0 20px 80px; padding: 28px 0; grid-template-columns: 1fr; }
  .safety-badge { width: 62px; height: 62px; }
  .safety-note > a { grid-column: 1; }
  footer { margin: 0 20px; padding-left: 0; padding-right: 0; grid-template-columns: 1fr; }
  footer nav { flex-direction: column; gap: 8px; }
  footer small { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
