:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #5d6370;
  --line: #e4e2db;
  --accent: #ff5a36;
  --accent-ink: #ffffff;
  --accent-soft: #fff0eb;
  --web: #0f7b5f;
  --web-soft: #e3f4ee;
  --dl: #3a55c4;
  --dl-soft: #e8ecfb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 20px rgba(20, 20, 30, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --ink: #eef0f3;
    --muted: #a0a6b1;
    --line: #2b2f37;
    --accent: #ff7452;
    --accent-ink: #16181d;
    --accent-soft: #2f1f1a;
    --web: #4fd1a5;
    --web-soft: #15302a;
    --dl: #8fa4ff;
    --dl-soft: #1c2342;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  line-height: 1.75;
  font-size: 16px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .2em; line-height: 1; }
.logo span:last-child { line-height: 1.2; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 18px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg); }

.hero { padding: 64px 0 48px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(30px, 6vw, 52px); line-height: 1.25; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 16px 0 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 1px solid var(--accent); font-size: 15px; }
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); }

.section { padding: 8px 16px 72px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: 22px; }
.count { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.search { min-height: 44px; width: min(100%, 320px); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { min-height: 36px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease; }
.card a:hover { transform: translateY(-2px); }
.thumb { aspect-ratio: 16 / 9; background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { font-size: 44px; font-weight: 800; color: var(--accent); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.meta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.badge-web { color: var(--web); background: var(--web-soft); }
.badge-dl { color: var(--dl); background: var(--dl-soft); }
.badge-pr { color: var(--muted); border: 1px solid var(--line); }

.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-title { font-size: 20px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.empty { color: var(--muted); }

/* Home discovery feed */
.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; }
.home-intro { padding: 48px 0 40px; border-bottom: 1px solid var(--line); background: var(--surface); }
.home-intro-inner { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: end; }
.home-intro h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.17; letter-spacing: -.035em; }
.home-intro .lead { margin-top: 14px; max-width: 720px; }
.home-intro-action { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.home-intro-action p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.home-intro-action strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 16px; }
.home-intro-action .btn { width: 100%; justify-content: space-between; border-radius: 10px; }
.discover { padding-top: 40px; padding-bottom: 80px; }
.discover-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.discover-head h2 { margin: 0; font-size: 26px; line-height: 1.3; }
.discover-head .count { display: inline-grid; place-items: center; min-width: 25px; height: 25px; margin-left: 5px; padding: 0 7px; border-radius: 999px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); font-size: 12px; vertical-align: 3px; }
.search-box { position: relative; width: min(100%, 340px); }
.search-box > span[aria-hidden] { position: absolute; left: 15px; top: 50%; transform: translateY(-53%); z-index: 1; color: var(--muted); font-size: 21px; }
.search-box .search { width: 100%; padding-left: 42px; }
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; }
.work-card { min-width: 0; }
.work-card[hidden] { display: none; }
.work-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.work-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.work-thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); color: var(--accent); font-size: 40px; font-weight: 900; }
.work-card a:hover .work-thumb img { transform: scale(1.025); }
.work-open { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(15, 17, 21, .84); color: white; font-size: 19px; opacity: 0; transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; backdrop-filter: blur(8px); }
.work-card a:hover .work-open, .work-card a:focus-visible .work-open { opacity: 1; transform: translateY(0); }
.work-body { padding: 9px 2px 0; }
.work-category { margin-bottom: 5px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.work-card h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.work-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.work-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 10px; }
.work-meta span:last-child { margin-left: auto; }
.creator-avatar { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; font-size: 10px; }
.work-card-featured { grid-column: auto; }
.creator-cta { margin-bottom: 80px; padding-top: 32px; padding-bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creator-cta h2 { margin: 0; font-size: 28px; }
.creator-cta p:not(.section-kicker) { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.creator-cta .btn { flex: 0 0 auto; border-radius: 10px; }

.tool { padding: 32px 16px 72px; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.crumb a { color: var(--muted); }
.tool-head h1 { margin: 10px 0 0; font-size: clamp(26px, 5vw, 40px); line-height: 1.3; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.notice { font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 16px 0 0; }
.shot { margin: 32px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; margin-top: 32px; align-items: start; }
.prose p { margin: 0 0 1em; }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px; }
.facts div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 1px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); text-decoration: none; }
.share { margin-top: 32px; }

.prose-page { padding: 48px 16px 72px; }
.prose-page h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.3; margin: 0; }
.prose-page h2 { font-size: 20px; margin: 40px 0 8px; scroll-margin-top: 80px; }
.prose-page ul { padding-left: 1.3em; }
.cta { margin-top: 32px; }

/* Submit page */
.submit-page { overflow: hidden; }
.submit-hero > *, .submit-layout > *, .field-row > * { min-width: 0; }
.submit-hero { padding-top: 64px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 56px; align-items: end; }
.submit-hero h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 6vw, 68px); line-height: 1.13; letter-spacing: -.035em; overflow-wrap: anywhere; }
.submit-hero .lead { max-width: 660px; font-size: 18px; }
.submit-points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.submit-points span { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: 13px; font-weight: 750; }
.submit-hero-note { position: relative; background: var(--ink); color: var(--bg); border-radius: 22px; padding: 26px 24px 24px; box-shadow: var(--shadow); transform: rotate(1.25deg); }
.submit-hero-note p { margin: 0; font-size: 14px; line-height: 1.7; }
.submit-hero-note strong { display: block; margin-bottom: 6px; font-size: 18px; color: var(--surface); }
.submit-note-icon { position: absolute; top: -18px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 24px; font-weight: 800; }
.submit-layout { padding-bottom: 88px; display: grid; grid-template-columns: minmax(0, .82fr) minmax(400px, 1.18fr); gap: 64px; align-items: start; }
.submit-guide { padding-top: 28px; }
.guide-block + .guide-block { margin-top: 52px; }
.section-kicker { margin: 0 0 6px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.guide-block h2, .form-card-head h2 { margin: 0; font-size: 24px; line-height: 1.35; }
.check-list, .step-list { list-style: none; margin: 22px 0 0; padding: 0; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.check-list li > span { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; color: var(--web); background: var(--web-soft); font-weight: 900; font-size: 13px; }
.check-list strong, .step-list strong { display: block; line-height: 1.45; }
.check-list small, .step-list small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.step-list { display: grid; gap: 10px; }
.step-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.step-list li > span { font-size: 12px; font-weight: 900; letter-spacing: .08em; color: var(--accent); }
.submit-details { margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.submit-details summary { padding: 16px 0; cursor: pointer; font-weight: 700; }
.submit-details ul { margin-top: 0; padding-left: 1.2em; color: var(--muted); font-size: 13px; }
.submit-details p { color: var(--muted); font-size: 13px; }
.submit-form-card { position: relative; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 18px 50px rgba(20, 20, 30, .09); }
.submit-form-card::before { content: ""; position: absolute; inset: 12px -12px -12px 12px; z-index: -1; border-radius: 24px; background: var(--accent-soft); }
.form-card-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-card-head > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.submit-form { display: grid; gap: 20px; padding-top: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 750; line-height: 1.4; }
.field label span { margin-left: 5px; color: var(--accent); font-size: 10px; }
.field label em { margin-left: 5px; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.5; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .62; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px rgba(255, 90, 54, .14); }
.field > small { color: var(--muted); font-size: 11px; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: 12px; line-height: 1.6; cursor: pointer; }
.consent input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.submit-button { width: 100%; justify-content: space-between; min-height: 52px; border-radius: 12px; padding: 12px 18px; cursor: pointer; }
.form-note { margin: -8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.mail-fallback { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mail-fallback p { margin: 0 auto 0 0; }
.mail-fallback button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.mail-fallback button:hover { background: var(--bg); }
.mail-fallback [role="status"] { color: var(--web); font-weight: 700; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer-name { margin: 0; font-weight: 800; color: var(--ink); }
.footer-name span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.footer-links a { color: var(--muted); }
.copy { margin: 12px 0 0; font-size: 12px; }

@media (max-width: 760px) {
  .hero { padding: 40px 0 32px; }
  .tool-grid { grid-template-columns: 1fr; }
  .nav { margin: 0 -10px 8px; }
  .search { width: 100%; }
  .home-intro { padding: 34px 0 28px; }
  .home-intro-inner { grid-template-columns: 1fr; gap: 26px; }
  .home-intro h1 { font-size: clamp(34px, 10.5vw, 46px); }
  .home-intro-action { display: flex; align-items: center; gap: 16px; }
  .home-intro-action p { margin: 0; flex: 1; }
  .home-intro-action .btn { width: auto; flex: 0 0 auto; }
  .discover { padding-top: 30px; padding-bottom: 56px; }
  .discover-head { align-items: stretch; flex-direction: column; gap: 15px; }
  .search-box { width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .work-card-featured { grid-column: auto; }
  .work-card h3 { font-size: 14px; }
  .work-card p { font-size: 11px; -webkit-line-clamp: 2; }
  .work-meta span:last-child { display: none; }
  .work-open { opacity: 1; transform: none; }
  .creator-cta { margin-bottom: 56px; align-items: flex-start; flex-direction: column; gap: 22px; }
  .submit-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 42px; padding-bottom: 48px; }
  .submit-hero h1 { font-size: clamp(36px, 10.5vw, 46px); letter-spacing: -.045em; }
  .submit-hero .lead { font-size: 16px; }
  .submit-hero-note { max-width: 360px; transform: rotate(.5deg); }
  .submit-layout { grid-template-columns: 1fr; gap: 48px; padding-bottom: 64px; }
  .submit-guide { padding-top: 0; }
  .submit-form-card { padding: 24px 18px; border-radius: 18px; }
  .submit-form-card::before { inset: 8px -6px -8px 6px; border-radius: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 20px; }
  .mail-fallback p { width: 100%; }
}
