:root {
  --bg: #ffffff;
  --bg-subtle: #f7f6f3;
  --figure-bg: #f5f2eb;
  --text: #22201e;
  --text-sub: #57534e;
  --text-muted: #78716c;
  --border: #e5e3dc;
  --accent: #7a4b2a;
  --max-width: 680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --bg-subtle: #21201e;
    --figure-bg: #2a2724;
    --text: #e7e5e0;
    --text-sub: #b5b0a8;
    --text-muted: #8a847c;
    --border: #33312e;
    --accent: #d49b72;
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: none;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--text);
  color: var(--bg);
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-sub);
  text-decoration: none;
  padding: 6px 2px;
  display: inline-block;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

h1 {
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 700;
}

h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* Intro */
.intro {
  padding: 24px 0;
}

.intro p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* App Showcase (Top Featured Block) */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.app-header {
  margin-bottom: 2px;
}

.app-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.app-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.app-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.app-figure {
  background-color: var(--figure-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  overflow: hidden;
}

.app-figure img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
}

.app-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-desc {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 公開後に使うApp Storeバッジ・スクリーンショット用スタイル */
.app-store-area {
  margin: 2px 0;
}

.app-store-area img {
  display: block;
  height: 44px;
  width: auto;
}

.app-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 4px 0;
}

.app-screenshots img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
}

.spec-list {
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.spec-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.spec-row dt {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-row dd {
  color: var(--text);
}

.note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* News */
.news-list {
  list-style: none;
  font-size: 0.92rem;
}

.news-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
}

.news-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* Company Table */
.company-list {
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.company-row dt {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.company-row dd {
  color: var(--text);
}

.purpose-list {
  padding-left: 1.25rem;
  margin-top: 2px;
}

.purpose-list li {
  margin-bottom: 4px;
}

.purpose-list li:last-child {
  margin-bottom: 0;
}

.origin-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact */
.contact-mail {
  margin: 12px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

/* Subpages (Privacy & Support) */
.page-header {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border);
}

.prose {
  padding: 28px 0 40px;
}

.prose h2 {
  font-size: 1.05rem;
  margin: 28px 0 10px;
}

.prose h2:first-of-type {
  margin-top: 20px;
}

.prose p,
.prose ul {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 12px;
}

.prose ul {
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 6px;
}

.faq-list {
  border-top: 1px solid var(--border);
  margin-top: 12px;
}

.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.faq-q {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.faq-a {
  color: var(--text-sub);
  font-size: 0.92rem;
}

.inquiry-guide {
  margin-top: 14px;
  padding: 14px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 28px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
}

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

/* Tablet / Desktop */
@media (min-width: 560px) {
  .app-showcase {
    grid-template-columns: 1fr 220px;
    column-gap: 32px;
    row-gap: 14px;
    align-items: start;
  }

  .app-header {
    grid-column: 1;
  }

  .app-body {
    grid-column: 1;
  }

  .app-figure {
    grid-column: 2;
    grid-row: 1 / 3;
    max-width: 220px;
    margin: 0;
  }

  .app-figure img {
    max-width: 190px;
  }

  .news-list li {
    flex-direction: row;
    gap: 16px;
  }

  .news-date {
    width: 110px;
    flex-shrink: 0;
  }

  .company-row {
    grid-template-columns: 130px 1fr;
    gap: 16px;
    align-items: baseline;
  }

  .company-row dt {
    font-size: 0.9rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
