/* ===========================================================
   Kokoro Tattoo v3 — 疊在原版 styles.css 之上
   原版識別不動（米色紙 / 玫瑰紅 / 襯線字 / こころ），只加質感與動態
   =========================================================== */

img { height: auto; }

/* ---------- 捲動進度線、導覽列收合 ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--rose);
  transform-origin: 0 50%; transform: scaleX(0);
  z-index: 300; pointer-events: none;
}
.nav { transition: transform .55s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease); }
.nav.nav-hidden { transform: translateY(-110%); }

@media (min-width: 769px) and (max-width: 1180px) {
  .nav-links { gap: 20px; }
  .nav-links .nav-opt { display: none; }
}

/* ---------- 小字放大 ---------- */
.kicker { font-size: 12px; }
.meta-label { font-size: 11px; }
.style-card .desc { font-size: 15px; line-height: 1.95; }
.info-hint { font-size: 13px; }
.ph-tick { font-size: 10px; }
.section { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }

/* ---------- 主視覺：こころ逐字浮現、筆刷線、兩側作品 ---------- */
.hero { min-height: min(calc(100vh - 72px), 900px); padding-top: clamp(40px, 5.5vw, 76px); padding-bottom: clamp(64px, 7vw, 92px); }
.hero-eyebrow { margin-bottom: 28px; }
.hero-title { margin-bottom: 24px; }
.hero-sub { margin-bottom: 32px; }
.hero-cta { margin-bottom: 44px; }
.hero-title .ja { animation: none; opacity: 1; }
.hero-title .ja .ch {
  display: inline-block;
  animation: charIn 1.25s var(--ease) both;
  animation-delay: calc(var(--i) * .16s + .1s);
}
@keyframes charIn {
  from { opacity: 0; filter: blur(16px); transform: translateY(42px) scale(1.08); }
  to   { opacity: 1; filter: blur(0);    transform: none; }
}
.hero-title .ja .brush {
  position: absolute; left: 4%; right: 4%; bottom: -.04em;
  width: 92%; height: .16em; overflow: visible; max-width: none;
  color: var(--sakura-deep); opacity: .55;
}
.hero-title .ja .brush path {
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: brush 1.5s var(--ease) .75s forwards;
}
@keyframes brush { to { stroke-dashoffset: 0; } }
.hero-title .zh { animation-delay: .7s; }
.hero-sub { animation-delay: .9s; }
.hero-cta { animation-delay: 1.05s; }
.hero-meta { animation-delay: 1.2s; }

.hero-work {
  position: absolute; z-index: 1;
  width: clamp(170px, 15.5vw, 250px);
  padding: 7px; background: #fff;
  box-shadow: 0 34px 60px -30px rgba(26, 24, 22, .5), 0 2px 6px rgba(26, 24, 22, .06);
  transform: translate3d(0, var(--py, 0px), 0) rotate(var(--r, 0deg));
  will-change: transform;
  animation: workIn 1.6s var(--ease) both;
}
.hero-work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.hero-work-l { left: max(2.5vw, calc(50% - 690px)); top: 17%; --r: -5deg; animation-delay: .55s; }
.hero-work-r { right: max(2.5vw, calc(50% - 690px)); top: 36%; --r: 4deg; animation-delay: .8s; }
@keyframes workIn {
  from { opacity: 0; transform: translate3d(0, 80px, 0) rotate(0deg) scale(.92); }
}
@media (max-width: 1180px) { .hero-work { display: none; } }

/* ---------- 作品跑馬燈 ---------- */
.works-marquee {
  position: relative; z-index: 2; overflow: hidden;
  padding: 0 0 clamp(40px, 6vw, 72px);
  background: var(--paper-2);
}
.wm-track {
  display: flex; gap: clamp(12px, 1.6vw, 22px); width: max-content;
  animation: marquee 70s linear infinite;
}
.works-marquee:hover .wm-track, .works-marquee:focus-within .wm-track { animation-play-state: paused; }
.wm-track a { display: block; flex: none; overflow: hidden; background: var(--paper-3); }
.wm-track img {
  height: clamp(210px, 27vw, 360px); width: auto; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 1s var(--ease), filter .6s var(--ease);
}
.wm-track a:hover img { transform: scale(1.05); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 捲動點亮的宣言 ---------- */
.statement {
  position: relative; z-index: 2;
  padding: clamp(110px, 17vw, 240px) var(--gutter);
  background: var(--paper);
}
.statement p {
  max-width: 1040px; margin: 0 auto;
  font-family: var(--font-zh); font-weight: 400;
  font-size: clamp(26px, 4.3vw, 58px);
  line-height: 1.75; letter-spacing: .1em; color: var(--ink);
}
.statement .c { opacity: .13; transition: opacity .45s var(--ease), color .45s var(--ease); }
.statement .c.on { opacity: 1; }
.statement .r.on { color: var(--rose); }
.statement .sig {
  display: block; margin-top: 44px;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .25em; color: var(--ink-muted);
}

/* ---------- 作品：完整比例、遮罩揭開、可放大 ---------- */
.g3-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
/* 遮罩只加在裡面的按鈕上、而且只有 JS 啟動後才遮；外層 figure 永遠有實際面積，進場偵測才不會失效 */
.g3 { position: relative; overflow: hidden; background: var(--paper-2); }
.js .g3 button { clip-path: inset(100% 0 0 0); transition: clip-path 1.15s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .g3.in button { clip-path: inset(0 0 0 0); }
.g3.is-hidden { display: none; }
.g3 button { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.g3 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.5s var(--ease); }
.js .g3 img { transform: scale(1.14); }
.js .g3.in img { transform: scale(1); }
.js .g3.in:hover img { transform: scale(1.05); transition-duration: .9s; }
.g3 figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 44px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(26, 24, 22, .8));
  color: var(--paper);
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-family: var(--font-zh); font-size: 15px; letter-spacing: .14em;
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.g3 figcaption small { font-family: var(--font-sans); font-size: 12px; letter-spacing: .2em; color: var(--sakura); white-space: nowrap; }
.g3:hover figcaption, .g3:focus-within figcaption { opacity: 1; transform: none; }
@media (max-width: 1024px) { .g3-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .g3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 figcaption { opacity: 1; transform: none; padding: 30px 10px 9px; font-size: 13px; letter-spacing: .08em; }
  .g3 figcaption small { display: none; }
}

/* 游標提示（僅滑鼠裝置） */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 400;
  width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rose); color: #fff;
  font-family: var(--font-zh); font-size: 13px; letter-spacing: .3em; text-indent: .3em;
  pointer-events: none;
  transform: scale(0); transition: transform .4s var(--ease);
}
.cursor.on { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { .g3 button { cursor: none; } }

/* 放大檢視 */
.lb { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: none; max-height: none; color: var(--paper); }
.lb::backdrop { background: rgba(20, 18, 16, .94); }
.lb[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 24px 16px 20px; }
.lb img { max-width: min(92vw, 900px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; animation: lbIn .5s var(--ease) both; }
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } }
.lb-cap { margin-top: 14px; font-family: var(--font-zh); font-size: 15px; letter-spacing: .16em; text-align: center; }
.lb-cap small { display: inline-block; margin-left: 14px; font-family: var(--font-sans); font-size: 12px; letter-spacing: .2em; color: var(--sakura); }
.lb-btn { position: fixed; top: 50%; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; border: 1px solid rgba(250, 247, 240, .35); color: var(--paper); font-size: 22px; line-height: 1; transition: background .3s var(--ease), border-color .3s var(--ease); }
.lb-btn:hover { background: var(--rose); border-color: var(--rose); }
.lb-prev { left: clamp(10px, 3vw, 40px); }
.lb-next { right: clamp(10px, 3vw, 40px); }
.lb-close { top: 22px; right: clamp(10px, 3vw, 40px); margin-top: 0; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 14px; margin: 0; width: 48px; height: 48px; } }

/* ---------- 手稿（取代原「工藝」區） ---------- */
.sheets {
  position: relative; z-index: 2; overflow: hidden;
  padding: clamp(84px, 11vw, 150px) var(--gutter);
  background: var(--ink); color: var(--paper);
}
.sheets .kicker { color: var(--sakura); }
.sheets .h2 { color: var(--paper); }
.sheets .ja-sub { color: var(--sakura); }
.sheets .section-intro { color: rgba(250, 247, 240, .72); }
.sheets-stage {
  position: relative; max-width: var(--container); margin: clamp(30px, 5vw, 60px) auto 0;
  height: clamp(300px, 40vw, 540px);
  --s: 0;
}
.sheet {
  position: absolute; left: 50%; top: 50%;
  width: clamp(170px, 25vw, 350px);
  margin: 0; padding: 0; background: #fff;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8);
  will-change: transform;
}
.sheet img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.sheet-l { transform: translate(-50%, -50%) translateX(calc(var(--s) * -108%)) translateY(calc(var(--s) * 22px)) rotate(calc(var(--s) * -8deg)); }
.sheet-c { transform: translate(-50%, -50%) translateY(calc(var(--s) * -14px)) scale(calc(1 + var(--s) * .04)); z-index: 2; }
.sheet-r { transform: translate(-50%, -50%) translateX(calc(var(--s) * 108%)) translateY(calc(var(--s) * 22px)) rotate(calc(var(--s) * 8deg)); }
.sheets-points {
  max-width: var(--container); margin: clamp(40px, 6vw, 80px) auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid rgba(250, 247, 240, .2);
}
.sheets-points li { padding: 26px 28px 0 0; }
.sheets-points li + li { padding-left: 28px; border-left: 1px solid rgba(250, 247, 240, .2); }
.sheets-points strong { display: block; font-family: var(--font-zh); font-weight: 500; font-size: 20px; letter-spacing: .18em; margin-bottom: 8px; }
.sheets-points span { font-family: var(--font-zh); font-size: 15px; line-height: 1.9; letter-spacing: .06em; color: rgba(250, 247, 240, .72); }
@media (max-width: 700px) {
  .sheets-stage { height: 64vw; }
  .sheet { width: 36vw; }
  .sheet-l { transform: translate(-50%, -50%) translateX(calc(var(--s) * -84%)) rotate(calc(var(--s) * -7deg)); }
  .sheet-r { transform: translate(-50%, -50%) translateX(calc(var(--s) * 84%)) rotate(calc(var(--s) * 7deg)); }
  .sheets-points { grid-template-columns: minmax(0, 1fr); }
  .sheets-points li, .sheets-points li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid rgba(250, 247, 240, .2); }
}

/* ---------- 關於：照片換成手稿 ---------- */
.about-image-inner { background-size: cover; background-position: center; }

/* ---------- 聯絡：地圖換成地點卡 ---------- */
.contact-place {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 440px; padding: clamp(28px, 4vw, 48px);
  background: var(--ink); color: var(--paper);
}
.contact-place::before {
  content: '心'; position: absolute; right: -4%; top: -14%;
  font-family: var(--font-ja); font-size: clamp(260px, 34vw, 460px); line-height: 1;
  color: rgba(232, 180, 184, .09); pointer-events: none;
}
.contact-place .cp-ja { font-family: var(--font-ja); font-size: 14px; letter-spacing: .4em; color: var(--sakura); }
.contact-place .cp-big { font-family: var(--font-zh); font-weight: 400; font-size: clamp(72px, 10vw, 136px); line-height: 1.1; letter-spacing: .14em; margin: 10px 0 14px; }
.contact-place p { font-family: var(--font-zh); font-size: 15px; line-height: 1.9; letter-spacing: .08em; color: rgba(250, 247, 240, .75); max-width: 26em; }
.contact-place a { display: inline-block; margin-top: 22px; align-self: flex-start; font-family: var(--font-zh); font-size: 15px; letter-spacing: .16em; color: var(--paper); padding-bottom: 4px; background: linear-gradient(var(--sakura), var(--sakura)) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease), color .3s var(--ease); }
.contact-place a:hover { color: var(--sakura); background-size: 0 1px; background-position: 100% 100%; }

/* ---------- 減少動態 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-title .ja .ch, .hero-work, .hero-title .ja .brush path, .wm-track, .lb img { animation: none; }
  .hero-title .ja .brush path { stroke-dashoffset: 0; }
  .wm-track { flex-wrap: nowrap; overflow-x: auto; width: auto; }
  .js .g3 button, .js .g3 img { clip-path: none; transform: none; transition: none; }
  .statement .c { opacity: 1; transition: none; }
  .sheets-stage { --s: 1 !important; }
  .nav { transition: none; }
}

/* ===========================================================
   2026-11-13 設計調整：版型有變化、頁面縮短、手機首屏看得到作品
   =========================================================== */

/* ---------- 區塊標題：不再每區都置中 ---------- */
.head-left { text-align: left; }
.head-left .section-intro { margin-left: 0; }
.head-split { text-align: left; margin-bottom: clamp(28px, 4vw, 44px); }
.head-split .section-intro { margin: 16px 0 0; }
@media (min-width: 900px) {
  .head-split { display: grid; grid-template-columns: auto minmax(0, 440px); justify-content: space-between; align-items: end; gap: 48px; }
  .head-split .section-intro { margin: 0; }
}
.h2-inline { font-size: clamp(28px, 3.4vw, 42px); margin-bottom: clamp(20px, 2.6vw, 32px); }

/* ---------- 作品篩選＋風格說明 ---------- */
.gallery .gallery-filters { justify-content: flex-start; margin-bottom: 16px; }
.filter { min-height: 44px; font-size: 14px; letter-spacing: .14em; }
.filter-desc {
  max-width: 640px; min-height: 3.8em; margin: 0 0 clamp(24px, 3vw, 40px);
  font-family: var(--font-zh); font-size: 15px; line-height: 1.9; letter-spacing: .06em; color: var(--ink-soft);
}

/* ---------- 預約須知：改淺色，深色塊留給圖稿區與價格卡 ---------- */
.booking-rules { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.booking-rules h4 { color: var(--rose); border-bottom-color: var(--line); }
.booking-rules ul { color: var(--ink-soft); font-size: 15px; }
.booking-rules li::before { color: var(--rose); }
.booking-rules strong { color: var(--ink); }

/* ---------- 文章：一篇主打＋四篇標題列 ---------- */
.journal-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(28px, 4vw, 64px); align-items: start; }
.journal-feature {
  grid-column: 1; grid-row: 1 / span 4;
  background: var(--paper-2); color: var(--ink); border-color: var(--line);
}
.journal-feature:hover { border-color: var(--rose); box-shadow: 0 18px 32px rgba(26, 24, 22, .06); }
.journal-feature::before { background: var(--rose); }
.journal-feature .jc-meta { color: var(--ink-muted); }
.journal-feature h3.jc-title { color: var(--ink); }
.journal-feature .jc-excerpt { color: var(--ink-soft); font-size: 15px; }
.journal-feature .jc-excerpt strong { color: var(--rose); }
.journal-feature .jc-read { color: var(--rose); border-color: var(--rose); font-size: 14px; }
.journal-feature .jc-deco { color: rgba(157, 79, 74, .07); }
.journal-card:not(.journal-feature) {
  grid-column: 2; padding: 22px 0; background: none;
  border: 0; border-bottom: 1px solid var(--line);
}
.journal-card:not(.journal-feature):first-of-type { padding-top: 0; }
.journal-card:not(.journal-feature)::before { display: none; }
.journal-card:not(.journal-feature):hover { transform: none; box-shadow: none; border-color: var(--rose); }
.journal-card:not(.journal-feature) h3 { margin-bottom: 0; transition: color .3s var(--ease); }
.journal-card:not(.journal-feature):hover h3 { color: var(--rose); }
.journal-card:not(.journal-feature) .jc-excerpt,
.journal-card:not(.journal-feature) .jc-read,
.journal-card .jc-num { display: none; }
.jc-meta { font-size: 12px; margin-bottom: 10px; }
.journal-cta { text-align: left; }
@media (max-width: 900px) {
  .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-feature, .journal-card:not(.journal-feature) { grid-column: 1; grid-row: auto; }
  .journal-feature { margin-bottom: 26px; }
}

/* ---------- 常見問題：左標題、右題目 ---------- */
.faq .section-head { text-align: left; }
.faq .section-intro { margin-left: 0; }
.faq-list { max-width: none; margin: 0; }
@media (min-width: 1025px) {
  .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .faq .section-head { position: sticky; top: 120px; margin-bottom: 0; }
}
.q-body { font-size: 15px; }

/* ---------- 點擊範圍 ---------- */
.nav-toggle { width: 44px; height: 44px; }
.nav-toggle span { left: 10px; right: 10px; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.footer-col a { margin-bottom: 0; padding: 11px 0; }
.footer-col h5 { margin-bottom: 8px; }
.contact-place a { padding-top: 12px; padding-bottom: 12px; margin-top: 10px; }

/* ---------- 手機：首屏就看到作品 ---------- */
@media (max-width: 768px) {
  .hero { min-height: 0; align-items: flex-start; padding-top: 30px; padding-bottom: 34px; }
  .hero-ornament, .hero-meta, .hero-scroll { display: none; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-title { margin-bottom: 18px; }
  .hero-sub { font-size: 15px; line-height: 1.85; margin-bottom: 22px; }
  .hero-sub br { display: none; }
  .hero-cta { flex-wrap: nowrap; gap: 10px; margin-bottom: 0; }
  .hero-cta .btn { width: auto; flex: 1 1 0; padding: 14px 8px; white-space: nowrap; letter-spacing: .1em; }
  .works-marquee { padding-bottom: 36px; }
  .statement { padding-top: 84px; padding-bottom: 84px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .sheets { padding-top: 64px; padding-bottom: 64px; }
  .faq-item summary { padding: 18px 4px; gap: 12px; }
  .q-body { padding: 0 4px 22px; }
  .contact-place { min-height: 320px; }
}

/* ---------- 小字一律不小於 12px ---------- */
.hero-eyebrow, .info-label, .ph-badge, .jc-tag, .ph-en { font-size: 12px; }
@media (max-width: 768px) {
  .hero-eyebrow { letter-spacing: .36em; }
  .journal-feature { padding: 26px 22px; }
  .journal-feature .jc-excerpt br { display: none; }
  .journal-feature .jc-deco { display: none; }
  .about-image { max-width: 260px; margin: 0 auto; }
  .flow-arrow { display: none; }
  .booking-rules { padding: 24px 20px; }
}

/* ---------- 預約流程：手機改成直排（原版的三欄在手機會被擠壞） ---------- */
@media (max-width: 1024px) {
  .booking-flow.flow-3 { grid-template-columns: minmax(0, 1fr); gap: 0; margin-bottom: 32px; }
  .booking-flow.flow-3 .flow-arrow { display: none; }
  .booking-flow.flow-3 .flow-step {
    display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px;
    padding: 22px 0; text-align: left;
    background: none; border: 0; border-top: 1px solid var(--line);
  }
  .booking-flow.flow-3 .flow-step:last-child { border-bottom: 1px solid var(--line); }
  .booking-flow.flow-3 .step-num { grid-row: 1 / span 2; margin: 0; line-height: 1; }
  .booking-flow.flow-3 .flow-step h3 { margin-bottom: 6px; }
  .booking-flow.flow-3 .flow-step p { grid-column: 2; font-size: 15px; }
}

/* 平板以下「關於」改單欄時，圖不要撐滿整個寬度 */
@media (max-width: 1024px) { .about-image { max-width: 340px; margin: 0 auto; } }
@media (max-width: 768px) { .about-image { max-width: 260px; } }
