/* ===========================
   タルトのAI活用教室 — 共通CSS
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: #f0f7f0;
  color: #333;
  line-height: 1.8;
}

/* ナビバー */
nav.site-nav {
  background: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.site-nav a {
  color: #4a9e6e;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

nav.site-nav .nav-sep {
  color: #ccc;
  font-size: 14px;
}

nav.site-nav .nav-current {
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

/* ヒーロー */
header.hero {
  background: linear-gradient(135deg, #4a9e6e 0%, #2d7a4f 100%);
  color: white;
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
}

header.hero::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  height: 60px;
  background: #f0f7f0;
  border-radius: 50% 50% 0 0;
}

.hero-emoji {
  font-size: 80px;
  margin-bottom: 10px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.4);
  margin-bottom: 15px;
}

header.hero h1 {
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 900;
}

header.hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

/* コンテナ */
main.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

/* セクション（カード） */
section.card {
  background: white;
  border-radius: 20px;
  padding: 30px 25px;
  margin: 20px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

section.card h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #2d7a4f;
  display: flex;
  align-items: center;
  gap: 10px;
}

section.card h2 .emoji {
  font-size: 30px;
}

section.card h3 {
  font-size: 20px;
  color: #2d7a4f;
  margin: 10px 0;
  text-align: center;
}

/* タルトの吹き出し */
.taruto-says {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 15px 0;
}

.taruto-says::before {
  content: '';
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: url('images/taruto-icon.jpeg') center/cover;
  border-radius: 50%;
  border: 2px solid #4a9e6e;
}

.taruto-says p {
  background: #e8f5e9;
  border-radius: 15px;
  padding: 14px 18px;
  font-size: 15px;
  color: #2d5a3f;
  position: relative;
  margin: 0;
}

.taruto-says p::before {
  content: '';
  position: absolute;
  top: 28px;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #e8f5e9;
}

/* 比較テーブル */
.compare-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 15px 0;
}

.compare-item {
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

.compare-before { background: #f5f5f5; border: 2px solid #ddd; }
.compare-after { background: #e8f5e9; border: 2px solid #4a9e6e; }

.compare-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compare-before .compare-label { color: #999; }
.compare-after .compare-label { color: #4a9e6e; }

.compare-item .emoji { font-size: 40px; display: block; margin-bottom: 8px; }
.compare-item p { font-size: 14px; font-weight: 600; }

/* できることリスト */
.feature-list { list-style: none; padding: 0; }

.feature-list li {
  padding: 15px 15px 15px 50px;
  margin: 10px 0;
  background: #fafafa;
  border-radius: 12px;
  position: relative;
  font-size: 15px;
  transition: transform 0.2s;
}

.feature-list li:hover { transform: translateX(5px); }

.feature-list li::before {
  content: attr(data-emoji);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}

.feature-list li strong { color: #2d7a4f; }

/* ステップ */
.steps { counter-reset: step; }

.step { display: flex; gap: 15px; margin: 20px 0; align-items: flex-start; }

.step-number {
  min-width: 45px;
  height: 45px;
  background: #4a9e6e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.step-content { flex: 1; }

.step-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: #2d7a4f; }
.step-content p { font-size: 14px; color: #555; }

/* ステップ内画像 */
.step-img { width: 100%; border-radius: 12px; margin-top: 12px; border: 1px solid #e0e0e0; }
.step-img-sm { width: 80%; border-radius: 12px; margin-top: 12px; border: 1px solid #e0e0e0; }

/* コードブロック */
.code-block {
  background: #1e1e1e;
  color: #4ec9b0;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  margin: 8px 0;
  overflow-x: auto;
}

.code-block-muted {
  background: #1e1e1e;
  color: #aaa;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  margin: 8px 0;
  overflow-x: auto;
}

.code-block-muted .highlight { color: #4ec9b0; }

/* インラインコード */
code.inline { background: #eee; padding: 2px 6px; border-radius: 4px; }

/* 注釈テキスト */
.note-text { font-size: 13px; color: #666; margin-top: 4px; }

/* リンク・テキスト色 */
a.link-green { color: #4a9e6e; }
.text-green { color: #4a9e6e; }

/* 料金カード */
.price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 15px 0; }

.price-card {
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  border: 2px solid #e0e0e0;
  background: white;
}

.price-card.recommended { border-color: #4a9e6e; background: #f0f9f3; position: relative; }

.price-card.recommended::after {
  content: 'おすすめ';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4a9e6e;
  color: white;
  padding: 2px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.price-card h4 { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 5px; }
.price-card .price { font-size: 24px; font-weight: 900; color: #2d7a4f; margin: 5px 0; }
.price-card .price span { font-size: 14px; font-weight: 400; }
.price-card p { font-size: 13px; color: #666; }

/* たとえ話ボックス */
.analogy-box {
  background: linear-gradient(135deg, #fff9e6, #fff3cc);
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0;
  border-left: 4px solid #f5a623;
}

.analogy-box .label { font-size: 12px; font-weight: 700; color: #f5a623; margin-bottom: 8px; letter-spacing: 1px; }
.analogy-box p { font-size: 15px; }

/* FAQ */
.faq-item { border-bottom: 1px solid #eee; padding: 15px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15px; font-weight: 700; color: #2d7a4f; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: #555; }

/* CTA */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, #4a9e6e 0%, #2d7a4f 100%);
  color: white;
  border-radius: 20px;
  padding: 40px 25px;
  margin: 30px 0;
}

.cta-section h2 { font-size: 22px; margin-bottom: 10px; }
.cta-section p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.cta-section .cta-emoji { font-size: 50px; margin-bottom: 10px; }

.cta-button {
  display: inline-block;
  background: white;
  color: #2d7a4f;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
.cta-sub-link { color: rgba(255,255,255,0.8); font-size: 15px; text-decoration: underline; }

/* フッター */
footer.site-footer { text-align: center; padding: 30px 20px; color: #888; font-size: 13px; }
footer.site-footer a { color: #4a9e6e; text-decoration: none; }
footer.site-footer .footer-official { margin-top: 10px; font-size: 13px; color: #999; }

/* 注意ボックス */
.note-box {
  background: #fff3e0;
  border-radius: 12px;
  padding: 15px 20px;
  margin: 15px 0;
  font-size: 14px;
  border-left: 4px solid #ff9800;
}

.note-box strong { color: #e65100; }

/* 最短導線カード */
.quick-start { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); text-align: center; padding: 30px 25px; }
.quick-start .subtitle { font-size: 14px; color: #555; margin-bottom: 6px; }
.quick-start h2 { font-size: 22px; color: #2d7a4f; margin-bottom: 12px; display: block; }
.quick-start-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.quick-start .hint { font-size: 13px; color: #666; margin-top: 10px; }

.btn-primary {
  display: inline-block;
  background: #4a9e6e;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}

.btn-outline {
  display: inline-block;
  background: white;
  color: #4a9e6e;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #4a9e6e;
}

/* 3カラム比較 */
.three-compare { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 15px 0; }

.three-compare-item {
  border-radius: 15px;
  padding: 15px 10px;
  text-align: center;
  border: 2px solid #e0e0e0;
  background: white;
}

.three-compare-item.best { border-color: #4a9e6e; background: #f0f9f3; position: relative; }

.three-compare-item.best::after {
  content: '初心者向け';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #4a9e6e;
  color: white;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.three-compare-item .emoji { font-size: 35px; display: block; margin-bottom: 5px; }
.three-compare-item h4 { font-size: 13px; font-weight: 700; margin-bottom: 5px; color: #333; }
.three-compare-item p { font-size: 12px; color: #666; }

/* テーブル共通 */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 15px 0; }
.data-table th { padding: 10px; background: #4a9e6e; color: white; text-align: center; }
.data-table th:first-child { text-align: left; border-radius: 10px 0 0 0; }
.data-table th:last-child { border-radius: 0 10px 0 0; }
.data-table td { padding: 10px; text-align: center; }
.data-table td:first-child { font-weight: 600; text-align: left; }
.data-table tr:nth-child(even) { background: #f9f9f9; }
.data-table tr:last-child td:first-child { border-radius: 0 0 0 10px; }
.data-table tr:last-child td:last-child { border-radius: 0 0 10px 0; }
.data-table .good { color: #4a9e6e; font-weight: 700; }
.data-table .muted { color: #999; }

/* 課金比較テーブル */
.billing-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.billing-table th { padding: 10px; text-align: left; border: 1px solid #ddd; background: #f0f7f0; }
.billing-table td { padding: 10px; border: 1px solid #ddd; }
.billing-table td:first-child { font-weight: bold; }

/* ショートカットリスト */
.shortcut-list { margin: 8px 0; font-size: 14px; color: #555; }

/* 折りたたみ */
details summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details summary::-webkit-details-marker { display: none; }
.toggle-hint { font-size: 13px; color: #666; margin-left: auto; }
details[open] .toggle-hint { display: none; }

/* テーブルスクロール */
.table-wrap { overflow-x: auto; margin: 15px 0; }

/* ガイドカード（トップページ用） */
.guide-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.guide-card {
  background: white;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border-color: #4a9e6e;
}

.guide-card .emoji { font-size: 50px; display: block; margin-bottom: 12px; }
.guide-card h3 { font-size: 18px; font-weight: 800; color: #2d7a4f; margin-bottom: 8px; }
.guide-card p { font-size: 14px; color: #666; }

/* 情報ボックス */
.info-box {
  background: #f0f9f3;
  border-radius: 12px;
  padding: 15px 20px;
  margin: 10px 0;
  font-size: 14px;
}

.info-box strong { color: #2d7a4f; }
.info-box span { color: #555; }

/* レスポンシブ */
@media (max-width: 500px) {
  header.hero h1 { font-size: 22px; }
  .compare-box { grid-template-columns: 1fr; }
  .price-cards { grid-template-columns: 1fr; }
  .three-compare { grid-template-columns: 1fr; }
  section.card { padding: 25px 20px; }
  .quick-start-buttons { flex-direction: column; align-items: center; }
  .guide-cards { grid-template-columns: 1fr; }
}
