/*
 * tinpan.css — tinpangames デザインシステム
 *
 * 使い方: <link rel="stylesheet" href="/css/tinpan.css" />
 *
 * このファイルにはデザイントークンと再利用可能なコンポーネントが含まれます。
 * ページ固有のレイアウト（ヒーロー・ヘッダー等）は各ページのスタイルに書いてください。
 */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=MPLUS1:wght@800;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --mint:   #00D4C2;
  --navy:   #0D1B2A;
  --cream:  #F6F5F0;
  --coral:  #FF4529;
  --white:  #ffffff;
  --muted:  #64748B;
  --border: rgba(13, 27, 42, 0.1);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
               "Hiragino Sans", "Yu Gothic UI", sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── LAYOUT ── */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
}

/* ── TYPOGRAPHY ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: "MPLUS1", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.see-all {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.see-all:hover { color: var(--navy); }

/* ── BUTTONS ── */
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

.btn-primary { background: var(--coral); color: var(--white); }

.btn-outline { background: var(--white); color: var(--navy); border: 1.5px solid var(--border); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ── APP CARDS ── */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.app-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  border: 1.5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13,27,42,0.08);
  border-color: var(--mint);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 0.25rem;
}

.app-icon-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(0, 212, 194, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

.app-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(0, 212, 194, 0.12);
  color: #009B8D;
  align-self: flex-start;
}

.app-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.app-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn       { transition: none; }
  .app-card  { transition: none; }
  .see-all   { transition: none; }
}
