/*
Theme Name: Web屋の逃げ道
Theme URI: https://example.com/
Author: BASE KENT
Author URI: https://basekent.com/
Description: フリーランスのWeb制作者・デザイナーの不安に寄り添う転職メディア向けテーマ。タイピングのトップビュー＋スクロール切替（拡大→せり上がり）、エディトリアルなマガジン、ネイビー基調。SEO最適化済み。
Version: 2.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webya-nigemichi
Tags: blog, one-column, custom-menu, featured-images, editorial
*/

:root{
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Roboto Mono", Menlo, monospace;
  --ink:#1a1a1a; --navy:#2b4c7e; --line:#ececec; --col:412px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; font-family:var(--sans); color:var(--ink); -webkit-font-smoothing:antialiased; line-height:1.8;
  background:#fbfbf9; background-image:radial-gradient(rgba(160,170,190,.28) 1.4px, transparent 1.6px); background-size:11px 11px; }
img{ max-width:100%; height:auto; }
a{ color:var(--navy); }
.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{ left:8px; top:8px; z-index:99; background:#fff; padding:8px 14px; border-radius:6px; }

/* ===== PC外側：左マストヘッド ===== */
.masthead{ position:fixed; left:clamp(28px,5vw,96px); top:50%; transform:translateY(-50%); width:300px; z-index:1; display:none; }
@media (min-width:1140px){ .masthead{ display:block; } }
.masthead .mh-catch{ font-family:"Zen Kaku Gothic New", var(--sans); font-size:32px; line-height:1.5; font-weight:900; letter-spacing:.02em; color:var(--navy); margin:0; }
.masthead .mh-lead{ font-size:12px; line-height:2; color:#6a6a6a; margin:15px 0 22px; max-width:280px; }
.masthead .mh-cats{ background:#fff; border:1px solid #ececec; border-radius:10px; padding:13px 16px; box-shadow:0 8px 24px rgba(40,40,60,.07); }
.masthead .mh-cats .mh-cats-h{ display:block; font-family:var(--mono); font-size:9.5px; letter-spacing:.2em; color:#aaa; margin-bottom:4px; }
.masthead .mh-cats a{ display:block; padding:8px 0; border-top:1px solid #eee; font-family:var(--mono); font-size:12.5px; color:#1a1a1a; text-decoration:none; transition:color .15s; }
.masthead .mh-cats a:first-of-type{ border-top:none; }
.masthead .mh-cats a:hover{ color:var(--navy); }

/* 右下ロゴ */
.right-logo{ position:fixed; right:clamp(28px,5vw,96px); bottom:clamp(28px,6vh,60px); z-index:1; display:none; }
@media (min-width:1140px){ .right-logo{ display:block; } }
.right-logo img{ display:block; width:180px; height:auto; }

/* ===== 中央の白いカラム ===== */
.site{ position:relative; z-index:2; width:100%; max-width:var(--col); margin:0 auto; min-height:100vh;
  background:#fff; box-shadow:0 0 60px rgba(40,30,80,.10); }

/* ============================================================
   ヒーロー（フロントページのみ・タイピング＋スクロールで拡大→フェード）
   ============================================================ */
.hero{ position:sticky; top:0; height:100vh; min-height:560px; overflow:hidden; background:#fff; z-index:3; }
.hero.faded{ pointer-events:none; }
.hero-inner{ height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center;
  transform-origin:center 42%; will-change:transform, opacity, filter; }
.hero .stack{ width:44%; }
.hero .photo{ display:block; width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:3px;
  opacity:0; transform:translateY(8px); transition:opacity .7s ease, transform .7s ease; }
.hero .photo.in{ opacity:1; transform:translateY(0); }
.hero .lead{ margin-top:18px; font-size:11px; font-weight:700; line-height:1.6; letter-spacing:.01em; color:var(--ink); min-height:13em; }
.hero .caret{ display:inline-block; width:8px; height:1.05em; background:var(--ink); vertical-align:-2px; margin-left:1px; animation:blink .9s steps(1) infinite; }
.hero .caret.arrow{ width:auto; height:auto; background:transparent; font-size:1.15em; line-height:1; color:var(--ink); margin-left:4px; vertical-align:-1px; }
@keyframes blink{ 0%,49%{ opacity:1; } 50%,100%{ opacity:0; } }

/* ============================================================
   記事エリア（フロントでは下からせり上がる）
   ============================================================ */
.mag{ position:relative; z-index:1; background:#fff; will-change:transform; }
.home .mag, .blog .mag{ border-radius:22px 22px 0 0; box-shadow:0 -16px 40px rgba(40,25,80,.12); }

.mag-top{ position:sticky; top:0; z-index:30; background:#fff; box-shadow:0 1px 0 var(--line); }
.site-header{ padding:14px 22px; }
.logo-link{ display:inline-block; }
.logo{ display:block; width:170px; height:auto; }
.tagline{ font-family:var(--mono); font-size:10.5px; color:#8a8a8a; margin-top:3px; }

/* note風タブ */
.nav{ margin-top:12px; }
.nav ul{ display:flex; margin:0; padding:0; list-style:none; border-bottom:1px solid var(--line); overflow-x:auto; -webkit-overflow-scrolling:touch; }
.nav ul::-webkit-scrollbar{ display:none; }
.nav li{ flex:0 0 auto; }
.nav a{ position:relative; display:block; padding:10px 13px; font-size:12.5px; font-weight:600; color:#8a8a8a; text-decoration:none; white-space:nowrap; transition:color .15s; }
.nav li:first-child a{ padding-left:0; }
.nav a:hover{ color:#1a1a1a; }
.nav .current-menu-item > a, .nav .current_page_item > a, .nav .current-cat > a{ color:#1a1a1a; font-weight:800; }
.nav .current-menu-item > a::after, .nav .current_page_item > a::after, .nav .current-cat > a::after{
  content:""; position:absolute; left:13px; right:13px; bottom:-1px; height:2.5px; background:var(--ink); border-radius:2px; }
.nav li:first-child.current-menu-item > a::after, .nav li:first-child.current_page_item > a::after{ left:0; }

/* ラベル類 */
.kicker{ font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:.1em; color:var(--navy); text-transform:uppercase; }
.cat{ font-family:var(--mono); font-size:10px; font-weight:700; letter-spacing:.06em; color:var(--navy); text-decoration:none; }
.meta{ font-family:var(--mono); font-size:10px; color:#999; }
.sec-head{ display:flex; align-items:center; gap:10px; padding:20px 22px 4px; }
.sec-head .line{ flex:1; height:1px; background:var(--line); }

/* 仮サムネ */
.thumb-ph{ display:block; background:#eef1f4;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='240'%3E%3Crect width='400' height='240' fill='%23eef1f4'/%3E%3Cg stroke='%23aeb6c0' stroke-width='3' opacity='.5'%3E%3Cline x1='0' y1='240' x2='240' y2='0'/%3E%3Cline x1='80' y1='240' x2='320' y2='0'/%3E%3Cline x1='160' y1='240' x2='400' y2='0'/%3E%3C/g%3E%3C/svg%3E"); background-size:cover; background-position:center; }

/* PICK UP（4:3画像フロート＋回り込み抜粋） */
.feature{ padding:18px 22px 10px; }
.feature::after{ content:""; display:block; clear:both; }
.feature .feat-img{ float:left; width:148px; height:111px; margin:5px 14px 8px 0; overflow:hidden; border-radius:3px; }
.feature .feat-img img{ width:100%; height:100%; object-fit:cover; }
.feature .feat-title{ font-size:16px; line-height:1.5; font-weight:800; margin:0 0 9px; }
.feature .feat-title a{ color:var(--ink); text-decoration:none; }
.feature .feat-ex{ font-size:11px; font-weight:700; line-height:1.6; letter-spacing:.01em; color:var(--ink); margin:0; }

/* NEW（シンプルリスト） */
.post-row{ display:flex; gap:14px; padding:15px 22px; border-bottom:1px solid var(--line); }
.post-row .thumb{ width:92px; height:69px; flex-shrink:0; border-radius:6px; overflow:hidden; display:block; }
.post-row .thumb img{ width:100%; height:100%; object-fit:cover; }
.post-row .rt{ font-size:13.5px; line-height:1.55; font-weight:700; margin:6px 0; }
.post-row .rt a{ color:var(--ink); text-decoration:none; }
.post-row .rt a:hover{ color:var(--navy); }

/* ランキング */
.rank{ padding:6px 22px 4px; }
.rank-item{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); align-items:flex-start; text-decoration:none; color:inherit; }
.rank-no{ font-family:var(--mono); font-size:17px; font-weight:800; color:var(--navy); width:22px; flex-shrink:0; }
.rank-t{ font-size:13px; line-height:1.55; font-weight:600; color:var(--ink); }

/* ページネーション */
.pagination{ padding:24px 22px; display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.pagination .page-numbers{ font-family:var(--mono); font-size:13px; padding:8px 13px; border:1px solid var(--line); border-radius:8px; text-decoration:none; color:var(--ink); }
.pagination .page-numbers.current{ background:var(--navy); color:#fff; border:none; }

/* ===== 単一記事 ===== */
.breadcrumb{ padding:14px 22px 0; font-family:var(--mono); font-size:10.5px; color:#9a93ad; }
.breadcrumb a{ color:#9a93ad; text-decoration:none; }
.breadcrumb a:hover{ color:var(--navy); }
.breadcrumb .sep{ margin:0 6px; }
.entry{ padding:18px 22px 8px; }
.entry-title{ font-size:23px; line-height:1.5; font-weight:800; margin:10px 0 8px; color:#1a1530; }
.entry-meta{ font-family:var(--mono); font-size:11px; color:#999; display:flex; gap:12px; flex-wrap:wrap; }
.entry-thumb{ margin:16px 0; border-radius:10px; overflow:hidden; }
.entry-content{ font-size:15px; line-height:2.0; color:#2a2535; }
.entry-content > *{ margin:0 0 1.3em; }
.entry-content h2{ font-size:20px; font-weight:800; line-height:1.5; margin:1.8em 0 .8em; padding-left:12px; border-left:5px solid var(--navy); }
.entry-content h3{ font-size:17px; font-weight:800; line-height:1.5; margin:1.6em 0 .6em; color:#28406b; }
.entry-content a{ color:var(--navy); text-underline-offset:2px; }
.entry-content img{ border-radius:10px; }
.entry-content blockquote{ margin:1.5em 0; padding:14px 18px; background:#f4f7fb; border-left:4px solid var(--navy); border-radius:6px; color:#555; }
.entry-content ul, .entry-content ol{ padding-left:1.4em; }
.entry-content li{ margin-bottom:.5em; }
.entry-content code{ font-family:var(--mono); background:#eef1f6; padding:2px 6px; border-radius:4px; font-size:.9em; }
.entry-content pre{ background:#1f2433; color:#eee; padding:16px; border-radius:10px; overflow:auto; }
.entry-tags{ padding:8px 22px 4px; display:flex; gap:8px; flex-wrap:wrap; }
.entry-tags a{ font-family:var(--mono); font-size:11px; color:var(--navy); border:1px solid #cfdcec; border-radius:999px; padding:5px 12px; text-decoration:none; }
.share{ padding:18px 22px; display:flex; gap:10px; align-items:center; }
.share .lab{ font-family:var(--mono); font-size:10px; color:#999; letter-spacing:.1em; }
.share a{ width:34px; height:34px; border-radius:50%; background:#eef1f6; display:grid; place-items:center; color:#28406b; font-weight:800; font-size:12px; text-decoration:none; }
.share a:hover{ background:var(--navy); color:#fff; }
.related{ padding:8px 22px 0; }

/* CTA / フッター */
.cta{ margin:22px; padding:22px 20px; background:#f4f6f9; border:1px solid #e4e9f0; border-radius:12px; text-align:center; box-shadow:0 8px 22px rgba(40,60,110,.08); }
.cta .k{ font-family:var(--mono); font-size:11px; font-weight:700; color:var(--navy); letter-spacing:.08em; }
.cta .t{ font-size:15px; font-weight:800; line-height:1.6; margin:9px 0 14px; }
.cta a{ display:inline-block; padding:11px 26px; font-size:13px; font-weight:700; text-decoration:none; border-radius:999px; background:var(--navy); color:#fff; box-shadow:0 8px 18px rgba(43,76,126,.28); }
.site-footer{ padding:22px; border-top:1px solid var(--line); font-size:11px; color:#999; text-align:center; }
.site-footer a{ color:#999; text-decoration:none; }

.to-top{ position:fixed; right:16px; bottom:16px; z-index:50; width:46px; height:46px; border-radius:50%; border:none; cursor:pointer;
  background:var(--navy); color:#fff; box-shadow:0 10px 24px rgba(43,76,126,.4); display:grid; place-items:center;
  opacity:0; pointer-events:none; transform:translateY(10px); transition:.3s; }
.to-top.show{ opacity:1; pointer-events:auto; transform:translateY(0); }
.to-top .au{ width:11px; height:11px; border-left:2px solid #fff; border-top:2px solid #fff; transform:rotate(45deg); margin-top:3px; }

/* スマホ：白カラム全幅、外側は非表示 */
@media (max-width:480px){
  body{ background:#fff; }
  .site{ max-width:none; box-shadow:none; }
  .masthead, .right-logo{ display:none !important; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .hero .caret, .hero .photo{ animation:none; transition:none; }
}
