@charset "utf-8";
/******************************************
style.css
*******************************************/
.titlebar {
    position: relative;
    width: 100%;
}
ul.bookList li .bookThumbnail img {
}

ul.bookList li .bookThumbnail .kinkanMark {
    position: absolute;
    top: -50%;
    left: 50%;
}
#sidebar ul.categoryList li a {
    background: url(/images/icon_linkA-R.png) no-repeat 0px 4px;
}
p.goPageTop a {
    background: url(/images/icon_linkA-Up.png) no-repeat 130px 8px  #2C47B7;
}

.article-body img {
    max-width: 100%; 
    height: auto; /* 縦横比を維持 */
}

/* Next.jsのImage fillを機能させるための設定 */
.bookThumbnailRelative {
    position: relative; /* Imageコンポーネネントの基準点となる */
    width: 150px;       /* 適切な幅を指定 (CSSで制御) */
    height: 200px;      /* 適切な高さを指定 (CSSで制御) */
    overflow: hidden;   /* 親要素からはみ出た部分を非表示 */
}

/* Imageコンポーネントが生成するimgタグに適用されるスタイル */
.bookThumbnailRelative img {
    object-fit: contain; /* 画像が親要素に収まり、アスペクト比を維持 */
}

/* 既存のデザイン調整が必要な場合はここに追加 */

.moreBtn {
    position: absolute;
    top: 50%;
    right: 10px;   
    -webkit-transform: translateY(-50%); /* 古いSafari/Chrome用 */
    -ms-transform: translateY(-50%);      /* IE 9用 */
    transform: translateY(-50%);
}

.moreBtn a  {
    position: relative;        /* アイコンの基準点にする */
    display: block;
    padding: 0 20px 0 10px;       /* 12px(アイコン) + 8px(余白) のスペースを確保 */
    text-decoration: none !important;
    background-color: #FFF;
    font-weight: bold;
    border: 1px solid #CCC;
}

.moreBtn a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 12px;
    height: 12px;
    background: url(/images/icon_linkB-R.png) no-repeat center center / contain; /* 12pxのアイコン画像 */
    /* 垂直中央揃えの仕上げ */
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}


#sidebar h2.kensaku {
	background: url(/images/icon_kensaku.png) no-repeat 7px 2px  #2C47B7;
}
#sidebar h2.category {
	background: url(/images/icon_category.png) no-repeat 7px 1px  #2C47B7;
}

#headerContainer header {
    display: flex;
    align-items: center;
}

#headerContainer header h1,
#headerContainer header nav {
    float: inherit;
}

#headerContainer header h1 {
    margin-right: auto;
}
ul.glvNavi {
    display: flex;
    border-right: none;
}
ul.glvNavi li {
    position: relative;
    float: inherit;
}
ul.glvNavi li a {
    padding: 0 2em;
}

@media screen and (max-width: 767px) {
    #headerContainer header {
        display: block;
        height: auto;
    }
    #headerContainer header nav {
        display: flex;
        justify-content: center;
    }
    ul.glvNavi {
        justify-content: space-evenly;
        margin-top: 0;
        margin-left: 0;
        margin-bottom: 0;
        height: 44px;
        line-height: 44px;
    }
    ul.glvNavi li {
            border-left: none;
    }
    ul.glvNavi li::after {
        content: "";
        border-right: 1px solid #CCC;
        position: absolute;
        top: 35%;
        right: 0;
        height: 30%;
    }
    ul.glvNavi li:last-child::after {
        border-right: none;
    }
    ul.glvNavi li a {
        padding: 0 1em;
    }    
}

ul.searchResult {
    display: flex;
    flex-wrap: wrap;
}
ul.searchResult li {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 20px;
    width: 33%;
    height: auto;
    overflow: inherit;
    float: none;
    line-height: 1
}
ul.searchResult li > a {
    display: flex;
}

ul.searchResult li span.linkMark {
    background: url(/images/icon_linkA-R.png) no-repeat 0px 1px;
}
#contentsWide .refineA form {
    display: flex;
}
#contentsWide input.textField {
    margin: 0 .5em;
}

ul.searchResult li div.bookInfo {
    padding-top: 0;
    width: 50%;
    height: auto;
    overflow: auto;
    text-align: left;
    float: inherit;
}

@media screen and (max-width: 767px) {
    ul.searchResult {
        display: block;
    }
    ul.searchResult li {
        width: auto;
    }
    ul.searchResult li span.linkMark {
        background: url(/images/icon_linkA-R.png) no-repeat 0 0;
    }
}

.titlebar ul.backBtn li a {
    background: url(/images/icon_linkB-L.png) no-repeat 9px 10px;
}

#sidebar #searchform {
    display: flex;
}
#sidebar .textField {
    margin-right: .5em;
}

/* メインビジュアル全体のコンテナ */
.mainVisualContainer {
  margin: 0 auto 20px; /* 下の余白を少し多めに確保 */
  position: relative;
  /* ドットを外側に出すために padding-bottom を追加 */
  padding-bottom: 0;
}
.custom-pagination {
    margin-top: 10px;
    height: 10px;
    text-align: center;
}
/* ページネーション（ドット）の位置と色のカスタマイズ */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #333; /* ドットの色 */
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  background: #2C47B7; /* カレント位置の色（新紀元社カラーなど） */
  opacity: 1;
}

/* 左右ボタンの共通スタイル（前回分を継承） */
.swiper-button-prev-custom,
.swiper-button-next-custom {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
  background-color: #2C47B7; /* ホバー時にブランドカラーへ */
  border-color: #2C47B7;
}

/* CSSで「＜」と「＞」を描画 */
.swiper-button-prev-custom::after,
.swiper-button-next-custom::after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-top: 5px solid #2C47B7; /* 線の太さと色 */
  border-left: 5px solid #2C47B7;
  transition: all 0.3s;
}

/* ホバー時に矢印の色を白にする */
.swiper-button-prev-custom:hover::after,
.swiper-button-next-custom:hover::after {
  border-color: #FFF;
}

/* 向きの調整 */
.swiper-button-prev-custom::after {
  transform: rotate(-45deg); /* 左向き */
  margin-left: 4px; /* 中心位置の微調整 */
}

.swiper-button-next-custom::after {
  transform: rotate(135deg); /* 右向き */
  margin-right: 4px; /* 中心位置の微調整 */
}

/* ボタンの位置 */
.swiper-button-prev-custom { left: -20px;}
.swiper-button-next-custom { right: -20px; }

@media screen and (max-width: 767px) {
  .swiper-button-prev-custom,
  .swiper-button-next-custom,
  .swiper-button-prev-custom::after,
  .swiper-button-next-custom::after {
    display: none;
  }
}