:root {
  color-scheme: light;
  --bg: #f8f5f0;
  --bg-accent: #f0e7da;
  --ink: #1b1a19;
  --muted: #6c625c;
  --accent: #c05a2a;
  --accent-soft: #f0d9c4;
  --card: #fffdfa;
  --border: #e5dbcf;
  --shadow: 0 18px 40px rgba(27, 26, 25, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #fff 0, transparent 45%),
    radial-gradient(circle at 90% 0%, #fff1e4 0, transparent 40%),
    linear-gradient(160deg, var(--bg), var(--bg-accent));
  line-height: 1.75;
}

h1,
h2,
h3 {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  margin: 0 0 12px;
}

h2 {
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 36px 0 12px;
}

h3 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding: 0 0 0 20px;
}

li {
  margin-bottom: 8px;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 80px;
}

.site-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 120px;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(192, 90, 42, 0.18),
    transparent
  );
  transform: rotate(-2deg);
}

.site-eyebrow {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 12px;
  text-decoration: none;
  transition: 0.2s ease;
}

.site-eyebrow:hover {
  opacity: 0.7;
}

.site-title {
  position: relative;
  z-index: 1;
}

.site-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.content {
  margin-top: 32px;
}

.ad-slot {
  background: #fff;
  border: 1px dashed var(--accent);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  position: relative;
}

.ad-label {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.article {
  background: var(--card);
  margin-top: 28px;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 16px 0 12px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
}

.note {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 12px;
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 8px 16px;
  margin: 16px 0 0;
  background: #fff7f0;
  border-radius: 12px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 36px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  padding: 0;
  margin: 0 0 12px;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 600px) {
  .page {
    padding: 40px 16px 60px;
  }

  .site-header,
  .article {
    padding: 24px;
  }
}

/* 追加：コンテンツ内画像のスタイル */
.content-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  margin: 24px 0;
}

/* 追加：メインビジュアル用のコンテナ */
.main-visual-container {
  margin-bottom: 24px;
}

/* 既存のad-slotを広告表示に最適化（前回の300px制御用） */
.amazon-fixed-link a:first-of-type img {
  width: 300px !important;
  height: auto !important;
  display: block;
  margin: 10px auto;
}

/* 3機種横並び用のスタイル */
.machine-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr); /* 強制的に3カラム */
  margin: 20px 0 40px;
}

.machine-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: transform 0.3s ease;
}

.machine-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.machine-card h4 {
  font-size: 0.95rem;
  margin: 12px 0 8px;
  line-height: 1.4;
  color: var(--ink);
}

.machine-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.image-placeholder-square {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形に統一 */
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
}

.image-placeholder-square img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠いっぱいに収める */
}

/* スマホでは2列、または1列にする調整 */
@media (max-width: 768px) {
  .machine-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
/* RECOMMENDエリア全体の装飾 */
.recommend-area {
  background: var(--card);
  border: 2px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 40px 24px 24px;
  margin: 40px 0;
  position: relative;
  box-shadow: var(--shadow);
}

.recommend-container {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr; /* 左右2カラム */
}

.recommend-block h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.recommend-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* 販売店リンク集 */
.shop-list {
  list-style: none;
  padding: 0;
}

.shop-list li {
  margin-bottom: 10px;
}

.shop-list a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  transition: 0.2s;
}

.shop-list a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.shop-list small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}

/* 商品リンクタイル */
.item-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-link {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  transition: 0.3s;
}

.item-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.item-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .recommend-container {
    grid-template-columns: 1fr;
  }
}

/* ページTOPへボタン */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  box-shadow: 0 4px 12px rgba(192, 90, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #a94c1b;
  box-shadow: 0 6px 16px rgba(192, 90, 42, 0.4);
}
