/* =====================================================
   App Legal Site - Legal Document Style
   ===================================================== */

/* --- Reset & Base ---------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  background: #f9f9f9;
}

/* --- Layout ---------------------------------------- */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header ---------------------------------------- */
.site-header {
  background: #fff;
  border-bottom: 2px solid #1a73e8;
  padding: 1rem 0;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
}

.site-title:hover {
  text-decoration: underline;
}

/* --- Main ------------------------------------------ */
.site-main {
  min-height: calc(100vh - 120px);
  padding: 2rem 0;
}

/* --- Footer ---------------------------------------- */
.site-footer {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
  color: #666;
}

/* --- Index Page ------------------------------------ */
.page-title {
  font-size: 1.75rem;
  color: #1a1a1a;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-list-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  transition: box-shadow 0.2s;
}

.app-list-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-list-item .app-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a73e8;
}

.app-list-item .app-description {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.25rem;
}

.app-list-item .app-meta {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.25rem;
}

/* 文書種別リスト（アプリ配下の各ドキュメントへのリンク） */
.doc-type-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doc-type-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-type-list a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid #1a73e8;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #1a73e8;
  text-decoration: none;
  transition: background 0.15s;
}

.doc-type-list a:hover {
  background: #1a73e8;
  color: #fff;
}

.doc-type-list .app-meta {
  font-size: 0.8rem;
  color: #888;
}

/* --- App Policy Page ------------------------------- */
.app-policy {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 2rem;
}

.policy-header {
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.policy-header h1 {
  font-size: 1.6rem;
  color: #1a1a1a;
  margin: 0 0 0.25rem;
}

/* 文書種別バッジ（プライバシーポリシー・利用規約など） */
.policy-doc-type {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin: 0 0 0.5rem;
}

.policy-meta {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
}

.policy-meta .policy-version {
  margin-right: 1rem;
}

.policy-lang-note {
  font-size: 0.8rem;
  color: #888;
  margin: 0.5rem 0 0;
}

/* --- Policy Body Typography ----------------------- */
.policy-body h2 {
  font-size: 1.2rem;
  color: #1a1a1a;
  border-left: 4px solid #1a73e8;
  padding-left: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-body h3 {
  font-size: 1.05rem;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-body p {
  margin: 0.75rem 0;
}

.policy-body ul,
.policy-body ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

.policy-body li {
  margin-bottom: 0.4rem;
}

.policy-body a {
  color: #1a73e8;
}

.policy-body a:hover {
  text-decoration: none;
}

/* --- Policy Footer --------------------------------- */
.policy-footer {
  border-top: 1px solid #e0e0e0;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}

.policy-footer a {
  color: #1a73e8;
  text-decoration: none;
}

.policy-footer a:hover {
  text-decoration: underline;
}

/* --- Responsive ------------------------------------ */
@media (max-width: 600px) {
  .app-policy {
    padding: 1.25rem;
  }

  .policy-header h1 {
    font-size: 1.3rem;
  }
}
