/*
Theme Name: 在宅ワークガイド
Theme URI: https://zaitaku-work-guide.com
Author: ゆり
Author URI: https://zaitaku-work-guide.com
Description: 在宅フリーランスが教える無理しない働き方 - アフィリエイトブログテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: zaitaku-work-guide
*/

/* ── CSS VARIABLES ── */
:root {
  --blue-dark:  #0E6BA8;
  --blue-mid:   #1E96D1;
  --blue-light: #65C0E8;
  --blue-pale:  #E5F5FC;
  --blue-hero1: #B8E3F5;
  --blue-hero2: #D5EFF9;
  --accent:     #FF6B35;
  --accent2:    #F4A828;
  --text-dark:  #0D2D42;
  --text-mid:   #2D5A74;
  --text-light: #6B9AB2;
  --white:      #FFFFFF;
  --bg:         #F2FAFD;
  --border:     #C5E4F3;
}

*{margin:0;padding:0;box-sizing:border-box;}
body{font-family:'Noto Sans JP',sans-serif;background:var(--bg);color:var(--text-dark);line-height:1.8;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;height:auto;}

/* ── HEADER ── */
header{background:var(--white);border-bottom:2px solid var(--blue-pale);position:sticky;top:0;z-index:200;box-shadow:0 2px 10px rgba(0,80,140,.08);}
.header-inner{max-width:1120px;margin:0 auto;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;}
.logo-title{font-size:19px;font-weight:700;color:var(--blue-dark);}
.logo-sub{font-size:11px;color:var(--text-light);margin-top:2px;}

/* WP Nav Menu */
.site-nav{display:flex;gap:26px;list-style:none;}
.site-nav li a{font-size:13.5px;font-weight:500;color:var(--text-mid);padding-bottom:3px;border-bottom:2px solid transparent;transition:all .2s;}
.site-nav li a:hover,.site-nav li.current-menu-item a{color:var(--blue-dark);border-bottom-color:var(--blue-mid);}

/* ── BREADCRUMB ── */
.breadcrumb{max-width:1120px;margin:0 auto;padding:10px 24px;font-size:12px;color:var(--text-light);}
.breadcrumb a{color:var(--blue-mid);}

/* ── HERO ── */
.hero{background:linear-gradient(135deg,var(--blue-hero1) 0%,var(--blue-pale) 55%,#D0EDFA 100%);padding:72px 24px 64px;text-align:center;position:relative;overflow:hidden;}
.hero::before{content:'';position:absolute;top:-60px;right:-80px;width:320px;height:320px;background:var(--blue-light);opacity:.15;border-radius:50%;}
.hero::after{content:'';position:absolute;bottom:-50px;left:-60px;width:240px;height:240px;background:var(--blue-mid);opacity:.10;border-radius:50%;}
.hero-eyebrow{display:inline-block;background:var(--blue-mid);color:white;font-size:12px;font-weight:700;padding:5px 18px;border-radius:20px;margin-bottom:20px;letter-spacing:.07em;}
.hero h1{font-size:36px;font-weight:700;color:var(--text-dark);line-height:1.5;margin-bottom:18px;}
.hero h1 em{color:var(--blue-dark);font-style:normal;border-bottom:3px solid var(--blue-light);}
.hero-proof{display:flex;justify-content:center;gap:28px;margin-bottom:24px;flex-wrap:wrap;}
.proof-item{font-size:13px;color:var(--text-mid);background:rgba(255,255,255,.7);padding:7px 16px;border-radius:20px;font-weight:500;}
.proof-item strong{color:var(--blue-dark);}
.hero-desc{font-size:15px;color:var(--text-mid);margin-bottom:34px;line-height:1.9;}
.hero-btn{display:inline-block;background:linear-gradient(135deg,var(--blue-mid),var(--blue-dark));color:white;font-size:15px;font-weight:700;padding:16px 42px;border-radius:50px;box-shadow:0 6px 20px rgba(14,107,168,.32);transition:transform .2s,box-shadow .2s;letter-spacing:.04em;}
.hero-btn:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(14,107,168,.42);}

/* ── QUICK COMPARE ── */
.quick-compare{background:var(--white);border-bottom:1px solid var(--border);padding:18px 0;}
.qc-inner{max-width:1120px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.qc-label{font-size:12px;font-weight:700;color:var(--text-light);white-space:nowrap;}
.qc-items{display:flex;gap:10px;flex-wrap:wrap;}
.qc-item{background:var(--blue-pale);border:1px solid var(--border);border-radius:6px;padding:7px 14px;font-size:12.5px;font-weight:500;color:var(--text-mid);white-space:nowrap;}
.qc-item span{font-weight:700;color:var(--blue-dark);}

/* ── LAYOUT ── */
.main-wrap{max-width:1120px;margin:0 auto;padding:44px 24px;display:grid;grid-template-columns:1fr 304px;gap:44px;}

/* ── SECTION HEADER ── */
.sec-hd{display:flex;align-items:center;gap:10px;margin-bottom:26px;}
.sec-hd-bar{width:4px;height:22px;background:var(--blue-mid);border-radius:2px;flex-shrink:0;}
.sec-hd h2{font-size:19px;font-weight:700;color:var(--text-dark);}
.sec-hd::after{content:'';flex:1;height:1px;background:linear-gradient(to right,var(--border),transparent);}

/* ── RANKING CARDS ── */
.ranking-section{margin-bottom:52px;}
.rank-card{background:var(--white);border-radius:14px;padding:22px 24px;margin-bottom:16px;box-shadow:0 2px 12px rgba(0,80,140,.07);border-left:5px solid var(--blue-light);transition:box-shadow .2s;}
.rank-card:hover{box-shadow:0 6px 22px rgba(0,80,140,.13);}
.rank-card:nth-child(2){border-left-color:#A8C8DC;}
.rank-card:nth-child(3){border-left-color:#C4D8A0;}
.rank-top{display:flex;gap:16px;align-items:flex-start;margin-bottom:14px;}
.rank-badge{min-width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700;color:white;flex-shrink:0;}
.badge-gold  {background:linear-gradient(135deg,#F4A828,#DC8A00);}
.badge-silver{background:linear-gradient(135deg,#AAB8C0,#808E96);}
.badge-bronze{background:linear-gradient(135deg,#C88A5A,#9E6B3A);}
.rank-content{flex:1;}
.rank-title{font-size:17px;font-weight:700;color:var(--text-dark);margin-bottom:5px;}
.rank-desc{font-size:13.5px;color:var(--text-mid);margin-bottom:10px;line-height:1.75;}
.rank-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;}
.tag{font-size:11px;padding:3px 10px;border-radius:20px;font-weight:600;}
.tag-blue  {background:var(--blue-pale);color:var(--blue-dark);}
.tag-orange{background:#FFF3DC;color:#9B6A00;}
.rank-btns{display:flex;gap:10px;flex-wrap:wrap;}
.btn-primary{display:inline-block;background:var(--blue-mid);color:white;font-size:13px;font-weight:700;padding:10px 22px;border-radius:7px;transition:background .2s;}
.btn-primary:hover{background:var(--blue-dark);}
.btn-secondary{display:inline-block;background:var(--accent);color:white;font-size:13px;font-weight:700;padding:10px 22px;border-radius:7px;transition:background .2s;}
.btn-secondary:hover{background:#e55520;}
.rank-experience{background:var(--blue-pale);border-left:3px solid var(--blue-mid);border-radius:0 6px 6px 0;padding:10px 14px;font-size:12.5px;color:var(--text-mid);margin-top:0;}
.rank-experience::before{content:"💬 ";font-weight:700;color:var(--blue-dark);}

/* ── ARTICLE GRID ── */
.articles-section{margin-bottom:52px;}
.article-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.article-card{background:var(--white);border-radius:12px;overflow:hidden;box-shadow:0 2px 10px rgba(0,80,140,.07);transition:transform .2s,box-shadow .2s;}
.article-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,80,140,.13);}
.article-thumb{width:100%;height:155px;object-fit:cover;background:linear-gradient(135deg,var(--blue-pale),var(--blue-hero1));display:block;}
.article-body{padding:16px 18px;}
.article-cat{font-size:11px;font-weight:700;color:var(--blue-mid);letter-spacing:.04em;margin-bottom:5px;}
.article-title{font-size:14px;font-weight:700;color:var(--text-dark);line-height:1.6;margin-bottom:7px;}
.article-meta{display:flex;justify-content:space-between;align-items:center;}
.article-date{font-size:11px;color:var(--text-light);}
.article-read{font-size:11px;color:var(--blue-mid);font-weight:600;}

/* ── EXPERIENCE SECTION ── */
.experience-section{background:var(--white);border-radius:16px;padding:30px 28px;margin-bottom:52px;box-shadow:0 2px 12px rgba(0,80,140,.07);}
.exp-intro{font-size:14.5px;color:var(--text-mid);margin-bottom:22px;line-height:1.85;}
.exp-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px;}
.stat-item{background:var(--blue-pale);border-radius:10px;padding:16px 12px;text-align:center;}
.stat-num{font-size:26px;font-weight:700;color:var(--blue-dark);}
.stat-unit{font-size:13px;font-weight:500;color:var(--blue-dark);}
.stat-label{font-size:12px;color:var(--text-light);margin-top:4px;}
.exp-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.exp-card{border:1px solid var(--border);border-radius:10px;padding:16px;font-size:13.5px;color:var(--text-mid);line-height:1.75;}
.exp-card-title{font-weight:700;color:var(--text-dark);margin-bottom:6px;font-size:14px;}

/* ── FAQ ── */
.faq-section{margin-bottom:52px;}
.faq-item{background:var(--white);border:1px solid var(--border);border-radius:10px;margin-bottom:12px;overflow:hidden;}
.faq-q{background:var(--blue-pale);padding:14px 18px;font-weight:700;font-size:14px;cursor:pointer;color:var(--blue-dark);display:flex;justify-content:space-between;align-items:center;user-select:none;}
.faq-q::after{content:'＋';font-size:18px;font-weight:400;transition:transform .2s;}
.faq-q.open::after{transform:rotate(45deg);}
.faq-a{padding:0 18px;max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s;}
.faq-a.open{padding:14px 18px;max-height:400px;}
.faq-a p{font-size:13.5px;color:var(--text-mid);line-height:1.85;}

/* ── RELATED ARTICLES ── */
.related-list{display:flex;flex-direction:column;gap:10px;margin-top:14px;}
.related-item{display:flex;align-items:center;gap:12px;background:var(--blue-pale);border-radius:8px;padding:10px 14px;font-size:13px;color:var(--text-mid);font-weight:500;transition:background .2s;}
.related-item:hover{background:var(--blue-hero1);}
.related-item::before{content:'→';color:var(--blue-mid);font-weight:700;}

/* ── SIDEBAR ── */
.sidebar{display:flex;flex-direction:column;gap:26px;}
.sb-card{background:var(--white);border-radius:14px;padding:20px;box-shadow:0 2px 10px rgba(0,80,140,.07);}
.sb-title{font-size:13.5px;font-weight:700;color:var(--text-dark);border-bottom:2px solid var(--blue-pale);padding-bottom:9px;margin-bottom:14px;}
.profile-icon{width:88px;height:88px;border-radius:50%;margin:0 auto 12px;overflow:hidden;display:block;border:3px solid var(--blue-pale);}
.profile-name{text-align:center;font-size:16px;font-weight:700;color:var(--text-dark);}
.profile-label{text-align:center;font-size:12px;color:var(--blue-mid);font-weight:600;margin:4px 0 10px;}
.profile-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:12px;}
.profile-badge{font-size:10.5px;background:var(--blue-pale);color:var(--blue-dark);padding:3px 9px;border-radius:12px;font-weight:600;}
.profile-text{font-size:12.5px;color:var(--text-mid);line-height:1.8;}
.rec-item{padding:12px 0;border-bottom:1px solid var(--border);}
.rec-item:last-child{border-bottom:none;padding-bottom:0;}
.rec-rank{font-size:11px;font-weight:700;color:var(--blue-mid);margin-bottom:3px;}
.rec-name{font-size:13.5px;font-weight:700;color:var(--text-dark);margin-bottom:3px;}
.rec-tag{font-size:11px;color:var(--text-light);margin-bottom:8px;}
.rec-btns{display:flex;gap:6px;}
.rec-btn-a{font-size:11.5px;font-weight:700;padding:6px 12px;border-radius:5px;background:var(--blue-mid);color:white;}
.rec-btn-b{font-size:11.5px;font-weight:700;padding:6px 12px;border-radius:5px;background:white;color:var(--blue-dark);border:1px solid var(--blue-mid);}
.cat-list{display:flex;flex-direction:column;gap:7px;}
.cat-item{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border-radius:8px;background:var(--blue-pale);font-size:13px;font-weight:500;color:var(--text-mid);transition:background .2s;}
.cat-item:hover{background:var(--blue-hero1);}
.cat-count{background:var(--blue-mid);color:white;font-size:11px;font-weight:700;padding:2px 8px;border-radius:10px;}

/* ── STICKY BOTTOM BAR ── */
.sticky-bar{position:fixed;bottom:0;left:0;right:0;background:var(--blue-dark);padding:12px 20px;z-index:300;display:flex;align-items:center;justify-content:center;gap:16px;box-shadow:0 -3px 16px rgba(0,0,0,.18);}
.sticky-text{font-size:13px;color:rgba(255,255,255,.85);display:none;}
.sticky-btn{background:var(--accent);color:white;font-size:14px;font-weight:700;padding:11px 28px;border-radius:7px;white-space:nowrap;}
.sticky-btn2{background:rgba(255,255,255,.15);color:white;font-size:13px;font-weight:600;padding:10px 20px;border-radius:7px;white-space:nowrap;border:1px solid rgba(255,255,255,.3);}
@media(min-width:600px){.sticky-text{display:block;}}

/* ── FOOTER ── */
footer{background:var(--text-dark);color:#6B9AB2;padding:40px 24px 80px;margin-top:40px;}
.footer-inner{max-width:1120px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:14px;}
.footer-logo{font-size:18px;font-weight:700;color:white;}
.footer-sub{font-size:12px;}
.footer-nav{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;}
.footer-nav a{font-size:12px;color:#6B9AB2;}
.footer-nav a:hover{color:var(--blue-light);}
.footer-copy{font-size:11px;color:#3D5A6A;margin-top:6px;}

/* ── SINGLE POST / PAGE ── */
.entry-content{max-width:820px;margin:40px auto;padding:0 24px;}
.entry-content h1{font-size:26px;font-weight:700;line-height:1.5;margin-bottom:18px;color:var(--text-dark);}
.entry-content h2{font-size:20px;font-weight:700;margin:40px 0 16px;padding-bottom:10px;border-bottom:3px solid var(--blue-light);color:var(--text-dark);}
.entry-content h3{font-size:17px;font-weight:700;margin:24px 0 12px;color:var(--blue-dark);}
.entry-content p{font-size:14.5px;margin-bottom:14px;line-height:1.85;color:var(--text-dark);}
.entry-content ul,.entry-content ol{padding-left:24px;margin-bottom:16px;}
.entry-content li{font-size:14.5px;margin-bottom:8px;}

/* ── RESPONSIVE ── */
@media(max-width:780px){
  .main-wrap{grid-template-columns:1fr;}
  .hero h1{font-size:26px;}
  .article-grid,.exp-cards,.exp-stats{grid-template-columns:1fr;}
  .site-nav{display:none;}
}
