@charset "UTF-8";
body {
	margin: 0;
	padding: 0;
	font-family: "游ゴシック Medium", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
	line-height: 1.6;
    font-size: 16px;
}

/* 共通レイアウト：左右の余白も統一。両者を必ず同じにする */
#header-container,
#content-wrapper {
  margin: 0 auto;
  max-width: 1000px;        /* PC上限 */
  width: 100%;              /* ベースは100% */
  padding: 0 16px;          /* 左右の余白を統一 */
  box-sizing: border-box;   /* 余白込み幅で計算 */
}

/* ナビは折り返し可能に */
.nav {
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;                /* 均等な間隔 */
}
.nav a { font-weight: bold; text-decoration: none; }



header {
	background-color: #214555;
}
#head-inner {
    padding: 25px 0;
}
h1 {
	font-size: 26px;
	font-weight: bold;
	padding: 10px 0 0 0;
	margin: 0;
	color: #f3e6d2;
}
h1 a {
	font-weight: bold;
	color: #f3e6d2;
	text-decoration: none;
}
h1 a:hover {
	color: #e8f3f9;
	text-decoration: none;
}
.description {
	line-height: 1.2;
	color: #f3f2eb;
	margin: 0.5em 0 1em 0;
}
h2 {
	font-size: 22px;
	margin: 0;
	padding: 4px 0;
	border-bottom: 1px solid #999;
}

main {
	color: #333;
}
#inner {
	padding: 20px 0 0 0;
}
ul {
	margin: 0 0 0 1em;
	padding: 0;
}
li {
	list-style: disc;
}
p {
	margin: 1em 0;
}
img {
	max-width: 100%;
	height: auto;
	border: 0;
}
hr {
	border-width: 1px 0 0 0;
	border-style: solid;
	border-color: #ccc;
	height: 1px;
}
a {
	font-weight: normal;
}
aside {

}
#middle-inner {
	padding: 20px 0 20px 0;
}
.side-title {
	padding: 7px 16px 7px 16px;
	background-color: #f1f1f1;
	color: #333;
	font-weight: bold;
	border: 1px solid #ccc;
	margin-bottom: 10px;
	border-radius: 5px;
}
.side {
	margin: 0 0 10px 0;
	padding: 2px 8px 8px 7px;
	background-color: #fcfcfc;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
}
.side ul {
	margin: 0 0 0 10px;
	padding: 0;
}
.side li {
	list-style: none;
	margin-bottom: 0.5em;
}
.side li a {
	text-decoration: none;
	color: #214555;
}
.side li a:hover {
	text-decoration: underline;
}
footer {
	font-size: 15px;
	height: 100px;
	clear: both;
	text-align: center;
}
blockquote {
	border: 1px solid #ccc;
	padding: 5px;
	margin: 10px;
}


#head-inner {
    padding: 25px 10px;
	background-color: #214555;
}
.description {
}
main {
width: 100%;
	color: #333;
}
#inner {
	padding: 20px 10px 0 10px;
}
aside {
width: 100%;
}
#middle-inner {
	padding: 10px 10px 20px 10px;
}
h1 {
	font-size: 20px;
}
h2 {
	font-size: 18px;
}
h3 {
	font-size: 16px;
}
h4 {
	font-size: 14px;
}
}
.nav {
  margin-top: 10px;
  margin-bottom: 20px;
}
.nav a {
  margin-right: 15px;
  color: #f3e6d2;   /* ヘッダー見出しと同じ明るい色 */
  text-decoration: none;
  font-weight: bold;
}
.nav a:hover {
  text-decoration: underline;
  color: #e8f3f9;   /* ホバー時はさらに明るく */
}

.sidebar {
  display: flex;         /* 横並びにする */
  align-items: flex-start;
  gap: 15px;             /* 写真とリンクの間隔 */
}

.sidebar .avatar {
  width: 120px;          /* 必要ならサイズ調整 */
  height: auto;
  border-radius: 8px;
}

.sidebar .links-wrapper {
  display: flex;
  flex-direction: column;   /* リンクを縦並びに */
}


/* 左固定サイドバー設定 */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100vh;
  background-color: #214555;
  color: #fff;
  padding: 20px 15px;
  overflow-y: auto;
}

#sidebar h1 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #f3e6d2;
}

#sidebar .description {
  color: #eee;
  font-size: 14px;
  margin-bottom: 20px;
}

#sidebar .nav a {
  display: block;
  color: #f3e6d2;
  text-decoration: none;
  padding: 8px 0;
  font-weight: bold;
}

#sidebar .nav a:hover {
  color: #e8f3f9;
  text-decoration: underline;
}

/* メインコンテンツをサイドバーの右にずらす */
#content-wrapper {
  margin-left: 250px;
  padding: 20px;
  max-width: 1100px;
}

/* -------------------------
   PC では左サイドバー固定
------------------------- */
#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 230px;
  height: 100vh;
  background: #214555;
  color: #fff;
  padding: 20px;
  overflow-y: auto;
}

#content-wrapper {
  margin-left: 250px;
}

/* -------------------------
   スマホ用折りたたみ
------------------------- */

  /* ハンバーガーヘッダ */
  .mobile-header {
    background: #214555;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px 15px;
  }

  #menu-btn {
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    margin-right: 15px;
    cursor: pointer;
  }

  .mobile-title {
    font-size: 16px;
    font-weight: bold;
  }

  /* 本来のサイドバー内容を隠す */
  #sidebar-content {
    display: none;
    background: #214555;
    padding: 15px;
  }

  /* 開いた時に表示 */
  #sidebar-content.open {
    display: block;
  }

  /* メインコンテンツは上部に余白が必要 */
  #content-wrapper {
    margin-left: 0;
    margin-top: 70px; /* 固定ヘッダーの高さ */
  }
}
/* すべてのナビゲーション項目を縦並びにする */
.nav {
  display: flex;
  flex-direction: column;  /* ← これで縦並び */
  gap: 10px;               /* ← 項目ごとの間隔 */
  align-items: flex-start; /* 左寄せ */
}

.nav a {
  display: block;
  padding: 6px 0;
}

#sidebar-content {
  display: none;
}

#sidebar-content.open {
  display: block;
}

@media screen and (min-width: 801px) {
  #menu-btn {
    display: none;    /* PCではボタン非表示 */
  }
  #sidebar-content {
    display: block !important; /* 常に表示 */
  }
}


@media screen and (max-width: 800px) {
  #menu-btn {
    display: block;   /* スマホで表示 */
  }
  #sidebar-content {
    display: none;    /* 初期状態では隠す */
  }
  #sidebar-content.open {
    display: block;   /* トグル時に表示 */
  }
}



/* ================================
   スマホレイアウト：サイドバー非表示
   ================================ */
@media screen and (max-width: 800px) {

  /* サイドバー全体を非表示に */
  #sidebar {
    display: none;
  }

  /* 本文は画面いっぱい使う */
  .page-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0 12px;
  }

  #content-wrapper {
    margin: 0;
    max-width: 100%;
    padding: 16px 0 40px;
  }
}

/* =======================================================
   PC：サイト中央寄せ + 中央寄りに固定されるサイドバー
   ======================================================= */
@media (min-width: 801px) {

  .page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
  }

  #sidebar {
    position: fixed;
    top: 0;                      /* ← 上の隙間を消す */
    left: calc(50% - 600px);     /* ← サイト中央左端に合わせる */
    width: 300px;
    height: 100vh;               /* ← 画面の高さすべてにぴったり */
    overflow-y: auto;
    padding: 20px 15px;
    background: #214555;
    color: #fff;
    box-sizing: border-box;
  }

  #content-wrapper {
    margin-left: 320px;          /* サイドバー幅 + 少し余白 */
    max-width: 900px;
    padding-top: 20px;
    box-sizing: border-box;
  }
}

/* =======================================================
   スマホ：サイドバー非表示
   ======================================================= */
@media (max-width: 800px) {

  #sidebar {
    display: none;
  }

  .page-wrapper {
    max-width: 100%;
    margin: 0;
    padding: 0 12px;
  }

  #content-wrapper {
    margin-left: 0;
    max-width: 100%;
  }
}

/* footer 全体には線をつけない */
footer {
  border-top: none !important;
}
/* サイト全体に合わせた幅の footer ライン */
.footer-inner {
  max-width: 1200px;       /* page-wrapper の max-width と同じ */
  margin: 0 auto;          /* 中央寄せ */
  border-top: 1px solid #ccc;
  padding-top: 20px;
  box-sizing: border-box;
}

#sidebar h1 {
  position: relative; /* 擬似要素を h1 内に表示可能にする */
  padding-bottom: 15px;
}

#sidebar h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 90%;              /* ← 線の長さを調整 */
  height: 1px;
  background-color: #ccc;
}

/* ==========================================================
   ★ <ol> を番号で表示し、降順（start＋reversed）を有効化
   ========================================================== */
ol {
    list-style: decimal !important;
    padding-left: 1.5em !important;
}

ol li {
    list-style: decimal !important;
}

ol[reversed] {
    list-style: decimal !important;
}

ol[reversed] li::marker {
    font-weight: bold;
}

/* =========================
   H1タイトル文字色を黒に変更
   ========================= */
h1 {
    color: #000 !important;
}

/* H2以下も黒に変えたい場合は追加 */
h2, h3, h4 {
    color: #000 !important;
}

/* スマホ用フォント & 行間 調整版 */
@media screen and (max-width: 600px){

    html, body {
        font-size: 16px !important;   
		line-height: 1.85 !important; 
    }

    p, li, span, div, section {
        font-size: 16px !important;
        line-height: 1.85 !important;
    }

    h1 { font-size: 20px !important; }
    h2 { font-size: 16px !important; }
    h3 { font-size: 14px !important; }

    #content-wrapper {
        margin: 0 auto !important;
        padding: 22px !important;     /* 左右の余白は確保 */
        width: calc(100% - 36px) !important;
    }
}


