:root {
  --bg: #f4ede0;
  --paper: rgba(255, 248, 235, 0.84);
  --ink: #142120;
  --ink-soft: rgba(20, 33, 32, 0.72);
  --line: rgba(20, 33, 32, 0.1);
  --orange: #ea7c2d;
  --orange-deep: #c95315;
  --teal: #75ceb0;
  --teal-deep: #0f6554;
  --gold: #e5be68;
  --shadow: 0 32px 96px rgba(28, 38, 31, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(234, 124, 45, 0.26), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(117, 206, 176, 0.24), transparent 24%),
    linear-gradient(180deg, #fff9ef 0%, var(--bg) 100%);
}

h1,
h2,
h3,
strong,
.brand,
.eyebrow,
.primary-btn,
.ghost-link,
.mini-label,
.power-chip,
.unlock-chip {
  font-family: "Space Grotesk", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.site-header.compact {
  padding-bottom: 14px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header-actions,
.cta-row,
.power-strip,
.unlock-board {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.ghost-link,
.primary-btn,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.ghost-link:hover,
.primary-btn:hover,
.card-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.primary-btn,
.ghost-link {
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 0.96rem;
}

.primary-btn {
  border: none;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.ghost-link,
.card-link {
  color: var(--teal-deep);
  font-weight: 700;
}

.inline-form {
  margin: 0;
}

.button-link {
  border: none;
  background: none;
  padding: 14px 18px;
  cursor: pointer;
}

.full {
  width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.home-page,
.login-page,
.memory-page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
}

.hero-copy-block,
.hero-panel,
.feature-card,
.showcase-card,
.login-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy-block {
  padding: 44px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(11, 58, 50, 0.96), rgba(12, 23, 28, 0.95)),
    linear-gradient(180deg, rgba(117, 206, 176, 0.35), transparent);
  color: #fff9ef;
  position: relative;
  overflow: hidden;
}

.hero-copy-block::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 124, 45, 0.92), transparent 68%);
  filter: blur(12px);
}

.hero-copy-block h1,
.login-panel h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4.3rem);
  line-height: 0.96;
}

.hero-copy,
.feature-card p,
.showcase-card p,
.panel-copy,
.hero-panel p,
.section-heading p,
.alert,
.footer-card span {
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero-copy-block .hero-copy {
  max-width: 620px;
  font-size: 1.05rem;
  color: rgba(255, 249, 239, 0.84);
}

.hero-side,
.mini-grid,
.feature-grid,
.showcase-grid,
.login-footer-grid {
  display: grid;
  gap: 18px;
}

.hero-panel,
.feature-card,
.showcase-card,
.login-panel,
.footer-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  backdrop-filter: blur(18px);
}

.hero-panel.tall {
  min-height: 260px;
}

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

.mini-label,
.power-chip,
.unlock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-label {
  background: rgba(117, 206, 176, 0.16);
  color: var(--teal-deep);
}

.chip-1 {
  background: rgba(117, 206, 176, 0.16);
  color: var(--teal-deep);
}

.chip-2 {
  background: rgba(234, 124, 45, 0.14);
  color: var(--orange-deep);
}

.chip-3 {
  background: rgba(229, 190, 104, 0.18);
  color: #8f6614;
}

.chip-4 {
  background: rgba(20, 33, 32, 0.08);
  color: var(--ink-soft);
}

.power-strip {
  margin-top: 26px;
}

.feature-board,
.showcase-section {
  margin-top: 26px;
}

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

.section-heading h2,
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 2rem;
}

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

.feature-list {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.9;
}

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

.accent-card {
  background:
    linear-gradient(135deg, rgba(234, 124, 45, 0.18), rgba(117, 206, 176, 0.22)),
    var(--paper);
}

.login-page.deluxe {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding-bottom: 34px;
}

.memory-page {
  padding-bottom: 34px;
}

.login-panel.deluxe {
  width: min(100%, 920px);
}

.memory-panel {
  margin-top: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-intro {
  max-width: 720px;
}

.unlock-board {
  margin: 20px 0 22px;
}

.alert {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(234, 124, 45, 0.12);
  border: 1px solid rgba(234, 124, 45, 0.2);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-weight: 700;
}

.field input {
  border: 1px solid rgba(20, 33, 32, 0.12);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: rgba(234, 124, 45, 0.42);
  box-shadow: 0 0 0 4px rgba(234, 124, 45, 0.12);
}

.login-footer-grid {
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.memory-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.memory-count,
.memory-note {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.memory-count {
  background: rgba(234, 124, 45, 0.14);
  color: var(--orange-deep);
}

.memory-note {
  background: rgba(117, 206, 176, 0.16);
  color: var(--teal-deep);
}

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

.memory-card,
.empty-state {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.memory-card {
  display: grid;
  gap: 10px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.memory-card:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.memory-card strong,
.empty-state strong {
  font-size: 1.2rem;
}

.memory-card p,
.empty-state p,
.memory-detail-row dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.empty-state {
  display: grid;
  gap: 12px;
}

.detail-panel {
  max-width: 820px;
}

.memory-detail-list {
  margin: 24px 0;
  display: grid;
  gap: 14px;
}

.memory-detail-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.memory-detail-row dt {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.footer-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

@media (max-width: 1080px) {
  .hero-section,
  .feature-grid,
  .showcase-grid,
  .login-footer-grid,
  .memory-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-header,
  .home-page,
  .login-page,
  .memory-page {
    width: min(100% - 20px, 1200px);
  }

  .site-header,
  .header-actions,
  .cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-copy-block,
  .hero-panel,
  .feature-card,
  .showcase-card,
  .login-panel,
  .memory-panel,
  .footer-card {
    padding: 22px;
  }

  .hero-copy-block h1,
  .login-panel h1,
  .section-heading h2 {
    font-size: 2rem;
  }

  .memory-detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
