@charset "UTF-8";
/* base
------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; background-color: #FFFFFF; overflow-x: hidden; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
html { overflow-x: hidden; scroll-behavior: smooth; font-family: 'Noto Sans JP', sans-serif; color: #1F2937; }
h1, h2, h3, h4, h5, h6, .font-heading { font-family: 'Montserrat', 'Noto Sans JP', sans-serif; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInLeft { from { transform: translateX(-30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.animate-fadeIn { animation: fadeIn 0.8s ease-out forwards; }
.animate-slideInUp { animation: slideInUp 0.8s ease-out forwards; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease-out forwards; }
.animate-slideInRight { animation: slideInRight 0.8s ease-out forwards; }
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

.section-title-wrapper { position: relative; display: inline-block; margin-bottom: 3rem; }
.section-title-wrapper::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 40px; height: 3px; background-color: #00AEEF; }
.section-title-wrapper.center::after { left: 50%; transform: translateX(-50%); }
.glass-card { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.text-shadow-lg { text-shadow: 2px 4px 8px rgba(0,0,0,0.5); }
.text-shadow-md { text-shadow: 1px 2px 4px rgba(0,0,0,0.5); }

/* 記事本文（single.php）
------------------------------------------------------------*/
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

/* 段落 */
.article-body p {
  margin-top: 0;
  margin-bottom: 1.5em;
}
.article-body p:last-child {
  margin-bottom: 0;
}

/* 見出し */
.article-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-left: 0.75em;
  border-left: 4px solid #0056b3;
  line-height: 1.4;
}
.article-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}
.article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* 画像 */
.article-body figure.wp-block-image {
  margin: 2em 0;
}
.article-body figure.wp-block-image img {
  width: 100%;
  height: auto;
}
.article-body figure.wp-block-image figcaption {
  margin-top: 0.5em;
  font-size: 0.8125rem;
  color: #9CA3AF;
  text-align: center;
}

/* 動画（YouTube等埋め込み） */
.article-body figure.wp-block-embed {
  margin: 2em 0;
}
.article-body .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
}
.article-body .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 固定ページ本文
------------------------------------------------------------*/
.page-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.page-body p {
  margin-top: 0;
  margin-bottom: 1.5em;
}
.page-body p:last-child {
  margin-bottom: 0;
}

.page-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}
.page-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2937;
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}
.page-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.page-body ul,
.page-body ol {
  margin: 0 0 1.5em 1.5em;
  padding: 0;
}
.page-body ul {
  list-style-type: disc;
}
.page-body ol {
  list-style-type: decimal;
}
.page-body li {
  margin-bottom: 0.4em;
}

/* リンク */
.page-body a {
  color: #0284C7;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.page-body a:hover {
  color: #0056b3;
}

/* テーブル */
.page-body .wp-block-table {
  margin: 2em 0;
  overflow-x: auto;
}
.page-body .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.page-body .wp-block-table td {
  padding: 0.875em 1em;
  border: 1px solid #E5E7EB;
  vertical-align: top;
  line-height: 1.7;
}
.page-body .wp-block-table tr:first-child td {
  background-color: #0056b3;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
}
.page-body .wp-block-table td:first-child {
  width: 40%;
}
.page-body .wp-block-table tr:not(:first-child) td:first-child {
  background-color: #F1F5F9;
  font-weight: 700;
}
.page-body .wp-block-table tr:not(:first-child) td:last-child {
  background-color: #ffffff;
}
.page-body .wp-block-table tr:not(:first-child):nth-child(even) td:last-child {
  background-color: #FAFAFA;
}

/* 区切り線 */
.page-body hr,
.page-body .wp-block-separator {
  border: none;
  border-top: 1px solid #F3F4F6;
  margin: 2em 0;
}

.page-body figure.wp-block-image {
  margin: 2em 0;
}
.page-body figure.wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
.page-body figure.wp-block-image figcaption {
  margin-top: 0.5em;
  font-size: 0.8125rem;
  color: #9CA3AF;
  text-align: center;
}

/* ページネーション
------------------------------------------------------------*/
.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4B5563;
  background-color: #ffffff;
  border: 1px solid #E5E7EB;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.navigation.pagination .page-numbers:hover {
  background-color: #EFF6FF;
  color: #0056b3;
  border-color: #BFDBFE;
}

.navigation.pagination .page-numbers.current {
  background-color: #0056b3;
  color: #ffffff;
  border-color: #0056b3;
}

.navigation.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #9CA3AF;
  cursor: default;
}

.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers {
  color: #0056b3;
  border-color: #BFDBFE;
  background-color: #EFF6FF;
}

.navigation.pagination .prev.page-numbers:hover,
.navigation.pagination .next.page-numbers:hover {
  background-color: #0056b3;
  color: #ffffff;
  border-color: #0056b3;
}

@media (max-width: 767px) {
  .page-body .wp-block-table table {
    font-size: 0.875rem;
  }
}

@media (max-width: 1023px) {
  #main-nav.mobile-open { display: flex !important; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,0.12); border-top: 1px solid #e5e7eb; gap: 0; }
  #main-nav.mobile-open ul { flex-direction: column; width: 100%; gap: 0; }
  #main-nav.mobile-open ul li a { display: block; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; }
  #main-nav.mobile-open > a { margin-top: 1rem; justify-content: center; width: 100%; }
}
