/*
Theme Name: Yurutto
Theme URI: https://signalpulses.com/
Author: Signalpulse
Author URI: https://signalpulses.com/
Description: 「ゆるっと気ままに」専用の柔らかくシンプルな和風モダンテーマ。最新投稿をトップに大きく表示し、サイドバーにプロフィールと過去記事一覧、広告枠を配置。アフィリエイトに最適化。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yurutto
Tags: blog, two-columns, right-sidebar, custom-logo, custom-header, featured-images, threaded-comments, translation-ready
*/

/* ===== Reset & Base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:"Yu Gothic","游ゴシック","Noto Sans JP","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN W3",Meiryo,sans-serif;
  font-size:16px;
  line-height:1.9;
  color:#3a3a3a;
  background:#FAF8F5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;height:auto;display:block}
a{color:#B8895A;text-decoration:none;transition:color .2s ease, opacity .2s ease}
a:hover{color:#8B6240;text-decoration:underline}

/* ===== Layout ===== */
.site-container{max-width:1180px;margin:0 auto;padding:0 24px}

/* ===== Header ===== */
.site-header{
  background:#FFFDFA;
  border-bottom:1px solid #EDE6DC;
  padding:32px 0;
  text-align:center;
}
.site-header-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
}
.site-logo img{
  max-height:80px;
  width:auto;
  border-radius:12px;
}
.site-title{
  font-size:28px;
  font-weight:600;
  letter-spacing:.06em;
  color:#3a3a3a;
}
.site-title a{color:inherit;text-decoration:none}
.site-description{
  font-size:14px;
  color:#888;
  letter-spacing:.08em;
}

/* ===== Main Layout ===== */
.site-main{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:48px;
  padding:60px 0;
  align-items:start;
}

/* ===== Article (Latest Post) ===== */
.post-article{
  background:#fff;
  border-radius:16px;
  padding:48px;
  box-shadow:0 2px 20px rgba(0,0,0,.04);
}
.post-meta{
  display:flex;
  align-items:center;
  gap:14px;
  font-size:13px;
  color:#999;
  margin-bottom:18px;
  letter-spacing:.05em;
}
.post-meta .post-date::before{content:"📅 ";opacity:.6}
.post-meta .post-category{
  background:#F5EFE6;
  color:#B8895A;
  padding:3px 12px;
  border-radius:20px;
  font-size:12px;
}
.post-title{
  font-size:30px;
  font-weight:700;
  line-height:1.5;
  margin-bottom:28px;
  color:#2a2a2a;
  letter-spacing:.02em;
}
.post-title a{color:inherit;text-decoration:none}
.post-title a:hover{color:#B8895A}
.post-thumbnail{
  margin-bottom:32px;
  border-radius:12px;
  overflow:hidden;
}
.post-thumbnail img{width:100%;height:auto}
.post-content{
  font-size:16px;
  line-height:2;
  color:#444;
}
.post-content > *{margin-bottom:1.4em}
.post-content h2{
  font-size:24px;
  font-weight:700;
  margin:2em 0 1em;
  padding:14px 20px;
  background:#FAF5EE;
  border-left:5px solid #D4A574;
  border-radius:6px;
  color:#3a3a3a;
}
.post-content h3{
  font-size:20px;
  font-weight:700;
  margin:1.8em 0 .8em;
  padding-bottom:8px;
  border-bottom:2px dotted #D4A574;
  color:#3a3a3a;
}
.post-content h4{font-size:18px;font-weight:700;margin:1.5em 0 .6em;color:#3a3a3a}
.post-content p{margin-bottom:1.4em}
.post-content ul,.post-content ol{margin:1.2em 0 1.4em 1.6em}
.post-content li{margin-bottom:.5em}
.post-content blockquote{
  background:#FAF5EE;
  border-left:4px solid #D4A574;
  padding:18px 24px;
  margin:1.5em 0;
  color:#666;
  font-style:italic;
  border-radius:6px;
}
.post-content table{
  width:100%;
  border-collapse:collapse;
  margin:1.5em 0;
  font-size:15px;
}
.post-content th,.post-content td{
  padding:12px 16px;
  border:1px solid #EDE6DC;
  text-align:left;
}
.post-content th{background:#FAF5EE;font-weight:700}
.post-content tr:nth-child(even) td{background:#FDFBF7}
.post-content img{
  border-radius:8px;
  margin:1.5em auto;
}
.post-content a{
  color:#B8895A;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.post-content code{
  background:#F5EFE6;
  padding:2px 8px;
  border-radius:4px;
  font-size:14px;
  color:#8B6240;
}
.post-content pre{
  background:#2a2a2a;
  color:#f5f5f5;
  padding:20px;
  border-radius:8px;
  overflow-x:auto;
  margin:1.5em 0;
}
.post-content pre code{background:none;color:inherit;padding:0}

/* ===== Affiliate Ad Box ===== */
.ad-box{
  margin:2.5em 0;
  padding:20px;
  background:#FFFDFA;
  border:1px dashed #D4A574;
  border-radius:10px;
  text-align:center;
}
.ad-box::before{
  content:"PR / 広告";
  display:block;
  font-size:11px;
  color:#aaa;
  margin-bottom:10px;
  letter-spacing:.1em;
}
.ad-inline{
  margin:2em 0;
  text-align:center;
}

/* ===== Read More Link ===== */
.read-more-wrap{
  margin-top:36px;
  text-align:center;
}
.read-more{
  display:inline-block;
  padding:14px 40px;
  background:#D4A574;
  color:#fff;
  border-radius:30px;
  font-weight:600;
  letter-spacing:.05em;
  transition:all .2s ease;
  text-decoration:none;
}
.read-more:hover{
  background:#B8895A;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(212,165,116,.4);
  text-decoration:none;
}

/* ===== Pagination ===== */
.pagination{
  margin:48px 0 0;
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.pagination a,.pagination span{
  display:inline-block;
  padding:10px 18px;
  background:#fff;
  border:1px solid #EDE6DC;
  border-radius:8px;
  color:#666;
  text-decoration:none;
  transition:all .2s ease;
}
.pagination a:hover{background:#FAF5EE;color:#B8895A;border-color:#D4A574}
.pagination .current{background:#D4A574;color:#fff;border-color:#D4A574}

/* ===== Sidebar ===== */
.site-sidebar{
  position:sticky;
  top:24px;
}
.widget{
  background:#fff;
  border-radius:14px;
  padding:28px 24px;
  margin-bottom:24px;
  box-shadow:0 2px 14px rgba(0,0,0,.03);
}
.widget-title{
  font-size:15px;
  font-weight:700;
  color:#3a3a3a;
  letter-spacing:.08em;
  margin-bottom:20px;
  padding-bottom:12px;
  border-bottom:1px solid #EDE6DC;
  position:relative;
}
.widget-title::after{
  content:"";
  position:absolute;
  bottom:-1px;
  left:0;
  width:36px;
  height:2px;
  background:#D4A574;
}

/* Profile Widget */
.widget-profile{text-align:center}
.profile-avatar{
  width:140px;
  height:140px;
  margin:0 auto 16px;
  border-radius:50%;
  overflow:hidden;
  background:#FAF5EE;
}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-name{
  font-size:16px;
  font-weight:700;
  margin-bottom:12px;
  color:#3a3a3a;
}
.profile-text{
  font-size:14px;
  line-height:1.9;
  color:#666;
  text-align:left;
}

/* Recent Posts Widget */
.recent-posts-list{
  list-style:none;
  margin:0;
  padding:0;
}
.recent-posts-list li{
  padding:12px 0;
  border-bottom:1px dotted #EDE6DC;
}
.recent-posts-list li:last-child{border-bottom:none}
.recent-posts-list a{
  display:block;
  color:#555;
  font-size:14px;
  line-height:1.6;
  text-decoration:none;
  transition:color .2s ease, transform .2s ease;
  position:relative;
  padding-left:18px;
}
.recent-posts-list a::before{
  content:"›";
  position:absolute;
  left:0;
  top:0;
  color:#D4A574;
  font-weight:700;
  transition:transform .2s ease;
}
.recent-posts-list a:hover{color:#B8895A;text-decoration:none}
.recent-posts-list a:hover::before{transform:translateX(3px)}
.recent-posts-list .post-date-small{
  display:block;
  font-size:11px;
  color:#aaa;
  margin-top:2px;
  padding-left:18px;
  letter-spacing:.05em;
}

/* Search Widget */
.search-form{
  display:flex;
  gap:0;
  border:1px solid #EDE6DC;
  border-radius:8px;
  overflow:hidden;
}
.search-form input[type="search"]{
  flex:1;
  padding:10px 14px;
  border:none;
  background:#fff;
  font-size:14px;
  outline:none;
  color:#444;
}
.search-form input[type="search"]::placeholder{color:#bbb}
.search-form button{
  padding:10px 18px;
  background:#D4A574;
  color:#fff;
  border:none;
  cursor:pointer;
  font-size:14px;
  transition:background .2s ease;
}
.search-form button:hover{background:#B8895A}

/* Categories / Archives Widget */
.widget ul{list-style:none;margin:0;padding:0}
.widget ul li{
  padding:8px 0;
  border-bottom:1px dotted #EDE6DC;
  font-size:14px;
}
.widget ul li:last-child{border-bottom:none}
.widget ul li a{color:#555;text-decoration:none}
.widget ul li a:hover{color:#B8895A}

/* ===== Footer ===== */
.site-footer{
  margin-top:80px;
  padding:40px 0 30px;
  background:#FFFDFA;
  border-top:1px solid #EDE6DC;
  text-align:center;
}
.footer-nav{
  margin-bottom:20px;
}
.footer-nav ul{
  list-style:none;
  display:flex;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
  padding:0;
}
.footer-nav a{
  font-size:13px;
  color:#888;
  text-decoration:none;
}
.footer-nav a:hover{color:#B8895A}
.site-copyright{
  font-size:12px;
  color:#aaa;
  letter-spacing:.05em;
}

/* ===== Single Post / Page ===== */
.single-post .post-article,
.page .post-article{
  padding:56px;
}
.single-post .post-title{font-size:32px}
.back-to-home{
  display:inline-block;
  margin-top:40px;
  padding:10px 28px;
  background:#fff;
  border:1px solid #EDE6DC;
  border-radius:30px;
  color:#666;
  font-size:14px;
  text-decoration:none;
  transition:all .2s ease;
}
.back-to-home:hover{
  background:#FAF5EE;
  color:#B8895A;
  border-color:#D4A574;
  text-decoration:none;
}

/* ===== Comments ===== */
.comments-area{
  margin-top:40px;
  padding-top:40px;
  border-top:1px solid #EDE6DC;
}
.comments-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:24px;
  color:#3a3a3a;
}
.comment-list{list-style:none;padding:0}
.comment-list li{
  padding:20px;
  background:#FAF5EE;
  border-radius:10px;
  margin-bottom:16px;
}
.comment-author{font-weight:700;font-size:14px;color:#3a3a3a;margin-bottom:6px}
.comment-meta{font-size:12px;color:#999;margin-bottom:10px}
.comment-respond{margin-top:30px}
.comment-form input,.comment-form textarea{
  width:100%;
  padding:10px 14px;
  border:1px solid #EDE6DC;
  border-radius:8px;
  font-size:14px;
  font-family:inherit;
  margin-bottom:14px;
  background:#fff;
}
.comment-form textarea{min-height:120px;resize:vertical}
.comment-form input:focus,.comment-form textarea:focus{
  outline:none;
  border-color:#D4A574;
}
.comment-form input[type="submit"]{
  width:auto;
  padding:12px 36px;
  background:#D4A574;
  color:#fff;
  border:none;
  border-radius:30px;
  cursor:pointer;
  font-weight:600;
  transition:background .2s ease;
}
.comment-form input[type="submit"]:hover{background:#B8895A}

/* ===== No Posts ===== */
.no-posts{
  background:#fff;
  border-radius:16px;
  padding:60px 40px;
  text-align:center;
  color:#888;
}

/* ===== Responsive ===== */
@media (max-width:960px){
  .site-main{
    grid-template-columns:1fr;
    gap:32px;
    padding:40px 0;
  }
  .site-sidebar{position:static}
  .post-article{padding:32px 24px}
  .single-post .post-article,
  .page .post-article{padding:32px 24px}
  .post-title{font-size:24px}
  .single-post .post-title{font-size:26px}
  .site-title{font-size:22px}
  .site-header{padding:24px 0}
}
@media (max-width:480px){
  body{font-size:15px}
  .site-container{padding:0 16px}
  .post-article{padding:24px 18px;border-radius:12px}
  .post-title{font-size:20px}
  .post-content h2{font-size:20px;padding:10px 14px}
  .post-content h3{font-size:17px}
  .widget{padding:20px 18px}
}

/* ===== WP Default Classes ===== */
.alignleft{float:left;margin:0 1.5em 1em 0}
.alignright{float:right;margin:0 0 1em 1.5em}
.aligncenter{display:block;margin:0 auto 1em}
.wp-caption{max-width:100%;margin-bottom:1.5em}
.wp-caption-text{font-size:13px;color:#888;text-align:center;margin-top:6px}
.screen-reader-text{
  position:absolute!important;
  clip:rect(1px,1px,1px,1px);
  width:1px;height:1px;overflow:hidden;
}
.sticky{}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:1.5em 0}
.gallery-item img{border-radius:6px}
