/* 全站共用版面：layout / nav / main / links / 語系字型 */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  padding: 0;
  color: #000;
  font-size: 1rem;
  line-height: 1.7;
  font-family: "PMingLiU", "新細明體", "MingLiU", "細明體", "DFKai-SB", "標楷體", serif;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Crect fill='%23f7f7f7' width='8' height='8'/%3E%3Cpath d='M0 0h1v1H0zm4 4h1v1H4z' fill='%23ececec'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
html[lang="en"] body {
  font-family: "PMingLiU", "新細明體", "MingLiU", "細明體", "DFKai-SB", "標楷體", Georgia, "Times New Roman", serif;
}
html[lang="ja"] body {
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "PMingLiU", "新細明體", serif;
}
html[lang="ko"] body {
  font-family: "Malgun Gothic", "맑은 고딕", AppleGothic, Dotum, "돋움", "PMingLiU", "新細明體", serif;
}
img, table { max-width: 100%; }
a:link { color: #0000EE; text-decoration: underline; }
a:visited { color: #551A8B; text-decoration: underline; }
a:hover { text-decoration: none; }
a:active { color: #FF0000; }
/* 表單控件：hover／focus 使用系統預設外觀，不自訂邊框色 */
input,
textarea,
select {
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: auto;
}
input:hover,
textarea:hover,
select:hover,
input:focus,
textarea:focus,
select:focus {
  outline: revert;
  outline-offset: revert;
  border-color: revert;
  box-shadow: revert;
}
.tx_ce { text-align: center; }
.tx_le { text-align: left; }
.tx_ri { text-align: right; }
/* 字級：主內容與左選單統一 1rem｜頁尾等輔助 0.875rem */
.f10 { font-size: 0.875rem; }
.layout { width: 100%; table-layout: fixed; }
.navi_td {
  width: 220px;
  border-right: 3px solid #D0D0D0;
  vertical-align: top;
  background: #FFF8E7 url("https://i.wimg.me/2026/08/10/EDpL.gif") repeat;
  padding: 24px 10px;
  font-size: 1rem;
  text-align: center;
  line-height: 2.2;
}
.navi_td a,
.navi_td .f10 {
  font-size: 1rem;
}
.navi_td hr {
  margin: 1.5em 0;
}
.main_td {
  vertical-align: top;
  padding: 24px 16px;
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* 主內容區塊統一寬度（含各頁模組） */
.main_td main > p,
.main_td main > h2,
.m_txt,
.info_table,
.product_card,
.category_nav,
.service_card,
.partner_banner,
.notice_box,
.shop_panel {
  max-width: 720px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.main_td main > p,
.m_txt {
  margin-top: 1em;
  margin-bottom: 1em;
}
/* 分隔線滿版：撐滿主欄、突破左右 padding */
.main_td main > hr {
  max-width: none;
  width: auto;
  margin: 1.5em -16px;
}
.main_td h2 {
  font-size: 1rem;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 1em;
}
.main_td main > .info_table {
  margin-top: 1em;
  margin-bottom: 1em;
}
.main_td .brand {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.12em;
}
.main_td .f10,
.main_td em {
  font-size: 1rem;
  font-style: normal;
}
.hero_img {
  display: block;
  width: 100%;
  /* 圖檔僅 333×193；手機 DPR≈1.5 時顯示寬需 ≤221，才不會被標低解析度 */
  max-width: 220px;
  height: auto;
  aspect-ratio: 333 / 193;
  margin: 0 auto;
  background: #f0f0f0;
}
.m_txt { display: block; }
.info_table {
  border-collapse: collapse;
  table-layout: fixed;
  text-align: left;
  font-size: 1rem;
}
.info_table th,
.info_table td {
  border: 1px solid #aaa;
  padding: 0.55em 0.8em;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.info_table th {
  width: 32%;
  background: #FCFCEC;
  font-weight: normal;
}
hr { border: 0; border-top: 1px solid #aaa; }

/* 共用內容模組（商品／服務／購物車） */
.notice_box {
  background: #FCFCEC;
  border: 1px solid #aaa;
  padding: 14px 18px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.img_placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.875rem;
  padding: 12px;
  line-height: 1.4;
  width: 100%;
  height: 100%;
  background: #fafafa;
}
.img_placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 6px;
  fill: #aaa;
}
.img_hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 6px;
}
.price_box {
  background: #FCFCEC;
  border: 1px solid #aaa;
  padding: 8px 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.price_regular {
  color: #666;
  font-size: 0.95rem;
}
.design_box {
  margin-top: 10px;
  margin-bottom: 10px;
}
.design_box h3 {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 4px 0;
  color: #333;
}
.design_desc {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  margin: 0 0 10px 0;
}
.spec_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 8px;
}
.spec_table th,
.spec_table td {
  border: 1px solid #aaa;
  padding: 4px 8px;
  vertical-align: top;
}
.spec_table th {
  background: #FCFCEC;
  width: 25%;
  font-weight: normal;
  color: #555;
}

/* 平板 */
@media (max-width: 900px) {
  .navi_td { width: 180px; padding: 24px 8px; }
  .main_td { padding: 24px 12px; }
  .main_td main > hr {
    margin-left: -12px;
    margin-right: -12px;
  }
  .info_table th { width: 36%; }
}

/* 手機：選單改置頂、內容全寬 */
@media (max-width: 767px) {
  html { font-size: 15px; }
  .layout,
  .layout > tbody,
  .layout > tbody > tr,
  .layout > tr {
    display: block;
    width: 100%;
  }
  .navi_td {
    display: block;
    width: 100%;
    border-right: 0;
    border-bottom: 3px solid #D0D0D0;
    padding: 16px 12px;
    text-align: center;
  }
  .navi_td > br { display: none; }
  .navi_td a,
  .navi_td .f10 {
    display: inline-block;
    white-space: nowrap;
    margin: 0.25em 0.45em;
  }
  .navi_td hr {
    margin: 0.75em auto;
    max-width: 12em;
  }
  .main_td {
    display: block;
    width: 100%;
    padding: 24px 12px;
  }
  .main_td .brand {
    letter-spacing: 0.06em;
  }
  .main_td main > p,
  .main_td main > h2,
  .m_txt,
  .info_table,
  .product_card,
  .category_nav,
  .service_card,
  .partner_banner,
  .notice_box,
  .shop_panel {
    width: 100%;
    max-width: none;
  }
  .main_td main > hr {
    margin-left: -12px;
    margin-right: -12px;
  }
  .info_table,
  .info_table thead,
  .info_table tbody,
  .info_table tr,
  .info_table th,
  .info_table td {
    display: block;
    width: 100%;
  }
  .info_table tr { margin-bottom: 0.6em; }
  .info_table th {
    border-bottom: 0;
    padding-bottom: 0.25em;
  }
  .info_table td {
    border-top: 0;
    padding-top: 0.25em;
  }
}
