/* =========================
   基本カラー変数
   ========================= */
:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
}

/* =========================
   下部説明エリア
   ========================= */
.section-easy {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  padding: 16px;
  margin: 22px 0;
}

.section-easy h2 {
  margin: 0 0 12px;
  padding: 8px 12px;
  font: 700 18px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: #f3f4f6;
  border-radius: 6px;
}

.section-easy p {
  margin: 8px 0;
  padding: 0;
  background: transparent;
  border: none;
}

.section-easy h2+* {
  margin-top: 6px;
}

.section-easy ul {
  margin: 6px 0 0 1.2em;
  padding: 0;
}

.section-easy li {
  margin: 4px 0;
}

/* =========================
   表
   ========================= */
.table-easy {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 0;
}

.table-easy th,
.table-easy td {
  border: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
}

.table-easy th {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

/* =========================
   商品スペック
   ========================= */
ul.details {
  list-style: none;
  margin: 14px 0 20px;
  padding: 20px 24px;
  border: 1px solid #514e46;
  border-radius: 10px;
  background: #fefdfd;
}

ul.details li {
  margin: 8px 0;
  line-height: 1.6;
}

.details strong {
  color: #b45309;
  font-weight: 700;
}

.point {
  color: #92400e;
  font-weight: 700;
}

.highlight {
  background: #fbbf24;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.details .hint,
.details.hint {
  color: #92400e;
  font-size: .9rem;
  opacity: 0.85;
}

/* =========================
   色見本カード（.snet）
   ========================= */
ul.snet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0 24px;
  margin: 20px auto;
  max-width: 980px;
  /* ← ここで全体の幅を広げる */
  box-sizing: border-box;
  text-align: center;
  /* 画像・テキスト・品番を中央寄せ */
}

ul.snet li {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 8px 14px;
  transition: 0.2s;
}

ul.snet li:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* 画像：比率はそのまま、角丸12px、自然な余白 */
ul.snet li img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 4px auto 6px;
  padding: 2px 4px;
  background: #fff;
  border-radius: 12px;
  box-shadow: none;
}

/* テキスト部分 */
.snet .card-name {
  margin-top: 4px;
  font-size: .9rem;
  line-height: 1.4;
  word-break: break-word;
}

.snet li a::after {
  content: attr(data-name) " " attr(data-code);
  display: block;
  font-size: .95rem;
  line-height: 1.4;
  margin-top: 4px;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
}

/* スマホ：2列表示＋余白調整 */
@media (max-width:640px) {
  ul.snet {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 12px;
  }
}

/* =========================
   ボックス・ノート
   ========================= */
.box-note {
  background: #fffef5;
  border: 1px solid #f5dca2;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
  font-weight: 500;
}

/* =========================
   見出し
   ========================= */
h1 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0;
}

h2 {
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#b>h2,
#ms>h2,
#m>h2,
#g>h2,
#n>h2 {
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   FAQ
   ========================= */
#faq dl {
  margin: 0;
}

#faq dt {
  margin: 10px 0 4px;
  font-weight: 700;
}

#faq dd {
  margin: 0 0 12px;
}

#faq a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width:640px) {
  #faq dt {
    margin: 8px 0 4px;
  }

  #faq dd {
    margin: 0 0 10px;
  }
}

/* =========================
   共通
   ========================= */
body {
  font-family: system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

/* 共通の最大幅を980pxに統一 */
.wrap,
ul.snet {
  max-width: 980px;
  margin: 0 auto;
  box-sizing: border-box;
}