* { box-sizing: border-box; }
body {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  margin: 0;
  background: #fffaf3;
  color: #2f2a24;
  line-height: 1.8;
}
header {
  background: linear-gradient(120deg, #ff8a5c 0%, #ffb648 100%);
  color: #fff;
  padding: 24px 16px 32px;
}
.header-top {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.header-title {
  text-align: left;
  flex: 1 1 auto;
}
header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
header p {
  margin: 8px 0 0;
  color: #fff4e6;
  font-size: 1rem;
}
.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.nav-btn {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.nav-btn:hover { background: rgba(255,255,255,0.3); }
.nav-btn.active {
  background: #fff;
  color: #d9530f;
  border-color: #fff;
}
main {
  max-width: 980px;
  margin: -20px auto 0;
  padding: 0 16px 60px;
}
main.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: start;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 0;
  box-shadow: 0 4px 14px rgba(255, 140, 60, 0.12);
  border: 1px solid #ffe6cc;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 140, 60, 0.18);
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.card[data-tag="tag-vod"] .card-icon { background: #e3f0ff; }
.card[data-tag="tag-work"] .card-icon { background: #e8f7ec; }
.card h2 { margin-top: 0; font-size: 1.2rem; }
.card h2 a { color: #d9530f; text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card .date {
  display: inline-block;
  background: #fff1e0;
  color: #d9530f;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.card p { margin: 8px 0 0; color: #555; }
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  margin-left: 6px;
}
.tag-vod { background: #e3f0ff; color: #1c5fa8; }
.tag-work { background: #e8f7ec; color: #1f8a4c; }
article { max-width: 760px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 28px; box-shadow: 0 4px 14px rgba(255,140,60,0.1); }
.article-thumb { width: 100%; height: auto; border-radius: 12px; margin: 12px 0 20px; display: block; }
article h1 { font-size: 1.7rem; color: #d9530f; }
article h2 {
  font-size: 1.2rem;
  border-left: 5px solid #ff8a5c;
  padding-left: 10px;
  margin-top: 28px;
}
table { border-collapse: collapse; width: 100%; margin: 16px 0; }
th, td { border: 1px solid #f0d9c0; padding: 10px 12px; text-align: left; }
th { background: #fff1e0; color: #b8460b; }
tr:nth-child(even) td { background: #fffaf3; }
footer {
  text-align: center;
  color: #b08968;
  font-size: 0.82rem;
  padding: 28px 16px;
}
.back {
  display: inline-block;
  margin-top: 28px;
  color: #d9530f;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }
.disclosure {
  font-size: 0.82rem;
  color: #8a7a68;
  background: #fbf3e7;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 28px 0;
  border: 1px dashed #f0d9c0;
}
.note {
  background: #fffaf3;
  border-left: 4px solid #ffd8a8;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 16px 0;
}
.cta {
  background: #fff4e6;
  border: 1px solid #ffd8a8;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  text-align: center;
}
.cta .pr {
  display: inline-block;
  background: #d9530f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}
.cta a {
  font-size: 1.05rem;
  font-weight: 700;
  color: #d9530f;
  text-decoration: none;
}
.cta a:hover { text-decoration: underline; }

/* ---- 記事内の図解（画像） ---- */
.art-fig {
  margin: 24px 0 26px;
}
.art-fig img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(255, 140, 60, 0.10);
}
.art-fig figcaption {
  font-size: 0.84rem;
  color: #8a7a68;
  line-height: 1.7;
  margin-top: 8px;
}

/* ---- 記事内の図解（HTML/CSS） ---- */
.fig-compare,
.fig-cards {
  display: grid;
  gap: 14px;
  margin: 20px 0 24px;
}
.fig-compare { grid-template-columns: 1fr 1fr; }
.fig-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fig-compare > div,
.fig-cards > div {
  background: #fffaf3;
  border: 1px solid #f0d9c0;
  border-radius: 12px;
  padding: 14px 18px 16px;
}
.fig-compare h4,
.fig-cards h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #b8460b;
  border-bottom: 2px solid #ffd8a8;
  padding-bottom: 6px;
}
.fig-compare ul {
  margin: 0;
  padding-left: 20px;
}
.fig-compare li { margin: 6px 0; }
.fig-cards p {
  margin: 0;
  font-size: 0.95rem;
}
.fig-check {
  list-style: none;
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: #fffaf3;
  border: 1px solid #f0d9c0;
  border-radius: 12px;
}
.fig-check li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
}
.fig-check li::before {
  content: "\2713";
  position: absolute;
  left: 4px;
  top: 0;
  color: #1f8a4c;
  font-weight: 700;
}
@media (max-width: 640px) {
  .fig-compare { grid-template-columns: 1fr; }
}
