body .voice-archive, body .voice-single {
  display: flex;
  flex-wrap: wrap;
  margin: 0 10px;
  font-family: メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

.main-content {
/*  flex: 1 1 70%;*/
  width: calc(100% - 320px);
}

/*** 全体 ***/

.pc {
  display: block !important;
}

.pc-inlineb {
  display: inline-block !important;
}

.sp {
  display: none !important;
}

body.custom-background.voice-template-default {
  background: #f6f6f6;
}

.site {
  background: #f6f6f6;
}

body:not(.custom-background-image):after, 
body:not(.custom-background-image).admin-bar:before {
  display: none;
}

#page-voice.site {
  margin: 0;
  background-color: #eee9e6;
}

.site-content {
  padding: 0;
}

/*** ヘッダー ***/

header#masthead {
  width: 100%;
  margin-bottom: 20px;
  padding: 0 !important;
}

header#masthead h1 img {
  width: 100%;
  height: auto;
}

/*** ボイス項目 ***/

.voice-item {
  background-color: #fff;
  padding: 2em;
  margin: 0 0 2em;
/*  color: #5d627b;*/
  color: #082a5e;
  border: 1px solid #cdcdcd;
  border-top: solid 5px #be3046;
/*  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);*/
}

.voice-item h3 {
  font-size: 1.6em;
  line-height: 1;
}

.voice-item h3 a {
/*  color: #5d627b;*/
  color: #082a5e;
  text-decoration: underline;
}

.voice-customer-info {
  margin: 1em 0 2.5em;
  padding: 10px;
  color: #565656;
  border-bottom: 1px solid #565656;
  text-align: right;
}

.voice-customer-img-div {
  margin-top: 2em;
  border-top: 1px solid #f6f6f6;
  padding-top: 2em;
  display: flex;
  justify-content: center; /* 中央寄せ */
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* 各画像は等分で伸縮する（少ないと大きく、4枚だと25%ずつ） */
.voice-customer-img-div img {
  display: block;
/*  flex: 1 1 calc(25% - 12px);*/
  width: calc(25% - 12px);
  height: auto;
  object-fit: cover;       /* アスペクトを保って切り抜き */
  min-width: 396px;            /* flex 子のオーバーフロー防止 */
}

/*** 詳細ページ ***/
 
/* ページャー */

.div-pagenation {
  display: flex;
  margin: 0 auto 2em;
}

.div-pagenation .div-pagenation-next,
.div-pagenation .div-pagenation-prev {
  display: flex;
  align-items: center;
  background-color: #dedad8;
  text-align: center;
  width: 50%;
  padding: 1em;
}

.div-pagenation .div-pagenation-prev {
  border-left: #546994 2px solid;
  border-right: #f8f8f8 1px solid;
  margin: 0 auto 0 0;
}

.div-pagenation .div-pagenation-next {
  border-left: #f8f8f8 1px solid;
  border-right: #546994 2px solid;
  margin: 0 0 0 auto;
}

.div-pagenation i {
  color: #546994;
}

.div-pagenation a {
  width: 100%;
  height: auto;
}

/* 一覧に戻る */

.btn-voice-list {
  display: block;
  margin: 0 auto 2em;
  color: #546994;
  text-align: center;
  border: 1px solid #546994;
  width: 100%;
  max-width: 320px;
  padding: 1em 2em;
}

.btn-voice-list:hover {
  background-color: #fff;
}

/*** 一覧ページ ***/

.pagination-voice-archive .pagination {
  border-top: 4px solid #546994 !important;
  margin-bottom: 2em;
}

.pagination-voice-archive .pagination .prev, .pagination-voice-archive .pagination .next {
  background-color: #546994 !important;
}

/* カテゴリ別一覧 */

.category-heading {
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid #e6e6e6;
  color: #546994;
  font-size: 1.6em;
}

/*** サイドバー ***/

aside.sidebar {
  width: 300px;
  height: fit-content;
  margin: 0 0 2em auto;
}

aside.sidebar .voice-aside-category {
  padding: 2em;
  background-color: #546994;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.22);
}

aside.sidebar .voice-aside-category h2 {
    border-bottom: 3px solid #f0f8ff;
    display: block;
    position: relative;
    padding: 0 5px 10px;
    color: #f0f8ff;
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 500;
}

aside.sidebar .voice-aside-category h2::before {
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30%;
    height: 3px;
    background-color: #224a86;
    content: '';
}

aside.sidebar .voice-aside-category ul {
  margin: 0;
  padding: 0;
  position: relative;
}

aside.sidebar .voice-aside-category ul li {
  line-height: 1.5;
  padding: 0.5em 0 0.5em 1.4em;
  border-bottom: dashed 1px silver;
  list-style-type: none!important;
  color: #fff;
  font-size: 1.2em;
}

aside.sidebar .voice-aside-category ul li:before {
  font-family: "Font Awesome 6 Free";
  content: "\f138"; /* Unicode for the user icon */
  font-weight: 900; /* For Solid style */
  position: absolute;
  left : 0; /*左端からのアイコンまで*/
}

aside.sidebar .voice-aside-category ul li:last-of-type {
  border-bottom: none;
}

aside.sidebar .voice-aside-category ul li a {
  color: #fff;
}

aside.sidebar .voice-aside-category ul li a:hover {
  color: #be3046;
}

aside.sidebar .voice-aside-banner a {
  display: inline-block;
  width: 100%;
  margin-bottom: 1em;
}

aside.sidebar .voice-aside-banner a:hover {
  opacity: 0.8;
}

/*** フッター ***/

footer.site-footer-voice {
  background-color: #d6d1cf;
  text-align: center;
}

footer.site-footer-voice .site-info {
    width: 100%;
    margin: 0 0 1em;
    font-size: 1.1em;
    padding: 1em 2em;
    display: inline-block;
    background-color: #d6d1cf;
}

.site-info a {
    color: #224a86;
}

.site-info a:hover {
    color: #cd0005;
}

footer.site-footer-voice #footer-div-logo {
  margin: 0 auto 1em;
  width: 100%;
  max-width: 260px !important;
}

footer.site-footer-voice copy {
  display: block;
  width: 100%;
  background-color: #546994;
  padding: 1em;
  color: #eee9e6;
  margin: 1em 0 0;
}

/* 問い合わせバナー */

.contactus-voice a {
  display: block;
  margin: 0 auto 2em;
  width: 100%;
  max-width: 600px;
}

.contactus-voice a:hover {
  opacity: 0.8;
}

/* ページトップへ戻る */

.pagetop {
  height: 50px;
  width: 50px;
  position: fixed;
  right: 15px;
  bottom: 20px;
  background: #224a86;
  border: #546994;
  border-radius: 50%;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2;
  cursor: pointer;
}
.pagetop__arrow {
  display: block;
  height: 10px;
  width: 10px;
  border-top: 3px solid #FFF;
  border-right: 3px solid #FFF;
  transform: translateY(20%) rotate(-45deg);
}
@media (hover: hover) and (pointer: fine) {
    .pagetop:hover, .pagetop:hover .pagetop__arrow {
        border-color: #546994;
    }
}

/*** モバイルサイズ ***/

@media (max-width: 56.875em) {
  .site-content {
    padding: 0 20px;
  }

  .main-content, .sidebar {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .pc {
    display: none !important;
  }

  .pc-inlineb {
    display: none !important;
  }

  .sp {
    display: block !important;
  }

  .voice-archive, .voice-single {
    margin: 0;
  }

  /* ボイス項目 */

  .voice-item {
    padding: 1em;
  }

  .voice-customer-img-div {
/*    flex-direction: column;*/
    align-items: center;
  }

  .voice-customer-img-div img {
    width: calc(50% - 12px);
    height: auto;
    flex: 0 0 auto;
  }

  /* サイドバー */
  .aside.sidebar {
    padding: 0;
  }

  /* フッター */
  .site-info a {
    display: block;
    margin-bottom: 5px;
  }
}
