@charset "UTF-8";
/*
    Template: doujin_a
    Theme Name: doujin_b_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
*/

.download {
    text-align: center;
    margin-top: 24px;
}

.download a {
    display: inline-block;
    -webkit-box-shadow: 0px 0px 0px 2px var(--color_htag);
    box-shadow: 0px 0px 0px 2px var(--color_htag);
    border: 2px solid #fff;
    color: #fff;
    background-color: var(--color_htag);
    border-radius: 8px;
    font-size: 20px;
    padding: 14px 60px;
}

/* Hide mobile menu, header buttons and header bar */
#sp_menu,
.l-header__menuBtn.sp_,
.l-header__customBtn.sp_,
.l-header__bar.pc_ {
    display: none !important;
}

/* Header logo centering */
.l-header__inner {
    justify-content: center;
}

.productInformation.u-common__clearfix {
    font-size: 12px;
    padding: 0px 16px;
}

.informationList__ttl {
    width: 115px;
    font-weight: bold;
    vertical-align: top;
    float: left;
}

.informationList {
    margin: 4px;
}

.productInformation .productInformation__item:last-of-type {
    display: none;
}


.productInformation {
    display: table;
    width: 100%;
    background: #f9f9f9;
    border-radius: 8px;
    border-collapse: collapse;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-bottom: none;
    max-width: 500px;
}

.productInformation__item {
    display: table-row;
}

dl.informationList {
    margin: 0;
    border-bottom: 1px solid #ddd
}

.informationList__ttl {
    display: table-cell;
    font-weight: bold;
    font-size: 12px;
    color: #333;
    padding: 10px;
    width: 100px;
    /* background: #f1f1f1; */
}

.informationList__txt {
    display: table-cell;
    font-size: 12px;
    color: #555;
    padding: 8px;
    width: 70%;
}

.informationList__item {
    display: table-cell;
}

.genreTagList {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    list-style: none;
    margin: 0;
    color: #555;
}

.genreTagList__item {
    font-size: 13px;
}

.promotionBnr__img img {
    display: none;
}

.main-img {
    margin-top: 12px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.main-img figure img,
.content-area figure img {
    margin: 0 auto;
    display: block;
}

/* メイン画像のアフィリエイトリンク用スタイル */
.main-img-link {
    position: relative;
    display: flex;
    /* 子要素（figure）にフィットさせる */
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.main-img-link .p-articleThumb {
    margin: 0;
    /* SWELL標準の余白をリセット */
}

.main-img-link figure img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.main-img-link:hover figure img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* 右下の外部リンクアイコン */
.main-img-link::after {
    content: "";
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background-color: rgba(0, 0, 0, 0.5);
    /* 少し薄くして背景に馴染ませる */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 6px;
    opacity: 1;
    /* 常に表示 */
    transform: translateY(0);
    /* 最初から位置を固定 */
    transition: background-color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.main-img-link:hover::after {
    background-color: rgba(0, 0, 0, 0.8);
    /* ホバー時に少し強調 */
    transform: scale(1.1);
    /* ホバー時に少し大きくして動的なフィードバック */
}

.content-area figure figcaption {
    text-align: center;
    font-size: 14px;
}

.c-balloon {
    align-items: center;
}

.main-img .p-articleThumb {
    width: auto;
}

.main-img img.p-articleThumb__img {
    width: revert-layer;
}

.gallery .gallery-item {
    padding: 4px;
}

/* ギャラリー全体の枠組み */
.gallery {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1%;
    /* 左右の余白調整 */
    margin-right: -1%;
    padding: 0;
}

/* ギャラリーの各アイテム（画像＋キャプション） */
.gallery-item {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin: 0 1% 1.5em;
    /* アイテム間の余白 */
    width: 18%;
    /* 3列にするための幅（100% ÷ 3 - 余白） */
    box-sizing: border-box;
}

/* 画像自体の設定 */
.gallery-icon img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    /* 薄い枠線（お好みで削除可） */
    display: block;
    margin: 0 auto;
}

/* キャプション（今回は自動Alt表示コードを入れているので不要かもしれませんが念のため） */
.gallery-caption {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    padding-top: 0.5em;
}

/* スマホでは2列にする場合（お好みで） */
@media screen and (max-width: 600px) {
    .gallery-item {
        width: 31%;
        /* 3列 */
    }
}

.p-postList__item figure img {
    object-fit: contain;
}

.ads-300-250 {
    width: 300px;
    height: 250px;
    margin: 12px auto 12px;
}

.c-postThumb__figure {
    --card_posts_thumb_ratio: 75%;
}

/* タームページの本文表示エリア */
.term-article-content {
    margin-bottom: 48px;
}

.p-termExpand {
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.p-termExpand__check {
    display: none;
}

.p-termExpand__body {
    max-height: 240px;
    /* 約8〜10行分 */
    overflow: hidden;
    transition: max-height 0.4s ease;
    position: relative;
}

/* フェードアウト効果 */
.p-termExpand__body::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    /* 広くしてより緩やかな変化に */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    transition: opacity 0.3s;
}

/* チェックが入った（開いた）時のスタイル */
.p-termExpand__check:checked+.p-termExpand__body {
    max-height: 5000px;
}

.p-termExpand__check:checked+.p-termExpand__body::after {
    opacity: 0;
    pointer-events: none;
}

/* ラベル（ボタン）のスタイル */
.p-termExpand__label {
    display: block;
    cursor: pointer;
    text-align: center;
    background: #f8f8f8;
    color: var(--color_main);
    font-weight: bold;
    padding: 12px;
    margin: 16px -24px -24px;
    border-top: 1px solid #eee;
    border-radius: 0 0 8px 8px;
    transition: background 0.2s;
    user-select: none;
}

.p-termExpand__label:hover {
    background: #f0f0f0;
}

.p-termExpand__more,
.p-termExpand__less {
    text-decoration: underline;
}

.p-termExpand__label:hover .p-termExpand__more,
.p-termExpand__label:hover .p-termExpand__less {
    text-decoration: none;
    /* ホバー時に変化を付けて動きを出す */
}

.p-termExpand__less {
    display: none;
}

.p-termExpand__check:checked~.p-termExpand__label .p-termExpand__more {
    display: none;
}

.p-termExpand__check:checked~.p-termExpand__label .p-termExpand__less {
    display: inline;
}

/* 矢印アイコン */
.p-termExpand__label::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    vertical-align: middle;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.3s;
}

.p-termExpand__check:checked~.p-termExpand__label::after {
    transform: translateY(2px) rotate(-135deg);
}

/* タームヘッドのボーダーを削除 */
.p-termHead {
    border: none !important;
}

/* タームアーカイブでのみ、コンテンツ末尾の余白削除を無効化 */
.archive .post_content dd> :last-child,
.archive .post_content div> :last-child,
.archive .post_content> :last-child {
    margin-bottom: 1.5em !important;
    /* 標準的なPタグ等の値 */
}

/* Headingが最後に来た場合は、SWELL標準の値を維持する */
.archive .post_content h2:last-child,
.archive .post_content h3:last-child {
    margin-bottom: 2em !important;
}

.archive .post_content h4:last-child {
    margin-bottom: 1.5em !important;
}

/* --- 記事一覧 4カラム・5カラム & 横幅1100px対応 --- */
@media (min-width: 960px) {

    /* 全体コンテナ: 最大1100pxとしつつ流動的に */
    .archive .l-container,
    .home .l-container,
    .search .l-container {
        max-width: 1100px !important;
        width: 100% !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        box-sizing: border-box !important;
    }

    /* メインエリア: 親(l-container)いっぱいに広げる */
    .archive .l-mainContent,
    .home .l-mainContent,
    .search .l-mainContent,
    .archive .l-mainContent__inner,
    .home .l-mainContent__inner,
    .search .l-mainContent__inner {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* 4・5カラム選択時の各アイテムの幅 */
    .-type-card.-pc-col4 .p-postList__item,
    .-type-thumb.-pc-col4 .p-postList__item {
        width: 25% !important;
    }

    .-type-card.-pc-col5 .p-postList__item,
    .-type-thumb.-pc-col5 .p-postList__item {
        width: 20% !important;
    }

    .-pc-col5 .p-postList__title {
        font-size: 14px !important;
    }
}

/* 960px未満（スマホ・タブレット）では標準挙動を維持 */
@media (max-width: 959px) {

    .archive .l-container,
    .home .l-container,
    .search .l-container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* --- 記事一覧内のサークル名・タグリスト --- */
.p-postList__circleList,
.p-postList__tagList {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    line-height: 1.4;
}

.p-postList__circleName {
    font-size: 11px;
    font-weight: bold;
    color: var(--color_main);
    display: flex;
    align-items: center;
}

/* SWELL標準アイコンの微調整 */
.p-postList__circleName::before {
    margin-right: 4px;
    font-weight: normal;
    font-size: 1.1em;
}

/* タグリストのアイコンを非表示 */
.p-postList__tagList.c-tagList::before {
    display: none !important;
}

.p-postList__tagList {
    margin-bottom: 4px;
}

.p-postList__tagList .c-tagList__link {
    font-size: 10px;
    padding: 3px 8px;
    background: #fff;
    color: #888;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
}

.p-postList__tagList .c-tagList__more {
    font-size: 10px;
    color: #bbb;
    letter-spacing: 1px;
    align-self: center;
}

/* サークル名とタグが並ぶ時の調整 */
.p-postList__circleList+.p-postList__tagList {
    margin-top: 6px;
}

/* 抜粋文との間隔 */
.p-postList__excerpt+.p-postList__circleList,
.p-postList__excerpt+.p-postList__tagList {
    margin-top: 10px;
}

/* dmm_btnの角丸を弱くする */
.p-dmmBtn .swell-block-button__link {
    border-radius: 4px !important;
}