/* hatena-ch.css served by PHP */

:root {
  --bg0: #f6efe4;
  --bg1: #fbf3e6;
  --bg2: #f2e3cf;

  --surface: rgba(255, 255, 255, 0.72);
  --surface2: rgba(255, 255, 255, 0.82);

  --card: rgba(255, 255, 255, 0.96);
  --card2: rgba(255, 255, 255, 0.92);

  --text: #1b1a17;
  --muted: #6b6258;

  --line: rgba(40, 30, 20, 0.12);

  --pill-bg: rgba(255, 255, 255, 0.78);
  --pill-line: rgba(120, 90, 60, 0.18);

  --shadow: 0 14px 40px rgba(40, 25, 10, 0.12);
  --shadow2: 0 10px 26px rgba(40, 25, 10, 0.10);

  --radius: 18px;

  --accent1: rgba(235, 140, 60, 0.55);
  --accent2: rgba(255, 210, 120, 0.45);
  --accent3: rgba(210, 110, 50, 0.28);

  /* 生成HTMLの装飾用 */
  --ink: rgba(35, 28, 22, 0.96);
  --soft: rgba(255, 255, 255, 0.62);
  --soft2: rgba(255, 255, 255, 0.78);
  --chip: rgba(255, 255, 255, 0.70);

  --mark: rgba(255, 210, 120, 0.55);
  --line2: rgba(120, 90, 60, 0.16);
  --brown: rgba(60, 45, 30, 0.85);
  --orange: rgba(235, 140, 60, 0.95);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background:
    radial-gradient(1000px 520px at 18% 0%, rgba(255, 210, 140, 0.55), transparent 60%),
    radial-gradient(900px 520px at 82% 0%, rgba(255, 160, 90, 0.30), transparent 62%),
    radial-gradient(900px 520px at 50% 120%, rgba(245, 210, 170, 0.35), transparent 60%),
    linear-gradient(140deg, var(--bg1), var(--bg0) 55%, var(--bg2));
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
.hc-muted { color: var(--muted); }

.hc-container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 14px 40px;
}

.hc-surface {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(120, 90, 60, 0.14);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hc-main {
  padding: 22px 18px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.70), rgba(255, 255, 255, 0.58));
}

@media (max-width: 640px) {
  .hc-main { padding: 16px 12px 8px; }
}

/* header */
.hc-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(255, 245, 232, 0.92), rgba(255, 245, 232, 0.72));
  border-bottom: 1px solid rgba(120, 90, 60, 0.14);
}

.hc-topbar-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--text);
}

.hc-logo {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.10) 45%),
    linear-gradient(135deg, rgba(255, 170, 90, 0.95), rgba(255, 220, 150, 0.80));
  box-shadow: 0 10px 18px rgba(40, 25, 10, 0.14);
}

.hc-nav { display: flex; gap: 10px; align-items: center; }
.hc-nav a {
  color: rgba(30, 25, 20, 0.92);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 999px;
}
.hc-nav a:hover {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(120, 90, 60, 0.12);
}

#hc-menu-toggle { display: none; }

.hc-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(120, 90, 60, 0.18);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hc-menu-btn span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  position: relative;
  border-radius: 99px;
}

.hc-menu-btn span::before,
.hc-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}
.hc-menu-btn span::before { top: -6px; }
.hc-menu-btn span::after  { top:  6px; }

.hc-mobile-nav { display: none; padding: 0 14px 14px; }
.hc-mobile-nav a {
  display: block;
  color: rgba(30, 25, 20, 0.92);
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(120, 90, 60, 0.14);
  background: rgba(255, 255, 255, 0.62);
  margin-top: 10px;
}

@media (max-width: 720px) {
  .hc-nav { display: none; }
  .hc-menu-btn { display: flex; }
  #hc-menu-toggle:checked ~ .hc-mobile-nav { display: block; }
}

/* headings / sections */
.hc-h1 { font-size: 24px; margin: 8px 0 8px; color: var(--text); }
.hc-sub { color: rgba(60, 45, 30, 0.72); font-size: 14px; margin: 0; }

.hc-page-title { margin: 10px 0 6px; }

.hc-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 14px;
}
.hc-section-title small { color: rgba(60, 45, 30, 0.70); }

.hc-section-head {
  font-weight: 800;
  color: rgba(30, 25, 20, 0.92);
}

.hc-block { margin-top: 18px; }

/* tabs */
.hc-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 2px; }

.hc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(120, 90, 60, 0.16);
  background: rgba(255, 255, 255, 0.60);
  color: rgba(30, 25, 20, 0.92);
  font-size: 13px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hc-tab:hover { background: rgba(255, 255, 255, 0.74); transform: translateY(-1px); }

.hc-tab.is-active {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(120, 90, 60, 0.22);
}

.hc-tab-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: rgba(120, 90, 60, 0.35);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.50);
}

/* breadcrumbs */
.hc-breadcrumbs {
  font-size: 13px;
  color: rgba(60, 45, 30, 0.70);
  margin: 0 0 10px;
}
.hc-breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }

/* grid / card */
.hc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .hc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .hc-grid { grid-template-columns: 1fr; } }

.hc-card {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hc-card:hover { transform: translateY(-1px); }

.hc-card-topline {
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 170, 90, 0.85), rgba(255, 220, 150, 0.80));
  opacity: 0.90;
}

.hc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.hc-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a2016;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* card thumbnail (eyecatch mini) */
.hc-card-thumb {
  display: block;
  margin: 10px 0 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(120, 90, 60, 0.16);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 22px rgba(40, 25, 10, 0.10);
}
.hc-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: translateZ(0);
}

.hc-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: rgba(45, 35, 25, 0.92);
}

.hc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  border: 1px solid var(--pill-line);
}

.hc-date { color: rgba(45, 35, 25, 0.65); font-size: 12px; }

.hc-title { font-size: 16px; line-height: 1.45; margin: 0 0 6px; }
.hc-title a { text-decoration: none; }
.hc-title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hc-excerpt { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

/* article wrap */
.hc-article-wrap {
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 10px;
  box-shadow: var(--shadow2);
}
@media (max-width: 640px) {
  .hc-article-wrap { padding: 14px 12px 8px; }
}

.hc-notice {
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 90, 60, 0.16);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(60, 45, 30, 0.82);
  font-size: 13px;
  line-height: 1.7;
}

.hc-post-title { margin: 2px 0 6px; }
.hc-post-date { color: rgba(60, 45, 30, 0.70); font-size: 13px; }

/* article body container */
.hc-article {
  margin-top: 12px;
  line-height: 1.9;
  color: var(--ink);
}
.hc-article a { text-decoration: underline; text-underline-offset: 3px; }
.hc-article h1 { font-size: 24px; margin: 10px 0 10px; color: rgba(30, 25, 20, 0.96); }
.hc-article h2 { font-size: 20px; margin: 18px 0 10px; color: rgba(30, 25, 20, 0.96); }
.hc-article h3 { font-size: 17px; margin: 14px 0 8px;  color: rgba(30, 25, 20, 0.96); }
.hc-article p  { margin: 10px 0; color: var(--ink); }
.hc-article ul, .hc-article ol { padding-left: 1.2em; margin: 10px 0 14px; }
.hc-article li { margin: 6px 0; }
.hc-article strong { color: rgba(30, 25, 20, 0.98); }

/* ✅ 生成HTML側に入っているアイキャッチ */
.hc-article .hc-eyecatch {
  margin: 14px 0 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(120, 90, 60, 0.16);
  box-shadow: 0 14px 34px rgba(40, 25, 10, 0.10);
  background: rgba(255, 255, 255, 0.45);
}
.hc-article .hc-eyecatch img {
  display: block;
  width: 100%;
  height: auto;
}

/* ✅ 強調（文字色やマーカー） */
.hc-article .hc-em {
  display: inline-block;
  padding: 0 0.18em;
  border-radius: 0.35em;
  background: linear-gradient(180deg, rgba(255, 230, 160, 0.00), rgba(255, 230, 160, 0.55));
  box-shadow: inset 0 -0.35em 0 rgba(255, 210, 120, 0.40);
}

/* ✅ 吹き出し（例: <div class="hc-bubble"><p>...） */
.hc-article .hc-bubble {
  position: relative;
  margin: 14px 0;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, var(--soft2), var(--soft));
  color: rgba(40, 30, 20, 0.92);
  box-shadow: 0 10px 22px rgba(40, 25, 10, 0.08);
}
.hc-article .hc-bubble::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: linear-gradient(180deg, var(--soft2), var(--soft));
  border-left: 1px solid var(--line2);
  border-bottom: 1px solid var(--line2);
  transform: rotate(45deg);
}
.hc-article .hc-bubble p { margin: 0; }

/* ✅ コールアウト（例: <div class="hc-callout hc-note"> ） */
.hc-article .hc-callout {
  margin: 14px 0;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(40, 25, 10, 0.08);
}
.hc-article .hc-callout p { margin: 0; }

.hc-article .hc-callout.hc-note {
  border-left: 6px solid rgba(235, 140, 60, 0.70);
}
.hc-article .hc-callout.hc-point {
  border-left: 6px solid rgba(255, 190, 100, 0.85);
}

/* ✅ ナビ/まとめボックス（例: <div class="hc-navbox"> ） */
.hc-article .hc-navbox {
  margin: 16px 0;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(120, 90, 60, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.66));
}
.hc-article .hc-navbox p { margin: 0; }

/* ✅ FAQ（例: <dl class="hc-faq"> ） */
.hc-article .hc-faq {
  margin: 14px 0;
  padding: 0;
}
.hc-article .hc-faq dt {
  font-weight: 800;
  margin-top: 10px;
  color: rgba(30, 25, 20, 0.96);
}
.hc-article .hc-faq dd {
  margin: 6px 0 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 90, 60, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: rgba(45, 35, 25, 0.92);
}

/* ✅ 目次（例: <h2 id="toc">目次</h2><ul>...） */
.hc-article #toc {
  scroll-margin-top: 90px;
}
.hc-article #toc + ul {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(120, 90, 60, 0.14);
  background: rgba(255, 255, 255, 0.62);
}
.hc-article #toc + ul li { margin: 6px 0; }
.hc-article #toc + ul a { text-decoration: none; }
.hc-article #toc + ul a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ✅ “ゆるい”アニメーション（生成HTML内の装飾に使う想定） */
@keyframes hc-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
@keyframes hc-pulse {
  0%   { box-shadow: 0 0 0 rgba(235, 140, 60, 0.0); }
  50%  { box-shadow: 0 0 0 10px rgba(235, 140, 60, 0.08); }
  100% { box-shadow: 0 0 0 rgba(235, 140, 60, 0.0); }
}

/* 生成HTML側で class を付ければ効く */
.hc-article .hc-anim-float { animation: hc-float 3.2s ease-in-out infinite; }
.hc-article .hc-anim-pulse { animation: hc-pulse 3.0s ease-in-out infinite; }

/* フッターが上に来るなどの崩れ対策（最低限） */
main { display: block; }

/* ============================================================
   footer (moved from footer.php inline styles)
   ============================================================ */

.hc-footer {
  margin-top: 28px;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(120, 90, 60, 0.16);
  color: rgba(60, 45, 30, 0.86);
}

.hc-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 820px) {
  .hc-footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.hc-footer-left {}

.hc-footer-brand {
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.hc-footer-brandlink {
  color: rgba(30, 25, 20, 0.96);
  text-decoration: none;
}
.hc-footer-brandlink:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hc-footer-desc {
  color: rgba(60, 45, 30, 0.72);
  font-size: 13px;
}

.hc-footer-sites {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* フッター上のpillは、少しだけ落ち着いた色に */
.hc-footer-pill {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(120, 90, 60, 0.16);
  color: rgba(45, 35, 25, 0.92);
}
.hc-footer-pill:hover {
  background: rgba(255, 255, 255, 0.82);
}

.hc-footer-right {
  text-align: right;
}

@media (max-width: 820px) {
  .hc-footer-right { text-align: left; }
}

.hc-footer-policy {
  font-size: 13px;
  color: rgba(60, 45, 30, 0.72);
  line-height: 1.7;
}

.hc-footer-copy {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(60, 45, 30, 0.62);
}

.hc-rss-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px;
  border-radius:999px;
  line-height:1;
}

.hc-rss-icon:hover{ 
  background: rgba(255,255,255,.10); 
}

.hc-rss-icon img{
  width:20px;
  height:20px;
  display:block;
  object-fit:contain;
}
