/* ===== 開発者ハブサイト共通スタイル =====
   モバイルファースト / システムフォント / 温かみのある配色 */

:root {
  --bg: #fdfaf5;
  --bg-soft: #f7efe4;
  --card: #ffffff;
  --text: #43392f;
  --text-soft: #7d7265;
  --accent: #e07a4f;
  --link: #b3552d;
  --accent-soft: #fbe8dd;
  --border: #ece2d4;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(90, 70, 50, 0.07);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヘッダー / ナビ ===== */
.site-header {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

/* ===== ヒーロー ===== */
.hero {
  text-align: center;
  padding: 44px 0 36px;
}

.hero-avatar {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(135deg, #fbe8dd, #f7d9c4);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}

.hero .sub {
  color: var(--text-soft);
  font-size: 0.95rem;
  max-width: 30em;
  margin: 0 auto;
}

/* SNSリンク */
.sns-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.sns-links a {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.sns-links a:hover {
  transform: translateY(-2px);
}

.sns-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ===== セクション共通 ===== */
.section {
  padding: 26px 0;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-lead {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ===== 注目アプリカード ===== */
.featured-grid {
  display: grid;
  gap: 16px;
  /* JS描画前に領域を確保してレイアウトシフトを防ぐ */
  min-height: 460px;
}

/* 一覧ページはJS描画で全カードが入るため、描画前に十分な高さを確保 */
body[data-page="apps"] #all-apps {
  min-height: 100vh;
}

.featured-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-card .card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.featured-card h3 {
  font-size: 1.02rem;
  line-height: 1.5;
}

.featured-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.featured-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* アプリアイコン(プレースホルダー対応) */
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon--sm {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  font-size: 1.2rem;
}

.app-icon--lg {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  font-size: 2.2rem;
}

/* App Storeバッジ */
.store-badge img {
  height: 44px;
  width: auto;
}

/* ===== ステージ別リストカード ===== */
.app-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.list-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-card .list-body {
  flex: 1;
  min-width: 0;
}

.list-card h2,
.list-card h3 {
  font-size: 0.94rem;
  line-height: 1.45;
}

.list-card h2 a,
.list-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.list-card h2 a:hover,
.list-card h3 a:hover {
  color: var(--accent);
}

.list-card p {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-top: 2px;
}

.list-card .chevron {
  color: var(--border);
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* ===== その他アプリ(折りたたみ) ===== */
details.others {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 0;
}

details.others summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details.others summary::-webkit-details-marker {
  display: none;
}

details.others summary::after {
  content: "＋";
  color: var(--text-soft);
}

details.others[open] summary::after {
  content: "−";
}

details.others .app-list {
  padding: 0 14px 14px;
}

/* ===== フッター ===== */
.site-footer {
  margin-top: 40px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-soft);
}

/* ===== アプリ個別ページ ===== */
.app-hero {
  text-align: center;
  padding: 40px 0 10px;
}

.app-hero .app-icon {
  margin: 0 auto 18px;
}

.app-hero h1 {
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.app-hero .lead {
  color: var(--text-soft);
  font-size: 0.95rem;
  text-align: left;
  max-width: 34em;
  margin: 0 auto 22px;
}

.app-hero .store-badge img {
  height: 52px;
}

.feature-list,
.target-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li,
.target-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.feature-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.target-list li::before {
  content: "👤";
  flex-shrink: 0;
  font-size: 0.85em;
}

.app-cta {
  text-align: center;
  padding: 30px 0 10px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-soft);
  padding-top: 18px;
}

.breadcrumb a {
  color: var(--text-soft);
}

/* ===== 記事ページ(プライバシー/お問い合わせ) ===== */
.article {
  padding: 36px 0;
}

.article h1 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.article h2 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
}

.article h3 {
  font-size: 1rem;
  margin: 22px 0 8px;
}

.article p,
.article ul {
  margin-bottom: 14px;
  font-size: 0.94rem;
}

.article ul {
  padding-left: 1.4em;
}

.contact-email {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  font-size: 1.05rem;
  margin: 20px 0;
}

/* ===== レスポンシブ(タブレット以上) ===== */
@media (min-width: 600px) {
  .container {
    max-width: 720px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 240px;
  }

  .app-list {
    grid-template-columns: 1fr 1fr;
  }

  details.others .app-list {
    grid-template-columns: 1fr 1fr;
  }
}
