/* =========================================================
   SEOニュースブログ  style.css
   l- レイアウト / p- ページセクション / c- 部品
   ========================================================= */

/* ----- リセット ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ----- 変数 ----- */
:root {
  --color-navy: #12233f;       /* 濃紺（ヘッダー・フッター） */
  --color-navy-deep: #0d1b30;  /* さらに濃い紺 */
  --color-blue: #1f6feb;       /* アクセント青（ボタン） */
  --color-blue-light: #5b9dff;
  --color-accent: #f5b301;     /* 有料考察などの黄色アクセント */
  --color-bg: #ffffff;
  --color-bg-soft: #eef4fb;    /* 淡い青の背景 */
  --color-text: #1c2530;
  --color-text-sub: #5b6776;
  --color-border: #e2e8f0;
  --max-width: 1200px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(18, 35, 63, 0.08);
}

/* ----- ベース ----- */
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.l-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- 共通ボタン ----- */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.c-btn--primary { background: var(--color-blue); color: #fff; }
.c-btn--primary:hover { background: #1a5fd0; transform: translateY(-1px); }
.c-btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.c-btn--ghost:hover { background: rgba(255,255,255,.12); }

/* =========================================================
   ヘッダー
   ========================================================= */
.l-header {
  background: var(--color-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.l-header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.l-header__logo {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.l-header__nav { flex: 1; }
.l-header__nav ul {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}
.l-header__nav a { color: rgba(255,255,255,.88); padding: 4px 0; transition: color .15s; }
.l-header__nav a:hover { color: #fff; }
.l-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.l-header__search {
  color: #fff;
  display: flex;
  align-items: center;
}
.l-header__follow { padding: 9px 16px; font-size: 14px; }

/* =========================================================
   ヒーロー
   ========================================================= */
.p-hero {
  position: relative;
  background:
    radial-gradient(900px 400px at 80% 30%, rgba(31,111,235,.35), transparent 60%),
    linear-gradient(135deg, var(--color-navy-deep) 0%, #16335e 60%, #1c4178 100%);
  color: #fff;
  overflow: hidden;
}
.p-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(143,192,255,.12) 1px, transparent 1.4px);
  background-size: 24px 24px;
  opacity: .55;
  pointer-events: none;
}
.p-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 30px;
  padding: 70px 20px 80px;
}
.p-hero__title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .01em;
}
.p-hero__catch {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-blue-light);
  line-height: 1.5;
}
.p-hero__lead {
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255,255,255,.85);
}
.p-hero__buttons {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}
.p-hero__badges {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.p-hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
}
.p-hero__visual {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(91,157,255,.40), transparent 65%);
  border-radius: 50%;
}
.p-hero__art { position: relative; width: 100%; max-width: 460px; }

/* ----- 共通ボタン（追加バリエーション） ----- */
.c-btn--accent { background: var(--color-accent); color: var(--color-navy); }
.c-btn--accent:hover { background: #ffc62e; transform: translateY(-1px); }
.c-btn--sm { padding: 9px 16px; font-size: 14px; }

/* ----- 共通：セクション見出し ----- */
.c-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.c-section-head__title {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-navy);
  padding-left: 12px;
  border-left: 5px solid var(--color-blue);
  line-height: 1.2;
}
.c-section-head__more { font-size: 14px; font-weight: 700; color: var(--color-blue); }
.c-section-head__more:hover { text-decoration: underline; }

/* ----- 共通：カテゴリラベル ----- */
.c-label {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
  white-space: nowrap;
}
.c-label--blue   { background: var(--color-blue); }
.c-label--green  { background: #1f9d55; }
.c-label--purple { background: #7c3aed; }
.c-label--orange { background: #e8730c; }
.c-label--teal   { background: #0d9488; }
.c-label--paid   { background: var(--color-accent); color: var(--color-navy); }

/* ----- 共通：ダミーサムネ ----- */
.c-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background-size: cover;
  position: relative;
  overflow: hidden;
}
.c-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60px 60px at 70% 30%, rgba(255,255,255,.25), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 10px, transparent 10px 20px);
}
.c-thumb--blue   { background: linear-gradient(135deg, #1f6feb, #0d3b8c); }
.c-thumb--green  { background: linear-gradient(135deg, #16a34a, #0b5132); }
.c-thumb--purple { background: linear-gradient(135deg, #7c3aed, #3b1a78); }
.c-thumb--orange { background: linear-gradient(135deg, #f97316, #9a3412); }
.c-thumb--teal   { background: linear-gradient(135deg, #14b8a6, #0b5e57); }
.c-thumb--dark   { background: linear-gradient(135deg, #1e3a5f, #0d1b30); }

/* =========================================================
   カテゴリカード（7枚）
   ========================================================= */
.p-categories { padding: 40px 0; }
.c-cat-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.c-cat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 14px 18px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.c-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-blue-light);
}
.c-cat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-blue);
  margin-bottom: 12px;
}
.c-cat-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 6px;
}
.c-cat-card__desc {
  font-size: 11.5px;
  color: var(--color-text-sub);
  line-height: 1.5;
}
.c-cat-card__arrow {
  position: absolute;
  right: 12px;
  bottom: 10px;
  color: var(--color-blue);
  font-weight: 700;
}

/* =========================================================
   メイン（本文 ＋ サイドバー）レイアウト
   ========================================================= */
.p-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  padding-top: 20px;
  padding-bottom: 60px;
  align-items: start;
}
.p-main__content { display: flex; flex-direction: column; gap: 56px; }

/* ----- 最新記事 ----- */
.c-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.c-article-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.c-article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.c-article-card .c-thumb { border-radius: 0; }
.c-article-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.c-article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.c-article-card__meta time { font-size: 12px; color: var(--color-text-sub); }
.c-article-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.45;
  margin-bottom: 8px;
}
.c-article-card__excerpt {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: 12px;
}
.c-article-card__more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-blue);
}
.c-article-card__more:hover { text-decoration: underline; }

/* ----- 今日のSEOニュース ----- */
.p-today {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  background: var(--color-bg-soft);
  border: 1px solid #d7e6f7;
  border-radius: 14px;
  padding: 28px 30px;
}
.p-today__date { font-size: 14px; font-weight: 700; color: var(--color-blue); }
.p-today__title { font-size: 26px; font-weight: 900; color: var(--color-navy); margin: 4px 0 16px; }
.p-today__subtitle { font-size: 15px; font-weight: 700; color: var(--color-text); margin-bottom: 12px; }
.p-today__list { display: flex; flex-direction: column; gap: 10px; }
.p-today__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.p-today__list svg { color: var(--color-blue); flex-shrink: 0; margin-top: 3px; }
.p-today__more { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--color-blue); }
.p-today__more:hover { text-decoration: underline; }
.p-today__visual { aspect-ratio: 4 / 3; border-radius: 10px; }

/* ----- 特許から読むGoogle ----- */
.p-patent {
  background: linear-gradient(135deg, var(--color-navy-deep), #16335e);
  color: #fff;
  border-radius: 14px;
  padding: 32px 34px;
}
.p-patent__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.p-patent__title { font-size: 24px; font-weight: 900; }
.p-patent__accent { color: var(--color-accent); }
.p-patent__lead { flex-basis: 100%; font-size: 14px; color: rgba(255,255,255,.8); }
.p-patent__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.c-patent-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 20px 20px 18px;
}
.c-patent-card__lock {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--color-accent);
}
.c-patent-card__title { font-size: 17px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; padding-right: 28px; }
.c-patent-card__excerpt { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.65; margin-bottom: 14px; }
.c-patent-card__meta { display: flex; gap: 12px; font-size: 12px; color: rgba(255,255,255,.7); }
.c-patent-card__meta span { color: var(--color-accent); font-weight: 700; }
.p-patent__foot { text-align: center; margin-top: 24px; }

/* ----- 人気記事（総合） ----- */
.c-popular-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.c-popular-card { position: relative; }
.c-popular-card .c-thumb { margin-bottom: 8px; }
.c-popular-card__title { font-size: 13px; font-weight: 700; color: var(--color-navy); line-height: 1.45; margin-bottom: 4px; }
.c-popular-card__date { font-size: 12px; color: var(--color-text-sub); }

/* ----- 共通：順位バッジ ----- */
.c-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-text-sub);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.c-popular-card .c-rank { position: absolute; top: 8px; left: 8px; z-index: 1; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.c-rank--1 { background: #f5b301; }
.c-rank--2 { background: #9aa7b4; }
.c-rank--3 { background: #cd7f32; }

/* =========================================================
   サイドバー
   ========================================================= */
.c-sidebar { display: flex; flex-direction: column; gap: 24px; }
.c-side-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}
.c-side-box__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-bg-soft);
}

/* 検索ボックス */
.c-search { display: flex; }
.c-search__input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.c-search__input:focus { border-color: var(--color-blue); }
.c-search__btn {
  background: var(--color-blue);
  color: #fff;
  padding: 0 16px;
  border-radius: 0 8px 8px 0;
  display: flex;
  align-items: center;
}

/* 紹介ボックス */
.c-about__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.c-about__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-blue);
  flex-shrink: 0;
}
.c-about .c-side-box__title { border: none; padding: 0; margin: 0; font-size: 15px; }
.c-about__text { font-size: 13px; color: var(--color-text-sub); line-height: 1.7; margin-bottom: 12px; }
.c-about__more { font-size: 13px; font-weight: 700; color: var(--color-blue); }

/* 人気記事ランキング */
.c-rank-list { display: flex; flex-direction: column; gap: 14px; }
.c-rank-list li { display: flex; align-items: flex-start; gap: 10px; }
.c-rank-list a { font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--color-text); }
.c-rank-list a:hover { color: var(--color-blue); }

/* カテゴリ一覧 */
.c-cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.c-cat-list li:last-child { border-bottom: none; }
.c-cat-list a:hover { color: var(--color-blue); }
.c-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-sub);
  background: var(--color-bg-soft);
  border-radius: 10px;
  padding: 2px 10px;
}

/* タグ一覧 */
.c-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.c-tag-list a {
  display: inline-block;
  font-size: 12px;
  color: var(--color-text-sub);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 4px 12px;
  transition: background .15s, color .15s;
}
.c-tag-list a:hover { background: var(--color-blue); color: #fff; border-color: var(--color-blue); }

/* 特許から読む検索（濃紺） */
.c-side-patent {
  background: linear-gradient(135deg, var(--color-navy-deep), #1c4178);
  border: none;
  color: #fff;
}
.c-side-patent__title { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.c-side-patent__text { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 16px; }

/* フォロー / 登録 */
.c-follow-list { display: flex; flex-direction: column; gap: 14px; }
.c-follow-list li { display: flex; align-items: center; gap: 12px; }
.c-follow-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.c-follow-list__icon--note { background: #000; }
.c-follow-list__icon--mail { background: var(--color-blue); }
.c-follow-list__icon--x { background: #000; }
.c-follow-list strong { display: block; font-size: 13.5px; color: var(--color-navy); }
.c-follow-list small { font-size: 12px; color: var(--color-text-sub); }

/* =========================================================
   フォロー/登録バンド
   ========================================================= */
.p-follow { background: var(--color-bg-soft); padding: 40px 0; }
.p-follow__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.p-follow__lead { display: flex; align-items: center; gap: 16px; }
.p-follow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-blue);
  flex-shrink: 0;
}
.p-follow__lead p { font-size: 19px; font-weight: 800; color: var(--color-navy); line-height: 1.5; }
.p-follow__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.c-cta-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.c-cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.c-cta-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-weight: 900;
  flex-shrink: 0;
}
.c-cta-btn strong { display: block; font-size: 15px; line-height: 1.3; }
.c-cta-btn small { font-size: 12px; opacity: .85; }
.c-cta-btn--ghost { background: #fff; color: var(--color-navy); border: 1px solid var(--color-border); }
.c-cta-btn--ghost .c-cta-btn__icon { background: #000; color: #fff; }
.c-cta-btn--primary { background: var(--color-blue); color: #fff; }
.c-cta-btn--primary .c-cta-btn__icon { background: rgba(255,255,255,.2); color: #fff; }

/* =========================================================
   フッター
   ========================================================= */
.l-footer { background: var(--color-navy); color: rgba(255,255,255,.78); }
.l-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.2fr;
  gap: 32px;
  padding-top: 50px;
  padding-bottom: 40px;
}
.l-footer__logo { font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.l-footer__desc { font-size: 13px; line-height: 1.8; margin-bottom: 18px; }
.l-footer__sns { display: flex; gap: 10px; }
.l-footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  transition: background .15s;
}
.l-footer__sns a:hover { background: var(--color-blue); }
.l-footer__col h4 { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.l-footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.l-footer__col a { font-size: 13px; transition: color .15s; }
.l-footer__col a:hover { color: #fff; }
.l-footer__contact p { font-size: 13px; line-height: 1.7; margin-bottom: 14px; }
.l-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: 12.5px;
  text-align: center;
  color: rgba(255,255,255,.6);
}

/* =========================================================
   レスポンシブ（簡易）
   ========================================================= */
@media (max-width: 1100px) {
  .c-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .p-main { grid-template-columns: 1fr; }
  .c-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
}
@media (max-width: 900px) {
  .l-header__nav { display: none; }
  .p-hero__inner { grid-template-columns: 1fr; }
  .p-hero__visual { display: none; }
  .p-hero__title { font-size: 40px; }
  .c-article-grid { grid-template-columns: repeat(2, 1fr); }
  .c-popular-grid { grid-template-columns: repeat(2, 1fr); }
  .p-today { grid-template-columns: 1fr; }
  .p-today__visual { display: none; }
  .p-patent__cards { grid-template-columns: 1fr; }
  .l-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .c-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .c-article-grid { grid-template-columns: 1fr; }
  .c-popular-grid { grid-template-columns: 1fr; }
  .c-sidebar { grid-template-columns: 1fr; }
  .l-footer__inner { grid-template-columns: 1fr; }
  .p-follow__inner { flex-direction: column; align-items: flex-start; }
}
