@charset "utf-8";

/* ============================================
   更請2024 マニュアル専用CSS（水色基調）
   ============================================ */

/* --- リセット・基本設定 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-image: url(../../../images/mv_bg_pc.png);
  background-size: cover;
  background-attachment: fixed;
}

body {
  font-family: "メイリオ", Meiryo, "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
  color: #2c3e50;
}

/* --- ヘッダー --- */
header {
  background: linear-gradient(135deg, #039be5, #29b6f6);
  color: #fff;
  padding: 16px 40px;
  margin-left: 260px;
}

header h1 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

header h1 a {
  color: #fff;
  text-decoration: none;
}

header h1 a:hover {
  text-decoration: underline;
}

/* パンくずリスト */
nav.breadcrumb {
  font-size: 0.85rem;
}

nav.breadcrumb a {
  color: #b3e5fc;
  text-decoration: none;
}

nav.breadcrumb a:hover {
  text-decoration: underline;
}

nav.breadcrumb span.separator {
  margin: 0 6px;
  color: #81d4fa;
}

nav.breadcrumb span.current {
  color: #e1f5fe;
}

/* --- 2カラムレイアウト --- */
.content-wrapper {
  display: block;
  margin-left: 260px;
}

/* --- サイドバー --- */
.sidebar {
  background-image: url(../images/mv_bg_pc.png);
  background-size: cover;
  background-position: center;
  border-right: 1px solid #b3e5fc;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 260px;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.sidebar a.sidebar-version {
  display: block;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(135deg, #039be5, #29b6f6);
  padding: 10px 16px;
  text-decoration: none;
}

.sidebar a.sidebar-version:hover {
  background: linear-gradient(135deg, #0288d1, #039be5);
  color: #fff;
}

/* ロゴリンク（ホームへ） */
.sidebar-nav a.sidebar-home {
  display: block;
  padding: 16px 16px 8px;
  text-align: center;
  border-left: none;
}

.sidebar-nav a.sidebar-home:hover {
  background: transparent;
}

.sidebar-nav a.sidebar-home img {
  max-width: 160px;
  height: auto;
}

.sidebar-nav a.sidebar-toc {
  font-weight: 600;
  color: #fff;
  background: rgba(3, 155, 229, 0.8);
  padding: 10px 16px;
  border-left: none;
}

.sidebar-nav a.sidebar-toc:hover {
  background: rgba(2, 136, 209, 0.9);
  color: #fff;
}

.sidebar-nav .sidebar-section {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0277bd;
  background-color: rgba(225, 245, 254, 0.9);
  padding: 6px 16px;
  margin-top: 4px;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-nav .sidebar-section::after {
  content: "\25B6";
  font-size: 0.55rem;
  transition: transform 0.3s ease;
}

.sidebar-nav .sidebar-section.is-open::after {
  transform: rotate(90deg);
}

.sidebar-nav .sidebar-section:hover {
  background-color: rgba(179, 229, 252, 0.9);
}

.sidebar-links {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-links.is-open {
  max-height: 300px;
}

.sidebar-nav a {
  display: block;
  padding: 6px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  border-left: 3px solid transparent;
  background: rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, border-color 0.2s;
}

.sidebar-nav a:hover {
  background-color: rgba(225, 245, 254, 0.7);
  color: #0288d1;
}

.sidebar-nav a.current {
  background-color: rgba(179, 229, 252, 0.85);
  border-left-color: #039be5;
  color: #0277bd;
  font-weight: 600;
}

/* --- メインコンテンツ --- */
main {
  background: #fff;
  padding: 32px 40px;
  min-height: 60vh;
}

main h2 {
  font-size: 1.5rem;
  color: #0288d1;
  border-bottom: 3px solid #4fc3f7;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

main h3 {
  font-size: 1.15rem;
  color: #0288d1;
  border-left: 4px solid #4fc3f7;
  padding-left: 12px;
  margin: 28px 0 12px;
}

main h4 {
  font-size: 1.05rem;
  color: #0277bd;
  margin: 20px 0 8px;
}

p.description {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* --- スクリーンショット --- */
.screenshot {
  margin: 20px 0;
  text-align: center;
}

.screenshot img {
  max-width: 100%;
  min-width: 600px;
  min-height: 250px;
  border: 1px solid #b3e5fc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.screenshot figcaption {
  font-size: 0.8rem;
  color: #777;
  margin-top: 8px;
}

/* 手順＋画像横並び（細長い画像用） */
.steps-with-image {
  display: inline-flex;
  gap: 24px;
  align-items: flex-start;
  margin: 16px 0 28px;
}

.steps-with-image .steps {
  margin: 0;
}

.screenshot-side {
  flex-shrink: 0;
  width: 250px;
  text-align: center;
}

.screenshot-side img {
  max-width: 100%;
  max-height: 550px;
  min-width: 0;
  min-height: 0;
  border: 1px solid #b3e5fc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.screenshot-side figcaption {
  font-size: 0.8rem;
  color: #777;
  margin-top: 8px;
}

/* スクリーンショット横並び */
.screenshot + .screenshot {
  margin-top: 0;
}

.screenshot-row {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.screenshot-row .screenshot {
  flex: 1;
  margin: 0;
}

/* --- セクション折りたたみ --- */
.section-content {
  position: relative;
}

.section-content.is-collapsible.is-collapsed {
  max-height: 600px;
  overflow: hidden;
}

.section-content.is-collapsible.is-collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}

.section-toggle {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 0 0 24px;
  background: none;
  border: 1px solid #b3e5fc;
  border-radius: 6px;
  color: #0288d1;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.section-toggle:hover {
  background-color: #e1f5fe;
}

/* ステップ内スクリーンショット */
ol.steps .screenshot {
  margin: 12px 0 4px;
}

/* スクリーンショットプレースホルダー（画像未設定時） */
.screenshot-placeholder {
  border: 2px dashed #81d4fa;
  background-color: #e1f5fe;
  padding: 40px 20px;
  text-align: center;
  color: #0288d1;
  margin: 20px 0;
  border-radius: 4px;
}

.screenshot-placeholder p {
  font-size: 0.9rem;
}

/* --- テーブル共通 --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 0.9rem;
}

table th,
table td {
  border: 1px solid #b3e5fc;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

table th {
  background-color: #039be5;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

/* ストライプ背景 */
table tbody tr:nth-child(even) {
  background-color: #e1f5fe;
}

table tbody tr:hover {
  background-color: #b3e5fc;
}

/* 入力項目テーブル */
table.field-table td:nth-child(3):not(:last-child) {
  text-align: center;
  width: 50px;
}

table.field-table td:nth-child(4):not(:last-child) {
  white-space: nowrap;
  width: 100px;
}

/* ボタンテーブル */
table.button-table td:first-child {
  white-space: nowrap;
  width: 160px;
  font-weight: 600;
}

/* --- 操作手順 --- */
ol {
  margin: 12px 0 24px 24px;
}

ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ステッパーレイアウト */
ol.steps {
  list-style: none;
  margin: 16px 0 28px;
  padding: 0;
  counter-reset: step;
}

ol.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  padding-bottom: 24px;
  margin-bottom: 0;
  min-height: 32px;
}

/* 縦線（丸と丸の間だけ） */
ol.steps li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background-color: #039be5;
}

ol.steps li:last-child::before {
  display: none;
}

/* 番号の丸 */
ol.steps li::after {
  content: counter(step);
  position: absolute;
  left: 2px;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: #039be5;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  line-height: 30px;
}

/* --- Q&A --- */
.faq-list {
  margin: 12px 0 24px;
}

.faq-item {
  border: 1px solid #b3e5fc;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item dt {
  background-color: #e1f5fe;
  padding: 12px 16px 12px 44px;
  font-weight: 600;
  color: #2c3e50;
  position: relative;
  line-height: 1.7;
}

.faq-item dt::before {
  content: "Q.";
  position: absolute;
  left: 16px;
  color: #039be5;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-item dd {
  padding: 12px 16px 12px 44px;
  position: relative;
  line-height: 1.7;
}

.faq-item dd::before {
  content: "A.";
  position: absolute;
  left: 16px;
  color: #e74c3c;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-item dd a {
  color: #0288d1;
}

/* FAQカテゴリナビゲーション */
.faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.faq-nav a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #e1f5fe;
  color: #0277bd;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid #b3e5fc;
  transition: background-color 0.2s, color 0.2s;
}

.faq-nav a:hover {
  background-color: #039be5;
  color: #fff;
}

/* --- 注意事項 --- */
ul {
  margin: 12px 0 24px 24px;
}

ul li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.note {
  background-color: #e1f5fe;
  border-left: 4px solid #29b6f6;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
}

.warning {
  background-color: #fdedec;
  border-left: 4px solid #e74c3c;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
}

/* --- 注意事項コールアウト --- */
.caution {
  background-color: #fdedec;
  border: 1px solid #f5c6cb;
  border-left: 5px solid #e74c3c;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 24px 0;
}

.caution h3 {
  color: #c0392b;
  border-left: none;
  padding-left: 0;
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.caution ul {
  margin: 0 0 0 20px;
}

.caution ul li {
  color: #6b2c2c;
  margin-bottom: 4px;
  line-height: 1.7;
}

/* --- 目次ページ --- */
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin: 0;
  padding: 0;
}

.toc-list a {
  display: block;
  padding: 12px 16px;
  color: #0277bd;
  text-decoration: none;
  border-bottom: 1px solid #e1f5fe;
  transition: background-color 0.2s;
}

.toc-list a:hover {
  background-color: #b3e5fc;
  color: #0288d1;
}

.toc-list .toc-number {
  display: inline-block;
  width: 32px;
  color: #29b6f6;
  font-weight: 600;
}

.toc-section {
  font-size: 1rem;
  font-weight: 600;
  color: #0277bd;
  background-color: #b3e5fc;
  padding: 8px 16px;
  margin-top: 16px;
}

/* --- ダイアログセクション --- */
.dialog-section {
  background-color: #f0f7ff;
  border: 1px solid #b3e5fc;
  border-radius: 4px;
  padding: 20px;
  margin: 24px 0;
}

.dialog-section h4 {
  color: #039be5;
  margin-top: 0;
}

/* --- フッター --- */
footer {
  background: linear-gradient(135deg, #039be5, #29b6f6);
  padding: 16px 40px;
  margin-left: 260px;
}

footer nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

footer nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  transition: background-color 0.2s, border-color 0.2s;
}

footer nav a:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  color: #fff;
}

footer nav .prev::before {
  content: "\2190\00a0";
}

footer nav .next::after {
  content: "\00a0\2192";
}


/* --- サイドバー会社情報 --- */
.sidebar-company {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  padding: 12px 16px;
  line-height: 1.6;
  margin-top: auto;
}

.sidebar-company .company-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.75rem;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .content-wrapper {
    margin-left: 0;
  }

  .sidebar {
    display: none;
  }

  header {
    margin-left: 0;
    padding: 12px 16px;
  }

  main {
    padding: 20px 16px;
  }

  footer {
    margin-left: 0;
    padding: 12px 16px;
  }

  table {
    font-size: 0.8rem;
  }

  table th,
  table td {
    padding: 6px 8px;
  }

  footer nav {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* --- 印刷対応 --- */
@media print {
  html {
    background-image: none;
  }

  body {
    max-width: none;
    padding: 0;
    background: #fff;
    font-size: 11pt;
  }

  header {
    background: none;
    color: #000;
    border-bottom: 2px solid #000;
    margin: 0;
    padding: 8px 0;
  }

  header h1 {
    color: #000;
    font-size: 14pt;
  }

  header h1 a {
    color: #000;
  }

  nav.breadcrumb a,
  nav.breadcrumb span.current {
    color: #333;
  }

  .content-wrapper {
    display: block;
  }

  .sidebar {
    display: none;
  }

  main {
    max-width: none;
    margin: 0;
    padding: 16px 0;
  }

  main h2 {
    color: #000;
    border-bottom-color: #000;
  }

  main h3 {
    color: #000;
    border-left-color: #000;
  }

  table th {
    background-color: #ddd;
    color: #000;
  }

  footer {
    display: none;
  }

  .screenshot-placeholder {
    border-color: #999;
  }

  a[href]::after {
    content: none;
  }
}
