/* =========================
   Base
========================= */
:root{
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #ff8fb1;
  --primary-dark: #ff6f9e;
  --text: #2b2b2b;
  --muted: #777;
  --border: #e5e7eb;
  --radius: 12px;
}

*{
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #333;
  line-height: 1.8;
}
header {
  background: linear-gradient(135deg, #6b9cff, #4f6fff);
  color: #fff;
  padding: 2rem 1rem;
}
header h1 {
  margin: 0;
  font-size: 1.8rem;
}
nav.breadcrumb {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
nav.breadcrumb a {
  color: #e0e8ff;
  text-decoration: none;
}



/* ===== レイアウト ===== */
.layout{
    display:flex;
    min-height:100vh;
}

/* ===== メイン ===== */
.content{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* ===== サイドバー ===== */
.sidebar{
    width:260px;
    background: rgba(0,0,0,.06);
    border-right:1px solid var(--primary);
    padding:24px 16px;
}

.sidebar-title{
    font-size:1.2rem;
    margin-bottom:16px;
    color:var(--sub);
}

.sidebar-menu{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar-menu li{
    margin-bottom:10px;
}

.sidebar-menu a{
    display:block;
    padding:12px 14px;
    border-radius:10px;
    text-decoration:none;
    color:var(--text);
    background:rgba(255,255,255,0.03);
    transition:all .25s;
}

.sidebar-menu a:hover{
    background:var(--card);
    transform:translateX(4px);
}
.menu-name{
    display:block;
    font-weight:600;
}

.menu-desc{
    display:block;
    font-size:.75rem;
    color:var(--muted);
}


main {
  max-width: 960px;
  margin: auto;
  padding: 1.5rem;
}
.toc {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}
.toc button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.toc ul {
  list-style: none;
  padding-left: 1rem;
}
.toc a {
  text-decoration: none;
  color: #4f6fff;
}
section {
  margin-bottom: 3rem;
}
section h2 {
  border-left: 6px solid #4f6fff;
  padding-left: 0.6rem;
}
code, pre {
  background: #272822;
  color: #f8f8f2;
  padding: 0.8rem;
  border-radius: 6px;
  overflow-x: auto;
}
/**
手順リスト（Fly.io デプロイ） 
*/
.step-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.step-list li {
  position: relative;
  background: #ffffff;
  border-radius: 10px;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  font-size: 1rem;
}

.step-list li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: #4f6fff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.step-list {
  counter-reset: step;
}

/* 
   Command Box
 コマンド表示用ブロック */

.command-box {
  background: #1e1f1c;
  border-radius: 10px;
  margin: 1.5rem 0;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.command-box .command-title {
  background: #4f6fff;
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: bold;
}

.command-box pre {
  margin: 0;
  padding: 1rem;
  color: #f8f8f2;
  font-size: 0.95rem;
  overflow-x: auto;
}

.command-box code {
  background: none;
  padding: 0;
  color: inherit;
  font-family: "SFMono-Regular", Consolas, monospace;
}

/* =========================
   Site Map / Related Facilities
========================= */

.site-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.site-map .card {
  display: block;
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.site-map .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,95,162,0.12),
    rgba(95,209,255,0.12)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-map .card:hover::before {
  opacity: 1;
}

.site-map .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.site-map .card h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #111827;
  position: relative;
  z-index: 1;
}

.site-map .card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* =========================
   Section-Box common
========================= */

.section-box {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-box > h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.section-box > h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff5fa2, #5fd1ff);
  margin: 10px auto 0;
  border-radius: 2px;
}


footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #666;
}


/* ===== レスポンシブ ===== */
@media (max-width:900px){
    .layout{
        flex-direction:column;
    }
    .sidebar{
        width:100%;
        border-right:none;
        border-bottom:1px solid #222;
    }
}
