:root {
  --text-color: #333;
  --bg-color: #fff;
  --accent-color: #0066cc;
  --meta-color: #666;
  --border-color: #eee;
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", sans-serif;
}

body {
  font-family: var(--font-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* メインコンテンツを伸縮させ、フッターを最下部に固定する */
body > .container {
  flex: 1 0 auto;
}

/* Header */
.site-header {
  padding: 40px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  text-decoration: none;
}

/* Typography */
h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  margin-bottom: 1em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 1.5em;
}

time {
  display: block;
  color: var(--meta-color);
  font-size: 0.9rem;
  margin-top: 0.2em;
}

/* Post Meta (Date, Category, PR) */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: var(--meta-color);
}

.post-meta time {
  margin-top: 0;
}

.category-tag {
  background-color: #f0f0f0;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-color);
  font-size: 0.85rem;
  text-decoration: none;
  margin-right: 5px;
}

.category-tag:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}

.pr-label {
  font-size: 0.8rem;
  color: #999;
  border: 1px solid #ddd;
  padding: 2px 6px;
  border-radius: 3px;
}

/* Content Elements */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  margin-top: 60px;
  padding: 40px 0 20px;
  background-color: #f9f9f9;
  border-top: 4px solid var(--accent-color);
  text-align: center;
  color: var(--meta-color);
  font-size: 0.9rem;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--meta-color);
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

/* Author Profile */
.author-profile {
  margin-top: 60px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.author-profile h3 {
  margin-top: 0;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.author-name {
  font-weight: bold;
  margin-bottom: 5px;
}

/* Share Buttons */
.share-buttons {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 12px;
  align-items: center;
}

.share-label {
  font-weight: bold;
  font-size: 0.9rem;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff !important;
  transition:
    opacity 0.2s,
    transform 0.2s;
  line-height: 1;
}

.share-btn svg {
  fill: currentColor;
  margin-right: 6px;
}

.share-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  text-decoration: none;
}

.share-x {
  background-color: #000;
}
.share-fb {
  background-color: #1877f2;
}
.share-hatebu {
  background-color: #00a4de;
}

.hatebu-icon {
  font-family: Verdana, sans-serif;
  font-weight: bold;
  margin-right: 6px;
  font-size: 1rem;
}

/* Post Navigation */
.post-nav {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.post-nav a {
  max-width: 45%;
  font-size: 0.95rem;
}

/* Post List */
.post-list li {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a {
  display: block;
  font-weight: bold;
  font-size: 1.1rem;
}

.post-summary {
  font-size: 0.9rem;
  color: var(--meta-color);
  margin: 0.5em 0 0;
}

/* Product Shortcode */
.product-card {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 2em 0;
  gap: 20px;
  align-items: center;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.product-image-wrapper {
  flex: 0 0 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 4px;
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.product-price {
  color: #b12704;
  font-weight: bold;
  margin-bottom: 0.8em;
}

.product-btn {
  align-self: flex-start;
  background-color: #ff9900;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  transition: opacity 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-btn:hover {
  opacity: 0.8;
  text-decoration: none;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .product-card {
    flex-direction: column;
    text-align: center;
  }

  .product-details {
    align-items: center;
    width: 100%;
  }

  .product-btn {
    width: 100%;
    box-sizing: border-box;
  }
}
