/* seraphinfang.com — 沿用舊站的視覺:黑 / #EAEAEA 淺灰 / Noto Serif 標題 */
:root {
  --black: #000;
  --white: #fff;
  --gray-bg: #EAEAEA;
  --gray-toggle: #929292;
  --gray-toggle-body: #C8C8C8;
  --muted: #54595F;
  --text: #000;
  --serif: "Noto Serif", "Noto Serif TC", "Noto Serif JP", "Songti TC", "PMingLiU", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --container: 1140px;
  --narrow: 862px;
  --header-h: 70px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--gray-bg); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; fill: currentColor; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: calc(var(--narrow) + 32px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px;
  color: var(--white); background: transparent; transition: background .3s, backdrop-filter .3s;
}
.site-header.is-scrolled { background: rgba(0,0,0,.8); backdrop-filter: blur(6px); }
.logo { font-family: var(--serif); font-weight: 600; font-size: 28px; letter-spacing: .5px; text-decoration: none; color: var(--white); line-height: 1; white-space: nowrap; }
.logo b { font-weight: 600; font-size: 1.5em; }
.header-nav { display: flex; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--white); border-radius: 50%; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--white);
  background: rgba(0,0,0,.25); transition: background .2s, color .2s;
}
.pill:hover { background: var(--white); color: var(--black); }
.pill-icon svg { width: 16px; height: 16px; }
@media (max-width: 767px) {
  /* 手機:logo 28px 會把右側語言鈕擠出畫面(0922 正式站實測 390px 寬時 Jp/電話 被裁掉) */
  .site-header { padding: 0 12px; }
  .logo { font-size: 17px; }
  .header-nav { gap: 6px; }
  .pill { width: 34px; height: 34px; font-size: 13px; }
}
@media (max-width: 359px) {
  .site-header { padding: 0 8px; }
  .logo { font-size: 15px; }
  .header-nav { gap: 4px; }
  .pill { width: 30px; height: 30px; font-size: 12px; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--black); overflow: hidden; }
.hero-slides { position: relative; height: clamp(600px, 100vh, 960px); }
.hero-slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; }
.hero-slides .slide.is-active { opacity: 1; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 767px) {
  /* 1553/1080 = 143.8%;用 min() 定高度而不是 aspect-ratio+max-height(後者會把寬度壓窄,右側露黑邊) */
  .hero-slides { height: min(143.8vw, 80vh); }
}

/* 三張卡片:桌機在 hero 底部跑馬燈;手機改成堆疊(舊站手機版被截斷+被 LINE 鈕蓋住) */
.cards-strip { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; }
.cards-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.cards-strip:hover .cards-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.card { display: flex; align-items: stretch; background: var(--black); color: var(--white); border-top: 1px solid rgba(255,255,255,.4); }
.cards-track .card { width: 520px; flex: none; margin-right: 24px; }
.card img { width: 194px; height: 138px; object-fit: cover; flex: none; border: 3px solid var(--white); border-right: 0; }
.card-text { display: flex; flex-direction: column; justify-content: center; padding: 8px 18px; font-size: 14px; line-height: 1.8; }
.cards-stack { display: none; background: var(--black); padding: 8px 0; }
.cards-stack .card { border-top: 0; }
.cards-stack .card img { width: 120px; height: 96px; border: 0; }
.cards-stack .card-text { font-size: 12px; line-height: 1.6; padding: 6px 12px; }
@media (max-width: 767px) {
  .cards-strip { display: none; }
  .cards-stack { display: block; }
}
@media (prefers-reduced-motion: reduce) { .cards-track { animation: none; } .hero-slides .slide, .gear-slides .slide { transition: none; } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-title { margin-bottom: 28px; }
.section-title h2 { font-family: var(--serif); font-weight: 600; font-size: 33px; line-height: 1.2; color: var(--black); }
.section-title .sub { font-family: var(--serif); font-size: 19.2px; color: var(--muted); }
.section-title.center { text-align: center; }
.section-title.row { display: flex; align-items: baseline; gap: 18px; justify-content: center; }
@media (max-width: 767px) { .section-title.row { flex-direction: column; gap: 4px; align-items: center; } }

/* voice accordion */
.acc { border-bottom: 1px solid rgba(0,0,0,.15); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: var(--gray-toggle); padding: 15px; font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--black);
}
.acc summary::-webkit-details-marker { display: none; }
.acc-icon { position: relative; width: 12px; height: 12px; flex: none; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--black); }
.acc-icon::before { left: 0; right: 0; top: 5px; height: 2px; }
.acc-icon::after { top: 0; bottom: 0; left: 5px; width: 2px; }
.acc[open] .acc-icon::after { display: none; }
.acc-body { background: var(--gray-toggle-body); padding: 15px; }
.sample { margin-bottom: 14px; }
.sample p { font-family: var(--serif); font-size: 15px; margin-bottom: 6px; }
.sample audio { width: 100%; height: 34px; }

/* video grid */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.video-thumb { position: relative; padding: 0; border: 2px solid var(--white); background: var(--black); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .3s; }
.video-thumb:hover img { opacity: 1; transform: scale(1.03); }
.play { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(255,255,255,.9); }
.play::after { content: ""; position: absolute; left: 24px; top: 17px; border-style: solid; border-width: 13px 0 13px 20px; border-color: transparent transparent transparent var(--black); }
@media (max-width: 767px) { .video-grid { gap: 6px; } .play { width: 40px; height: 40px; margin: -20px 0 0 -20px; } .play::after { left: 15px; top: 11px; border-width: 9px 0 9px 14px; } }

/* experience */
.section-experience { position: relative; background: var(--black); color: var(--white); padding: 72px 0; overflow: hidden; }
.section-experience::before { content: ""; position: absolute; inset: 0; background: var(--bg) center / cover no-repeat; opacity: .48; }
.section-experience .container { position: relative; }
.section-experience h2 { font-family: var(--serif); font-weight: 600; font-size: 33px; line-height: 1.3; margin-bottom: 20px; }
.section-experience p { font-family: var(--serif); font-size: 16px; line-height: 1.7; }

/* equipment */
.section-equipment { padding-bottom: 0; }
.gear { background: var(--black); padding: 16px 0 20px; }
.gear-slides { position: relative; max-width: var(--container); margin: 0 auto; aspect-ratio: 2.6 / 1; overflow: hidden; }
.gear-slides .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 1s ease; }
.gear-slides .slide.is-active { opacity: 1; }
.gear-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.gear-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.gear-dots button[aria-selected="true"] { background: var(--white); }

/* contact */
.contact-icons { display: flex; justify-content: center; gap: 48px; }
.contact-icons a, .contact-icons button { color: #3d3d3d; background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s, transform .2s; }
.contact-icons a:hover, .contact-icons button:hover { color: var(--black); transform: scale(1.1); }
.contact-icons svg { width: 48px; height: 48px; }
@media (max-width: 767px) { .contact-icons { gap: 28px; } .contact-icons svg { width: 40px; height: 40px; } }

/* bio */
.section-bio { background: var(--black); color: var(--white); padding: 64px 0 40px; }
.section-bio .container { max-width: 1140px; }
.section-bio .bio-name { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: .5px; margin-bottom: 18px; }
.bio-name b { font-weight: 600; font-size: 1.4em; }
.bio-name .cjk { font-size: .95em; margin-left: .9em; letter-spacing: 0; }
.bio-name ruby rt { font-size: .38em; letter-spacing: .1em; font-weight: 400; }
.bio-h1 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.bio-title { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 26px; opacity: .85; }
.section-bio p { font-family: var(--serif); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.section-bio .clients { font-weight: 600; }

/* 隱私權政策等文字頁:沒有 hero → 頁首一開始就是實心,內文讓出頁首高度 */
.site-header.is-solid { background: var(--black); }
.legal { padding-top: calc(var(--header-h) + 40px); background: var(--white); }
.legal h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.legal h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 36px 0 12px; padding-top: 12px; border-top: 1px solid #ddd; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.legal p, .legal li, .legal address { font-size: 15px; line-height: 1.8; margin-bottom: 10px; font-style: normal; }
.legal ul { padding-left: 1.4em; margin: 0 0 12px; }
.legal a { color: #0b57a4; word-break: break-all; }
.legal-dates { color: var(--muted); font-size: 14px !important; margin-bottom: 24px !important; }
.table-wrap { overflow-x: auto; margin: 8px 0 16px; -webkit-overflow-scrolling: touch; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; }
.legal th, .legal td { border: 1px solid #ccc; padding: 8px 10px; vertical-align: top; text-align: left; }
.legal thead th { background: #f2f2f2; white-space: nowrap; }
.legal tbody th { font-weight: 600; min-width: 7em; }
.legal .provider { font-weight: 400; color: var(--muted); font-size: 13px; }
.legal td.domains { word-break: break-word; min-width: 12em; font-size: 13px; }
@media (max-width: 767px) {
  .legal h1 { font-size: 24px; }
  .legal table { font-size: 13px; }
  .legal table.services { min-width: 640px; }   /* 手機:表格在自己的框內橫向捲動,頁面不捲 */
}

/* footer */
.footer-links { margin-bottom: 8px; font-size: 13px; }
.footer-links a { color: var(--white); opacity: .85; }
.footer-links a:hover { opacity: 1; }
.site-footer { background: var(--black); color: var(--white); padding: 18px 0 22px; }
.site-footer .container { border-top: 1px solid rgba(255,255,255,.7); padding-top: 14px; text-align: center; font-family: var(--serif); font-size: 15px; }

/* floating LINE */
.line-float { position: fixed; right: 0; bottom: 60px; width: 80px; height: 80px; z-index: 90; transition: transform .2s; }
.line-float:hover { transform: scale(1.08); }
.line-float svg { width: 100%; height: 100%; }
@media (max-width: 767px) { .line-float { width: 64px; height: 64px; bottom: 24px; } }

/* modals */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.85); }
.modal-box { position: relative; background: var(--black); color: var(--white); max-width: 92vw; }
.modal-video { width: min(1080px, 92vw); }
.video-frame { aspect-ratio: 16 / 9; width: 100%; background: var(--black); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-wechat { padding: 24px; text-align: center; background: var(--white); color: var(--black); width: min(420px, 92vw); }
.modal-wechat p { margin-bottom: 16px; font-size: 15px; }
.modal-wechat img { margin: 0 auto; width: 100%; }
.modal-close { position: absolute; top: -40px; right: 0; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--white); color: var(--black); font-size: 24px; line-height: 1; cursor: pointer; }
