@charset "UTF-8";
/* ==========================================================================
   鴻亞徵信社 — 和風改版 基礎樣式 (wa-base.css)
   全站共用：色彩 token、字體、版面骨架、header / nav / footer、共用元件
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* 色彩（規格 3-1） */
  --c-murasaki: #7B6A9E;        /* 藤紫：標題點綴、圖示、細線（文字僅限 24px 以上） */
  --c-murasaki-deep: #5E4F7E;   /* 江戸紫：按鈕、連結、hover */
  --c-fuji-pale: #EDE8F3;       /* 淡藤：區塊背景 */
  --c-kinari: #FAF8F3;          /* 生成り：全站主背景 */
  --c-sakura-nezumi: #E8D9DC;   /* 桜鼠：暖色輔助區塊、標籤 */
  --c-seiji: #B7CFC6;           /* 青磁：冷色輔助（少量） */
  --c-karashi: #C9A96E;         /* 芥子：印章、細線點綴（不可用於文字） */
  --c-sumi: #3A3440;            /* 墨：內文 */
  --c-nezumi: #6E6873;          /* 鼠：次要文字（僅限生成り底） */
  --c-line: #DCD6E3;            /* 藤鼠線：分隔線、框線 */
  /* 衍生色：芥子的可讀文字版（對生成り 4.68:1），用於編號數字 */
  --c-karashi-ink: #8A6B2F;

  /* 字體（規格 3-2） */
  --f-serif: "Chiron Sung HK", "Noto Serif TC", "PMingLiU", "MingLiU", serif;
  --f-body: "Chiron GoRound TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --f-kai: "LXGW WenKai TC", "BiauKai", "DFKai-SB", serif;
  --f-en: "Cormorant Garamond", "Times New Roman", serif;

  /* 尺寸 */
  --wrap: 1200px;
  --gutter: 16px;
  --sec-space: clamp(72px, 10vw, 144px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}
@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 88px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background-color: var(--c-kinari);
  color: var(--c-sumi);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }

/* 和紙紋理：SVG noise，透明度 3.5% */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .2 0 0 0 0 .25 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--c-sumi);
}
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--c-murasaki-deep); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-sumi); }
:focus-visible { outline: 2px solid var(--c-murasaki-deep); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 8px 16px; background: var(--c-murasaki-deep); color: var(--c-kinari);
}
.skip-link:focus { top: 8px; color: var(--c-kinari); }

/* 待確認標記（上線前必須替換） */
.tbc {
  background: var(--c-sakura-nezumi);
  color: var(--c-sumi);
  padding: 0 .3em;
  border-radius: var(--radius);
  font-size: .9em;
}

/* ---------- 3. Seal 印章 ---------- */
.seal { flex: none; width: 44px; height: 44px; }
.seal rect.seal__bg { fill: var(--c-murasaki-deep); }
.seal rect.seal__in { fill: none; stroke: var(--c-kinari); stroke-width: 1.2; }
.seal text { fill: var(--c-kinari); font-family: var(--f-serif); font-weight: 500; font-size: 15px; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, .94);
  border-bottom: 1px solid var(--c-line);
  -webkit-backdrop-filter: saturate(1.1);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--c-sumi);
  margin-right: auto;
}
.brand:hover { color: var(--c-sumi); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .18em;
}
.brand__en {
  font-family: var(--f-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--c-nezumi);
  margin-top: 4px;
}
@media (min-width: 768px) {
  .seal { width: 52px; height: 52px; }
  .brand__name { font-size: 26px; }
  .brand__en { font-size: 14px; }
}

.header-tel {
  display: none;
  text-decoration: none;
  text-align: right;
  line-height: 1.3;
}
.header-tel__label { display: block; font-size: 12px; color: var(--c-nezumi); letter-spacing: .12em; }
.header-tel__num {
  font-family: var(--f-en);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--c-murasaki-deep);
}
@media (min-width: 1024px) { .header-tel { display: block; } }

/* 漢堡按鈕（手機 / 平板） */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--c-sumi);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle__bars { position: relative; margin: 8px 0; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle__label { font-family: var(--f-en); font-style: italic; font-size: 12px; letter-spacing: .1em; }

/* Global nav */
.global-nav { border-top: 1px solid var(--c-line); }
.global-nav ul { display: flex; flex-wrap: wrap; }
.global-nav a {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--c-sumi);
  font-size: 15px;
  letter-spacing: .1em;
}
.global-nav a[aria-current="page"] { color: var(--c-murasaki-deep); }

@media (max-width: 1023.98px) {
  .global-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--c-kinari);
    border-bottom: 1px solid var(--c-line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; padding-block: 8px 24px; }
  .global-nav li + li { border-top: 1px solid var(--c-line); }
  .global-nav a { padding: 14px 4px; }
}
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .global-nav ul { justify-content: space-between; }
  .global-nav a { padding: 14px 2px 15px; }
  .global-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 8px;
    height: 1px;
    background: var(--c-murasaki-deep);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
  }
  .global-nav a:hover::after,
  .global-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- 5. Section heading 區塊標題 ---------- */
.sec { padding-block: var(--sec-space); }
.sec-head { margin-bottom: 40px; }
.sec-head__en {
  font-family: var(--f-en);
  font-style: italic;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--c-murasaki-deep);
  margin-bottom: 8px;
}
.sec-head__en .no { color: var(--c-karashi-ink); margin-inline-end: .6em; }
.sec-head h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: .14em;
}
.sec-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 20px;
  background: var(--c-murasaki);
}
/* 桌機直書標題 */
@media (min-width: 960px) {
  .sec-head--v {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 0;
  }
  .sec-head--v h2 {
    writing-mode: vertical-rl;
    font-size: 34px;
    letter-spacing: .3em;
  }
  .sec-head--v .sec-head__en {
    writing-mode: vertical-rl;
    margin: 6px 0 0;
  }
  .sec-head--v::after {
    width: 1px;
    height: 120px;
    margin: 0;
    align-self: flex-start;
  }
}

/* ---------- 6. Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--c-murasaki-deep);
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-murasaki-deep);
  text-decoration: none;
  letter-spacing: .1em;
  overflow: hidden;
}
.btn--solid { background: var(--c-murasaki-deep); color: var(--c-kinari); }
.btn--solid:hover { color: var(--c-kinari); }
.btn::after,
.link-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn::after { left: 28px; right: 28px; bottom: 10px; width: auto; }
.btn:hover::after, .link-line:hover::after { transform: scaleX(1); }
.btn:hover { color: var(--c-murasaki-deep); }
.btn--solid:hover { color: var(--c-kinari); }

.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  color: var(--c-murasaki-deep);
  text-decoration: none;
  letter-spacing: .1em;
}
.link-line .arrow { width: 28px; height: 8px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---------- 7. Image frame 錯位細框 ---------- */
.frame { position: relative; isolation: isolate; }
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(12px, 12px);
  border: 1px solid var(--c-murasaki);
  border-radius: var(--radius);
  z-index: -1;
  pointer-events: none;
}
.frame img { border-radius: var(--radius); }

/* ---------- 8. Line icon ---------- */
.icon {
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--c-murasaki);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 9. FAQ ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item summary {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 24px 40px 24px 0;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "Q";
  flex: none;
  font-family: var(--f-en);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: var(--c-murasaki-deep);
}
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--c-murasaki-deep), var(--c-murasaki-deep)) center / 14px 1px no-repeat,
    linear-gradient(var(--c-murasaki-deep), var(--c-murasaki-deep)) center / 1px 14px no-repeat;
  transition: transform .4s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__q {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.6;
}
.faq__a {
  display: flex;
  gap: 16px;
  padding: 0 40px 28px 0;
}
.faq__a::before {
  content: "A";
  flex: none;
  font-family: var(--f-en);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--c-karashi-ink);
}

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--c-fuji-pale);
  padding-block: 72px 32px;
  font-size: 15px;
}
.site-footer__grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: 5fr 4fr 3fr; gap: 64px; }
}
.site-footer .brand { margin-bottom: 24px; }
.nap { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
.nap dt { color: var(--c-sumi); letter-spacing: .12em; font-size: 13px; padding-top: 2px; }
.nap dd a { color: var(--c-murasaki-deep); }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.footer-nav a { color: var(--c-sumi); text-decoration: none; }
.footer-nav a:hover { color: var(--c-murasaki-deep); text-decoration: underline; }
.footer-label {
  font-family: var(--f-en);
  font-style: italic;
  color: var(--c-murasaki-deep);
  margin-bottom: 12px;
  letter-spacing: .06em;
}
.copy {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.copy a { color: var(--c-sumi); }

/* ---------- 11. 手機底部固定諮詢列 ---------- */
.contact-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--c-kinari);
  border-top: 1px solid var(--c-line);
  padding-bottom: env(safe-area-inset-bottom);
}
.contact-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .06em;
}
.contact-bar__tel { background: var(--c-murasaki-deep); color: var(--c-kinari); }
.contact-bar__tel:hover { color: var(--c-kinari); }
.contact-bar__line { color: var(--c-murasaki-deep); }
.contact-bar strong { font-family: var(--f-en); font-size: 18px; font-weight: 500; letter-spacing: .04em; }
@media (max-width: 1023.98px) { body { padding-bottom: 64px; } }
@media (min-width: 1024px) { .contact-bar { display: none; } }

/* ---------- 12. 動效：淡入 + 8px 位移，0.6s ---------- */
.js .reveal { opacity: 0; transform: translateY(8px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-visible { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.footer-nav--single { grid-template-columns: 1fr; }
