@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* 全体装飾 */
.bold {
    font-weight: bold;
}
.red {
    color: red;
}
.yellow {
    background: linear-gradient(transparent 60%, yellow 40%);
    font-weight: bold;
}

/* トップページ */
.p-mainVisual__slideTitle, .p-mainVisual__slideText {
text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.8 );
}
.l-header__bar .c-catchphrase {
	width: auto;
}

/* 代表者挨拶ページ */

@media(min-width:751px){
.president-profile {
    display: flex;
}
.president-profile-left {
    width: 40%;
}
.president-profile-right {
    width: 55%;
    padding-left: 15px;
    padding-top: 10px;
}
}

/* 読書会ページ 一覧 */

.category-book-club .p-termContent {
    background-image: url(/wp-content/themes/swell_child/image/book-club-background-image2.png);
    border-right: 20px solid #DEB077;
    border-left: 20px solid #DEB077;
    margin-top: 10px;
    padding: 30px 8px 0px 8px;
}

.category-book-club .-type-card.-pc-col3 .p-postList__item, .category-book-club .-type-thumb.-pc-col3 .p-postList__item {
    width: 20%;
    margin-bottom: 1.5em;
}

.category-book-club .-type-card .p-postList__item {
    padding: 0px;
}

.category-book-club .-type-card .p-postList__thumb {
    width: 100%;
    height: 210px;
    padding: 0px 15px;
}

.category-book-club .c-postThumb__figure {
    margin: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 210px;
    z-index: 0;
}

.category-book-club .c-postThumb__cat {
    display: none;
}

.category-book-club .-type-card .p-postList__body {
    padding: 10px 15px;
    background-color: #CCA16B;
}

/* 260409 追記：背景ずれ対応（既存コードは変えずにオーバーライド） */
.category-book-club .p-postList.-type-card,
.category-book-club .p-postList.-type-thumb {
  margin-inline: 0;
}

.category-book-club .p-termContent {
  background: none !important;
  margin-top: 20px !important;
  padding: 0 24px !important;
}

.category-book-club .p-postList.-type-card,
.category-book-club .p-postList.-type-thumb {
  margin-inline: 0;
}
.category-book-club .p-postList .p-postList__title{
  word-break: break-all;
  white-space: nowrap;
}
.category-book-club .p-postList__times{
  word-break: break-all;
  white-space: nowrap;
}
.category-book-club .-type-card .p-postList__thumb{
  height: auto;
  padding: 0 10px !important;
}
.category-book-club .p-postList__item {
  position: relative;
  margin: 0 !important;
  padding: 24px 0 0 !important;
  background: url(/wp-content/themes/swell_child/image/book-club-background-image2.png) top center / cover;
}

.category-book-club .p-postList__item::before,
.category-book-club .p-postList__item::after {
  content: "" !important;
  position: absolute;
  top: 0;
  z-index: -1;
  display: block;
  width: 24px;
  height: 100%;
  background: url(/wp-content/themes/swell_child/image/book-club-background-image2.png) top center / cover;
}

.category-book-club .p-postList__item::before {
  left: 0;
  transform: translateX(-100%);
}

.category-book-club .p-postList__item::after {
  right: 0;
  transform: translateX(100%);
}
.category-book-club .p-postList__item.empty-placeholder{
  position: relative
}

.category-book-club .c-postThumb__figure {
  height: auto;
  aspect-ratio: 709 / 1024;
}
.category-book-club .p-postList__body {
  position: relative;
}
  
.category-book-club .p-postList__body::before,
.category-book-club .p-postList__body::after {
  content: "" !important;
  position: absolute;
  top: 0;
  display: block;
  width: 24px;
  height: 100%;
  background: #CCA16B;
}

.category-book-club .p-postList__body::before {
  left: 0;
  transform: translateX(-100%);
}

.category-book-club .p-postList__body::after {
  right: 0;
  transform: translateX(100%);
}
.category-book-club .p-postList__body.js_skeleton{
  position: absolute;
  bottom: 0;
  width: 100%;
}

/* 260409 追記ここまで */

@media(max-width:750px){
  .category-book-club .-type-card.-pc-col3 .p-postList__item, .category-book-club .-type-thumb.-pc-col3 .p-postList__item {
    width: 50%;
  }
  .category-book-club .p-termContent {
    background-image: url(/wp-content/themes/swell_child/image/book-club-background-image2.png);
    background-size: 279px auto;
  }
/* 260409 追記：背景ずれ対応（既存コードは変えずにオーバーライド） */
  .category-book-club .p-termContent {
    padding: 0 8px !important;
  }
  .category-book-club .p-postList__item::before,
  .category-book-club .p-postList__item::after {
    width: 8px;
  }
  .category-book-club .p-postList__body::before,
  .category-book-club .p-postList__body::after {
    width: 8px;
  }
/* 260409 追記ここまで */
}

/* 読書会ページ 詳細 */

.book-info-area {
    display: flex;
    flex-wrap: wrap; /* スマホ時に折り返しを許可 */
    gap: 20px;       /* 左右の間隔 */
    align-items: flex-start; /* 上揃え */
    margin-bottom: 2em;
}

/* 左側：アイキャッチ（30%） */
.book-info-eyecatch {
    flex: 0 0 30%; 
    min-width: 250px; /* スマホでこれより狭くなると自動で縦並びになる */
}

/* 右側：テキスト情報（70%からgap分を引く） */
.book-info-history {
    flex: 1 1 calc(70% - 24px); 
    min-width: 300px;
}

.book-info-history th, .book-info-history td {
    font-size: 14px;
}
.book-info-history th {
    background-color: #f1f8fb;
	min-width: 80px;
}
.book-overview {
    margin-top: 20px;
}
.book-overview p {
    font-size: 14px;
}
.book-overview blockquote {
    font-size: 13px;
    background-color: #f1f8fb;
}

.book-comment {
    margin-bottom: 25px;
}
.book-club-after_article .p-pnLinks__thumb {
    height: 105px;
}

.book-club-after_article .c-postThumb__figure {
    height: 300px;
}

@media(max-width:750px){
.book-info-eyecatch {
    margin-left: auto;
    margin-right: auto;
}
.p-pnLinks__thumb {
    width: auto;
}
}


/* トップページ内の読書会スライダー用 */
.loop-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.loop-slider__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: loop-scroll 100s linear infinite; /* 速度はここで調整 */
    /* 以下の3行を追加：GPUでの描画を強制し、ガタつきと消失を防ぐ */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    /* 重要：中身の横幅を自動で計算させる */
    width: max-content;
}

/* マウスホバーで停止させたい場合 */
.loop-slider:hover .loop-slider__list {
    animation-play-state: paused;
}

/* 各スライドアイテム */
.loop-slider__item {
    width: 150px; /* 画像の横幅（調整可） */
    padding: 0 10px; /* 画像間の余白 */
    flex-shrink: 0;
}

.loop-slider__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.63; /* アスペクト比を統一 */
    object-fit: cover;
}

/* アニメーションの設定 */
@keyframes loop-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}


/* お問い合わせ */
input.wpcf7-text, textarea.wpcf7-textarea {
    width: 100%;
    background-color: #9d9df021;
}
.wpcf7-checkbox {
    text-align: center;
    display: block;
}
input.wpcf7-submit {
    margin-top: 20px;
    margin-right: auto;
    margin-left: auto;
    display: block;
    font-size: 20px;
    border-radius: 10px;
    color: white;
    background-color: #006eb8;
    width: 200px;
}
span.wpcf7-list-item input {
    transform: scale(1.5);
    margin-right: 5px;
}

.wp-caption-text {
    font-size: .8em;
    margin-top: 5px;
    opacity: .8;
    padding-bottom: 15px;
}