body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh; /* 画面全体の高さを確保 */
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: "Helvetica Neue", "Arial", "Yu Gothic", "游ゴシック体", 
    "YuGothic", "Hiragino Kaku Gothic ProN", sans-serif;
    -webkit-font-smoothing: antialiased;
}

#content {
    flex: 1; /* フッターを下に押し出す */
    width: 100%;
    max-width: 1100px; /* ヘッダー・フッターに合わせる */
    margin: 0 auto;    /* 中央寄せ */
    padding: 40px 1.5rem;
    box-sizing: border-box; /* paddingを含めた幅計算 */
}

h1, h3, h4, h5, h6 { font-weight: 300; }
h2 { font-weight: 550; }


/* 一覧リンクボタン（btn-link）スタイル */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.section-header .btn-link {
  background-color: #f2f2f2;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #337ab7;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.section-header .btn-link:hover {
  background-color: #337ab7;
  color: #fff;
}

/* メインコンテンツエリアが自動で伸びて、フッターを下に押し出す */
#content {
    flex: 1;
    width: 100%;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #f9f9f9;
}

.tech-tags span {
    display: inline-block;
    background: #eef2f7;
    color: #003366;
    padding: 5px 12px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
