/*
  site-modern.css
  Reusable stylesheet for the redesigned kanko-hofu.gr.jp pages.

  How to use:
  1) Place this file at a shared path (example: /css/site-modern.css)
  2) In each HTML page, include:
     <link rel="stylesheet" href="/css/site-modern.css">
  3) Remove the old bootstrap/custom/theme CSS links for those pages (optional but recommended).

  Notes:
  - Uses Juma default brand tokens (accent #40C4D3).
  - Designed for content pages: header + hero + toc + article + share + footer.
*/

:root{
  --accent:#40C4D3;
  --text:#1E293B;
  --muted:#475569;
  --bg:#FFFFFF;
  --page:#F3F4F6;
  --card:#FFFFFF;
  --border:rgba(30,41,59,.12);
  --shadow:0 10px 30px rgba(30,41,59,.08);
  --radius:18px;
  --radius-sm:14px;
  --max:980px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg, var(--page), #fff 55%);
  line-height:1.65;
}

a{color:inherit; text-decoration:none}
a:focus{outline:3px solid rgba(64,196,211,.35); outline-offset:3px; border-radius:10px}

/* Accessible skip link (use: <a class="skip" href="#main">Skip to content</a>) */
.skip{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  z-index:9999;
}

.container{max-width:var(--max); margin:0 auto; padding:0 20px}

/* Header */
header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:saturate(1.2) blur(14px);
  background:rgba(243,244,246,.78);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:210px;
}
.logo{
  width:36px;
  height:36px;
  border-radius:12px;
  background:radial-gradient(circle at 30% 30%, rgba(64,196,211,.9), rgba(64,196,211,.25) 62%),
             linear-gradient(135deg, rgba(30,41,59,.18), rgba(30,41,59,.02));
  border:1px solid rgba(64,196,211,.35);
  box-shadow:0 8px 20px rgba(64,196,211,.18);
}
.brand strong{font-weight:700; letter-spacing:.1px}
.brand small{display:block; color:var(--muted); font-weight:500; margin-top:1px}

.navlinks{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.navlinks a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:600;
  font-size:14px;
}
.navlinks a:hover{background:rgba(64,196,211,.10); color:var(--text)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  font-weight:700;
  font-size:14px;
  border:1px solid rgba(64,196,211,.35);
  background:rgba(64,196,211,.14);
  color:var(--text);
}
.btn:hover{background:rgba(64,196,211,.20)}

/* Main layout */
main{padding-bottom:26px}

.hero{padding:34px 0 18px}
.heroCard{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.heroCard .pad{padding:26px}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(64,196,211,.12);
  border:1px solid rgba(64,196,211,.25);
  color:var(--muted);
  font-weight:700;
  font-size:13px;
}
.kicker .dot{width:8px; height:8px; border-radius:50%; background:var(--accent)}

h1{margin:14px 0 8px; font-size:38px; line-height:1.12; letter-spacing:-.5px}
.lead{margin:0; color:var(--muted); font-size:16px; max-width:75ch}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}
.pill{
  font-size:12.5px;
  font-weight:700;
  color:var(--muted);
  border:1px solid var(--border);
  background:rgba(243,244,246,.8);
  padding:8px 10px;
  border-radius:999px;
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  padding:10px 0 0;
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card .pad{padding:22px}

/* Article typography */
article h2{
  margin:22px 0 10px;
  font-size:20px;
  letter-spacing:-.2px;
}
article p{margin:0 0 12px; color:rgba(30,41,59,.92)}
article p:last-child{margin-bottom:0}
article h2 + p{margin-top:0}

/* TOC */
.toc{
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:linear-gradient(180deg, rgba(64,196,211,.10), rgba(255,255,255,.0));
  padding:14px;
  margin:6px 0 2px;
}
.toc strong{display:block; margin-bottom:8px}
.toc ul{margin:0; padding-left:18px}
.toc li{margin:6px 0}
.toc a{color:rgba(6,42,46,.95); font-weight:800}
.toc a:hover{text-decoration:underline}

/* Share */
.share{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.share h2{margin:0; font-size:16px}
.share .actions{display:flex; gap:10px; flex-wrap:wrap}
.share .actions a{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.8);
  font-weight:800;
  color:var(--muted);
}
.share .actions a:hover{background:rgba(64,196,211,.12); color:var(--text); border-color:rgba(64,196,211,.30)}

/* Footer */
footer{
  margin-top:26px;
  padding:22px 0 36px;
  border-top:1px solid var(--border);
  color:var(--muted);
}
.footGrid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:16px}
.footGrid ul{margin:10px 0 0; padding:0; list-style:none}
.footGrid li{margin:8px 0}
.footGrid a{color:var(--muted); font-weight:650}
.footGrid a:hover{color:var(--text)}

/* Responsive */
@media (max-width: 860px){
  .navlinks{display:none}
  h1{font-size:32px}
  .footGrid{grid-template-columns:1fr}
}