/* ===========================================================
   VPNセキュリティーマスター — 共通スタイル
   「ていねいな暮らし」風ミニマル / 白基調・ブルーグレーアクセント
   =========================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f8f8;
  --card:      #ffffff;
  --line:      #e7eaea;
  --text:      #3a3f41;
  --text-soft: #6b7375;
  --text-mute: #9aa3a5;
  --accent:    #a8bdc0;   /* ブルーグレー */
  --accent-dk: #7e9598;
  --footer-bg: #a8bdc0;
  --radius:    4px;
  --maxw:      1040px;
  --serif: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
          "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans);
  background: var(--bg); color: var(--text);
  line-height: 1.85; font-size: 15px; overflow-x: hidden;
}
a { color: var(--text); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .65; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* セクション見出し（英大文字＋細字＋日本語サブ） */
.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 26px; }
.sec-head .en { font-family: var(--serif); font-size: 26px; letter-spacing: .08em; font-weight: 400; color: var(--text); }
.sec-head .ja { font-size: 12px; color: var(--accent-dk); letter-spacing: .12em; }
.sec-head .viewall { margin-left: auto; font-size: 12px; letter-spacing: .1em; color: var(--accent-dk); display: inline-flex; align-items: center; gap: 8px; }
.sec-head .viewall .circ { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; font-weight: 400; white-space: nowrap; }
.logo .mark { color: var(--accent-dk); margin-right: 4px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 13px; letter-spacing: .06em; color: var(--text); }
.nav a:hover { color: var(--accent-dk); opacity: 1; }
.search-btn { background: none; border: 0; cursor: pointer; font-size: 16px; color: var(--text); padding: 4px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; margin-left: auto; color: var(--text); }

/* ---------- ヒーローカルーセル ---------- */
/* ヒーロー: absolute配置方式（transform/scroll非依存で確実動作）。中央メイン＋両サイドに前後を暗めに表示 */
.hero { position: relative; background: #2b3133; overflow: hidden; height: 440px; }
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; top: 0; height: 100%; left: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: var(--radius); overflow: hidden;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .5s ease, filter .5s ease;
}
/* left(px)はJSで設定。全スライドを横一列に並べトラックごとスライド。明暗だけクラスで制御 */
.hero-slide.is-active { opacity: 1; pointer-events: auto; visibility: visible; z-index: 2; filter: none; }
.hero-slide.is-side { opacity: 1; visibility: visible; z-index: 1; filter: brightness(.45); }
/* 下部グラデ（メインの可読性用） */
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 55%); }
.hero-slide:not(.is-active) .hero-caption { opacity: 0; }
.hero-slide.placeholder { display: grid; place-items: center; }
.hero-slide .ph-emoji { font-size: 96px; opacity: .5; filter: grayscale(.3); }
.hero-svg-slide .hero-svg { position: absolute; inset: 0; }
.hero-svg-slide .hero-svg svg { width: 100%; height: 100%; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 56px; color: #fff; }
.hero-caption .cat { font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.hero-caption .date { font-size: 12px; letter-spacing: .08em; margin-left: 12px; opacity: .85; }
.hero-caption h2 { font-size: clamp(18px, 2.6vw, 26px); font-weight: 500; margin: 10px 0 0; line-height: 1.5; max-width: 80%; }
.hero-caption a { color: #fff; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.9);
  border: 0; cursor: pointer; font-size: 18px; color: var(--text); display: grid; place-items: center;
  transition: background .2s;
}
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }

/* ---------- メインレイアウト（本文 + サイド） ---------- */
.main-wrap { padding: 64px 0; }
.layout { display: grid; grid-template-columns: 1fr 240px; gap: 56px; }

/* PICKUP 2列カード */
.pickup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 26px; }
.entry { display: block; }
.entry .thumb { aspect-ratio: 3/2; background: var(--bg-soft); overflow: hidden; position: relative; border-radius: var(--radius); }
.entry .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; opacity: .35; background: linear-gradient(135deg,#eef1f1,#dde4e4); }
.entry .thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.entry:hover .thumb img { transform: scale(1.05); }
.entry .cat { font-size: 11px; letter-spacing: .12em; font-weight: 700; color: var(--text); margin: 14px 0 0; }
.entry .date { font-size: 11px; letter-spacing: .08em; color: var(--text-mute); margin-left: 10px; }
.entry h3 { font-size: 14px; font-weight: 500; line-height: 1.7; margin: 7px 0 0; color: var(--text); }
.entry:hover h3 { opacity: 1; color: var(--accent-dk); }

/* ---------- サイドバー ---------- */
.sidebar h4 { font-family: var(--serif); font-size: 18px; letter-spacing: .08em; font-weight: 400; margin: 0 0 16px; }
.cat-list { list-style: none; margin: 0 0 40px; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; font-size: 13px; color: var(--text); }
.cat-list a::after { content: "›"; color: var(--text-mute); }
.search-box { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.search-box input { flex: 1; border: 0; padding: 10px 12px; font-size: 13px; outline: none; font-family: var(--sans); }
.search-box button { border: 0; background: var(--accent); color: #fff; width: 42px; cursor: pointer; font-size: 14px; }

/* ---------- LATEST 4列 ---------- */
.section { padding: 0; margin-top: 72px; }
.col4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- SPECIAL カルーセル ---------- */
.special-carousel { position: relative; overflow: hidden; }
.special-track { display: flex; transition: transform .6s cubic-bezier(.5,.05,.3,1); }
.special-slide { flex: 0 0 60%; padding: 0 10px; }
.special-slide .card-lg { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.special-slide .card-lg .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; opacity: .35; background: linear-gradient(135deg,#eef1f1,#dde4e4); }
.special-slide .card-lg img { width: 100%; height: 100%; object-fit: contain; }
.special-slide .card-lg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 55%); }
.special-slide .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 26px; color: #fff; }
.special-slide .cap .cat { font-size: 11px; letter-spacing: .12em; font-weight: 700; }
.special-slide .cap .date { font-size: 11px; margin-left: 10px; opacity: .85; }
.special-slide .cap h3 { font-size: 17px; font-weight: 500; margin: 8px 0 0; line-height: 1.55; }
.special-slide .cap a { color: #fff; }
.special-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.9);
  border: 0; cursor: pointer; font-size: 16px; display: grid; place-items: center; color: var(--text);
}
.special-arrow.prev { left: 8px; } .special-arrow.next { right: 8px; }

/* ---------- BLOG 4列（日付＋タイトルのみ） ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.blog-entry .thumb { aspect-ratio: 3/2; }
.blog-entry .date { display: block; font-size: 11px; color: var(--text-mute); margin: 12px 0 4px; letter-spacing: .08em; }
.blog-entry h3 { font-size: 13px; font-weight: 500; line-height: 1.7; margin: 0; }

/* ---------- 記事本文 ---------- */
.article-hero { background: var(--bg-soft); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 12px; color: var(--text-mute); margin-bottom: 18px; letter-spacing: .06em; }
.breadcrumb a { color: var(--text-mute); }
.article-hero .cat { font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--accent-dk); }
.article-hero .date { font-size: 12px; color: var(--text-mute); margin-left: 12px; }
.article-hero h1 { font-family: var(--serif); font-size: clamp(24px, 4vw, 36px); font-weight: 400; line-height: 1.5; margin: 12px 0 0; }
.article-eyecatch { max-width: 880px; margin: 0 auto; padding: 32px 20px 0; }
.article-eyecatch img { width: 100%; height: auto; border-radius: 10px; display: block; }
.article-body { padding: 48px 0 72px; }
.article-body .container { max-width: 720px; }
.article-body h2 { font-family: var(--serif); font-size: 23px; font-weight: 400; margin: 48px 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.article-body h3 { font-size: 18px; font-weight: 700; margin: 34px 0 12px; color: var(--accent-dk); }
.article-body p { margin: 0 0 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 1.4em; }
.article-body li { margin-bottom: 9px; }
.article-body img { border-radius: var(--radius); margin: 26px 0; }
.callout { background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 26px 0; }
.callout.warn { border-left-color: #d8a3a3; }
.callout strong { color: var(--accent-dk); }

/* リード文（導入の強調段落） */
.article-body p.lead { font-size: 16.5px; color: var(--text); line-height: 2; margin-bottom: 30px; }

/* マーカー強調ライン */
.marker { background: linear-gradient(transparent 62%, #d6e4e5 62%); font-weight: 700; padding: 0 1px; }
.marker.yellow { background: linear-gradient(transparent 62%, #f3e7b8 62%); }

/* 吹き出し（会話形式） */
.balloon { display: flex; align-items: flex-start; gap: 14px; margin: 26px 0; }
.balloon.right { flex-direction: row-reverse; }
.balloon .avatar { flex: none; width: 56px; text-align: center; }
.balloon .avatar .face { width: 56px; height: 56px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 28px; }
.balloon .avatar .name { font-size: 10px; color: var(--text-mute); margin-top: 4px; letter-spacing: .04em; }
.balloon .bubble { position: relative; background: var(--bg-soft); border-radius: 14px; padding: 14px 18px; font-size: 14px; line-height: 1.8; max-width: 78%; }
.balloon .bubble::before { content: ""; position: absolute; top: 18px; width: 0; height: 0; border: 8px solid transparent; }
.balloon:not(.right) .bubble::before { left: -15px; border-right-color: var(--bg-soft); }
.balloon.right .bubble { background: #eef4f4; }
.balloon.right .bubble::before { right: -15px; border-left-color: #eef4f4; }
.balloon .bubble strong { color: var(--accent-dk); }

/* 画像 + キャプション */
.article-body figure { margin: 30px 0; }
.article-body figure img { margin: 0; width: 100%; }
.article-body figure figcaption { font-size: 12px; color: var(--text-mute); text-align: center; margin-top: 8px; letter-spacing: .03em; }

/* ポイントボックス（番号付き要点） */
.point-box { background: #fff; border: 1px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; margin: 26px 0; }
.point-box .pb-head { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; }
.point-box ul, .point-box ol { margin: 0; }
.point-box li { margin-bottom: 8px; }
.toc { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 38px; }
.toc h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--accent-dk); letter-spacing: .06em; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc li { margin-bottom: 7px; font-size: 13.5px; }
.toc a { color: var(--text-soft); }
.table-wrap { overflow-x: auto; margin: 26px 0; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
table.cmp th, table.cmp td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; }
table.cmp th { background: var(--bg-soft); color: var(--accent-dk); font-weight: 700; }
.cta-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; text-align: center; margin: 42px 0; }
.cta-box h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 10px; font-size: 20px; }
.cta-box p { color: var(--text-soft); margin: 0 0 20px; font-size: 13.5px; }
.btn { display: inline-block; font-size: 13px; letter-spacing: .08em; padding: 13px 30px; border-radius: 999px; background: var(--accent); color: #fff; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent-dk); opacity: 1; }
.btn.outline { background: transparent; color: var(--accent-dk); border: 1px solid var(--accent); }
.btn.outline:hover { background: var(--accent); color: #fff; }

/* ---------- ランキング（記事内・任意） ---------- */
.rank-list { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.rank-item { display: flex; gap: 16px; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; }
.rank-item .num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent); color: #fff; }
.rank-item.top1 .num { background: #c9a96a; } .rank-item.top2 .num { background: #b7bfc1; } .rank-item.top3 .num { background: #c8a07e; }
.rank-item .info { flex: 1; }
.rank-item .info h4 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.rank-item .info p { margin: 0; font-size: 12.5px; color: var(--text-soft); }
.rank-item .stars { color: #d4b15f; font-size: 13px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--footer-bg); color: #fff; padding: 48px 0 28px; margin-top: 80px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.footer-inner .brand { font-family: var(--serif); font-size: 20px; letter-spacing: .12em; }
.footer-inner .brand p { font-size: 12px; opacity: .9; margin: 10px 0 0; max-width: 320px; line-height: 1.8; }
.footer-links { display: flex; gap: 28px; margin-left: auto; font-size: 12px; letter-spacing: .06em; }
.footer-links a { color: #fff; }
.copyright { text-align: center; font-size: 11px; opacity: .85; margin-top: 36px; letter-spacing: .08em; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 48px; }
  .col4, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .special-slide { flex: 0 0 80%; }
}
@media (max-width: 600px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 4px 24px; margin: 0; }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .search-btn { display: none; }
  .pickup-grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .col4, .blog-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-track { padding: 0 5%; }
  .hero-slide { flex: 0 0 90%; height: 320px; }
  .hero-caption { padding: 24px; }
  .hero-caption h2 { max-width: 100%; }
  .special-slide { flex: 0 0 90%; }
  .special-arrow.prev { left: 0; } .special-arrow.next { right: 0; }
  .main-wrap { padding: 44px 0; }
  .balloon .bubble { max-width: 100%; }
  .balloon .avatar { width: 46px; }
  .balloon .avatar .face { width: 46px; height: 46px; font-size: 22px; }
}
