/*
  Theme: car-blog-clean-media
  Description: 車なしからの這い上がり向け・ネイビー基調の2カラムメディアレイアウト
  Responsive: yes

  導入前に、現在の「デザインCSS」を全文バックアップしてください。
  既存テーマは変更せず、下記ブロックをデザインCSSの末尾に追加します。
  元に戻すときは、このブロック全体（CAR BLOG LAYOUT V2 START〜END）を削除します。
*/

/* ===== CAR BLOG LAYOUT V2 START ===== */
:root {
  --car-navy: #102b45;
  --car-navy-2: #1d4565;
  --car-blue: #2f6b91;
  --car-orange: #e18a45;
  --car-ink: #253545;
  --car-muted: #718092;
  --car-border: #e1e8ee;
  --car-paper: #ffffff;
  --car-bg: #f3f6f9;
  --car-shadow: 0 8px 24px rgba(16, 43, 69, .07);
}

html { scroll-behavior: smooth; }
body {
  color: var(--car-ink);
  background: var(--car-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: .01em;
}
a { color: var(--car-blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--car-orange); }
img { max-width: 100%; height: auto; }

/* ヘッダー画像は「デザイン > カスタマイズ > ヘッダ」からアップロード */
#blog-title { margin: 0 !important; padding: 0 !important; border: 0 !important; }
#blog-title-inner {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 270px;
  max-width: none !important;
  padding: 38px 22px !important;
  background-color: var(--car-navy) !important;
  background-size: cover !important;
  background-position: center 52% !important;
  border: 0 !important;
}
#blog-title-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 27, 45, .80) 0%, rgba(8, 27, 45, .48) 48%, rgba(8, 27, 45, .10) 100%);
  pointer-events: none;
}
#blog-title-content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: left !important;
}
#title, #title a {
  margin: 0;
  color: #fff !important;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: .035em;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
#blog-description {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255,255,255,.94) !important;
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,.22);
}

/* タイトル下HTMLに設置するカテゴリー・ナビゲーション */
#top-editarea { margin: 0 !important; padding: 0 !important; }
.carblog-site-nav {
  position: relative;
  z-index: 5;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--car-border);
  box-shadow: 0 3px 12px rgba(16,43,69,.045);
}
.carblog-site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.carblog-site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 21px;
  color: var(--car-navy) !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.carblog-site-nav__link:hover {
  color: var(--car-blue) !important;
  background: #f4f8fb;
  border-bottom-color: var(--car-orange);
}

/* 全体幅と、記事本文＋サイドバーの2カラム */
#content {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 34px 22px 64px !important;
  background: transparent;
}
#content-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 32px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto !important;
}
#main {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
#box2 {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

/* トップページ・カテゴリー一覧・アーカイブの記事カード */
.archive-entry {
  box-sizing: border-box;
  margin: 0 0 22px !important;
  padding: 22px !important;
  overflow: hidden;
  background: var(--car-paper);
  border: 1px solid var(--car-border);
  border-radius: 14px;
  box-shadow: var(--car-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.archive-entry:hover { box-shadow: 0 12px 30px rgba(16,43,69,.10); }
.archive-entry .date,
.archive-entry .entry-date { color: var(--car-muted); font-size: 12px; }
.archive-entry .entry-title {
  margin: 4px 0 9px !important;
  color: var(--car-navy);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.5;
}
.archive-entry .entry-title a { color: var(--car-navy) !important; text-decoration: none !important; }
.archive-entry .entry-title a:hover { color: var(--car-blue) !important; }
.archive-entry .categories { margin: 5px 0 12px !important; }
.archive-entry .categories a {
  display: inline-block;
  margin: 2px 5px 2px 0;
  padding: 3px 10px;
  color: #315b78 !important;
  background: #edf4f8;
  border: 1px solid #e0ebf2;
  border-radius: 99px;
  font-size: 11px;
  text-decoration: none !important;
}
.archive-entry-body {
  display: grid;
  grid-template-columns: minmax(170px, 32%) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
.archive-entry .entry-thumb {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 150px !important;
  margin: 0 !important;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
  border-radius: 9px;
}
.archive-entry .entry-thumb img,
.archive-entry .entry-thumb-image {
  display: block;
  width: 100% !important;
  height: 150px !important;
  object-fit: cover;
  border-radius: 9px;
}
.archive-entry .entry-description {
  min-width: 0;
  margin: 0 !important;
  color: #526273;
  font-size: 14px;
  line-height: 1.85;
}
.archive-entry .entry-description p { margin: 0 0 .8em; }
.archive-entry .entry-footer { margin-top: 12px; }

/* 記事ページ */
.entry {
  box-sizing: border-box;
  margin: 0 0 28px !important;
  padding: clamp(20px, 3vw, 34px) !important;
  background: #fff;
  border: 1px solid var(--car-border);
  border-radius: 14px;
  box-shadow: var(--car-shadow);
}
.entry-title {
  color: var(--car-navy);
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.5;
}
.entry-title a { color: var(--car-navy) !important; text-decoration: none; }
.entry-content { color: #344657; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.entry-content h2 {
  margin: 2.3em 0 .95em;
  padding: .68em .9em;
  color: #fff;
  background: linear-gradient(110deg, var(--car-navy), var(--car-navy-2));
  border-left: 5px solid var(--car-orange);
  border-radius: 5px;
  font-size: 1.35em;
  line-height: 1.5;
}
.entry-content h3 {
  margin: 1.9em 0 .8em;
  padding: .25em 0 .35em .75em;
  color: var(--car-navy);
  border-left: 4px solid var(--car-orange);
  border-bottom: 1px solid var(--car-border);
  font-size: 1.16em;
  line-height: 1.55;
}
.entry-content h4 { color: var(--car-blue); font-size: 1.05em; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}
.entry-content th, .entry-content td { padding: 11px 13px; border: 1px solid var(--car-border); vertical-align: top; }
.entry-content th { color: var(--car-navy); background: #edf4f8; }
.entry-content blockquote { margin: 1.5em 0; padding: 1em 1.2em; color: #5c6c7c; background: #f4f7f9; border-left: 4px solid #9db4c7; border-radius: 0 8px 8px 0; }

/* サイドバー：プロフィール・人気記事・最新記事・カテゴリーをカード化 */
#box2 .hatena-module {
  box-sizing: border-box;
  margin: 0 0 20px !important;
  padding: 19px !important;
  background: #fff;
  border: 1px solid var(--car-border);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(16,43,69,.05);
}
#box2 .hatena-module-title {
  margin: 0 0 13px !important;
  padding: 0 0 11px !important;
  color: var(--car-navy);
  border: 0 !important;
  border-bottom: 2px solid #e8eef3 !important;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}
#box2 .hatena-module-title::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 1em;
  margin: 0 9px -2px 0;
  background: var(--car-orange);
  border-radius: 3px;
}
#box2 .hatena-module a { text-decoration: none; }
#box2 .hatena-module li { margin: 0 0 9px; line-height: 1.65; }
#box2 .hatena-module ul { padding-left: 1.1em; }
#box2 .hatena-module-category a {
  display: inline-block;
  margin: 3px 4px 3px 0;
  padding: 4px 9px;
  color: #315b78 !important;
  background: #edf4f8;
  border-radius: 999px;
  font-size: 12px;
}
#box2 .hatena-module-profile .profile-icon,
#box2 .hatena-module-profile img { border-radius: 50%; }

/* フッター */
#footer {
  box-sizing: border-box;
  padding: 28px 22px !important;
  color: #e6eff6;
  background: var(--car-navy);
  text-align: center;
}
#footer a { color: #fff !important; }

/* タブレット */
@media (max-width: 980px) {
  #content-inner { grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; }
  .carblog-site-nav__link { padding: 0 14px; }
}

/* スマートフォン（レスポンシブデザインを有効にした場合） */
@media (max-width: 767px) {
  #blog-title-inner { min-height: 190px; padding: 26px 17px !important; background-position: 58% center !important; }
  #blog-title-content { width: 100%; }
  #title, #title a { font-size: 27px; }
  #blog-description { margin-top: 8px; font-size: 12px; }
  .carblog-site-nav__inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 0 9px; -webkit-overflow-scrolling: touch; }
  .carblog-site-nav__link { flex: 0 0 auto; min-height: 47px; padding: 0 14px; font-size: 13px; }
  #content { padding: 20px 12px 42px !important; }
  #content-inner { display: block !important; }
  #main, #box2 { width: 100% !important; }
  .archive-entry { padding: 16px !important; margin-bottom: 15px !important; border-radius: 11px; }
  .archive-entry .entry-title { font-size: 18px; }
  .archive-entry-body { grid-template-columns: 1fr; gap: 12px; }
  .archive-entry .entry-thumb,
  .archive-entry .entry-thumb img,
  .archive-entry .entry-thumb-image { height: auto !important; min-height: 0; aspect-ratio: 16 / 9; }
  .archive-entry .entry-description { font-size: 13px; }
  .entry { padding: 18px !important; border-radius: 10px; }
  .entry-content { font-size: 15px; }
  .entry-content h2 { font-size: 1.18em; }
  #box2 { margin-top: 26px !important; }
  #box2 .hatena-module { padding: 16px !important; }
}

@media (max-width: 380px) {
  #title, #title a { font-size: 23px; }
  .carblog-site-nav__link { padding: 0 11px; font-size: 12px; }
}
/* ===== CAR BLOG LAYOUT V2 END ===== */