/* プリポケ アイコンラボ - 共通スタイル */

:root {
  --coral: #E89B8E;
  --coral-dark: #D17F71;
  --coral-soft: #F8E5DC;
  --rose: #C28181;
  --terracotta: #CC6E55;
  --peach: #F8C8A0;
  --baby-pink: #F8C8DC;
  --mauve: #C9A0DC;
  --gold: #D4A574;
  --mustard: #E5B563;
  --sage: #6FA89F;
  --sage-soft: #D9EBE8;
  --cream: #FBF7F4;
  --warm-beige: #F0E5D8;
  --soft-sand: #F8F0E8;
  --brown: #3D3530;
  --brown-light: #8B8378;
}

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

body {
  font-family: -apple-system, "Hiragino Maru Gothic ProN", "Hiragino Sans",
    sans-serif;
  background: #f5f4f1;
  color: #3D3530;
  padding: 24px 16px 80px;
  line-height: 1.6;
}

.wrap { max-width: 960px; margin: 0 auto; }

header {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px 16px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

header p {
  color: var(--brown-light);
  font-size: 14px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 8px;
  border-left: 4px solid var(--coral);
}

.section-desc {
  font-size: 13px;
  color: var(--brown-light);
  margin-bottom: 16px;
  padding-left: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
}

/* iOS実機サイズ：180x180 */
.icon {
  width: 180px;
  height: 180px;
  border-radius: 40px;  /* iOS 18+ squircle 風 */
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.icon-card .name {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #3D3530;
}

.icon-card .meta {
  font-size: 10px;
  color: var(--brown-light);
  margin-top: 2px;
}

/* スマホでホーム画面風に表示するモード */
.grid.home-preview {
  background: linear-gradient(160deg, #1a1a2e, #2d2d4a);
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 20px 12px;
  padding: 24px 16px;
}
.grid.home-preview .icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.grid.home-preview .name {
  color: white;
  font-size: 11px;
  margin-top: 6px;
}
.grid.home-preview .meta { display: none; }

/* タブ切替 */
.tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.tabs button {
  padding: 8px 16px;
  border: 1px solid var(--brown-light);
  background: white;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
  color: var(--brown);
  transition: all .2s;
}
.tabs button.active {
  background: var(--coral);
  color: white;
  border-color: var(--coral);
}

footer {
  margin-top: 40px;
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--brown-light);
}

/* スマホ最適化 */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .icon { width: 140px; height: 140px; border-radius: 32px; }
  .home-preview .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .home-preview .icon { width: 56px; height: 56px; border-radius: 13px; }
}
