/* styles.css */
:root{
  --bg: #0b0f14;
  --panel: #111826;
  --panel2: #0f1623;
  --text: #e8eef6;
  --muted: #aab6c6;
  --border: rgba(255,255,255,.10);
  --accent: #6ee7ff;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --radius2: 22px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(110,231,255,.18), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(167,139,250,.16), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container{
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,15,20,.85), rgba(11,15,20,.55));
  border-bottom: 1px solid var(--border);
}

.hero{
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 16px;
  padding: 18px 0;
  align-items: start;
}

.kicker{
  margin: 0 0 6px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .02em;
}

h1{
  margin: 0;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.25;
}

.sub{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.toc{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.toc a{
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.toc a:hover{
  border-color: rgba(110,231,255,.35);
  box-shadow: 0 0 0 3px rgba(110,231,255,.12);
}

main{
  padding: 18px 0 40px;
}

.day{
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(17,24,38,.85), rgba(15,22,35,.78));
  box-shadow: var(--shadow);
}

.day-head{
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.day-label{
  margin: 0;
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .02em;
}

.day h2{
  margin: 4px 0 0;
  font-size: 20px;
}

.stay{
  font-size: 13px;
  color: var(--text);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  white-space: nowrap;
}
.stay.subtle{
  color: var(--muted);
}

.grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 14px;
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 12px 10px;
  background: rgba(255,255,255,.03);
}

.card h3{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: .01em;
}

.card ul{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.note{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   ???????details/summary/raw????????
   ========================================================= */

details{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.16);
}

/* ?????2/xx? */
summary{
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  list-style: none;

  display: flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
summary::-webkit-details-marker{ display:none; }

/* ?????? */
summary::before{
  content: "?";
  opacity: .9;
  transform: translateY(-1px);
}
details[open] summary::before{
  content: "?";
}

/* ?????????????????????????????? */
details[open] summary{
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(8px);
}

/* ?????????????????????????? */
.raw{
  margin: 0;
  padding: 12px 12px 14px;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Noto Sans Mono", "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.75;

  color: #e6eef9;
  white-space: pre-wrap;
  word-break: break-word;

  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.26);

  max-height: 320px;
  overflow: auto;
}

/* ??????????????????????????? */
details[open] .raw{
  -webkit-mask-image: linear-gradient(to bottom, black 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 86%, transparent 100%);
}

/* ????????????????? */
.raw::-webkit-scrollbar{
  height: 10px;
  width: 10px;
}
.raw::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.16);
  border-radius: 999px;
}
.raw::-webkit-scrollbar-track{
  background: rgba(255,255,255,.06);
  border-radius: 999px;
}

/* ??????????????????????? */
summary:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(110,231,255,.18);
  border-radius: 12px;
}

/* ========================================================= */

.merit{
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  background: linear-gradient(180deg, rgba(17,24,38,.75), rgba(15,22,35,.72));
  box-shadow: var(--shadow);
}

.merit h2{
  margin: 0 0 8px;
  font-size: 18px;
}

.merit-list{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.site-footer{
  margin-top: 18px;
  padding: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .toc{ justify-content: flex-start; }
  .grid{ grid-template-columns: 1fr; }
  .stay{ white-space: normal; }
}

/* ===== clickable URL list block ===== */
.link-block{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 12px 12px;
  background: rgba(255,255,255,.02);
}

.link-title{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.url-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.url-list li{
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 10px;
  background: rgba(0,0,0,.14);
}

.url-meta{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.35;
}

.url-list a{
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.url-list a:hover{
  text-decoration: underline;
}

.url-list a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(110,231,255,.18);
  border-radius: 10px;
}
