/*
Theme Name: Rizoba Navi
Description: リゾバナビ専用テーマ。静的TOP（static-top.html）とトンマナを統一した記事・下層ページ用テーマ。
Version: 1.0.0
Author: Digital Gorilla
*/

:root {
  --bg: #F0F9FF;
  --card: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --blue: #0EA5E9;
  --blue-deep: #1B66E8;
  --navy: #0C4A6E;
  --green: #10B981;
  --teal: #2DD4BF;
  --gold: #F59E0B;
  --yellow: #FACC15;
  --sky-100: #E0F2FE;
  --sky-200: #BAE6FD;
  --sky-300: #7DD3FC;
  --line: #E2E8F0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); -webkit-tap-highlight-color: transparent; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(15,23,42,0.06);
}
.site-header__inner {
  max-width: 1100px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo__img { display: block; height: 40px; width: auto; }
.site-logo__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #fff; font-weight: 900; font-size: 18px;
}
.site-logo__name { font-weight: 900; font-size: 19px; color: var(--text); letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: var(--blue); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  background: var(--blue-deep); color: #fff !important;
  font-weight: 700; font-size: 14px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(27,102,232,0.3);
}
.sub-nav {
  display: none;
  background: var(--card); border-top: 1px solid var(--sky-100);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.sub-nav__inner { display: flex; gap: 4px; padding: 8px 12px; white-space: nowrap; }
.sub-nav a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none;
  background: var(--sky-100);
}

/* ===== Layout ===== */
.site-main { max-width: 760px; margin: 0 auto; padding: 28px 16px 56px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 12px; color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--sky-300); }

/* ===== Article ===== */
.entry-card {
  background: var(--card); border-radius: 16px;
  border: 1px solid var(--sky-100);
  box-shadow: 0 4px 16px rgba(14,165,233,0.06);
  padding: 28px 24px 36px;
}
.entry-header { margin-bottom: 20px; }
.cat-chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--sky-100); color: var(--navy);
  font-size: 12px; font-weight: 700; text-decoration: none; margin-bottom: 10px;
}
.entry-title { margin: 0 0 12px; font-size: 26px; font-weight: 900; line-height: 1.5; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.entry-eyecatch {
  display: block; width: 100%; border-radius: 12px; margin: 16px 0 0;
  aspect-ratio: 1200 / 630; object-fit: cover;
}
.pr-note {
  margin: 14px 0 0; padding: 8px 12px; border-radius: 8px;
  background: #F8FAFC; border: 1px solid var(--line);
  font-size: 11px; color: var(--muted);
}

.entry-content { font-size: 16px; }
.entry-content h2 {
  margin: 44px 0 18px; padding: 12px 16px;
  background: linear-gradient(135deg, var(--navy), #0E5A85);
  color: #fff; font-size: 20px; font-weight: 900; line-height: 1.5;
  border-radius: 10px;
}
.entry-content h3 {
  margin: 34px 0 14px; padding: 0 0 8px 14px;
  border-left: 4px solid var(--blue); border-bottom: 2px solid var(--sky-100);
  font-size: 17px; font-weight: 900; line-height: 1.5;
}
.entry-content p { margin: 0 0 18px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px; padding-left: 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { font-weight: 600; }

/* tables */
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 22px;
  font-size: 14px; background: var(--card);
  border: 1px solid var(--sky-100); border-radius: 10px; overflow: hidden;
}
.entry-content th {
  background: var(--navy); color: #fff; font-weight: 700;
  padding: 10px 12px; text-align: left; font-size: 13px;
}
.entry-content td { padding: 10px 12px; border-top: 1px solid var(--sky-100); vertical-align: top; }
.entry-content tr:nth-child(even) td { background: #F8FDFF; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 22px; }
.table-scroll table { margin: 0; min-width: 560px; }

/* content boxes */
.point-box {
  margin: 0 0 22px; padding: 16px 18px; border-radius: 12px;
  background: var(--sky-100); border-left: 4px solid var(--blue);
}
.point-box p:last-child { margin-bottom: 0; }
.warn-box {
  margin: 0 0 22px; padding: 16px 18px; border-radius: 12px;
  background: #FEF9C3; border-left: 4px solid var(--gold);
}
.warn-box p:last-child { margin-bottom: 0; }

.merit-list, .demerit-list { list-style: none !important; padding-left: 0 !important; }
.merit-list li, .demerit-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px; line-height: 1.8;
}
.merit-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 900;
}
.demerit-list li::before {
  content: "×"; position: absolute; left: 0; top: 0;
  color: #F0776C; font-weight: 900;
}

/* 公式サイトキャプチャ（引用） */
.site-capture { margin: 0 0 24px; }
.site-capture img {
  display: block; width: 100%; border-radius: 12px;
  border: 1px solid var(--sky-100); box-shadow: 0 4px 16px rgba(14,165,233,0.08);
}
.site-capture figcaption { margin-top: 6px; font-size: 11px; color: var(--muted); text-align: right; }
.site-capture figcaption a { color: var(--muted); }

/* CTA内バナー */
.cta-banner { margin: 0 0 12px !important; text-align: center; }
.cta-banner img[width="300"] { max-width: 100%; height: auto; border-radius: 8px; }

/* CTA */
.cta-box {
  margin: 28px 0; padding: 22px 20px; border-radius: 16px;
  background: linear-gradient(180deg, #F8FDFF, var(--sky-100));
  border: 2px solid var(--sky-200); text-align: center;
}
.cta-note { margin: 0 0 12px !important; font-size: 13px; font-weight: 700; color: var(--navy); }
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 34px; width: 100%; max-width: 420px;
  background: var(--blue); color: #fff !important;
  font-weight: 700; font-size: 16px; border-radius: 10px; text-decoration: none;
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
  transition: transform 0.15s ease;
}
.cta-btn:hover { transform: translateY(-2px); }

/* author box */
.author-box {
  margin-top: 36px; padding: 18px; border-radius: 12px;
  background: #F8FDFF; border: 1px solid var(--sky-100);
  display: flex; gap: 14px; align-items: flex-start;
}
.author-box__icon {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 20px;
}
.author-box__name { margin: 0 0 4px; font-size: 14px; font-weight: 900; }
.author-box__bio { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* related */
.related { margin-top: 40px; }
.related__title { font-size: 18px; font-weight: 900; margin: 0 0 16px; }

/* ===== Card list (archive / related) ===== */
.post-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.post-card {
  display: block; background: var(--card); border-radius: 14px;
  border: 1px solid var(--sky-100);
  box-shadow: 0 4px 16px rgba(14,165,233,0.06);
  padding: 18px 20px; text-decoration: none; color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,233,0.12); }
.post-card--thumb { padding: 0; }
.post-card__img {
  display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover;
  border-bottom: 1px solid var(--sky-100); background: var(--sky-100);
}
.post-card__body { padding: 16px 20px 18px; }
.post-card__cat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.post-card__title { margin: 0 0 8px; font-size: 16px; font-weight: 900; line-height: 1.6; }
.post-card__excerpt { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.post-card__date { display: block; margin-top: 10px; font-size: 11px; color: #94A3B8; }

/* ===== Archive header ===== */
.archive-header { text-align: center; margin-bottom: 28px; }
.archive-header__label {
  color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; display: block; margin-bottom: 8px;
}
.archive-header__title { margin: 0 0 10px; font-size: 26px; font-weight: 900; line-height: 1.5; }
.archive-header__desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; font-size: 14px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--sky-100);
  color: var(--text); text-decoration: none; font-weight: 700;
}
.pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ===== Footer ===== */
.site-footer { margin-top: 56px; background: var(--navy); color: var(--sky-200); }
.site-footer__inner {
  max-width: 1100px; margin: 0 auto; padding: 36px 20px 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.site-footer .site-logo__mark {
  width: 28px; height: 28px; border-radius: 8px; font-size: 13px;
  background: linear-gradient(135deg, var(--blue), var(--green));
}
.site-footer .site-logo__name { font-size: 16px; color: #fff; }
.site-footer__tagline { margin: 6px 0 0; font-size: 12px; color: var(--sky-300); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.site-footer__nav a { color: var(--sky-100); text-decoration: none; font-weight: 600; }
.site-footer__bottom {
  border-top: 1px solid rgba(186,230,253,0.2); padding-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer__note { margin: 0; font-size: 11px; color: var(--sky-300); line-height: 1.7; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11px; }
.site-footer__legal a { color: var(--sky-300); text-decoration: none; }
.site-footer__copy { margin: 0; font-size: 11px; color: rgba(125,211,252,0.6); }

/* ===== 404 ===== */
.error-page { text-align: center; padding: 60px 16px; }
.error-page h1 { font-size: 28px; font-weight: 900; }

/* ===== Responsive ===== */
@media (max-width: 719px) {
  .site-nav { display: none; }
  .sub-nav { display: block; }
  .entry-card { padding: 22px 16px 28px; border-radius: 12px; }
  .entry-title { font-size: 22px; }
  .entry-content h2 { font-size: 18px; margin-top: 36px; }
  .entry-content h3 { font-size: 16px; }
  .archive-header__title { font-size: 22px; }
}
@media (min-width: 720px) {
  .post-cards { grid-template-columns: 1fr 1fr; }
  .post-cards--related { grid-template-columns: 1fr 1fr 1fr; }
}
