/* ツヤミチ - 共通スタイル
   白 × ラベンダーグレー（上品・落ち着いた） / note風サンス / 落ち着いた余白と罫線 */

:root {
  --bg: #F7F6FA;
  --surface: #FFFFFF;
  --primary: #6F6890;
  --primary-dark: #4E4870;
  --accent: #A79FD0;
  --accent-soft: #ECE9F5;
  --text: #2E2C38;
  --muted: #7A7688;
  --border: #DDD9E8;
  --warn-bg: #F3F0FA;
  --warn-border: #C9C2E2;
  --disclosure-bg: #F1EFF7;
  --grad-primary: linear-gradient(135deg, #453F66 0%, #6F6890 55%, #8B84B3 100%);
  --shadow-sm: 0 1px 4px rgba(78, 72, 112, 0.07);
  --shadow-md: 0 8px 24px rgba(78, 72, 112, 0.12);
  --radius: 10px;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

::selection {
  background: rgba(167, 159, 208, 0.35);
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(167, 159, 208, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- ヘッダー（ラベンダーグレーの帯） ---------- */

.site-header {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 34px 0 24px;
  border-bottom: 3px solid var(--accent);
}

.site-header .site-name {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.site-header .site-name a {
  color: #ffffff;
  text-decoration: none;
}

.site-header .tagline {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

/* ガイドページ用ロゴ */
.site-header .site-logo {
  display: inline-block;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-bottom: 6px;
}

.site-header .site-logo:hover {
  text-decoration: none;
  color: #DCD7F2;
}

.site-nav {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 14px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  padding: 4px 13px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: rgba(167, 159, 208, 0.18);
  text-decoration: none;
}

/* ---------- メイン ---------- */

main {
  padding: 26px 0 52px;
}

main h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 30px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

main h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 2px;
  background: var(--accent);
}

main h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 44px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

main h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.55;
  margin: 26px 0 8px;
}

main p {
  margin: 0 0 14px;
}

main ul,
main ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

main li {
  margin-bottom: 6px;
}

main li::marker {
  color: var(--primary);
  font-weight: 700;
}

/* ---------- 開示・注意ボックス ---------- */

.disclosure {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--disclosure-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.disclosure::before {
  content: "i";
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--muted);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.86rem;
  margin-bottom: 22px;
}

.warn::before {
  content: "!";
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* ---------- 記事ヘッダー画像 ---------- */

.article-hero {
  margin: 6px 0 24px;
}

.article-hero img {
  display: block;
  width: 100%;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}

/* ---------- 商品カード ---------- */

.card,
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before,
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card:hover,
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #C9C2E2;
}

.card h3,
.service-card h3 {
  margin: 2px 0 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card .service-meta,
.service-card .service-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.87rem;
}

.card .service-tags,
.service-card .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.card .service-tags li,
.service-card .service-tags li {
  margin: 0;
  background: var(--accent-soft);
  color: var(--primary-dark);
  border: 1px solid rgba(111, 104, 144, 0.2);
  border-radius: 4px;
  padding: 2px 11px;
  font-size: 0.79rem;
  letter-spacing: 0.03em;
}

.card p,
.service-card p {
  margin-bottom: 12px;
}

.card p:last-child,
.service-card p:last-child {
  margin-bottom: 0;
}

/* ---------- アフィリエイトボタン ---------- */

.aff-btn {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 13px 36px;
  line-height: 1.4;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.aff-btn::after {
  content: " →";
  color: #DCD7F2;
}

.aff-btn:hover {
  background: var(--primary-dark);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

/* ---------- PRボックス（記事末尾など） ---------- */

.pr-box {
  background: #FBFAFD;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 30px 0;
}

.pr-box .pr-label {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-dark);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 1px 11px;
  margin-bottom: 10px;
}

.pr-box h3 {
  margin-top: 0;
}

.pr-box p:last-child {
  margin-bottom: 0;
}

/* ---------- ガイド記事一覧 ---------- */

.guide-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.guide-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.guide-list li:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.guide-list a {
  position: relative;
  display: block;
  padding: 15px 42px 15px 18px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.guide-list a::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.guide-list a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.guide-list .guide-desc {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- 表（汎用） ---------- */

main table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

main table th,
main table td {
  border: 1px solid var(--border);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
}

main table thead th {
  background: var(--accent-soft);
  color: var(--primary-dark);
  letter-spacing: 0.04em;
}

/* ---------- 比較表 ---------- */

.compare-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.compare-wrap .compare {
  margin-bottom: 0;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.92rem;
  min-width: 560px;
}

.compare th,
.compare td {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  background: var(--primary);
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border-bottom: 2px solid var(--accent);
}

.compare tbody tr:nth-child(even) {
  background: #FAF9FC;
}

.compare tbody th {
  font-weight: 700;
  white-space: nowrap;
  color: var(--primary-dark);
}

/* ---------- 悩み導線 ---------- */

.trouble-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.trouble-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trouble-list li:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.trouble-list .trouble-q {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  margin: 0 0 4px;
}

.trouble-list p {
  margin: 0;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--primary-dark);
  border-top: 3px solid var(--accent);
  color: #CFC9E4;
  padding: 30px 0 36px;
  font-size: 0.87rem;
  margin-top: 12px;
}

.site-footer .footer-name {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.02rem;
  color: #ffffff;
  margin: 0 0 8px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: #DCD7F2;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.site-footer .copyright {
  margin-top: 16px;
  color: #9B95B5;
}

/* ---------- 初心者ガイドへの誘導ボックス ---------- */

.cta-box {
  background: var(--grad-primary);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--accent);
  padding: 24px 22px;
  margin: 26px 0 8px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.cta-box h2 {
  color: #ffffff;
  margin-top: 0;
  border-left-color: var(--accent);
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-box ol {
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 18px;
}

.cta-box li::marker {
  color: #DCD7F2;
}

.cta-btn {
  display: inline-block;
  background: #ffffff;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 6px;
  padding: 12px 30px;
  transition: background 0.2s ease;
}

.cta-btn:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------- タブレット以上 ---------- */

@media (min-width: 640px) {
  body {
    font-size: 17px;
  }

  .container {
    padding: 0 24px;
  }

  .site-header {
    padding: 44px 0 28px;
  }

  .site-header .site-name {
    font-size: 2.2rem;
  }

  main h1 {
    font-size: 1.95rem;
  }

  main h2 {
    font-size: 1.5rem;
  }

  .card,
  .service-card {
    padding: 24px 26px;
  }

  .aff-btn {
    padding: 14px 44px;
  }
}
