/* ===== CSS Custom Properties ===== */
:root {
  --accent:        #1e4a8c;
  --accent-light:  #2e5fa8;
  --accent-dim:    #dce8f7;
  --bg:            #f7f8fa;
  --surface:       #ffffff;
  --border:        #dde1e7;
  --text:          #1a1d23;
  --text-muted:    #5a6272;
  --link:          #1e4a8c;
  --link-hover:    #2e5fa8;
  --radius:        8px;
  --shadow:        0 1px 4px rgba(0,0,0,.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:        #5a8fd4;
    --accent-light:  #7aaade;
    --accent-dim:    #1a2d45;
    --bg:            #0e1117;
    --surface:       #161b24;
    --border:        #2a3040;
    --text:          #e1e5ed;
    --text-muted:    #8a94a8;
    --link:          #5a8fd4;
    --link-hover:    #7aaade;
    --shadow:        0 1px 4px rgba(0,0,0,.4);
  }
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

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

img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: none; }

/* ===== Header ===== */
.site-header {
  background: var(--accent);
  background: linear-gradient(135deg, #152f5e 0%, #1e4a8c 100%);
  color: #fff;
  padding: 48px 0 44px;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: linear-gradient(135deg, #0d1e3a 0%, #1a3566 100%);
  }
}

.site-header .wrapper { display: flex; align-items: center; gap: 20px; }

.header-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255,255,255,.15);
}

.header-text h1 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}

.header-sub {
  margin-top: 4px;
  font-size: .95rem;
  color: rgba(255,255,255,.82);
}

/* ===== Section headings ===== */
h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 12px;
  margin-bottom: 20px;
}

/* ===== Business description ===== */
.business-list {
  list-style: none;
  padding: 0;
}
.business-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  color: var(--text);
}
.business-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== App list ===== */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== App card ===== */
.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.app-icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--accent-dim);
}

.app-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.app-desc {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}
.store-badge:hover {
  background: var(--accent-light);
  color: #fff;
}

@media (max-width: 480px) {
  .app-card { flex-direction: column; }
}

/* ===== Accounts ===== */
.account-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-dim);
  flex-shrink: 0;
}

.account-name {
  font-weight: 700;
  font-size: .95rem;
}
.account-handle {
  font-size: .85rem;
  color: var(--text-muted);
}
.account-link {
  margin-left: auto;
  font-size: .85rem;
  white-space: nowrap;
}

/* ===== Contact (dl) ===== */
.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.contact-table dt,
.contact-table dd {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

dl.contact-dl { display: grid; grid-template-columns: 10em 1fr; }

dl.contact-dl dt {
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}

dl.contact-dl dd {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.contact-note {
  margin-top: 16px;
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
}

@media (max-width: 480px) {
  dl.contact-dl { grid-template-columns: 1fr; }
  dl.contact-dl dt { border-bottom: none; padding-bottom: 2px; }
  dl.contact-dl dd { padding-top: 0; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--link); margin-bottom: 8px; display: inline-block; }
.site-footer p { margin-top: 6px; }
