@charset "UTF-8";
/* CSS Document */

/* ================================
 *  アーカイブページ
 * ================================ */
.research-archive-btn-wrap .wp-block-button__link{
    padding:.5em;
}

.Research-Btn{
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;           /* テキスト固有の行高は詰め気味に */
  gap: .1em;
    width: 100%;/* ← 行間はこの値だけでコントロール（.05~.25emで微調整） */
}
.Research-Btn a{
    width:100%;
    text-align: center;
}
.Research-Btn a:hover{
    background-color: #96a09b !important; color:#fff !important;border: none !important;
}
.Research-Btn-Main{ /* BOOKS */
 font-size: .9em;
}
.Research-Btn-Sub{  /* 単著・共著 */
  font-size: .4em;
}

@media(max-width:792px){
    .research-archive-btn-wrap .swell-block-column{
        --clmn-w: var(--clmn-w--mobile, 50%);}
    .research-archive-btn-wrap .swell-block-columns .swell-block-column{
        margin:0 1% 0;
        width:48%;
    }
    .Research-Btn-Main{ 
     font-size: .6em;
    }
    .Research-Btn-Sub{  
      font-size: .3em;
    }
}


.p-booksSection{
    padding-bottom:5em;
    border-bottom: 1px solid #96a09b;
}
.p-booksSection:nth-last-child(1){
    border-bottom: none;
}


.p-booksSection__title{
    font-size:1.8em;
    margin-bottom:1em;
}
/* タームリスト */
.book-term-navigation .book-term-list{
    margin-top:2em;
}

.book-term-navigation .book-term-list li{
    display: inline-block;
    margin-right: 1em;
}

.book-term-navigation .book-term-list li.current-item{
    text-decoration: underline;
}



/* --------------------------------------
 * Booksアーカイブ 2列レイアウト
 * -------------------------------------- */

.p-bookList {
  display: grid;
  grid-template-columns: 1fr; /* スマホでは1列 */
  gap: 30px; /* カード間の隙間 */
}

/* 768px以上のPC・タブレット表示 */
@media (min-width: 768px) {
  .p-bookList {
    grid-template-columns: repeat(2, 1fr); /* PCでは2列 */
  }
}

/* * カード内部のスタイル（既存のコードと重複するかも）
 */

.p-bookCard {
  /* カード自体のスタイル（例: 枠線など） */
  height: 100%; /* グリッドの高さ揃え */
}

.p-bookCard__inner {
  display: flex;
  flex-direction: column; /* カード内を縦積み（デフォルト） */
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.p-bookCard__inner.swell-block-columns__inner {
  flex-direction: row; /* 横並びにする */
  padding:0;
  gap: 1.5em;
}

.p-bookCard__thumb.swell-block-column {
  width: calc(35% - 0.75em); /* SWELLのカラム幅調整 */
  margin-bottom: 0 !important;
}
.p-bookCard__thumb img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
}

.p-bookCard__body.swell-block-column {
  width: calc(65% - 0.75em);
  margin-bottom: 0 !important;
}


@media (max-width: 767px) {
  .p-bookCard__inner.swell-block-columns__inner {
    flex-direction: row;
      flex-wrap: nowrap; 
    padding: 1em;
    gap: 1em;
  }
  .p-bookCard__thumb.swell-block-column,
  .p-bookCard__body.swell-block-column {
    width: 50%;
    margin-bottom: 0 !important;
  }
}


/* --- 以下、カード内のテキストスタイル（微調整） --- */

.p-bookCard__title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 0.5em 0;
  padding: 0;
  border: none;
  background: none;
}

.p-bookCard__meta {
  list-style: none;
  margin: 0.5em 0 0 0;
  padding: 0;
  font-size: 0.9rem;
  padding-top: 0.5em;
}
.p-bookCard__meta li {
  display: flex;
  margin: 0 0 0.25em 0;
}
.p-bookCard__meta .lbl {
  flex-shrink: 0;
  width: 6em;
  color: #777;
}
.p-bookCard__meta .val {
  font-weight: 500;
}
@media (max-width: 767px) {
    .p-bookCard__title{font-size: 1rem;}
    .p-bookCard__meta{font-size: .8rem;}
}


/* ================================
 *  個別ページ
 * ================================ */
/* ヘッダー */
.books-template-default #top_title_area{
    min-height: 150px;
    background-color: #becfc7;
}
.books-template-default.single #top_title_area img{
    display: none;
}

.wp-block-columns.book-column{--wp-column-gap:7em;}

.books-template-default.single .c-postTitle__ttl,.books-template-default.single #top_title_area .c-postTitle__date,
.books-template-default.single #top_title_area .p-articleMetas{display:none;}


h2.book-title{
    font-size: 2em;
}

/* 書誌情報リスト全体 */
.p-cptMeta__list {
  margin: 0;
  padding: 0;
}

/* 各行を横並びにする */
.p-cptMeta__row {
  display: flex;
  align-items: baseline; /* テキストのラインを揃える */
  gap: 0.75em;           /* dtとddの間隔 */
  margin-bottom: 0.4em;  /* 行間 */
}

/* ラベル部分（出版年・出版社など） */
.p-cptMeta__row dt {
  min-width: 6em;        /* 左ラベル幅を固定（調整可） */
  font-weight: 600;
  color: #333;
  flex-shrink: 0;        /* 幅を固定して崩れ防止 */
}

/* 値部分（年・著者名など） */
.p-cptMeta__row dd {
  margin: 0;
  flex: 1;               /* 残りスペースを使う */
  line-height: 1.6;
    display: flex;
    justify-content: space-between;
}

/* 出版年の右に出るURL */
.p-cptMeta__urlBadge {
  padding: .3em 1.5em;
  font-size: 0.75em;
  background: #96a09b;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.4;
}
.p-cptMeta__urlBadge:hover {
  opacity: 0.8;
}

.book-description h3{
    font-size: 1.4em;
    margin:3em 0 1.5em;
}
.book-description, .book-contents{
    line-height: 1.8;
}

.book-index-indent{
    margin-left:1em;
}
.l-articleBottom__section{
    display: none;
}

.sp-thumbnail{
    display: none;
}

@media (max-width: 600px) {
  .p-cptMeta__list, .p-cptMeta__desc, .p-cptMeta__toc{
      width:90%;
      margin: 1em;
    }
    .p-cptMeta__row {
    flex-direction: row;
    align-items: flex-start;
  }
  .p-cptMeta__row dt {
    min-width: auto;
  }
    .book-title.pc-title{
        display:none;
    }
    .sp-thumbnail{
    display: block;
    width:90%;
        margin:0 auto;
    }
    .pc-thumbnail{
        display: none;
    }
}
