:root {
  --navy: #1a2e6e;
  --navy-2: #243b86;
  --orange: #F5A623;
  --orange-2: #fff4dd;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --line: #e5eaf3;
  --green: #1f9d75;
  --shadow: 0 14px 36px rgba(26, 46, 110, 0.10);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

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

button,
input {
  font: inherit;
}

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

.section {
  padding: 64px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  margin: 0 0 6px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--navy);
}

.lead {
  color: var(--muted);
  margin-bottom: 0;
}

/* グローバルヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 26px;
  width: auto;
  display: block;
  /* 濃紺の背景でロゴを白抜きで表示 */
  filter: brightness(0) invert(1);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #344054;
  font-weight: 700;
  font-size: 14px;
}

.global-nav a {
  transition: color .18s ease;
}

.global-nav a:hover {
  color: var(--navy);
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(26, 46, 110, .18);
}

.nav-cta:hover {
  color: #fff !important;
  background: var(--navy-2);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.menu-button span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
  transition: transform .2s ease, top .2s ease, opacity .2s ease;
}

.menu-button span:nth-child(1) { top: 13px; }
.menu-button span:nth-child(2) { top: 20px; }
.menu-button span:nth-child(3) { top: 27px; }

body.menu-open .menu-button span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

body.menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-button span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

/* トップページ ヒーローエリア */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(245, 166, 35, .18), transparent 28%),
    linear-gradient(135deg, #f9fbff 0%, #eef3ff 52%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, .76fr);
  gap: 52px;
  align-items: center;
  min-height: 560px;
  padding: 68px 0;
}

.hero-copy {
  animation: riseIn .5s ease both;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #dbe4fb;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 18px;
}

.hero-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--navy);
  margin-bottom: 18px;
}

.hero-description {
  max-width: 620px;
  color: #475467;
  font-size: 17px;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  gap: 10px;
  padding: 8px;
  width: min(100%, 620px);
  background: #fff;
  border: 1px solid #dbe4fb;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 14px;
  color: var(--text);
}

.search-box button {
  border: 0;
  cursor: pointer;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 800;
  transition: transform .16s ease, box-shadow .16s ease;
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(245, 166, 35, .25);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.hero-stat {
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid #e2e8f7;
}

.hero-stat strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.1;
}

.hero-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dfe7f5;
  box-shadow: 0 24px 54px rgba(26, 46, 110, .13);
  animation: floatIn .65s ease .1s both;
}

.mini-review {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-review + .mini-review {
  margin-top: 12px;
}

.review-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  background: #edf2ff;
}

.pill.pass {
  color: #936100;
  background: var(--orange-2);
}

.mini-review h3 {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.mini-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-data span {
  padding: 8px;
  border-radius: 8px;
  background: #f7f9fd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* 資格カテゴリ一覧 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 20px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(26, 46, 110, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: #cdd8f0;
  box-shadow: var(--shadow);
}

.category-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef3ff;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}

.category-card h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 17px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* 体験談カード */
.story-area {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.story-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(26, 46, 110, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.license {
  color: #fff;
  background: var(--navy);
}

.badge.count {
  color: #8a5a00;
  background: var(--orange-2);
}

.story-card h3 {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.meta-item {
  padding: 10px 8px;
  border-radius: 8px;
  background: #f7f9fd;
  text-align: center;
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.meta-item strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
}

.materials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.material {
  padding: 5px 9px;
  border-radius: 8px;
  color: #344054;
  background: #f1f4f9;
  font-size: 12px;
  font-weight: 700;
}

.read-link {
  color: var(--navy);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-link:hover {
  color: var(--orange);
}

/* 資格TOPページ 統計エリア */
.license-top {
  background: linear-gradient(180deg, #f6f8fc 0%, #ffffff 100%);
}

.license-layout {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 28px;
  align-items: start;
}

.license-intro {
  padding: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  min-height: 100%;
}

.license-intro h2 {
  color: #fff;
}

.license-intro p {
  color: rgba(255, 255, 255, .78);
  margin-bottom: 22px;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  font-size: 12px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 22px 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(26, 46, 110, .05);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-card strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
}

.stat-card small {
  color: var(--muted);
  font-weight: 700;
}

/* 資格TOPページ 試験情報エリア */
.exam-box {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(26, 46, 110, .05);
}

.exam-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line);
}

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

.exam-label {
  padding: 15px 18px;
  color: var(--navy);
  background: #f3f6fc;
  font-weight: 800;
}

.exam-value {
  padding: 15px 18px;
  color: #344054;
  background: #fff;
}

.exam-value a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA */
.cta-section {
  padding: 56px 0;
  background: var(--navy);
  color: #fff;
}

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

.cta-inner h2 {
  color: #fff;
  margin-bottom: 6px;
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(245, 166, 35, .24);
  transition: transform .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(245, 166, 35, .30);
}

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(245, 166, 35, .34);
}

/* フッター */
.footer {
  padding: 34px 0;
  background: #0f1f52;
  color: #fff;
}

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

.footer-brand {
  font-weight: 800;
  font-size: 18px;
}

.footer-copy {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover {
  color: #fff;
}

/* 絞り込みUI */
.filter-bar {
  padding: 20px 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(26, 46, 110, .05);
  margin-bottom: 28px;
}

.filter-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.filter-group select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.filter-submit {
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease;
  align-self: flex-end;
}

.filter-submit:hover {
  background: var(--navy-2);
}

.filter-reset {
  align-self: flex-end;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  transition: all .16s ease;
}

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

/* 体験談個別ページ */
.taiken-single {
  max-width: 840px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.taiken-header {
  margin-bottom: 32px;
}

.taiken-header .badge-row {
  margin-bottom: 16px;
}

.taiken-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 24px;
}

.taiken-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}

.taiken-meta-item {
  text-align: center;
}

.taiken-meta-item span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 4px;
}

.taiken-meta-item strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.taiken-materials {
  padding: 20px 24px;
  border-radius: 8px;
  background: var(--orange-2);
  border: 1px solid #f0d9a0;
  margin-bottom: 32px;
}

.taiken-materials h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #7a4f00;
}

.taiken-section {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.taiken-section h3 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.taiken-section p {
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
  margin-bottom: 0;
}

.share-buttons {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: #000;
  transition: opacity .16s ease;
}

.share-button:hover {
  opacity: .85;
  color: #fff;
}

/* 投稿フォームページ */
.form-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.form-page h1 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--navy);
  margin-bottom: 8px;
}

.form-page .lead {
  margin-bottom: 32px;
}

.form-page .wpforms-container {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  border: 1px solid var(--line);
}

/* 資格TOP ヒーロー */
.shikaku-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 56px 0;
}

.shikaku-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 8px;
}

.shikaku-hero .lead {
  color: rgba(255,255,255,.78);
  font-size: 16px;
  margin-bottom: 0;
}

/* 結果件数表示 */
.result-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 20px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .menu-button {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.menu-open .global-nav {
    display: flex;
  }

  .global-nav a {
    padding: 13px 12px;
    border-radius: 8px;
  }

  .global-nav a:hover {
    background: #f6f8fc;
  }

  .nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 46px 0;
    gap: 28px;
  }

  .hero-panel {
    padding: 18px;
  }

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

  .story-list,
  .license-layout {
    grid-template-columns: 1fr;
  }

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

  .cta-inner,
  .footer-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .taiken-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-bar form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 46px 0;
  }

  .header-inner {
    height: 64px;
  }

  .global-nav {
    top: 64px;
  }

  .logo-img {
    height: 30px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    min-height: 48px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-stat {
    min-width: 0;
    padding: 12px 10px;
  }

  .hero-stat strong {
    font-size: 20px;
  }

  .category-card {
    display: block;
    min-height: 124px;
    padding: 16px;
  }

  .category-icon {
    margin-bottom: 12px;
  }

  .story-card {
    padding: 18px;
  }

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

  .mini-data {
    grid-template-columns: 1fr;
  }

  .exam-row {
    grid-template-columns: 1fr;
  }

  .exam-label {
    padding-bottom: 6px;
  }

  .exam-value {
    padding-top: 8px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .floating-cta {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  body {
    padding-bottom: 72px;
  }

  .taiken-meta {
    grid-template-columns: 1fr 1fr;
  }
}
