/* ================================================================
   icongenerators.net – トップページ スタイルシート
   ================================================================ */

/* ── 変数（ジェネレーターと共通） ─────────────────────────────── */
:root {
  --orange:      #E8740A;
  --orange-dark: #C55E00;
  --orange-bg:   #F59030;
  --brown-dark:  #7A4E10;
  --panel-bg:    #C07818;
  --part-bg:     #D08828;
  --part-sel:    #F0A030;
  --border:      #9A6010;
  --text-light:  #FFF5E0;
  --text-dark:   #3A2000;
  --radius:      10px;
  --cream:       #FFF5E0;
}

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

html, body {
  font-family: 'Hiragino Sans', 'Meiryo', 'Yu Gothic', sans-serif;
  background: var(--orange-bg);
  color: var(--text-light);
  font-size: 15px;
  min-height: 100%;
}

a { color: inherit; }

/* ── ヘッダー ───────────────────────────────────────────────── */
#site-header {
  background: var(--brown-dark);
  border-bottom: 3px solid var(--border);
  padding: 28px 20px 24px;
  text-align: center;
}
#site-title {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  color: var(--text-light);
  line-height: 1.2;
}
#site-desc {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--text-light);
  opacity: 0.85;
}

/* ── メイン ─────────────────────────────────────────────────── */
#site-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── セクション共通 ─────────────────────────────────────────── */
.site-section {}
.section-title {
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--text-light);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 18px;
}

/* ── ジェネレーター一覧 ─────────────────────────────────────── */
.gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.gen-card {
  display: flex;
  flex-direction: column;
  background: var(--panel-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-light);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.gen-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* カード上部：サンプル画像エリア */
.gen-card-img {
  background: var(--brown-dark);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.gen-card-img img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: cover;
  object-position: top;
}
/* 画像なしのとき表示するテキスト */
.gen-card-img::after {
  content: attr(data-name);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text-light);
  opacity: 0.4;
  position: absolute;
}
.gen-card-img img + * { display: none; } /* 画像ある時は非表示 */

/* カード下部：テキスト */
.gen-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.gen-card-title {
  font-size: 1rem;
  font-weight: bold;
}
.gen-card-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  opacity: 0.9;
  flex: 1;
}
.gen-card-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 6px;
  background: var(--orange);
  color: var(--text-light);
  font-weight: bold;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.15s;
}
.gen-card:hover .gen-card-btn {
  background: var(--orange-dark);
}

/* ── 更新情報 ───────────────────────────────────────────────── */
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-list li {
  display: flex;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.6;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(154,96,16,0.45);
}
.news-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.news-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  background: var(--brown-dark);
  color: var(--text-light);
  padding: 2px 8px;
  border-radius: 4px;
  height: fit-content;
  margin-top: 1px;
  letter-spacing: 0.03em;
}

/* ── SNS リンク ─────────────────────────────────────────────── */
.sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brown-dark);
  border: 2px solid var(--border);
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.15s, opacity 0.15s;
  opacity: 0.9;
}
.sns-link:hover { background: var(--orange-dark); opacity: 1; }

/* ── フッター ───────────────────────────────────────────────── */
#site-footer {
  background: var(--brown-dark);
  border-top: 3px solid var(--border);
  padding: 20px 16px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-copy {
  font-size: 0.75rem;
  opacity: 0.7;
  letter-spacing: 0.03em;
}

/* ── コンテンツページ（規約・作者について等） ──────────────────── */
.page-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}
.page-content {
  background: #FFF5E0;
  border-radius: var(--radius);
  border: 2px solid #B8916A;
  padding: 28px 32px 36px;
  color: #4A2800;
  font-size: 0.95rem;
  line-height: 1.8;
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-title {
  font-size: 1.4rem;
  color: #3A1800;
  padding-bottom: 12px;
  border-bottom: 2px solid #C8A882;
  margin-bottom: 4px;
}
.page-content h3 {
  font-size: 1rem;
  color: #5A2E00;
  margin-top: 4px;
}
.page-section-title {
  font-weight: bold;
  color: #8B1A00;
}
.page-list {
  margin: 0 0 0 1.5em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #8B1A00;
}
/* 禁止事項以外の中立セクション用 */
.page-section-heading {
  font-weight: bold;
  color: #5A2E00;
}
.page-neutral-list {
  margin: 0 0 0 1.5em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-neutral-list a {
  color: #7A3A00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-neutral-list a:hover { color: #C55E00; }
.page-author-box {
  border-top: 1px solid #C8A882;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-author-name {
  font-size: 1.05rem;
  font-weight: bold;
  color: #3A1800;
}
.page-account-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-account-label {
  font-weight: bold;
  color: #5A2E00;
}
.page-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-link-list a {
  color: #7A3A00;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.page-link-list a:hover { color: #C55E00; }

.page-sns-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-sns-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brown-dark);
  border: 2px solid var(--border);
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: bold;
  padding: 7px 16px;
  border-radius: 8px;
  transition: background 0.15s;
}
.page-sns-link:hover { background: var(--orange-dark); }

.page-claude-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #C8A882;
  font-size: 0.82rem;
  color: #7A5030;
  line-height: 1.6;
}

/* ── カード内サンプルギャラリー ─────────────────────────────── */
.card-sample-grid {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow: hidden;
}
.card-sample-grid img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
  flex-shrink: 0;
}

/* ── リニューアル告知・エラーページ ─────────────────────────── */
.renew-content {
  text-align: center;
  align-items: center;
  padding: 40px 32px 48px;
}
.renew-icon {
  font-size: 3rem;
  line-height: 1;
}
.renew-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #3A1800;
}
.renew-text {
  color: #4A2800;
  line-height: 1.85;
}
.renew-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.renew-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.renew-btn:hover { background: var(--orange-dark); }
.renew-sub-link {
  color: #7A3A00;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.renew-sub-link:hover { color: var(--orange-dark); }

/* ── AI翻訳通知 ─────────────────────────────────────────────── */
.ai-notice {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,245,224,0.25);
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-light);
  opacity: 0.8;
  text-align: center;
  margin-bottom: -16px; /* gap との重複分を相殺 */
}

/* ── 最新作品グリッド ───────────────────────────────────────── */
.latest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.latest-grid img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: var(--brown-dark);
  border-radius: 4px;
}

/* ── みんなの作品リンク ─────────────────────────────────────── */
.sample-gallery-link-wrap {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.sample-gallery-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.sample-gallery-link:hover { opacity: 1; text-decoration: underline; }

/* ── レスポンシブ ────────────────────────────────────────────── */
@media (max-width: 480px) {
  #site-title { font-size: 1.5rem; }
  .gen-grid { grid-template-columns: 1fr; }
  .page-content { padding: 20px 16px 28px; }
}
