/* =============================================
   愛の手 AINOTE — Blog / Single Post Override
   Loaded via header.php for ainote-blog pages
   ============================================= */

:root {
  --coral: #ff6e5c;
  --coral-2: #f47265;
  --brown: #4a2a1a;
  --cream: #fdf6ec;
}

/* ── Reset 1720px fixed-width for blog ───────── */
body.ainote-blog {
  min-width: 0 !important;
  width: 100% !important;
  overflow-x: hidden;
}

/* ── HEADER — fluid layout ───────────────────── */
body.ainote-blog .site-header {
  width: 100% !important;
  min-width: 0 !important;
}
body.ainote-blog .header-inner {
  max-width: 1200px !important;
  padding: 14px 24px !important;
  gap: 24px !important;
}
body.ainote-blog .brand-logo-img {
  height: 48px !important;
}
body.ainote-blog .site-nav {
  gap: 28px !important;
  margin-right: 16px !important;
}
body.ainote-blog .site-nav a {
  font-size: 14px !important;
}
body.ainote-blog .line-pill {
  padding: 10px 18px !important;
  font-size: 14px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── FOOTER — responsive grid ────────────────── */
body.ainote-blog .site-footer {
  width: 100% !important;
  min-width: 0 !important;
  padding: 48px 32px 0 !important;
  box-sizing: border-box;
}
/* footer-cols は display:contents → 子要素がグリッドに直接入る
   brand(1) + col×3(2-4) + contact(5) = 5要素 → 5列グリッド維持 */
body.ainote-blog .footer-inner {
  max-width: 1100px !important;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr 1.2fr !important;
  gap: 28px !important;
}
body.ainote-blog .footer-cols {
  display: contents !important;
}
body.ainote-blog .footer-contact {
  grid-column: auto !important;
}
body.ainote-blog .footer-contact-tel {
  font-size: 22px !important;
  letter-spacing: .03em;
}
/* フッター文字色を本番と揃える */
body.ainote-blog .footer-desc {
  font-size: 12px !important;
  color: #d4b6a3 !important;
  line-height: 1.8 !important;
}
body.ainote-blog .footer-col h4 {
  font-size: 14px !important;
  color: #ffb89c !important;
  margin-bottom: 14px !important;
}
body.ainote-blog .footer-col a {
  font-size: 12px !important;
  color: #d4b6a3 !important;
}
body.ainote-blog .footer-col a:hover {
  color: #fff !important;
  text-decoration: none !important;
}
body.ainote-blog .footer-contact-label {
  color: #d4b6a3 !important;
  font-size: 12px !important;
}
body.ainote-blog .footer-contact-hours {
  color: #b89882 !important;
  font-size: 11px !important;
}
body.ainote-blog .footer-contact-btn {
  font-size: 12px !important;
  color: #f0d8c8 !important;
}
body.ainote-blog .footer-copyright {
  width: 100% !important;
  font-size: 12px !important;
  color: #8e6a55 !important;
}

/* ── FOOTER モバイル ─────────────────────────── */
@media (max-width: 860px) {
  body.ainote-blog .footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  body.ainote-blog .footer-brand {
    grid-column: 1 / -1;
  }
  body.ainote-blog .footer-contact {
    grid-column: 1 / -1;
  }
}

/* ── Base Typography ─────────────────────────── */
body.ainote-blog,
body.ainote-blog p,
body.ainote-blog li,
body.ainote-blog td,
body.ainote-blog th {
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 15px;
  line-height: 1.9;
  color: #3d3020;
}

body.ainote-blog h1,
body.ainote-blog h2,
body.ainote-blog h3,
body.ainote-blog h4,
body.ainote-blog h5,
body.ainote-blog h6 {
  font-family: 'Noto Sans JP', sans-serif !important;
  color: var(--brown);
  font-weight: 700;
}

body.ainote-blog a {
  color: var(--coral);
  text-decoration: none;
}
body.ainote-blog a:hover {
  color: var(--coral-2);
  text-decoration: underline;
}

/* ── Main Content Layout ─────────────────────── */
body.ainote-blog #et-main-area {
  background: #fafafa;
  padding: 40px 0 64px;
}

body.ainote-blog #main-content {
  background: transparent;
}

body.ainote-blog #main-content .container {
  max-width: 1080px;
  padding-top: 0 !important;
}

/* ── Article / Post ──────────────────────────── */
body.ainote-blog #left-area {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px 40px !important;
  box-shadow: 0 2px 12px rgba(74,42,26,.06);
}

body.ainote-blog .entry-title,
body.ainote-blog h1.entry-title {
  font-size: 24px !important;
  line-height: 1.5 !important;
  color: var(--brown);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--coral);
  margin-bottom: 24px;
}

body.ainote-blog .post-meta {
  font-size: 13px !important;
  color: #888;
  padding-bottom: 20px !important;
}

/* Headings inside content */
body.ainote-blog .entry-content h2 {
  font-size: 19px !important;
  padding: 10px 16px;
  background: var(--cream);
  border-left: 4px solid var(--coral);
  border-radius: 0 6px 6px 0;
  margin: 32px 0 16px;
  color: var(--brown);
}
body.ainote-blog .entry-content h3 {
  font-size: 16px !important;
  padding-bottom: 6px;
  border-bottom: 1px dashed #ddd;
  margin: 24px 0 12px;
  color: var(--brown);
}

/* Tables */
body.ainote-blog .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}
body.ainote-blog .entry-content th {
  background: var(--brown);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
}
body.ainote-blog .entry-content td {
  padding: 9px 14px;
  border: 1px solid #e8e0d8;
}
body.ainote-blog .entry-content tr:nth-child(even) td {
  background: var(--cream);
}

/* Lists */
body.ainote-blog .entry-content ul,
body.ainote-blog #left-area ul {
  padding-left: 1.4em;
  list-style-type: disc;
}
body.ainote-blog .entry-content ol,
body.ainote-blog #left-area ol {
  padding-left: 1.4em;
  list-style-type: decimal;
  list-style-position: outside;
}
body.ainote-blog .entry-content li {
  margin-bottom: 6px;
}

/* ── Sidebar ─────────────────────────────────── */
body.ainote-blog #sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 28px 24px !important;
  box-shadow: 0 2px 12px rgba(74,42,26,.06);
  font-family: 'Noto Sans JP', sans-serif !important;
}

body.ainote-blog #sidebar .widget {
  margin-bottom: 32px;
}

body.ainote-blog #sidebar .widget-title,
body.ainote-blog #sidebar .widgettitle {
  font-size: 14px !important;
  font-weight: 700;
  color: #fff;
  background: var(--brown);
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 14px;
  font-family: 'Noto Sans JP', sans-serif !important;
}

body.ainote-blog #sidebar ul {
  list-style: none !important;
  padding: 0 !important;
}
body.ainote-blog #sidebar ul li {
  border-bottom: 1px solid #f0e8e0;
  padding: 8px 0;
  font-size: 13px;
}
body.ainote-blog #sidebar ul li:last-child {
  border-bottom: none;
}
body.ainote-blog #sidebar ul li a {
  color: var(--brown);
  font-size: 13px;
}
body.ainote-blog #sidebar ul li a:hover {
  color: var(--coral);
}

/* Recent Posts with thumbnail */
body.ainote-blog #sidebar .et_recent_posts_widget li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
}
body.ainote-blog #sidebar .et_recent_posts_widget li img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ── Mobile ──────────────────────────────────── */
@media (max-width: 980px) {
  body.ainote-blog #et-main-area {
    padding: 24px 16px 48px;
  }
  body.ainote-blog #left-area {
    padding: 24px 20px 28px !important;
    border-radius: 8px;
  }
  body.ainote-blog .entry-title,
  body.ainote-blog h1.entry-title {
    font-size: 20px !important;
  }
  body.ainote-blog .entry-content h2 {
    font-size: 17px !important;
  }
  body.ainote-blog #sidebar {
    margin-top: 24px;
    padding: 20px 16px !important;
  }
}
