@charset "utf-8";
/******************************************
style.css
*******************************************/
.titlebar {
    position: relative;
    width: 100%;
}
.titlebar h2 {
    margin-right: 80px;
}
.titlebar .backBtn {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    background-color: #FFF;
}
.titlebar .backBtn a {
    background: url(/images/icon_linkB-L.png) no-repeat 9px 10px;
    padding-left: 15px;
    width: 60px;
    height: 30px;
    line-height: 30px;
    border: 1px solid #CCC;
    display: block;
    text-decoration: none !important;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

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%);
}
.textField {
    font-size: 1.1rem;
	-webkit-appearance: none;
	border-radius: 4px;
	border: 1px solid #AAA;
}
.refineB {
    height: 30px;
    line-height: 30px;
}
@media screen and (max-width: 767px) {
    #contentsWide select.selectMenu {
        height: 30px;
    }
}
.submitBtn {
	width: 50px;
	height: 30px;
    color: #333;
    font-size: 1.1rem;
	-webkit-appearance: none;
	border-radius: 4px;
	background-color: #F6F6F6;
	background: -webkit-gradient(linear, left top, left bottom, 
	            color-stop(0.20, #fff), color-stop(1.00, #eee));
	background: -webkit-linear-gradient(top, #fff 20%, #eee 100%);
	background: linear-gradient(to bottom, #fff 20%, #eee 100%);
	border: 1px solid #AAA;
}
.optionSelectbox {
	height: 30px;
    border-radius: 4px;
	background-color: #F6F6F6;
	background: -webkit-gradient(linear, left top, left bottom, 
	            color-stop(0.20, #fff), color-stop(1.00, #eee));
	background: -webkit-linear-gradient(top, #fff 20%, #eee 100%);
	background: linear-gradient(to bottom, #fff 20%, #eee 100%);
	border: 1px solid #AAA;
}

#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;
  }
}


dl.whatsnew {
    display: flex;
    flex-wrap: wrap;   ;
}
dl.whatsnew dt {
    width: 20%;
    box-sizing: border-box;
}
dl.whatsnew dd {
    width: 80%;
    box-sizing: border-box;
    margin-left: 0;
}

.relatedBooks ul {
    display: flex;
    flex-wrap: wrap;
}
.relatedBooks li {
    flex: 0 0 calc(100% / 4);
    padding: 10px 0;
    box-sizing: border-box;
    text-align: center;
}
.relatedBooks p {
    padding: 10px 20px;
    text-align: left;
}

@media screen and (max-width: 767px) {
    .relatedBooks li {
        flex: 0 0 calc(100% / 2);
    }
}

.contact-form-container {
    position: relative;
    width: 100%;
    min-height: 982px;
    border-radius: 8px;
}

@media screen and (max-width: 767px) {
    .contact-form-container {
        min-height: 1300px;
        -webkit-overflow-scrolling: touch;
    }
}


/* ローディングオーバーレイ */
.contact-form-loading {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

/* スピナーアイコン */
.contact-form-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00416d;
  border-radius: 50%;
  animation: contact-spinner-spin 1s linear infinite;
}

.contact-form-loading-text {
  margin-top: 16px;
  font-size: 14px;
  color: #666666;
}

/* iframe本体 */
.contact-form-iframe {
    width: 100%;
    min-height: 1100px;
    background-color: #f9f9f9;
    border: none;
    transition: opacity 0.3s ease-in-out;
}
@media screen and (max-width: 767px) {
    .contact-form-iframe {
        min-height: 1300px;
        -webkit-overflow-scrolling: touch;
    }
}
.contact-form-iframe.is-loading {
  opacity: 0;
}

.contact-form-iframe.is-loaded {
  opacity: 1;
}

/* スピナー用アニメーション */
@keyframes contact-spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
