/*========================
  ピクセルフォント読み込み
========================*/
@font-face {
  font-family: 'PixelMplus';
  src: url('fonts/PixelMplus10-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* 全体に適用 */
* {
  font-family: 'PixelMplus', monospace !important;
}

/* --- ベース設定 --- */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-image: url(images/bg.PNG);
  background-size:150%; /*背景画像のサイズ指定*/
  line-height: 1.5;
}

/*ここからハンバーガーメニュー*/
.header-container_01 {
  position: relative;
  margin: 0 !important;
  height: auto; /*固定の高さをやめる*/
  font-family:serif; /*フォントを変えるとこ*/
}

.header__navi_01 {
  position: fixed;      /* 画面に固定 */
  top: 0;
  left: 0;              /* 左からスライドイン */
  width: 70%;
  height: 100vh;        /* 画面全体の高さ */
  background: #f76c3c;
  transform: translateX(-130%); /* 最初は画面外 */
  transition: transform 0.4s;  /*出てくる早さ*/
  z-index: 1500;
  overflow-y: auto;     /* コンテンツが長い場合スクロール可能に */
}

.header__navi_01.active {
  transform: translateX(0%);
}

.header__navi_01 ul {
  position: fixed;      /* 文字を画面内で固定 */
  top: 50%;             /* 画面中央に配置 */
  left: 0;
  width: 100%;
  transform: translateY(-50%); /* 正確に中央に */
  padding-left: 20px;
  text-align: left;
}

.header__navi_01 li {
  list-style: none;
  margin-bottom: 42px; /*テキストの間の間隔*/
}

.header__navi_01 li a {
  color: #fff;
  text-decoration: none;
   border-bottom: 3px dotted #fff; /* ← 点線の下線 */
  padding-bottom: 4px;            /* 下線と文字の間隔調整 */
  display: block;       /* ブロックにすることで幅いっぱいに伸びる */
  width: 100%;          /* 幅100% */
  transition: all 0.2s; /* 色変化をスムーズに */
  transition: border-color 0.3s;
}

/* ホバー時 */
.header__navi_01 li a:hover {
  color: #ffeaa7;       /* マウスオーバーで色を変える */
  border-bottom-color: #ffeaa7;
}

/* 押したとき */
.header__navi_01 li a:active {
  color: #35dbf1;       /* 押した瞬間の色 */
  background-color: rgba(255,255,255,0.1); /* 背景を少し変える */
  transform: translateY(1px); /* 軽く沈み込むように */
}

/* メニューボタン */
.sp-menu-btn_01 {
  background: #f76c3c;
  border: none;
  position: fixed; /*スクロールしても位置固定*/
  right: -5px; /*ボタンの左右の位置調整*/
  top: 5px;  /*ボタンの上下位置*/
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 2000;
  border-radius: 50%; /*ボタンの角丸調整*/
  transform: scale(0.5);/*ボタンのサイズ調整*/
}

.sp-menu-btn_01 .line {
  display: block;
  position: absolute;
  width: 30px;
  height: 4px;
  right: 15px;
  background: #fff;
  transition: 0.3s ease-in-out;
}

.sp-menu-btn_01 span:nth-child(1) {
  top: 20px;
}

.sp-menu-btn_01 span:nth-child(2) {
  top: 28px;
}

.sp-menu-btn_01 span:nth-child(3) {
  top: 36px;
}

/* メニューが開いているときのボタン */
.sp-menu-btn_01.active span:nth-child(1) {
  top: 28px;
  transform: rotate(-45deg);
}

.sp-menu-btn_01.active span:nth-child(2) {
  opacity: 0;
}

.sp-menu-btn_01.active span:nth-child(3) {
  top: 28px;
  transform: rotate(45deg);
}

.header-container_01 h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  font-weight: normal;
}
/**ここまでハンバーガーメニュー*/

/* --- スマホ向け調整 --- */
@media (max-width: 600px) {
  .footer-btn {
    font-size: 14px;
    padding: 10px 14px;
    margin: 0 5px;
  }
}

/* 補足タイトル */
.hosoku-wrap {
  text-align: center;
  margin: 90px auto 40px auto; /* 上下余白調整 */
}

.hosoku {
  font-size: 24px;
  font-weight: bold;
  color: #38160c;
  margin: 0;
  white-space: nowrap;
}

/*下線(点線)*/
.dotted-line {
  width: 300px;
  border-bottom: 4px dotted #682612;
  margin: 20px auto 0;
}

/* 説明文 */
.setumei {
  text-align: center;
  font-size: 14px;
  color: #351a11;
  margin: -15px auto;
}

.highlight {
  color: #f76c3c;
  font-weight: bold;
}

/* 読む順番見出し */
.heading-9 {
  display: inline-block;           /* テキスト幅に合わせる */
  padding: 0.3em 0.6em;
  border-radius: 8px;
  background-color: #f76c3c;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 40px auto 20px auto;    /* 上下位置＋中央配置 */
  min-width: 120px;
  max-width: 300px;
  position: relative;              /* ::after 矢印用 */
  
  /* 左右調整用 */
  left: 50%;                       /* 画面中央を基準に */
  transform: translateX(-50%);     /* 中央基準 */
}

/* 左右にずらしたい場合はここを書き換え */
.heading-9.adjust-right {
  transform: translateX(-30%);     /* 中央から右に調整 */
}

.heading-9.adjust-left {
  transform: translateX(-70%);     /* 中央から左に調整 */
}

/* ▼ 下の矢印 */
.heading-9::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #f76c3c transparent transparent transparent;
}

/* 読む順番の番号文字 */
.jyunban {
  text-align: center;
  font-size: 14px;
  color: #351a11;
  margin: 5px auto 60px auto; /* 上40px 下60px */
  font-weight: bold;
  line-height: 1.8; /* 行間も少し広めにして読みやすく */
}

/* 参考に説明文 */
.heading-10 {
  background-color: #ffe2cb;
  padding: 0.5em 1em;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
  color: #7d5040;
  line-height: 1.6;

  max-width: 60ch;           /* 文字数ベースで折り返しを統一 */
  width: fit-content;        /* 中央で幅を文字に合わせる */
  margin: -50px auto 40px auto; /* 中央寄せ + 上下余白 */

  white-space: normal;
  word-wrap: break-word;
  position: relative;        /* 矢印用 */
}

.heading-10::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
}

.heading-10::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
}


/* 相関図見出し */
.heading-12 {
  display: inline-block;           /* テキスト幅に合わせる */
  padding: 0.3em 0.6em;
  border-radius: 8px;
  background-color: #f76c3c;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: -10px auto 20px auto;    /* 上下位置＋中央配置 */
  min-width: 120px;
  max-width: 300px;
  position: relative;              /* ::after 矢印用 */
  
  /* 左右調整用 */
  left: 50%;                       /* 画面中央を基準に */
  transform: translateX(-50%);     /* 中央基準 */
}

/* 左右にずらしたい場合はここを書き換え */
.heading-12.adjust-right {
  transform: translateX(-30%);     /* 中央から右に調整 */
}

.heading-12.adjust-left {
  transform: translateX(-70%);     /* 中央から左に調整 */
}

/* ▼ 下の矢印 */
.heading-12::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #f76c3c transparent transparent transparent;
}


/* ▼ 下線 */
.heading-12::before {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;                    /* 本体に対して中央 */
  transform: translateX(-50%);  /* 中央揃え */
  width: 120px;
  height: 2px;
}

/* 画像 */
.img {
  text-align: center;
  margin:5px auto 0 auto;/*画像の上下位置調整*/
}

.img img {
  max-width: 90%; /*画像のサイズ*/
  height: auto;
  display: inline-block;
}

/* ライトボックス全体 */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* 画像の下にキャプションを表示 */
}

.lightbox-img {
  max-width: 90vw;   /* 画面幅の最大90% */
  max-height: 80vh;  /* 画面高さの最大80% */
  width: auto;       /* 自動で幅調整 */
  height: auto;      /* 自動で高さ調整 */
}

.caption {
  color: #fff;
  font-size: 14px;
  margin-top: 10px; /* 画像と文字の間隔 */
  text-align: center;
  line-height: 1.5;
}
