/* ============================================================
   YourPottery — site styles
   Design source: Claude Design「YourPottery公式サイト設計」
   Palette: charcoal #14110E / gold #C6A15B / ink #ECE3D2
   Fonts: Marcellus (display) / Hanken Grotesk (body)
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --bg: #14110E;
  --bg-2: #1A1510;
  --gold: #C6A15B;
  --gold-hover: #DCAE7D;
  --ink: #ECE3D2;
  --ink-strong: #F3ECDD;
  --muted: #9E927C;
  --muted-2: #B4A88F;
  --muted-3: #C9BCA4;
  --faint: #8C8069;
  --line: rgba(198, 161, 91, 0.12);
  --line-2: rgba(198, 161, 91, 0.14);
  --line-3: rgba(198, 161, 91, 0.16);
  --font-display: "Marcellus", serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
::selection { background: rgba(198, 161, 91, 0.3); color: #fff; }

img { max-width: 100%; }

/* ---- grain overlay ---- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22140%22 height=%22140%22%3E%3Cfilter id=%22n%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%222%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23n)%22/%3E%3C/svg%3E');
}

/* ---- skip link(フォーカス時のみ表示) ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: #16120C;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 2px;
}
.skip-link:focus { top: 12px; color: #16120C; }

/* ---- shared bits ---- */
.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.accent { color: var(--gold); }

.media { background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #16120C;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 15px 30px;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.btn-gold:hover { color: #16120C; filter: brightness(1.08); transform: translateY(-2px); }
.btn-gold--sm { gap: 8px; font-size: 13.5px; letter-spacing: 0.04em; padding: 11px 20px; }
.btn-gold--sm:hover { transform: translateY(-1px); }
.btn-gold--lg { padding: 16px 34px; }

.link-quiet {
  color: var(--muted-3);
  font-size: 14.5px;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(201, 188, 164, 0.35);
  padding-bottom: 3px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 15px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(198, 161, 91, 0.4);
  padding-bottom: 3px;
}

/* ---- header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(18, 15, 11, 0.9);
  border-bottom-color: rgba(198, 161, 91, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header--solid {
  position: sticky;
  background: rgba(18, 15, 11, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line-2);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-inner--narrow { max-width: 820px; padding: 16px 40px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.35);
  background: var(--bg-2);
}
.brand-mark--sm { width: 28px; height: 28px; }
.brand-name { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.02em; }
.brand-name--sm { font-size: 20px; }

.link-back { color: var(--muted-2); font-size: 13.5px; letter-spacing: 0.02em; }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  background: var(--bg-2);
}
.hero-scrim { position: absolute; inset: 0; }
.hero-scrim--x { background: linear-gradient(90deg, rgba(15,12,9,0.92) 0%, rgba(15,12,9,0.6) 42%, rgba(15,12,9,0.15) 78%, rgba(15,12,9,0.35) 100%); }
.hero-scrim--y { background: linear-gradient(0deg, rgba(15,12,9,0.85) 0%, rgba(15,12,9,0) 45%); }

.hero-inner {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px 108px;
}
.hero-copy { max-width: 820px; }

.badges { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-3);
  border: 1px solid rgba(201, 188, 164, 0.28);
  padding: 7px 14px;
  border-radius: 100px;
}
.badge--gold { color: var(--gold); border-color: rgba(198, 161, 91, 0.45); }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 1.05;
  margin: 0;
  color: var(--ink-strong);
  text-wrap: balance;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---- intro ---- */
.intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 130px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}
.intro-lead {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.32;
  margin: 26px 0 0;
  color: var(--ink);
  text-wrap: pretty;
}
.intro-media {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* ---- core loop ---- */
.loop { border-top: 1px solid var(--line); padding: 120px 40px; }
.loop-inner { max-width: 1180px; margin: 0 auto; }
.loop-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.loop-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  margin: 18px 0 0;
  color: var(--ink-strong);
}
.loop-note { max-width: 340px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.loop-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.loop-card { display: flex; flex-direction: column; }

.shot-tile {
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  border: 1px solid var(--line-3);
  background: repeating-linear-gradient(45deg, #211B14 0 11px, #1A1510 11px 22px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7D7360;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.loop-num {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.loop-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  margin: 6px 0 8px;
  color: var(--ink-strong);
}
.loop-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---- MR gallery ---- */
.mr {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mr-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 132px 40px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 80px;
  align-items: center;
}
.mr-grid h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.08;
  margin: 20px 0 0;
  color: var(--ink-strong);
  text-wrap: balance;
}
.mr-lead { margin: 30px 0 0; color: var(--muted-2); font-size: 17px; line-height: 1.7; max-width: 460px; }
.mr-media {
  aspect-ratio: 1008 / 1440;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

/* ---- highlights ---- */
.cards { max-width: 1180px; margin: 0 auto; padding: 120px 40px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card {
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 40px 34px;
  background: rgba(255, 255, 255, 0.012);
}
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 3px;
  border: 1px solid rgba(198, 161, 91, 0.22);
  background: repeating-linear-gradient(45deg, #211B14 0 8px, #1A1510 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #736A58;
  font-family: ui-monospace, monospace;
  font-size: 9px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  margin: 26px 0 12px;
  color: var(--ink-strong);
}
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---- Early Access ---- */
.ea { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.ea-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--bg-2);
}
.ea-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,13,9,0.95) 0%, rgba(16,13,9,0.82) 50%, rgba(16,13,9,0.6) 100%);
}
.ea-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 130px 40px; }
.ea-copy { max-width: 680px; }
.ea-copy h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
  margin: 20px 0 0;
  color: var(--ink-strong);
}
.ea-lead { margin: 28px 0 0; color: #C4B89F; font-size: 17px; line-height: 1.7; }

.ea-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ea-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: #D8CDB6;
  font-size: 16px;
  line-height: 1.5;
}
.ea-list li span { color: var(--gold); flex: none; }

.ea-pledge {
  margin: 38px 0 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--ink-strong);
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}

/* ---- privacy + specs ---- */
.meta { max-width: 1180px; margin: 0 auto; padding: 120px 40px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.meta-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  margin: 22px 0 0;
  color: var(--ink);
}

.spec-list { margin: 22px 0 0; display: flex; flex-direction: column; }
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}
.spec-list dt { color: var(--muted); font-size: 15px; }
.spec-list dd { margin: 0; color: var(--ink); font-size: 15px; text-align: right; }

/* ---- final CTA ---- */
.cta { border-top: 1px solid var(--line); padding: 130px 40px; text-align: center; }
.cta-inner { max-width: 760px; margin: 0 auto; }
.cta-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.3);
  margin-bottom: 30px;
  background: var(--bg-2);
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.1;
  margin: 0;
  color: var(--ink-strong);
}
.cta-actions { margin-top: 36px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 46px 40px; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner--narrow { max-width: 820px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13.5px; }
.footer-mark { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; opacity: 0.9; background: var(--bg-2); }
.footer-links { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links a { color: var(--muted-2); font-size: 13.5px; }
.footer-links a.footer-store { color: var(--gold); }
.site-footer--policy { padding: 40px; margin-top: 40px; }

/* ---- privacy policy page ---- */
.policy { max-width: 820px; margin: 0 auto; padding: 80px 40px 40px; }
.policy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  margin: 20px 0 0;
  color: var(--ink-strong);
}
.policy-updated { margin: 18px 0 0; color: var(--faint); font-size: 14px; letter-spacing: 0.02em; }
.policy-rule { border: none; height: 1px; background: var(--line-2); margin: 44px 0; }

.policy-section { margin-bottom: 46px; }
.policy-section--last { margin-bottom: 20px; }
.policy-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 16px;
  color: var(--ink);
}
.policy-num { color: var(--gold); font-size: 16px; margin-right: 14px; }
.policy-section > p { margin: 0; color: var(--muted-2); font-size: 16.5px; line-height: 1.75; }

/* デザイン仕様: 権限セクション(05)のみ見出し下は20px(他は16px) */
.policy-section--perms h2 { margin-bottom: 20px; }
.perm-table { border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.perm-row { padding: 22px 24px; border-bottom: 1px solid rgba(198, 161, 91, 0.1); }
.perm-row:last-child { border-bottom: none; }
.perm-name { font-weight: 600; color: var(--ink); font-size: 15.5px; }
.perm-system { color: #86795F; font-weight: 400; font-size: 13px; }
.perm-row code {
  display: inline-block;
  margin: 6px 0 10px;
  color: #86795F;
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  overflow-wrap: anywhere; /* 狭幅で権限名トークンが.perm-tableのoverflow:hiddenに切られるのを防ぐ */
}
.perm-row p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.perm-row .perm-solo { margin-top: 12px; }
/* .policy-section > p(0,1,1)に特異性で勝つ必要がある */
.policy-section > .perm-note { margin: 20px 0 0; color: var(--faint); font-size: 14.5px; line-height: 1.65; font-style: italic; }

/* ============================================================
   Responsive (design is desktop-first; these collapse the grids)
   ============================================================ */

@media (max-width: 1080px) {
  .loop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 48px; padding: 96px 40px; }
  .intro-media { max-width: 480px; }
  .mr-grid { grid-template-columns: 1fr; gap: 48px; padding: 96px 40px; }
  .mr-media { max-width: 420px; }
  .cards-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: 1fr; gap: 56px; }
  .loop, .cards, .meta { padding-top: 96px; padding-bottom: 96px; }
  .ea-inner { padding-top: 96px; padding-bottom: 96px; }
  .cta { padding-top: 96px; padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-gold, .site-header, .skip-link { transition: none; }
  .btn-gold:hover { transform: none; }
}

@media (max-width: 640px) {
  .header-inner, .header-inner--narrow { padding: 14px 20px; }
  .hero-inner { padding: 0 20px 72px; }
  .intro, .loop, .cards, .meta, .cta { padding-left: 20px; padding-right: 20px; }
  .mr-grid, .ea-inner { padding-left: 20px; padding-right: 20px; }
  .site-footer { padding: 40px 20px; }
  .policy { padding: 56px 20px 32px; }
  .loop-grid { grid-template-columns: repeat(2, 1fr); }
  .perm-row { padding: 18px 16px; }
}

@media (max-width: 400px) {
  /* ブランド+CTAが1行に収まる下限(~320px)を確保する */
  .brand-name { font-size: 18px; }
  .btn-gold--sm { padding: 10px 14px; font-size: 12.5px; }
}
