/* ==========================================================================
   javatel.co.jp 統一スタイル
   - Japanese-first typography (Noto Sans JP / system stack)
   - Public-sector / business 向けの抑制的で清廉な配色
   - 軽量 (no framework)、長期保守を意識
   - 編集時は CSS 変数 (:root) を変えれば全体のトーンが一発で揃う
   ========================================================================== */

:root {
    /* color palette — 公的セクター/業務系の落ち着き */
    --c-bg:        #ffffff;
    --c-fg:        #1a1d22;          /* near-black, より読みやすい */
    --c-muted:     #5e6573;          /* secondary text */
    --c-line:      #e6e8ec;          /* divider */
    --c-accent:    #1a4d80;          /* corporate blue, 公的セクター適合 */
    --c-accent-2:  #0f3358;          /* hover/active darker */
    --c-warn:      #b85c00;
    --c-ok:        #2f6f3a;

    /* typography */
    --font-body:   "Noto Sans JP", "Hiragino Kaku Gothic ProN",
                   "Yu Gothic", "Meiryo", system-ui, -apple-system,
                   "Segoe UI", sans-serif;
    --font-mono:   "Source Code Pro", Menlo, Consolas, "Courier New",
                   ui-monospace, monospace;

    /* layout */
    --w-content:   72rem;            /* desktop max width */
    --w-narrow:    42rem;            /* article column */
    --r-base:      8px;              /* corner radius */
    --pad-section: 4rem;
}

/* base ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--c-fg);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* typography --------------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 0.6em; font-weight: 600; letter-spacing: 0.01em; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.45rem; padding-bottom: 0.3em; border-bottom: 2px solid var(--c-accent); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.0rem; color: var(--c-muted); }
p  { margin: 0 0 1em; }
small { color: var(--c-muted); }

a {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
a:hover, a:focus { color: var(--c-accent-2); text-decoration-thickness: 2px; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.9em; }
pre { background: #f5f6f8; border: 1px solid var(--c-line); border-radius: var(--r-base);
      padding: 1em; overflow: auto; }
blockquote { margin: 1em 0; padding: 0.6em 1em; border-left: 3px solid var(--c-accent);
             background: #f7f9fc; color: var(--c-muted); }

ul, ol { padding-left: 1.4em; }
li + li { margin-top: 0.2em; }

/* layout primitives -------------------------------------------------------- */
.container       { max-width: var(--w-content); margin-inline: auto; padding: 0 1.25rem; }
.container--narrow { max-width: var(--w-narrow); margin-inline: auto; padding: 0 1.25rem; }

section { padding: var(--pad-section) 0; }
section + section { border-top: 1px solid var(--c-line); }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

/* header / footer ---------------------------------------------------------- */
header.site-header {
    border-bottom: 1px solid var(--c-line);
    background: var(--c-bg);
    position: sticky; top: 0; z-index: 10;
    backdrop-filter: saturate(140%) blur(8px);
    background: rgba(255, 255, 255, 0.92);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px;
}
.site-header .brand {
    font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em;
    color: var(--c-fg); text-decoration: none;
}
.site-header .brand small {
    display: block; font-size: 0.7rem; color: var(--c-muted); font-weight: 400;
    letter-spacing: 0.04em;
}
.site-header nav a {
    color: var(--c-fg); text-decoration: none; margin-left: 1.5rem;
    font-size: 0.95rem;
}
.site-header nav a:hover { color: var(--c-accent); }

footer.site-footer {
    border-top: 1px solid var(--c-line);
    padding: 2.5rem 0;
    color: var(--c-muted);
    font-size: 0.85rem;
}
.site-footer .container {
    display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between;
}

/* hero / lead -------------------------------------------------------------- */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--c-line);
}
.hero h1 { font-size: 2.4rem; margin-bottom: 0.4em; }
.hero .lead { font-size: 1.1rem; color: var(--c-muted); max-width: var(--w-narrow); }

/* card / feature ----------------------------------------------------------- */
.card {
    border: 1px solid var(--c-line);
    border-radius: var(--r-base);
    padding: 1.5rem;
    background: var(--c-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.card:hover {
    border-color: var(--c-accent);
    box-shadow: 0 2px 8px rgba(26, 77, 128, 0.08);
}
.card h3 { margin-top: 0; }

/* button ------------------------------------------------------------------- */
.btn {
    display: inline-block; padding: 0.6em 1.4em;
    background: var(--c-accent); color: #fff !important;
    text-decoration: none; border-radius: var(--r-base);
    font-weight: 500; transition: background 0.15s;
}
.btn:hover { background: var(--c-accent-2); text-decoration: none; }
.btn--ghost {
    background: transparent; color: var(--c-accent) !important;
    border: 1px solid var(--c-accent);
}
.btn--ghost:hover { background: var(--c-accent); color: #fff !important; }

/* table -------------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; margin: 1em 0; }
th, td { padding: 0.7em 1em; border: 1px solid var(--c-line); text-align: left;
         font-size: 0.95rem; }
th { background: #f5f6f8; font-weight: 600; }

/* utility ------------------------------------------------------------------ */
.text-center { text-align: center; }
.text-muted  { color: var(--c-muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* responsive --------------------------------------------------------------- */
@media (max-width: 640px) {
    body { font-size: 15px; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 1.7rem; }
    .site-header nav a { margin-left: 0.8rem; font-size: 0.9rem; }
    .site-header nav { flex: 1; text-align: right; }
    section { padding: 2.5rem 0; }
}

/* print -------------------------------------------------------------------- */
@media print {
    header.site-header, footer.site-footer { display: none; }
    body { color: #000; background: #fff; }
    a { color: #000; text-decoration: underline; }
}
