:root {
  --bg: #f3f1ec;
  --paper: #fffcf7;
  --ink: #161513;
  --muted: #6f685f;
  --line: #e3ddd3;
  --soft: #e8e2d8;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "PMingLiU", "Source Han Serif SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --pad: 20px;
  --col: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

img { max-width: 100%; }

button,
input,
textarea { font: inherit; color: inherit; }

a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.col {
  width: min(var(--col), calc(100% - (var(--pad) * 2)));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  min-height: 44px;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.desk {
  display: none;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.desk a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.enter {
  margin-left: auto;
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero { padding: 28px 0 8px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.12;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 36em;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.act {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  touch-action: manipulation;
}

.act-no {
  flex: 0 0 auto;
  width: 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.act-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.act-body strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.act-body em {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.act-arrow {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.act:active { background: #f7f3ec; }

.block { margin-top: 48px; }

.sec-head {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  row-gap: 6px;
  align-items: baseline;
  margin-bottom: 6px;
}

.sec-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.sec-head p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.more {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.find {
  display: grid;
  gap: 10px;
}

.segs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border-radius: 12px;
}

.seg { position: relative; }

.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}

.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}

.seg.on span {
  background: var(--paper);
  color: var(--ink);
}

.find-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 6px 6px 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.find-box:focus-within { border-color: var(--ink); }

.find-box input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.find-box input::-webkit-search-cancel-button { -webkit-appearance: none; }

.btn {
  appearance: none;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
}

.btn:disabled { opacity: 0.55; cursor: progress; }

.style-list { display: grid; }

.style-list a {
  display: block;
  padding: 16px 2px 15px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  min-height: 72px;
}

.style-list a strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.style-list a span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 8px var(--pad) 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 68%;
  max-width: 220px;
  scroll-snap-align: start;
  text-decoration: none;
}

.shot-pic {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #e6e0d6;
}

.shot-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}

.shot-kicker {
  color: var(--muted);
  font-size: 12px;
}

.shot-name {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.read { display: grid; gap: 36px; }

.list { display: flex; flex-direction: column; }

.item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  min-height: 52px;
}

.item time {
  flex: 0 0 4.6em;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.item-title {
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ask {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 16px 16px;
  scroll-margin-top: 76px;
}

#ask { scroll-margin-top: 76px; }

.ask textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  resize: vertical;
}

.ask textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.ask-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.ask-row .btn { min-width: 128px; }

.count {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.note {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14px;
}

.note.bad {
  color: #8a3418;
  border-color: #e4c7b8;
}

.foot {
  margin-top: 56px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-links {
  display: flex;
  gap: 18px;
}

.foot-links a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: 0.03em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.qr {
  display: block;
  width: 88px;
  height: 88px;
  margin-top: 8px;
  border-radius: 8px;
  object-fit: cover;
}

.legal {
  margin: 8px 0 0;
  font-size: 13px;
}

.legal a { color: inherit; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbar a {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  touch-action: manipulation;
}

.tabbar a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.tabbar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .desk a:hover,
  .enter:hover,
  .more:hover { color: var(--ink); }

  .act:hover { border-color: #cfc6b8; }

  .style-list a:hover strong,
  .item:hover .item-title { text-decoration: underline; text-underline-offset: 3px; }

  .shot:hover .shot-name { text-decoration: underline; text-underline-offset: 2px; }
}

@media (min-width: 720px) {
  :root { --pad: 32px; }

  .hero { padding-top: 48px; }

  h1 { font-size: 64px; }

  .actions {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
  }

  .act {
    flex-direction: column;
    align-items: flex-start;
    min-height: 188px;
    padding: 20px 20px 18px;
  }

  .act-body strong {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
  }

  .act-arrow { margin-top: auto; }

  .find {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
  }

  .segs { grid-template-columns: auto auto; }

  .seg span { min-width: 72px; padding: 0 8px; }

  .style-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

  .read {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
    align-items: start;
  }

  .read-col + .read-col { position: relative; }

  .read-col + .read-col::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 8px;
    bottom: 0;
    width: 1px;
    background: var(--line);
  }

  .ask { padding: 32px 32px 24px; }

  .ask-row .btn { height: 48px; padding: 0 22px; }
}

@media (min-width: 960px) {
  :root { --pad: 40px; }

  body { padding-bottom: 0; }

  .desk { display: flex; }

  .enter { margin-left: 8px; }

  .hero { padding-top: 64px; }

  .hero-top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: end;
  }

  h1 { font-size: 76px; }

  .lead {
    margin: 0 0 8px;
    font-size: 18px;
  }

  .block { margin-top: 80px; }

  .sec-head h2 { font-size: 34px; }

  .style-list { grid-template-columns: 1fr 1fr 1fr; }

  .rail {
    width: min(var(--col), calc(100% - (var(--pad) * 2)));
    margin-inline: auto;
    padding: 10px 0 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 16px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .shot {
    flex: none;
    max-width: none;
  }

  .tabbar { display: none; }

  .foot { margin-top: 88px; padding-bottom: 48px; }
}

body.home .top-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.home .top-end .enter {
  margin-left: 0;
}

body.home .checkin {
  margin: 0;
}

body.home .checkin button,
body.home a.checkin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

body.home .checkin button[disabled] {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

body.home .checkin-note {
  margin: 0;
  padding: 0 0 10px;
  font-size: 14px;
}

@media (min-width: 960px) {
  body.home .top-end { margin-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .top,
  .tabbar,
  .find,
  .ask { display: none; }

  body { padding-bottom: 0; background: #fff; }
}
