:root{
  --bg:#ffffff;
  --fg:#222;
  --muted:#666;
  --accent:#0b57d0;
  --border:#e5e5e5;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
}

body{
  background:var(--bg);
  color:var(--fg);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
    "Hiragino Sans","Noto Sans JP","Yu Gothic UI","YuGothic","Meiryo",Arial,sans-serif;
  line-height:1.7;
  font-size:15px;
}

.wrap{
  padding:16px 16px 24px;
  max-width:720px;
  margin:0 auto;
}

h1{
  font-size:20px;
  margin:0 0 4px;
}

.subtitle{
  font-size:13px;
  color:var(--muted);
  margin:0 0 12px;
}

figure{
  margin:0 0 16px;
}

.main-image{
  width:100%;
  border-radius:10px;
  border:1px solid var(--border);
  display:block;
}

figcaption{
  font-size:13px;
  color:var(--muted);
  margin-top:6px;
}

.meta{
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
}

.meta dt{
  font-weight:600;
  float:left;
  margin-right:4px;
}

.meta dd{
  margin:0 0 4px 0;
}

.section-title{
  font-size:14px;
  font-weight:600;
  margin:16px 0 6px;
}

.back-link{
  margin-top:16px;
  font-size:13px;
  text-align:center;
}

/* リンク共通 */
a{
  color:var(--accent);
  text-underline-offset:2px;
}

/* 動画のスタイル */
.infobox video{
  width:100%;
  height:auto;
  border-radius:12px;
  display:block;
  border:1px solid var(--border);
}

/* 白抜き（アウトライン）版の戻るボタン */
.back-button{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 16px;
  background:#fff;          /* 白背景 */
  color:#555;               /* 濃いグレー文字 */
  border-radius:10px;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  border:2px solid #555;    /* 濃いグレー枠 */
  transition:background .2s ease, color .2s ease, transform .15s ease;
}

/* ホバー時：濃いグレー背景＋白文字に反転 */
.back-button:hover{
  background:#555;
  color:#fff;
  transform:translateY(-1px);
}

.back-button:active{
  transform:translateY(0);
}
