:root {
  --bg: #ffffff;
  --bg-alt: #f6f4ee;
  --bg-dark: #0b0d13;
  --bg-dark-alt: #14161f;
  --card: #ffffff;
  --card-dark: rgba(255,255,255,0.04);
  --border: rgba(11,13,19,0.12);
  --border-soft: rgba(11,13,19,0.08);
  --border-dark: rgba(255,255,255,0.14);
  --gold: #b8902f;
  --gold-deep: #8a6a1f;
  --gold-light: #f3d98a;
  --text: #15171d;
  --text-muted: #15171d;
  --text-faint: #15171d;
  --text-on-dark: #f5f6fa;
  --text-on-dark-muted: #ffffff;
  --text-on-dark-faint: #ffffff;
  --danger: #c8433c;
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.85;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #fff; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.5; margin: 0; font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; }

.inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.accent { color: var(--gold-deep); }
.accent-red {
  color: var(--text);
  background: linear-gradient(180deg, transparent 62%, rgba(200,67,60,0.32) 62%, rgba(200,67,60,0.32) 92%, transparent 92%);
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---- Icons ---- */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 46px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #ffffff;
  background: linear-gradient(135deg, #ff5b4d, #e0362b 55%, #a11f17);
  box-shadow: 0 10px 30px -8px rgba(224,54,43,0.55), 0 0 0 rgba(224,54,43,0), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: btnGlow 2.4s ease-in-out infinite;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px rgba(224,54,43,0.75), 0 0 30px 6px rgba(224,54,43,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn::after { content: "›"; font-size: 20px; line-height: 1; margin-left: -2px; }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(224,54,43,0.55), 0 0 0px rgba(224,54,43,0), inset 0 1px 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 10px 34px -6px rgba(224,54,43,0.85), 0 0 28px 6px rgba(224,54,43,0.6), inset 0 1px 0 rgba(255,255,255,0.3); }
}
.btn-wrap { text-align: center; margin: 36px 0 18px; }
.note { text-align: center; font-size: 12px; color: var(--text-faint); letter-spacing: 0.02em; }

/* ---- Header ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .logo { display: flex; align-items: center; }
.site-header .logo-img { height: 60px; width: auto; display: block; }
@media (max-width: 600px) {
  .site-header { padding: 6px 14px; }
  .site-header .logo-img { height: auto; width: min(80vw, 340px); }
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--gold-deep); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { opacity: 0.5; }
.breadcrumb span.current { color: var(--text-faint); }

/* ---- Article page ---- */
.article-page { padding: 64px 24px 100px; }
.article-page .inner { max-width: 780px; }
.category-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  background: rgba(184,144,47,0.1);
  border: 1px solid rgba(184,144,47,0.3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}
.article-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.article-desc {
  font-size: 15px;
  color: var(--text-muted);
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-bottom: 44px;
}
.article-body h2 {
  font-size: clamp(19px, 2.4vw, 23px);
  font-weight: 900;
  margin: 52px 0 20px;
  padding-top: 4px;
  border-top: 1px solid var(--border-soft);
  padding-top: 28px;
}
.article-body h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-deep);
  margin: 32px 0 14px;
}
.article-body p {
  font-size: 15.5px;
  color: var(--text);
  margin: 0 0 22px;
}
.article-body a { color: var(--gold-deep); text-decoration: underline; text-decoration-color: rgba(184,144,47,0.4); }
.article-body a:hover { text-decoration-color: var(--gold-deep); }
.article-body a.btn, .article-body a.btn:hover { color: #ffffff; text-decoration: none; }

.article-cta {
  text-align: center;
  margin: 56px 0 8px;
  padding: 40px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.article-cta-lead { font-size: 15px; font-weight: 700; margin: 0 0 20px; }

.related-articles { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border-soft); }
.related-articles-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-faint); margin: 0 0 14px; }
.related-articles-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.related-articles-list li a {
  display: block;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.related-articles-list li a:hover { background: rgba(184,144,47,0.14); color: var(--gold-deep); }

@media (max-width: 600px) {
  .article-page { padding: 40px 18px 72px; }
  .article-body p { font-size: 15px; }
}

/* ---- Column index (archive) ---- */
.column-index { padding: 64px 24px 100px; }
.column-index .inner { max-width: var(--container); }
.column-index-title { font-size: clamp(26px, 3.6vw, 36px); font-weight: 900; text-align: center; margin-bottom: 12px; }
.column-index-desc { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 48px; }
.category-group { margin-bottom: 48px; }
.category-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold-deep);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.article-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.article-card {
  display: block;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(11,13,19,0.25);
  border-color: rgba(184,144,47,0.4);
}
.article-card-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; line-height: 1.6; }
.article-card-desc { font-size: 13px; color: var(--text-faint); margin: 0; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) {
  .article-card-grid { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
footer {
  padding: 56px 24px 40px;
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-on-dark-faint);
  font-size: 12px;
}
.footer-brand {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--text-on-dark);
  margin: 0;
}
.footer-info p { margin: 4px 0; font-size: 14px; color: var(--text-on-dark-muted); }
.footer-info p:first-child { margin-top: 0; }
.footer-info a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer-info a:hover { color: var(--gold-light); }
.footer-copy {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 11px;
  color: var(--text-on-dark-faint);
}

/* ---- Scroll progress bar ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-light));
  z-index: 999;
  transition: width 0.08s linear;
}

/* ---- Back to top ---- */
#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1408;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(11,13,19,0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 90;
}
#back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
#back-to-top .icon { width: 20px; height: 20px; }

/* ---- Side CTA (電話・メール) ---- */
.side-cta {
  position: fixed;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 80;
}
.side-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 12px 24px -10px rgba(11,13,19,0.45);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.side-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(11,13,19,0.55); }
.side-cta-btn .icon { width: 21px; height: 21px; }
.side-cta-btn.mail { background: linear-gradient(135deg, #ff5b4d, var(--danger) 65%, #a11f17); }
.side-cta-btn.tel { background: var(--bg-dark); border: 1px solid rgba(184,144,47,0.4); }

@media (max-width: 600px) {
  .side-cta {
    top: auto; right: 0; bottom: 0; left: 0; transform: none;
    flex-direction: row; gap: 1px; width: 100%;
    box-shadow: 0 -8px 20px -8px rgba(11,13,19,0.25);
  }
  .side-cta-btn { flex: 1 1 0%; flex-direction: row; width: auto; height: 58px; border-radius: 0; gap: 8px; font-size: 12.5px; }
  .side-cta-btn .icon { width: 19px; height: 19px; }
  .side-cta-btn:hover { transform: none; }
  #back-to-top { bottom: 74px; }
}

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1); }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn { animation: none; }
}
