/* =====================================================
   FabLab Oita — index.css
   トップページ専用スタイル
===================================================== */

/* =====================
   HERO (Canvas)
===================== */
.hero {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}
#hero-canvas {
  display: block;
  width: 100%;
  cursor: none;
}

/* =====================
   ABOUT
===================== */
.about-section {
  padding: 5rem 3rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  background-image: url('../images/lab_landscape.webp');
  background-size: cover;
  background-position: center;
}
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(242, 242, 242, 0.82);
}
.about-heading {
  position: sticky;
  top: 5rem;
  z-index: 1;
}
.about-body {
  z-index: 1;
}
.about-lead {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.8;
  color: #000;
  margin-bottom: 1.5rem;
}
.about-text {
  font-size: 0.85rem;
  color: #000;
  line-height: 2;
  font-weight: 300;
  margin-bottom: 2rem;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.about-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #000;
  border: 1px solid var(--border);
  padding: 4px 10px;
  text-transform: uppercase;
}

/* =====================
   STATS
===================== */
.stats {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  border-bottom: 1px solid var(--border);
}
.stat-item { padding: 2.5rem 3rem; }
.stat-divider { background: var(--border); }
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.78rem; color: var(--lighter); }

/* =====================
   MACHINES
===================== */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: var(--border);
  border: 1px solid var(--border);
  position: relative;
}
.machines-grid::after {
  content: '';
  position: absolute;
  left: calc(50% - 0.25px);
  top: 0;
  width: 0.5px;
  padding-bottom: 25%;
  background: var(--border);
  pointer-events: none;
}
a.machine-card { text-decoration: none; color: inherit; }
.machine-card {
  background: var(--bg);
  padding: 0 0 1.75rem;
  transition: background 0.2s;
  overflow: hidden;
}
.machine-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.machine-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.machine-icon,
.machine-name,
.machine-desc { margin-left: 1.5rem; margin-right: 1.5rem; }
.machine-card:hover { background: #eaeaea; }
.machine-icon { width: 32px; height: 32px; margin-bottom: 1.25rem; opacity: 0.35; }
.machine-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.machine-desc { font-size: 0.72rem; color: var(--lighter); line-height: 1.6; }

/* =====================
   NEWS (note RSS)
===================== */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem; position: relative; }
.news-list::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 0.5px; background: #e8e8e8; }
.news-item {
  display: grid;
  grid-template-columns: 100px 160px 1fr auto;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid #e8e8e8;
  gap: 1.5rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.news-item:hover { opacity: 1; }
.news-item:hover .news-title,
.news-item:hover .news-date,
.news-item:hover .news-arrow { color: #000; }
.news-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lighter);
}
.news-thumb {
  width: 160px;
  height: 108px;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-title { font-size: 0.82rem; color: var(--muted); }
.news-arrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lighter);
}
.news-empty { font-size: 0.82rem; color: var(--lighter); padding: 1rem 0; }

/* =====================
   ACCESS
===================== */
.access-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.access-info {
  padding: 4.5rem 3rem;
  border-right: 1px solid var(--border);
}
.access-address {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 2;
  margin-top: 1.5rem;
}
.access-address strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--lighter);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}
.access-map {
  background: #e4e4e4;
  min-height: 320px;
}
#map_canvas_flo {
  width: 100%;
  height: 590px;
}
.access-map-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lighter);
  letter-spacing: 0.15em;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .about-section { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
  .about-heading { position: static; }
  .stats { grid-template-columns: 1fr; }
  .stat-divider { display: none; }
  .machines-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 80px 1fr auto; }
  .news-thumb { display: none; }
  .access-wrap { grid-template-columns: 1fr; }
  .access-map { min-height: 200px; }
}

/* =====================
   CALENDAR
===================== */
.calendar-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.calendar-wrap iframe {
  display: block;
  max-width: 100%;
}

@media (max-width: 768px) {
  .calendar-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
