:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --card:#ffffff;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 25px rgba(17,24,39,.06);
  --radius:14px;
  --radius-sm:12px;
  --max: 1120px;
  --gap: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic","Meiryo", Arial;
}

*{box-sizing:border-box}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font); line-height:1.55;
}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding: 0 18px;}
main.container{padding-bottom: 44px;}

/* Hero */
.hero{
  position: relative; /* ★追加：hero__bgの基準をheroにする */
  background:#d8c6c0;
  border-bottom:1px solid rgba(0,0,0,.04);
  overflow:hidden;
}

.hero__inner{
  padding: 28px 0;
  position:relative;
  z-index: 1;        /* ★追加：背景より前に */
  min-height:140px;
}

.hero__bg{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;

  background-color:#ddccc6;
  background-image: var(--hero-url); /* ← グラデを外して画像だけ */
  background-repeat:no-repeat;
  background-position:center center;
  background-size: contain;

  opacity: 1;
  outline: 2px dashed red; /* ← hero__bgが効いてるか目視確認 */
}


.hero__card{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  gap:6px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
}

.hero__title{font-size:22px; font-weight:900; letter-spacing:.02em}
.hero__sub{font-size:13px; font-weight:800; color:rgba(17,24,39,.78)}

/* Page head */
.pagehead{padding: 22px 0 8px;}
.pagehead__title{
  font-size:34px;
  font-weight:950;
  margin:0 0 6px;
}
.pagehead__lead{margin:0; color:var(--muted)}

/* Board (PC 2-3 cols / Mobile 1 col) */
.board{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items:start;
  padding: 18px 0 0;
}
@media (max-width: 980px){
  .board{grid-template-columns: 1fr; gap:18px;}
}

/* Column */
.col{
  background:#fbfbfb;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}
.col__head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
.col__label{
  display:inline-flex; align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size:12px;
  font-weight:950;
  border:1px solid transparent;
  user-select:none;
}
.tone-blue{background:#eef6ff; border-color:#d9ebff; color:#0b4a8b}
.tone-green{background:#eefbf3; border-color:#d6f5e3; color:#166534}
.tone-gray{background:#f3f4f6; border-color:#e5e7eb; color:#374151}

/* Cards */
.cards{display:flex; flex-direction:column; gap:10px;}
.card{
  display:block;
  background:var(--card);
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-decoration:none;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover{transform: translateY(-1px); box-shadow: var(--shadow); border-color:#d6dbe3}
.card:focus-visible{outline:none; box-shadow: 0 0 0 3px rgba(59,130,246,.25), var(--shadow); border-color:#93c5fd}

.card__top{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:6px;}
.card__title{margin:0; font-weight:950; font-size:14px;}
.price{
  font-weight:950; font-size:13px; color:#111827;
  background:#f9fafb; border:1px solid var(--line);
  padding: 4px 8px; border-radius: 999px; white-space:nowrap;
}
.card__excerpt{margin:0; color:var(--muted); font-size:12.5px}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  background:#fafafa;
  padding: 18px 0;
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 0 18px;
}
.footer__left{display:flex; flex-direction:column; gap:2px;}
.footer__brand{font-weight:950}
.footer__sub{color:var(--muted); font-weight:800; font-size:12.5px}
.footer__right{display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end;}
.footer__social{display:flex; gap:10px; align-items:center}
.footer__link{
  font-weight:900;
  font-size:13px;
  color:#111827;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
}
.footer__link:hover{
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

@media (max-width: 600px){
  .pagehead__title{font-size:28px}
  .footer__inner{flex-direction:column; align-items:flex-start}
  .footer__right{justify-content:flex-start}
}

/* Social icons (footer only) */
.social__icon{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}
.social__icon:hover{transform: translateY(-1px); box-shadow: var(--shadow); border-color:#d6dbe3}
.social__icon:focus-visible{outline:none; box-shadow: 0 0 0 3px rgba(59,130,246,.25), var(--shadow); border-color:#93c5fd}

.social__icon--youtube::before{
  content:"";
  width:18px; height:18px;
  background:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'>\
<path d='M23 7.5c0-1.38-1.12-2.5-2.5-2.5h-17C2.12 5 1 6.12 1 7.5v9c0 1.38 1.12 2.5 2.5 2.5h17c1.38 0 2.5-1.12 2.5-2.5v-9z' fill='%23FF0000'/>\
<path d='M10 9l6 3-6 3V9z' fill='white'/>\
</svg>") center/contain no-repeat;
}

.social__icon--x::before{
  content:"";
  width:16px; height:16px;
  background:
    url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'>\
<path d='M3 3h4.7l4.4 6.2L17.3 3H21l-6.9 9.4L21 21h-4.7l-4.7-6.6L6.7 21H3l7.4-10L3 3z' fill='%23000000'/>\
</svg>") center/contain no-repeat;
}

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

/* Detail page */
.minihead{
  border-bottom:1px solid var(--line);
  background:#fff;
}
.minihead__inner{padding: 12px 0;}
.backlink{
  text-decoration:none;
  font-weight:900;
  font-size:13px;
  color:#111827;
}

.detail{
  margin: 18px 0 0;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.detail__head{
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
  margin-bottom:12px;
}
.detail__title{
  font-size:22px;
  font-weight:950;
  margin:0;
}
.detail__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.tag{
  display:inline-flex; align-items:center;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fafafa;
  font-size:12px;
  font-weight:900;
  color:#374151;
}
.detail__lead{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight:700;
}

/* セクション区切り（Notion風） */
.detail__body h2{
  position: relative;
  padding-top: 22px; /* 線との距離 */
  margin-top: 28px;
}

.detail__body h2::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:1px;
  background: rgba(17, 24, 39, .10); /* ←薄すぎるなら .14〜.18 に */
}

.detail__body p{
  margin:10px 0;
  line-height:1.7;
}

.detail__body ul{
  margin:10px 0 18px 22px;
}


.detail__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 36px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  font-weight:950;
  text-decoration:none;
  background:#111827;
  color:#fff;
}
.btn--sub{
  background:#f3f4f6;
  color:#111827;
  border:1px solid var(--line);
}

.footer--simple .footer__right{gap:0}


.callout{
  padding:12px 14px;
  border-radius:8px;
  margin:14px 0;
  font-size:14px;
  font-weight:700;
}

.callout--yellow{
  background:#fff6d8;
  color:#6b4e00;
  border:1px solid #f5e6a8;
}

.callout--gray{
  background:#f3f4f6;
  color:#374151;
  border:1px solid #e5e7eb;
}

.callout--red{
  background:#fff1f1;
  color:#b91c1c;
  border:1px solid #fecaca;
}

.kingaku{
  color:#92400e;
  font-size:20px;
  font-weight:700;
}

