/* flex-grow: 1対応 htmlをheight: 100%としないと、bodyもheight: 100%が有効とならないため */
html {
    height: auto;
    scroll-behavior: smooth;
}

body {
    height: 100%;
    background-color: whitesmoke;
    font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN W3", Meiryo, sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

.container {
    /* background-color: inherit; */
    background-color: white;
}

section {
    padding-top: 25px;
    padding-bottom: 25px;
}

section + section {
    padding-top: 0;
}

/* 下線を引く（点線） */
u {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.4rem;
    text-decoration-thickness: 0.2rem;
}

/* 見出し  */
.heading {
    padding: 3px 25px;
    border-left: solid 5px #494949;
    color: #494949;
}

.p_small {
    font-size: 0.75rem;
    color: #6c757d;
}

.img-parent {
    position: relative;
}

.normal_writing ul,
.writing ul {
    list-style-type: square;
    list-style-position: inside;
    padding-left: 20px;
}

.img-center {
    text-align: center;
    margin-bottom: 1rem;
}

.normal_writing img {
    margin-bottom: 25px;
}

/* ボタン配置 */
.btns-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btns-center>.btn+.btn {
    margin-top: 20px;
}

/* h3用見出し  */
.heading_h3 {
    padding:0 .4em .2em;
    border-bottom: 3px dotted #998989;
    background-color: #ffffff;
    color: #494949;
}

@media(max-width:767px) {
    h2 {
        font-size: 19px;
    }
}

/* ヘッダー */
.img_header {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media(min-width: 993px) {

    .img_header {
        height: 250px;
    }

}

.header__ttl {
    /* ヘッダータイトルを垂直方向の中央に表示。左側は常に5%のマージンをとる */
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
}


/* 目次 */
.toc-001 {
    margin-bottom: 30px;
    padding: 1em 1em 1em 2em;
    border: 1px solid #999;
    background-color: #f7f7f7;
    color: #333333;
}

.toc-001 div {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 5px 0;
}

.toc-001 label::after {
    margin-left: 5px;
    font-size: .8em;
    color: #166c9d;
    content: "[開く]";
    cursor: pointer;
}

.toc-001:has(:checked) label::after {
    content: "[閉じる]";
}

.toc-001 input {
    display: none;
}

.toc-001 ol {
    list-style-type: disc;
    margin: 0;
    padding: 0 1.2em;
    overflow: hidden;
}

.toc-001 > ol {
    height: 0;
}

.toc-001:has(:checked) > ol {
    height: auto;
}

.toc-001 ol ol {
    margin-top: 5px;
}

.toc-001 li {
    padding: 5px 0;
}

.toc-001 a {
    color: #166c9d;
}

.toc-width {
    width: 100%;
    padding-top: 1rem;
}

@media(min-width: 993px) {
    .toc-width {
        width: 50%;
    }
}

/* ページ内リンクがヘッダーに隠れないようにするためのおまじない */
:target:before {
    content: '';
    display: block;
    /* height: 120px; */
    padding-top: 120px;
    margin-top: -120px;
    visibility: hidden;
}

/* TIPS表示 */
span[data-descr] {
    position: relative;
    text-decoration: underline;
    color: #00f;
    cursor: help;
  }
  
  span[data-descr]:hover::after,
  span[data-descr]:focus::after {
    content: attr(data-descr);
    position: absolute;
    left: calc((350px / 2) * -1);
    top: 24px;
    width: 350px;
    border: 1px #aaaaaa solid;
    border-radius: 10px;
    background-color: whitesmoke;
    padding: 12px;
    color: #000000;
    font-size: 0.8rem;
    text-decoration: none;
    z-index: 1;
    text-indent: 0;
  }
  
  /* TIPS表示　タブレット以下の解像度は位置を固定する（はみ出し防止対策） */
  @media(max-width:1200px) {
  
    span[data-descr]:hover::after,
    span[data-descr]:focus::after {
      position: fixed;
      top: 200px;
      left: 50px;
    }
  }