@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
*/

/*///////////// 以下独自CSS ////////////*/


/* 広告の非表示
.p-adBox {
	display:none;
}
**/

/* テーブル thの横幅 */
.post_content .td_to_th_ tbody tr>:first-child, .post_content tbody th {
    width: 25%;
}

/*ギャラリー画像のサイズを調整する */
.wp-block-gallery.has-nested-images figure.wp-block-image{
	flex-grow:0;
}

/*スマホでカラム間のスキマを0にする */
.cover{
    gap: 0 !important;
}

/******* 詳細ページ *******/
/* 全体の背景 */
body {
    background-image: linear-gradient(transparent calc(100% - 1px), #ebebeb 50%, #ebebeb), linear-gradient(90deg, transparent calc(100% - 1px), #ebebeb 50%, #ebebeb);
    background-color: #dddddd;
    background-repeat: repeat;
    background-size: 16px 16px;
    color: #444;
	font-size:small;
}

/* メインコンテンツ サイドバー ブロック */
.l-content, #sidebar {
    margin: 0 auto 0em;
    padding-top: 0em;
}
#sidebar {
    margin-top: -25px;
}

.l-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#main_content, #sidebar {
    background-color: #FFF;
    padding: 1rem;
}
 #sidebar .c-widget+.c-widget {
  margin-top: 1em;
}

.wp-block-columns .info {
    gap: 0 !important;
}

/* 見出しの上下余白 */
.c-postTitle__ttl {
    color: #FFF;
    font-size: 1em;
    padding: 0.5em;
    margin: 0 0 0.5rem 0;
    background-color: var(--color_main);
}

/* h1下の余白 */
.l-mainContent__inner > .post_content {
    margin: 0;
}
/* h2下の余白 */
.c-secTitle {
    margin-bottom: 0.5em;
}

/* 見出しの調整 */
.post_content h2 {
    margin: 1.5em 0 1.5rem;
    font-size:medium;
}

.post_content h3 {
    font-size: 1.1em;
    margin: 1.5em 0 1em;
}

.post_content h4 {
    margin: 2em 0 0.75em;
}

/* 関連タイトル */
.l-articleBottom__section {
    margin-top: 2em;
}

/* パッケージ画像 */
.package {
    padding-bottom: 1rem;
}

.package > img {
    margin-bottom: 3px;
}

a.aclass_h .wrap_pclass_h p.pclass_h {
    display: block;
}

/* テキストリンク */
.-type-simple .p-postList__link {
    padding: 0.25em 1em;
}

.p-postList .p-postList__title{
	font-weight: initial !important;
	font-size: small;
}

/* 作品紹介 ブロック */
.intro {
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 1rem;
	font-size:small;
}

/* テーブルの背景色 */
.post_content th {
    background-color: #f1f1f1;
}

.post_content td {
    background-color: #FFF;
}

/* 動画コンテナのスタイル */
.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 のアスペクト比 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
　　　　　　　　margin:1.5% auto;
    background-color: #000; /* 背景色を黒に設定（任意） */
}

/* 動画要素のスタイル */
.responsive-video iframe,
.responsive-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 動画下の最後まで見るボタン */
[class*=is-style-btn_] {
    font-size: medium;
}

/* カテゴリー表示の削除 */
.p-articleFoot {
    display: none;
}

/* すべてのリストアイテムのマーカーを非表示にする */
li::marker {
    content: '';
}

.post_content ol, .post_content ul {
    list-style-type: none;
    padding-left: 0;
}

/* ギャラリーグリッドのスタイル */
.gallery {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    -webkit-overflow-scrolling: touch;
}

.thumbnail-wrapper {
	position: relative;
    flex: 0 0 calc(33.33% - 10px);
    width: 100%;
	padding-top: 56.25%; /* 16:9の比率を保持 */
    overflow: hidden;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail {
	position: absolute;
	top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像のアスペクト比を保持しつつ、クリッピング */
    transition: transform 0.2s;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* オーバーレイ全体のスタイル */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 900;
}

/* オーバーレイ内の画像スタイル */
.overlay img {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

/* 画像カウンターのスタイル */
.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    color: white;
    font-size: 18px;
}

.image-counter .prev,
.image-counter .next {
    cursor: pointer;
    padding: 0 10px;
    font-size: 24px;
}

.image-counter .counter-text {
    margin: 0 10px;
}

/* 閉じるボタン (×) */
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

.p-adBox h3{
	text-align:center;
	margin-bottom:5px;
}

/* 著者の紹介文 文章の揃え */
.p-authorBox {
    text-align: left;
}

/* オススメの作品　3列表示 */
div.divclass_v li.liclass_v {
	font-size: 12px;
    display: table-cell;
    vertical-align: middle;
    padding: 0 0.5em;
}
div.divclass_v li.liclass_v:nth-child(n+4) {
       display: none;
}
.mgs_widget_r_v{
	width:100% !important;
}
a.aclass_v  p.pclass_v {
    font-size:8px !important;
	 margin: 0.5em 0 0;
} 
/* パッケージ画像 */
.package {
    padding-bottom:0rem;
}



/* 作品情報のタグ */
table.info tr td {
	line-height:30px;
	font-size:small;
}

table.info > tbody > tr > td > a {
	border: 1px solid var(--color_link);
	padding: 3px 5px;
	border-radius: 5px;
	}

/* ランダムピックアップの行間 */
.-type-list .p-postList__item {
    margin-bottom: 1em;
}

/*　関連記事下の広告 */
.l-articleBottom__section.w-afterRelated {
    margin-top: 0 !important;
}

.p-authorBox__name,p.p-authorBox__desc.u-thin{
	font-size:small !important;
}

/* 目次 */
#main_content .p-toc {
    margin: 0em auto;
}

/******* タブレット以上のサイズ用の設定 *******/

@media screen and (min-width: 768px) {
    /* PCサイズでのレイアウト調整 */
    .l-container {
        max-width: calc(var(--container_size, 0px) + var(--swl-pad_container, 0px) * 2);
        padding-left: var(--swl-pad_container, 0);
        padding-right: var(--swl-pad_container, 0);
    }

    .l-content, #sidebar {
        padding-top: 1.25em;
        padding-bottom: 1em;
    }
    #sidebar {
    margin-top: 0;
    }
    #sidebar .c-widget+.c-widget {
    margin-top: 1.5em;
    }

    .post_content .td_to_th_ tbody tr > :first-child, .post_content tbody th {
        width: 25%;
    }

/* ロゴ調整 */
.-series .l-header__logo {
        padding: 16px;
}
	
/*スマホでカラム間のスキマを0にする */
.cover{
    gap: var(--wp-column-gap) !important;
}

    /* 見出しの調整 */
    .post_content h3 {
        font-size: 1.3em;
        text-align: left;
        margin: 1.5em 0 1em;
    }

    /* ギャラリーの設定 */
    .gallery {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
        margin: 1rem;
        align-items: center;
        overflow-x: auto;
    }
	
 	/* オススメの作品　5列表示 */
div.divclass_v li.liclass_v:nth-child(n+4) {
       display:table-cell !important;
}
a.aclass_v  p.pclass_v {
    font-size:12px !important;
	}
}

}
