/* ==========================================================
   うるつやラボ 共通スタイル
   - CDN依存なし / システムフォント / モバイルファースト
   - 配色を変えたいときは :root の変数だけ書き換えればOK
   ========================================================== */
:root {
  --c-bg: #fbf8f6;            /* ページ背景(やわらかい白) */
  --c-surface: #ffffff;       /* カード等の背景 */
  --c-text: #3c3633;          /* 本文テキスト */
  --c-text-sub: #8d8079;      /* 補足テキスト */
  --c-accent: #c9897b;        /* アクセント(ピンクベージュ) */
  --c-accent-dark: #a96a5c;   /* アクセント濃(リンク等) */
  --c-accent-soft: #f6e9e5;   /* アクセント淡(帯・見出し背景) */
  --c-green: #7ba98a;         /* サブアクセント(くすみグリーン) */
  --c-green-soft: #eaf2ed;    /* グリーン淡 */
  --c-border: #ece1db;        /* 罫線 */
  --c-cta: #bf3130;           /* CTAボタン(楽天系の赤) */
  --c-cta-dark: #a02422;      /* CTAボタン hover */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 16px;
  line-height: 1.9;
}

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

a {
  color: var(--c-accent-dark);
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 16px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
}

.site-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--c-accent-dark);
}

.site-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.82rem;
}

.site-nav a {
  color: var(--c-text-sub);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

/* ---------- PR表記バンド(ステマ規制対応・全ページ共通) ---------- */
.pr-band {
  background: var(--c-accent-soft);
  color: #8a6257;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 7px 12px;
}

/* ---------- 共通レイアウト ---------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-title {
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-accent);
  margin: 10px auto 0;
}

/* ---------- トップ: ヒーロー ---------- */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
}

.hero h1 {
  font-size: 1.4rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.hero p {
  color: var(--c-text-sub);
  font-size: 0.92rem;
  max-width: 560px;
  margin: 0 auto 8px;
}

@media (min-width: 768px) {
  .hero {
    padding: 72px 20px 56px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* ---------- トップ: 記事カード ---------- */
.latest {
  padding: 16px 0 56px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}

a.card:hover {
  box-shadow: 0 6px 20px rgba(180, 140, 125, 0.2);
  transform: translateY(-2px);
}

.card-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
}

.card-thumb--pink {
  background: linear-gradient(135deg, #e7b9ad, #c9897b);
}

.card-thumb--green {
  background: linear-gradient(135deg, #a9c9b4, #7ba98a);
}

.card-thumb--beige {
  background: linear-gradient(135deg, #d9cec8, #b3a49b);
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-cat {
  align-self: flex-start;
  font-size: 0.7rem;
  background: var(--c-green-soft);
  color: #4f7a5f;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.card-title {
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 700;
}

.card-excerpt {
  font-size: 0.82rem;
  color: var(--c-text-sub);
  line-height: 1.7;
}

.card-date {
  font-size: 0.75rem;
  color: var(--c-text-sub);
  margin-top: auto;
}

.card--soon {
  opacity: 0.6;
}

/* ---------- トップ: 3つの約束 ---------- */
.policy {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 48px 0 52px;
}

.policy-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 30px;
}

@media (min-width: 768px) {
  .policy-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.policy-list li {
  text-align: center;
  padding: 0 8px;
}

.policy-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.policy-list strong {
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.policy-list p {
  font-size: 0.85rem;
  color: var(--c-text-sub);
  text-align: left;
}

/* ---------- 記事ページ ---------- */
.article,
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 16px 64px;
}

.breadcrumb {
  font-size: 0.75rem;
  color: var(--c-text-sub);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: inherit;
}

.article h1,
.page h1 {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .article h1,
  .page h1 {
    font-size: 1.6rem;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--c-text-sub);
  margin-bottom: 8px;
}

.page-lead {
  color: var(--c-text-sub);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.article h2,
.page h2 {
  font-size: 1.12rem;
  line-height: 1.5;
  margin: 48px 0 20px;
  padding: 10px 14px;
  background: var(--c-accent-soft);
  border-left: 5px solid var(--c-accent);
  border-radius: 4px;
}

.article h3,
.page h3 {
  font-size: 1rem;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--c-accent-soft);
}

.article p,
.page p {
  margin-bottom: 1.2em;
}

.article ul,
.article ol,
.page ul,
.page ol {
  margin: 0 0 1.4em 1.4em;
}

.article li,
.page li {
  margin-bottom: 10px;
}

/* チェックリスト */
.check-list {
  list-style: none;
  margin: 0 0 1.4em 0 !important;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--c-green);
  font-weight: 700;
}

/* 目次 */
.toc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 18px 22px 14px;
  margin: 28px 0 8px;
  font-size: 0.9rem;
}

.toc-title {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--c-text-sub);
  margin-bottom: 8px;
}

.toc ol {
  margin: 0 0 0 1.3em;
}

.toc li {
  margin-bottom: 4px;
}

.toc a {
  color: var(--c-accent-dark);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* スペック表・情報テーブル */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  font-size: 0.88rem;
  margin: 0 0 1.4em;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--c-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  background: var(--c-accent-soft);
  font-weight: 600;
  width: 34%;
}

/* 書き込み用プレースホルダーボックス */
.memo-box {
  border: 2px dashed var(--c-accent);
  background: #fdf6ee;
  border-radius: 10px;
  padding: 18px;
  margin: 0 0 1.6em;
  font-size: 0.88rem;
}

.memo-box-title {
  font-weight: 700;
  color: var(--c-accent-dark);
  margin-bottom: 8px;
}

.memo-box p {
  margin-bottom: 0.8em;
}

.memo-box ul {
  margin: 0 0 0.9em 1.3em;
}

.memo-box li {
  margin-bottom: 4px;
}

.memo-box .example {
  background: var(--c-surface);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: var(--c-text-sub);
}

/* CTA(アフィリエイトボタン) */
.cta-box {
  text-align: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 26px 18px 18px;
  margin: 36px 0;
}

.cta-lead {
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.btn-rakuten {
  display: block;
  max-width: 340px;
  margin: 0 auto;
  background: var(--c-cta);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-align: center;
  padding: 15px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(191, 49, 48, 0.3);
  transition: background 0.2s;
}

.btn-rakuten:hover {
  background: var(--c-cta-dark);
}

.cta-note {
  font-size: 0.72rem;
  color: var(--c-text-sub);
  margin-top: 10px;
  margin-bottom: 0 !important;
}

/* ---------- 楽天公式商品カード(画像とテキスト形式) ----------
   楽天アフィリエイト発行のHTMLソースは規約対応のため一切改変しない。
   width:504px固定のままだとスマホではみ出すので、
   このラッパークラスからCSSの上書きだけでレスポンシブ化する。 */
.rakuten-official-card {
  margin: 28px 0 8px;
}

/* 小見出し(記事デザインに馴染ませる) */
.rakuten-official-card .rakuten-official-heading {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--c-text-sub);
  margin-bottom: 10px;
}

/* カード全体を中央寄せ・可変幅に */
.rakuten-official-card table {
  max-width: 100%;
}

.rakuten-official-card > table {
  margin: 0 auto;
}

/* 504px固定の外枠を可変に(外部CSSの!importantはインラインstyleに勝つ) */
.rakuten-official-card div[style*="width:504px"] {
  width: auto !important;
  max-width: 504px;
}

/* 商品画像・楽天ロゴを可変に */
.rakuten-official-card img {
  max-width: 100%;
  height: auto;
}

/* 「楽天で購入」ボタン行(float)のクリアフィックス */
.rakuten-official-card div[style*="margin:10px"]::after {
  content: "";
  display: block;
  clear: both;
}

/* スマホ幅: テーブルレイアウトを解除して画像→テキストの縦積みにする */
@media (max-width: 600px) {
  .rakuten-official-card table,
  .rakuten-official-card tbody,
  .rakuten-official-card tr,
  .rakuten-official-card td {
    display: block !important;
    width: auto !important;
  }
}

/* 注記 */
.note {
  font-size: 0.78rem;
  color: var(--c-text-sub);
}

.back-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
}

/* ---------- フッター ---------- */
.site-footer {
  background: #f1e8e3;
  border-top: 1px solid var(--c-border);
  text-align: center;
  padding: 32px 16px 28px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.footer-nav a {
  color: var(--c-text-sub);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--c-accent-dark);
  text-decoration: underline;
}

.footer-note {
  font-size: 0.72rem;
  color: #8a6257;
  margin-bottom: 6px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--c-text-sub);
}
