/*
Theme Name: 福業パスポート・ミニマル
Author: 自動化アフィリエイト
Version: 1.3
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Zen+Kaku+Gothic+New:wght@400;700;900&display=swap');

:root {
  --bg-color: #EAEAEA; /* セメント系グレー */
  --text-color: #1F1F1F;
  --accent-color: #1100FF; /* 鮮やかな青 */
  --border-color: rgba(31, 31, 31, 0.25);
  --border-light: rgba(31, 31, 31, 0.1);
  --font-japanese: 'Zen Kaku Gothic New', sans-serif;
  --font-english: 'Space Grotesk', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-japanese);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
.num-label {
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-color);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* Layout Grid Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
}

@media (max-width: 767px) {
  .container {
    padding: 0 20px;
  }
}

/* Technical Marks (十字アンカーなど) */
.mark-cross {
  position: absolute;
  width: 9px;
  height: 9px;
  color: var(--border-color);
  pointer-events: none;
}
.mark-cross::before, .mark-cross::after {
  content: '';
  position: absolute;
  background-color: currentColor;
}
.mark-cross::before {
  top: 4px;
  left: 0;
  width: 9px;
  height: 1px;
}
.mark-cross::after {
  top: 0;
  left: 4px;
  width: 1px;
  height: 9px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  position: relative;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-color);
  text-decoration: none;
}

.site-logo span {
  color: var(--accent-color);
}

/* Header Info label */
.header-info {
  font-family: var(--font-english);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(31, 31, 31, 0.5);
  text-transform: uppercase;
}

/* Hero Section */
.hero-section {
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.hero-main h1 {
  font-size: clamp(36px, 5.5vw, 54px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 20px 0;
  letter-spacing: -0.04em;
  color: var(--bg-color);
  -webkit-text-stroke: 0.8px var(--text-color);
  text-shadow: 2px 2px 0px var(--text-color);
}

.nowrap {
  white-space: nowrap;
}

.br-sp {
  display: none;
}

@media (max-width: 767px) {
  .br-sp {
    display: inline;
  }
}

.hero-main p.lead {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero-main p.sub {
  font-size: 14px;
  color: rgba(31, 31, 31, 0.85);
  margin: 0;
  max-width: 620px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  font-family: var(--font-japanese);
  border-radius: 0 !important; /* 角丸禁止 */
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color) !important;
  border: 1px solid var(--text-color);
}

.btn-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #FFF !important;
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: var(--text-color) !important;
  background-color: transparent;
}

.btn-secondary:hover {
  border-color: var(--text-color);
  background-color: rgba(31, 31, 31, 0.05);
}

/* Hero Blueprint Diagram */
.hero-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.hero-main {
  position: relative;
  z-index: 3;
}

@media (max-width: 991px) {
  .hero-layout {
    position: relative;
  }
  .hero-diagram {
    display: flex; /* 非表示を解除 */
    position: absolute;
    right: -120px; /* 右側にはみ出させる */
    top: -70px; /* さらに大幅に上部（画面最上部・タイトル真横）へ移動 */
    width: 300px;
    height: auto;
    opacity: 0.35; /* テキスト可読性を妨げないように薄く */
    pointer-events: none; /* クリック操作を妨げない */
    z-index: 1;
  }
  .hero-diagram svg {
    max-width: 100% !important;
    width: 100% !important;
    transform: none !important;
  }
}

.hero-diagram svg {
  max-width: 440px; /* 280pxから大幅拡大 */
  width: 130%; /* コンテナからはみ出すくらいダイナミックに表示 */
  height: auto;
  color: var(--text-color);
  transform: translateX(20px) rotate(1deg); /* 位置を少しずらして動きをつける */
  transform-origin: center;
}

/* 3-Way Navigation Cards */
.nav-cards-section {
  border-bottom: 1px solid var(--border-color);
  padding: 0;
}

.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 767px) {
  .nav-cards-grid {
    grid-template-columns: 1fr;
  }
}

.nav-card {
  border-right: 1px solid var(--border-color);
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  text-decoration: none;
  color: var(--text-color);
  transition: background-color 0.15s ease, border-top-color 0.15s ease;
  border-top: 3px solid transparent;
  border-radius: 0 !important;
  position: relative;
}

.nav-card:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .nav-card {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    min-height: 160px;
  }
  .nav-card:last-child {
    border-bottom: none;
  }
}

.nav-card:hover {
  background-color: rgba(17, 0, 255, 0.02);
  border-top-color: var(--accent-color);
}

.nav-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.nav-card-arrow {
  font-family: var(--font-english);
  font-size: 20px;
  color: var(--accent-color);
  align-self: flex-end;
  transition: transform 0.15s ease;
}

.nav-card:hover .nav-card-arrow {
  transform: translateX(4px);
}

/* Card Technical Annotations */
.card-spec {
  font-family: var(--font-english);
  font-size: 8px;
  color: rgba(31, 31, 31, 0.35);
  letter-spacing: 0.1em;
  position: absolute;
  top: 12px;
  right: 15px;
  text-transform: uppercase;
}

.card-cross-top-left {
  top: 8px;
  left: 8px;
}

/* Article List Section */
.articles-section {
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0;
}

.section-header {
  margin-bottom: 35px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  position: relative;
}

/* Section Header Meta Label */
.section-header-meta {
  font-family: var(--font-english);
  font-size: 8px;
  color: rgba(31, 31, 31, 0.4);
  position: absolute;
  top: -14px;
  left: 0;
  letter-spacing: 0.08em;
}

.section-title {
  font-family: var(--font-english);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-divider {
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
  margin: 0 15px;
}

.section-sub {
  font-family: var(--font-japanese);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(31, 31, 31, 0.5);
}

/* Ruler Scale Decor */
.ruler-scale {
  display: flex;
  justify-content: space-between;
  width: 120px;
  height: 6px;
  margin-bottom: 25px;
  color: var(--border-color);
}
.ruler-scale span {
  width: 1px;
  height: 100%;
  background-color: currentColor;
}
.ruler-scale span:nth-child(5n+1) {
  height: 150%;
  background-color: var(--accent-color);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  padding: 20px;
  background-color: transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  color: var(--text-color);
  border-radius: 0 !important;
  position: relative;
}

.post-card:hover {
  border-color: var(--accent-color);
  background-color: rgba(17, 0, 255, 0.02);
}

.post-card-thumbnail {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  background-color: rgba(31, 31, 31, 0.02);
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.post-card:hover .post-card-thumbnail img {
  filter: grayscale(0%);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-english);
  font-size: 10px;
  font-weight: 600;
  color: rgba(31, 31, 31, 0.6);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.post-category {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.post-excerpt {
  font-size: 12px;
  color: rgba(31, 31, 31, 0.8);
  margin: 0 0 15px 0;
  line-height: 1.5;
  flex-grow: 1;
}

.post-readmore {
  font-family: var(--font-english);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* About Section */
.about-section {
  border-bottom: 1px solid var(--border-color);
  padding: 60px 0;
  position: relative;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

@media (max-width: 767px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.about-title-block {
  position: relative;
}

.about-title-block h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Mini process diagram inside About content */
.process-diagram {
  margin-top: 30px;
  border: 1px dashed var(--border-color);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  font-family: var(--font-english);
  font-size: 9px;
  font-weight: 700;
  color: rgba(31, 31, 31, 0.7);
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.process-step span.dot {
  width: 6px;
  height: 6px;
  background-color: var(--border-color);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.process-step.active span.dot {
  background-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(17, 0, 255, 0.15);
}

.process-step .step-label {
  font-size: 8px;
}

.process-step .step-desc {
  font-family: var(--font-japanese);
  font-size: 8.5px;
  color: rgba(31, 31, 31, 0.5);
  font-weight: 500;
  margin-top: 1px;
}

.process-step.active .step-desc {
  color: var(--accent-color);
  font-weight: 700;
}

.process-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--border-color);
  margin: 0 10px;
  position: relative;
}
.process-line::after {
  content: '>';
  position: absolute;
  right: -2px;
  top: -5px;
  font-size: 7px;
  color: var(--border-color);
}

.about-content-block p {
  font-size: 14px;
  margin: 0 0 15px 0;
  color: rgba(31, 31, 31, 0.9);
  line-height: 1.6;
}

.about-content-block p:last-child {
  margin-bottom: 0;
}

/* Inner Page (Single / Page) Layout */
.inner-page-layout {
  padding: 60px 0;
}

.article-header {
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 25px;
  margin-bottom: 30px;
  position: relative;
}

.article-header h1 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.article-meta {
  font-family: var(--font-english);
  font-size: 11px;
  color: rgba(31, 31, 31, 0.6);
  display: flex;
  gap: 15px;
}

.entry-content {
  font-size: 15px;
  line-height: 1.7;
  max-width: 760px;
}

.entry-content p {
  margin: 0 0 20px 0;
}

.entry-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 15px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  letter-spacing: -0.01em;
}

.entry-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 30px 0 12px 0;
  letter-spacing: -0.01em;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.footer-brand .footer-logo {
  font-family: var(--font-english);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-color);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-brand .footer-logo span {
  color: var(--accent-color);
}

.footer-brand p {
  font-size: 11px;
  color: rgba(31, 31, 31, 0.7);
  margin: 0;
  max-width: 460px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

@media (max-width: 767px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
  }
}

.footer-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--accent-color);
}

/* Barcode Decor */
.footer-barcode-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 25px;
}

.barcode {
  display: flex;
  gap: 2px;
  height: 35px; /* 高さを 20px から 35px に拡大 */
  align-items: flex-end;
}
.barcode span {
  background-color: var(--text-color);
  width: 1.5px; /* 太さを 1px から 1.5px に拡大 */
  height: 100%;
}
.barcode span.thick {
  width: 5px; /* 太く */
}
.barcode span.medium {
  width: 3px; /* 中くらい */
}

.barcode-num {
  font-family: var(--font-english);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(31, 31, 31, 0.6);
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-english);
  font-size: 10px;
  color: rgba(31, 31, 31, 0.5);
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

@media (max-width: 767px) {
  .footer-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ==========================================
   Single Post Specific Styles
   ========================================== */
body.single, body.page {
  counter-reset: h2-counter;
}

.single-article-layout {
  padding: 60px 0;
  max-width: 860px;
  margin: 0 auto;
}

.single-article-layout .article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 25px;
  margin-bottom: 35px;
  position: relative;
}

.single-article-layout .article-meta-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 700;
  color: rgba(31, 31, 31, 0.6);
  letter-spacing: 0.05em;
}

.single-article-layout .article-meta-area .post-category {
  color: var(--accent-color);
  text-transform: uppercase;
}

.single-article-layout .article-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.post-thumbnail-wrap {
  border: 1px solid var(--border-color);
  padding: 10px;
  background-color: rgba(31, 31, 31, 0.02);
  margin-bottom: 40px;
}

.post-thumbnail-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-content {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-color);
}

.entry-content p {
  margin: 0 0 24px 0;
}

/* Heading Auto Numbering (マニュアル調 / チェックポイント風) */
.entry-content h2 {
  counter-increment: h2-counter;
  counter-reset: h3-counter;
  font-size: 20px;
  font-weight: 700;
  margin: 60px 0 25px 0;
  border-bottom: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color); /* チェックポイント風の青い縦線 */
  padding: 0 0 8px 12px;
  letter-spacing: -0.01em;
}

.entry-content h2::before {
  content: "SEC " counter(h2-counter, decimal-leading-zero) " // ";
  font-family: var(--font-english);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

.entry-content h3 {
  counter-increment: h3-counter;
  font-size: 17px;
  font-weight: 700;
  margin: 45px 0 20px 0;
  letter-spacing: -0.01em;
  padding-left: 12px;
}

.entry-content h3::before {
  content: counter(h2-counter) "." counter(h3-counter) " / ";
  font-family: var(--font-english);
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
}

/* 本文内リンク (アンダーライン制御) */
.entry-content a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent-color);
  font-weight: 700;
  transition: border-bottom-width 0.15s ease;
}

.entry-content a:hover {
  border-bottom-width: 3px;
}

/* 引用 (blockquote) */
.entry-content blockquote {
  margin: 30px 0;
  padding: 20px 25px;
  background-color: rgba(31, 31, 31, 0.03);
  border-left: 3px solid var(--accent-color);
  font-family: var(--font-japanese);
  font-size: 14px;
  color: rgba(31, 31, 31, 0.85);
}

.entry-content blockquote p {
  margin: 0;
}

/* リスト (丸ぽっちを禁止し四角形インジケーターへ) */
.entry-content ul {
  list-style: none;
  padding-left: 18px;
  margin: 0 0 24px 0;
}

.entry-content ul li {
  position: relative;
  margin-bottom: 8px;
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 9px;
  width: 5px;
  height: 5px;
  background-color: var(--accent-color);
}

.entry-content ol {
  padding-left: 22px;
  margin: 0 0 24px 0;
}

.entry-content ol li {
  margin-bottom: 8px;
}

/* 強調 (アンダーライン風) */
.entry-content strong {
  font-weight: 700;
  background: linear-gradient(transparent 70%, rgba(17, 0, 255, 0.08) 70%);
}

/* テーブル (表) */
.entry-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 35px 0;
  font-size: 14px;
}

.entry-content th, .entry-content td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
}

.entry-content th {
  background-color: rgba(31, 31, 31, 0.05);
  font-weight: 700;
}

.entry-content tr:nth-child(even) {
  background-color: rgba(31, 31, 31, 0.01);
}

/* 画像 */
.entry-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  padding: 8px;
  background-color: rgba(31, 31, 31, 0.01);
  margin: 20px 0;
}

/* Post Navigation (マニュアル前後ページリンク) */
.post-navigation-container {
  margin-top: 60px;
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 767px) {
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.post-navigation a {
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.15s ease;
  position: relative;
}

.post-navigation a:hover {
  border-color: var(--accent-color);
  background-color: rgba(17, 0, 255, 0.02);
}

.nav-label {
  font-family: var(--font-english);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.nav-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-navigation .nav-next {
  text-align: right;
  align-items: flex-end;
}

/* アーカイブ（一覧）に戻るボタン */
.archive-return-container {
  margin-top: 30px;
  text-align: center;
}

.btn-archive-return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  padding: 14px 30px;
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.15s ease;
}

.btn-archive-return:hover {
  border-color: var(--accent-color);
  background-color: rgba(17, 0, 255, 0.02);
  color: var(--accent-color);
}

/* ==========================================
   Blueprint Symbol Slide-in Animations
   ========================================== */
@keyframes ticketSlideInPC {
  from { transform: translateX(150px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes ticketSlideInSP {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 0.35; }
}

@keyframes crossSlideLeft {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes crossSlideRight {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scaleSlideLeft {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes processSlideLeft {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes barcodeSlideRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Apply Animations (Initial states set to opacity: 0, triggered by JS class is-visible) */
.hero-diagram {
  opacity: 0;
}
.hero-diagram.is-visible {
  animation: ticketSlideInPC 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

@media (max-width: 991px) {
  .hero-diagram.is-visible {
    animation: ticketSlideInSP 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
  }
}

.mark-cross {
  opacity: 0;
}

/* 左端に近い十字マーク */
.mark-cross[style*="left"].is-visible,
.card-cross-top-left.is-visible {
  animation: crossSlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

/* 右端に近い十字マーク */
.mark-cross[style*="right"].is-visible {
  animation: crossSlideRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

.ruler-scale {
  opacity: 0;
}
.ruler-scale.is-visible {
  animation: scaleSlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.4s;
}

.process-diagram {
  opacity: 0;
}
.process-diagram.is-visible {
  animation: processSlideLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}

.footer-barcode-container {
  opacity: 0;
}
.footer-barcode-container.is-visible {
  animation: barcodeSlideRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}

/* ==========================================
   Archive & Category Page Styles
   ========================================== */
.archive-layout {
  padding: 60px 0;
}

.archive-header-desc {
  margin-top: 20px;
  padding: 15px 20px;
  background-color: rgba(31, 31, 31, 0.02);
  border-left: 2px solid var(--accent-color);
  font-size: 13px;
  color: rgba(31, 31, 31, 0.85);
  max-width: 800px;
}

.archive-header-desc p {
  margin: 0;
}

/* Technical Index Pagination */
.pagination {
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.pagination .screen-reader-text {
  display: none;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-english);
  font-size: 11px;
  font-weight: 700;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.15s ease;
}

.pagination .page-numbers:hover {
  border-color: var(--accent-color);
  background-color: rgba(17, 0, 255, 0.02);
  color: var(--accent-color);
}

.pagination .page-numbers.current {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--bg-color);
}

.pagination .page-numbers.dots {
  border-color: transparent;
  background-color: transparent;
  cursor: default;
  color: rgba(31, 31, 31, 0.4);
}

/* ==========================================
   Diagnosis Page Styles
   ========================================== */
.diagnosis-layout {
  padding: 60px 0;
  max-width: 860px;
  margin: 0 auto;
}

.prep-alert-box {
  border: 1px dashed var(--accent-color);
  padding: 25px 30px;
  background-color: rgba(17, 0, 255, 0.02);
  margin-bottom: 45px;
  position: relative;
}

.prep-alert-box .alert-label {
  font-family: var(--font-english);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.15em;
  display: inline-block;
  border: 1px solid var(--accent-color);
  padding: 2px 8px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.prep-alert-box p {
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 12px 0;
  color: var(--text-color);
}

.prep-alert-box p:last-child {
  margin-bottom: 0;
}

.route-section-title {
  font-family: var(--font-english);
  font-size: 10px;
  font-weight: 700;
  color: rgba(31, 31, 31, 0.5);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

@media (max-width: 767px) {
  .route-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.route-card {
  border: 1px solid var(--border-color);
  padding: 25px;
  position: relative;
  background-color: rgba(31, 31, 31, 0.01);
}

.route-card .route-num {
  font-family: var(--font-english);
  font-size: 8px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.route-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.route-card p {
  font-size: 12.5px;
  color: rgba(31, 31, 31, 0.8);
  line-height: 1.6;
  margin: 0;
}
