:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --btn-bg: #27ae60;
    --btn-hover: #219653;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
}
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.0rem 1rem;
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: clamp(16px, 8.00px + 1.56vw, 26px);
    word-break: break-all;
}
header p {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}
.container {
    max-width: 1000px;
    margin: 1rem auto;
    padding: 0 0.75rem;
    box-sizing: border-box;
}
.notice-box {
    background-color: #e8f4fd;
    border-left: 4px solid var(--accent-color);
    padding: 0.85rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}
.notice-text {
    font-size: 0.8rem;
    margin: 0;
}
.link-button {
    display: inline-block;
    background-color: var(--btn-bg);
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.link-button:hover {
    background-color: var(--btn-hover);
    transform: translateY(-1px);
}
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.card {
    background: var(--card-bg);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1rem;
    border-top: 4px solid var(--primary-color);
    box-sizing: border-box;
    overflow: hidden;
}
.card.seo { border-top-color: #e67e22; }
.card.table-card { border-top-color: #9b59b6; overflow-x: auto; }
.card.text-card { border-top-color: #1abc9c; } 
.card.list-card { border-top-color: #f1c40f; } 
.card h2 {
    margin-top: 0;
    font-size: 1.05rem;
    color: #222;
}
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}
.tag-badge {
    background: #eee;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    display: inline-block;
    white-space: nowrap;
}
pre {
    background: #272822;
    color: #f8f8f2;
    padding: 0.5rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.75rem;
    margin: 1rem 0 0;
}
.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
    table-layout: fixed;
    word-break: break-all;
}
.preview-table th, .preview-table td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
}
.preview-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}
footer {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    color: #777;
}
html {
  scroll-behavior: smooth;
}
.pagetop {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 99;
}
.pagetop.is-show {
  opacity: 1;
  visibility: visible;
}
.lemon { margin-top: 15px; }
@media screen and (min-width: 1024px) {
    header p { font-size: 1rem; }
    .container { margin: 2.5rem auto; padding: 0 1rem; }
    .notice-box { padding: 1.5rem; flex-direction: row; justify-content: space-between; align-items: center; }
    .notice-text { font-size: 0.95rem; }
    .link-button { padding: 0.75rem 1.5rem; font-size: 1rem; width: auto; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
    .card { padding: 1.5rem; }
    .card h2 { font-size: 1.3rem; }
    pre { font-size: 0.85rem; padding: 1rem; }
    footer { margin-top: 4rem; padding: 2rem 1rem; font-size: 0.85rem; }
}
@media (min-width: 835px) and (max-width: 1023px) {
    header p { font-size: 0.85rem; }
    .notice-box { padding: 1.2rem; flex-direction: row; justify-content: space-between; align-items: center; }
    .notice-text { font-size: 0.85rem; }
    .link-button { font-size: 0.9rem; padding: 0.6rem 1.2rem; width: auto; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card { padding: 1.25rem; }
    .card h2 { font-size: 1.15rem; }
    pre { font-size: 0.8rem; padding: 0.75rem; }
}
@media (min-width: 744px) and (max-width: 834px) {
    header p { font-size: 0.85rem; }
    .notice-box { padding: 1.2rem; flex-direction: row; justify-content: space-between; align-items: center; }
    .notice-text { font-size: 0.85rem; }
    .link-button { font-size: 0.9rem; padding: 0.6rem 1.2rem; width: auto; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card { padding: 1.25rem; }
    .card h2 { font-size: 1.15rem; }
    pre { font-size: 0.8rem; padding: 0.75rem; }
}
@media (min-width: 541px) and (max-width: 743px) {
    header p { font-size: 0.85rem; }
    .notice-box { padding: 1.2rem; flex-direction: row; justify-content: space-between; align-items: center; }
    .notice-text { font-size: 0.85rem; }
    .link-button { font-size: 0.9rem; padding: 0.6rem 1.2rem; width: auto; }
    .card h2 { font-size: 1.15rem; }
    pre { font-size: 0.8rem; padding: 0.75rem; }
}
@media (min-width: 441px) and (max-width: 540px) {
    header p { font-size: 0.85rem; }
    .notice-box { padding: 1.2rem; }
    .notice-text { font-size: 0.85rem; }
    .link-button { font-size: 0.9rem; padding: 0.6rem 1.2rem; }
    .card h2 { font-size: 1.15rem; }
    pre { font-size: 0.8rem; padding: 0.75rem; }
}
@media (min-width: 391px) and (max-width: 440px) {
    header p { font-size: 0.85rem; }
    .notice-box { padding: 1.2rem; }
    .notice-text { font-size: 0.85rem; }
    .link-button { font-size: 0.9rem; padding: 0.6rem 1.2rem; }
    .card h2 { font-size: 1.15rem; }
    pre { font-size: 0.8rem; padding: 0.75rem; }
}
@media (min-width: 381px) and (max-width: 390px) {
    header p { font-size: 0.85rem; }
    .notice-box { padding: 1.2rem; }
    .notice-text { font-size: 0.85rem; }
    .link-button { font-size: 0.9rem; padding: 0.6rem 1.2rem; }
    .card h2 { font-size: 1.15rem; }
    pre { font-size: 0.8rem; padding: 0.75rem; }
}
@media (min-width: 375px) and (max-width: 380px) {
}
@media (max-width: 374px) {
    header h1 { font-size: 1.15rem; }
    .card h2 { font-size: 1rem; }
}
