/* ===================================================
   style.css — おやスマホ 共通スタイル
   Base: rakuten-mobile.html (new template)
   Merged: all 9 HTML files
   =================================================== */

/* ===== CSS Variables ===== */
:root {
  --primary: #f57c2e;
  --primary-dark: #e06820;
  --primary-light: #fff3e8;
  --accent: #ffc97a;
  --text: #2b2115;
  --text-sub: #6b6258;
  --bg: #fffaf4;
  --bg-card: #ffffff;
  --border: #f2e2cf;
  --shadow: 0 2px 10px rgba(245, 124, 46, 0.08);
  --shadow-card: 0 2px 12px rgba(43, 33, 21, 0.06);
  --shadow-hover: 0 10px 28px rgba(245, 124, 46, 0.18);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ===== Base ===== */
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.95;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover { opacity: 0.75; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header (new-template) ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.01em;
}

.site-logo .icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--primary-dark);
}

/* ===== Header (older-style — tape C) ===== */
/* These target the older files that use raw <header> tags */
header {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

header .inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

header .site-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

header nav a {
  font-size: 14px;
  color: var(--text-sub);
  text-decoration: none;
  margin-left: 16px;
}

header nav a:hover { color: var(--primary); }

nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  font-size: 0.82rem;
  color: var(--text-sub);
  text-decoration: none;
  font-weight: 700;
}

nav a:hover { color: var(--primary); }

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-sub);
  font-weight: 500;
}

.breadcrumb a:hover { color: var(--primary-dark); }

.breadcrumb .sep {
  color: var(--primary);
  font-weight: 700;
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 700;
}

/* ===== Article Hero (new-template) ===== */
.article-hero {
  background: #ffffff;
  padding: 36px 20px 32px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
}

.article-hero::before,
.article-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--primary-light);
  z-index: 0;
}

.article-hero::before {
  width: 240px;
  height: 240px;
  top: -100px;
  left: -80px;
  opacity: 0.5;
}

.article-hero::after {
  width: 260px;
  height: 260px;
  bottom: -140px;
  right: -80px;
  opacity: 0.4;
}

.article-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  z-index: 1;
}

.category-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.article-hero .category-badge {
  border-radius: 0;
}

.article-hero h1 {
  font-size: clamp(22px, 3.6vw, 30px);
  font-weight: 900;
  line-height: 1.45;
  color: #1a1511;
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}

.article-hero h1 .accent {
  color: var(--primary-dark);
}

.article-hero .hero-sub {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.75;
  max-width: 640px;
  margin: 8px 0 0;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-sub);
}

.article-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.author-avatar svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-author strong {
  font-weight: 700;
  color: var(--text);
}

.article-date {
  font-size: 12.5px;
}

.ad-disclosure {
  margin-left: auto;
  font-size: 11px;
  color: #a89c8b;
  letter-spacing: 0.04em;
}

/* Hero meta (older-style) */
.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-sub);
  flex-wrap: wrap;
}

/* Article header (intermediate-style) */
.article-header { margin-bottom: 32px; }

.article-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* ===== Article Meta Bar ===== */
.article-meta-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
  font-size: 0.82rem;
  color: #6b6258;
}

.article-meta-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== Affiliate Note ===== */
.article-affiliate-note {
  font-size: 0.78em;
  color: #999;
  border: 1px solid #eee;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: block;
}

/* Disclosure (intermediate-style) */
.disclosure {
  background: #F5F5F5;
  border-left: 4px solid var(--border);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 32px;
  border-radius: 0 6px 6px 0;
}

/* ===== Article Content ===== */
.article-content {
  padding: 64px 0 96px;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-content > .container > .article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body p {
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 22px;
}

.article-body p strong {
  font-weight: 700;
  background: linear-gradient(transparent 65%, var(--primary-light) 65%);
  padding: 0 2px;
}

/* Older-style body text */
.article-body h2 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  border-left: 5px solid var(--primary);
  padding: 10px 16px;
  background: var(--primary-light);
  margin: 44px 0 20px;
  line-height: 1.5;
}

.article-body h3 {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
  margin: 30px 0 14px;
}

/* Main content (intermediate-style) */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* Heading styles (intermediate-style) */
h1 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  color: var(--text);
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  border-left: 5px solid var(--primary);
  padding-left: 14px;
  margin: 56px 0 20px;
  line-height: 1.4;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}

p { margin-bottom: 18px; }

/* Anchor scroll offset */
h2[id], section[id] { scroll-margin-top: 20px; }

/* ===== Intro Block ===== */
.intro-block {
  background: #fff;
  padding: 32px 36px;
  margin-bottom: 56px;
  box-shadow: var(--shadow-card);
}

.intro-block .intro-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 4px 10px;
  margin-bottom: 16px;
}

.intro-block p {
  margin-bottom: 16px;
}

.intro-block p:last-child {
  margin-bottom: 0;
}

/* Intro box (intermediate-style) */
.intro-box {
  background: var(--primary-light);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.intro-box p { margin-bottom: 12px; }
.intro-box p:last-child { margin-bottom: 0; }

/* ===== Reason Section ===== */
.reason {
  margin-bottom: 56px;
}

.reason-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.reason-num {
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
  position: relative;
}

.reason-num::before {
  content: "理由";
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.reason h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.4;
  color: #1a1511;
  letter-spacing: -0.01em;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
}

.reason h2 .mark {
  background: linear-gradient(transparent 60%, var(--primary-light) 60%);
  padding: 0 2px;
}

/* Reason card (older iphone-senior style) */
.reason-card {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 40px 0;
  position: relative;
}

.reason-number {
  position: absolute;
  top: -16px;
  left: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
}

.reason-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

/* ===== Section Block ===== */
.section-block {
  margin-bottom: 56px;
}

.section-h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  line-height: 1.4;
  color: #1a1511;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 2px solid var(--primary);
}

.section-h2 .mark {
  background: linear-gradient(transparent 60%, var(--primary-light) 60%);
  padding: 0 2px;
}

/* ===== Highlight Box ===== */
.highlight-box {
  margin: 24px 0 28px;
  padding: 22px 26px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  font-size: 15.5px;
  line-height: 1.85;
  color: #1a1511;
}

.highlight-box strong {
  background: none;
  padding: 0;
  color: var(--primary-dark);
  font-weight: 700;
}

/* ===== Article Image ===== */
.article-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0 28px;
  display: block;
}

.image-placeholder {
  margin: 24px 0 28px;
  height: 200px;
  background: #fff3e8;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ===== Sub Heading ===== */
.sub-h {
  font-size: 19px;
  font-weight: 900;
  color: #1a1511;
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ===== Advice Note ===== */
.advice-note {
  margin: 24px 0 28px;
  padding: 22px 26px;
  background: #fff;
  border: 1.5px dashed var(--primary);
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text);
}

.advice-note .advice-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--primary-dark);
  padding: 3px 10px;
  margin-bottom: 10px;
}

.advice-note p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.9;
}

.advice-note p + p {
  margin-top: 10px;
}

/* Paragraph advice-note variant (intermediate/older style) */
p.advice-note {
  margin: 20px 0 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1.5px dashed var(--primary);
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text);
}

p.advice-note strong {
  color: var(--primary-dark);
}

/* Older-style advice-note (blue variant in sns-risk/rakuten-account) */
.advice-note.blue-variant,
.article-body .advice-note {
  background: #f0f7ff;
  border: 1px solid #b3d4f5;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95em;
  line-height: 1.85;
}

/* ===== Field Note ===== */
.field-note {
  margin: 24px 0 28px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  line-height: 1.95;
  color: var(--text);
  position: relative;
}

.field-note::before {
  content: "現場から";
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--primary);
  padding: 3px 10px;
  margin-bottom: 12px;
}

.field-note p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.95;
}

/* ===== CTA Block (new-template) ===== */
.cta-block {
  margin: 40px 0 48px;
  padding: 36px 32px;
  background: #fff;
  border: 2px solid var(--primary);
  text-align: center;
  position: relative;
}

.cta-block::before {
  content: "PR";
  position: absolute;
  top: -11px;
  left: 20px;
  background: #fff;
  color: var(--text-sub);
  font-size: 11px;
  font-weight: 500;
  padding: 0 8px;
  letter-spacing: 0.08em;
}

.cta-block h3 {
  font-size: 17px;
  font-weight: 900;
  color: #1a1511;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cta-block p {
  font-size: 13.5px;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 16px 40px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 15px;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(245, 124, 46, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.cta-btn::after {
  content: "→";
  font-weight: 500;
  transition: transform 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(245, 124, 46, 0.42);
  opacity: 1;
}

.cta-btn:hover::after {
  transform: translateX(4px);
}

/* CTA note */
.cta-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
}

/* CTA area (intermediate-style) */
.cta-area {
  text-align: center;
  margin: 40px 0;
}

.cta-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 8px;
}

/* ===== Summary ===== */
.summary {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 2px solid var(--primary);
}

.summary-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.summary h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 900;
  color: #1a1511;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  line-height: 1.4;
  border: none;
  padding: 0;
  background: none;
}

/* Summary box (intermediate-style) */
.summary-box {
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 48px 0 36px;
}

.summary-box h2 {
  color: #fff;
  border-left-color: var(--primary);
  font-size: 20px;
  margin: 0 0 16px;
}

.summary-box ul { padding-left: 20px; }
.summary-box li { margin-bottom: 8px; color: #f0f0f0; }

/* ===== Author Bio (new-template) ===== */
.author-bio {
  margin-top: 72px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 32px;
  display: flex;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.author-bio-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.author-bio-avatar svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.author-bio-body .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.author-bio-body h4 {
  font-size: 18px;
  font-weight: 900;
  color: #1a1511;
  margin-bottom: 6px;
}

.author-bio-body p {
  font-size: 13.5px;
  color: var(--text-sub);
  line-height: 1.85;
  margin: 0;
}

/* Author box (older/intermediate-style) */
.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 40px 0 28px;
  box-shadow: var(--shadow-card);
}

.author-box img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.author-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.author-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}

.author-info .name {
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin: 0;
}

/* ===== Back Button ===== */
.back-row {
  max-width: 720px;
  margin: 56px auto 0;
  text-align: center;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary-dark);
  padding: 14px 36px;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--primary);
  transition: background 0.2s, color 0.2s;
}

.back-btn::before {
  content: "←";
  font-weight: 500;
}

.back-btn:hover {
  background: var(--primary);
  color: #fff;
  opacity: 1;
}

/* ===== Table of Contents ===== */
.article-toc {
  margin: 0 auto 48px;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-card);
  padding: 26px 30px 22px;
}

.article-toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  color: #1a1511;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.article-toc-title::before {
  content: "目次";
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.1em;
}

.article-toc-list {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
}

.article-toc-list li {
  counter-increment: toc;
  margin: 0;
  padding: 0;
}

.article-toc-list li a {
  display: block;
  padding: 10px 8px 10px 38px;
  position: relative;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.article-toc-list li:last-child a { border-bottom: none; }

.article-toc-list li a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 11px;
  width: 28px;
  text-align: right;
  color: var(--primary);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.article-toc-list li a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  opacity: 1;
  text-decoration: none;
}

/* TOC ordered list (intermediate-style) */
.article-toc ol { padding-left: 20px; }
.article-toc li { margin-bottom: 6px; }
.article-toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}
.article-toc a:hover { text-decoration: underline; }

/* ===== Back to Top Button ===== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245, 124, 46, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
  z-index: 999;
  border-radius: 4px;
  font-family: inherit;
  font-weight: 700;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover { background: var(--primary-dark); }

.back-to-top:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Older-style back-to-top (#back-to-top) */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 124, 46, 0.4);
  display: none;
  z-index: 200;
}

/* ===== Compare Table ===== */
.compare-table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14.5px;
  min-width: 520px;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  text-align: left;
  line-height: 1.7;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.compare-table tbody th {
  background: var(--primary-light);
  color: var(--text);
  font-weight: 700;
  width: 28%;
}

.compare-table tbody td {
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table tbody tr.highlight td {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
}

.compare-table tr:nth-child(even) td { background: var(--bg); }

.compare-table .recommend { background: #fff8ef; }
.compare-table .price-strong { color: var(--primary-dark); font-weight: 700; }
.compare-table .price { font-weight: 700; white-space: nowrap; }
.compare-table .check { color: var(--primary); font-weight: 700; }
.compare-table .good { color: #2C9E4B; font-weight: 700; }
.compare-table .so-so { color: var(--text-sub); }

/* Rakuten column highlight */
.compare-table thead th.rakuten-col {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: inset 0 -3px 0 #ffc97a;
}

.compare-table tbody td.rakuten-col {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 900;
  white-space: nowrap;
}

.table-note {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 6px 0 28px;
  line-height: 1.75;
}

/* Compare box (older-style) */
.compare-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}

.compare-box table { width: 100%; border-collapse: collapse; }
.compare-box th {
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
}

.compare-box td {
  padding: 13px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  line-height: 1.6;
}

.compare-box tr:last-child td { border-bottom: none; }
.compare-box tr:nth-child(even) td { background: #fdfaf7; }
.compare-box .risk-low { color: #2e7d32; font-weight: 700; }
.compare-box .risk-high { color: #c62828; font-weight: 700; }
.compare-box .highlight-row td { background: #fff8f0 !important; font-weight: 700; }

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
  margin-bottom: 16px;
}

.faq-item .q {
  font-weight: 900;
  color: #1a1511;
  font-size: 15.5px;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.faq-item .q::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.faq-item .a {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.95;
  padding-left: 30px;
  position: relative;
}

.faq-item .a::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: #fff;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* FAQ variant (rakuten-link style) */
.faq-q {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  color: #1a1511;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  line-height: 1.6;
}

.faq-q::before {
  content: "Q. ";
  color: var(--primary-dark);
  font-weight: 900;
}

.faq-a {
  padding: 18px 22px;
  font-size: 15px;
  color: var(--text);
  line-height: 2;
}

.faq-a::before {
  content: "A. ";
  color: var(--primary-dark);
  font-weight: 900;
}

/* ===== Step List ===== */
.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
}

.step-list li {
  counter-increment: step;
  padding: 18px 22px 18px 64px;
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  position: relative;
  font-size: 15px;
  line-height: 1.85;
  box-shadow: var(--shadow-card);
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  border-radius: 4px;
}

.step-list li strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

/* Price card steps (senior-program) */
.step-list li strong.price-strong { color: var(--primary-dark); }

/* Steps (intermediate-style) */
.steps { margin: 28px 0; }

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-top: 2px;
}

.step-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

/* ===== Price Card ===== */
.price-card {
  margin: 28px auto;
  max-width: 580px;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(245, 124, 46, 0.18);
  padding: 32px 28px 28px;
  text-align: center;
  position: relative;
}

.price-card-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.price-card-title {
  font-size: clamp(15px, 3.5vw, 20px);
  font-weight: 900;
  color: #1a1511;
  line-height: 1.5;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.price-card-amount {
  font-size: 13px;
  color: var(--text-sub);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.price-card-main {
  font-size: 44px;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.price-card-main .yen {
  font-size: 26px;
  margin-left: 2px;
}

.price-card-main .per {
  font-size: 18px;
  color: var(--text-sub);
  font-weight: 700;
  margin-left: 4px;
}

.price-card-breakdown {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}

.price-card-section {
  text-align: left;
  margin-bottom: 22px;
}

.price-card-section h4 {
  font-size: 13px;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--primary);
  line-height: 1.4;
}

.price-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.price-card-list li {
  font-size: 14.5px;
  color: var(--text);
  padding: 7px 0 7px 28px;
  position: relative;
  line-height: 1.6;
}

.price-card-list li::before {
  content: "✅";
  position: absolute;
  left: 0;
  top: 7px;
  font-size: 14px;
}

.price-card-compare {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  text-align: left;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
}

.price-card-compare strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.price-card-note {
  font-size: 11.5px;
  color: var(--text-sub);
  margin-top: 14px;
  letter-spacing: 0.04em;
}

/* ===== Point Box ===== */
.point-box {
  border-left: 4px solid #e85500;
  background: #fff8f3;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.97em;
  line-height: 1.8;
}

/* Point box (intermediate-style) */
.point-box-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 15px;
  margin-bottom: 10px;
}

.point-box ul { padding-left: 20px; }
.point-box li { margin-bottom: 6px; font-size: 15px; }
.point-box a { color: var(--primary-dark); font-weight: 700; }

/* ===== Note Box ===== */
.note-box {
  background: #FFF8F0;
  border: 1px solid #FFD4B8;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}

.note-box-title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 14px;
  margin-bottom: 8px;
}

.note-box p { margin-bottom: 0; font-size: 15px; }

/* ===== Voice Box ===== */
.voice-box {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.95em;
  line-height: 1.8;
  border: 1px solid #e8e8e8;
}

.voice-box::before {
  content: "💬 現場の声";
  display: block;
  font-size: 0.8em;
  color: #e85500;
  font-weight: bold;
  margin-bottom: 8px;
}

/* ===== Caution Box ===== */
.caution-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.95em;
  line-height: 1.8;
}

/* ===== Marker ===== */
.marker {
  background: linear-gradient(transparent 55%, rgba(255, 120, 0, 0.25) 55%);
  font-weight: bold;
}

/* ===== Carrier Check ===== */
.carrier-check {
  margin: 20px 0 24px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.carrier-check h4 {
  font-size: 16px;
  font-weight: 900;
  color: #1a1511;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--primary-light);
}

.carrier-check ol {
  padding-left: 22px;
  margin: 0;
}

.carrier-check ol li {
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.85;
}

.carrier-check ol li:last-child { margin-bottom: 0; }

/* ===== Carrier Screen ===== */
.carrier-screen { margin: 20px 0 28px; }

.screen-label {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.screen-caption {
  font-size: 0.85rem;
  color: #6b6258;
  margin-top: 8px;
  line-height: 1.6;
}

/* Screen wrap (older-style) */
.screen-wrap { margin: 24px 0; }

.screen-explain {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 10px;
  line-height: 1.75;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}

.screen-explain .what-to-do {
  font-weight: 900;
  color: var(--primary-dark);
}

/* ===== Diff Block ===== */
.diff-block {
  margin: 24px 0 28px;
  padding: 26px 24px;
  background: linear-gradient(135deg, #fff8f0, #fff3e8);
  border: 2px solid var(--primary);
  text-align: center;
}

.diff-block .diff-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--primary-dark);
  padding: 4px 12px;
  margin-bottom: 12px;
}

.diff-block .diff-headline {
  font-size: clamp(15px, 2.4vw, 18px);
  font-weight: 700;
  color: #1a1511;
  line-height: 1.6;
  margin-bottom: 10px;
}

.diff-block .diff-amount {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 6px 0 4px;
}

.diff-block .diff-sub {
  font-size: 12.5px;
  color: var(--text-sub);
  margin: 0;
}

/* ===== Data Card (sns-risk) ===== */
.data-card {
  background: linear-gradient(135deg, #2b2115 0%, #3d2e1e 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px 28px;
  margin: 28px 0;
}

.data-card h3 {
  font-size: 0.85rem;
  color: #ffc97a;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.data-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.data-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.data-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  min-width: 160px;
  flex-shrink: 0;
}

.data-value {
  font-size: 1.3rem;
  font-weight: 900;
  color: #ffc97a;
}

.data-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-top: 2px;
}

/* ===== Benefit Card (rakuten-account) ===== */
.benefit-card {
  background: linear-gradient(135deg, #2b2115 0%, #3d2e1e 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px;
  margin: 28px 0;
}

.benefit-card h3 {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.benefit-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.benefit-row:last-child { border-bottom: none; }

.benefit-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  min-width: 180px;
  flex-shrink: 0;
}

.benefit-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent);
}

.benefit-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 2px;
}

/* ===== Mock Screen ===== */
.mock-screen {
  background: #f5f5f5;
  border: 2px solid #ccc;
  border-radius: 16px;
  padding: 20px 18px 24px;
  margin: 20px 0;
  max-width: 340px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.mock-screen .mock-bar,
.mock-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.mock-screen .mock-bar span,
.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.mock-screen .mock-bar span:nth-child(1),
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-screen .mock-bar span:nth-child(2),
.mock-bar span:nth-child(2) { background: #ffbd2e; }
.mock-screen .mock-bar span:nth-child(3),
.mock-bar span:nth-child(3) { background: #28ca41; }

.mock-title {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 14px;
  border: 1px solid #ddd;
}

.mock-rakuten-logo {
  color: #bf0000;
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 12px;
}

.mock-label {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 4px;
  font-weight: 700;
}

.mock-input {
  background: #fff;
  border: 1.5px solid #aaa;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: #999;
  width: 100%;
  margin-bottom: 12px;
}

.mock-input.filled {
  color: #333;
  border-color: var(--primary);
}

.mock-btn {
  display: block;
  width: 100%;
  background: #bf0000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
  cursor: default;
}

.mock-btn.gray { background: #999; }
.mock-btn.orange { background: var(--primary); }

.mock-sms {
  background: #e8f5e9;
  border: 1.5px solid #66bb6a;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: #2e7d32;
  font-weight: 700;
  text-align: center;
}

.mock-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
}

.mock-menu-item .arrow { color: #999; font-size: 0.9rem; }
.mock-menu-item.active { border-color: var(--primary); color: var(--primary-dark); background: #fff8f3; }

.mock-share-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px 0;
}

.mock-share-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: #555;
}

.mock-share-icon .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.mock-share-icon .icon.line { background: #06C755; }
.mock-share-icon .icon.copy { background: #f0f0f0; }
.mock-share-icon .icon.mail { background: #4285f4; }

.mock-link-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.72rem;
  color: #888;
  word-break: break-all;
  margin-bottom: 10px;
}

.mock-line-msg {
  background: #06C755;
  color: #fff;
  border-radius: 12px 12px 12px 2px;
  padding: 10px 14px;
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 85%;
  margin: 8px 0;
}

.mock-line-header {
  background: #06C755;
  color: #fff;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.mock-line-body {
  background: #e8f5e9;
  border: 1px solid #06C755;
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 12px 14px;
}

/* ===== Prepare List ===== */
.prepare-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-card);
}

.prepare-list h3 {
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.prepare-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.7;
}

.prepare-item:last-child { border-bottom: none; }

.prepare-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.prepare-item .item-note {
  font-size: 0.8rem;
  color: var(--text-sub);
  display: block;
  margin-top: 2px;
}

/* ===== Flow Steps ===== */
.flow-wrap { margin: 28px 0; }

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}

.flow-num {
  background: var(--primary);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 4px;
}

.flow-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  flex: 1;
  box-shadow: var(--shadow-card);
}

.flow-content strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.flow-content p {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.7;
}

.flow-arrow {
  text-align: center;
  color: var(--primary);
  font-size: 1.3rem;
  margin: 2px 0 2px 54px;
}

/* ===== Referral Flow Visual ===== */
.referral-flow-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px 20px;
  margin: 28px 0;
  box-shadow: var(--shadow-card);
}

.flow-visual-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-align: center;
}

.flow-visual-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
}

.fv-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}

.fv-icon { font-size: 2.2rem; }
.fv-label { font-size: 0.78rem; font-weight: 900; color: var(--text); }

.fv-status {
  font-size: 0.7rem;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.5;
  background: var(--primary-light);
  border-radius: 6px;
  padding: 4px 8px;
}

.fv-arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}

.fv-arrow-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  position: relative;
}

.fv-arrow-line::after {
  content: "▶";
  position: absolute;
  right: -8px;
  top: -9px;
  color: var(--primary);
  font-size: 1rem;
}

.fv-arrow-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 2px 8px;
}

.fv-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
}

.fv-rakuten-logo {
  background: #bf0000;
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  line-height: 1.4;
}

.fv-action {
  font-size: 0.68rem;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.5;
}

.fv-result-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.fv-result {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--primary-light);
  border-radius: 8px;
  padding: 12px 14px;
}

.fv-result-icon { font-size: 1.4rem; flex-shrink: 0; }

.fv-result-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fv-result-text strong { font-size: 0.78rem; color: var(--text-sub); }
.fv-pt { font-size: 1rem; font-weight: 900; color: var(--primary-dark); }
.fv-sub { font-size: 0.7rem; color: var(--text-sub); line-height: 1.5; }

/* ===== Related Articles ===== */
.related-articles { margin: 48px 0 0; }

.related-articles h2 {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  border: none;
  background: none;
  padding: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.related-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.6;
  transition: box-shadow 0.2s;
}

.related-item:hover { box-shadow: var(--shadow-hover); }

.related-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 5px;
}

/* Article wrap (older-style) */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ===== Footer (new-template) ===== */
.site-footer {
  background: #2b2115;
  color: #e0d6c9;
  padding: 56px 20px 28px;
  font-size: 14px;
}

.footer-inner { max-width: 1120px; margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #4a3a28;
}

.footer-brand { max-width: 320px; }
.footer-brand .site-logo { color: #fff; margin-bottom: 12px; }

.footer-brand p {
  font-size: 13px;
  color: #b8ac9b;
  line-height: 1.85;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }

.footer-links a {
  color: #d4c8b6;
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright { font-size: 12.5px; color: #a89c8b; }
.ad-notice { font-size: 11.5px; color: #7d7366; }

/* Footer (older-style) */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  text-align: center;
  padding: 28px 16px;
  margin-top: 60px;
}

footer a { color: rgba(255,255,255,0.5); text-decoration: none; margin: 0 8px; }
footer a:hover { color: #fff; }
footer .footer-links { margin-bottom: 12px; }
footer .footer-links a { margin: 0 12px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .article-hero { padding: 24px 20px 22px; }
  .article-content { padding: 48px 0 72px; }
  .intro-block { padding: 26px 24px; }
  .field-note { padding: 20px 22px; }
  .highlight-box { padding: 20px 22px; }
  .cta-block { padding: 28px 22px; }
  .author-bio { padding: 24px; gap: 18px; }
  .price-card { padding: 26px 20px 22px; }
  .price-card-main { font-size: 36px; }
  .price-card-main .yen { font-size: 22px; }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
  }

  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav li:last-child { border-bottom: none; }
  .site-nav a { display: block; padding: 14px 0; border-bottom: none; }
  .nav-toggle { display: block; }

  .breadcrumb { font-size: 12px; overflow-x: auto; white-space: nowrap; }
  .breadcrumb-inner { flex-wrap: nowrap; }

  .article-body p { font-size: 15.5px; }
  .reason-header { gap: 14px; }
  .reason-num { font-size: 38px; }

  .author-bio {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .author-box { flex-direction: column; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .back-to-top { right: 14px; bottom: 18px; width: 48px; height: 48px; font-size: 20px; }

  .article-toc { padding: 20px 18px 16px; }
  .article-toc-list li a { font-size: 14px; padding: 9px 6px 9px 34px; }
  .article-toc-list li a::before { width: 24px; font-size: 12px; }

  h2 { font-size: 19px; }
  .article-hero { padding: 32px 18px 28px; }
  .article-body h2 { font-size: 1.1rem; }

  .data-row { flex-direction: column; gap: 4px; }
  .data-label { min-width: unset; }
  .compare-box td, .compare-box th { font-size: 0.82rem; padding: 10px 10px; }

  .benefit-row { flex-direction: column; gap: 4px; }
  .benefit-label { min-width: unset; }

  .mock-screen { max-width: 100%; }

  .fv-result-wrap { grid-template-columns: 1fr; }
  .flow-visual-wrap { gap: 0; }
  .fv-arrow-col { min-width: 50px; }
  .fv-center { min-width: 80px; }

  .step { gap: 12px; }
}

@media (max-width: 480px) {
  .price-card { padding: 20px 16px; }
}

@media (max-width: 600px) {
  .article-hero { padding: 32px 18px 28px; }
  .article-body h2 { font-size: 1.1rem; }
  .data-row { flex-direction: column; gap: 4px; }
  .data-label { min-width: unset; }
  .compare-box td, .compare-box th { font-size: 0.82rem; padding: 10px 10px; }
  .author-box { flex-direction: column; }
  .mock-screen { max-width: 100%; }
  .benefit-row { flex-direction: column; gap: 4px; }
  .benefit-label { min-width: unset; }
  .compare-box td, .compare-box th { font-size: 0.8rem; padding: 10px 8px; }
}

/* ========== Home Hero (index.html) ========== */
.hero {
  background: #ffffff;
  padding: 96px 20px 104px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--primary-light);
  z-index: 0;
}

.hero::before {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -100px;
  opacity: 0.6;
}

.hero::after {
  width: 340px;
  height: 340px;
  bottom: -140px;
  right: -110px;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 900;
  line-height: 1.3;
  color: #1a1511;
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}

.hero h1 .line { display: block; }

.hero h1 .accent {
  position: relative;
  display: inline-block;
  padding: 0 4px;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 14px;
  background: var(--primary);
  opacity: 0.35;
  z-index: -1;
}

.hero h1 .dot { color: var(--primary); }

.hero-lead {
  font-size: 16px;
  color: var(--text-sub);
  margin-bottom: 40px;
  line-height: 1.95;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  padding: 18px 44px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(245, 124, 46, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-cta::after { content: "→"; font-weight: 500; transition: transform 0.2s; }

.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(245, 124, 46, 0.42);
  opacity: 1;
}

.hero-cta:hover::after { transform: translateX(4px); }

/* ========== Home Sections ========== */
.section-head { text-align: center; margin-bottom: 56px; }

.section-head h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 900;
  color: #1a1511;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--primary);
  margin: 18px auto 0;
}

.section-head p { color: var(--text-sub); font-size: 15px; }

/* ========== Features ========== */
.features { background: #fff; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }

.feature-item {
  background: #ffffff;
  border-left: 3px solid var(--primary);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 88px 72px 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s, border-left-width 0.25s;
}

.feature-item:hover { transform: translateX(3px); border-left-width: 6px; box-shadow: var(--shadow-hover); }

.feature-num {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.feature-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; color: var(--primary); }

.feature-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; fill: none;
}

.feature-body h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; color: #1a1511; letter-spacing: -0.01em; }
.feature-body p { font-size: 14.5px; color: var(--text-sub); line-height: 1.9; margin: 0; }

.feature-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--primary-dark); text-transform: uppercase;
  white-space: nowrap; padding-left: 24px;
  border-left: 1px solid var(--border);
  align-self: stretch; display: flex; align-items: center;
}

/* ========== Categories ========== */
.categories { background: var(--bg); }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.category-card {
  background: #ffffff;
  border-left: 0 solid var(--primary);
  padding: 36px 32px 32px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s, border-left-width 0.3s, padding-left 0.3s;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-3px);
  border-left-width: 4px;
  padding-left: 28px;
  box-shadow: var(--shadow-hover);
  opacity: 1;
}

.category-watermark {
  position: absolute; top: -18px; left: 14px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900; font-size: 140px; line-height: 1;
  color: #eee5d8; letter-spacing: -0.04em;
  user-select: none; pointer-events: none; z-index: 0; transition: color 0.3s;
}

.category-card:hover .category-watermark { color: #f6dcc0; }

.category-body { position: relative; z-index: 1; min-height: 104px; }

.category-body h3 {
  font-size: 26px; font-weight: 900; margin-bottom: 14px;
  color: #1a1511; letter-spacing: -0.015em; line-height: 1.3; padding-top: 18px;
}

.category-body p { font-size: 14.5px; color: var(--text-sub); line-height: 1.85; margin: 0 0 20px; }

.category-link {
  font-size: 14px; font-weight: 700; color: var(--primary-dark);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; transition: gap 0.2s; position: relative; z-index: 1;
}

.category-link::after { content: "→"; transition: transform 0.2s; }
.category-card:hover .category-link::after { transform: translateX(6px); }

/* ========== Profile ========== */
.profile { background: #fff; }

.profile-card {
  max-width: 720px; margin: 0 auto;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 40px; display: flex; gap: 28px;
  align-items: center; box-shadow: var(--shadow-card);
}

.profile-avatar {
  flex-shrink: 0; width: 110px; height: 110px;
  border-radius: 50%; background: #fff;
  border: 2px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); box-shadow: var(--shadow);
}

.profile-avatar svg {
  width: 62px; height: 62px;
  stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; fill: none;
}

.profile-body h3 { font-size: 21px; font-weight: 900; margin-bottom: 8px; color: #1a1511; letter-spacing: -0.01em; }

.profile-role {
  display: inline-block; font-size: 12px;
  background: #fff; color: var(--primary-dark);
  padding: 4px 12px; margin-bottom: 14px;
  font-weight: 700; letter-spacing: 0.04em;
}

.profile-body p { font-size: 14.5px; color: var(--text-sub); line-height: 1.9; }

/* ========== Pickup Section ========== */
.pickup-section { background: linear-gradient(135deg, #2b2115 0%, #3d2e1e 100%); padding: 32px 20px; }
.pickup-inner { max-width: 860px; margin: 0 auto; }
.pickup-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; letter-spacing: 0.05em; }
.pickup-content { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pickup-text { flex: 1; }
.pickup-title { font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 900; color: #fff; line-height: 1.5; margin-bottom: 12px; }
.pickup-title span { color: var(--accent); }
.pickup-desc { font-size: 0.88rem; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 18px; }
.pickup-btn { display: inline-block; background: var(--primary); color: #fff; font-weight: 900; font-size: 0.9rem; padding: 12px 28px; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 14px rgba(245,124,46,0.4); }
.pickup-price { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 20px 24px; text-align: center; flex-shrink: 0; min-width: 160px; }
.pickup-price-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-bottom: 6px; }
.pickup-price-num { font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 1; }
.pickup-price-num span { font-size: 1rem; font-weight: 700; }
.pickup-price-sub { font-size: 0.68rem; color: rgba(255,255,255,0.5); margin-top: 6px; line-height: 1.5; }

/* ========== Page Hero (articles.html) ========== */
.page-hero {
  background: #ffffff;
  padding: 48px 20px 40px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero::before,
.page-hero::after {
  content: ""; position: absolute;
  border-radius: 50%; background: var(--primary-light); z-index: 0;
}

.page-hero::before { width: 240px; height: 240px; top: -100px; left: -80px; opacity: 0.5; }
.page-hero::after { width: 260px; height: 260px; bottom: -140px; right: -80px; opacity: 0.4; }

.page-hero-inner { position: relative; max-width: 820px; margin: 0 auto; z-index: 1; text-align: center; }

.page-label {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 14px;
  margin-bottom: 16px; letter-spacing: 0.08em;
}

.page-hero h1 {
  font-size: clamp(24px, 4vw, 34px); font-weight: 900;
  line-height: 1.4; color: #1a1511; margin-bottom: 14px; letter-spacing: -0.015em;
}

.page-hero h1 .accent { color: var(--primary-dark); }
.page-hero p { font-size: 15px; color: var(--text-sub); line-height: 1.85; max-width: 620px; margin: 0 auto; }

/* ========== Articles Grid ========== */
.articles-section { padding: 64px 0 96px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; max-width: 1080px; margin: 0 auto;
}

.article-card {
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden; position: relative;
}

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

.article-card a.card-link { color: inherit; display: flex; flex-direction: column; height: 100%; }
.article-card a.card-link:hover { opacity: 1; }

.card-thumb {
  position: relative; height: 180px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); overflow: hidden;
}

.card-thumb::before {
  content: ""; position: absolute;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--primary); opacity: 0; top: -60px; right: -60px;
}

.card-thumb-num {
  position: relative; font-size: 64px; font-weight: 900;
  color: #fff; letter-spacing: -0.05em; line-height: 1; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.card-thumb-num::before {
  content: "Article"; display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85); margin-bottom: 6px; text-transform: uppercase;
}

.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }

.card-category {
  display: inline-block; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; letter-spacing: 0.05em;
}

.card-date { font-size: 12px; color: var(--text-sub); font-weight: 500; }

.card-title {
  font-size: 17px; font-weight: 900; color: #1a1511;
  line-height: 1.55; letter-spacing: -0.01em; margin-bottom: 14px; flex: 1;
}

.card-readmore {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary-dark); margin-top: auto;
}

.card-readmore::after { content: "→"; transition: transform 0.2s; }
.article-card:hover .card-readmore::after { transform: translateX(4px); }

/* ========== Responsive: index & articles ========== */
@media (max-width: 860px) {
  .hero { padding: 64px 20px 72px; }
  section { padding: 64px 0; }
  .feature-item {
    grid-template-columns: 64px 48px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 20px; padding: 24px 22px;
  }
  .feature-num { font-size: 42px; grid-row: 1 / span 2; }
  .feature-icon { width: 44px; height: 44px; grid-row: 1 / span 2; }
  .feature-body { grid-column: 3; }
  .feature-label { grid-column: 3; padding-left: 0; border-left: none; align-self: flex-start; font-size: 11px; }
  .category-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 36px 20px 32px; }
  .articles-section { padding: 48px 0 72px; }
  .articles-grid { gap: 22px; }
}

@media (max-width: 640px) {
  .hero-badge { font-size: 12px; }
  .hero-cta { padding: 16px 36px; font-size: 15px; }
  .profile-card { flex-direction: column; text-align: center; padding: 32px 24px; gap: 20px; }
  .category-card { padding: 28px 22px 24px; }
  .category-card:hover { padding-left: 20px; }
  .category-watermark { font-size: 110px; top: -14px; left: 10px; }
  .category-body h3 { font-size: 22px; padding-top: 12px; }
  .articles-grid { grid-template-columns: 1fr; }
  .card-thumb { height: 150px; }
  .card-thumb-num { font-size: 52px; }
}

@media (max-width: 600px) {
  .pickup-content { flex-direction: column; }
  .pickup-price { width: 100%; }
}
