/*
Theme Name: Noutoro Theme
Template: arkhe
Description: Arkheをベースにしたオリジナルテーマです。
Version: 1.0
*/

body {
	font-family:"ヒラギノ丸ゴ Pro W4","ヒラギノ丸ゴ Pro","Hiragino Maru Gothic Pro","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","HG丸ｺﾞｼｯｸM-PRO","HGMaruGothicMPRO";
}



figure.main_image {
    margin: auto;
    width: fit-content;
}

.l-wrapper {
    background: #F4F1EE;
}
header#header {
    padding: 10px 0 0 0;
    background: linear-gradient(90deg, #C6152F 0%, #66152E 100%);
}
.l-header__body.l-container {
    background: #fff;
    border-top: 6px solid #A6977E;
}
.single-post main#main_content {
    background: #fff;
    padding: 1rem;
}
.l-content__body {
    margin: 1rem auto;
}
.p-postList.-type-card .p-postList__item {
	flex-basis: 48%;
	background: #fff;
  margin: 1%;
	padding: 0;
	border-bottom: 1px solid #aaa;
}
.p-postList.-type-card .p-postList__body {
    padding: 8px;
}
.p-postList .p-postList__title {
    font-size: .8rem;
    color: #C5162F;
}
.p-postList__body {

}

.c-pageTitle__main {
    font-size: 16px;
}
.affilink {
    width: calc(50%);
    display: block;
}
.affilink a {
    color: #fff;
    width: 100%;
    font-size: inherit;
    line-height: 1.5;
    padding: .75em 1.5em;
    transition: opacity .25s;
    background-color: var(--wp--preset--color--vivid-red) ;
    align-content: center;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    height: 100%;
    text-align: center;
    word-break: break-word;
    text-decoration: none;
    border-radius: 8px;
}
ul.wp-block-categories-list.wp-block-categories {
    display: flex;
    flex-wrap: wrap;
	  font-size: .8rem;
}

.wp-block-image.aligncenter>figcaption {
    display: none;
}
.c-postThumb__img {
    height: auto;
}
.wp-block-table table th,
.wp-block-table table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
.p-postList__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}
.wp-block-image.aligncenter {
    display: inline-block;
}
.wp-block-image.aligncenter.sample-img {
    display: inline-block;
    width: 49%;
}
.sample-img a {
    width: 100%;
    aspect-ratio: 1;
}
.sample-img img {
    height: 100%;
    object-fit: cover;
}
.c-postThumb__figure {
    padding-top: unset;
}
.c-postThumb__img {
    position: unset;
}
.sample-img {
    height: 92px;
}
.p-postList__thumb:before {
	content:unset;
    width: 0;
	height: 0;
}
.sample-images-wrap {
  display: flex;       /* 横並びにする */
  flex-wrap: wrap;    /* 入りきらない場合に折り返す */
  gap: 10px;          /* 画像同士の隙間（お好みで調整） */
  justify-content: center; /* 中央寄せにする */
}

.sample-images-wrap .wp-block-image {
  flex-basis: calc(50% - 5px); /* 50%幅から隙間の半分を引く */
  margin: 0;                   /* デフォルトの余白をリセット */
}

.sample-images-wrap img {
  width: 100%;       /* 親の幅いっぱいに広げる */
  height: auto;      /* アスペクト比を維持 */
  display: block;    /* 下の隙間を消す */
}
@media (min-width: 768px) {
	.p-postList.-type-card .p-postList__item {
    flex-basis: 21%;
		}
	.p-postList__body {
		display: block;
}
	.wp-block-image.aligncenter.sample-img {
    display: inline-block;
    width: 19%;
}

	figure.p-entry__thumb {
    display: none;
}
	.c-postContent.p-entry__content div:first-child {
    width: 100%;
}
	.wp-block-table table th,
	.wp-block-table table td {
	display: table-cell;
        width: auto;
    }
	.wp-block-table table th {
    width: 20%;
}
	.sample-images-wrap .wp-block-image {
  flex-basis: calc(25% - 5px); /* 50%幅から隙間の半分を引く */
  margin: 0;                   /* デフォルトの余白をリセット */
}
}
@media (min-width: 1000px) {
    [data-sidebar=off] .p-postList.-type-card .p-postList__item {
        flex-basis: 22%;
    }
	.search .l-content__body.l-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
	main#main_content {
		width: 72%;
		padding: 10px 20px;
}
	aside#sidebar {
		width: 27%;
		padding: 10px 20px;
}
	


/* 女優メイン画像 */
.p-actress-main-visual {
    margin-bottom: 2.5rem;
    text-align: center;
    overflow: hidden;
    border-radius: 12px;
}

.p-actress-main-visual__img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 220px; /* あまりに大きくなりすぎないように調整 */
    margin: 0 auto;
    transition: transform 0.5s ease;
}

/* ホバーした時に少しズームする演出 */
.p-actress-main-visual:hover .p-actress-main-visual__img {
    transform: scale(1.02);
}

/* モバイル表示時の余白調整 */
@media (max-width: 768px) {
    .p-actress-main-visual {
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
}


/* プロフィールテーブル */
.p-actress-profile {
    margin-bottom: 3rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.p-actress-profile__table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
}

.p-actress-profile__table th {
    width: 30%;
    padding: 15px;
    background: #fdf2f9; /* 女優ページらしい淡いピンク */
    color: #d63384;
    font-size: 0.9rem;
    text-align: left;
    border-bottom: 1px solid #fff;
    white-space: nowrap;
}

.p-actress-profile__table td {
    padding: 15px;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* 最後の行のボーダーを消す */
.p-actress-profile__table tr:last-child th,
.p-actress-profile__table tr:last-child td {
    border-bottom: none;
}

/* 事務所リンクボタン風 */
.p-actress-profile__link {
    display: inline-block;
    color: #d63384;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.p-actress-profile__link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* スマホ対応 */
@media (max-width: 500px) {
    .p-actress-profile__table th {
        width: 35%;
        padding: 12px 10px;
        font-size: 0.85rem;
    }
    .p-actress-profile__table td {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}
/* Instagramリンクのカラー */
.p-actress-profile__link--instagram {
    color: #E1306C !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ユーザー名の表示を少しスマートに（basenameを使用） */
.p-actress-profile__link {
    font-size: 0.95rem;
    word-break: break-all;
}
	

	/* 女優詳細ページ リスト全体の設定 */
.ugc-actress-movies__list {
  display: grid;
  /* 1対1の比率で2列に分割 */
  grid-template-columns: repeat(2, 1fr); 
  /* アイテム同士の隙間（上下左右） */
  gap: 15px; 
  /* デフォルトのリストスタイルを解除 */
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各アイテムの中身を整える（任意） */
.ugc-actress-movies__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ugc-actress-movies__thumb img {
  width: 100%;    /* 親の幅いっぱいに画像を表示 */
  height: auto;   /* アスペクト比を維持 */
  display: block;
}

.ugc-actress-movies__meta {
  display: block;
  padding: 8px 0;
}

.ugc-actress-movies__name {
  display: block;
  font-weight: bold;
  font-size: 0.9rem;
}

.ugc-actress-movies__date {
  display: block;
  font-size: 0.8rem;
  color: #666;
}
}


/* 出演作品セクション全体 */
.p-actress-works {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.p-actress-works__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ジャンルフィルター */
.p-work-filter {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #fdf2f9; /* ほんのりピンク系 */
    border-radius: 12px;
}

.p-work-filter__label {
    font-size: 0.9rem;
    font-weight: bold;
    color: #888;
    margin-bottom: 10px;
}

.p-work-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.p-work-filter__btn {
    padding: 6px 16px;
    font-size: 0.85rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.p-work-filter__btn:hover {
    background: #fde4f7;
    border-color: #f78de7;
}

.p-work-filter__btn.is-active {
    background: #f78de7;
    color: #fff;
    border-color: #f78de7;
    box-shadow: 0 4px 10px rgba(247, 141, 231, 0.3);
}
/* 選択中のボタンにチェックアイコン風の装飾を追加（任意） */
.p-work-filter__btn.is-active::before {
    content: '✓';
    margin-right: 4px;
    font-weight: bold;
}

/* 「すべて」ボタンだけ少し色を変える場合 */
.p-work-filter__btn[data-filter="all"].is-active {
    background: #666;
    border-color: #666;
}



/* グリッド部分 */
.p-actress-works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}
.p-actress-works__item {
    transition: transform 0.2s;
}
.p-actress-works__thumb img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
}
.p-actress-works__item-title {
    font-size: 0.8rem;
    margin-top: 8px;
    line-height: 1.4;
}



.p-actress-works__item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.p-actress-works__item-title a:hover {
    color: #f78de7; /* ホバー時にサイトカラーへ */
    text-decoration: underline;
}

/* サムネイルをホバーした時に少し浮き上がる演出 */
.p-actress-works__thumb-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}




/* 女優名サジェスト全体のコンテナ */
#actress-suggest-list {
    position: relative;
    width: 100%;
}

.suggest-container {
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    position: absolute;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    margin-top: -1px; /* 入力欄と密着させる */
}

/* 各候補アイテム */
.suggest-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95em;
    color: #333;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
}

.suggest-item:last-child {
    border-bottom: none;
}

/* ホバー（マウスを乗せた時）の演出 */
.suggest-item:hover {
    background-color: #fff0f5; /* サイトのテーマに合わせた薄ピンク */
    color: #d63384; /* アクセントカラーのピンク */
    font-weight: bold;
}

/* アイコンっぽさを出すための装飾（任意） */
.suggest-item::before {
    content: "👤";
    margin-right: 8px;
    font-size: 0.8em;
    opacity: 0.6;
}



/* 関連記事エリアの親テーマの干渉をリセット */
.p-entry__related .p-postList.-related {
    display: grid !important; /* Gridを強制適用 */
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 16px !important;
    list-style: none;
    padding: 0;
}

/* 親テーマの width: 33.33% や 50% を無効化する */
.p-entry__related .p-postList.-related .p-postList__item {
    width: auto !important; /* 親テーマの%指定を解除 */
    margin: 0 !important;   /* 余白をGridのgapに任せる */
}

/* サムネイル容器の比率を維持 */
.p-entry__related .p-postList__thumbInner {
    position: relative;
    background: #f0f0f0;
}

/* スマホ表示（2列）の調整 */
@media screen and (max-width: 480px) {
    .p-entry__related .p-postList.-related {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}



/* サンプル画像ギャラリーのスタイル */
.p-movie-sample-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* 自動折り返し */
    gap: 12px;
    margin: 24px 0;
}

/* 画像自体の装飾 */
.p-movie-sample-img {
    width: auto;
    height: 88px;
    margin: auto;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

/* ホバー時の演出（お好みで） */
.p-movie-sample-link:hover .p-movie-sample-img {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* スマホ対応：画面が小さい時は2列にするなどの微調整 */
@media (max-width: 480px) {
    .p-movie-sample-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}


/* 女優の新作通知ボタン */
.ugc-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d63384; 
    color: #fff !important; 
    border: none; 
    padding: 8px 18px;
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: bold; 
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
}

.ugc-follow-btn.is-following {
    background: #6c757d;
}
.ugc-follow-btn i {
    font-size: 16px;
}
.ugc-follow-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(214, 51, 132, 0.3);
}
