:root {
  --color-bg: #fbf6ee;
  --color-bg-card: #ffffff;
  --color-bg-alt: #f3ead9;
  --color-text: #3e3128;
  --color-text-soft: #6b5c4d;
  --color-primary: #c1694f;
  --color-primary-dark: #a6543d;
  --color-secondary: #8a9b6e;
  --color-secondary-dark: #71835a;
  --color-accent: #d9a566;
  --color-border: #e4d9c5;
  --color-locked: #b8afa0;
  --color-locked-bg: #efe9dd;
  --shadow-soft: 0 4px 16px rgba(120, 96, 66, 0.1);
  --radius-lg: 20px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: var(--color-primary-dark);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.site-header .logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
}

.site-header .tagline {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.container {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

h1 {
  font-size: 26px;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
}

h2 {
  font-size: 20px;
  color: var(--color-primary-dark);
  margin: 0 0 12px;
}

p {
  color: var(--color-text);
}

.muted {
  color: var(--color-text-soft);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-secondary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn-google {
  background: #ffffff;
  color: #3c4043;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.btn-google:hover {
  transform: translateY(-1px);
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.content-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.content-item.unlocked:hover {
  transform: translateY(-2px);
}

.content-item.locked {
  background: var(--color-locked-bg);
  color: var(--color-locked);
  cursor: not-allowed;
  box-shadow: none;
}

.content-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--color-accent);
  color: #fff;
}

.content-item.locked .content-icon {
  background: var(--color-locked);
}

.content-item.completed .content-icon {
  background: var(--color-secondary);
}

.content-body {
  flex: 1;
}

.content-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}

.content-status {
  font-size: 13px;
}

.content-item.unlocked .content-status {
  color: var(--color-secondary-dark);
}

.badge-session {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
}

.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.step {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  background: var(--color-bg-alt);
}

.step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-number {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 15px;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.form-embed {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 12px;
}

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.error-box {
  background: #fbeae5;
  border: 1px solid #e3b6a8;
  color: var(--color-primary-dark);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--color-text-soft);
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.top-nav form {
  margin: 0;
}

.link-back {
  font-size: 14px;
  color: var(--color-text-soft);
  text-decoration: none;
}

.link-back:hover {
  color: var(--color-primary-dark);
}
