:root {
  --ink: #142033;
  --ink-soft: #24384c;
  --brass: #a67c3d;
  --brass-bright: #d7b56a;
  --paper: #f3efe6;
  --paper-2: #fffcf7;
  --card: #ffffff;
  --text: #1c1915;
  --muted: #5e584e;
  --line: #e3d9c8;
  --whatsapp: #1c7c4a;
  --danger: #8c2f2f;
  --header-h: 78px;
  --shadow: 0 16px 40px rgba(20, 32, 51, 0.08);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
  --radius: 18px;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-x: clip;
}

body.menu-open { overflow: hidden; }

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

a { color: var(--ink-soft); }

a:hover { color: var(--brass); }

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  z-index: 4000;
  border-radius: 8px;
}

.skip-link:focus { transform: none; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.is-stuck { box-shadow: 0 8px 24px rgba(20, 32, 51, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1240px, calc(100% - 32px));
  min-height: var(--header-h);
  margin-inline: auto;
  padding-block: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.logo img {
  height: 46px;
  width: auto;
  max-width: min(190px, 48vw);
  object-fit: contain;
  object-position: left center;
}

.logo-mark { display: none; }

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.desktop-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.header-cta {
  display: none;
  text-decoration: none;
  background: var(--brass);
  color: #1a1208;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 保持文字顏色（否則通用 a:hover 會令文字變成與底色相同的金色而「消失」） */
.header-cta:hover { color: #1a1208; background: var(--brass-bright); }

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  display: grid;
  gap: 5px;
  place-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 3000;
  background: var(--ink);
  color: #f6f1e7;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu[hidden] { display: none !important; }

.mobile-menu__inner {
  min-height: 100%;
  width: min(560px, 100%);
  margin-inline: auto;
  padding: 22px 22px 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.menu-close {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.mobile-menu nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.mobile-menu nav li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.mobile-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: #f6f1e7;
  text-decoration: none;
  font-size: 1.25rem;
  font-family: var(--serif);
  line-height: 1.45;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: normal;
}

.mobile-menu a[aria-current="page"] { color: var(--brass-bright); }

.mobile-menu .menu-wa {
  display: block;
  width: 100%;
  margin-top: 22px;
  background: var(--whatsapp);
  color: #fff;
  text-align: center;
  border-radius: 999px;
  border-bottom: 0;
  padding: 14px 18px;
}

main > .hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(215, 181, 106, 0.18), transparent 32%),
    linear-gradient(160deg, #101a28 0%, #1d3348 58%, #2a2418 100%);
  color: #f7f3ea;
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-bright);
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 10px;
}

main > .hero h1,
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 12px;
}

main > .hero h1 { font-size: clamp(1.8rem, 4vw, 3.15rem); }

.route-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brass-bright);
  font-size: 0.92rem;
  margin: 8px 0 18px;
}

.route-line i {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-bright), transparent);
  display: block;
}

.hero-lead { max-width: 42rem; color: #e7e0d2; margin-top: 0; }

.hero-actions,
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
}

.btn-brass { background: var(--brass-bright); color: #1b1408; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: transparent; }

.btn-ink { background: var(--ink); color: #fff; }

.btn-wa { background: var(--whatsapp); color: #fff; }

.btn-brass:hover { color: #1b1408; }

.btn-ghost:hover,
.btn-ink:hover,
.btn-wa:hover { color: #fff; }

.hero-figure {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 106, 0.45);
  box-shadow: var(--shadow);
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #243246;
}

.page-hero { padding: 42px 0 10px; }

.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); color: var(--ink); }

.breadcrumb { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }

.breadcrumb a { text-decoration: none; }

.section { padding: 28px 0 64px; }

.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 40px);
  box-shadow: var(--shadow);
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: break-word;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--serif);
  line-height: 1.35;
  color: var(--ink);
}

.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: 1.35em; }

.prose h2 + h2,
.prose h2 + h3,
.prose h3 + h3 { margin-top: 0.35em; }

.prose h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

.prose h5,
.prose h6 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0.4em 0 0.8em;
}

.prose section { margin: 0 0 1.6rem; }

.prose section > h2:first-child { margin-top: 0.2em; }

.prose ul,
.prose ol { padding-left: 1.2em; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

.prose figure.wp-block-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 1em 0;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 10px 8px;
  vertical-align: top;
}

.prose th { background: var(--ink); color: #fff; }

.prose img { border-radius: 12px; width: 100%; }

.prose img[width="300"] { width: min(300px, 100%); }

.prose figure { margin: 1.2em 0; max-width: 100%; }

.prose details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  background: var(--paper);
}

.prose summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.prose details p:last-child { margin-bottom: 0; }

.prose blockquote {
  margin: 1em 0;
  padding: 14px 16px;
  border-left: 4px solid var(--brass);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
}

.media-grid {
  display: grid;
  gap: 12px;
  margin: 16px 0 8px;
}

.media-grid figure { margin: 0; }

.media-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.video-grid .video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
}

.video-grid .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.region-grid {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.region-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.region-grid h3 { margin: 0 0 6px; }

.feature-grid,
.archive-grid,
.quote-grid {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.prose .feature-card,
.archive-card,
.quote-grid blockquote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-width: 0;
}

.prose .feature-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prose .feature-card h3 { margin: 0; }

.prose .feature-card ul { margin: 0; }

.quote-grid blockquote footer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.archive-card a { text-decoration: none; color: inherit; }

.prose .archive-card h2,
.archive-card h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 8px 0;
}

.archive-card time { color: var(--muted); font-size: 0.88rem; }

.archive-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: #e7dfd2;
}

.pager { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

.pager a,
.pager span {
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.pager span[aria-current="page"] { background: var(--ink); color: #fff; }

.video-frame {
  position: relative;
  padding-top: 56.25%;
  margin: 16px 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-layout {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  padding-bottom: 64px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 12px; }

#contact-form label { font-weight: 700; display: grid; gap: 6px; }

#contact-form input,
#contact-form select,
#contact-form textarea {
  font: inherit;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

#contact-form textarea { min-height: 120px; resize: vertical; }

.map-placeholder {
  min-height: 280px;
  border-radius: 16px;
  border: 1.5px dashed var(--brass);
  background:
    linear-gradient(180deg, rgba(20, 32, 51, 0.04), rgba(166, 124, 61, 0.08)),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(20, 32, 51, 0.04) 28px, rgba(20, 32, 51, 0.04) 29px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.map-placeholder strong { font-family: var(--serif); font-size: 1.4rem; }

.site-footer {
  background: var(--ink);
  color: #e6dfd2;
  padding: 42px 0 28px;
}

.footer-grid { display: grid; gap: 22px; }

.site-footer a { color: var(--brass-bright); }

.site-footer a.btn,
.site-footer a.btn:hover {
  color: #1a1208;
}

.site-footer h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 8px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; list-style: none; }

.legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 22px;
  padding-top: 14px;
  color: #b7b0a4;
  font-size: 0.88rem;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 84px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-bright);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.22);
  text-decoration: none;
}

.wa-float:hover { color: #fff; background: #16663c; }

.wa-float svg { width: 30px; height: 30px; display: block; }

body.menu-open .wa-float,
body.menu-open .back-to-top { visibility: hidden; }

.reveal { animation: rise 0.7s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
}

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

@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .feature-grid,
  .quote-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1.1fr 0.9fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  #contact-form .form-grid.two { grid-template-columns: 1fr 1fr; }
}

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

@media (min-width: 1120px) {
  .desktop-nav,
  .header-cta { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .feature-grid.steps { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   CMS 附加樣式（Banner 輪播、表單狀態、頁尾設計署名、文章列表）
   ===================================================================== */
.hero-figure.hero-slider { position: relative; }

.hero-slider .hero-slide { display: none; }

.hero-slider .hero-slide.is-active { display: block; animation: heroFade 0.8s ease both; }

.hero-slider .hero-slide a { display: block; }

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button[aria-current="true"] { width: 26px; background: var(--brass-bright); }

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.form-status.is-ok { background: #e8f4ec; color: #1c5c3a; border: 1px solid #bfdcc9; }

.form-status.is-err { background: #f7e9e9; color: var(--danger); border: 1px solid #e4c3c3; }

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 18px;
}

.site-credit {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: #8f887c;
}

.site-credit a {
  color: var(--brass-bright);
  text-decoration: none;
  border-bottom: 1px dotted rgba(215, 181, 106, 0.55);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-credit a:hover { color: #fff; border-bottom-color: #fff; }

.post-meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }

.related-posts { margin-top: 28px; }

.footer-social { font-size: 0.95rem; }

/* =====================================================================
   搬屋工具及資料庫（大廈資料、18 區、紙箱計算機、Checklist、吉日表）
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.lead-answer {
  background: var(--paper);
  border-left: 4px solid var(--brass);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
}

.data-note { color: var(--muted); font-size: 0.9rem; }

.link-list { display: flex; flex-wrap: wrap; gap: 8px; }

.link-list a,
.chip-nav a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}

.link-list a:hover,
.chip-nav a:hover { border-color: var(--brass); }

.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

.dist-grid { display: grid; gap: 16px; margin-top: 16px; }

.dist-region {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.dist-region h3 { margin: 0 0 10px; }

.dist-region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.dist-region a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.dist-region small { color: var(--muted); font-weight: 400; }

.search-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 16px; }

.search-form input {
  flex: 1 1 220px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}

.tool-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px);
  margin-bottom: 20px;
}

.tool-cta h2 { color: #fff; margin-top: 0; }

.tool-cta p { color: #e7e0d2; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table-scroll table { min-width: 560px; }

/* Checklist */
.ck-toolbar {
  position: sticky;
  top: calc(var(--header-h) + 6px);
  z-index: 5;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ck-bar { flex: 1 1 180px; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }

.ck-bar span { display: block; height: 100%; width: 0; background: var(--whatsapp); transition: width 0.3s; }

.ck-count { font-weight: 700; min-width: 5.5em; }

.ck-toolbar button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.prose ul.ck-list { list-style: none; padding-left: 0; }

.prose ul.ck-list li { margin: 0; padding: 7px 0; border-bottom: 1px dashed var(--line); }

.ck-list label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }

.ck-list input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; accent-color: var(--whatsapp); }

.ck-list li.is-done label { color: var(--muted); text-decoration: line-through; }

.ck-group-count { font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-left: 6px; }

/* 紙箱計算機 */
.boxcalc { display: grid; gap: 18px; }

.boxcalc fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; }

.boxcalc legend { font-weight: 700; padding: 0 6px; color: var(--ink); }

.bc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }

.bc-row:last-child { border-bottom: 0; }

.bc-row small { display: block; color: var(--muted); }

.bc-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }

.bc-step button { width: 36px; height: 36px; border: 0; background: var(--paper); font-size: 1.1rem; cursor: pointer; }

.bc-step input { width: 48px; text-align: center; border: 0; font: inherit; -moz-appearance: textfield; }

.bc-step input::-webkit-outer-spin-button,
.bc-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.bc-result { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; }

.bc-result h3 { color: #fff; margin-top: 0; }

.bc-total { font-size: 2.6rem; font-weight: 800; color: var(--brass-bright); line-height: 1.1; }

.bc-result dl { display: grid; grid-template-columns: auto auto; gap: 6px 14px; margin: 14px 0; }

.bc-result dt { color: #e7e0d2; }

.bc-result dd { margin: 0; font-weight: 700; text-align: right; }

/* 吉日表 */
.grade { display: inline-block; min-width: 1.8em; text-align: center; border-radius: 6px; padding: 0 6px; font-weight: 800; font-size: 0.85rem; }

.grade-A { background: #1c7c4a; color: #fff; }

.grade-B { background: #d7b56a; color: #1b1408; }

.grade-C { background: #e3d9c8; color: #1b1408; }

.grade-D { background: #8c2f2f; color: #fff; }

.prose details.day summary { font-weight: 600; }

.prose details.day dl { display: grid; grid-template-columns: 7em 1fr; gap: 4px 12px; margin: 10px 0 0; }

.prose details.day dt { color: var(--muted); }

.prose details.day dd { margin: 0; }

@media (min-width: 800px) {
  .dist-grid { grid-template-columns: repeat(3, 1fr); }
  .boxcalc { grid-template-columns: 1.3fr 0.7fr; align-items: start; }
  .bc-result { position: sticky; top: calc(var(--header-h) + 12px); }
}

@media print {
  .site-header, .site-footer, .wa-float, .back-to-top, .ck-toolbar button, .tool-cta, .related-posts, .author-box, .breadcrumb { display: none !important; }
  body { background: #fff; }
  .prose { box-shadow: none; border: 0; padding: 0; }
  .prose details { break-inside: avoid; }
  .prose details:not([open]) > *:not(summary) { display: block; }
}

.post-cover img { aspect-ratio: 16 / 7; object-fit: cover; height: auto; }
