/* =========================================
   ぽけっとプロンプト / style.css
   ========================================= */

/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #111827;
  --bg-card:      #1c2333;
  --bg-inset:     #0f172a;
  --border:       #2d3748;
  --border-light: #232d3f;

  --text-primary:   #f0f4f8;
  --text-body:      #c8d3e0;
  --text-secondary: #8896a8;
  --text-muted:     #546070;

  --accent:        #0d9488;
  --accent-light:  #5eead4;
  --accent-dim:    #0f766e;
  --accent-bg:     rgba(13,148,136,.1);
  --accent-border: rgba(94,234,212,.2);

  --btn-primary: #0d9488;
  --btn-hover:   #0f766e;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3);
  --shadow-card: 0 2px 8px rgba(0,0,0,.35);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ===== ベーススタイル ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== ナビゲーション ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0;
  background: rgba(17,24,39,.97);
  backdrop-filter: blur(16px);
  z-index: 100;
}
.logo {
  font-size: .95rem; font-weight: 700;
  color: var(--accent-light); text-decoration: none;
  letter-spacing: .01em;
  transition: opacity .2s;
}
.logo:hover { opacity: .8; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a {
  font-size: .83rem; color: var(--text-secondary);
  text-decoration: none; transition: color .2s;
  letter-spacing: .01em;
}
.nav-links a:hover { color: var(--text-primary); }

/* ===== コンテナ ===== */
.container { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 6rem; }

.breadcrumb {
  font-size: .76rem; color: var(--text-muted);
  margin-bottom: 1.8rem; letter-spacing: .01em;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb span { margin: 0 .4rem; }

/* ===== 見出し ===== */
h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800; line-height: 1.35;
  letter-spacing: -.025em; margin-bottom: 1.2rem;
  color: var(--text-primary);
}
h2 {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary);
  margin: 3rem 0 1.1rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: -.01em;
}
h3 {
  font-size: .98rem; font-weight: 600;
  color: #b8c8d8; margin: 2rem 0 .6rem;
  letter-spacing: -.01em;
}

/* ===== テキスト ===== */
p { margin-bottom: 1.1rem; color: var(--text-body); line-height: 1.9; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.1rem; color: var(--text-body); }
li { margin-bottom: .5rem; line-height: 1.75; }
strong { color: var(--text-primary); font-weight: 600; }

code {
  background: var(--bg-inset);
  padding: .18rem .5rem; border-radius: var(--radius-sm);
  font-size: .83rem; color: var(--accent-light);
  border: 1px solid var(--border);
  font-family: "SF Mono","Fira Code",monospace;
}

/* ===== ラベル ===== */
.article-label {
  display: inline-block; font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: .22rem .75rem; border-radius: 20px;
  margin-bottom: 1.1rem;
}
.article-meta {
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: 2.2rem; padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: .01em;
}

/* ===== リードボックス ===== */
.lead {
  font-size: .97rem; color: var(--text-secondary); line-height: 1.9;
  margin-bottom: 2.5rem; padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

/* ===== ボタン ===== */
.btn-primary {
  display: inline-block; padding: .72rem 1.8rem;
  background: var(--btn-primary); color: #fff;
  font-size: .88rem; font-weight: 600;
  border-radius: var(--radius-md); text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(13,148,136,.3);
  letter-spacing: .01em;
}
.btn-primary:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,148,136,.4);
}
.btn-secondary {
  display: inline-block; padding: .72rem 1.8rem;
  border: 1px solid var(--border);
  color: var(--text-secondary); font-size: .88rem; font-weight: 500;
  border-radius: var(--radius-md); text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
  letter-spacing: .01em;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-bg);
}

/* ===== テーブル ===== */
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.8rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
th {
  background: var(--bg-inset); color: var(--accent-light);
  padding: .7rem 1rem; text-align: left; font-weight: 600;
  border-bottom: 1px solid var(--border); white-space: nowrap;
  letter-spacing: .01em;
}
td { padding: .7rem 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-body); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,.015); }

/* ===== プロンプトカード ===== */
.scene-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.5rem; margin-bottom: 1.1rem;
  box-shadow: var(--shadow-card);
  transition: border-color .25s, box-shadow .25s;
}
.scene-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.scene-num {
  display: inline-block; font-size: .7rem; font-weight: 700;
  background: var(--accent-bg); color: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  padding: .15rem .6rem; margin-bottom: .6rem;
  letter-spacing: .04em;
}
.scene-title {
  font-size: .95rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: .7rem;
  letter-spacing: -.01em;
}
.prompt-box {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem; margin: .7rem 0 .5rem;
  position: relative;
}
.prompt-label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .5rem;
}
pre {
  font-family: "SF Mono","Fira Code","Cascadia Code",monospace;
  font-size: .81rem; color: #b8cfe0;
  white-space: pre-wrap; word-break: break-all;
  line-height: 1.7; margin: 0;
}
.copy-btn {
  position: absolute; top: .75rem; right: .75rem;
  font-size: .7rem; padding: .28rem .65rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: .01em;
}
.copy-btn:hover { background: var(--accent-bg); color: var(--accent-light); border-color: var(--accent-border); }
.copy-btn.copied { color: #34d399; border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); }

.tip-note { font-size: .8rem; color: var(--text-muted); margin: .5rem 0 0; line-height: 1.6; }
.tip-note::before { content: "💡 "; }

/* ===== メリットグリッド ===== */
.merit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: .9rem; margin: 1.2rem 0 1.8rem; }
.merit-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.merit-icon { font-size: 1.3rem; margin-bottom: .5rem; }
.merit-title { font-size: .88rem; font-weight: 600; color: var(--text-primary); margin-bottom: .35rem; }
.merit-desc { font-size: .79rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== サマリーボックス ===== */
.summary-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.3rem 1.5rem;
  margin: 1.8rem 0; box-shadow: var(--shadow-sm);
}
.summary-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: .7rem;
}

/* ===== 関連記事 ===== */
.related-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1rem 1.3rem;
  margin: 1.8rem 0; box-shadow: var(--shadow-sm);
}
.related-title { font-size: .76rem; font-weight: 700; color: var(--text-secondary); margin-bottom: .55rem; letter-spacing: .04em; text-transform: uppercase; }
.related-box ul { margin: 0; padding-left: 1.2rem; }
.related-box li { font-size: .85rem; margin-bottom: .3rem; }
.related-box a { color: var(--accent-light); text-decoration: none; transition: opacity .2s; }
.related-box a:hover { opacity: .75; text-decoration: underline; }

/* ===== CTAブロック ===== */
.cta-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem; margin: 3rem 0; text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-block p { font-size: .88rem; color: var(--text-secondary); margin-bottom: 1.2rem; line-height: 1.75; }
.btn-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; align-items: center; }

/* ===== 区切り線 ===== */
.divider, hr.divider {
  border: none; border-top: 1px solid var(--border-light);
  margin: 0 auto;
}
hr.divider { max-width: 960px; }

/* ===== トップページ ===== */
.section { max-width: 960px; margin: 0 auto; padding: 3rem 2rem; }
.section-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: .7rem;
}
.section > h2 { font-size: 1.35rem; border-bottom: none; margin-top: 0; }
.section .sub { font-size: .88rem; color: var(--text-secondary); margin-bottom: 1.8rem; line-height: 1.75; }

.hero { max-width: 820px; margin: 0 auto; padding: 7rem 2rem 4.5rem; text-align: center; }
.hero-label {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-light); background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: .28rem .85rem; border-radius: 20px; margin-bottom: 1.6rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -.03em; margin-bottom: 1.3rem;
  color: var(--text-primary);
}
.hero h1 span { color: var(--accent-light); }
.hero p {
  font-size: 1rem; color: var(--text-secondary);
  line-height: 1.85; max-width: 520px; margin: 0 auto 2.8rem;
}
.btn-group { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.stats {
  display: flex; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
  padding: 2.5rem 2rem 3.5rem; max-width: 760px; margin: 0 auto;
}
.stat-item { text-align: center; }
.stat-n { font-size: 1.6rem; font-weight: 800; color: var(--accent-light); }
.stat-l { font-size: .76rem; color: var(--text-muted); margin-top: 3px; letter-spacing: .02em; }

/* 新着カード */
.new-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-bottom: 3rem; }
.new-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.4rem;
  text-decoration: none; box-shadow: var(--shadow-card);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.new-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transform: translateX(2px);
}
.new-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .15rem; }
.new-body { flex: 1; }
.new-badge {
  display: inline-block; font-size: .66rem; font-weight: 600;
  padding: .14rem .52rem; border-radius: 4px; margin-bottom: .35rem;
  letter-spacing: .03em;
}
.nb-compare { background: rgba(13,148,136,.12); color: #2dd4bf; }
.nb-mail    { background: rgba(59,130,246,.12); color: #93c5fd; }
.nb-biz     { background: rgba(16,185,129,.12); color: #6ee7b7; }
.nb-writer  { background: rgba(251,191,36,.12); color: #fde68a; }
.nb-note    { background: rgba(244,114,182,.12); color: #fbcfe8; }
.nb-yt      { background: rgba(239,68,68,.12); color: #fca5a5; }
.nb-sns     { background: rgba(14,165,233,.12); color: #7dd3fc; }
.nb-en      { background: rgba(168,85,247,.12); color: #d8b4fe; }
.nb-shoku   { background: rgba(245,158,11,.12); color: #fcd34d; }
.new-title {
  font-size: .93rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: .25rem; line-height: 1.45; letter-spacing: -.01em;
}
.new-desc { font-size: .79rem; color: var(--text-secondary); line-height: 1.55; }
.new-arrow { font-size: .95rem; color: var(--text-muted); flex-shrink: 0; align-self: center; }

/* カテゴリカード */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.3rem;
  box-shadow: var(--shadow-card);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none; display: block;
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.card-icon { font-size: 1.5rem; margin-bottom: .7rem; }
.card-title { font-size: .92rem; font-weight: 600; color: var(--text-primary); margin-bottom: .35rem; letter-spacing: -.01em; }
.card-desc { font-size: .79rem; color: var(--text-secondary); line-height: 1.6; }
.card-count { font-size: .73rem; color: var(--accent-light); margin-top: .65rem; font-weight: 500; }

/* CTA セクション */
.cta-section {
  max-width: 680px; margin: 1rem auto 6rem;
  padding: 2.8rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent-dim);
  border-radius: var(--radius-lg); text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-section h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .7rem; color: var(--text-primary); }
.cta-section p { font-size: .87rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.8rem; }

/* ===== フッター ===== */
footer {
  border-top: 1px solid var(--border-light);
  padding: 1.8rem 2rem; text-align: center;
  font-size: .77rem; color: var(--text-muted);
  letter-spacing: .01em;
}
footer a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--text-secondary); }

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  nav { padding: .9rem 1.2rem; }
  .nav-links { gap: 1.1rem; }
  .hero { padding: 4rem 1.2rem 3rem; }
  .container { padding: 2.5rem 1.2rem 5rem; }
  .section { padding: 2rem 1.2rem; }
  .cta-block { padding: 1.4rem 1.2rem; }
}
