/* 共通設定 */
html {
  scroll-behavior: smooth;
}
img {
	max-width: 100%;
	width: auto !important;
}
.t_center {
	    display: block;
	        margin: 1.5rem auto !important;
}
body, html {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: transparent;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Pixi.js 背景キャンバス */
#pixi-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

/* スクロール進捗バー */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 6px;
  z-index: 9999;
  background: linear-gradient(to right, #ff99cc, #66ccff, #99ffcc);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: width 0.3s ease;
}

/* 各章テーマに応じた進捗バー色切替（JSでクラスを付与） */
#progress-bar.chapter0 { background: #f5b97e; }
#progress-bar.chapter1 { background: #a3c7e3; }
#progress-bar.chapter2 { background: #c09edb; }
#progress-bar.chapter3 { background: #f7a7a6; }
#progress-bar.chapter4 { background: #97c1a9; }
#progress-bar.chapter5 { background: #f9c97b; }
#progress-bar.chapter6 { background: #b0bec5; }
#progress-bar.chapter7 { background: #f5a671; }
#progress-bar.chapter8 { background: #6ddac9; }
#progress-bar.chapter9 { background: #d3cfc4; }

/* スクロールバー（PC表示用） */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#66ccff, #ff99cc);
  border-radius: 6px;
}

/* トップに戻るボタン */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.8rem 1rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 10000;
  display: none;
  transition: all 0.3s ease;
}
#back-to-top:hover {
  transform: scale(1.1);
}

.smf_no{
  display: none;
}

/* header */
header{
  width: 100%;
  max-width: 960px;
  margin: 0.5em auto;
}
.box_hed01{
  display:block;
  margin: 0.5em 0;

}
.box_hed01 a{
  display:inline-block;
  height: 55px;
}
.box_hed01 a img{
  width: 100%;
  height: 100%;
}

.box_hed02{
  display:block;
  margin: 0.5em 0;
  width: 100%;
}
.box_hed02 > img{
  display: block;
  margin: 0.5em auto;
  width: 65%!important;
}
.box_hed02 > .smf_no{
  display: none;
}
.box_hed02 > p {
  margin-bottom: 2rem;
  font-size: 1.152em;
  line-height: 2.2em;
  font-weight: bold;
  text-align: center;
  color: #606060;
}
.box_hed02 p span{
  display: inline-block;
  padding-bottom: 0.8em;
  font-size: 1.2em;
  font-weight: 700;
}

.box_hed02 > .p_voice{
  margin-bottom: 5.5em!important;
}

h1{
  text-align: center;
  padding: 1em 0 1em 0;
}

/*h1{
  position: relative;
  text-align: center;
  padding: 0.8em 2em 1em 0;
  line-height: 1.3em;
}
.h1_span01,
.h1_span02{
  padding: 0 20px 5px 13px;
  background: linear-gradient(90deg, rgba(255, 201, 240, 0.9), rgba(255, 244, 170, 0.9));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 60%;
  font-size: 1.2em;
  line-height: 0.6em;
}
.h1_span02{
  font-size: 1em;
}
h1:after{
  position: absolute;
  content: '';
  background-image: url("images/piatan-full02.png");
  background-size: contain;
  background-repeat: no-repeat;
  transform: rotate(-10deg);
  top: 0.4em;
  right: 0.5em;
  width: 150px;
  height: 200px;
}*/

/* 目次セクション */
.toc {
  max-width: 960px;
  margin: 4em auto 4em auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5em;
}
.toc-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  padding: 1em;
  border-radius: 16px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  color: #333;
}
.toc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* カラー統一：chapterX による一貫表現 */
.chapter0 { --theme: #f5b97e; }
.chapter1 { --theme: #a3c7e3; }
.chapter2 { --theme: #c09edb; }
.chapter3 { --theme: #f7a7a6; }
.chapter4 { --theme: #97c1a9; }
.chapter5 { --theme: #f9c97b; }
.chapter6 { --theme: #b0bec5; }
.chapter7 { --theme: #f5a671; }
.chapter8 { --theme: #6ddac9; }
.chapter9 { --theme: #d3cfc4; }

.tile.chapter0, .toc-card.chapter0 { box-shadow: 0 0 12px #f5b97e, 0 0 24px #f5b97e; }
.tile.chapter1, .toc-card.chapter1 { box-shadow: 0 0 12px #a3c7e3, 0 0 24px #a3c7e3; }
.tile.chapter2, .toc-card.chapter2 { box-shadow: 0 0 12px #c09edb, 0 0 24px #c09edb; }
.tile.chapter3, .toc-card.chapter3 { box-shadow: 0 0 12px #f7a7a6, 0 0 24px #f7a7a6; }
.tile.chapter4, .toc-card.chapter4 { box-shadow: 0 0 12px #97c1a9, 0 0 24px #97c1a9; }
.tile.chapter5, .toc-card.chapter5 { box-shadow: 0 0 12px #f9c97b, 0 0 24px #f9c97b; }
.tile.chapter6, .toc-card.chapter6 { box-shadow: 0 0 12px #b0bec5, 0 0 24px #b0bec5; }
.tile.chapter7, .toc-card.chapter7 { box-shadow: 0 0 12px #f5a671, 0 0 24px #f5a671; }
.tile.chapter8, .toc-card.chapter8 { box-shadow: 0 0 12px #6ddac9, 0 0 24px #6ddac9; }
.tile.chapter9, .toc-card.chapter9 { box-shadow: 0 0 12px #d3cfc4, 0 0 24px #d3cfc4; }

/* ハンバーガーメニュー */
.menu-wrapper {
  position: relative;
}
.menu-icon {
  width: 40px;
  height: 30px;
  position: fixed;
  top: 20px;
  right: 25px;
  cursor: pointer;
  z-index: 999;
  display: inline-block;
}
.menu-icon span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: #333;
  border-radius: 2px;
  transition: 0.4s;
}

/* ハンバーガーがXに変形 */
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}



#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* メニュー本体（左から出す） */
.menu {
  position: fixed;
  top: 0;
  right: -250px; /* ← 初期位置を右へ */
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  transition: left 0.4s ease;
  z-index: 2;
}
#menu-toggle:checked ~ .menu {
  right: 0; /* ← 開いたときは右0へ */
}
.menu ul {
  list-style: none;
  padding: 60px 20px;
}
.menu li {
  margin: 10px 0 0 0;
  padding: 0 0 7px 0;
  border-bottom: 1px solid #ffaaa4;
  
}
.menu a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.3s;
}
.menu a span{
  color: #ffaaa4;
  display: block;
  font-size: 0.8rem;
}
.menu a:hover {
  color: #ffaaa4;
}

/* ピアタンセリフ */
.p_voice{
  width: calc(90% - 5rem);
  margin: 2.5em auto 3em auto;
  padding: 1em 2em 1em 3em;
  display: flex;
  align-items: center;
  border: 5px #ddd solid;
  border-radius: 30px;
}
.p_voice p,
.img-face{
  display: inline-block;
}
.p_voice p{
  width: calc(80% - 2.5rem);
  margin-left: 2.5em;
  font-size: 1.25em;
  line-height: 1.8em;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  color: #606060;
}
.img-face{
  width: 17%!important;
  height: 17%;
  max-width: 100%;
  max-height: 100%;
}

/* ピアタンのご紹介 */
.pia-block{
  display: flex;
  align-items: center;
}
.pia-block img{
  display: block;
  width: 22%!important;
  height: 22%;
  max-width: 100%;
  max-height: 100%;
}
.pia-block-inner{
  width: calc(78% - 3rem);
  margin-left: 3em;
  line-height: 1.8em;
  color: #606060;
}
.pia-block-inner h2{
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
}
.pia-block-inner a{
  display: block;
  width: 70%;
  margin: 1.3em 0 0.5em 0;
  padding: 0.7em 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  letter-spacing: 1.2px;
  background: linear-gradient(90deg, #ff8cc6, #fbb8b3);
  background-repeat: no-repeat;
  background-position: left bottom;
  text-decoration: none;
  color: #fff;
  text-align: center;
  border-radius: 100px;
}

/* チャプター */
.tile {
  display: block;
  width: calc(100% - 6em)!important;
  max-width: calc(960px - 6em)!important;
  margin: 2em auto 3.5em auto;
  padding: 2em 3em!important;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-radius: 16px;
}

.h2_chapter{
  margin-bottom: 2.4em;
  line-height: 1em;
  color: #606060;
  text-align: center;
}
.h2_chapter p span{
  padding: 0 20px 5px 13px;
  background: linear-gradient(90deg, rgba(255, 201, 240, 0.9), rgba(255, 244, 170, 0.9));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 60%;
  font-size: 1.2em;
}
.h2_chapter p:first-child{
  font-size: 0.9em;
}

.h3_chapter{
  position: relative;
  padding: 0 0 0 40px;
  font-size: 1.3em;
  letter-spacing: 1.1px;
  font-weight: 800;
  color: #606060;
}
.h3_chapter:before{
  position: absolute;
  content: '';
  top: 7px;
  left: 6px;
  width: 22px;
  height: 22px;
  background: #ffaaa4;
}

.ul_chapter01 li{
  position: relative;
  list-style-type: none!important;
  padding: 0.3em 0 0 20px;
}
.ul_chapter01 li:before{
  position: absolute;
  content:'';
  left: 0;
  top: 0.75em;
  width:0.8em;
  height:0.8em;
  background: #f7a7a6;
  border-radius: 50%;
  margin-right: 8px;
}

.img-diagram01{
  width: 40%!important;
  height: 30%;
  align-items: center;
}
.img-diagram01 img{
  width: 100%!important;
  height: 100%;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.text_box01{
  display: flex;
  align-items: center;
  margin-bottom: 3em;
}
.text_box01_inner{
  width: calc(60% - 2em);
  margin: 0 1em 0 1em;
}
.text_box01_inner p{
  line-height: 2.3em; 
}

.text_box02{
  margin-bottom: 3em;
}
.text_box02 p{
  line-height: 2.3em; 
}

.img-diagram02{
  width: 100%!important;
  height: 100%;
  text-align: center;
}
.img-diagram02 img{
  width: 100%!important;
  height: 100%;
  max-width: 750px;
  max-height: 500px;
  object-fit: contain;
}

.tb_chapter01{
  border-collapse:separate;
  border-spacing: 10px;
  width: 90%;
  margin: 1em auto 0 auto;
}
.tb_chapter01 tr{
  
  margin-bottom: 1em;
}
.tb_chapter01 th{
  width: 20%;
  padding: 0.3em 0;
  background: #f2f2f2;
  border-radius: 5px;
}
.tb_chapter01 th span{
  display: block;
  font-size: 0.8em;
  color: #777777;
}
.tb_chapter01 td{
  padding: 0.6em 1em;
  border-bottom: 2px solid #ddd;
}

P.tc01_p {
  margin: 0.9em 0 0.2em 0;
  font-size: 0.8em;
  line-height: 0;
  color: #777777;
  font-weight: 400;
}
.tc01_p span:first-child{
  display: inline-block;
  margin-right: 5px;
  font-size: 0.87em;
  letter-spacing: 0.5px;
  padding: 10.3px 7px 9px 7px;
  color: #fff;
  background:  #888888;
  border-radius: 3px;
  font-weight: 500;
}

.tb_chapter02{
  border-collapse:separate;
  border-spacing: 7px;
  width: 90%;
  margin: 1em auto 0 auto;
}
.tb_chapter02 tr{
  margin-bottom: 1em;
}
.tb_chapter02 th{
  width: 20%;
  padding: 0.3em 0;
  background: #f2f2f2;
  border-radius: 5px;
}
.tb_chapter02 tr:first-child th:first-child{
  background: #fff;
}
.tb_chapter02 tr:first-child th{
  padding: 0.8em 0 ;
}
.tb_chapter02 td{
  padding: 0.6em 0.7em;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 0.9em;
}

.tb_chapter03{
  border-collapse:separate;
  border-spacing: 10px;
  width: 90%;
  margin: 1em auto 0 auto;
}
.tb_chapter03 tr{
  margin-bottom: 1em;
}
.tb_chapter03 th{
  display: block;
  width: calc(100% - 2em);
  padding: 0.4em 1em 0.3em 1em;
  background: #f2f2f2;
  border-radius: 5px;
  text-align: left;
}
.tb_chapter03 td{
  display: block;
  width: calc(100% - 2em);
  padding: 0.6em 1em;
}

.ol_chapter01{
  width: 100%;
  margin: 0 auto 0 auto;
  padding: 0 0 0 20px;
  list-style: none;
  counter-reset: li;
}
.ol_chapter01 li {
  position: relative;
  padding: 0 0 0 30px;
}
.ol_chapter01 li:not(:first-child) {
  margin-top: 0.8em;
}
.ol_chapter01 li::before {
  counter-increment: li;
  content: counter(li);
  position: absolute;
  left: -2px;
  top: 2px;
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #A3A3A3;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 26px;
  text-align: center;
}

/* 用語辞典 */
.box_qa{
  width: 92%;
  margin: 0 auto;
}
.box_qa summary{
  margin-bottom: 0.8rem;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  background: #f2f2f2;
  cursor: pointer;
}
.box_qa p{
  margin: 0 1.5rem;
  padding: 1.4rem 1rem 1.2rem 1rem;
  border-bottom: 1px solid #ddd;
  line-height: 1;
}
.box_qa p:last-child{
  margin-bottom: 2.5rem;
}
.box_qa p strong{
  display: block;
  padding-bottom: 1rem;
  font-weight: 700;
}

/* 吹き出し構造
.balloon {
  display: flex;
  align-items: center;
  margin-top: 2rem;
}
.balloon-text {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  margin-left: 1rem;
  box-shadow: 0 0 0.5rem rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .balloon {
    flex-direction: column;
    align-items: flex-start;
  }
  .balloon-text {
    margin-left: 0;
    margin-top: 0.5rem;
  }
} */


/* 注意事項エリア */
#notice {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #666;
  font-size: 0.8rem;
  padding: 1.5rem;
  border-radius: 1rem;
  margin: 2rem auto 1rem;
  max-width: 960px;
  box-shadow: none;
}
#notice p {
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

footer {
    width: 100%;
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
  font-size: 0.72rem;
}

/*--------------------------------
    タブレットサイズ
---------------------------------*/
@media (max-width: 960px) {
.pc_no{
  display: none;
}  
.smf_no{
  display: inline-block;
}  
  
/* header */
header{
  width: calc(100% - 2em);
  max-width: 960px;
  margin: 0.5em 1em;
}
.box_hed01{
  margin: 0.3em 0;
}
.box_hed01 a{
  height: 40px;
}

.box_hed02{
  margin: 2em 0 0.3em 0;
  width: 100%;
}
.box_hed02 p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 1em;
}
.box_hed02 > img{
  display: block;
  text-align: center;
  max-width: 600px;
  width: 95%!important;
}
.box_hed02 p span{
  display: inline-block;
  padding-bottom: 0.5em;
  font-size: 1em;
  font-weight: 700;
}
.box_hed02 > .p_voice{
  margin-bottom: 3em!important;
}
h1{
  padding: 0.5em 0 0 0;
}
/*h1{
  padding: 0.5em 15% 0.5em 0;
  line-height: 1em;
}
.h1_span01,
.h1_span02{
  padding: 0 15px 5px 7px;
  background-size: 100% 60%;
  font-size: 1em;
  line-height: 0.6em;
}
.h1_span02{
  font-size: 0.75em;
}
h1:after{
  transform: rotate(-10deg);
  top: 0.4em;
  right: auto;
  left: 80%;
  width: 13%;
  height: 150px;
}*/
.span_break{
  padding: 0.8em 0 0 0 ;
  display: inline-block;
}

/* 目次セクション */
.toc {
  margin: 3em 1em 3em 1em;
}
.toc-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1em;
}
.toc-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  padding: 1em;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.toc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.tile.chapter0, .toc-card.chapter0 { box-shadow: 0 0 10px #f5b97e, 0 0 20px #f5b97e; }
.tile.chapter1, .toc-card.chapter1 { box-shadow: 0 0 10px #a3c7e3, 0 0 20px #a3c7e3; }
.tile.chapter2, .toc-card.chapter2 { box-shadow: 0 0 10px #c09edb, 0 0 20px #c09edb; }
.tile.chapter3, .toc-card.chapter3 { box-shadow: 0 0 10px #f7a7a6, 0 0 20px #f7a7a6; }
.tile.chapter4, .toc-card.chapter4 { box-shadow: 0 0 10px #97c1a9, 0 0 20px #97c1a9; }
.tile.chapter5, .toc-card.chapter5 { box-shadow: 0 0 10px #f9c97b, 0 0 20px #f9c97b; }
.tile.chapter6, .toc-card.chapter6 { box-shadow: 0 0 10px #b0bec5, 0 0 20px #b0bec5; }
.tile.chapter7, .toc-card.chapter7 { box-shadow: 0 0 10px #f5a671, 0 0 20px #f5a671; }
.tile.chapter8, .toc-card.chapter8 { box-shadow: 0 0 10px #6ddac9, 0 0 20px #6ddac9; }
.tile.chapter9, .toc-card.chapter9 { box-shadow: 0 0 10px #d3cfc4, 0 0 20px #d3cfc4; }
  
/* ピアタンセリフ */
.p_voice{
  width: calc(100% - 4rem - 8px);
  margin: 1.5em auto 2em auto;
  padding: 1em 2em 1em 2em;
  border: 4px #ddd solid;
  border-radius: 20px;
}
.p_voice p{
  width: calc(80% - 2rem);
  margin-left: 2em;
  font-size: 1.05em;
  line-height: 1.7em;
}
.img-face{
  width: 17%!important;
  height: 17%;
  min-width: 80px;
}

/* ピアタンのご紹介 */
.pia-block img{
  width: 27%!important;
  height: 27%;
  max-width: 180px;
}
.pia-block-inner{
  width: calc(75% - 1.5rem);
  margin-left: 1.5em;
  line-height: 1.8em;
}
.pia-block-inner h2{
  font-weight: 800;
}
.pia-block-inner a{
  width: calc(100% - 2.5em);
  max-width: 350px;
  margin: 0.5em 0 1em 0;
  padding: 0.5em 1em;
  font-weight: 700;
  letter-spacing: 0;
}

/* チャプター */
.tile {
  width: calc(100% - 4em)!important;
  max-width: calc(960px - 4em)!important;
  margin: 2em 1em 3.5em 1em;
  padding: 1em 1em!important;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-radius: 16px;
}

.h2_chapter{
  margin: 1em 0 2em 0;
  line-height: 0.6em;
}
.h2_chapter p span{
  padding: 0 20px 5px 13px;
  background-size: 100% 50%;
  font-size: 1.1em;
}
.h2_chapter p:first-child{
  font-size: 0.75em;
}

.h3_chapter{
  padding: 0 0 0 30px;
  font-size: 1.15em;
  letter-spacing: 0.3px;
}
.h3_chapter:before{
  top: 7px;
  left: 6px;
  width: 18px;
  height: 18px;
}

.ul_chapter01 li{
  padding: 0.3em 0 0 0px;
}
.ul_chapter01 li:before{
  top: 0.8em;
  left: -18px;
  width:0.7em;
  height:0.7em;
  border-radius: 50%;
  margin-right:0px;
}

.img-diagram01{
  width: 40%!important;
  height: 30%;
  align-items: center;
}
.img-diagram01 img{
  max-width: 100%;
  max-height: 350px;
}

.text_box01{
  margin-bottom: 1.6em;
}
.text_box01_inner{
  width: calc(60% - 2em);
  margin: 0 1em 0 1em;
}
.text_box01_inner p{
  line-height: 2em; 
}

.text_box02{
  margin-bottom: 2em;
}
.text_box02 p{
  line-height: 2em;
}
.text_box02 > p{
  width: calc(100% - 1em);
  margin: 0 0.5em 1em 0.5em;
}
  
.img-diagram02{
  text-align: center;
}
.img-diagram02 img{
  max-width: 650px;
  max-height: 500px;
}

.tb_chapter01{
  border-spacing: 10px 5px;
  width: 100%;
  max-width: 700px;
  margin: 1em auto 0 auto;
}
.tb_chapter01 tr{
  margin-bottom: 1em;
}
.tb_chapter01 th{
  width: 20%;
  padding: 0.3em 0;
  border-radius: 5px;
}
.tb_chapter01 th span{
  font-size: 0.8em;
}
.tb_chapter01 td{
  padding: 0.6em 0.5em;
  border-bottom: 2px solid #ddd;
}

P.tc01_p {
  margin: 0.9em 0 0.2em 0px;
  font-size: 0.8em;
  line-height: 1.5;
  display: flex;
  align-items:baseline;
}
.tc01_p span{
  display: block;
}
.tc01_p span:first-child{
  min-width: 60px;
  margin-right: 5px;
  padding: 10.3px 7px 9px 7px;
  font-size: 0.87em;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 0;
  text-align: center
  }

.tb_chapter02{
  border-spacing: 7px;
  width: 100%;
  max-width: 700px;
  margin: 1em auto 0 auto;
}
.tb_chapter02 tr{
  margin-bottom: 1em;
}
.tb_chapter02 th{
  width: 20%;
  padding: 0.3em 0;
  background: #f2f2f2;
  border-radius: 5px;
}
.tb_chapter02 tr:first-child th:first-child{
  background: #fff;
}
.tb_chapter02 tr:first-child th{
  padding: 0.8em 0 ;
}
.tb_chapter02 td{
  padding: 0.6em 0.7em;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 0.9em;
}

.tb_chapter03{
  border-spacing: 10px;
  width: 100%;
  max-width: 700px;
  margin: 1em auto 0 auto;
}
.tb_chapter03 tr{
  margin-bottom: 1em;
}
.tb_chapter03 th{
  width: calc(100% - 2em);
  padding: 0.4em 1em 0.3em 1em;
  background: #f2f2f2;
  border-radius: 5px;
  text-align: left;
}
.tb_chapter03 td{
  display: block;
  width: calc(100% - 2em);
  padding: 0.6em 1em;
}

.ol_chapter01{
  width: calc(100% - 17px);
  margin: 0 auto 1.5em auto;
  padding: 0 0 0 17px;
  list-style: none;
  counter-reset: li;
}
.ol_chapter01 li {
  padding: 0 0 0 30px;
}
.ol_chapter01 li:not(:first-child) {
  margin-top: 0.8em;
}
.ol_chapter01 li::before {
  left: 1px;
  top: 3px;
  width: 21px;
  height: 21px;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}
  
/* 用語辞典 */
.box_qa p{
  padding: 1.2rem 1rem 1rem 1rem;
}

}/* タブレット終了 */

/*--------------------------------
    スマホサイズ
---------------------------------*/
@media (max-width: 640px) {
  
.toc-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8em;
}
.toc-grid a{
  font-size: 0.78em;
  /*text-decoration: none!important;*/
}
  
.toc {
  margin: 2em 1em 1.5em 1em;
}
.toc-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  padding: 1em;
  border-radius: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.toc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.tile.chapter0, .toc-card.chapter0 { box-shadow: 0 0 8px #f5b97e, 0 0 10px #f5b97e; }
.tile.chapter1, .toc-card.chapter1 { box-shadow: 0 0 8px #a3c7e3, 0 0 10px #a3c7e3; }
.tile.chapter2, .toc-card.chapter2 { box-shadow: 0 0 8px #c09edb, 0 0 10px #c09edb; }
.tile.chapter3, .toc-card.chapter3 { box-shadow: 0 0 8px #f7a7a6, 0 0 10px #f7a7a6; }
.tile.chapter4, .toc-card.chapter4 { box-shadow: 0 0 8px #97c1a9, 0 0 10px #97c1a9; }
.tile.chapter5, .toc-card.chapter5 { box-shadow: 0 0 8px #f9c97b, 0 0 10px #f9c97b; }
.tile.chapter6, .toc-card.chapter6 { box-shadow: 0 0 8px #b0bec5, 0 0 10px #b0bec5; }
.tile.chapter7, .toc-card.chapter7 { box-shadow: 0 0 8px #f5a671, 0 0 10px #f5a671; }
.tile.chapter8, .toc-card.chapter8 { box-shadow: 0 0 8px #6ddac9, 0 0 10px #6ddac9; }
.tile.chapter9, .toc-card.chapter9 { box-shadow: 0 0 8px #d3cfc4, 0 0 10px #d3cfc4; }  
  
  
/* スクロールバー スマホ表示用 */
.box_tb02::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
.box_tb02::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}
.box_tb02::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 6px;
}
.box_hed02{
  margin: 0.8em 0 0.3em 0;
  width: 100%;
}
.box_hed02 p{
  margin-top: 0.5em;
  text-align: left;
}

.box_hed02 > .smf_no{
  display: block;
  width: 100%!important;
  max-width: 400px;
  margin: 0 auto;
}
.box_hed02 > .pc_no{
  display: none;
} 
  
h1{
  margin: 0;
  padding: 0.7em 0 0 0;
}
/*h1{
  margin: 0.5em 0 0.7em 0;
  padding: 0.5em 0 0.5em 0;
  line-height: 0.9em;
}
h1 p{
  margin: 0;
}
h1 p:last-child{
  padding: 0.6em 1.6em 0 0;
}
.h1_span01,
.h1_span02{
  padding: 0 5px 5px 5px;
  background-size: 100% 60%;
  font-size: 0.8em;
  line-height: 0.6em;
}
.h1_span02{
  font-size: 0.52em;
}
h1:after{
  transform: rotate(-10deg);
  top: 2.6em;
  right: auto;
  left: 81%;
  width: 19%;
  height: 150px;
}*/
.span_break{
  padding: 0.8em 0 0 0 ;
  display: inline-block;
}  
  
.h2_chapter{
  margin: 1em 0 2em 0;
  line-height: 0.6em;
}
.h2_chapter p span{
  padding: 0 20px 5px 13px;
  background-size: 100% 50%;
  font-size: 0.9em;
}
.h2_chapter p:first-child{
  font-size: 0.68em;
}

.h3_chapter{
  padding: 0 0 0 30px;
  font-size: 1.15em;
  letter-spacing: 0.3px;
}
.h3_chapter:before{
  top: 7px;
  left: 6px;
  width: 18px;
  height: 18px;
}
  
  
/* ピアタンセリフ */
.p_voice{
  width: calc(100% - 2rem - 7px);
  margin: 1.3em auto 1.7em auto;
  padding: 0.3em 1em 0.3em 1em;
  border: 3px #ddd solid;
  border-radius: 10px;
}
.p_voice p{
  width: calc(80% - 1rem);
  margin-left: 1em;
  font-size: 1em;
  line-height: 1.7em;
}
.img-face{
  width: 17%!important;
  height: 17%;
  min-width: 70px;
}

/* ピアタンのご紹介 */
.pia-block{
  display: block;
  text-align: center;
}
.pia-block img{
  display: inline-block;
  padding-top: 0.8em;
  width: 100%!important;
  height: 100%;
  max-width: 180px;
}
.pia-block-inner{
  width: 100%;
  margin-left: 0;
  line-height: 1.8em;
}
.pia-block-inner p{
  text-align: left;
}
.pia-block-inner h2{
  margin: 0.7em 0 0.5em 0;
  font-weight: 800;
}
.pia-block-inner a{
  display: inline-block;
  width: calc(100% - 2.5em);
  max-width: 350px;
  margin: 0em 0 0.8em 0;
  padding: 0.5em 1em;
  font-weight: 700;
  letter-spacing: 0;
}
  
.img-diagram01{
  width: 100%!important;
  height: 100%;
  align-items: center;
}
.img-diagram01 img{
  max-width: 100%;
  max-height: 280px;
}

.text_box01{
  display: block;
  margin-bottom: 1.6em;
}
.text_box01_inner{
  width: 100%;
  margin: 0 ;
}
.text_box01_inner p{
  line-height: 2em; 
}

.tb_chapter01{
  border-spacing: 10px 5px;
  width: 100%;
  max-width: 700px;
  margin: 1em auto 0 auto;
}
.tb_chapter01 tr{
  margin-bottom: 1em;
}
.tb_chapter01 th{
  display: block;
  width: 100%;
  padding: 0.3em 0;
  border-radius: 5px;
}
.tb_chapter01 th span{
  font-size: 0.8em;
}
.tb_chapter01 td{
  display: block;
  width: calc(100% - 0.6em);
  padding: 0.6em 0.3em;
  font-weight: 500;
  font-size: 0.95em;
  border-bottom: none;
}
.tb_chapter01 tr:last-child td{
  border-bottom: 2px solid #ddd;
}

P.tc01_p {
  margin: 0.9em 0 0.2em 0px;
  font-size: 0.8em;
  line-height: 1.5;
  display: flex;
  align-items:baseline;
}
.tc01_p span{
  display: block;
}
.tc01_p span:first-child{
  min-width: 60px;
  margin-right: 5px;
  padding: 10.3px 7px 9px 7px;
  font-size: 0.87em;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 0;
  text-align: center
  }

.box_tb02{
  overflow-x: scroll;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.tb_chapter02{
  border-spacing: 5px;
  margin: 0 auto 0 auto;
}
.tb_chapter02 tr{
  margin-bottom: 1em;
  text-align: center;
}
.tb_chapter02 th{
  padding: 0.2em 0.8em;
  border-radius: 4px;
  font-size: 0.85em;
}
.tb_chapter02 tr:first-child th{
  padding: 0.8em 0;
}
.tb_chapter02 td{
  padding: 0.5em 1em;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.tb_chapter03{
  border-spacing: 10px;
  width: 100%;
  max-width: 700px;
  margin: 1em auto 0 auto;
}
.tb_chapter03 tr{
  margin-bottom: 1em;
}
.tb_chapter03 th{
  width: calc(100% - 2em);
  padding: 0.4em 1em 0.3em 1em;
  background: #f2f2f2;
  border-radius: 5px;
  text-align: left;
}
.tb_chapter03 td{
  display: block;
  width: calc(100% - 2em);
  padding: 0.6em 1em;
  font-weight: 500;
  font-size: 0.95em;
}
  
/* 用語辞典 */
.box_qa{
  width: 100%;
  margin: 0 auto;
}
.box_qa summary{
  margin-bottom: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.box_qa p{
  margin: 0 0.5rem;
  padding: 0.8rem 0.5rem 0.6rem 0.5rem;
  line-height: 1.5;
  font-size: 0.9rem;
}
.box_qa p:last-child{
  margin-bottom: 2rem;
}
.box_qa p strong{
  padding-bottom: 0.3rem;
  font-weight: 700;
}
  
}/* スマホ終了 */