:root {
  --paper: #fcfbf8;
  --panel: #ffffff;
  --ink: #171412;
  --muted: #625c56;
  --line: #ddd7d1;
  --accent: #d95f5f;
  --accent-soft: #fff1ef;
  --link: #204f8e;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Yu Gothic UI", "Hiragino Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fffefe 0, #fcfbf8 220px, #f8f4ef 100%);
  color: var(--ink);
  font: 15px/1.8 var(--sans);
}

a {
  color: var(--link);
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header,
.page-shell,
.site-footer {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  padding-top: 14px;
}

.top-links,
.brand-bar,
.primary-nav,
.mini-tabs,
.section-head,
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.top-links {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  font-size: 12px;
}

.top-links > a {
  text-decoration: none;
  color: var(--ink);
}

.top-links > a:hover,
.primary-nav a:hover,
.mini-tabs a:hover,
.brand-mark a:hover {
  text-decoration: underline;
}

.lang-switch {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.lang-switch button {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 3px 10px;
}

.lang-switch button[aria-pressed="true"] {
  border-color: var(--ink);
  background: #f4eee6;
}

.brand-bar {
  justify-content: space-between;
  padding: 16px 0 12px;
}

.brand-kicker,
.eyebrow,
.section-note,
.creator-type,
.footer-note,
.checklist-note,
.price,
.creator-lead {
  color: var(--muted);
}

.brand-kicker,
.eyebrow,
.creator-type {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  margin: 0;
  font: 700 clamp(28px, 4vw, 42px)/1.1 var(--serif);
}

.brand-mark a {
  color: var(--ink);
  text-decoration: none;
}

.primary-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px;
}

.primary-nav a,
.mini-tabs a {
  color: var(--ink);
  text-decoration: none;
}

.page-shell {
  padding: 22px 0 48px;
}

.page-title-block {
  margin-bottom: 18px;
}

.page-title-block h1 {
  margin: 6px 0 0;
  font: 700 clamp(30px, 4.7vw, 46px)/1.1 var(--serif);
}

.creator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  margin-bottom: 22px;
}

.creator-summary,
.booth-panel,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.creator-summary,
.booth-panel,
.panel {
  padding: 18px;
}

.creator-name {
  margin: 0 0 6px;
  font: 700 32px/1.1 var(--serif);
}

.creator-lead {
  margin: 8px 0 16px;
}

.mini-tabs {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 13px;
}

.booth-meta,
.detail-grid {
  display: grid;
  gap: 0;
}

.booth-meta > div,
.detail-grid > div {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.booth-meta > div:first-child,
.detail-grid > div:first-child {
  border-top: 0;
}

dt,
dd {
  margin: 0;
  padding: 11px 12px;
}

dt {
  background: var(--accent-soft);
  font-weight: 700;
}

.vote-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.vote-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.vote-widget button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 8px 15px;
}

.vote-status {
  display: inline-block;
  min-width: 56px;
}

.vote-reveal {
  margin: 10px 0 0;
  color: #8b3030;
}

.panel {
  margin-bottom: 22px;
}

.section-head {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.section-head h2,
.subpage-shell h1 {
  margin: 0;
  font: 700 29px/1.2 var(--serif);
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.item-card {
  position: relative;
  border: 1px solid var(--line);
  background: #fffdfa;
  padding: 12px;
}

.item-card--checked {
  outline: 2px solid #d7b56b;
  outline-offset: 2px;
}

.item-card h3 {
  margin: 10px 0 4px;
  font: 700 17px/1.45 var(--serif);
}

.check-link {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  padding: 2px 8px;
  font-size: 12px;
  text-decoration: none;
  color: var(--ink);
}

.profile-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
}

.profile-gallery > img {
  border: 1px solid var(--line);
  background: #f7f1ea;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.thumb-row img {
  border: 1px solid var(--line);
  background: #fff;
}

.profile-copy p {
  margin: 0 0 14px;
}

.sns-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.subpage-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.subpage-section {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  margin-bottom: 18px;
}

.subpage-section p,
.subpage-section li {
  margin-top: 0;
}

.subpage-list,
.subpage-links {
  padding-left: 20px;
}

.record-list {
  display: grid;
  gap: 16px;
}

.record-card {
  border: 1px solid var(--line);
  background: #fffdfa;
  padding: 14px;
}

.record-card h2,
.record-card h3,
.faq-item h2 {
  margin: 0 0 8px;
  font: 700 20px/1.35 var(--serif);
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.site-footer {
  padding: 0 0 34px;
}

.footer-grid {
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.footer-grid > div {
  flex: 1 1 220px;
}

.footer-grid h2 {
  margin: 0 0 10px;
  font: 700 17px/1.3 var(--serif);
}

.footer-grid ul {
  margin: 0;
  padding-left: 18px;
}

.footer-contact,
.footer-note {
  margin: 14px 0 0;
}

@media (max-width: 980px) {
  .creator-hero,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header,
  .page-shell,
  .site-footer,
  .subpage-shell {
    width: min(1120px, calc(100% - 18px));
  }

  .booth-meta > div,
  .detail-grid > div {
    grid-template-columns: 1fr;
  }

  dt {
    border-bottom: 1px solid var(--line);
  }

  .item-grid,
  .thumb-row {
    grid-template-columns: 1fr;
  }
}
