@charset "utf-8";

/* ===================================================================
 BASE
=================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  color: #222;
  width: 100%;
  min-width: 375px; /*bodyにmin-widthを指定しないと小さいデバイスで右サイドの余白がなくなる。*/
  font-family: MFW-UDDigiKyokashoPro-Regular, "UD デジタル 教科書体 NK",
    "UD デジタル 教科書体 NP", "UD デジタル 教科書体 N", "UDDigiKyokasho R",
    "BIZ UDゴシック Regular", "Hiragino Kaku Gothic ProN", ascii, sans-serif; /*UDデジタル教科書体 NKはWindows11標準フォント*/
  font-size: 18px;
  line-height: 1.6;
  padding: 10px;
  margin: 0 auto; /*ADEAC用reset トップページ以外で使用*/
  padding: 0;
  background: #f4f3e7 url(../images/kids/bg_pattern_paper.png) center top;
}

/* ぱんくず */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  list-style: none;
  margin-top:0;
  padding: 0;
  padding-left: 2em;
  background:#fff;
  font-size: 14px;
  font-family: MFW-UDDigiKyokashoPro-Regular, "UD デジタル 教科書体 NK",
    "UD デジタル 教科書体 NP", "UD デジタル 教科書体 N", "UDDigiKyokasho R",
    "BIZ UDゴシック Regular", "Hiragino Kaku Gothic ProN", ascii, sans-serif; /*UDデジタル教科書体 NKはWindows11標準フォント*/
}

.breadcrumb li {
  display: flex;
  align-items: center;
  line-height: 1.5;
  padding: 0.5em 0;
  font-size: 1rem;
}

.breadcrumb li:first-child::before {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 4px;
  background-image: url("../images/common/home_icon.png");
  background-size: 26px 26px;
  background-repeat: no-repeat;
  content: "";
}

.breadcrumb li:not(:last-child)::after {
  display: inline-block;
  transform: rotate(45deg);
  width: 0.5em;
  height: 0.5em;
  margin-left: 1em;
  border-top: 1px solid #262626;
  border-right: 1px solid #262626;
  content: "";
}

.breadcrumb a {
  color: #262626;
  text-decoration: none;
}

.breadcrumb li a:hover {
  color: #23527c;
  text-decoration: underline;
}
/* ぱんくず ここまで*/

h1 {
  margin-top: 0;
}

h2 {
  font-family: MFW-UDDigiKyokashoPro-Medium, "UD デジタル 教科書体 NK",
    "UD デジタル 教科書体 NP", "UD デジタル 教科書体 N", "UDDigiKyokasho R",
    "BIZ UDゴシック Regular", "Hiragino Kaku Gothic ProN", ascii, sans-serif;
  font-size: 178%; /*32px*/
  font-weight: 400;
  min-width: 7em;
  background: #fffef1;
  border: 2px solid #2a3d34;
  border-radius: 1em;
  box-shadow: 0 0 0 2px #fffef1;
  display: inline-block;
  padding: 0 1.2em 0 2.5em;
  margin-left: 5px;
  position: relative;
}
/*box-shadow: 左右の向きpx  上下の向きpx ぼかしpx 広がりpx 色 内側指定;*/

h2 span {
  display: block;
  margin-top: 2%;
  margin-bottom: 1%;
  line-height: 1;
}

h2 rt {
  font-size: 42%;
}

h2::before {
  position: absolute;
  top: -0.3em;
  top: 50%;
  left: -5px;
  content: "";
  display: inline-block;
  width: 2.2em;
  height: 2.2em;
  width: 2.4em;
  height: 2.4em;
  max-width: 70px;
  max-height: 70px;
  background: #fffef1 url(../images/kids/ico_makimono.png) center center no-repeat;
  background-size: 80%;
  border: 2px solid #2a3d34;
  box-shadow: 0 0 0 2px #fffef1, 1px 0 3px 3px rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

@media (max-width: 767.9px) {
  h2 {
    /*		height:1.9em;*/
    margin-top: 0.5em;
  }
}

@media (min-width: 576px) and (max-width: 767.9px) {
  h2 {
    font-size: clamp(1.5em, 0.375em + 3.13vw, 1.875em); /*24-30px*/
  }
}

@media (max-width: 575.9px) {
  h2 {
    font-size: 134%; /*24px*/
    font-size: 144%; /*26px*/
  }
}

h3 {
  font-family: MFW-UDDigiKyokashoPro-Medium, "UD デジタル 教科書体 NK",
    "UD デジタル 教科書体 NP", "UD デジタル 教科書体 N", "UDDigiKyokasho R",
    "BIZ UDゴシック Regular", "Hiragino Kaku Gothic ProN", ascii, sans-serif;
  font-size: 138%;
  font-weight: bold;
  background-color: #ddd;
  padding: 0.5rem 1rem;
  margin-top: 0.1em;
  border-radius: 10px; /*border-radius:左上 右上 右下 左下;*/
}

h3 ruby rt {
  margin-top: 1em;
}

p {
  margin-top: 0.5em; /*reset*/
}

p > a {
  padding: 0.5em;
}

/*...from bootstrap ver3... */
/*ADEACのトップで使うときはtop-main内で使用するよう要記載*/
a {
  color: #2f6fa7;
  color: #23527c;
  text-decoration: underline;
}
a:link,
a:visited {
  color: #337ab7;
  color: #2f6fa7;
}
a:hover,
a:active {
  color: #23527c;
  color: #7c2340; /*濃い赤*/
  background-color: #f2df0c; /*黄色*/
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

th,
td {
  border: 1px solid #444;
  padding: 0.5em;
}

th {
  background-color: #ccc;
}

/*奇数行（※一行目がthの場合、実質偶数行となる）*/
table tr:nth-child(odd) td {
  /*	background: yellow;*/
}

/*偶数行（※一行目がthの場合、実質奇数行となる）*/
table tr:nth-child(even) td {
  /*	background: hotpink;*/
}

/* 共通CSS */
:root {
  --td-border-color: #444;
}

/*===== FLOAT =====*/
.flo-left {
  float: left;
}

.flo-right {
  float: right;
}

.clearfix:after {
  content: "";
  display: block;
  height: 0;
  clear: both;
  overflow: hidden;
} /* IE以外のモダンWebブラウザ向け */

.clearfix {
  display: inline-block;
} /* IE7およびMac版IE5向け */

/* Hides from IE-mac \*/
* html .clearfix {
  height: 1%;
}
.clearfix {
  display: block;
}
/* End hide from IE-mac */ /* IE6以前向け */

/*===== HR =====*/
hr.hr_main_bdr {
  height: 1px;
  border: none;
  margin: 2.5em auto 2em;
  border-bottom: 1px solid #767676;
  width: 96%;
}

/* ===================================================================
 COMMON
=================================================================== */
#container {
  width: 100%;
}

header {
  position: relative;
  text-align: center;
  background: #fedc5e url(../images/kids/bg_pattern_hougan_white.png) left top repeat;
}

header::before {
  content: "　";
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 40px;
  background: transparent url(../images/kids/bg_header_bottom.png) center top
    repeat-x;
}

h1 img {
  width: 100%;
  max-width: 1070px;
}

@media (min-width: 576px) {
  h1 img.smp {
    display: none;
  }
}

@media (max-width: 575.9px) {
  h1 img {
    margin-bottom: 1rem;
  }
  h1 img.pc {
    display: none;
  }
}

#sp-learning #container {
}

#sp-timeline #container {
}

/*ヘッダー以外のコンテンツ幅を調整するためのクラス*/
.ctt-w {
  position: relative; /*main上部に背景を設置するために記載*/
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 100; /*main上部に背景を設置するために記載*/
}

header + .ctt-w {
  padding: 0 1.5em;
}

/*イントロテキストは各ページに2か所あります（メインタイトルの下、h2タイトルの下）*/
p.intro {
  margin-bottom: 2em;
  font-size: 112%; /*20px*/
}

/*ページ遷移のボタン*/
ul.ul-btn_pageseni {
  width: 80%;
  display: flex;
  justify-content: space-around;
  list-style: none;
  padding-left: 0;
  margin: 0 auto 5rem;
}

ul.ul-btn_pageseni li {
  margin: 0 0.5em 1em;
  display: flex; /* 直下の要素を並列に */
  flex-direction: column; /* 直下の要素を縦積みに */
}

ul.ul-btn_pageseni li a {
  position: relative;
  border-radius: 18px;
  border: 2px solid #fff;
  display: block;
  box-shadow: 0px 2px 2px 2px rgba(0, 0, 0, 0.5);

  transition: 0.5s;

  flex-grow: 1; /* 比率を指定 */

  display: flex; /* 直下の要素を並列に */
  flex-direction: column; /* 直下の要素を縦積みに */
}
/*box-shadow: 左右の向きpx  上下の向きpx ぼかしpx 広がりpx 色 内側指定;*/

ul.ul-btn_pageseni li a:link,
ul.ul-btn_pageseni li a:visited {
  color: white;
  text-decoration: none;
}

ul.ul-btn_pageseni li a:hover,
ul.ul-btn_pageseni li a:active {
  background-color: rgba(
    242,
    223,
    12,
    0
  ); /*リンクに背景色を設置した場合に使用*/
}

ul.ul-btn_pageseni li dl {
  padding-top: 0.4em;
  width: calc(100% - 1.9em);

  display: flex; /* 直下の要素を並列に */
  flex-direction: column; /* 直下の要素を縦積みに */
}

ul.ul-btn_pageseni li dt {
  font-weight: 400;
  font-family: sicgothicduex-re, sans-serif;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

/*ひらがな部分*/
ul.ul-btn_pageseni li dt span {
  font-size: 85%;
}

ul.ul-btn_pageseni li dt rt {
  font-size: 25%;
}

ul.ul-btn_pageseni li dd {
  margin-left: 1.5em;
  margin-right: 1.5em;
  flex-grow: 1; /* 比率を指定 */
}

ul.ul-btn_pageseni li dd rt {
  font-size: 60%;
}

ul.ul-btn_pageseni li.btn_shiru-manabu a {
  width: 100%;
  max-width: 534px;
  background: #a70810 url(../images/kids/bg_btn_shiru-manabu.png) right center
    no-repeat; /*中間色の赤*/
  text-shadow: -1px -1px 1px #9c080f, 1px -1px 1px #9c080f, -1px 1px 1px #9c080f,
    1px 1px 1px #9c080f;
}

ul.ul-btn_pageseni li.btn_timeline a {
  width: 100%;
  max-width: 335px;
  background: #074e94 url(../images/kids/bg_btn_timeline.png) left center no-repeat;
  text-shadow: -1px -1px 1px #074e94, 1px -1px 1px #074e94, -1px 1px 1px #074e94,
    1px 1px 1px #074e94;
}

ul.ul-btn_pageseni li a:hover,
ul.ul-btn_pageseni li a:active {
  color: #222;
  background-color: rgba(242, 223, 12, 1);
  background-color: #ebd51f; /*#f2de0c 黄色*/
  text-shadow: none;
  text-shadow: -1px -1px 1px #ebd51f, 1px -1px 1px #ebd51f, -1px 1px 1px #ebd51f,
    1px 1px 1px #ebd51f;
}

ul.ul-btn_pageseni li a::after {
  position: absolute;
  right: 0;
  top: 0;
  color: orange;
  content: "";
  width: 1.9em;
  display: block;
  height: calc(100% - 4px);
  border-radius: 0 14px 14px 0;
  padding: 8px;
  padding: 0.45em;
  margin: 2px 2px 2px 0;
  background: transparent url(../images/kids/btn_pageseni_ar.png) center center
    no-repeat;
  background-size: 100% auto;
}

/*各ページの解説（ブラウザ幅が狭いときに表示されます）*/
ul.ul-kaisetu_pageseni {
  margin-right: auto;
  margin-left: auto;
  padding-left: 1.2em;
}

ul.ul-kaisetu_pageseni li {
}

ul.ul-kaisetu_pageseni dt::after {
  content: "…";
  display: inline-block;
  padding-left: 0.2em;
}

/*ブラウザ幅：1200px以上*/
@media (min-width: 1200px) {
  ul.ul-btn_pageseni li dt {
    font-size: 288%; /*52px*/
  }
}

/*ブラウザ幅：768～1200px*/
@media (min-width: 768px) and (max-width: 1199.9px) {
  ul.ul-btn_pageseni,
  ul.ul-kaisetu_pageseni {
    width: 85%;
    justify-content: space-around;
  }

  ul.ul-btn_pageseni li dl {
    height: 100%;
  }

  ul.ul-btn_pageseni li dt {
    font-size: clamp(2.125em, 1.014em + 2.31vw, 2.75em); /*34-44px*/
  }
}

@media (max-width: 991.9px) {
  ul.ul-btn_pageseni li dd {
    font-size: 88%;
  }
}

/*ページ説明をボタン内に表示にする範囲*/
@media (max-width: 429.9px), (min-width: 768px) {
  ul.ul-kaisetu_pageseni {
    display: none;
  }
}

@media (max-width: 767.9px) {
  ul.ul-btn_pageseni {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  ul.ul-btn_pageseni li a::after {
    width: 1.5em;
  }

  ul.ul-btn_pageseni li dl {
    padding-top: 0.3em;
    width: calc(100% - 1.5em);
    padding-bottom: 0.1em;
    margin-right: 30px;
    margin-right: 1.9em;
  }

  ul.ul-btn_pageseni li.btn_timeline dt {
    min-width: 5em;
  }

  ul.ul-btn_pageseni dt {
    padding: 0.2em 0.5em;
  }

  ul.ul-btn_pageseni li dt rt {
    font-size: 40%;
  }
}

/*ページ説明を外に出す範囲*/
@media (min-width: 430px) and (max-width: 767.9px) {
  ul.ul-btn_pageseni {
    margin-bottom: 0;
  }

  ul.ul-btn_pageseni li dt {
    font-size: clamp(1.438em, -0.625em + 5.73vw, 2.125em); /*23-34px*/
  }

  ul.ul-btn_pageseni dd {
    display: none;
  }

  ul.ul-btn_pageseni li.btn_shiru-manabu a,
  ul.ul-btn_pageseni li.btn_timeline a {
    background-size: cover;
  }
}

@media (max-width: 575.9px) {
  header + .ctt-w {
    padding: 0 1em;
  } /*#mainの余白と揃える*/
}

/*スマートフォン縦*/
@media (max-width: 429.9px) {
  ul.ul-btn_pageseni {
    justify-content: start;
    margin-bottom: 1.5em;
  }

  ul.ul-btn_pageseni li {
    width: 100%;
  }

  ul.ul-btn_pageseni li dt {
    font-size: 167%; /*30px*/
  }

  ul.ul-btn_pageseni li dd {
    font-size: 100%;
  }
}

#main {
  position: relative;
  background: transparent url(../images/kids/bg_footer.png) center bottom no-repeat;
  background-size: 100vw 18vw;
  padding: 1.5em 1.5em 20vw;
}

#main::before {
  position: absolute;
  left: 0;
  top: 0;
  content: "　";
  width: 100%;
  height: 100%;
  background: transparent url(../images/kids/bg_seigaiha.png) center top repeat-x;
  background-size: auto auto;
  z-index: 10;
}

#sp-learning #main {
  background-color: #b30912;
}

#sp-timeline #main {
  background-color: #0857a6;
}

#main p {
  color: #fff;
}

#bg_hougan {
  width: 100%;
  background: #fff url(../images/kids/bg_pattern_hougan.png) left top repeat;
  padding: 0.9em;
  border-radius: 24px;
}

#bg_hougan p {
  color: #222;
}

.theme-each {
  width: 100%;
  padding: 14px 16px 16px 16px;
  border: 1px dashed #666;
  margin-bottom: 2.5em;
  border-radius: 16px;
}

#bg_hougan .theme-each:last-child {
  margin-bottom: 0;
}

.theme-each hr {
  margin: 2.5em auto 2em;
  width: 96%;
}

/*ブラウザ幅1300px以上*/
@media (min-width: 1300px) {
  #main {
    background: transparent url(../images/kids/bg_footer.png) center bottom no-repeat;
    background-size: 100vw 18vw;
  }
}

/*ブラウザ幅992px未満*/
@media (max-width: 991.9px) {
  #main {
    padding-bottom: 22vw;
  }
}

/*ブラウザ幅576px未満*/
@media (max-width: 575.9px) {
  #main {
    background: transparent url(../images/kids/bg_footer.png) center bottom no-repeat;
    background-size: 100% auto;
    padding: 1em 1em 22vw; /* "header + .ctt-w"の余白と揃える */
  }

  #bg_hougan {
    padding: 0.5em;
  }

  .theme-each {
    padding: 0.5em 0.5em 1.5em;
    margin-bottom: 2em;
    border: none;
    border-bottom: 2px solid #b30912; /*背景と同じ赤*/
    border-radius: 0;
  }

  .theme-each:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .theme-each hr {
    /*		display:none;*/
    visibility: hidden;
    margin: 1em auto;
  }
}

/*----- 知る・学ぶ -----------------------------------*/
/*質問ごとのページ内リンク*/
ul.ul-question {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1em;
}

ul.ul-question li {
  margin: 0 0.5em 1em;
}

ul.ul-question li a {
  padding: 0.8em 0.5em 0.3em;
  border-radius: 0.5em;
  background-color: #fff;
}

ul.ul-question li a:link,
ul.ul-question li a:visited {
}

ul.ul-question li a:hover,
ul.ul-question li a:active {
  background-color: #f2df0c; /*黄色*/
}

@media (max-width: 470px) {
  ul.ul-question li {
    line-height: 2.5;
  }
}

.chat {
  display: flex;
  align-items: flex-start;
  width: 94%;
  margin: 1.2em auto;
}

.chat__r {
  justify-content: flex-end;
}

.chat__r .chat__icon {
  order: 1;
}

.chat__icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 1em;
}

.chat__text {
  position: relative;
  max-width: 500px; /* 吹き出しの横幅最大値, 不要ならこの一行削除 */
  padding: 10px 15px; /* テキスト内余白 (上下10px 左右15px) */
  font-size: 113%; /*20px*/
  padding-top: 18px; /*★後ほどルビが入るときのみに調整*/
}

/* ボーダー */
:root {
  --border-chat-item-distance: 8px; /* アイコン画像〜吹き出し間の距離(吹き出し角分は自動で空きます) */
  --border-chat-triangle-size: 16px; /* 吹き出し角大きさ */
  --border-chat-triangle-position-top: 15px; /* 吹き出し角位置(上から) */
  /*  --border-chat-text-border-width: 2px;*/ /* テキストボーダー太さ */
}

.border__chat {
  /*  gap: 0 calc(var(--border-chat-item-distance) + calc(calc(var(--border-chat-triangle-size) / 1.5) + calc(var(--border-chat-text-border-width) * 2) - calc(var(--border-chat-text-border-width) - 1px)));*/
  gap: 0
    calc(
      var(--border-chat-item-distance) +
        calc(calc(var(--border-chat-triangle-size) / 1.5) + 3px)
    );
}

/*話し手のアイコン*/
.border__chat .chat__icon {
  border-radius: 50%;
  background-color: rgb(240, 240, 240);
  /*  background-image: url(images/talking_boy_gatten.png);*/ /*質問者の初期値のイラスト*/
  border: 2px solid #767676;
  position: relative;
}

.border__chat.boy_thinking .chat__icon {
  background-image: url(../images/kids/talking_boy_thinking.png);
} /*口を開いたバージョン*/
.border__chat.boy_thinking2 .chat__icon {
  background-image: url(../images/kids/talking_boy_thinking2.png);
} /*口を閉じたバージョン*/
.border__chat.boy_gatten .chat__icon {
  background-image: url(../images/kids/talking_boy_gatten.png);
}
.border__chat.boy_hirameki .chat__icon {
  background-image: url(../images/kids/talking_boy_hirameki.png);
}

.border__chat.girl_thinking .chat__icon {
  background-image: url(../images/kids/talking_girl_thinking.png);
}
.border__chat.girl_thinking2 .chat__icon {
  background-image: url(../images/kids/talking_girl_thinking2.png);
}
.border__chat.girl_gatten .chat__icon {
  background-image: url(../images/kids/talking_girl_gatten.png);
}
.border__chat.girl_hirameki .chat__icon {
  background-image: url(../images/kids/talking_girl_hirameki.png);
}

.border__chat .chat__icon::after {
  content: "質問者";
  display: block;
  position: absolute;
  bottom: -30px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: 94%; /*17px*/
}

.border__chat[class*="boy_"] .chat__icon::after {
  content: "じょうさん";
}

.border__chat[class*="girl_"] .chat__icon::after {
  content: "みやこさん";
}

/*回答者のアイコン*/
.border__chat.chat__r .chat__icon {
  background-image: url(../images/kids/talking_hisanao.png);
}

.border__chat.chat__r .chat__icon::after {
  content: "ひさなおくん";
  white-space: nowrap;
}

.border__chat .chat__text {
  border-radius: 0.5em;
  border: 2px solid #767676;
  background: #f2f2bb; /*薄い黄色*/
  color: #333;
}

.border__chat.chat__r .chat__text {
  background-color: #dae3f2; /*薄い水色*/
  max-width: 600px;
}

.border__chat .chat__text::before,
.border__chat .chat__text::after {
  content: "";
  display: block;
  position: absolute;
  clip-path: polygon(100% 100%, 100% 0, 0 50%);
}

/*吹き出しの三角部分のボーダー*/
.border__chat .chat__text::before {
  top: calc(var(--border-chat-triangle-position-top) - 2px);
  right: 100%;
  width: calc(calc(var(--border-chat-triangle-size) / 1.5) + 3px);
  height: calc(var(--border-chat-triangle-size) + 4px);
  background: #767676;
}

/*吹き出しの三角部分（左）*/
.border__chat .chat__text::after {
  top: var(--border-chat-triangle-position-top);
  right: calc(100% - 1px);
  width: calc(var(--border-chat-triangle-size) / 1.5);
  height: var(--border-chat-triangle-size);
  background: #f2f2bb; /*薄い黄色*/
}

/*吹き出しの三角部分（右）*/
.border__chat.chat__r .chat__text::after {
  background: #dae3f2; /*薄い水色*/
}

.border__chat.chat__r .chat__text::before,
.border__chat.chat__r .chat__text::after {
  right: auto;
  clip-path: polygon(100% 50%, 0 0, 0 100%);
}

.border__chat.chat__r .chat__text::before {
  left: 100%;
}

.border__chat.chat__r .chat__text::after {
  left: calc(100% - 1px);
}

@media (max-width: 575.9px) {
  .chat {
    width: 100%;
    display: block;
  }

  .chat__icon {
    position: relative;
    flex-shrink: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 1em;
    margin: 0 auto 1em;
    left: 0;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
  }

  /*名前*/
  .border__chat .chat__icon::after,
  .border__chat.chat__r .chat__icon::after {
    position: absolute;
    bottom: auto; /*reset*/
    top: 50%;
    right: calc(-100% - 0.5em);
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
  }

  /*吹き出しの三角部分のボーダー*/
  .border__chat .chat__text::before,
  .border__chat .chat__text::after {
    position: absolute;
    left: 50%;
    transform: rotate(90deg);
  }

  /*吹き出しの三角部分のボーダー（こども）*/
  .border__chat .chat__text::before {
    top: -17px;
    right: auto; /*reset*/
    left: calc(50% - 1px);
  }

  /*吹き出しの三角部分（左）*/
  .border__chat .chat__text::after {
    top: -13px;
    right: auto;
  }

  /*吹き出しの三角部分のボーダー（右）*/
  .border__chat.chat__r .chat__text::before,
  .border__chat.chat__r .chat__text::after {
    left: 50%;
    transform: rotate(-90deg);
  }

  .border__chat.chat__r .chat__text::before {
    left: calc(50% - 1px);
  }

  /*吹き出しの三角部分（右）*/
  .border__chat.chat__r .chat__text::after {
    background: #dae3f2; /*薄い水色*/
  }
}

.area-kuwashiku {
  position: relative;
  width: 94%;
  max-width: 790px;
  padding-top: 32px;
  margin: 0 auto 1em;
}

.area-kuwashiku h4 {
  position: absolute;
  top: 18px;
  left: 2rem;
  left: 4%;
  font-size: 111%;
  color: #fff;
  border: 2px solid #fff;
  background-color: #55548c;
  box-shadow: 0 0 0 2px #555; /* 外側の線に見える影 */
  padding: 5px 5px 0 8px;
  margin: 0;
  z-index: 100;
}

/*虫眼鏡マーク*/
.area-kuwashiku h4::before {
  content: "\03000";
  width: 24px;
  height: 24px;
  display: inline-block;
  background-image: url(../images/kids/ico_mushimegane_kuwashiku.png);
  background-size: cover;
  margin: 0 5px 0 0;
  line-height: 1;
  vertical-align: 15%;
}

.area-kuwashiku .content {
  position: relative;
  border: 2px solid #555;
  background-color: #fbdade; /*桜色*/
  z-index: 20;
  padding: 2.8rem 30px 0 1em;
}

.area-kuwashiku .thumb {
  float: left;
  display: inline-block;
  width: 100%;
  max-width: 200px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.area-kuwashiku .thumb img {
  display: block;
  width: 100%;
  max-width: 220px;
  border: 1px solid #767676;
}

.area-kuwashiku .thumb.tate {
  width: auto;
  max-width: initial;
}

.area-kuwashiku .thumb.tate img {
  width: initial;
  max-height: 220px;
}

.area-kuwashiku p {
  float: left;
  width: calc(100% - 220px);
  display: inline-block;
  font-size: 105%; /*29px*/
  margin-top: 0;
}

@media (max-width: 575.9px) {
  .area-kuwashiku {
    position: relative;
    width: 100%;
  }

  .area-kuwashiku .content {
    border: 5px dotted #999;
  }

  .area-kuwashiku h4 {
    box-shadow: 0 0 0 2px #999;
    box-shadow: 0 0 0 1px #767676;
  }

  .area-kuwashiku .thumb {
    float: none;
    display: block;
    margin: 0 auto 1rem;
  }

  .area-kuwashiku p {
    float: none;
    display: block;
    width: 100%;
  }

  .area-kuwashiku .thumb.tate img {
    margin: 0 auto;
  }
}

/*----- 年表 -----------------------------------*/
/*時代ごとのページ内リンク*/
ul.ul-era {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0;
  margin-bottom: 1em;
}

ul.ul-era li {
  margin: 0 0.5em 0.5em;
}

ul.ul-era li a {
  padding: 0.2em 0.5em 0.3em;
  border-radius: 1em;
  background-color: #fff;
}

ul.ul-era li a:link,
ul.ul-era li a:visited {
}

ul.ul-era li a:hover,
ul.ul-era li a:active {
  background-color: #f2df0c; /*黄色*/
}

table.tbl-timeline {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  font-size: 113%;
  border: 1px solid var(--td-border-color);
  border-radius: 16px;
}

table.tbl-timeline th {
  background: #bde5ee;
  font-weight: normal;
}

table.tbl-timeline tr:first-child th {
  white-space: nowrap;
  background-color: #fedc5e; /*黄色*/
  border-bottom: 1px solid var(--td-border-color);
}

table.tbl-timeline td {
  border-top: 0;
  border-bottom: 2px dotted #767676;
}

table.tbl-timeline td ruby rt {
  margin-top: 1em;
}

table.tbl-timeline [id^="era_"] th,
table.tbl-timeline [id^="era_"] td {
  border-top: 1px solid var(--td-border-color);
}

table.tbl-timeline [id^="era_"] th {
  vertical-align: top;
}

table.tbl-timeline tr.tr_jidai-end td,
table.tbl-timeline tr:last-child > * {
  border-bottom: 1px solid var(--td-border-color);
}

/*テーブル左上のセル*/
table.tbl-timeline tr:first-child > *:first-child {
  border-radius: 14px 0 0 0;
}

/*テーブル右上のセル*/
table.tbl-timeline tr:first-child > *:last-child {
  border-radius: 0 14px 0 0;
}

/*テーブル左下のセル*/
table.tbl-timeline tr:last-child > th:first-child {
  border-radius: 0 0 0 14px;
}

/*テーブル右下のセル*/
table.tbl-timeline tr:last-child > *:last-child {
  border-radius: 0 0 14px 0;
}

.scroll-hint-text {
  font-family: meiryo, sans-serif;
}

table.tbl-timeline .thumb {
  padding-top: 1em;
  margin-bottom: 0.3em;
}

table.tbl-timeline .thumb + .thumb {
  padding-top: 0.5em;
}

table.tbl-timeline .thumb > a {
  display: inline-block;
  background-color: #fafad2; /*薄い黄色*/
  background-color: #eee;
  padding: 5px;
}

table.tbl-timeline .thumb > a:hover img,
table.tbl-timeline .thumb > a:active img {
  transform: scale(1.2);
  transition-duration: 0.5s;
  opacity: 0.75;
}

table.tbl-timeline figure {
  margin: 0;
  text-align: center;
}

span.img_on {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background-color: #303010; /*濃いカーキ*/
  border: 1px solid #303010;
}

table.tbl-timeline .thumb a span.img_on::after {
  content: "";
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  transition: 0.5s;
  background: rgba(0, 0, 0, 0.55) url(../images/kids/ico_mushimegane_kuwashiku.png)
    45% 40% no-repeat;
  background-size: 60% 60%;
  border-radius: 50%;
  box-shadow: 0px 0px 1px black;
}

table.tbl-timeline figure img {
  width: 100%;
  display: block;
  max-width: 220px;
  margin-right: auto;
  margin-left: auto;
  transition-duration: 0.5s;
}

table.tbl-timeline figure img.tate {
  width: auto;
  max-height: 220px;
}

table.tbl-timeline figcaption {
  padding: 0;
  max-width: 220px;
}

table.tbl-timeline figcaption ruby rt {
  margin-top: 0;
}

table.tbl-timeline a:hover figcaption {
  background-color: #f2df0c;
}

/*リンクのないサムネイルのスタイル*/
table.tbl-timeline .thumb.nolink {
  display: block;
  background-color: #eee;
  padding: 5px;
  width: fit-content;
  width: -moz-fit-content;
  max-width: 230px;
  margin-top: 1em;
}

table.tbl-timeline .thumb.nolink figure img {
  margin-left: 0;
  margin-right: 0;
  display: block;
  margin-bottom: 5px;
  border: 1px solid #303010;
}

/*外部リンク*/
/*事項文（テキスト）*/
a.a-link_gaibu:after {
  content: url(../images/common/link_icon.png);
  margin-left: 0.2em;
  margin-right: 0.2em;
}
/*サムネイル画像*/
span.img_guibu {
  position: relative;
  display: inline-block;
  overflow: hidden;
  background-color: #303010; /*濃いカーキ*/
  border: 1px solid #303010;
}

table.tbl-timeline .thumb a span.img_guibu::after {
  content: "";
  width: 40px;
  height: 40px;
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  transition: 0.5s;
  background: rgba(0, 0, 0, 0.55) url(../images/kids/link_icon_large.png)
    45% 40% no-repeat;
  background-size: 60% 60%;
  border-radius: 50%;
  box-shadow: 0px 0px 1px black;
}





/* page-top(from adeac_style.css 2025/11/26)
---------------------------------------------- */
#page-top {
  position: fixed;
  right: 0;
  bottom: -65px;
  width: 65px;
  height: 65px;
  background: #262626;
  opacity: 0.8;
  z-index: 100000;
}

#page-top a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

#page-top a:hover,
#page-top a:active {
  background-color: #262626;
}

#page-top img {
  position: absolute;
  inset: 0;
  margin: auto;
  transition: 0.5s;
}

#page-top a:hover img,
#page-top a:active img {
  opacity: 0.8;
}

/* webフォントによって太字が効かないための対応(2026/2/6)
---------------------------------------------- */
b {
  border-bottom: double 6px #555;
}
