@charset "UTF-8";

/* ===== Base ===== */
:root{
  --bg:#e6e6fa;           /* lavender */
  --card:#ffffff;
  --text:#222222;
  --muted:#555555;
  --border:#dddddd;
  --accent:#228b22;       /* green */
  --btn:#666666;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:"Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","Meiryo",sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-text-size-adjust:100%;
}

a{ color: var(--text); }
a:hover{ color: var(--accent); }
img{ max-width:100%; height:auto; }

main{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 28px;
}

/* ===== Header image ===== */
.site-header{
  background: url(bootcamp.png) center/cover no-repeat;
  min-height: 200px;
  display:flex;
  align-items:center;     /* ← 縦も中央 */
  justify-content:center; /* ← 横も中央 */
  padding: 14px;
}

.site-header .titlebox{
  background: rgba(0,0,0,.45);
  color:#fff;
  padding: 12px 14px;
  border-radius: 14px;
  text-align:center;
  width: min(92%, 840px);
}

.site-header h1{
  margin: 0;
  font-size: clamp(22px, 3.5vw, 40px);
  line-height: 1.15;
}

.site-header p{
  margin: 8px 0 0;
  font-size: 15px;
  opacity: .95;
}

/* ===== Top nav ===== */
.topnav{
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.topnav ul{
  list-style:none;
  margin:0;
  padding: 10px 12px;
  display:flex;
  gap: 14px;
  justify-content:center;
  flex-wrap:wrap;
}

.topnav a{
  text-decoration:none;
  font-weight:700;
}

/* ===== Sections ===== */
.section{
  background: var(--card);
  border: 1px solid var(--card);
  width: min(96%, 1100px);
  margin: 12px auto;
  padding: 16px;
}

.section h2{
  margin: 0 0 10px;
  text-align:center;
  font-size: 18px;
  color: var(--muted);
  background:#f0f0f0;
  padding: 10px;
}

.section h3{
  margin: 14px 0 8px;
  text-align:center;
}

.section p{
  line-height: 1.75;
  margin: 10px 0 0;
}

/* ===== Responsive video ===== */
.video{
  position: relative;
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
  margin: 10px auto 0;
}

.video iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* ===== Details ===== */
details{
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background:#fff;
}

summary{
  cursor:pointer;
  font-weight:700;
}

summary::-webkit-details-marker{ display:none; }

/* ===== Product grid ===== */
ul.news{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  gap: 12px;
}

li.news{
  border: 1px solid var(--border);
  background:#fff;
  padding: 12px;
}

li.news h1{
  font-size: 16px;
  margin: 10px 0 0;
  text-align:center;
}

li.news p{
  margin: 0;
}

@media (min-width: 780px){
  ul.news{ grid-template-columns: repeat(3, 1fr); }
}

/* ===== Footer ===== */
footer{
  width: min(96%, 1100px);
  margin: 12px auto 0;
  background:#e6e6fa;
  padding: 12px 16px;
  color:#444;
}
