:root {
  --bg: #ffffff;
  --bg-soft: #fff7ed;
  --paper: #fffaf3;
  --ink: #172033;
  --text: #172033;
  --muted: #5f6573;
  --line: #dbe4ef;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #e8f1ff;
  --accent: #d97706;
  --accent-soft: #fff7ed;
  --shadow: 0 18px 40px rgba(37, 99, 235, 0.10);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.09), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 24%),
    linear-gradient(180deg, var(--paper) 0%, #fff 260px);
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-pad {
  padding: 88px 0;
}

.section-muted {
  background: linear-gradient(180deg, var(--accent-soft) 0%, #ffffff 100%);
}

.page-hero {
  padding: 72px 0 28px;
}

.page-hero-card,
.content-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.page-hero-card h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 700;
}

.content-card + .content-card {
  margin-top: 20px;
}

.card-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.policy-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.policy-list li + li {
  margin-top: 10px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.info-table th {
  width: 34%;
  color: var(--primary-dark);
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: var(--primary);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.search-form label {
  flex: 1 1 100%;
  font-weight: 700;
}

.search-form .search-field {
  flex: 1 1 280px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

.search-form .search-submit {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #4f8cff);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 228, 239, 0.85);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
  box-shadow: var(--shadow);
}

.logo-text {
  font-size: 1.02rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.site-nav a,
.site-nav-list a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav-list a:hover,
.site-nav-list a:focus-visible {
  color: var(--accent);
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.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;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.hero-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf3 100%);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin-top: 0;
  font-size: 1.28rem;
}

.mini-card-list {
  display: grid;
  gap: 14px;
}

.mini-card,
.genre-card,
.tool-card,
.article-card,
.cta-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(31, 42, 55, 0.04);
}

.mini-card {
  padding: 18px;
}

.mini-card h3,
.genre-card h3,
.tool-card h3,
.article-card h3 {
  margin: 12px 0 8px;
  line-height: 1.4;
}

.mini-card p,
.genre-card p,
.tool-card p,
.article-card p,
.section-heading p,
.cta-box p,
.site-footer p {
  color: var(--muted);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 28px;
}

.section-heading h2,
.cta-box h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.25;
}

.genre-grid,
.tool-grid,
.article-grid {
  display: grid;
  gap: 20px;
}

.genre-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.genre-card,
.tool-card,
.article-card {
  padding: 22px;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-blue {
  color: var(--primary-dark);
  background: var(--primary-soft);
}

.tag-soft {
  color: #374151;
  background: #edf2f7;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.comparison-table thead th {
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

.feature-list {
  margin: 16px 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4f8cff);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, var(--primary-dark), #3b82f6);
}

.btn-secondary {
  color: var(--primary-dark);
  background: #fff;
  border-color: var(--line);
}

.btn-block {
  width: 100%;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
}

.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.is-hidden {
  display: none;
}

.cta-section {
  padding-top: 0;
}

.cta-box {
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 28%),
    #ffffff;
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--primary);
}

.entry-content {
  color: var(--text);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2em;
  line-height: 1.35;
}

.entry-content h2 {
  padding: 0.82rem 1rem 0.82rem 1.1rem;
  border-left: 6px solid var(--accent);
  border-radius: 14px;
  background:
    linear-gradient(90deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 10px 22px rgba(31, 42, 55, 0.04);
}

.entry-content h3 {
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.2em;
}

.entry-content .wp-block-table {
  margin: 28px 0;
  overflow-x: auto;
}

.entry-content .wp-block-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.entry-content .wp-block-table thead th {
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.entry-content .wp-block-table tbody tr:last-child td {
  border-bottom: 0;
}

.affiliate-box {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--accent-soft) 100%);
  box-shadow: 0 12px 28px rgba(31, 42, 55, 0.05);
}

.affiliate-box__label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.affiliate-box__text {
  margin: 0 0 18px;
  color: var(--text);
}

.affiliate-box__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.affiliate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #4f8cff);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.affiliate-button:hover,
.affiliate-button:focus-visible {
  transform: translateY(-1px);
}

.affiliate-button--disabled {
  background: #eef2f7;
  color: var(--muted);
  box-shadow: none;
}

.affiliate-box--summary {
  background: linear-gradient(135deg, #172033 0%, #1f2d49 100%);
  border: 0;
  color: #fff;
}

.affiliate-box--summary .affiliate-box__label {
  color: #fbbf24;
}

.affiliate-box--summary .affiliate-box__text {
  color: rgba(255, 255, 255, 0.88);
}

.affiliate-box--summary .affiliate-button {
  background: linear-gradient(135deg, #f8fafc, #fff7ed);
  color: #172033;
  box-shadow: none;
}

.affiliate-box--summary .affiliate-button:hover,
.affiliate-box--summary .affiliate-button:focus-visible {
  background: #fff;
}

.affiliate-box img[width="1"][height="1"] {
  display: none !important;
}

.image-placeholder {
  margin: 28px 0;
  padding: 28px 20px;
  border: 2px dashed #d6a85f;
  border-radius: var(--radius-lg);
  background: #fff7ed;
  text-align: center;
}

.image-placeholder__label {
  margin: 0 0 6px;
  color: #b45309;
  font-weight: 700;
}

.image-placeholder__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-thumb {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.post-thumb img {
  width: 100%;
  height: auto;
}

.entry-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.archive-description {
  color: var(--muted);
}

.pagination {
  margin-top: 28px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  margin: 4px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}

.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

@media (max-width: 960px) {
  .hero-grid,
  .tool-grid,
  .article-grid,
  .genre-grid,
  .footer-inner,
  .cta-box {
    grid-template-columns: 1fr;
  }

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

  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-box,
  .footer-inner {
    display: grid;
  }

  .page-hero {
    padding-top: 56px;
  }

  .info-table th {
    width: 40%;
  }
}

@media (max-width: 720px) {
  .section-pad {
    padding: 64px 0;
  }

  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav-list {
    display: grid;
    gap: 0;
    padding: 0;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a,
  .site-nav-list a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .site-nav a:first-child,
  .site-nav-list a:first-child {
    border-top: 0;
  }

  .genre-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table th,
  .comparison-table td {
    white-space: nowrap;
  }

  .page-hero-card,
  .content-card {
    padding: 22px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table tr {
    display: grid;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .info-table th {
    padding: 0;
    border-bottom: 0;
  }

  .info-table td {
    padding: 0;
    border-bottom: 0;
    color: var(--muted);
  }

  .search-form {
    display: grid;
  }

  .search-form .search-field,
  .search-form .search-submit {
    width: 100%;
  }
}
