﻿@charset "UTF-8";
/* === 共通スタイル === */
body {
  font-family: sans-serif, system-ui;
  /*font-family:"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Meiryo,"メイリオ",Helvetica,Sans-Serif;*/
  /*font-family:'メイリオ', 'Meiryo', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;*/
  background-color: #F3F3F3;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  /*color: #333;*/
  background: #f9f9f9;
  /*padding: 20px;*/
  word-break: break-all;
}

a {
  color: #0066cc;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/*
header {
  background: #ffffff;
  padding: 1rem;
  border: 1px solid #ddd;
}

header .sitename {
  font-size: 1.5rem;
  font-weight: bold;
}

header p:last-child {
  font-size: 0.9rem;
  color: #666;
}
*/
/* ヘッダー（サイトタイトル・サブタイトル） */
header {
  background-color: #333;
  color: white;
  padding: 1rem;
  text-align: left; /* 左寄せ */
}
header a {
  text-decoration: none;
  color: white;
}
header .sitename {
  margin: 0;
  font-size: 1.8rem;
}
header p:last-child {
  margin: 0;
  font-size: 1rem;
  color: #ccc;
  margin-top: 0.2rem;
}


.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.breadcrumb li::after {
  content: '>';
  margin: 0 0.5rem;
  color: #999;
}
.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1em 0;
  font-size: 0.9rem;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  color: #555;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: ">";
  margin: 0 0.5em;
  color: #999;
}

.breadcrumb__item a {
  color: #0066cc;
  text-decoration: none;
}

.breadcrumb__item a:hover {
  text-decoration: underline;
}

#content {
  float: right;
  width: 80%; 
  box-sizing: border-box;
  padding: 0 1.5rem 1.5rem 1.5rem;
  background: #fff;
  /*border: 1px solid #ddd;*/
  border-left: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  /*margin-bottom: 2rem;*/
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.25rem;
}
h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

#content p {
  margin-bottom: 1rem;
}

ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}


/**************************************************
 テーブル
**************************************************/
.tabletype01 {
 width: 100%;
 text-align: left;
 border-collapse: collapse;
 border-spacing: 0;
}
.tabletype01 th {
 padding: 10px;
 text-align: center;
 background: #778ca3;
 border: solid 1px #666666;
 color: #ffffff;
}
.tabletype01 td {
 padding: 10px;
 border: solid 1px #666666;
}




footer {
  clear: both;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  padding: 1rem;
  /* background: #ffffff; */
  background: #f9f9f9;
}

/* 吹き出し */
.fukidashi {
  display: flex;
  align-items: flex-start;
  margin: 1rem 0;
}
.fukidashi.right {
  flex-direction: row-reverse;
}
.fukidashi .icon {
  width: 48px;
  text-align: center;
  margin: 0 10px;
}
.fukidashi .icon img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.fukidashi .label {
  font-size: 0.75rem;
  margin-top: 0.2rem;
  color: #777;
}
.fukidashi .text {
  background: #e6f2ff;
  padding: 0.8rem;
  border-radius: 0.5rem;
  max-width: 70%;
  font-size: 0.95rem;
}

/**************************************************
 強調色
**************************************************/
.marker {
  background:linear-gradient(transparent 60%, #ff6 60%);  /* ラインマーカーを付ける  */
  font-weight: bold;
}

/* 目次 */
.table-of-contents {
  border: 1px solid #ccc;
  padding: 1rem;
  background: #f0f0f0;
  margin-bottom: 2rem;
}
.table-of-contents-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.table-of-contents ol {
  padding-left: 1rem;
}

/**************************************************
 図
**************************************************/
.attached_vertical_img {
  height: 400px;
  width: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding:0 !important;
  display: block; 
  margin-bottom: 2rem;
}
.attached_horizonal_img {
  max-width: 90%;
  height: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: block; 
  margin-bottom: 2rem;
}

/* ポイント */
.point {
  background: #fff9e6;
  border-left: 4px solid #f0c000;
  padding: 1rem;
  margin: 1.5rem 0;
}
.point-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* コードブロック */
pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  /*border: 1px solid #ddd;*/
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* 前後リンク */
.prev-next-link {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.prev-next-link a {
  flex: 1;
  background: #f0f0f0;
  padding: 0.8rem;
  border-radius: 4px;
  text-align: center;
  font-size: 0.95rem;
}

/* ページトップ */
.pagetop {
  display: none;
}

/* === サイドメニュー === */
aside {
  width: 20%;
  float: left;
  box-sizing: border-box;
  /*padding: 1rem;*/
  background-color: #fafafa;
  /*border: 1px solid #ddd;
  border-radius: 6px;*/
  font-size: 0.95rem;
}

/* タイトル */
.right-title {
  font-weight: bold;
  font-size: 1rem;
  margin: 0.75rem;
  margin-top: 1rem;
  /*margin-bottom: 0.75rem;*/
  color: #222;
  border-left: 4px solid #007acc;
  padding-left: 0.5rem;
}

/* リンク全体 */
.link {
  /*background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;*/
  /*padding: 0.5rem 0;*/
}

/* リストリセット */
.link ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 通常リンク */
.link li {
  margin: 0;
}

/* リンクスタイル */
.link a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}

/* ホバー時 */
.link a:hover {
  background-color: #f0f8ff;
  border-left-color: #007acc;
  color: #007acc;
}

/* 現在位置 */
.link li.current a {
  font-weight: bold;
  color: #000;
  background-color: #e6f2ff;
  border-left-color: #005999;
}

/* === ネスト階層 === */

/* 子リスト（第2階層） */
.link li ul {
  padding-left: 1rem;
  margin-top: 0.3rem;
}

/* 子リンク */
.link li ul li {
  border-left: 3px solid #ccc;
}

/* 子アイテムのリンク */
.link li ul li a {
  font-size: 0.92rem;
  padding-left: 1rem;
  border-left: 2px solid transparent;
  color: #555;
}

/* 子リンクのホバー */
.link li ul li a:hover {
  background-color: #f8fbff;
  /*border-left-color: #999;*/
  color: #007acc;
}

/**************************************************
 コード表示部(Prism)
**************************************************/
.prism {
  position: relative;
  padding: 18px 0px 0px 0px;   /* .prism-tag のmargin分ずらす */
  margin: 0px;
}

.prism-tag {
  position: absolute;
  padding: 5px 15px;
  margin: -17px 0px ;
  background-color:#272822;
  color:#ddd;
  border-radius: 5px 5px 0 0;
  font-size: 13px;
  height: 28px;               /* .prismと重なるように.prismのpadding+2pxとする */
}

/**************************************************
 ページトップに戻る
**************************************************/
html {
    scroll-behavior: smooth;
}
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    opacity: 0.3;
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #000;
    border-right: 3px solid #000;
    transform: translateY(20%) rotate(-45deg);
}

/**************************************************
 マルチデバイス対応　レスポンシブレイアウト
**************************************************/
@media (max-width: 768px) {
  header .sitename {
    font-size: 14px;
  }
  header p:last-child {
    font-size: 10px;
  }

  #content {
    float: none;
    width: 100%;
    margin: 0;
    margin-top: -10px;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .breadcrumb {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 0.2rem;
  }

  .breadcrumb__list {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .fukidashi {
    flex-direction: column;
    align-items: flex-start;
  }

  .fukidashi.right {
    flex-direction: column;
  }

  .fukidashi .text {
    max-width: 100%;
  }

  .prev-next-link {
    flex-direction: column;
  }

  .prev-next-link a {
    width: 100%;
  }

  aside {
    width: 100%;
    float: none;
    padding: 20px 0 0 0;
  }

  pre {
    font-size: 0.9rem;
  }
}
