/* ===== Base ===== */

:root{
  --text:#222;
  --muted:#666;
  --line:#e5e5ea;
  --bg:#ffffff;
  --subbg:#f7f7fa;
  --card:#ffffff;
  --shadow:0 6px 18px rgba(0,0,0,.08);

  --pro:#ff8c00;
  --proText:#ffffff;
}

*{ box-sizing:border-box; }

img{
  max-width:100%;
  height:auto;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  margin:0;
  color:var(--text);
  background:var(--bg);
  line-height:1.7;
}

.icon-inline{
  height:1.2em;
  vertical-align:middle;
}
/* ページ全体の最大幅（PCで読みやすくする） */
body > header,
body > section,
body > footer{
  max-width:980px;
  margin:0 auto;
  padding:0 18px;
}

a{
  color:#0a84ff;
  text-decoration:none;
}

a:hover{
  text-decoration:underline;
  opacity:1;
}


a:visited{
  color:#6b5cff;
}


a:active{
  opacity:.7;
}

/* ===== Header / Footer ===== */

.internal-nav{
  padding:12px 16px;
  background:#111;
  color:#fff;
  font-size:14px;
}


.help-footer{
  margin-top:40px;
  padding-top:18px;
  padding-bottom:28px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

/* ===== Sections ===== */


.topnav{
  margin-top:10px;
  margin-bottom:10px;
}

section{
  padding-top:20px;
  padding-bottom:6px;
}

h1{
  margin-top:0;
  margin-bottom:12px;
}

h2{
  margin:0 0 12px 0;
  font-size:20px;
  letter-spacing:.2px;
  padding-left:10px;
  border-left:5px solid #444;
}

h3{
  margin:0 0 8px 0;
  font-size:17px;
}

/* ===== Hero ===== */

.hero{
  padding-top:22px;
}

.hero-img{
  display:block;
  height:auto;
  border-radius:12px;
  clip-path: inset(0 round 12px);
  border:1px solid var(--line);
  background:var(--subbg);
}


.lead{
  margin:14px 0 0 0;
  font-size:16px;
}

.lead strong{
  white-space:nowrap;
}

/* ===== Cards (Tabs) ===== */

.grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  margin-top:10px;
}

.card{
  display:block;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 14px 12px 14px;
  text-decoration:none;
  box-shadow:var(--shadow);
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.card small{
  color:var(--muted);
}

/* ===== Lists ===== */

ul{
  margin:10px 0 0 0;
  padding-left:20px;
}

li{
  margin:6px 0;
}

/* ===== Code / Pre ===== */

pre{
  background:var(--subbg);
  border:1px solid var(--line);
  padding:16px;
  border-radius:12px;
  overflow:auto;
  font-size:14px;
  line-height:1.6;
}

/* ===== Notice / Note ===== */

.notice,
.note{
  margin-top:14px;
  padding:14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--subbg);
}

.notice-title,
.note-title{
  margin:0 0 8px 0;
  font-weight:700;
}

/* ===== Pro Badge ===== */

.pro-badge{
  display:inline-block;
  background:var(--pro);
  color:var(--proText);
  font-weight:700;
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  vertical-align:baseline;
  margin-right:4px;
}

/* 「Pro版の説明」セクション自体の見た目（バッジと衝突しない） */
section.pro{
  background:transparent;
}

/* ===== Links section ===== */

.links a{
  text-decoration:underline;
  text-underline-offset:3px;
}

/* ===== Responsive (Mobile) ===== */

@media (max-width:820px){

  body > header,
  body > section,
  body > footer{
    padding:0 14px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .card{
    border-radius:12px;
  }

  pre{
    font-size:13px;
  }
}
