/* ============================
   全体のベースリセット
============================ */
body {
    margin: 0;
    padding-top: 0; /* ナビバーの高さに応じて調整可能 */
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

html {
    overflow-y: scroll;
}

/* ============================
   タイトル（title セクション）
============================ */
.title {
    background: url('../figs/header.jpg') center / cover no-repeat;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 0;
}

.title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* 黒のオーバーレイ */
    z-index: 0;
}

.title .overlay {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.title h1 {
    font-size: 2.5em;
    margin: 0;
}

.title p {
    font-size: 1.2em;
    margin: 0;
}

.gc-badge {
    display: inline-block;
    margin-top: 0.25em;
    background-color: #FFF5CC;
    color: #333;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: bold;
}

/* ============================
   ナビゲーションバー
============================ */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #333;
    display: flex;
    justify-content: center;
    padding: 5px 0;
}

.navbar-content {
    width: 1200px;
    display: flex;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.logo img {
    height: 40px;
    display: block;  
}

.menu a {
    position: relative;
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

.menu a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.menu a:hover::after {
    transform: scaleX(1);
}

@media (max-width: 640px) {
  .navbar-content {
    flex-direction: column;
    align-items: center;
  }

  .menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    width: 100%;
    margin-top: 1em;
    margin-bottom: 1em;
  }

  .menu a {
    position: relative;
    color: white;
    text-decoration: none;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .logo {
    text-align: center;
  }

  .navbar {
    position: static;
  }
}


/* 記事エリア */
.article-content {
    background-color: white;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border-radius: 5px;
}

.article-content h2 {
    color: #333;
}

.article-content pre {
    white-space: pre-wrap;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
}

/* welcomeセクション */
.welcome {
    background-color: #ffffff;
    font-size: 18px;
    width: 80%;
    max-width: 600px;
    margin: auto;
    text-align: center;
}

/* under construction */
.under-construction {
    background-color: white;
    border-radius: 5px;
    max-width: 600px;
    margin: auto;
    padding: 20px;
    text-align: left;
}