/*
Theme Name: Manabiela Lab Block Theme
Theme URI: https://manabielabo.com/
Author: Manabiela Lab
Description: 資格教材の選択を支援する軽量なブロックテーマ。
Version: 0.5.0
Requires at least: 6.6
Text Domain: manabielabo-block-theme
*/

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

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; overflow-wrap: anywhere; }
a { text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #2457a7; outline-offset: 3px; }
.wp-site-blocks { overflow-wrap: anywhere; }
.content-width { width: min(100% - 2rem, 72rem); margin-inline: auto; }

.site-header { border-bottom: 1px solid #d9dee6; }
.site-footer { border-top: 1px solid #d9dee6; }
.hero-panel { border-bottom: 1px solid #d9dee6; }
.section-block { scroll-margin-top: 1rem; }
.section-block > h2,
.format-section h2,
.about-section h2 { margin-top: 0; }
.qualification-query .wp-block-post-template,
.recent-updates-query .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.qualification-index-item,
.recent-update-item { border-bottom: 1px solid #d9dee6; padding: 1rem 0; }
.qualification-index-item .wp-block-post-title,
.recent-update-item .wp-block-post-title { margin: 0; }
.qualification-index-item .wp-block-post-title a,
.recent-update-item .wp-block-post-title a { text-decoration: none; }
.qualification-index-item .wp-block-post-title a:hover,
.recent-update-item .wp-block-post-title a:hover { text-decoration: underline; }
.entry-meta,
.entry-category { color: #5d6672; font-size: .875rem; }
.entry-category a { color: #2457a7; }
.update-labels { margin: 0 0 .2rem; font-size: .72rem; font-weight: 700; color: #2457a7; }
.update-labels a { color: inherit; text-decoration: none; }
.mlab-update-badge { display: inline-block; margin: 0 .3rem .2rem 0; padding: .08rem .4rem; border: 1px solid #2457a7; color: #163e78; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.mlab-update-badge--new { color: #fff; background: #2457a7; }
.mlab-comparison-unavailable { padding: .75rem 1rem; border-inline-start: 3px solid #2457a7; color: #5d6672; }
.empty-state { border-left: 3px solid #2457a7; padding: 1rem 1.25rem; }

.learning-format-table,
.purpose-recommendation-table,
.candidate-comparison-table,
.exam-overview-table { margin-block: 1.25rem; }
.learning-format-table table,
.purpose-recommendation-table table,
.candidate-comparison-table table,
.exam-overview-table table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.7; }
.learning-format-table caption,
.purpose-recommendation-table caption,
.candidate-comparison-table caption,
.exam-overview-table caption { text-align: left; color: #5d6672; font-size: .8rem; }
.learning-format-table th,
.learning-format-table td,
.purpose-recommendation-table th,
.purpose-recommendation-table td,
.candidate-comparison-table th,
.candidate-comparison-table td,
.exam-overview-table th,
.exam-overview-table td { padding: .7rem .65rem; border: 1px solid #d9dee6; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.learning-format-table thead th,
.purpose-recommendation-table thead th,
.candidate-comparison-table thead th { background: #f5f7fa; color: #252b33; font-weight: 700; }
.learning-format-table tbody th,
.exam-overview-table tbody th { background: #fafbfd; font-weight: 700; }
.purpose-recommendation-table th:first-child { width: 20%; }
.purpose-recommendation-table th:nth-child(2) { width: 25%; }
.purpose-recommendation-table th:nth-child(3) { width: 30%; }
.purpose-recommendation-table th:nth-child(4) { width: 25%; }
.candidate-comparison-table th:nth-child(1) { width: 19%; }
.candidate-comparison-table th:nth-child(2) { width: 20%; }
.candidate-comparison-table th:nth-child(3) { width: 14%; }
.candidate-comparison-table th:nth-child(4) { width: 17%; }
.candidate-comparison-table th:nth-child(5) { width: 15%; }
.candidate-comparison-table th:nth-child(6) { width: 15%; }
.table-scroll-note { color: #5d6672; }

.comparison-intro { border-left: 3px solid #2457a7; padding: 1rem 1.25rem; margin-bottom: 2rem; }
.comparison-intro h2 { margin-top: 0; }
.article-section { margin-block: 2.5rem; }
.article-section > h2 { padding-bottom: .55rem; border-bottom: 1px solid #d9dee6; }
.candidate-detail { border-block: 1px solid #d9dee6; padding: 1.25rem; }
.candidate-detail h3 { margin-top: 0; }
.candidate-image-placeholder { aspect-ratio: 3 / 4; max-width: 10rem; min-height: 9rem; display: grid; place-items: center; padding: .75rem; border: 1px dashed #aab6c6; background: #f5f7fa; color: #5d6672; text-align: center; font-size: .8rem; }
.candidate-image-placeholder p { margin: 0; }
.comparison-field-label { margin: 0; color: #163e78; font-weight: 700; }
.pr-disclosure { margin-block: 1.5rem; padding: .85rem 1rem; border-left: 3px solid #9b6c1c; background: #faf7f0; }
.pr-disclosure p { margin-block: .2rem; }
.pr-disclosure strong { color: #62450f; }
.conclusion-card { border-left: 3px solid #2457a7; padding: 1.25rem; }
.faq-item { border-bottom: 1px solid #d9dee6; padding-block: .75rem; }
.faq-item h3 { margin-bottom: .35rem; }
.wp-block-post-template { padding: 0; }
.wp-block-separator { border-color: #d9dee6; }

@media (max-width: 760px) {
  .content-width { width: min(100% - 1.25rem, 72rem); }
  .wp-block-columns { flex-wrap: wrap !important; }
  .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
  .learning-format-table table,
  .purpose-recommendation-table table,
  .candidate-comparison-table table,
  .exam-overview-table table,
  .learning-format-table tbody,
  .purpose-recommendation-table tbody,
  .candidate-comparison-table tbody,
  .exam-overview-table tbody,
  .learning-format-table tr,
  .purpose-recommendation-table tr,
  .candidate-comparison-table tr,
  .exam-overview-table tr,
  .learning-format-table th,
  .learning-format-table td,
  .purpose-recommendation-table th,
  .purpose-recommendation-table td,
  .candidate-comparison-table th,
  .candidate-comparison-table td,
  .exam-overview-table th,
  .exam-overview-table td { display: block; width: 100%; }
  .learning-format-table thead,
  .purpose-recommendation-table thead,
  .candidate-comparison-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .learning-format-table tbody tr,
  .purpose-recommendation-table tbody tr,
  .candidate-comparison-table tbody tr,
  .exam-overview-table tbody tr { margin-block: .65rem; border: 1px solid #d9dee6; background: #fff; }
  .learning-format-table tbody th,
  .purpose-recommendation-table tbody td:first-child,
  .candidate-comparison-table tbody th,
  .exam-overview-table tbody th { border: 0; border-bottom: 1px solid #d9dee6; background: #f5f7fa; color: #163e78; font-weight: 700; }
  .learning-format-table td,
  .purpose-recommendation-table td,
  .candidate-comparison-table td,
  .exam-overview-table td { border: 0; border-top: 1px dotted #d9dee6; padding: .5rem .7rem; }
  .learning-format-table td::before,
  .purpose-recommendation-table td::before,
  .candidate-comparison-table td::before,
  .exam-overview-table td::before { display: block; margin-bottom: .1rem; color: #5d6672; font-size: .7rem; font-weight: 700; }
  .learning-format-table td:nth-child(1)::before { content: "学び方"; }
  .learning-format-table td:nth-child(2)::before { content: "選ぶ前に確認"; }
  .purpose-recommendation-table td:nth-child(1)::before { content: "目的"; }
  .purpose-recommendation-table td:nth-child(2)::before { content: "教材・講座候補"; }
  .purpose-recommendation-table td:nth-child(3)::before { content: "選ぶ根拠"; }
  .purpose-recommendation-table td:nth-child(4)::before { content: "注意点"; }
  .candidate-comparison-table td:nth-child(1)::before { content: "試験対応・版／内容差"; }
  .candidate-comparison-table td:nth-child(2)::before { content: "演習・解説"; }
  .candidate-comparison-table td:nth-child(3)::before { content: "費用・利用条件"; }
  .candidate-comparison-table td:nth-child(4)::before { content: "向いている人"; }
  .candidate-comparison-table td:nth-child(5)::before { content: "注意点"; }
  .exam-overview-table td::before { content: none; }
  .table-scroll-note { display: none; }
}

@media (max-width: 420px) {
  .hero-panel { padding-block: 2rem !important; }
  .candidate-detail { padding: 1rem .75rem; }
  .candidate-image-placeholder { max-width: 8rem; min-height: 7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
