@charset "utf-8";
/* =============================================================
   ReSarah — 全站共用樣式 common.css
   -------------------------------------------------------------
   2026-11-01 彙整：原本每頁 CSS 各自複製一份的
   Tokens / Reset / 圖片版位 / Logo / 按鈕 / 區塊標籤 / Header / Hero 外殼 / Footer
   全部集中到這裡，頁面 CSS 只留該頁專屬的區塊。

   載入順序（每一頁都一樣）：
     assets/vendor/slick/slick.css → common.css → （群組共用 css）→ 該頁 css

   規則：
   1. 單一斷點 1024px：≥1024 桌機／<1024 手機（@media (max-width: 1023.98px)）
      1024～1440 之間的縮放靠 clamp()，不是斷點
   2. 字級一律用下方的 --fs-* 字級表，頁面 CSS 不要再自己寫 px
   3. 按鈕一律用 .btn + 顏色修飾（--pink / --outline / --gold …），
      尺寸（字級 20px、padding）全站統一，頁面 CSS 不要再改按鈕的 padding / font-size
   ============================================================= */

/* =============================================================
   Design Tokens
   ============================================================= */
:root {
  /* ---------- Color ---------- */
  --c-text:        #212121;
  --c-text-invert: #ffffff;
  --c-muted:       rgba(33,33,33,.62);
  --c-surface:     #efe7dc;   /* Surface Default 米 */
  --c-brand2:      #ead8d8;   /* Brand Secondary 粉 */
  --c-brand-primary: #ebcfcd; /* 粉膚，section 底／巨型字 */
  --c-pink:        #eda3c6;   /* 主要 CTA */
  --c-pink-lt:     #fde3e3;   /* Hero 淺粉 CTA */
  --c-gold:        #caa561;   /* Nav CTA／金色字 */
  --c-green:       #34c759;
  --c-line-green:  #00b900;   /* LINE 品牌綠 */
  --c-line:        #d9d9d9;
  --c-rule:        rgba(33,33,33,.35);
  --c-ph:          #ded8ce;   /* 圖片佔位底色 */
  --c-error:       #c0392b;

  /* 舊命名（index / shoes-style-guide / about-story 系列還在用），全部指回新色票 */
  --c-text-primary:    var(--c-text);
  --c-text-tertiary:   #7a7a7a;
  --c-surface-default: var(--c-surface);
  --c-surface-dark:    var(--c-text);
  --c-surface-white:   #ffffff;
  --c-surface-gold:    var(--c-gold);
  --c-accent-pink:     var(--c-pink);
  --c-accent-pink-lt:  var(--c-pink-lt);
  --c-accent-green:    var(--c-green);

  /* ---------- Typography ---------- */
  --ff-display: 'Didot', 'Bodoni 72', 'Prata', 'Playfair Display', 'Times New Roman', serif;
  --ff-base:    'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;

  /* 全站字級表（桌機；1024→1440 之間等比縮，1440 時＝Figma 原值）
     手機版數值在檔尾的 @media 裡                                      */
  --fs-mega:    clamp(150px, 20.83vw, 300px); --lh-mega:    .8;     /* 巨型襯底字 300 */
  --fs-word:    clamp(76px, 10.63vw, 153px);  --lh-word:    .875;   /* 巨型英文字 153/134 */
  --fs-display: clamp(62px, 6.25vw, 90px);    --lh-display: 1.111;  /* Didot 大標 90/100 */
  --fs-num:     clamp(50px, 5.56vw, 80px);    --lh-num:     1;      /* 大數字 01／02… */
  --fs-titleb:  clamp(30px, 2.78vw, 40px);    --lh-titleb:  1.3;    /* Title-big 40/52 */
  --fs-h2:      clamp(27px, 2.5vw, 36px);     --lh-h2:      1.58;   /* 文章大標 36/57 */
  --fs-h3:      clamp(24px, 2.22vw, 32px);    --lh-h3:      1.3;    /* Didot 英文小標 32 */
  --fs-t3:      clamp(22px, 1.94vw, 28px);    --lh-t3:      1.6;    /* 中文小標 28 */
  --fs-t4:      24px;                         --lh-t4:      1.4;    /* 卡片大標 24 */
  --fs-title:   20px;                         --lh-title:   28px;   /* 卡片標題 20 */
  --fs-lead:    20px;                         --lh-lead:    28px;   /* 主要段落 20 */
  --fs-btn:     16px;                         --lh-btn:     20px;   /* ★ 全站按鈕 20 */
  --fs-body:    16px;                         --lh-body:    28px;   /* 內文 */
  --fs-bodyb:   16px;                         --lh-bodyb:   24px;   /* 內文粗 */
  --fs-caption: 14px;                         --lh-caption: 22px;   /* 說明文字 */
  --fs-small:   12px;                         --lh-small:   18px;   /* 最小字 */

  /* 舊命名 */
  --fs-title-b: var(--fs-titleb);  --lh-title-b: var(--lh-titleb);

  /* ---------- Button（全站統一尺寸） ---------- */
  --btn-py: 5px;          /* 9 + 28 + 9 + 邊框 1×2 = 48px 高 */
  --btn-px: 15px;
  --btn-h:  32px;

  /* ---------- Layout ---------- */
  --canvas:      1440px;
  --container:   1200px;                      /* 內容欄寬（左右各 120px） */
  --header-pad:  clamp(24px, 4.51vw, 65px);
  --hero-h:      900px;
  --nav-gap:     clamp(14px, 2.64vw, 38px);
  --logo-w:      180px;                       /* Header logo 原大小 */
  --logo-w-sm:   130px;                       /* 往下捲縮小後 */
  --header-anim: .3s linear;
}

/* =============================================================
   Reset
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }

/* 內容欄：1200 + 左右 20 */
.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  padding-inline: 20px;
}
/* 1440 內容框：裡面的 % 都以 1440 換算 */
.inner { max-width: var(--canvas); margin-inline: auto; }

/* =============================================================
   圖片版位
   ★ 圖片一律寫在 HTML（<img> 或 PHP ui_bg() 輸出的 inline style），CSS 只管裁切
   ============================================================= */
.media { position: relative; overflow: hidden; background: var(--c-text-invert); }
.media--fill { position: absolute; inset: 0; }
.media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--contain { background: none; }
.media--contain > img { object-fit: contain; }

.bgimg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 圖片佔位（正式素材全部接上後整段可刪） */
.ph {
  position: relative;
  background: linear-gradient(135deg, #d8d2c8 0%, #c3bcb0 100%);
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 8px;
  text-align: center;
  font-family: var(--ff-display);
  font-size: var(--fs-small);
  letter-spacing: .12em;
  color: rgba(255,255,255,.85);
}

/* =============================================================
   Logo
   ============================================================= */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1;
}
.brand__main {
  font-family: var(--ff-display);
  font-size: clamp(42px, 4.44vw, 64px);
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--ff-display);
  font-size: clamp(10px, .9vw, 13px);
  letter-spacing: .18em;
  margin-top: 12px;
  text-align: center;
  white-space: nowrap;
}
.brand__main img {
  display: block;
  width: var(--logo-w);
  height: auto;
  transition: width var(--header-anim), filter var(--header-anim);
}

/* =============================================================
   Buttons ★ 全站統一
   - 尺寸只有一種：字級 20px／高 48px／左右 32px
     （所有按鈕都帶 1px 邊框，實心按鈕的邊框＝底色，外框按鈕才不會比較高）
   - 顏色用修飾 class：--pink 主要／--outline 次要／--pinklt 淺粉／--white 白／
     --light 透明白框／--gold 金（Header）／--green、.btn__line LINE 綠
   - .btn--sm 保留 class 名稱（HTML 不用改），但尺寸跟一般按鈕相同
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  min-height: var(--btn-h);
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--ff-base);
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn:hover  { opacity: .85; }
.btn:active { transform: translateY(1px); }

.btn--pink    { background: var(--c-pink);    border-color: var(--c-pink);    color: var(--c-text); }
.btn--pinklt  { background: var(--c-pink-lt); border-color: var(--c-pink-lt); color: var(--c-text); }
.btn--white   { background: #fff;             border-color: #fff;             color: var(--c-text); }
.btn--outline { background: transparent;      border-color: var(--c-pink);    color: var(--c-text); }
.btn--light   { background: transparent;      border-color: rgba(255,255,255,.85); color: var(--c-text-invert); }
.btn--gold    { background: var(--c-gold);    border-color: var(--c-gold);    color: var(--c-text); }
.btn--green,
.btn__line    { background: var(--c-line-green) !important; border-color: var(--c-line-green) !important; color: #fff; }
.btn--sm      { /* 尺寸已統一，保留 class 只為相容舊 HTML */ }

/* 按鈕列 */
.btns { display: flex; flex-wrap: wrap; gap: 12px 18px; }

/* 表單送出鈕：與 .btn 同一套尺寸，只是撐滿或加寬 */
.btn-submit,
.f-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-h);
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid var(--c-pink);
  border-radius: 999px;
  background: var(--c-pink);
  color: var(--c-text);
  font-family: var(--ff-base);
  font-size: var(--fs-btn);
  line-height: var(--lh-btn);
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: opacity .25s ease;
}
.btn-submit:hover,
.f-submit:hover { opacity: .85; }
.btn-submit[disabled] { opacity: .5; cursor: progress; }

/* =============================================================
   區塊標籤（圓圈 + 線 + 文字）
   ============================================================= */
.sec-label {
  display: flex;
  align-items: center;
  min-height: 54px;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.sec-label::before {
  content: '';
  width: 28px; height: 28px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .55;
}
.sec-label span { position: relative; padding-left: 76px; margin-left: -25px; }
.sec-label span::before {
  content: '';
  position: absolute;
  left: 12px; top: 50%;
  width: 52px; height: 1px;
  background: currentColor;
  opacity: .45;
}

/* =============================================================
   標題字
   ============================================================= */
.display {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}
.display--mega { font-size: var(--fs-word); line-height: var(--lh-word); white-space: nowrap; }
.title-b { font-size: var(--fs-titleb); line-height: var(--lh-titleb); font-weight: 500; }

/* 巨型襯底英文字 */
.mega {
  font-family: var(--ff-display);
  font-size: var(--fs-mega);
  line-height: var(--lh-mega);
  color: var(--c-brand-primary);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.mega--light { color: var(--c-surface-white); }

/* 金色英文小標（about-us / custom-made-shoes / reservation） */
.ribon__en {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 10vw, 86px);
  line-height: 1;
  color: var(--c-gold);
  margin-left: -50px;
  white-space: nowrap;
}

/* 置中細直線 */
.rule-v { width: 1px; height: 102px; margin-inline: auto; background: var(--c-rule); }

/* 輪播箭頭（情境卡 / 款式卡共用） */
.slider-nav { display: flex; gap: 14px; }
.slider-nav button {
  width: 34px; height: 34px;
  display: grid; place-content: center;
  transition: opacity .25s ease;
}
.slider-nav button:hover { opacity: .6; }

/* =============================================================
   HEADER（header.php 白字 logo／header_black.php 黑字 logo）
   - 往下捲：site.js 加 .is-scrolled → logo 縮小、轉白底黑字
   - 手機（<1024）：漢堡選單，打開時 .is-open
   ============================================================= */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--c-text);
}
.site-header--invert { color: var(--c-text-invert); }

.header__inner {
  position: fixed;
  width: 100%;
  margin-inline: auto;
  padding: 5px var(--header-pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding var(--header-anim), background-color var(--header-anim), box-shadow var(--header-anim);
}
.header__inner .brand { margin-top: 12px; transition: margin var(--header-anim); }

.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: var(--nav-gap); }
.nav__list { display: flex; align-items: center; gap: var(--nav-gap); }
.nav__list a {
  display: inline-block;
  font-size: clamp(13px, 1.11vw, 16px);
  line-height: var(--lh-body);
  white-space: nowrap;
  color: #fff;
  transition: opacity .25s ease, color var(--header-anim);
}
.nav__list a:hover { opacity: .6; }
.nav__en { font-family: var(--ff-display); font-size: clamp(15px, 1.25vw, 18px); }
.nav__list.link__black a { color: #000; }
/* Header 的預約鈕：字級同全站按鈕，1024 時左右 padding 收一點避免擠出橫向捲軸 */
.nav .btn { padding-inline: clamp(14px, 1.67vw, 24px); }

.site-header .nav-toggle { color: #fff; transition: color var(--header-anim); }   /* 白漢堡壓在 hero 照片上 */
.site-header:has(.link__black) .nav-toggle { color: var(--c-text); }              /* header_black.php 深色 */

/* 手機選單打開（.is-open） */
.site-header.is-open { background: #fff; box-shadow: 0 1px 0 rgba(33,33,33,.08); }
.site-header.is-open .header__inner { background: #fff; }
.site-header.is-open .nav-toggle { color: var(--c-text); }
.site-header.is-open .brand__main img { filter: brightness(0); }                 /* 白 logo 在白底轉黑 */
.site-header.is-open .nav { background: #fff; box-shadow: 0 16px 24px rgba(0,0,0,.08); }
.site-header.is-open .nav__list a { display: block; color: var(--c-text); }

/* 捲動縮小（.is-scrolled） */
.site-header.is-scrolled .header__inner {
  padding-top: 8px;
  padding-bottom: 8px;
  background-color: #fff;
  box-shadow: 0 1px 0 rgba(33,33,33,.08);
}
.site-header.is-scrolled .header__inner .brand { margin-top: 0; }
.site-header.is-scrolled .brand__main img { width: var(--logo-w-sm); filter: brightness(0); }
.site-header.is-scrolled .nav__list a,
.site-header.is-scrolled .nav-toggle { color: var(--c-text); }

/* =============================================================
   HERO 外殼（slick slider）—— 文案排版因頁而異，寫在各頁 CSS
   ============================================================= */
.hero { position: relative; height: var(--hero-h); background: #8f9d78; overflow: hidden; }
.hero__slider,
.hero__slider .slick-list,
.hero__slider .slick-track,
.hero__slide { height: var(--hero-h); }
.hero__slide { position: relative; }
.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.22) 100%);
}
.hero__inner {
  position: relative;
  height: 100%;
  max-width: var(--canvas);
  margin-inline: auto;
  padding-inline: var(--header-pad);
}
.hero__title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}

/* slick dots — Figma：60 × 3px 短線，y=854，靠右 */
.hero .slick-dots {
  position: absolute;
  bottom: 43px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--canvas));
  padding-inline: var(--header-pad);
  display: flex !important;
  justify-content: flex-end;
  gap: 6px;
  z-index: 5;
}
.hero .slick-dots li { width: 60px; height: 3px; }
.hero .slick-dots li button {
  display: block;
  width: 60px; height: 3px;
  padding: 0;
  text-indent: -9999px;
  background: var(--c-line);
  transition: background .25s ease;
}
.hero .slick-dots li.slick-active button,
.hero .slick-dots li button:hover { background: var(--c-gold); }

/* =============================================================
   FOOTER（footer.php）
   ============================================================= */
.site-footer { background: var(--c-text); color: var(--c-text-invert); }
.footer__inner {
  max-width: 1158px;
  margin-inline: auto;
  padding: 75px 20px 40px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 28px 0;
  min-height: 258px;
}
.footer__brand {
  flex: 0 1 152px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.footer__brand .brand__main { font-size: 28px; width: 98px; }
.footer__brand .brand__sub  { font-size: 8px; margin-top: 7px; letter-spacing: .14em; text-align: left; }

.footer__col { flex: 0 1 219px; min-width: 0; padding-right: 24px; }
.footer__col--shop   { flex-basis: 220px; }
.footer__col--social { flex-basis: 165px; }
.footer__col--last   { flex: 1 1 104px; min-width: 0; padding-right: 0; }

.footer__list { font-size: var(--fs-caption); line-height: var(--lh-caption); }
.footer__list li { position: relative; padding-left: 14px; }
.footer__list li::before { content: '・'; position: absolute; left: -2px; color: rgba(255,255,255,.75); }
.footer__list a { transition: opacity .25s ease; }
.footer__list a:hover { opacity: .65; }
.footer__list--plain li::before { content: none; }
.footer__list--hours { margin-top: 22px; }

.footer__social { display: flex; gap: 48px; margin-top: 60px; }
.footer__social a { display: block; width: 30px; filter: brightness(0) invert(1); }
.footer__social svg { width: 28px; height: 28px; }

/* =============================================================
   Visit 門市區塊（index / shoes-style-guide 共用）
   ============================================================= */
.visit { position: relative; padding: 60px 0 90px; overflow: hidden; }
.visit__mega { position: absolute; left: -41px; top: 150px; }
.visit__inner { position: relative; }
.visit__label { margin-bottom: 130px; }
.visit__grid { display: grid; grid-template-columns: 420px 1fr; gap: 60px; align-items: end; }
.visit__title { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 700; margin-bottom: 16px; }
.visit__text  { max-width: 415px; margin-bottom: 26px; }
.visit__facts { font-size: var(--fs-caption); line-height: var(--lh-caption); margin-bottom: 26px; }
.visit__facts li { position: relative; padding-left: 22px; }
.visit__facts li::before { content: '／'; position: absolute; left: 0; }
.visit__stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

/* =============================================================
   小工具 class
   ============================================================= */
.color__golden { color: var(--c-gold); }
.color__white  { color: #fff; }
.color__pink   { color: var(--c-pink); }
.bg__golden    { background: var(--c-gold) !important; }
.bd__golden    { border-color: var(--c-gold) !important; }
.btn.bg__golden { border-color: var(--c-gold); }

/* =============================================================
   ★ 唯一的斷點：1024px
   ============================================================= */
@media (max-width: 1023.98px) {
  :root {
    --header-pad: 20px;
    --hero-h:     560px;

    /* 手機字級 */
    --fs-mega:    88px;  --lh-mega:    1;
    --fs-word:    64px;  --lh-word:    1;
    --fs-display: 40px;  --lh-display: 1.2;
    --fs-num:     44px;
    --fs-titleb:  24px;  --lh-titleb:  1.5;
    --fs-h2:      24px;  --lh-h2:      1.5;
    --fs-h3:      22px;
    --fs-t3:      20px;  --lh-t3:      1.5;
    --fs-t4:      20px;
    --fs-title:   18px;  --lh-title:   26px;
    --fs-lead:    18px;  --lh-lead:    28px;

    /* 手機按鈕：字級仍是 20px，左右收窄一點，兩顆並排才放得下 */
    --btn-px: 24px;
  }

  /* ---------- Header → 漢堡選單 ---------- */
  .header__inner { padding-top: 18px; align-items: center; }
  .header__inner .brand { margin-top: 0; }
  .brand__main { font-size: 32px; }
  .brand__sub  { font-size: 10px; margin-top: 5px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 10px;
    width: 50px; height: 50px; padding: 8px;
  }
  .nav-toggle span { display: block; height: 2px; background: currentColor; transition: transform .3s ease, opacity .3s ease; }
  .site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
  .site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }

  .nav {
    position: absolute; inset: 100% 0 auto 0;
    display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 24px;
    color: var(--c-text);
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .site-header.is-open .nav { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { font-size: var(--fs-lead); padding: 12px 0; border-bottom: 1px solid rgba(33,33,33,.08); }
  .nav .btn { margin-top: 16px; align-self: flex-start; padding-inline: var(--btn-px); }
  .site-header.is-scrolled .header__inner { padding-top: 8px; padding-bottom: 8px; }

  /* ---------- Hero dots ---------- */
  .hero .slick-dots { bottom: 26px; justify-content: flex-start; padding-inline: 20px; }
  .hero .slick-dots li,
  .hero .slick-dots li button { width: 36px; }

  /* ---------- 金色英文小標：桌機刻意凸出到左邊留白，手機歸零 ---------- */
  .ribon__en { margin-left: 0; margin-bottom: 8px; }

  /* ---------- Visit ---------- */
  .visit { padding: 50px 0 60px; }

  /* ---------- Footer ---------- */
  .footer__inner { flex-direction: column; gap: 26px; padding: 48px 20px 40px; min-height: 0; }
  .footer__inner > * { flex: 0 0 auto; width: auto; }
  .footer__col { padding-right: 0; }
  .footer__social { margin-top: 24px; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
