/*
Theme Name: GeneratePress-Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Your Name
Author URI: https://yourwebsite.com
Description: GeneratePress child theme for media portal
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

#main{
  margin-top: 0;
}

body{
  padding: 0 10px;
  box-sizing: border-box;
}

a{
  text-decoration: none;
  color: inherit;
}

h1.site-title{
  margin: 0;
}
.site-logo{
  width: 240px;
}
@media screen and (max-width: 768px){
  .site-logo{
    width: 180px;
  }
}

.site-logo a{
  display: block;
}

/* ヘッダーレイアウト */
.site-header {
  padding: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
}

.site-branding {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-buttons {
  display: flex;
  gap: 0.5rem;
}

.header-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 4px;
}

/* ナビゲーションスタイル */
.main-navigation {
  width: 100%;
}

.nav-menu-wrapper {
  width: 100%;
}

.nav-menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu .menu-item {
  flex: 1;
  text-align: center;
}

.nav-menu .menu-item a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
}

/* 検索フォーム */
.header-search .search-form {
  display: flex;
}

.header-search .search-field {
  border-radius: 4px 0 0 4px;
  border: 1px solid #ddd;
  padding: 0.5rem;
}

.header-search .search-submit {
  border-radius: 0 4px 4px 0;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

 #content.site-content {
  flex-direction: column;
}


.archive #content.site-content, 
.wp-singular #content.site-content,
.error404 #content.site-content,
.search #content.site-content{
  flex-direction: row;
}
@media screen and (max-width: 768px){
.archive #content.site-content, 
.wp-singular #content.site-content,
.error404 #content.site-content,
.search #content.site-content{
  flex-direction: column;
}
}

.site-content-wrapper #page{
  flex: 1;
}
.site-content-wrapper #primary{
  width: 100%;
}
/* フルワイドスライダーのスタイル修正 */
.featured-slider-container {
  width: 100%;
  max-width: 100%;
  margin: 0 0 2rem 0;
  padding: 0;
  clear: both;
  display: block;
}

/* スライダーの写真と内容のレイアウト */
.featured-slide {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 2rem;
  aspect-ratio: 16/9;
  min-height: 300px;
  max-height: 80vh;
}

/* スライダー画像のスタイル */
.featured-slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.featured-slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* スライダー画像の読み込み中のプレースホルダー */
.featured-slider-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #f3f3f3 25%, #e0e0e0 25%, #e0e0e0 50%, #f3f3f3 50%, #f3f3f3 75%, #e0e0e0 75%);
  background-size: 20px 20px;
  animation: loading 1s infinite linear;
  z-index: -1;
}

@keyframes loading {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 20px 20px;
  }
}

.featured-content {
  position: relative;
  z-index: 1;
  max-width: 70%;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 5px;
  color: #fff;
}

.featured-title {
  color: #fff;
  margin-bottom: 1rem;
}

.featured-excerpt {
  margin-bottom: 1.5rem;
  color: #eee;
}

.featured-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 30px;
}



.featured-nav-next,
.featured-nav-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.featured-nav-next:hover,
.featured-nav-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.featured-nav-next {
    right: 20px;
}

.featured-nav-prev {
    left: 20px;
}

.nav-button {
    color: white;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
} 

/* スライダーカウンター */
.slider-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  z-index: 10;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .featured-slide {
    aspect-ratio: 16/9;
    padding: 1rem;
    min-height: 200px;
  }
  
  .featured-content {
    max-width: 100%;
    padding: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .featured-slide {
    aspect-ratio: 16/9;
    padding: 0.5rem;
    min-height: 180px;
  }


  .featured-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .featured-excerpt {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .featured-button {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}


/* ポストグリッドレイアウト */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}

@media screen and (max-width: 600px) {
  .post-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}


.post-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  border: 1px #DEE2E6 solid;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.post-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.post-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}


.post-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.post-content{
  padding: 1rem;
}

.post-card > * {
  position: relative;
  z-index: 2;
}

.post-thumbnail {
  width: 100%;
  height: 180px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}





/* 全記事一覧ページのスタイル */
.all-posts-filters {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.all-posts-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.filter-item {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.filter-item label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.filter-item select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter-submit {
  padding: 0.5rem 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: auto;
}

.filter-submit:hover {
  background-color: #555;
}

.all-posts-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .all-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-item {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .all-posts-grid {
    grid-template-columns: 1fr;
  }
}

.pagination {
  margin: 2rem 0;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
}

.pagination .current {
  background-color: #333;
  color: #fff;
}


.view-more-wrapper{
  margin-top: 2rem;
  text-align: center;
}
.view-more-wrapper a{
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  background-color: #333;
  border-radius: 4px;
}



/* アーカイブページ全般 */
.page-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  background: #1e2226;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

/* 検索とタグ */
.archive-filter-container {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.archive-search {
  margin-bottom: 1rem;
}

.archive-search .search-form {
  display: flex;
}

.archive-search .search-field {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.archive-search .search-submit {
  padding: 0.5rem 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.archive-tag:hover {
  background-color: #ddd;
}

/* ピックアップ記事 */
.pickup-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.pickup-article {
  padding: 20px;
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pickup-thumbnail a{
  display: block;
  width: 100%;
  height: 100%;
}

.pickup-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pickup-content {
  padding: 1.5rem;
}

.pickup-title {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.pickup-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.pickup-excerpt {
  margin-bottom: 1.5rem;
}

.read-more-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
}

.read-more-button:hover {
  background-color: #555;
  color: #fff;
}

/* 記事グリッド */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.archive-card {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px #DEE2E6 solid;
  transition: all 0.3s ease;
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.archive-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.archive-thumbnail {
  height: 180px;
  overflow: hidden;
}

.archive-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.archive-content {
  padding: 1rem;
}

.archive-title {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.archive-meta {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.archive-excerpt {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* 広告バナー */
.ad-banner-container {
  margin: 2rem 0;
}

.ad-banner {
  background-color: #f5f5f5;
  padding: 2rem;
  text-align: center;
  border-radius: 4px;
}

/* ページネーション */
.archive-pagination {
  margin: 2rem 0;
  text-align: center;
}

.archive-pagination ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.archive-pagination li {
  margin: 0;
}

.archive-pagination li a,
.archive-pagination li span {
  display: block;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.archive-pagination .current {
  background-color: #333;
  color: #fff;
}

/* 人気グラビアアイドル */
.popular-idols-section {
  margin: 2rem 0;
}

.popular-idols-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
}

.popular-idols-grid a{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.idol-icon {
  text-align: center;
}

.idol-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}
.idol-name{
  font-size: 14px;
}

.no-thumbnail {
  width: 80px;
  height: 80px;
  background-color: #eee;
  border-radius: 50%;
  margin: 0 auto;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .popular-idols-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .pickup-article {
    flex-direction: column;
  }
  
  .pickup-thumbnail {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .archive-grid {
    grid-template-columns: 1fr;
  }

}

/* サイドバーウィジェットのスタイル */
.recommended-posts-list,
.popular-posts-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommended-post,
.popular-post {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}


.recommended-post-link,
.popular-post-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.recommended-post-thumbnail,
.popular-post-thumbnail {
  width: 80px;
  margin-right: 1rem;
}

.recommended-post-thumbnail img,
.popular-post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.recommended-post-content,
.popular-post-content {
  flex: 1;
}

.recommended-post-title,
.popular-post-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.popular-post-rank {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.recommended-post-date,
.popular-post-date {
  font-size: 0.8rem;
  color: #666;
}

.sidebar-pickup-post {
  margin-bottom: 1rem;
}

.sidebar-pickup-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.sidebar-pickup-title {
  margin: 0;
  font-size: 1rem;
}


/* グラビアプロフィールアーカイブページ */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px #DEE2E6 solid;
  transition: box-shadow 0.3s ease;
}

.profile-card:hover {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.profile-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.profile-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.profile-content {
  padding: 1rem;
  text-align: center;
}

.profile-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.profile-sizes {
  font-size: 0.9rem;
  color: #666;
}

/* グラビアプロフィール詳細ページ */
.talent-breadcrumb {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

.talent-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.talent-breadcrumb a:hover {
  text-decoration: underline;
}

.talent-profile {
  margin-bottom: 3rem;
}

.talent-profile-header {
  display: flex;
  margin-bottom: 2rem;
}

.talent-profile-image {
  flex: 0 0 40%;
  margin-right: 2rem;
}

.talent-profile-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.no-profile-image {
  width: 100%;
  padding-top: 150%;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.talent-profile-info {
  flex: 1;
}

.talent-name {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.talent-basic-info {
  margin-bottom: 1.5rem;
}

.talent-basic-info p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.talent-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.talent-action-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.talent-action-button:hover {
  background-color: #555;
  color: #fff;
}

.favorite-button {
  background-color: #f44336;
}

.favorite-button:hover {
  background-color: #e53935;
}

.talent-profile-content {
  display: flex;
  flex-direction: column-reverse;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.talent-profile-description {
  flex: 0 0 60%;
  padding-right: 2rem;
}

.talent-profile-description h2 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.talent-profile-details {
  flex: 0 0 40%;
}

.talent-details-table {
  width: 100%;
  border-collapse: collapse;
}

.talent-details-table th,
.talent-details-table td {
  padding: 0.8rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

.talent-details-table th {
  width: 30%;
  color: #555;
  font-weight: 600;
}

.talent-sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sns-link {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  color: #fff;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.8rem;
}

.sns-link.twitter {
  background-color: #1da1f2;
}

.sns-link.instagram {
  background-color: #c13584;
}

.sns-link.website {
  background-color: #4285f4;
}

.sns-link:hover {
  opacity: 0.9;
  color: #fff;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .talent-profile-header {
    flex-direction: column;
  }
  
  .talent-profile-image {
    flex: none;
    margin-right: 0;
    margin-bottom: 1.5rem;
    width: 100%;
  }
  
  .talent-profile-content {
    flex-direction: column;
  }
  
  .talent-profile-description {
    flex: none;
    width: 100%;
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .talent-profile-details {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ドロップダウンメニューのスタイル */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 0;
    border-radius: 4px;
}

.main-navigation .menu-item-has-children:hover .sub-menu {
    display: block;
}

.main-navigation .sub-menu .menu-item {
    margin: 0;
    padding: 0;
}

.main-navigation .sub-menu .menu-item a {
    display: block;
    font-size: 14px;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.main-navigation .sub-menu .menu-item a:hover {
    background-color: #f5f5f5;
}

/* メニューアイテムのホバーエフェクト */
.main-navigation .menu-item a {
    position: relative;
    transition: color 0.3s;
}

.main-navigation .menu-item a:hover {
    color: #ffbac9;
}

/* メニューアイテムの矢印 */
.main-navigation .menu-item-has-children > a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* カテゴリーページスタイル */
.category-breadcrumb {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

.category-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.category-breadcrumb a:hover {
  text-decoration: underline;
}

.category-header {
  background-color: #1e2226;
  color: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 5px;
}

.category-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.category-description {
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.category-meta {
  font-size: 0.9rem;
  color: #ccc;
}

.category-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 600px){
  .category-posts{
    margin: 0 auto;
    max-width: 340px;
  }
}

.category-post-item {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.post-thumbnail {
  flex: 0 0 200px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-post-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

.no-thumbnail {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
}

.post-title a {
  color: #333;
  text-decoration: none;
}

.post-title a:hover {
  color: #e83e8c;
}

.post-meta {
  display: flex;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #666;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-category, .post-type {
  background-color: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.post-category a {
  color: #666;
  text-decoration: none;
}

.post-type {
  background-color: #e83e8c;
  color: #fff;
}

.post-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.post-views {
  font-size: 0.9rem;
  color: #666;
}

.read-more-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.read-more-link:hover {
  background-color: #e83e8c;
  color: #fff;
}

.category-pagination {
  margin: 2rem 0;
}

.category-pagination ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.category-pagination li {
  margin: 0;
}

.category-pagination a,
.category-pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid #ddd;
}

.category-pagination a:hover {
  background-color: #e0e0e0;
}

.category-pagination .current {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

@media (max-width: 768px) {
  .category-post-item {
      flex-direction: column;
  }
  
  .post-thumbnail {
      flex: 0 0 200px;
      width: 100%;
  }
}
/* 芸能ニュースページスタイル */
.news-breadcrumb {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

.news-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.news-breadcrumb a:hover {
  text-decoration: underline;
}

.news-header {
  background-color: #1e2226;
  color: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 5px;
}

.news-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.news-description {
  font-size: 0.95rem;
  color: #e0e0e0;
}

/* カテゴリーフィルター */
.news-category-filter {
  background-color: #f5f5f5;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 5px;
}

.category-label {
  font-weight: bold;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.category-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-item {
  margin: 0;
  display: inline-block;
}

.category-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #fff;
  color: #333;
  text-decoration: none;
  border-radius: 50px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.category-button:hover {
  background-color: #f0f0f0;
}

.category-item.active .category-button {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

/* 通常のニュース記事一覧 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.news-item {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px #DEE2E6 solid;
  transition: all 0.3s ease;
}

@media screen and (min-width: 769px) {
  .news-item{
    height: 100%;
    max-height: 180px;
  }
}
.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-thumbnail {
  flex: 0 0 150px;
  overflow: hidden;
}

.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-thumbnail img {
  transform: scale(1.05);
}

.no-thumbnail {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.news-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.news-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.news-title a {
  color: #333;
  text-decoration: none;
}

.news-title a:hover {
  color: #555;
}

.news-meta {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #777;
}

.news-category a {
  color: #555;
  text-decoration: none;
}

.news-excerpt {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  flex-grow: 1;
}

.read-more-link {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.8rem;
  align-self: flex-end;
  transition: background-color 0.3s ease;
}

.read-more-link:hover {
  background-color: #555;
}

/* ページネーション */
.news-pagination {
  margin: 2rem 0;
}

.news-pagination ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.3rem;
}

.news-pagination li {
  margin: 0;
}

.news-pagination a,
.news-pagination span {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9rem;
}

.news-pagination .current {
  background-color: #333;
  color: #fff;
}

@media (max-width: 768px) {
  .news-item {
      flex-direction: column;
  }
  
  .news-thumbnail {
      flex: 0 0 200px;
      width: 100%;
  }
  
  .pickup-container {
      flex-direction: column;
  }
  
  .pickup-article {
      flex-direction: column;
  }
  
  .pickup-thumbnail {
      width: 100%;
  }
}



/*--------------------------------------------------------------
# ウィジェットスタイル
--------------------------------------------------------------*/

/* 共通ウィジェットスタイル */
.widget-title {
  font-size: 18px;
  font-weight: bold;
  padding: 10px 15px;
  background-color: #333;
  color: #fff;
  margin-bottom: 0;
}

/* おすすめ記事・人気記事ウィジェット */
.recommended-posts-list,
.popular-posts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recommended-post,
.popular-post {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recommended-post:last-child,
.popular-post:last-child {
  border-bottom: none;
}

.recommended-post-link,
.popular-post-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.recommended-post-thumbnail,
.popular-post-thumbnail {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  margin-right: 10px;
  background-color: #f0f0f0;
}

.recommended-post-thumbnail img,
.popular-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommended-post-content,
.popular-post-content {
  flex-grow: 1;
}

.recommended-post-title,
.popular-post-title {
  font-size: 14px;
  margin: 0 0 5px 0;
  font-weight: normal;
  line-height: 1.4;
}

.popular-post-rank {
  display: block;
  font-size: 12px;
  color: #e44;
  margin-bottom: 3px;
}

.recommended-post-date,
.popular-post-date {
  font-size: 12px;
  color: #666;
}

.widget-area .widget{
  padding: 0;
}



.widget ul li{
  padding: 1em;
}
@media screen and (max-width: 768px){
  .widget ul li{
    padding: 0.5em;
  }
  .separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation, .one-container .site-content, .inside-page-header{
    padding: .5em;
  }
}

/* 注目タレントウィジェット */
.featured-talents-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.featured-talent {
  margin-bottom: 0;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.featured-talent:last-child {
  border-bottom: none;
}

.featured-talent-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.featured-talent-thumbnail {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  margin-right: 10px;
  background-color: #f0f0f0;
  border-radius: 50%;
  overflow: hidden;
}

.featured-talent-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-talent-content {
  flex-grow: 1;
}

.featured-talent-title {
  font-size: 14px;
  margin: 0 0 5px 0;
  font-weight: bold;
  line-height: 1.4;
}

.featured-talent-meta {
  font-size: 12px;
  color: #666;
  display: block;
}

/* ウィジェット共通のカテゴリースタイル */
.recommended-post-category,
.popular-post-category {
  font-size: 12px;
  color: #444;
  display: block;
  margin-bottom: 3px;
}

/* 女優紹介ウィジェット */
.actress-profile-widget {
  text-align: center;
  padding: 15px;
}

.actress-profile-image {
  margin-bottom: 15px;
}

.actress-profile-image img {
  max-width: 150px;
  max-height: 150px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  display: inline-block;
}

.actress-profile-name {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.actress-profile-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #333;
}

.actress-profile-button {
  display: inline-block;
  padding: 8px 20px;
  background-color: #555;
  color: white;
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.actress-profile-button:hover {
  background-color: #333;
  color: white;
}


/* ピックアップ記事カードレイアウト */
.article-pickup-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.article-pickup-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-3px);
}

.article-pickup {
  padding: 0;
  margin: 0;
}

.article-pickup-thumbnail {
  margin-bottom: 0;
  position: relative;
}

.article-pickup-thumbnail img {
  width: 100%;
  max-height: 180px;
  height: 100%;
  object-fit: cover;
}

.article-pickup-content {
  padding: 15px;
}

.article-pickup-title {
  font-size: 16px;
  margin: 0 0 8px 0;
  font-weight: bold;
  line-height: 1.4;
  color: #333;
}

.article-pickup-meta {
  margin-bottom: 8px;
  font-size: 12px;
  color: #666;
}

.article-pickup-category {
  margin-right: 5px;
}

.article-pickup-excerpt {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .article-pickup-content {
      padding: 12px;
  }
  
  .article-pickup-title {
      font-size: 15px;
  }
  
  .article-pickup-excerpt {
      font-size: 12px;
  }
}

/* プロフィール関連記事一覧 */

.related-articles-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 768px){
  .related-articles-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px){
  .related-articles-grid{
    grid-template-columns: repeat(1, 1fr);
  }
}



.related-article{
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px #DEE2E6 solid;
  transition: all 0.3s ease;
}

.related-article:hover{
  transform: translateY(-3px);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.related-article-thumbnail{
  height: 180px;
  overflow: hidden;
}

.related-article-thumbnail img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-article-content{
  padding: 1rem;
}

.related-article-title{
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.related-article-meta{
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.related-article-excerpt{
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}


  /* カテゴリーページのスタイル */
  .category-tabs-container {
    margin-bottom: 2rem;
  }

  .category-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #f0f0f0;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .tab-item {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -2px;
  }

  .tab-item:hover {
    color: #e83e8c;
  }

  .tab-item.active {
    color: #e83e8c;
    border-bottom-color: #e83e8c;
  }

  .tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
  }

  .tab-content.active {
    display: block;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .category-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
  }

  .category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .category-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }

  .category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
  }

  .category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .category-card:hover .category-image img {
    transform: scale(1.05);
  }

  .category-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  }

  .category-info {
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .category-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
  }

  .category-count {
    background-color: #f8f9fa;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
  }

  .count-number {
    font-weight: bold;
    color: #e83e8c;
    font-size: 1.1rem;
  }

  .count-label {
    font-size: 0.8rem;
    color: #6c757d;
  }

  .category-view-button {
    background-color: #f8f9fa;
    color: #495057;
    text-align: center;
    padding: 0.75rem;
    font-weight: bold;
    border-top: 1px solid #e9ecef;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .category-card:hover .category-view-button {
    background-color: #e83e8c;
    color: #fff;
  }

  @media (max-width: 992px) {
    .category-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 576px) {
    .category-grid {
      grid-template-columns: 1fr;
    }

    .tab-item {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }
  }



  /* レスポンシブ */



/* プライマリコンテンツ（メイン部分） */
#primary {
  width: 100%;
  order: 1; /* 表示順序: 最初に表示 */
}

/* サイドバー */
#right-sidebar {
  width: 100%;
  order: 2; /* 表示順序: メインコンテンツの後 */
}


@media screen and (max-width: 600px){
  #right-sidebar{
    max-width: 340px;
    margin: 0 auto;
  }
}


.site-content-wrapper {
  display: flex;
  flex-direction: row; /* 横並びに変更 */
  flex-wrap: wrap;
}

@media screen and (max-width: 768px){

  /* ベースレイアウト */
  .site-content-wrapper {
    flex-direction: column; /* モバイルではデフォルトで縦並び */
    width: 100%;
  }
}

/* タブレット以上の画面サイズ (768px以上) */
#primary {
  width: 65%; /* メインコンテンツは65%幅 */
}

#right-sidebar {
  width: 35%; /* サイドバーは35%幅 */
}
@media screen and (max-width: 768px){
  #primary {
    width: 100%; /* メインコンテンツは65%幅 */
  }
  
  #right-sidebar {
    width: 100%; /* サイドバーは35%幅 */
  }
}




/* モバイルメニューとレスポンシブデザイン */
.desktop-only {
  display: block;
}

.mobile-menu-toggle {
  display: none;
}

.search-icon-wrapper {
  display: none;
}

/* スマートフォン表示時のヘッダー固定 */
@media screen and (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  body {
    padding-top: 90px; /* ヘッダーの高さに合わせて調整 */
  }
}

/* ハンバーガーメニューアイコン */
.hamburger-icon {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
  position: relative;
  margin: 10px 0;
}

.hamburger-icon:before,
.hamburger-icon:after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
  position: absolute;
  left: 0;
}

.hamburger-icon:before {
  top: -8px;
}

.hamburger-icon:after {
  bottom: -8px;
}

/* 検索アイコン */
.search-icon svg {
  color: #333;
  transition: color 0.3s ease;
}

.search-icon:hover svg {
  color: #ffbac9;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: #fff;
  z-index: 1001;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.mobile-menu.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

body.mobile-menu-open .mobile-menu-overlay {
  display: block;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.close-icon {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  color: #ffbac9;
}

#close-mobile-menu {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-content {
  padding: 20px;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-menu .menu-item {
  margin-bottom: 15px;
  position: relative;
}

.mobile-nav-menu .menu-item a {
  display: block;
  padding: 5px 0;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

.mobile-nav-menu .menu-item-has-children > a {
  margin-right: 40px;
}

.submenu-toggle {
  position: absolute;
  right: 0;
  top: 3px;
  padding: 0;
  width: 30px;
  height: 30px;
  background: #ffbac9;
  border: 1px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.submenu-toggle:hover{
  background: #fff;
  border: 1px solid #ffbac9;
  color: #ffbac9;
}

.submenu-toggle.active{
  color: #ffbac9;
  background: #fff;
  border: 1px solid #ffbac9;
}

.toggle-icon {
  font-size: 18px;
  line-height: 1;
}

.mobile-sub-menu {
  display: none;
  list-style: none;
  margin: 10px 0 0 20px;
  padding: 0;
}

.mobile-sub-menu.active {
  display: block;
}

.mobile-sub-menu .menu-item {
  margin-bottom: 10px;
}

.mobile-sub-menu .menu-item a {
  font-size: 14px;
  font-weight: normal;
}

.menu-item-login a,
.menu-item-register a {
  background-color: #f5f5f5;
  padding: 8px 15px !important;
  border-radius: 4px;
  text-align: center;
}

.menu-item-register a {
  background-color: #ffbac9;
  color: #fff !important;
}

/* メディアクエリー */
@media screen and (max-width: 768px) {
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .site-branding {
    text-align: center;
    align-items: center;
    justify-content: center;
    flex: 1;
  }
  
  .desktop-only {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }
  
  #mobile-menu-button {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  .search-icon-wrapper {
    display: block;
    flex: 0 0 auto;
    width: 40px;
  }
  
  .main-navigation {
    display: none;
  }

  .inside-header{
    padding: 15px;
  }
  .header-content{
    padding: 0;
  }
  
}

@media screen and (max-width: 480px) {
  .site-branding .site-title {
    font-size: 1.2rem;
  }
  
  .hamburger-icon,
  .hamburger-icon:before,
  .hamburger-icon:after {
    width: 20px;
  }
  
  .search-icon svg {
    width: 20px;
    height: 20px;
  }
}



/* 検索ページのスタイル */
.search-page-container {
  margin-bottom: 3rem;
}

.search-page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background-color: #1e2226;
  color: #fff;
  padding: 1.5rem;
  border-radius: 5px;
}

.search-page-description {
  text-align: center;
  margin-bottom: 2rem;
}

.search-page-form {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 5px;
  margin-bottom: 3rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.search-field-container {
  display: flex;
  margin-bottom: 1.5rem;
}

.search-page-form .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
}

.search-page-form .search-submit {
  padding: 0.75rem 1.5rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s;
}

.search-page-form .search-submit:hover {
  background-color: #555;
}

.search-options {
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.search-filters h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.post-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.post-type-filters label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.post-type-filters input[type="radio"] {
  margin-right: 0.5rem;
}

@media screen and (max-width: 768px) {
  .search-page-title {
    font-size: 1.6rem;
    padding: 1.2rem;
  }
  
  .search-page-form {
    padding: 1.5rem;
  }
  
  .post-type-filters {
    gap: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .search-field-container {
    flex-direction: column;
  }
  
  .search-page-form .search-field {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 0.75rem;
  }
  
  .search-page-form .search-submit {
    width: 100%;
    border-radius: 5px;
  }
  
  .post-type-filters {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .search-page-title {
    font-size: 1.4rem;
    padding: 1rem;
  }
}

/* 検索結果ページスタイル */
.search-breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #666;
}

.search-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.search-breadcrumb a:hover {
  text-decoration: underline;
}

.search-header {
  background-color: #1e2226;
  color: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 5px;
}

.search-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.search-meta {
  font-size: 0.9rem;
  color: #ccc;
}

.search-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.search-post-item {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media screen and (min-width: 769px) {
  .search-post-item {
    max-height: 180px;
  }
}

.search-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-post-thumbnail {
  flex: 0 0 200px;
  overflow: hidden;
}

.search-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.search-post-item:hover .search-post-thumbnail img {
  transform: scale(1.05);
}

.search-post-content {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.search-post-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
}

.search-post-title a {
  color: #333;
  text-decoration: none;
}

.search-post-title a:hover {
  color: #e83e8c;
}

.search-post-meta {
  display: flex;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #666;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-post-category, .search-post-type {
  background-color: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

.search-post-category a {
  color: #666;
  text-decoration: none;
}

.search-post-type {
  background-color: #e83e8c;
  color: #fff;
}

.search-post-excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  flex-grow: 1;
}

.search-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.search-post-views {
  font-size: 0.9rem;
  color: #666;
}

.search-read-more-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.search-read-more-link:hover {
  background-color: #e83e8c;
  color: #fff;
}

.search-pagination {
  margin: 2rem 0;
}

.search-pagination ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.search-pagination li {
  margin: 0;
}

.search-pagination a,
.search-pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid #ddd;
}

.search-pagination a:hover {
  background-color: #e0e0e0;
}

.search-pagination .current {
  background-color: #333;
  color: #fff;
  border-color: #333;
}

@media (max-width: 768px) {
  .search-post-item {
    flex-direction: column;
  }
  
  .search-post-thumbnail {
    flex: 0 0 200px;
    width: 100%;
  }
}



/* モバイル向けスライダーレイアウト調整 */
@media screen and (max-width: 768px) {
  .featured-nav-next{
    right: 7px;
  }
  .featured-nav-prev{
    left: 7px;
  }
  .featured-slider-container{
    margin: 0;
  }
  .swiper-pagination{
    display: none;
    margin-top: 10px;
    position: relative;
  }
  /* スライダーの基本レイアウト */
  .featured-slide,
  .featured-slide.mobile-slide-link {
    display: block;
    padding: 0;
    position: relative;
    aspect-ratio: 16/9;
    min-height: unset;
    max-height: unset;
  }
  
  /* 画像コンテナ */
  .featured-slider-image {
    position: relative;
    height: 100%;
    width: 100%;
    z-index: 0;
  }
  
  /* コンテンツ部分 */
  .featured-content {
    position: relative;
    max-width: 100%;
    background-color: white;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 0;
    margin: 0;
    height: 2rem;
    z-index: 1;
    color: #333;
  }
  
  /* タイトル */
  .featured-title {
    font-size: inherit;
    margin-bottom: 0;
    text-align: center;
    color: #333;
  }
  
  /* 抜粋部分を非表示 */
  .featured-excerpt {
    display: none;
  }
  
  /* ボタンを非表示 */
  .featured-button-wrapper {
    display: none;
  }
  
  /* ナビゲーションボタン */
  .featured-nav-next,
  .featured-nav-prev {
    top: 36%;
    transform: translateY(0);
    z-index: 20;
  }
}

@media screen and (max-width: 600px) {
  h1.entry-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  h1 {
    font-size: 28px;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 24px;
    line-height: 1.35;
  }
  
  h3 {
    font-size: 21px;
    line-height: 1.4;
  }
  
  h4 {
    font-size: 18px;
    line-height: 1.45;
  }
  
  h5 {
    font-size: 16px;
    line-height: 1.5;
  }
  p{
    font-size: 14px;
  }
}



/* タグ一覧ページ (page-tags.php) スタイル */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.tag-card {
  background-color: #f8f9fa;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  padding: 0;
  border: 1px solid #e9ecef;
}

.tag-card:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

.tag-card-link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
  border: 1px solid #e83e8c;
  background-color: #e83e8c;
  color: white;
}

.tag-card-link:hover{
  background-color: white;
  border: 1px solid #e83e8c;
  color: #e83e8c;
}

.tag-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.tag-count {
  font-size: 0.85rem;
  color: inherit;
  padding: 3px 8px;
  border-radius: 20px;
  min-width: auto;
  text-align: center;
}

.tag-pagination {
  margin: 2rem 0;
  text-align: center;
}

.tag-pagination ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.tag-pagination li {
  margin: 0;
}

.tag-pagination a,
.tag-pagination span {
  display: block;
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.tag-pagination .current {
  background-color: #333;
  color: #fff;
}

/* タグアーカイブページ (tag.php) スタイル */
.tag-breadcrumb {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

.tag-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.tag-breadcrumb a:hover {
  text-decoration: underline;
}

.tag-header {
  background-color: #1e2226;
  color: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 5px;
}

.tag-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.tag-description {
  margin-bottom: 1rem;
  color: #e0e0e0;
}

.tag-meta {
  font-size: 0.9rem;
  color: #ccc;
}

.tag-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 600px){
  .tag-posts{
    margin: 0 auto;
    max-width: 340px;
  }
}

.tag-post-item {
  display: flex;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tag-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .tag-post-item {
    flex-direction: column;
  }
  
  .tag-post-thumbnail {
    flex: 0 0 200px;
    width: 100%;
  }
}

/* page-tags.php レスポンシブ調整 */
@media (max-width: 992px) {
  .tag-grid {
    gap: 8px;
  }
  
  .tag-card {
    min-width: calc(25% - 8px);
  }
}

@media (max-width: 768px) {
  .tag-card {
    min-width: calc(33.333% - 8px);
  }
}

@media (max-width: 576px) {
  .tag-card {
    min-width: calc(50% - 8px);
  }
}



/* 記事詳細ページのスタイル */
.single-article {
  margin-bottom: 3rem;
}

/* パンくず */
.article-breadcrumb {
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

.article-breadcrumb a {
  color: #333;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

/* 記事ヘッダー */
.article-header {
  background-color: #fff;
  padding: 20px;

  margin-bottom: 2rem;
}

.article-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta-container{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-subtitle {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.article-category {
  background-color: #f5f5f5;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.article-category a {
  color: #333;
  text-decoration: none;
}

.article-views {
  color: #777;
}

/* ソーシャルシェアボタン */
.social-share-buttons {
  display: flex;
  gap: 1rem;
}
.article-body{
  padding: 16px;
  background-color: #fff;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.share-button:hover{
  color: #fff;
}

.share-button:hover {
  transform: translateY(-3px);
}

.share-button.facebook {
  background-color: #1877f2;
}

.share-button.twitter {
  background-color: #000000;
}

.share-button.line {
  background-color: #06c755;
}

.share-button.google {
  background-color: #db4437;
}

.favorite-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f8f8f8;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.favorite-button:hover {
  transform: translateY(-3px);
  background-color: #f5f5f5;
}

.favorite-button.active {
  color: #ff6b6b;
}

/* アイキャッチ画像 */
.article-thumbnail {
  margin-bottom: 2rem;
  border-radius: 5px;
  overflow: hidden;
}

.article-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* 記事本文 */
.article-content {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.article-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.article-content h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1.2rem;
}

.article-content h4 {
  font-size: 1.3rem;
  margin: 1.8rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1rem 1rem 2rem;
  border-left: 4px solid #eee;
  background-color: #f9f9f9;
  color: #555;
  font-style: italic;
}

/* 引用ブロック */
.article-content .wp-block-quote {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-left: 4px solid #dee2e6;
  margin: 1.5rem 0;
}

/* コードブロック */
.article-content pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* タグ一覧 */
.article-tags {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tags-label {
  font-weight: bold;
  margin-right: 1rem;
  display: inline-block;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags-list a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.tags-list a:hover {
  background-color: #e0e0e0;
}

/* 執筆者情報 */
.author-info {
  display: flex;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 5px;
  margin: 1rem 0;
}

.author-avatar {
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.author-avatar img {
  border-radius: 50%;
}

.author-content {
  flex: 1;
}

.author-name {
  font-size: 1.2rem;
  margin: 0 0 0.75rem 0;
}

.author-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.author-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.author-link:hover {
  background-color: #555;
  color: #fff;
}

/* 関連記事 */
.related-articles {
  margin: 3rem 0;
}

.related-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.related-article {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-article-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-article-thumbnail {
  height: 180px;
  overflow: hidden;
}

.related-article-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-article:hover .related-article-thumbnail img {
  transform: scale(1.05);
}

.no-thumbnail {
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-article-content {
  padding: 1.25rem;
}

.related-article-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

.related-article-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  gap: 1rem;
}

.related-article-category {
  color: #333;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .article-title {
    font-size: 1.6rem;
  }
  
  .article-subtitle {
    font-size: 1rem;
  }
  
  .social-share-buttons {
    gap: 0.75rem;
  }
  
  .share-button, .favorite-button {
    width: 36px;
    height: 36px;
  }
  
  .author-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }
  
  .author-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  
  .related-article-thumbnail {
    height: 200px;
  }
}