/* Green Corn Lab — サポートサイト
   モバイルファースト。OSの外観設定にあわせてライト／ダークが切り替わる。 */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #22252a;
  --muted: #5c626b;
  --accent: #2c6b4f;
  --accent-hover: #1f4f3a;
  --border: #e2ded4;
  --banner-bg: #fdf6e3;
  --banner-border: #e6d9a8;
  --banner-text: #6b5a1e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181b;
    --surface: #1b1f23;
    --text: #e7e9ea;
    --muted: #a3a9b0;
    --accent: #82c39d;
    --accent-hover: #a3d6b6;
    --border: #2b3138;
    --banner-bg: #26231a;
    --banner-border: #4a4127;
    --banner-text: #ddc98b;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover, a:focus { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ヘッダー / フッター */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.site-header__brand {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.lang-switch { font-size: 0.9rem; }
.lang-switch a { margin-left: 0.75rem; }

.site-footer {
  margin-top: 3.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer__nav a { margin-right: 1rem; }
.site-footer__copy { margin: 0.75rem 0 0; }

/* 本文 */
main { padding-top: 2rem; padding-bottom: 1rem; }

h1 {
  font-size: 1.55rem;
  line-height: 1.4;
  margin: 0 0 1.25rem;
}
h2 {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.4rem;
}
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

.lead { color: var(--muted); }
.note { color: var(--muted); font-size: 0.92rem; }
.updated { color: var(--muted); font-size: 0.92rem; }
.crosslink { margin-top: 2.5rem; }

.contact { font-size: 1.05rem; }

.banner {
  padding: 0.85rem 1rem;
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  border-radius: 8px;
  color: var(--banner-text);
  font-size: 0.92rem;
}

.contact-list { margin: 0; }
.contact-list dt { color: var(--muted); font-size: 0.9rem; }
.contact-list dd { margin: 0 0 0.85rem; }

.app-list { list-style: none; padding: 0; }
.app-list__item {
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.app-list__item h3 { margin: 0 0 0.35rem; }
.app-list__links { margin: 0; }
.app-list__links a { margin-right: 1rem; }

/* 表は狭い画面では横スクロールさせる */
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.94rem;
}
th, td {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
thead th { background: var(--surface); }
tbody th { font-weight: 600; white-space: nowrap; }

hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

@media (min-width: 40rem) {
  body { font-size: 17px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.25rem; }
  main { padding-top: 2.75rem; }
}

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
