/*
Theme Name: hitomi-raw
Theme URI: https://example.com
Author: yourname
Description: Simple 2-column PC / 1-column mobile theme
Version: 1.0
*/

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header,
.site-footer {
  background: #f5f5f5;
  padding: 12px 0;
}

.site-title{
	font-size: 1.6rem;
}

.header-inner,
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  gap: 24px;
}

.content {
  flex: 1;
}

/* ===== main ===== */
.index-list {
  margin: 0 auto;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 一覧カード */
.post-item {
	width: 100%;
	border:1px solid #CCC;
	border-radius:10px;
}

.post-item .thumb {
  width: 100%;
  height: 200px;   /* ← ここが基準。右の画像に合わせる */
  overflow: hidden;
}

.post-item .thumb img {
  width: 100%;
  height: 100%;
	border-radius:10px 10px 0 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-item:hover {
  transform: translateY(-2px);
}

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

.post-title {
  font-size: 0.95rem;
  padding: 5px;
  line-height: 1.2;
}

.post-date{
  font-size:12px;
  color:#888;
  margin-top:4px;
}


/* ===== ページャー ===== */
.pagination {
  margin: 30px 0;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  background: #f3f3f3;
  color: #333;
}

.pagination .page-numbers.current {
  background: #ff4f9a;
  color: #fff;
  font-weight: bold;
}
.pagination .screen-reader-text {
  display: none;
}



/* ===== single.php ===== */
.single-inner {
  max-width: 900px;   /* ← メイン幅 */
  margin: 0 auto;     /* ← 中央寄せ */
  background: #f5f5f5;
  padding: 20px;
  border-radius: 6px;
}

/* タイトル */
.entry-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 8px 0 12px;
  color: #111;               /* 白背景想定 */
}

/* サークルなどメタ */
.meta-circle,
.page-count {
  color: #666;
  font-size: 0.95rem;
  margin: 6px 0;
}

/* メイン画像：中央・大きく */
.main-image {
  margin: 12px auto 14px;
  text-align: center;
}

.main-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 10px rgba(0,0,0,.08);
}

/* ギャラリー：縦にズラっと（横スクロール廃止） */
.image-gallery {
  list-style: none;
  padding: 0;
  margin: 0;
}

.image-gallery li {
  margin: 0 0 14px;
}

.image-gallery li img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 10px rgba(0,0,0,.08);
}

/* ストーリー（パターン2） */
.story-text {
  margin: 16px 0 22px;
  padding: 14px 14px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  color: #333;
  font-size: 1rem;
  line-height: 1.85;
}

/* CTA：中央・幅広め（押したくなるけど主張しすぎない） */
.cta-box {
  margin: 18px 0 0;
  text-align: center;
}

.cta-box a {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fa6281;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cta-box a:hover {
  opacity: .9;
}

.read-safely-section {
  margin-top: 40px;
  padding: 20px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.read-safely-section h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: bold;
}

.read-safely-section h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: bold;
}

.read-safely-section ul {
  margin: 10px 0 16px 20px;
}

.read-safely-section li {
  margin-bottom: 6px;
}

.read-safely-section .note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 14px;
}

/* lead_more */
.related-posts {
  margin-top: 40px;
}

.related-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}


/* 全体 */
.trial-sample{
	margin:30px 0;
}

/* 画像 */
.trial-images img{
	width:100%;
	border-radius:10px;
	margin-bottom:12px;
	display:block;
}

/* 3枚目 */
.trial-img-wrap{
	position:relative;
}

/* 下白フェード */
.trial-fade{
	position:absolute;
	left:0;
	right:0;
	bottom:0;
	height:140px;
	background:linear-gradient(to bottom,rgba(255,255,255,0),#fff);
	border-radius:0 0 10px 10px;
}

/* 続きボタン */
.trial-load-btn{
	position:absolute;
	left:50%;
	transform:translateX(-50%);
	bottom:18px;

	background:linear-gradient(45deg,#fa6281,#ff8fa6);
	color:#fff;
	border:none;
	border-radius:40px;
	padding:14px 26px;
	font-size:16px;
	font-weight:bold;
	cursor:pointer;

	box-shadow:0 8px 25px rgba(255,50,120,.4);
	transition:.25s;
}

.trial-load-btn:hover{
	transform:translateX(-50%) scale(1.05);
}

/* 続き画像 */
.trial-more img{
	width:100%;
	border-radius:10px;
	margin-top:12px;
	display:block;
}


/* サイドバー */
.sidebar {
  width: 500px;
}

.side-rank-head{
  font-weight:700;
  font-size:16px;
  margin-bottom:12px;
  padding-left:10px;
  border-left:4px solid #7b2cff;
  line-height:1.3;
}

.side-rank-wrap{
 display:flex;
 flex-direction:column;
 gap:14px;
 margin-top:10px;
}

.side-rank-item{
 display:flex;
 gap:10px;
 text-decoration:none;
 background:#fff;
 border-radius:10px;
 padding:8px;
 box-shadow:0 2px 6px rgba(0,0,0,.08);
 transition:.2s;
}

.side-rank-item:hover{
 transform:translateY(-2px);
 box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.side-rank-thumb{
 width:72px;
 flex-shrink:0;
}

.side-rank-thumb img{
 width:72px;
 height:100px;
 object-fit:cover;
 border-radius:6px;
}

.side-rank-title{
 font-size:13px;
 line-height:1.4;
 color:#111;
 font-weight:bold;
}





/* スマホ */
@media (max-width: 768px) {
	/* main */
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .post-item .thumb {
    height: 160px; /* スマホ用に少し低く */
  }
  .post-title {
    font-size: 0.85rem;
  }
	
  .single {
    max-width: 100%;
  }

  .entry-title {
    font-size: 1.35rem;
    margin: 6px 0 10px;
  }

  .image-gallery li {
    margin-bottom: 12px;
  }

  .story-text {
    font-size: 0.95rem;
    padding: 12px;
  }

	.cta-box a {
	  box-sizing: border-box;
	}
  .cta-box a {
    max-width: 100%;
    padding: 13px 14px;
  }
	
	
    /* サイドバーを記事下に */
    .container{
        display:block;
    }
    .sidebar{
        width:100%;
        margin-top:30px;
    }
    .side-rank-head{
        font-size:17px;
        margin-top:10px;
    }
    .side-rank-wrap{
        flex-direction:column;
    }
    .side-rank-item{
        padding:12px;
        border-radius:14px;
    }
    .side-rank-thumb{
        flex:0 0 84px;
    }
    .side-rank-thumb img{
        width:84px;
    }
    .side-rank-title{
        font-size:14px;
        line-height:1.5;
    }
}
