@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@700;800;900&display=swap');

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

:root {
  --bg: #f5f5f0;
  --surface: #ffffff;
  --border: #e4e4e0;
  --text: #1a1a1a;
  --text-sub: #666660;
  --accent: #e94560;
  --accent-hover: #c73652;
  --amber: #d97706;
  --radius: 14px;
  --font: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ========================================
   ヘッダー
   ======================================== */
.page-header {
  padding: 60px 20px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.page-header p {
  font-size: 15px;
  color: var(--text-sub);
}

/* ========================================
   利用規約
   ======================================== */
.notice-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 720px;
  margin: 24px auto;
  padding: 16px 20px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  font-size: 13px;
  color: #78350f;
}

.notice-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========================================
   更新履歴
   ======================================== */
.update-log {
  max-width: 720px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.update-log-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.update-log-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.update-log-list li {
  font-size: 13px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-log-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  font-family: monospace;
  flex-shrink: 0;
}

/* ========================================
   アコーディオンリスト
   ======================================== */
.accordion-list {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.accordion-item.open {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
}

.accordion-header:hover {
  background: #f9f9f7;
}

.acc-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.acc-title {
  flex: 1;
}

.acc-arrow {
  font-size: 11px;
  color: var(--text-sub);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.accordion-item.open .acc-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 4px 20px 24px;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.accordion-item.open .accordion-body {
  display: block;
}

/* ========================================
   本文共通
   ======================================== */
.body-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

.body-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.body-list li {
  padding-left: 0;
  line-height: 1.6;
}

.body-list li strong {
  color: var(--text);
}

.quote-block {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--border);
  background: #f9f9f7;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text-sub);
  font-style: italic;
}

.cta-box {
  margin-top: 24px;
  padding: 20px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: var(--radius);
}

.cta-box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
}

/* ========================================
   ボタン
   ======================================== */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary.small {
  padding: 8px 16px;
  font-size: 12px;
  margin-top: 0;
}

.btn-action {
  margin-top: 0;
  padding: 10px 22px;
  font-size: 13px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: #aaa;
  background: #f5f5f0;
}

/* ========================================
   会員限定ハック リンクリスト
   ======================================== */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f9f9f7;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.link-item:hover {
  background: #f0f0eb;
  border-color: #ccc;
}

.link-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: #fff0f3;
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ========================================
   srefグリッド
   ======================================== */
.sref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.sref-item {
  background: #f9f9f7;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.sref-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}

.sref-label {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}

.code-row code {
  font-size: 11px;
  color: var(--accent);
  font-family: monospace;
}

/* ========================================
   コードブロック（プロンプト集）
   ======================================== */
.code-block {
  background: #f9f9f7;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.code-block code {
  font-size: 13px;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  flex: 1;
}

.code-block-pre {
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}

.code-block-pre pre {
  width: 100%;
  margin-top: 10px;
  overflow-x: auto;
}

.code-block-pre pre code {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ========================================
   コピーボタン
   ======================================== */
.copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: var(--accent-hover);
}

/* ========================================
   拡張機能リスト
   ======================================== */
.ext-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ext-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f9f9f7;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ext-info {
  flex: 1;
}

.ext-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ext-info p {
  font-size: 12px;
  color: var(--text-sub);
}

.ext-btns {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

/* ========================================
   バッジ
   ======================================== */
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e5e7eb;
  color: #374151;
}

.badge-new {
  background: #ede9fe;
  color: var(--accent);
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 600px) {
  .ext-row {
    flex-direction: column;
  }

  .ext-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sref-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
