@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;700&display=swap');

:root {
  --paper: #ffffff;
  --wash: #f5f5f5;
  --ink: #1f1f1f;
  --mute: #5d5d5d;
  --line: #e6e6e6;
  --r: 18px;
  --r-lg: 24px;
  --shadow: 0 4px 6px rgba(0, 0, 0, .05), 0 12px 26px rgba(0, 0, 0, .05);
  --shadow-hi: 0 10px 34px rgba(0, 0, 0, .11);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
img { max-width: 100%; display: block; }
p { margin: 0 0 12px; }

/* 顶部：品牌居中，菜单全屏遮罩 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
}

.burger {
  display: grid;
  gap: 5px;
  place-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.burger:hover { background: var(--wash); }
.burger-line { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand-name { font-size: 19px; letter-spacing: .02em; }
.mark { width: 28px; height: 28px; border-radius: 9px; object-fit: contain; }

.cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, opacity .2s ease;
}

.cta:hover { transform: translateY(-1px); opacity: .9; }
.cta-gap { width: 44px; }

.strip { max-width: 1200px; margin: 0 auto; padding: 0 12px 9px; }
.strip-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  transition: opacity .2s ease;
}
.strip-nav::-webkit-scrollbar { display: none; }

body.menu-open .strip-nav { opacity: 0; pointer-events: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.chip:hover { background: var(--wash); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 104px 20px 36px;
  overflow-y: auto;
  background: var(--paper);
  visibility: hidden;
  transform: translateY(-102%);
  transition: transform .35s cubic-bezier(.25, .8, .3, 1), visibility .35s;
}

.drawer.is-open { visibility: visible; transform: none; }

.drawer-nav { display: grid; gap: 8px; max-width: 720px; margin: 0 auto; }

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 6px 16px;
  border-radius: 16px;
  background: var(--wash);
  color: var(--ink);
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.drawer-nav a:hover { background: #ececec; transform: translateX(3px); }
.idx { min-width: 24px; font-size: 15px; font-weight: 400; color: var(--mute); }

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 56px 20px 44px;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-copy { position: relative; z-index: 2; max-width: 760px; text-align: center; }

h1 { margin: 0; font-size: clamp(28px, 5.6vw, 46px); line-height: 1.25; }

.hero-art { position: absolute; inset: 0; z-index: 1; }

.shot {
  position: absolute;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-hi);
  will-change: transform;
}

.shot-a { left: 3%; top: 16%; width: min(34%, 320px); aspect-ratio: 4 / 3; transform: rotate(-3deg); }
.shot-b { right: 4%; bottom: 12%; width: min(27%, 240px); aspect-ratio: 3 / 4; transform: rotate(2.5deg); }

/* 正文区 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.board { min-width: 0; }
.board-head { margin: 0 0 18px 4px; }
.board-head h2 { margin: 0; font-size: 20px; }
.subtitle { margin: 2px 0 0; color: var(--mute); font-size: 16px; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.bento > section {
  grid-column: span 3;
  min-width: 0;
  padding: 22px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
  scroll-margin-top: 130px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.bento > section:hover { transform: scale(1.02); box-shadow: var(--shadow-hi); }

.bento > section:nth-child(1) { grid-column: span 3; }
.bento > section:nth-child(2) { grid-column: span 3; }
.bento > section:nth-child(3) { grid-column: span 4; }
.bento > section:nth-child(4) { grid-column: span 2; }
.bento > section:nth-child(5) { grid-column: span 2; }
.bento > section:nth-child(6) { grid-column: span 4; }
.bento > section:nth-child(7) { grid-column: span 6; }

.bento h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
.bento h3 { margin: 22px 0 8px; font-size: 18px; }
.bento p { margin: 0 0 12px; }
.bento ul, .bento ol { margin: 0 0 12px; padding-left: 1.25em; }
.bento li { margin: 4px 0; }
.bento a { color: var(--ink); text-decoration-color: #b9b9b9; text-underline-offset: 3px; }
.bento a:hover { text-decoration-color: var(--ink); }
.bento blockquote {
  margin: 0 0 12px;
  padding: 10px 16px;
  border-left: 3px solid var(--ink);
  background: var(--wash);
  border-radius: 0 12px 12px 0;
}
.bento table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 12px; }
.bento th, .bento td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.bento img { border-radius: 14px; margin: 6px 0 12px; }
.bento > section > :last-child { margin-bottom: 0; }

/* 侧栏 */
.side {
  position: sticky;
  top: 130px;
  padding: 20px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.side h2 { margin: 0 0 10px; font-size: 17px; }
.side-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--mute);
  font-size: 16px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.side-list a:hover { background: var(--wash); color: var(--ink); }

/* 页脚 */
footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 32px;
  padding: 40px max(20px, calc(50% - 600px)) 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.f-top {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

address { font-style: normal; }
.f-brand { font-size: 19px; font-weight: 700; }

.f-form label { display: block; margin-bottom: 8px; color: var(--mute); font-size: 16px; }
.f-row { display: flex; gap: 8px; }

.f-row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.f-row input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }

.f-row button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.f-row button:hover { opacity: .9; }

footer nav dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px 16px;
  margin: 0;
}

footer nav dt, footer nav dd { margin: 0; }

footer nav a, .f-links a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--mute);
  font-size: 16px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

footer nav a:hover, .f-links a:hover { background: var(--wash); color: var(--ink); }

.f-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; align-content: start; }

.f-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.copy { margin: 0; color: var(--mute); font-size: 16px; }

.f-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.f-bottom a:hover { background: var(--wash); }

@media (max-width: 960px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; order: 2; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento > section:nth-child(n) { grid-column: 1 / -1; }
  .bento > section { scroll-margin-top: 120px; }
}

@media (max-width: 720px) {
  .hero { min-height: 56vh; padding: 44px 18px 36px; }
  .hero-art { opacity: .34; }
  .shot-a { width: 44%; left: 2%; top: 10%; }
  .shot-b { width: 34%; right: 3%; bottom: 8%; }
  .wrap { padding: 24px 16px 44px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > section { padding: 18px; }
  .f-top { grid-template-columns: minmax(0, 1fr); }
  footer { grid-template-columns: minmax(0, 1fr); padding: 32px 16px 20px; }
  .f-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
