/* 
Theme Name:橋本充電中1カラム
Theme URL:
Description:橋本充電中1カラム（どーみちベース）
Author:chabata_k
Version:1.0.0
*/

@import url(ress.css);
@import url(style/all.min.css);

:root {
  --primary-color: #2a4b7c;
  --secondary-color: #6a9bd1;
  --primary-lite-color: #a7c6e7;
  --secondary-lite-color: #eaf4fa;
  --base-color: #eaeaea;
  --base-border-color: #bbb;
  --dark-color: #454552;
  --text-color: #222222;
  --red-color: #dc3545;
  --red-lite-color: #fbe8eb;
  --maxwidth: 1200px;
  --maxwidth-single: 1040px;
  --tab: 576px;
  --pc: 768px;
}

/* パーツ */
.margin-top {
  margin-top: 16px;
}
.margin-bottom {
  margin-bottom: 32px;
}
.bg-white {
  background: #fff;
}
.bg-blue {
  background: var(--primary-color);
  color: #fff;
}
.bg-lite-blue {
  background: var(--primary-lite-color);
}
.bg-lite-blue2 {
  background: var(--secondary-lite-color);
}
.bg-dark {
  background: var(--dark-color);
  color: #fff;
}
.bg-base {
  background: var(--base-color);
}

*,
*::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;
  letter-spacing: 0.05em;
  background: #fff;
  margin: 0;
  padding: 0;
}

.allwrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1 {
  line-height: 1;
}

.headermain,
.pickuptag,
.category,
.topnews,
.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;
}

.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;
  margin-top: 8px;
}
.searchbox {
  color: #fff;
  width: 280px;
  input.gsc-search-button {
    box-sizing: content-box;
  }

  table.gsc-search-box td {
    vertical-align: top !important;
  }

  .gsc-input-box {
    height: 32px !important;
    border: 2px solid var(--dark-color);
  }

  input.gsc-search-button-v2 {
    margin-top: 0 !important;
  }
  .gsc-clear-button {
    padding: 0;
  }
}

.category {
  border: none;
}
.topcat {
  list-style-type: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  li {
    border: none;
    padding: 16px;
    @media (min-width: 768px) {
      padding: 10px;
    }
    a {
      color: #fff;
      text-decoration: none;
      &:hover {
        color: var(--red-color);
      }
    }
  }
}

.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;
        }
      }
    }
  }
}

.topnews {
  text-align: center;
  p {
    margin: 0;
    font-weight: bold;
  }
}

.maincontents {
  margin-top: 32px;
  h2 {
    font-size: 2.4rem;
    font-weight: bold;
    text-align: center;
    color: var(--primary-color);
    line-height: 1.3;
    padding: 0;
    border-bottom: 2px solid var(--primary-color);
    margin: 0 0 8px 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);
  }

  /* 折りたたみボックス（details） */
  details {
    border: 2px solid var(--primary-color);
    background-color: #fff;
    border-radius: 2px;
    margin-bottom: 32px;
    padding: 16px;
    summary{
      font-size: 1.8rem;
      font-weight: bold;
      color: var(--primary-color);
    }
  }
}

.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(--red-lite-color);
  p {
    border-left: 1px solid var(--red-color);
  }
  &::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f071";
    color: var(--red-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;
    &:nth-child(1 of .atext)::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;
    width: 15%;
    min-width: 100px;
    line-height: 1;
    display: flex;
    justify-content: center;
    img {
      margin: 0;
      aspect-ratio: 16/9;
      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: 768px) {
        font-size: 1.8rem;
      }
    }
  }
}

/* 記事一覧カード */
/* タイル（大） */
.tile-wrap {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin-bottom: 32px;
  .tile {
    width: 100%;
    padding: 16px 16px 32px 16px;
    background-color: #fff;
    border: 1px solid var(--base-border-color);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.26);
    &:hover {
      background-color: var(--red-lite-color);
    }
    a {
      text-decoration: none;
      color: var(--text-color);
    }
    .tile-figure {
      display: block;
      max-width: 100%;
      height: auto;
      img {
        width: 100%;
        object-fit: cover;
        aspect-ratio: 16/9;
      }
    }
    h3 {
      font-size: 1.6rem;
      font-weight: bold;
      line-height: 1.5;
      padding: 0 8px;
      margin-bottom: 8px;
    }
    .tile-text {
      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;
      }
    }
  }
}

/* タイル（小） */
.halftile {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  .halftile-wrap {
    margin-bottom: 32px;
    h2 {
      margin: 0 4px;
      font-size: 2rem;
      border: none;
    }
    .tile {
      padding: 8px;
      margin-bottom: 8px;
      background-color: #fff;
      border: 1px solid var(--base-border-color);
      border-radius: 4px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.26);

      &:hover {
        background-color: var(--red-lite-color);
      }
      a {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        color: var(--text-color);
      }
      .tile-figure {
        /* display: block; */
        flex-grow: 1;
        padding: 0;
        width: 33%;
        min-width: 120px;
        height: auto;
        aspect-ratio: 16 / 9;
        display: flex;
        align-items: center;
        img {
          width: 100%;
          object-fit: cover;
        }
      }
      h3 {
        font-size: 1.4rem;
        font-weight: bold;
        line-height: 1.5;
        padding: 0;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden; /* 溢れた部分を隠す */
        text-overflow: ellipsis; /* 溢れた部分に「...」を表示 */
        -webkit-line-clamp: 2; /* 最大行数を2行に設定 */
        /* 非対応ブラウザ向けのフォールバック */
        max-height: calc(1.5em * 2); /* 行の高さ×行数で高さを設定 */
      }

      .tile-text {
        flex-grow: 3;
        margin-bottom: 0;
        padding: 0 8px;
        font-size: 1.3rem;
        .card-date {
          font-size: 1.3rem;
          font-weight: bold;
          color: #666;
          line-height: 1.5;
          margin: 0;
        }
      }
    }
  }
}

/* 検索窓 */
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-border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.26);
    @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(--dark-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;
      }
    }
  }
}

.topbtn a {
  display: block;
  width: 100%;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 4px 8px;
  margin: 0 auto 32px auto;
  text-decoration: none;
  text-align: center;
  @media (min-width: 576px) {
    font-size: 1.8rem;
  }
  &:hover {
    background-color: var(--red-lite-color);
  }
}

.topbtn-sm a {
  display: block;
  width: 80%;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 4px 8px;
  margin: 0 auto 32px auto;
  text-decoration: none;
  text-align: center;
  @media (min-width: 576px) {
    font-size: 1.5rem;
  }
  &:hover {
    background-color: var(--red-lite-color);
  }
}

/* ページネーション（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;
    }
  }
}

.wp-block-image,
.wp-block-gallery {
  margin-bottom: 32px;
}
.wp-element-caption {
  /* 画像のキャプション（wpで自動挿入されるクラス） */
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--dark-color);
  margin: 0;
}

.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* 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% / 3);
    }
    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;
      line-height: 1.8;
      font-size: 1.4rem;
      li {
        color: var(--base-color);
        border-bottom: 1px dotted 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,
.memobox,
.alert,
.que,
.answer {
  border: 2px solid var(--secondary-color);
  background-color: var(--secondary-lite-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,
.alert {
  border: 2px solid var(--red-color);
  background-color: var(--red-lite-color);
  .boxtitle {
    padding: 4px 16px;
    background-color: var(--red-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%;
  }
}

/* 旧css流用 */
.textbig {
  font-size: 3rem;
  font-weight: bold;
}
.textbigred {
  font-size: 3rem;
  font-weight: bold;
  color: #f00;
}
.caution {
  font-size: 1.4rem;
  padding: 4px;
  background-color: #fff3d6;
}

.afbox,
.kaerebalink-box {
  width: auto;
  background-color: #fff3d6;
  margin: 32px auto;
  padding: 16px;
  width: auto;
  margin: 16px auto 16px auto;
  padding: 16px;
  font-size: 1.6rem;
}
.afbox img,
.kaerebalink-box img {
  width: 100%;
  height: auto;
  vertical-align: top;
}
.afbox p,
.kaerebalink-box p {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.afbox p:last-child,
.kaerebalink-box p:last-child {
  margin-bottom: 0;
}
@media (min-width: 560px) {
  .afbox,
  .kaerebalink-box {
    /* 600px～ */
    display: flex;
  }
}

.afbox-image,
.kaerebalink-image {
  width: auto;
  margin: 0 auto 8px auto;
}
@media (min-width: 560px) {
  .afbox-image,
  .kaerebalink-image {
    /* 600px～ */
    margin: 0 16px 0 0;
  }
}

.afbox-caption {
  flex: 1;
}

.afbox-name,
.kaerebalink-name {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.afbox-info,
.kaerebalink-powered-date,
.kaerebalink-detail {
  font-size: 1.4rem;
  color: #111;
  margin-bottom: 8px;
}

.afbox-link {
  width: auto;
}

.afbox-link ul {
  border: none;
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.afbox-link li {
  list-style: none !important;
  width: 49%;
  margin-right: 1%;
  border: none;
}

.af-ama a,
.shoplinkamazon a {
  display: block;
  background-color: #ff8c00;
  font-size: 1.4rem;
  border-bottom: 2px #cc7000 solid;
  border-radius: 4px;
  color: #fff;
  padding: 8px;
  margin: 0;
  text-decoration: none;
  text-align: center;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
}
.af-ama a:hover,
.shoplinkamazon a:hover {
  border: 0;
  transform: translateY(2px);
}

.af-raku a,
.shoplinkrakuten a {
  display: block;
  background-color: #bf0000;
  font-size: 1.4rem;
  border-bottom: 2px #8c0000 solid;
  border-radius: 4px;
  color: #fff;
  padding: 8px;
  margin: 0;
  text-decoration: none;
  text-align: center;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
}
.af-raku a:hover,
.shoplinkrakuten a:hover {
  border: 0;
  transform: translateY(2px);
}

.kaerebalink-link1 {
  display: flex;
}

.shoplinkamazon,
.shoplinkrakuten {
  width: 49%;
  margin-right: 1%;
  border: none;
}

/* （旧）目次 */
.mokuji {
  position: relative;
  width: 100%;
  margin: 32px 0;
  padding: 48px 16px 16px 16px;
  border-radius: 2px;
  background-color: var(--secondary-lite-color);
  border: 2px solid var(--dark-color);
  @media (min-width: 768px) {
    width: 75%;
  }
  p {
    font-size: 1.6rem;
    margin-bottom: 16px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  ul {
    border: none;
    margin: 0;
    padding: 8px;
    counter-reset: number;
    /*数字をリセット*/
    list-style-type: none !important;
    /*数字を一旦消す*/
    li {
      padding-left: 0;
      line-height: 1.5;
      font-size: 1.6rem;
      font-weight: bold;
      list-style-type: disc;
      margin-bottom: 8px;
      a:hover {
        color: var(--red-color);
      }
    }
  }
  &:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 36px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1.6rem;
    padding: 4px 16px;
    content: "目次";
    font-weight: bold;
  }
}

.adbox,
.a8link {
  text-align: center;
  background-color: var(--secondary-lite-color);
  margin: 0 auto 32px auto;
  padding: 20px 0 8px 0;
  position: relative;
  p {
    margin: 0;
  }
}
.adbox::before,
.a8link::before {
  position: absolute;
  content: "スポンサーリンク";
  font-size: 1.2rem;
  padding: 0 4px;
  top: 0px;
  left: 0px;
  background-color: var(--primary-color);
  color: #fff;
}

.imgcenter {
  margin: 0 auto;
}
