/* 猫コンサル学習サイト — モバイルファースト・落ち着いた猫テーマ */
:root {
  --bg: #faf6f0;
  --card: #ffffff;
  --ink: #3d3229;
  --sub: #8a7a6b;
  --brand: #7a5c43;
  --brand-dark: #5e4632;
  --accent: #e8ddd0;
  --ok: #4a7c59;
  --warn: #b3541e;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.9;
}
main { max-width: 640px; margin: 0 auto; padding: 16px 16px 80px; }

/* ヘッダー */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--accent);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-dark);
  text-decoration: none;
  white-space: nowrap;
}
#auth-area { display: flex; align-items: center; gap: 8px; font-size: 14px; }
#auth-area .me { color: var(--sub); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ボタン（大きく・押しやすく） */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 18px 28px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  min-height: 56px;
  transition: background .15s;
}
.btn:active, .btn:hover { background: var(--brand-dark); }
.btn-small { width: auto; min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost:active, .btn-ghost:hover { background: var(--accent); color: var(--brand-dark); }

/* カード */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 1px 4px rgba(61, 50, 41, .06);
}
.card h2 { font-size: 19px; margin: 0 0 12px; color: var(--brand-dark); }

/* 見出し・ヒーロー */
.hero { text-align: center; padding: 32px 8px 8px; }
.hero .cat { font-size: 56px; line-height: 1; }
.hero h1 { font-size: 24px; margin: 12px 0 8px; color: var(--brand-dark); }
.hero p { color: var(--sub); font-size: 15px; margin: 0; }

/* 週リスト */
.week-list { list-style: none; padding: 0; margin: 0; }
.week-list li { margin: 10px 0; }
.week-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  min-height: 60px;
}
.week-list a:active, .week-list a:hover { border-color: var(--brand); }
.week-list .num {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--brand-dark);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.week-list .free { background: var(--ok); color: #fff; }
.week-list .status { margin-left: auto; font-size: 13px; color: var(--sub); white-space: nowrap; }

/* 手順ステップ */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 12px;
  margin: 14px 0;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 32px; height: 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

/* 動画 */
.video-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #2a221b; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: #cbb9a5; font-size: 15px; gap: 8px;
}
.video-placeholder .cat { font-size: 40px; }

/* 記事本文 */
.article { font-size: 17px; }
.article img { max-width: 100%; border-radius: 12px; }
.article h2 { font-size: 20px; color: var(--brand-dark); border-left: 5px solid var(--brand); padding-left: 10px; }
.article h3 { font-size: 18px; color: var(--brand-dark); }

/* フォーム */
label { display: block; font-weight: 700; margin: 16px 0 6px; font-size: 15px; }
textarea, input[type="url"], input[type="text"] {
  width: 100%;
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 14px;
  font-size: 17px;
  font-family: inherit;
  background: #fffdf9;
}
textarea:focus, input:focus { outline: none; border-color: var(--brand); }
textarea { min-height: 140px; resize: vertical; }
.hint { font-size: 13px; color: var(--sub); margin: 4px 0 0; }

/* メッセージ */
.notice { border-radius: 12px; padding: 14px 16px; font-size: 15px; margin: 12px 0; }
.notice-ok { background: #e8f2ea; color: var(--ok); font-weight: 700; }
.notice-warn { background: #fbeee4; color: var(--warn); }

.center { text-align: center; }
.mt { margin-top: 16px; }
.loading { text-align: center; color: var(--sub); padding: 48px 0; }
footer { text-align: center; color: var(--sub); font-size: 12px; padding: 24px 16px; }
.badge-role { background: var(--ok); color: #fff; border-radius: 8px; font-size: 11px; padding: 2px 8px; }
