@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@600;700&display=swap');

:root {
  --bg: #09100f;
  --bg-soft: #101b1a;
  --surface: #f8f4ea;
  --surface-dark: #14211f;
  --surface-muted: #edf0e7;
  --text: #e9eadf;
  --text-dark: #18211f;
  --muted: #9aa69f;
  --muted-dark: #607069;
  --border: rgba(219, 228, 210, 0.18);
  --paper-border: #d8d4c3;
  --accent: #cbb36b;
  --accent-2: #7fb1a8;
  --danger: #a53a45;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

[data-theme="paper"] {
  --bg: #f1eadc;
  --bg-soft: #e7decc;
  --surface: #fffaf0;
  --surface-dark: #fffaf0;
  --surface-muted: #eee4d2;
  --text: #2a241d;
  --text-dark: #2a241d;
  --muted: #786b5c;
  --muted-dark: #786b5c;
  --border: rgba(72, 58, 38, 0.18);
  --paper-border: #d4c3a7;
  --shadow: 0 16px 36px rgba(71, 55, 31, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(127, 177, 168, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(9, 16, 15, 0.35), transparent 22rem),
    var(--bg);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-main,
.primary-nav,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-main {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(260px, 430px) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  background: transparent;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.18rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.search-box {
  display: flex;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button,
.icon-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 0;
}

.search-box button {
  width: 42px;
  border-left: 1px solid var(--border);
  font-size: 1.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-actions a {
  color: var(--muted);
  font-size: 0.83rem;
  white-space: nowrap;
}

.header-actions a.submit-button {
  color: #12130f;
}

.submit-button,
.primary-cta,
.submit-band button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: #12130f;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.primary-nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

.primary-nav a {
  padding: 10px 14px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  font-size: 0.9rem;
  white-space: nowrap;
}

.primary-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: 430px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 9, 0.86), rgba(5, 10, 9, 0.36) 58%, rgba(5, 10, 9, 0.74)),
    linear-gradient(180deg, transparent, rgba(5, 10, 9, 0.74));
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(620px, 100%);
  padding: 54px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero h1,
.submit-band h2 {
  margin: 0;
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.22;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.hero p {
  max-width: 38rem;
  color: #dfe5db;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.secondary-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  font-weight: 700;
}

.hero-pr {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  width: min(280px, calc(100% - 44px));
  padding: 15px;
  color: #fff;
  background: rgba(12, 20, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.hero-pr span,
.affiliate-card span,
.inline-pr span,
.conversion-card span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-pr strong,
.hero-pr small {
  display: block;
}

.hero-pr small {
  margin-top: 5px;
  color: #cbd5ce;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1.4fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.portal-card,
.section-block,
.side-card,
.affiliate-card,
.inline-pr,
.submit-band {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.portal-card {
  min-height: 154px;
  padding: 16px;
}

.portal-card h2,
.section-head h2,
.side-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.portal-card > a {
  display: block;
  margin-top: 10px;
  color: var(--text);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.rank-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #111;
  background: linear-gradient(135deg, var(--accent), #7fb1a8);
}

.rank-card strong {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.38rem;
  line-height: 1.45;
}

.tag-cloud,
.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-cloud a,
.tag-line a {
  padding: 5px 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
}

.mini-rank,
.ranked-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.mini-rank li,
.ranked-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.main-column {
  display: grid;
  gap: 18px;
}

.side-column {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 14px;
}

.section-block {
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
}

.section-head a {
  color: var(--muted);
  font-size: 0.84rem;
}

.featured-story,
.story-row {
  padding: 17px;
  border-bottom: 1px solid var(--border);
}

.story-row:last-child {
  border-bottom: 0;
}

.story-labels,
.story-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-labels span {
  padding: 2px 8px;
  color: #131510;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.featured-story h3,
.story-row h3 {
  margin: 9px 0 0;
  color: var(--text);
  font-family: 'Noto Serif JP', serif;
  line-height: 1.52;
}

.featured-story h3 {
  font-size: 1.45rem;
}

.story-row h3 {
  font-size: 1.08rem;
}

.featured-story p,
.story-row p,
.side-card p {
  margin: 8px 0 0;
  color: #cbd5ce;
}

.story-stats {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.inline-pr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(203, 179, 107, 0.14), rgba(127, 177, 168, 0.1)),
    var(--surface-dark);
}

.inline-pr strong {
  display: block;
  color: var(--text);
  font-size: 1.04rem;
}

.inline-pr p {
  margin: 3px 0 0;
  color: var(--muted);
}

.inline-pr a {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #12130f;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 700;
}

.ranked-list {
  margin: 0;
  padding: 6px 17px 12px;
  counter-reset: rank;
}

.ranked-list li {
  counter-increment: rank;
}

.ranked-list li::before {
  content: counter(rank);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: #111;
  background: var(--accent);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.ranked-list a {
  flex: 1;
  color: var(--text);
}

.ranked-list span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.side-card,
.affiliate-card {
  padding: 16px;
}

.conversion-card button {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  color: #12130f;
  background: var(--accent-2);
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.affiliate-card {
  display: block;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.affiliate-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  text-decoration: none;
}

.affiliate-card strong,
.affiliate-card small {
  display: block;
}

.affiliate-card strong {
  margin-top: 6px;
  color: var(--text);
  line-height: 1.5;
}

.affiliate-card p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.affiliate-card small {
  color: var(--accent);
  font-weight: 700;
}

.submit-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(165, 58, 69, 0.18), rgba(127, 177, 168, 0.1)),
    var(--surface-dark);
}

.submit-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
}

.submit-band p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #cbd5ce;
}

.submit-band button {
  flex: 0 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 42px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.is-hidden {
  display: none !important;
}

.field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.text-input {
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
}

textarea.text-input {
  min-height: 180px;
  resize: vertical;
}

.text-input:focus {
  border-color: var(--accent);
}

.filter-strip,
.topic-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border);
}

.filter-strip strong,
.topic-note strong {
  color: var(--accent);
}

.filter-strip a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}

.topic-note {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.topic-note span,
.topic-note small {
  font-size: 0.8rem;
}

.topic-editor {
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.topic-editor:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.topic-editor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.compact-input {
  width: 86px;
  margin-left: 6px;
  padding: 7px 8px;
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 32px auto;
}

.page-hero {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(203, 179, 107, 0.14), rgba(127, 177, 168, 0.08)),
    var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.page-hero h1,
.policy-body h2 {
  margin: 0;
  color: var(--accent);
  font-family: 'Noto Serif JP', serif;
  line-height: 1.35;
}

.page-hero p {
  max-width: 44rem;
  margin: 10px 0 0;
  color: #cbd5ce;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.policy-body {
  padding: 22px;
}

.policy-body h2 {
  margin-top: 26px;
  font-size: 1.3rem;
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body p,
.policy-body li {
  color: #cbd5ce;
}

.policy-body ul,
.policy-body ol {
  padding-left: 1.3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.info-card {
  padding: 18px;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.info-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
}

.info-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.link-list a {
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
}

@media (max-width: 960px) {
  .header-main {
    grid-template-columns: 1fr auto;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
  }

  .header-actions a {
    display: none;
  }

  .portal-grid,
  .content-layout,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-main,
  .primary-nav,
  main,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand small,
  .hero-pr {
    display: none;
  }

  .brand strong {
    font-size: 1rem;
  }

  .submit-button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 430px;
  }

  .hero-copy {
    padding: 32px 22px;
  }

  .inline-pr,
  .submit-band,
  .site-footer {
    display: block;
  }

  .filter-strip,
  .topic-note {
    display: grid;
  }

  .filter-strip a {
    margin-left: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .inline-pr a,
  .submit-band button {
    width: 100%;
    margin-top: 13px;
  }

  .site-footer nav {
    justify-content: flex-start;
    margin-top: 12px;
  }
}
