/* 
Theme Name:どうみち2025/09/05
Theme URL:
Description:どうみち専用テーマ
Author:chabata_k
Version:1.0.0
*/

@import url(ress.css);
@import url(style/all.min.css);

:root {
  --primary-color: #e85a70;
  --secondary-color: #4ea1d5;
  --primary-lite-color: #fbe8eb;
  --secondary-lite-color: #eaf4fa;
  --base-color: #eaeaea;
  --dark-color: #454552;
  --text-color: #222222;
  --maxwidth: 1040px;
  --tab: 576px;
  --pc: 768px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 1.6rem;
  color: #222;
  line-height: 2;
  font-feature-settings: "palt";
  background: var(--base-color);
  margin: 0;
  padding: 0;
}

.allwrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  line-height: 1;
}

.headermain,
.pickuptag,
.category,
.maincontents,
.special,
.adbox,
.footerarea {
  padding: 0 1rem;
  max-width: var(--maxwidth);
  margin: 0 auto;
  h2 {
    font-size: 2rem;
    font-weight: 400; /* 400-normal */
  }
}

img {
  max-width: 100%;
  height: auto;
}

#headerbar {
  background: var(--dark-color);
  color: #fff;
  padding: 0.5rem;
}

.headermain {
  padding: 0.5rem;
  margin: 8px auto;
  text-align: center;
  @media (min-width: 768px) {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.rightbox {
  display: flex;
  align-items: center;
  justify-content: center;
}
.searchbox {
  width: 320px;
  background-color: #ddd;
}
.infobox {
  width: 75px;
  background-color: #eee;
}

.category {
  border: none;
}
.topcat {
  list-style-type: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  li {
    border: none;
    padding: 12px;
    @media (min-width: 768px) {
      padding: 8px;
    }
    a {
      color: #fff;
      font-weight: bold;
      text-decoration: none;
      &:hover {
        opacity: 0.5;
      }
    }
  }
}

.pickuptag {
  width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  p {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 4px;
  }
  ul {
    text-align: center;
    border: none;
    margin: 0;
    padding: 8px 0;
    list-style-type: none;
    li {
      border: none;
      padding: 0;
      display: inline-block;
      font-size: 1.4rem;
      a {
        background-color: var(--primary-color);
        color: #fff;
        padding: 4px 8px;
        margin: 0 4px;
        text-decoration: none;
        border-radius: 4px;
        &:hover {
          opacity: 0.5;
        }
      }
    }
  }
}

.maincontents {
  h2 {
    font-size: 2.4rem;
    text-align: center;
    border-bottom: 1px solid var(--text-color);
    margin: 0 0 1.6rem 0;
  }
  table {
    width: 100%;
    @media (min-width: 768px) {
      width: auto;
    }
    font-size: 1.4rem;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 32px;
  }
  tr:nth-child(2n) {
    background-color: var(--secondary-lite-color);
  }
  th {
    text-align: left;
    padding: 6px 12px;
    background-color: var(--secondary-color);
    color: #fff;
    border: 1px solid #999;
  }
  td {
    padding: 4px 12px;
    border: 1px solid #999;
  }
}

.breadcrumb {
  margin: 1.6rem 0 0 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  li:after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
  }
  li:first-child::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f015";
  }
  li:last-child::after {
    content: "";
  }
  li a {
    color: var(--text-color);
    padding: 0.8rem;
    text-decoration: none;
    &:hover {
      background-color: var(--secondary-color);
      color: #fff;
    }
  }
}

.single {
  padding: 16px;
  margin: 0 0 32px 0;
  @media (min-width: 768px) {
    padding: 32px 60px;
  }
  h2 {
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.5;
    padding: 0;
    text-align: left;
    margin: 0 0 0.8rem 0;
    border: none;
  }
  h3 {
    font-size: 2.4rem;
    font-weight: bold;
    text-align: left;
    margin: 1.6rem 0 1.6rem 0;
    padding: 8px;
    border-left: 8px solid var(--secondary-color);
    background-color: var(--secondary-lite-color);
  }

  h4 {
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    margin: 1.6rem 0 1.6rem 0;
    padding: 4px 0;
    border-bottom: 1px solid var(--secondary-color);
  }

  p {
    line-height: 2;
    margin-bottom: 32px;
  }
  /* リスト横並び */
  ul {
    list-style-position: outside;
    margin-bottom: 32px;
    li {
      list-style: disc;
      margin-left: 16px;
    }
  }
  .yoko2 {
    display: inline-grid;
    column-gap: 2em;
    grid-template-columns: repeat(2, auto);
  }
  .yoko3 {
    display: inline-grid;
    column-gap: 2em;
    grid-template-columns: repeat(3, auto);
  }
}

.dateandtag {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
  a {
    text-decoration: none;
  }
}
.posttag {
  margin-right: 8px;
  ul {
    list-style: none;
    display: flex;
    margin: 0;
    li {
      list-style-type: none;
      margin: 0;
    }
  }
  a {
    padding: 4px 8px;
    text-decoration: none;
    color: #fff;
    background-color: var(--dark-color);
    &:hover {
      opacity: 0.5;
    }
  }
}

.postdate {
  &::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f073";
  }
}

.titleimage {
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1.6rem;
  padding: 0 8px;
}
.titlead {
  font-size: 1.4rem;
  text-align: center;
  background-color: var(--base-color);
  padding: 4px 8px;
}

.bottomtag {
  width: 100%;
  margin: 0 0 8px 0;
  border-top: 1px solid var(--dark-color);
  ul {
    text-align: left;
    border: none;
    margin: 0;
    padding: 8px 0;
    list-style-type: none;
    li {
      border: none;
      padding: 0;
      display: inline-block;
      font-size: 1.4rem;
      margin: 0;
      span {
        font-weight: bold;
        color: var(--text-color);
      }
      a {
        background-color: #fff;
        border: 1px solid var(--dark-color);
        color: var(--text-color);
        font-weight: bold;
        padding: 4px 8px;
        margin: 0 4px;
        text-decoration: none;
        border-radius: 4px;
        &:hover {
          background-color: var(--primary-lite-color);
        }
        &::before {
          font-family: "Font Awesome 5 Free";
          font-weight: 900;
          content: "\23";
        }
      }
    }
  }
}

/* 吹き出し（左） */
.talk-left {
  margin-bottom: 32px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  @media (min-width: 768px) {
    width: 80%;
  }
  .talkface {
    flex-basis: 100px;
    flex-shrink: 0;
    text-align: center;
    font-size: 1.4rem;
    .name-l {
      line-height: 1;
      margin-bottom: 0;
    }
  }
  .talktext {
    position: relative;
    padding: 16px;
    margin-left: 20px;
    background-color: var(--secondary-lite-color);
    border-radius: 4px;
    flex-shrink: 1;
    p {
      margin: 0;
    }
    &::before {
      content: "";
      position: absolute;
      top: 12px;
      left: -32px;
      border: 16px solid transparent;
      border-right: 16px solid var(--secondary-lite-color);
    }
  }
}

/* 吹き出し（右・汎用） */
.talk-right {
  margin-bottom: 32px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  @media (min-width: 768px) {
    margin-left: 20%;
    width: 80%;
  }
  .talkface {
    flex-basis: 100px;
    flex-shrink: 0;
    text-align: center;
    font-size: 1.4rem;
    .name-r {
      line-height: 1;
      margin: 0;
    }
  }
  .talktext {
    position: relative;
    padding: 16px;
    margin-right: 20px;
    background-color: var(--base-color);
    border-radius: 4px;
    flex-shrink: 1;
    p {
      margin: 0;
    }
    &::before {
      content: "";
      position: absolute;
      top: 12px;
      right: -32px;
      border: 16px solid transparent;
      border-left: 16px solid var(--base-color);
    }
  }
}

/* 警告文章（before使用） */
.cautionbox1,
.cautionbox2 {
  background-color: var(--secondary-lite-color);
  margin-bottom: 32px;
  padding: 16px 16px 16px 56px;
  position: relative;

  p {
    margin: 0;
    padding: 0 16px;
    border-left: 1px solid var(--secondary-color);
  }
  &::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f024";
    font-size: 2.8rem;
    color: var(--secondary-color);
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
  }
}

.cautionbox2 {
  background-color: var(--primary-lite-color);
  p {
    border-left: 1px solid var(--primary-color);
  }
  &::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f071";
    color: var(--primary-color);
  }
}

/* Q＆Aボックス */
.qabox {
  border: 2px solid var(--base-color);
  margin-bottom: 32px;
  border-radius: 4px;
  .qtext {
    padding: 16px 16px 16px 56px;
    background-color: var(--secondary-lite-color);
    margin-bottom: 0;
    font-weight: bold;
    position: relative;

    &::before {
      font-family: "Font Awesome 5 Free";
      font-weight: 900;
      content: "\f059";
      font-size: 2.8rem;
      color: var(--secondary-color);
      position: absolute;
      top: 4px;
      left: 14px;
    }
  }
  .atext {
    padding: 16px 16px 16px 56px;
    margin-bottom: 0;
    position: relative;
    &::before {
      font-family: "Font Awesome 5 Free";
      font-weight: 900;
      content: "\41";
      font-size: 2.8rem;
      color: var(--primary-color);
      position: absolute;
      top: 10px;
      left: 18px;
    }
  }
}

/* 執筆者情報 */
.post-profile {
  margin-bottom: 32px;
  border: 1px solid var(--dark-color);
  display: flex;
  flex-direction: row;

  .post-profile_face {
    margin: 16px 0;
    padding: 0 24px;
    width: 100px;
    flex-shrink: 0;
    @media (min-width: 576px) {
      width: 160px;
    }
  }
  .post-profile_text {
    margin: 16px 0;
    padding: 0 24px;
    flex-grow: 1;
    border-left: 1px solid var(--dark-color);
    p {
      font-size: 1.4rem;
      margin-bottom: 0;
      line-height: 1.8;
      span {
        font-size: 1.8rem;
        font-weight: bold;
      }
    }
    .post-profile_link {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px;
    }
    a {
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      line-height: 1.2;
      font-size: 1.4rem;
      text-decoration: none;
      background-color: var(--dark-color);
      color: #fff;
      padding: 4px 16px;
      border-radius: 100vh;
      &:hover {
        background-color: var(--secondary-color);
      }
      i {
        font-size: 1.8rem;
      }
    }
  }
}

/* ブログカード */
.linkcard {
  position: relative;
  &::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f054";
    font-size: 2.8rem;
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  }
  a {
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    margin-bottom: 32px;
    line-height: 1.33;
    display: flex;
    flex-direction: row;
    /* background-color: var(--primary-lite-color); */
    box-shadow: 0 4px 5px #ccc;
    border-radius: 4px;
    padding: 0;
    text-decoration: none;
    color: var(--text-color);

    &:hover {
      opacity: 0.7;
    }
  }
  .linkcard-image {
    flex-grow: 1;
    padding: 0;
    max-width: 33%;
    line-height: 1;
    display: flex;
    justify-content: center;
    img {
      margin: 0;
      object-fit: cover;
    }
  }
  .linkcard-cap {
    flex-grow: 3;
    padding: 16px 40px 16px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    .cap-read {
      background-color: var(--primary-color);
      padding: 2px 4px;
      color: #fff;
      border-radius: 2px;
      font-size: 1.4rem;
      width: fit-content;
    }
    .cap-title {
      font-size: 1.4rem;
      font-weight: bold;
      @media (min-width: 576px) {
        font-size: 1.8rem;
      }
    }
  }
}

/* 記事一覧カード */
.card-wrap {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 32px;
}
.blogcard {
  width: 100%;
  padding: 0;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px #ccc;
  a {
    text-decoration: none;
    color: var(--text-color);
    &:hover {
      opacity: 0.5;
    }
  }
  .card-figure {
    display: block;
    max-width: 100%;
    height: auto;
    img {
      width: 100%;
      object-fit: cover;
    }
  }
  h3 {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.5;
    padding: 0 8px;
    margin-bottom: 8px;
  }
  .dateandcat {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 0 8px;
    font-size: 1.3rem;
    .card-date {
      line-height: 1.5;
      margin: 0;
    }
    .card-cat {
      background-color: var(--dark-color);
      line-height: 1.3;
      color: #fff;
      padding: 2px 10px;
    }
  }
}
/* 検索窓 */
form#searchform {
  display: inline-flex;
}
input#s {
  width: 100%;
  height: 35px;
  border: 1px solid var(--dark-color);
  border-right: none;
  outline: none;
  &:focus {
    outline: 4px solid var(--primary-color);
  }
}
button.srcbtn {
  margin: 0;
  height: 35px;
  background: #fff;
  border: 1px solid var(--dark-color);
}
i.fas.fa-search {
  color: #000;
}

/* ソーシャルボタン（リスト不使用） */
.socials {
  line-height: 1;
  padding: 0;
  margin: 0 0 32px 0;
  vertical-align: middle;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  i {
    font-size: 2rem;
  }
  p {
    font-size: 1.2rem;
    margin: 0;
  }
  a {
    font-size: 1.2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 4px 0;
    div {
      margin-top: 2px;
    }
  }
  .color-x {
    background-color: #14171a;
    color: #fff;
    &:hover {
      opacity: 0.5;
    }
  }

  .color-line {
    background-color: #00c300;
    color: #fff;
    &:hover {
      opacity: 0.5;
    }
  }
  .color-fb {
    background-color: #1877f2;
    color: #fff;
    &:hover {
      opacity: 0.5;
    }
  }
  .color-hatebu {
    border: 1px solid var(--dark-color);
    color: var(--text-color);
    &:hover {
      opacity: 0.5;
    }
    img {
      margin-right: 2px;
    }
  }

  .color-note {
    background-color: #000;
    color: #fff;
    &:hover {
      opacity: 0.5;
    }
    img {
      margin-right: 2px;
    }
  }
  .color-rss {
    background-color: #ee802f;
    color: #fff;
    &:hover {
      opacity: 0.5;
    }
  }
}

/*　タイトル・URLコピペ欄　*/
.copy {
  background-color: var(--secondary-lite-color);
  border: 1px solid var(--dark-color);
  padding: 8px;
  margin-bottom: 32px;
  overflow-wrap: break-word;
  p {
    margin: 0;
  }
}

.prevnext {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  @media (min-width: 768px) {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  p {
    line-height: 1.5;
    width: 100%;
    border: 2px solid var(--base-color);
    @media (min-width: 768px) {
      width: 48%;
    }
    a {
      display: block;
      width: 100%;
      text-decoration: none;
      color: #000;
      &:hover {
        background-color: var(--base-color);
      }
    }
  }
  .prev a {
    padding: 8px 8px 8px 24px;
  }
  .next a {
    text-align: right;
    padding: 8px 24px 8px 8px;
  }
  span {
    font-size: 1.4rem;
    font-weight: bold;
  }
}

.arc-prevnext {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
  @media (min-width: 768px) {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  p {
    line-height: 1.5;
    width: 100%;
    border: 2px solid var(--base-color);
    @media (min-width: 768px) {
      width: 48%;
    }
    a {
      text-align: center;
      display: block;
      width: 100%;
      padding: 8px;
      text-decoration: none;
      color: #fff;
      background-color: var(--dark-color);
      &:hover {
        opacity: 0.5;
      }
    }
  }
}

.redbtn a {
  display: block;
  width: 80%;
  background-color: #ef3e56;
  font-size: 1.4rem;
  font-weight: bold;
  border-bottom: 2px #e71330 solid;
  border-radius: 4px;
  color: #fff;
  padding: 8px;
  margin: 0 auto 32px auto;
  text-decoration: none;
  text-align: center;
  @media (min-width: 576px) {
    font-size: 1.8rem;
  }
  &:hover {
    opacity: 0.5;
  }
}

/* ページネーション（WP独自関数で作成されるもの） */
.nav-links {
  /* 外側のdiv */
  margin-bottom: 1.6rem;
}

.page-numbers {
  /* 本体のリスト */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  line-height: 1.5;
  li {
    font-size: 1.4rem;
    list-style: none;
    border: 2px solid var(--secondary-color);
    border-radius: 2px;
    background-color: #fff;
    span {
      padding: 8px;
    }
    .current {
      background-color: var(--secondary-color);
      color: #fff;
    }
    a {
      padding: 8px;
      text-decoration: none;
      &:hover {
        background-color: var(--primary-color);
        opacity: 0.5;
      }
    }
  }
}

.special {
  padding-bottom: 1.6rem;
  h2 {
    font-size: 2.4rem;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid #fff;
    margin: 0 0 1.6rem 0;
  }
  p {
    font-size: 1.6rem;
    text-align: center;
    color: #fff;
    a {
      color: #fff;
      &:hover {
        color: var(--primary-color);
      }
      &:visited{
        color: #fff;
      }
    }
  }
}

.spimages {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  a {
    text-decoration: none;
    color: var(--text-color);
    &:hover {
      opacity: 0.5;
    }
  }
}

.adbox {
  text-align: center;
}

.wp-block-image,
.wp-block-gallery {
  margin: 0 0 1.6rem 0;
}
.wp-element-caption {
  /* 画像のキャプション（wpで自動挿入されるクラス） */
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--dark-color);
  margin: 0;
}

/* 404ページ */
.notfound-box1 {
  background-image: url("image/404notfound.webp");
  background-position: center;
  width: 100%;
  max-height: 400px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  aspect-ratio: 964/400;
  h2 {
    text-align: center;
    color: #fff;
    font-size: 4rem;
  }
  p {
    text-align: center;
    color: #fff;
    font-size: 2rem;
  }
}

/* イベントカウントダウン用 */
.table-wrap {
  overflow-x: scroll;
}

.eventtable {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  th,
  td {
    white-space: nowrap;
    line-height: 1.3;
    text-align: center;
  }
  tr:hover{
    background-color: var(--primary-lite-color);
  }
}

.event-big {
  font-size: 1.4rem;
  font-weight: bold;
}
.event-small {
  font-size: 1.2rem;
  color: var(--dark-color);
}

/* フッター */
.footwrap {
  margin-top: auto;
}

.footerarea {
  padding: 1.6rem 0.8rem;
  p {
    font-size: 1.4rem;
    line-height: 1.5;
  }
}

.footlink {
  padding: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  @media (min-width: 576px) {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  a {
    color: #fff;
    &:hover {
      background-color: var(--primary-color);
    }
  }
}

.footlogo {
  text-align: center;
}

.footlinks {
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  li {
    margin-left: 8px;
    font-size: 3.2rem;
  }
}

.footerwrap {
  display: flex;
  flex-direction: column;

  @media (min-width: 768px) {
    flex-direction: row;
  }
  .footbox {
    padding: 1.6rem;
    width: 100%;

    @media (min-width: 768px) {
      width: calc(100% / 4);
    }
    h2 {
      font-size: 1.6rem;
      font-weight: bold;
      color: #fff;
      text-align: center;
      border-bottom: 1px solid #fff;
      margin: 0 0 8px 0;
    }
    h3 {
      font-size: 1.4rem;
      font-weight: bold;
      color: #fff;
      text-align: center;
      margin: 0 0 8px 0;
    }
    ul {
      list-style: none;
      li {
        color: var(--base-color);
      }
    }
    a {
      text-decoration: none;
      color: #fff;
      padding: 8px 0;
      &:hover {
        background-color: var(--secondary-color);
      }
      &:visited {
        color: #fff;
      }
    }
    .footnewpost {
      li {
        border-bottom: 1px solid var(--base-color);
        font-size: 1.4rem;
        line-height: 1.5;
        a {
          display: block;
          text-decoration: none;
          padding: 8px 0;
          &:hover {
            opacity: 0.7;
          }
        }
      }
    }

    .tagcloud {
      width: 100%;
      margin: 0 0 8px 0;
      border-top: 1px solid var(--dark-color);
      ul {
        text-align: left;
        border: none;
        margin: 0;
        padding: 8px 0;
        list-style-type: none;
        li {
          border: none;
          padding: 0;
          display: inline-block;
          font-size: 1.4rem;
          a {
            background-color: #fff;
            color: var(--text-color);
            padding: 4px 8px;
            margin: 0 4px;
            text-decoration: none;
            border-radius: 10%;
            &:hover {
              opacity: 0.5;
            }
            &::before {
              font-family: "Font Awesome 5 Free";
              font-weight: 900;
              content: "\23";
              margin-right: 4px;
            }
          }
        }
      }
    }
  }
}

/* ブロックパーツ用 */
.boxblue,
.boxblue-back,
.boxred,
.boxred-back {
  border: 2px solid var(--secondary-color);
  border-radius: 2px;
  margin-bottom: 32px;
  p {
    padding: 8px 16px;
    margin: 0;
  }
  /* 順序なしリスト */
  ul {
    padding: 8px 16px;
    margin: 0;
    li {
      list-style: disc;
    }
  }

  /* 順序付きリスト */
  ol {
    padding: 8px 16px;
    margin: 0 0 0 16px;
    counter-reset: number; /*数字をリセット*/
    list-style-type: decimal-leading-zero;
    li {
      margin: 0 0 0 16px;
    }
  }
  .boxtitle {
    padding: 4px 16px;
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: bold;
  }
}

.boxred {
  border: 2px solid var(--primary-color);
  background-color: var(--primary-lite-color);
  .boxtitle {
    padding: 4px 16px;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
  }
}

/* 目次ボックス */
.boxmokuji {
  background-color: var(--secondary-lite-color);
  border: 2px solid var(--dark-color);
  border-radius: 2px;
  margin-bottom: 32px;
  width: 100%;

  .boxtitle {
    padding: 8px;
    margin: 0 16px;
    border-bottom: 1px solid var(--dark-color);
    font-size: 2rem;
    text-align: center;
    font-weight: bold;
  }
  ol {
    padding: 8px 16px;
    margin: 0 0 0 16px;
    counter-reset: number; /*数字をリセット*/
    list-style-type: decimal-leading-zero;
    li {
      margin: 0 0 12px 16px;
      font-weight: bold;
      a {
        text-decoration: none;
        &:hover {
          color: var(--primary-color);
        }
      }
    }
  }
  @media (min-width: 768px) {
    width: 75%;
  }
}

/* パーツ */
.margin-top {
  margin-top: 16px;
}

.bg-white {
  background: #fff;
}

.bg-blue {
  background: var(--secondary-color);
}

.bg-dark {
  background: var(--dark-color);
  color: #fff;
}

.bg-base {
  background: var(--base-color);
}
