:root{
  --bg:#0b1020;
  --bg2:#0f1630;
  --card:rgba(255,255,255,.07);
  --card2:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.70);
  --line:rgba(255,255,255,.14);
  --accent:#8bd3ff;
  --accent2:#c8a8ff;
  --shadow:0 14px 40px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:26px;
}

*{ box-sizing:border-box; }

/* ✅ 背景をページ全体（スクロール全域）に効かせる */
html{
  min-height:100%;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(139,211,255,.20), transparent 60%),
              radial-gradient(900px 500px at 85% 0%, rgba(200,168,255,.18), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  background-color: var(--bg2); /* 念のための保険 */
}

body{
  min-height:100vh;
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  color:var(--text);
  background: transparent; /* 背景は html 側に任せる */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }
.wrap{
  width:min(980px, 92vw);
  margin:0 auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:10;
  background: rgba(10,14,30,.65);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
}
.logo{
  width:42px; height:42px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,211,255,.25), rgba(200,168,255,.20));
  border:1px solid var(--line);
}
.brand-title{ font-weight:800; letter-spacing:.02em; }
.brand-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
  font-size:13px;
}
.nav a{
  color:var(--muted);
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color: var(--line);
  text-decoration:none;
}

/* Hero */
.hero{
  padding:28px 0 14px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .95fr;
  gap:16px;
  align-items:stretch;
}
h1{
  margin:0 0 10px 0;
  font-size: clamp(28px, 5.6vw, 44px);
  line-height:1.08;
  letter-spacing:.01em;
}
.lead{
  margin:0 0 14px 0;
  color:var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 12px 0 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5em;
  padding: 12px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color:var(--text);
  text-decoration:none !important;
  box-shadow: none;
}
.btn:hover{
  background: rgba(255,255,255,.10);
}
.btn.primary{
  border-color: rgba(139,211,255,.45);
  background: linear-gradient(135deg, rgba(139,211,255,.30), rgba(200,168,255,.20));
}
.btn.ghost{
  color: var(--accent);
}
.btn.small{
  padding:10px 12px;
  font-size: 14px;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin: 10px 0 0 0;
}
.badges li{
  font-size: 12.5px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
}

/* Cards */
.card, .hero-card, .soft, .callout, .post, .details-body{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.hero-card{
  padding:14px 14px 12px;
}
.card-title{
  font-weight:800;
  letter-spacing:.02em;
  margin-bottom: 8px;
}
.steps{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.note{
  margin-top:10px;
  font-size: 12.5px;
  color: var(--muted);
  border-top:1px solid var(--line);
  padding-top:10px;
}

/* Sections */
.section{
  padding: 20px 0;
}
.section.alt{
  background: transparent;
  border-top: none;
  border-bottom: none;
}

h2{
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing:.02em;
}
.sub{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.card{
  padding: 14px;
}
.card h3{
  margin: 0 0 6px;
  font-size: 16px;
}
.card p{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.75;
}
.links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 8px 0 0;
}

.soft{
  margin-top: 12px;
  padding: 12px 14px;
  color: var(--muted);
  box-shadow: none;
}
.callout{
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(139,211,255,.10);
  box-shadow:none;
}
.callout b{ color: var(--text); }

.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

/* Posts */
.postlist{
  display:grid;
  gap:10px;
}
.post{
  padding: 14px;
  box-shadow: none;
}
.post-meta{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--muted);
  font-size: 12.5px;
}
.post .dot{ opacity:.7; }
.tag{
  padding: 4px 10px;
  border:1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}
.post h3{
  margin: 8px 0 6px;
  font-size: 16px;
}
.post p{
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

/* Details / FAQ */
.details{
  margin-top: 12px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
}
.details summary{
  padding: 12px 14px;
  cursor:pointer;
  color: var(--text);
  font-weight: 650;
}
.details-body{
  margin: 0 14px 14px;
  padding: 12px 14px;
  box-shadow:none;
  background: rgba(0,0,0,.18);
}
.details-body code{
  color: var(--text);
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.10);
}

.faq{
  display:grid;
  gap:10px;
}
.faq details{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  overflow:hidden;
}
.faq summary{
  padding: 12px 14px;
  cursor:pointer;
  font-weight: 650;
}
.faq .details-body{
  margin: 0 14px 14px;
}

/* Footer */
.footer{
  padding: 22px 0 28px;
  border-top:1px solid rgba(255,255,255,.10);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
.footer-title{ font-weight:900; letter-spacing:.03em; }
.footer-sub{ color: var(--muted); margin-top: 2px; }
.small{ font-size: 13px; color: var(--muted); line-height: 1.7; }
.muted{ color: rgba(255,255,255,.55); }

/* Mobile */
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .nav{ display:none; } /* スマホはシンプルに */
  .footer-grid{ grid-template-columns: 1fr; }
  .grid2{ grid-template-columns: 1fr; }
}

/* ======================================================
   📅 今日のマヤ暦（トップ）
====================================================== */

#mayaTodayBox h2 { margin-bottom: 6px; }

.maya-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}
@media (max-width: 860px){
  .maya-grid{ grid-template-columns: 1fr; }
}

.maya-today-card{ padding: 14px; }

.maya-date{
  font-weight: 800;
  letter-spacing: .02em;
}
.maya-kin{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}
.maya-flow{
  margin: 10px 0 0;
  line-height: 1.85;
  color: var(--text);
}

.maya-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 520px){
  .maya-split{ grid-template-columns: 1fr; }
}

.maya-chip{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  line-height: 1.7;
}
.maya-chip-title{
  display: inline-block;
  font-weight: 750;
  color: var(--text);
  margin-right: 8px;
}

.maya-error{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.maya-week-card{ padding: 14px; }

.maya-week-list{
  display: block;
}

.maya-week-item{
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0;
  background: transparent;

  /* 1行表示（狭い画面は省略表示） */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maya-week-item:hover{
  background: transparent;
}

.maya-week-item:last-child{
  border-bottom: none;
}

.maya-week-date{
  font-weight: 700;
}
.maya-week-kin{
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13.5px;
}
.footer-tagline{
  margin-top: 6px;
  font-size: 13px;
  opacity: .85;
}
