@charset "utf-8";

/* 共通 */
html { scroll-behavior: smooth; }

:root {
  --card-head: #e7edf2;
  --card-line: #d7dfe4;
}

/* 候補問題一覧（index.html） */
body.skills-index-page .breadcrumb .breadcrumb-current { margin: 0; }

/* 候補問題ページ：パンくずの現在ページ名には左右余白を付けない */
body.skills-problem-page .breadcrumb > span:last-child { margin-left: 0; margin-right: 0; }

body.skills-index-page .article-header {
  position: relative;
  margin-bottom: 25px;
  padding-left: 28px;
}
body.skills-index-page .article-header::before {
  position: absolute;
  top: 6px;
  bottom: 5px;
  left: 0;
  width: 8px;
  background: var(--vessel-red);
  content: "";
}
body.skills-index-page .article-kicker { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.5; }
body.skills-index-page .article-header h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.5; }
body.skills-index-page .intro-text { margin: 0 0 52px; font-size: 15px; font-weight: 400; }

body.skills-index-page .problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 25px;
}
body.skills-index-page .problem-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  color: var(--text);
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}
body.skills-index-page .problem-card:hover { opacity: .85; transform: translateY(-2px); }
body.skills-index-page .problem-card h2 {
  margin: 0;
  padding: 8px 12px;
  background: var(--card-head);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}
body.skills-index-page .problem-card img {
  display: block;
  width: calc(100% - 30px);
  height: 185px;
  margin: 15px auto 0;
  background: #eef2f6;
  object-fit: cover;
  object-position: center;
}
body.skills-index-page .problem-card p {
  min-height: 63px;
  margin: 0;
  padding: 16px 16px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
}

/* 候補問題詳細（no01.html～no13.html） */
body.skills-problem-page .article-header {
  position: relative;
  margin-bottom: 30px;
  padding-left: 28px;
}
body.skills-problem-page .article-header::before,
body.skills-problem-page .section-title::before {
  position: absolute;
  top: .2em;
  bottom: .12em;
  left: 0;
  width: 8px;
  background: var(--vessel-red);
  content: "";
}
body.skills-problem-page .article-kicker { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.5; }
body.skills-problem-page .article-header h1 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.5; }
body.skills-problem-page .article-supervisor,
body.skills-problem-page .article-updated { color: #666; font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.5; }
body.skills-problem-page .article-supervisor { margin: 4px 0 0; }
body.skills-problem-page .article-updated { margin: 1px 0 0; }

body.skills-problem-page .intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48%;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  background: var(--muted);
}
body.skills-problem-page .intro-copy h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
body.skills-problem-page .intro-copy p { margin: 0; font-size: 12px; line-height: 1.65; }
body.skills-problem-page .video-thumb { position: relative; display: block; min-height: 170px; overflow: hidden; background: #dce2e8; }
body.skills-problem-page .video-thumb img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
body.skills-problem-page .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(0,0,0,.78);
  transform: translate(-50%, -50%);
}
body.skills-problem-page .play-icon::after {
  position: absolute;
  top: 11px;
  left: 17px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  content: "";
}
body.skills-problem-page .lead-copy { margin: 28px 0 70px; font-size: 15px; font-weight: 400; }

body.skills-problem-page .article-section { margin-bottom: 70px; }
body.skills-problem-page #exam-flow { margin-top: -25px; }
body.skills-problem-page .section-title {
  position: relative;
  margin: 0 0 35px;
  padding: 0 0 15px 22px;
  border-bottom: 2px solid var(--vessel-red);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}
body.skills-problem-page .section-title::before { top: .15em; bottom: 18px; width: 6px; }
body.skills-problem-page .article-section p { margin: 0 0 20px; font-size: 15px; font-weight: 400; }

body.skills-problem-page .diagram-card { margin: 0 0 24px; padding: 0; background: #fff; text-align: center; }
body.skills-problem-page .diagram-card img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; mix-blend-mode: normal; background: #fff; cursor: pointer; transition: opacity .2s ease; }
body.skills-problem-page .diagram-card img:hover,
body.skills-problem-page .diagram-card img:focus { opacity: .7; }
body.skills-problem-page .diagram-card img:focus-visible { outline: 3px solid var(--vessel-red); outline-offset: 3px; }
body.skills-problem-page .diagram-modal { width: min(96vw, 1440px); max-width: none; max-height: 94vh; margin: auto; padding: 12px 12px 34px; border: 0; border-radius: 7px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
body.skills-problem-page .diagram-modal::backdrop { background: rgba(0,0,0,.86); }
body.skills-problem-page .diagram-modal__image { display: block; width: 100%; max-height: calc(94vh - 58px); object-fit: contain; background: #fff; }
body.skills-problem-page .diagram-modal__close { position: absolute; right: 13px; bottom: 9px; padding: 0; border: 0; background: transparent; color: #333; font: 400 12px/1.2 Arial, sans-serif; cursor: pointer; }
body.skills-problem-page .diagram-modal__close:hover,
body.skills-problem-page .diagram-modal__close:focus-visible { color: var(--vessel-red); text-decoration: underline; }

body.skills-problem-page .flow-list { margin: 0; padding: 24px 26px; background: var(--muted); list-style: none; }
body.skills-problem-page .flow-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-bottom: 18px; }
body.skills-problem-page .flow-list li:last-child { margin-bottom: 0; }
body.skills-problem-page .flow-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--vessel-red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
body.skills-problem-page .flow-list h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
body.skills-problem-page .flow-list p { margin: 0; font-size: 12px; line-height: 1.65; }

body.skills-problem-page .note-box { background: var(--muted); }
body.skills-problem-page .info-table-wrap { width: 100%; margin: 0 0 20px; overflow-x: auto; }
body.skills-problem-page .info-table { width: 100%; border-collapse: collapse; table-layout: fixed; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; font-size: 13px; line-height: 1.7; }
body.skills-problem-page .info-table th,
body.skills-problem-page .info-table td { width: 33.333%; padding: 12px 14px; border-top: 1px solid #ccc; border-left: 1px solid #ccc; text-align: left; vertical-align: top; }
body.skills-problem-page .info-table th { background: #e8e8e8; font-weight: 600; }
body.skills-problem-page .info-table td { background: #fff; }
body.skills-problem-page .info-table--connection th:nth-child(1),
body.skills-problem-page .info-table--connection td:nth-child(1) { width: 23%; }
body.skills-problem-page .info-table--connection th:nth-child(2),
body.skills-problem-page .info-table--connection td:nth-child(2) { width: 31%; }
body.skills-problem-page .info-table--connection th:nth-child(3),
body.skills-problem-page .info-table--connection td:nth-child(3) { width: 24%; }
body.skills-problem-page .info-table--connection th:nth-child(4),
body.skills-problem-page .info-table--connection td:nth-child(4) { width: 22%; }
body.skills-problem-page .work-step { margin: 0 0 50px; }
body.skills-problem-page .step-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
body.skills-problem-page .step-heading span { flex: none; padding: 5px 14px; background: var(--vessel-red); color: #fff; font-size: 13px; }
body.skills-problem-page .step-heading h3 { margin: 0; font-size: 17px; font-weight: 600; }
body.skills-problem-page .step-image { display: block; width: 70%; margin: 0 auto 18px; background: #eef2f6; }
body.skills-problem-page .work-step p { font-size: 13px; line-height: 1.75; }
body.skills-problem-page .note-box { margin: 17px 0 0; padding: 14px 18px; font-size: 15px; font-weight: 400; line-height: 1.65; }
body.skills-problem-page .note-check-icon {
  display: block;
  width: 80px;
  height: auto;
  margin: 0;
}
body.skills-problem-page .completed-image { display: block; width: 100%; background: #edf2f6; }
body.skills-problem-page .product-cta { display: none; }

body.skills-problem-page .video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}
body.skills-problem-page .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.skills-problem-page .pre-exam-check {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-left: 5px solid var(--vessel-red);
  background: #fff4f4;
}
body.skills-problem-page .pre-exam-check strong { display: block; margin-bottom: 6px; }
body.skills-problem-page .pre-exam-check p { margin: 0; }
body.skills-problem-page .condition-note {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border: 1px solid #d5dbe1;
  background: #f7f9fb;
  font-size: 13px;
  line-height: 1.7;
}
body.skills-problem-page .lead-heading { margin: 0 0 10px; font-size: 18px; }
body.skills-problem-page .lead-heading + .lead-copy { margin: 0 0 16px; }
body.skills-problem-page .article-meta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #d8dde3;
  font-size: 13px;
  line-height: 1.8;
}
body.skills-problem-page .article-meta p { margin: 0; }
body.skills-problem-page .source-note { font-size: 13px; line-height: 1.7; }

@media (max-width: 768px) {
  body.skills-index-page .article-header { margin-bottom: 20px; padding-left: 20px; }
  body.skills-index-page .article-header::before { width: 5px; }
  body.skills-index-page .article-kicker { font-size: 14px; }
  body.skills-index-page .article-header h1 { font-size: 24px; }
  body.skills-index-page .intro-text { margin-bottom: 30px; font-size: 14px; }
  body.skills-index-page .intro-text br { display: none; }
  body.skills-index-page .problem-grid { grid-template-columns: 1fr; gap: 18px; }
  body.skills-index-page .problem-card h2 { font-size: 18px; }
  body.skills-index-page .problem-card img { height: auto; object-fit: contain; }
  body.skills-index-page .problem-card p { min-height: 0; font-size: 15px; }

  body.skills-problem-page .article-header { margin-bottom: 24px; padding-left: 20px; }
  body.skills-problem-page .article-header::before,
  body.skills-problem-page .section-title::before { width: 5px; }
  body.skills-problem-page .article-kicker { font-size: 14px; }
  body.skills-problem-page .article-header h1 { font-size: 24px; }
  body.skills-problem-page .article-supervisor { margin-top: 3px; font-size: 13px; }
  body.skills-problem-page .intro-panel { grid-template-columns: 1fr; padding: 18px; }
  body.skills-problem-page .video-thumb { min-height: 0; aspect-ratio: 16 / 9; }
  body.skills-problem-page .lead-copy { margin-bottom: 42px; }
  body.skills-problem-page .article-section { margin-bottom: 50px; }
  body.skills-problem-page #exam-flow { margin-top: -15px; }
  body.skills-problem-page .section-title { margin-bottom: 20px; padding: 0 0 10px 17px; font-size: 18px; }
  body.skills-problem-page .section-title::before { bottom: 12px; }
  body.skills-problem-page .diagram-card { padding: 0; }
  body.skills-problem-page .diagram-modal { width: 96vw; padding: 8px 8px 30px; }
  body.skills-problem-page .diagram-modal__image { max-height: calc(94vh - 46px); }
  body.skills-problem-page .flow-list { padding: 20px 16px; }
  body.skills-problem-page .flow-list li { grid-template-columns: 32px 1fr; gap: 9px; }
  body.skills-problem-page .flow-number { width: 28px; height: 28px; font-size: 14px; }
  body.skills-problem-page .flow-list h3 { font-size: 14px; }
  body.skills-problem-page .info-table { min-width: 720px; }
  body.skills-problem-page .step-heading { align-items: flex-start; gap: 10px; }
  body.skills-problem-page .step-heading span { padding: 4px 10px; font-size: 11px; }
  body.skills-problem-page .step-heading h3 { font-size: 15px; }
  body.skills-problem-page .step-image { width: 100%; }
  body.skills-problem-page .product-cta { display: grid; gap: 18px; margin: 25px 0 55px; text-align: center; }
  body.skills-problem-page .product-cta p { margin-bottom: 10px; font-size: 13px; }
  body.skills-problem-page .product-cta strong { font-size: 20px; font-weight: 500; }
  body.skills-problem-page .product-cta img { width: 100%; }
  body.skills-problem-page .product-cta a {
    display: block;
    padding: 14px;
    border-radius: 6px;
    background: var(--vessel-red);
    color: #fff;
    font-size: 17px;
    text-decoration: none;
  }
  body.skills-problem-page .side-promotion { display: none; }
  body.skills-problem-page .side-column { margin-top: 20px; }
}
