@charset "UTF-8";

* {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    font-size: 15px;
    line-height: 2.4;
    margin: 0px;
    padding: 0px;
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", sans-serif;
    color: #444444;
    margin: 0;
    padding: 0;
    user-select: none;
}

.contents {
    height: auto;
    margin-top: 0px;
    margin-bottom: 100px;
    padding: 0px 0px 20px 0px;
}

.container {
    height: auto;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media screen and (min-width: 769px) {
    .contents {
        margin-bottom: 30px;
    }

    .container {
        margin-top: 40px;
    }
}

/* リンク・リスト */
.lnk_dc {
    line-height: 1.7;
    margin: 0px 0px 0px 5px;
    width: auto;
}
.lnk_dc a {
    color: #0000ff;
    font-weight: bold;
    text-decoration: none;
}
.name_dc {
    line-height: 1.7;
    margin: 0px 0px 0px 5px;
    width: auto;
}
.name_dc a {
    color: #0000ff;
    font-weight: bold;
    text-decoration: none;
}
.title_dc {
    display:none;
}

p {
    line-height: 1.7;
}

ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
}

/* メニュー */
.wrap_menu {
    width: 100%;
}

.blk_menu {
    float: none;
    width: 100%;
    margin: 0px auto 60px auto;
    padding: 0px 0px 0px 10px;
}

.tb_menu {
    width: 100%;
    margin: auto;
}

.title_jh,
.title_jh_t {
    font-size: 1em;
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    width: 99%;
    height: 33px;
    margin: 2px 0.5% 0px 0.5%;
    padding: 0px 0px 0px 20px;
    display: block;
    appearance: none;
    background-color: #ff4081;
    border-radius: 8px;
    outline: 1px solid white;
    outline-offset: -2px;
    cursor: grab;
}

.title_jh.ul.li {
    margin: 0;
}

.title_wo {
    font-size: 1em;
    color: #ffffff;
    text-align: left;
    text-decoration: none;
    width: 96%;
    height: 33px;
    margin: 2px 2% 0px 2%;
    padding: 0px 0px 0px 20px;
    display: block;
    appearance: none;
    background-color: #7281f6;
    border: none;
    border-radius: 8px;
    outline: 1px solid white;
    outline-offset: -2px;
    cursor: grab;
}

.title_wo_t {
    font-size: 1em;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    width: 96%;
    height: 33px;
    margin: 2px 2% 0px 2%;
    padding: 0px 0px 0px -4px;
    display: block;
    appearance: none;
    background-color: #7281f6;
    border: none;
    border-radius: 8px;
    outline: 1px solid white;
    outline-offset: -2px;
    cursor: grab;
}

.title_wj {
    font-size: 1em;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    width: 100%;
    height: 33px;
    margin: 2px auto 0px auto;
    padding: 0px;
    display: block;
    appearance: none;
    background-color: #b16aeb;
    border: none;
    border-radius: 8px;
    outline: none;
    cursor: grab;
}

.y_block {
    color: white;
    text-align: right;
    line-height: 24px;
    width: 60px;
    height: 24px;
    padding: 0px 3px 0px 0px;
    display: inline-block;
    border-radius: 3px;
    vertical-align: middle;
}

.title_jh_h {
    font-size: 1em;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    width: 49%;
    height: 33px;
    margin: 2px 0.5% 0px 0.5%;
    padding: 0px;
    display: block;
    float: left;
    appearance: none;
    background-color: #ff4081;
    border-radius: 8px;
    outline: 1px solid white;
    outline-offset: -2px;
    cursor: grab;
}

.title_wo_h {
    font-size: 1em;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    width: 46%; 
    height: 33px;
    margin: 2px 2% 0px 2%;
    padding: 0px;
    display: block;
    float: left;
    appearance: none;
    background-color: #7281f6;
    border: none;
    border-radius: 8px;
    outline: 1px solid white;
    outline-offset: -2px;
    cursor: grab;
}
@media screen and (min-width: 769px) {
    .name_dc {
        display: inline-block;
        width: 280px;
    }
    .title_dc {
        display: inline-block;
        font-size: 12px;
    }
    .wrap_menu {
        height: auto;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
        padding: 0;
    }

    .title_jh {
        width: 350px;
        margin: 5px auto 0px 0px;
    }

    .title_jh_t {
        width: 360px;
        margin: 5px 5px 0px 5px;
        display: block;
        float: left;
    }

    .title_jh_h {
        width: 140px;
    }

    .title_wo_h {
        width: 140px;
    }

    .blk_menu {
        width: 45%;
        /*margin: 0px auto 100px auto;*/
        /*margin-bottom: 200px;*/
        float: left;
    }

    .title_wo {
        width: 350px;
        margin: 5px auto 0px 0px;
        padding: 3px 0px 0px 20px;
    }

    .title_wo_t {
        width: 360px;
        margin: 5px 5px 0px 5px;
        padding: 0;
        display: block;
        float: left;
    }

    .title_wj {
        width: 360px;
        float: left;
    }

    .txt_img {
        /* float: right; */
    }
}

/* ナビゲーション・ボタン */
.wrap_menu_r {
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media screen and (min-width: 769px) {
    .wrap_menu_r {
        width: 100%;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 学習テキスト */
.img_txt {
    /* float: left; */
}

.img_yougo {
    /* float: left; */
}

.blk_text {
      position: relative;
    height: auto;
    width: auto;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
      padding-bottom: 120px;
  overflow: visible;
}

.text_main {
    height: auto;
    width: auto;
    margin: 0px auto 10px auto;
    padding: 0;
    /* overflow-y: scroll; */
}

.blk_img {
    height: auto;
    width: auto;
    margin: 0px auto 60px auto;
    padding: 0;
}

@media screen and (min-width: 769px) {
    .img_txt {
        width: 310px;
        margin-left: 10px;
        position: fixed;
        float: left;
        z-index: -1;
    }

    .img_yougo {
        width: 310px;
        margin-left: 10px;
        float: left;
        z-index: -1;
    }

    .blk_text {
        height: auto;
        width: 100%;
        margin: 0;
        overflow-y: auto;
    }

    .text_main {
        height: auto;
        width: 50%;
        margin: 0px auto 10px auto;
        padding: 0px 10px 10px 0px;
        display: block;
        float: left;
    }

    .blk_img {
        width: 45%;
        margin: 0px 0px 0px 5%;
        display: block;
        float: left;
    }
}
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* 年表関連人名 */
.chro_p {
    width: 200px;
    display: inline-block;
}

.chro_age {
    width: 50px;
    text-align: right;
    display: inline-block;
}
.chro_kazoe {
    width: auto;
    text-align: left;
    display: inline-block;
}

.mrk_age {
    font-size: 0.6em;
    margin-left: 5px;
}

.hd_title {
    font-family: ui-rounded;
    font-size: 1.2em;
    padding: 0px 0px 0px 10px;
}

h1 {
    width: auto;
    font-size: 1em;
    margin: 20px 0px 0px 0px;
    padding: 0;
    text-align: center;
}

.headline {
    font-family: ui-rounded;
    font-size: 1.6em;
    font-weight: bold;
    margin-bottom: 5px;
}

.title_s {
    font-weight: bold;
    height: 30px;
    margin-top: 20px;
    padding: 0px 0px 0px 10px;
    border-left: solid 5px #d40a0a;
    border-bottom: dotted 1px #d40a0a;
}

.text_1 {
    padding: 0px 0px 0px 30px;
}

.title_3 {
    margin-left: 40px;
    text-indent: -1rem;
}

.title_3:before {
    content: "・";
}

a:hover {
    opacity: 0.8;
}

footer {
    width: 100%;
    bottom: 0;
    top: 10;
    position: fixed;
    font-size: 0.7em;
    text-align: center;
}

.sub_title_jh {
    width: 100%;
    margin-top: 5px;
    text-align: center;
    font-size: 1.2em;
    color: #ff4081;
}

.sub_title_wo {
    width: 100%;
    margin-top: 5px;
    text-align: center;
    font-size: 1.2em;
    color: #7281f6;
}

.topic {
    font-size: 1.0em;
    font-weight: bold;
}

.D {
    width: 30px;
    height: 15px;
    margin: 0px 2px;
    padding: 0px;
    color: #ffffff;
    display: inline-block;
    background: #ffe6ef;
    position: relative;
    border-radius: 3px;
    cursor: pointer;
}

.D::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 11px;
    width: 6px;
    height: 6px;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    transform: rotate(225deg);
    transition: all 0.2s;
    z-index: 1;
}

.D.open::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 11px;
    width: 6px;
    height: 6px;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    transform: rotate(45deg);
    z-index: 1;
}

.E {
    width: 100%;
    height: auto;
    padding: 10px;
    display: none;
    border-style: solid;
    border-radius: 5px;
}

.yougo {
    border-bottom: dotted 2px #999999;
}

.yougo_comment {
    width: 100%;
    height: auto;
    padding: 5px;
    display: none;
    background: #ffffff;
    border: solid 0.5px #999999;
    border-style: solid;
    border-radius: 5px;
}

.box {
    height: auto;
    width: fit-content;
    display: flex;
    overflow-x: scroll;
}

@media screen and (min-width: 769px) {
    .box {
        overflow-x: hidden;
    }
}

/* 世界史アコーディオンメニュー */
nav {
    display: none;
}

.guide {
    margin: 0px auto 60px auro;
    line-height: 1.5;
}

/* チェック・シート */
.check_a {
    display: inline;
    color: #b22222;
    background: #b22222;
}

.check_b {
    display: inline;
    color: red;
    font-weight: bold;
    background: none;
}

/* 確認問題 */
.blank_img {
    width: 60px;
    height: 20px;
    vertical-align: middle;
}

#box {
    width: auto;
    height: auto;
    margin-top: 10px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    border: none;
}

button {
    font-size: 1em;
    text-align: left;
    margin: 5px 0px 0px 10px;
    display: inline-block;
    background: none;
    border: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: grab;
}

/* チェックボックス・デザイン */
.list {
    width: 100%;
    margin: 0 0 50px 0;
    float: left;
    border-spacing: 0;
}

.list dl {
    width: 100%;
    border: 1px solid #e4e4e4;
}

.list dl dt {
    width: 10%;
    padding: 2%;
    display: inline-block;
    vertical-align: middle;
}

.list dl dd {
    width: 81%;
    padding: 2%;
    display: inline-block;
    vertical-align: middle;
    border-left: 1px dotted #e4e4e4;
}
.list dl.disabled,
.list dl:disabled {
    background: #efefef;
    cursor: not-allowed;
}

.list dl dt,
.list dl dd {
    width: auto;
    padding: 2%;
    display: flex;
    align-items: center;
    border-left: 1px dotted #e4e4e4;
}

/* 世界史メニュー　横スクロールするCSS */
.f_container {
    width: fit-content;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
    overflow-x: auto;      /* 横スクロールを許可 */
     -webkit-overflow-scrolling: touch; /* iOS対策（慣性スクロール） */
}

.table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.SvgFrame {
    width: 330px;
    height: 550px;
    xml:space: preserve;
}

.SvgFrame1 {
    width: 23px;
    height: 550px;
    xml:space: preserve;
}

.SvgFrame2 {
    width: 550px;
    height: 550px;
    xml:space: preserve;
}

.f_item1 {
    width: fit-content;
    margin: 0px auto 50px auto;
    flex-flow: row nowrap;
}

.f_item2 {
    width: fit-content;
    height: auto;
    flex-flow: row nowrap;
}

/* コピーライト（固定） */
.copy_right {
    width: 100%;
    bottom: 0px;
    margin: 0;
    padding: 0;
    position: fixed;
    text-align: center;
    font-size: 0.9em;
    background-color: #FFF;
    color: #333;
    z-index: 100;
}
.guide_box {
    height: auto;
    width: 100%;
    max-width: 600px;
    margin: auto auto 60px auto;
    /*
    padding-left: 60px;
    padding-right: 60px;
    */
}
/*年齢の表記*/
/*年齢吹き出し表示*/
.balloonbtn {
    position: relative;             /* 指定した分だけ相対的に移動 */
    cursor: pointer;                /* カーソルをポインターで表示 */
    font-size: 0.7em;
/*    color: #FFFFFF;*/
    background-color: #fdcecc;
    margin-left: 10px;
    padding:2px;
    border: 3px solid #fdcecc;;
    border-radius:5px;
    -webkit-border-radius:5px;
    -moz-border-radius:5px;
}
.balloon_none {
  display: none;                     /* 要素を非表示 */
}
.balloon {
  position: absolute;                   /* 親要素を基準 */
  display: inline;                      /* 要素をインラインとして表示 */
  padding: 8px;                         /* テキストの前後の余白 */
  background-color: #fdcecc;       /* 背景色（透明度） */
  width:242px;                          /* 吹き出し全体の幅 */
  left : -100%;                           /* 表示位置 */
  /*
  bottom : 100%;
  margin-bottom : 12px;
  */
  top: 100%;
  margin-top: 12px;
  margin-bottom: auto;
  font-size: 1.2em;
    border-color: #FF4081;
    border-radius:10px;
    -webkit-border-radius:10px;
    -moz-border-radius:10px;
    line-height: 120%;
    overflow-wrap: break-word; /* 長い単語がはみ出さないように */
    z-index: 1000; /* 他要素の下に隠れないように */
}
.balloon:after{
  /*border-top: 12px solid #fdcecc;*/
  border-left: 10px solid transparent;    /* 吹き出し口の幅１／２ */
  border-right: 10px solid transparent;   /* 吹き出し口の幅１／２ */
  /*bottom: -12px;*/
  border-bottom: 12px solid #fdcecc;
  border-top: none;
  top: -12px;
    left: 50%;
  transform: translateX(-50%);                              /* 吹き出し口の横位置 */
  content: "";                       /* コンテンツの挿入 */
  position: absolute;                /* 親要素を基準 */
}