/* sleightworks のサイトの共通の見た目（スマホを先に考え、広い画面では中央に寄せる） */
:root {
  --main: #d84332;          /* HomeRec の赤（アプリの上の帯と同じ系統） */
  --main-dark: #b23526;
  --ink: #222;
  --sub: #5f6368;
  --line: #e2e2e2;
  --soft: #f6f6f6;
  --accent-bg: #fff4f2;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
}
a { color: var(--main-dark); }
img { max-width: 100%; height: auto; }

/* 上の帯 */
.site-header { background: var(--main); color: #fff; }
.site-header .inner { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.site-header .brand { color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.site-header .brand img { width: 32px; height: 32px; }
.site-header .brand svg { height: 30px; width: auto; font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }
.site-header .brand .spark { fill: var(--main); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; }
.site-header nav a { color: #fff; text-decoration: none; opacity: .92; }
.site-header nav a[aria-current="page"] { text-decoration: underline; opacity: 1; }
.site-header .maker { margin-left: auto; color: #fff; display: flex; align-items: center; }
.site-header .maker svg { height: 30px; width: auto; font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }
.site-header .maker .spark { fill: var(--main); }
@media (max-width: 560px) { .site-header .maker { order: -1; margin-left: auto; } .site-header .maker svg { height: 24px; } }

main { max-width: 960px; margin: 0 auto; padding: 8px 16px 48px; }
h1 { font-size: 1.7rem; line-height: 1.4; margin: 24px 0 8px; }
h2 { font-size: 1.3rem; margin: 40px 0 12px; padding-left: 10px; border-left: 5px solid var(--main); }
h3 { font-size: 1.08rem; margin: 20px 0 6px; }
.lead { font-size: 1.05rem; color: var(--sub); }
.note { font-size: .88rem; color: var(--sub); }

/* 最初の大きな紹介 */
.hero { background: var(--accent-bg); border-radius: var(--radius); padding: 24px 20px; margin-top: 16px; }
.hero { position: relative; }
.hero h1 { margin-top: 0; padding-right: 96px; }
.hero-icon { position: absolute; top: 20px; right: 20px; width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
@media (max-width: 560px) { .hero-icon { width: 56px; height: 56px; border-radius: 14px; top: 16px; right: 16px; } .hero h1 { padding-right: 64px; } }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.button { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--main); color: #fff; text-decoration: none; font-weight: 700; }
.button.secondary { background: #fff; color: var(--main-dark); border: 2px solid var(--main); }

/* 目玉の機能（カード） */
.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .cards.three { grid-template-columns: 1fr 1fr 1fr; } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.card.highlight { border: 2px solid var(--main); }
.card h3 { margin-top: 4px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; color: #fff; background: var(--main); border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: middle; }

/* 画面写真の枠（体験モードの写真に差し替えるまでの仮） */
.shot { background: var(--soft); border: 1px dashed #bbb; border-radius: 10px; aspect-ratio: 9 / 16; max-width: 220px; margin: 8px auto; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--sub); font-size: .85rem; padding: 8px; }
.shot.wide { aspect-ratio: 16 / 10; max-width: 100%; }

/* 開くと詳しく読める部分 */
details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: #fff; }
details summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: 6px; }

/* 手順 */
ol.steps { padding-left: 1.4em; }
ol.steps li { margin: 8px 0; }

table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: var(--soft); }

/* まだ決まっていない所（公開の前に消す） */
.todo { background: #fff8d6; border-left: 4px solid #e0b000; padding: 6px 10px; font-size: .88rem; border-radius: 4px; }

.site-footer { border-top: 1px solid var(--line); color: var(--sub); font-size: .85rem; }
.site-footer .inner { max-width: 960px; margin: 0 auto; padding: 16px; }
.site-footer a { color: var(--sub); }

/* 画面写真（スマホの形の枠、隅に「開発中」） */
.phone { position: relative; margin: 8px auto; max-width: 240px; }
.phone img { display: block; width: 100%; border-radius: 18px; border: 6px solid #222; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.phone .dev { position: absolute; top: 14px; right: 14px; background: rgba(0,0,0,.72); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.shots { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.shots .phone { flex: 1 1 200px; margin: 0; }
/* 狭い画面で、表を横にずらして見る */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 520px; }

/* タブレットの写真（横長） */
.tablet { position: relative; margin: 0; flex: 2 1 360px; align-self: center; }
.tablet img { display: block; width: 100%; border-radius: 16px; border: 8px solid #222; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.tablet .dev { position: absolute; top: 16px; right: 16px; background: rgba(0,0,0,.72); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* しくみの図（縦に並べ、スマホの幅でも読める） */
.diagram { margin: 16px auto; max-width: 440px; }
.diagram svg { display: block; width: 100%; height: auto; font-family: inherit; }
.flow { padding-left: 1.2em; list-style: none; }
.flow li { margin: 6px 0; }
.flow .r { color: #b23526; font-weight: 700; }
.flow .b { color: #1f6fbf; font-weight: 700; }

.phone figcaption { margin-top: 8px; font-size: .85rem; text-align: center; color: var(--sub); }

/* アプリの一覧の箱: 左上にアプリのアイコン */
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head h3 { margin: 0; }
.app-icon { width: 56px; height: 56px; border-radius: 12px; flex: none; }

/* 更新履歴: 日付と中身の並び */
.changes dt { font-weight: 700; margin-top: 18px; }
.changes dd { margin: 4px 0 0 0; }
.changes ul { margin: 4px 0; padding-left: 1.3em; }
