:root {
  --surface: rgba(12, 14, 20, 0.44);
  --surface-strong: rgba(20, 23, 32, 0.52);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(236, 220, 171, 0.2);
  --border-strong: rgba(236, 220, 171, 0.36);
  --text: #f8f2e4;
  --muted: rgba(248, 242, 228, 0.72);
  --faint: rgba(248, 242, 228, 0.52);
  --accent: #d7b86a;
  --accent-2: #7aa7ff;
  --accent-soft: rgba(215, 184, 106, 0.16);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --maxw: 680px;
}

body[data-arcana="temperance"] {
  --border: rgba(181, 222, 207, 0.24);
  --border-strong: rgba(181, 222, 207, 0.42);
  --accent: #b8dece;
  --accent-2: #e6d293;
  --accent-soft: rgba(184, 222, 206, 0.15);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--text);
  background: #07080d;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #07080d url("images/key-visual.png") center / cover no-repeat;
}

.background__video {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: min(430px, 36vw);
  height: min(100vh, 760px);
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  filter: saturate(0.98) brightness(0.82);
  transform: translate(-50%, -50%);
  transition: opacity 0.45s ease;
  will-change: opacity;
}

.background__video.is-ready {
  opacity: 0.76;
}

.background__video.is-unavailable {
  display: none;
}

.background__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 4, 8, 0.5), rgba(3, 4, 8, 0.1), rgba(3, 4, 8, 0.5)),
    linear-gradient(180deg, rgba(3, 4, 8, 0.2), rgba(3, 4, 8, 0.72));
}

.page-shell {
  width: min(var(--maxw), calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 42px;
}

.video-start {
  min-height: calc(100vh - 28px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 28px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(10, 12, 18, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  outline: none;
}

.scroll-cue__arrow {
  display: inline-block;
  color: var(--accent);
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.hero-panel {
  padding: 22px;
  overflow: hidden;
  background: rgba(10, 12, 18, 0.52);
}

.hero-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.profile-mark {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--accent);
}

.social-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-list--contact {
  margin: 16px 0 4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

.hero-copy {
  padding: 6px 0 22px;
}

.role {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1.05rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 2.25rem;
  line-height: 1.28;
  font-weight: 600;
}

.tagline {
  margin: 18px 0 0;
  font-family: "Noto Serif JP", serif;
  font-size: 1.16rem;
  line-height: 1.75;
}

.lead {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin: 2px 0 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  color: var(--faint);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.tab:hover,
.tab:focus-visible {
  color: var(--text);
  outline: none;
}

.tab:active {
  transform: scale(0.98);
}

.tab.is-active {
  color: #07080d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.tab__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.tab__label {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1rem;
  font-weight: 600;
}

.arcana-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.024));
  animation: panel-in 0.28s ease;
}

.arcana-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tarot-frame {
  position: relative;
  margin: 0;
  min-height: 236px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.24);
}

.tarot-frame img {
  width: 100%;
  height: 100%;
  min-height: 236px;
  display: block;
  object-fit: cover;
}

.arcana-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.arcana-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.02rem;
}

.arcana-copy h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 1.14rem;
  line-height: 1.7;
  font-weight: 600;
}

.arcana-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.arcana-copy .signature {
  color: var(--accent);
  font-family: "Noto Serif JP", serif;
  font-size: 0.86rem;
}

.guide-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.84rem;
}

.guide-cat__icon {
  font-size: 1.15rem;
}

.content-panel {
  margin-top: 30px;
  padding: 22px;
  background: rgba(10, 12, 18, 0.34);
}

.section-heading {
  margin-bottom: 18px;
}

.section-kicker {
  margin: 0 0 4px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.section-heading h2 {
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 1.14rem;
  line-height: 1.6;
  font-weight: 600;
}

.section-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.work-card {
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.038);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.work-card:hover,
.work-card:focus-within {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.work-card__head {
  display: grid;
  gap: 2px;
}

.work-card__type {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.work-card h3 {
  margin: 0;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.55;
}

.work-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-links a,
.work-links span,
.quiet-links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.work-links a,
.work-links span {
  padding: 7px 11px;
  font-size: 0.76rem;
}

.work-links span,
.work-links a[data-placeholder] {
  color: var(--faint);
  border-style: dashed;
}

.work-card__note {
  margin: 0;
  color: var(--faint);
  font-size: 0.76rem;
  line-height: 1.7;
}

.work-links a:hover,
.work-links a:focus-visible,
.quiet-links a:hover,
.quiet-links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.chip-cloud li {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.76rem;
}

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

.stat {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.stat strong {
  display: block;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.62rem;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.source-note {
  margin: 10px 0 18px;
  color: var(--faint);
  font-size: 0.76rem;
}

.source-note a {
  color: var(--muted);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-card {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.field-card__media {
  margin: -5px -5px 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(220, 195, 125, 0.22);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.04);
}

.field-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(0.96) brightness(0.9);
}

.field-card__label {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.field-card h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

.field-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.quiet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.quiet-links--haircare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tool-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.tool-tabs span {
  color: var(--muted);
  font-size: 0.82rem;
}

.tool-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  font-size: 0.78rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tool-tabs a:hover,
.tool-tabs a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
  transform: translateY(-1px);
}

.contact-actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-actions p,
.wishlist-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.text-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.text-link-button:hover,
.text-link-button:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
  transform: translateY(-1px);
}

.video-return-space {
  min-height: calc(min(100vh, 760px) + 160px);
}

.wishlist-panel {
  margin-top: 0;
}

.wishlist-card {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wishlist-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.wishlist-card strong {
  font-size: 1rem;
  line-height: 1.5;
}

.wishlist-card:hover,
.wishlist-card:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.065);
  outline: none;
  transform: translateY(-1px);
}

.quiet-links a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.quiet-links--haircare a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 8px 6px;
  text-align: center;
  white-space: nowrap;
}

.contact-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.link-status {
  min-height: 1.3em;
  margin: 6px 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
}

.contact-form {
  display: grid;
  gap: 13px;
  margin-top: 4px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 11px 12px;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.submit-btn {
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: #07080d;
  background: var(--accent);
  cursor: pointer;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.16s ease;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.submit-btn:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.82rem;
}

.form-status.is-ok {
  color: var(--accent);
}

.form-status.is-err {
  color: #ffb2a8;
}

.site-footer {
  padding: 22px 0 0;
  color: var(--faint);
  text-align: center;
}

@media (max-width: 640px) {
  .background {
    background-color: #07080d;
    background-size: cover;
  }

  .background__video {
    display: block;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    opacity: 0;
    filter: none;
    transform: translate(-50%, -50%);
  }

  .background__video.is-ready {
    opacity: 1;
  }

  .background__video.is-unavailable {
    display: none;
  }

  .background__veil {
    background:
      linear-gradient(90deg, rgba(3, 4, 8, 0.16), rgba(3, 4, 8, 0.04), rgba(3, 4, 8, 0.16)),
      linear-gradient(180deg, rgba(3, 4, 8, 0.04), rgba(3, 4, 8, 0.36));
  }

  .page-shell {
    width: min(100% - 22px, var(--maxw));
    padding-top: 10px;
  }

  .video-start {
    min-height: calc(100vh - 20px);
    padding-bottom: 22px;
  }

  .video-return-space {
    min-height: calc(100vh + 110px);
  }

  .hero-panel,
  .content-panel {
    padding: 18px;
  }

  .hero-panel__top {
    align-items: flex-start;
  }

  h1 {
    font-size: 1.82rem;
  }

  .tagline {
    font-size: 1.02rem;
  }

  .arcana-panel {
    grid-template-columns: 1fr;
  }

  .tarot-frame,
  .tarot-frame img {
    min-height: 300px;
  }

  .work-item,
  .work-item--bundle {
    display: grid;
  }

  .stats-grid,
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .hero-panel__top {
    display: grid;
  }

  .tabs {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .tarot-frame,
  .tarot-frame img {
    min-height: 260px;
  }
}

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

  .background__video {
    display: none;
  }
}
