/* syomei.html ページ固有スタイル（HTML内<style>から移設） */

html {
    scroll-behavior: smooth;
  }

  /* ページ内リンクボタンのエリア */
.page-link-nav {
  display: flex;
  flex-direction: column; /* スマホで縦並び（三段）にする */
  gap: 10px;
  justify-content: center;
  align-items: center; /* 左右中央揃え */
  margin: 20px auto 40px;
  padding: 0 15px;
  max-width: 400px; /* ボタンの幅を統一 */
}

/* ボタンのデザイン */
.page-link-btn {
  display: block; /* ブロック要素にして幅を揃える */
  width: 100%; /* コンテナ幅いっぱいに広げる */
  padding: 12px 20px;
  background-color: #4a90e2;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px; /* 角丸を緩やかに変更 */
  font-weight: bold;
  font-size: 0.95em;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;
  box-sizing: border-box; /* パディングを含めた幅計算 */
}

.page-link-btn:hover {
  background-color: #357abd;
}

/* PC表示のときだけ横並びにする設定 */
@media (min-width: 600px) {
  .page-link-nav {
    flex-direction: row; /* 横並びに戻す */
    flex-wrap: wrap;
    max-width: 850px;
  }
  .page-link-btn {
    width: auto; /* 横幅を自動調整 */
    min-width: 250px; /* ある程度の最小幅を確保 */
  }
}

  .section-block {
    padding: 40px 0;
    clear: both;
  }
  .bg-white { background-color: #ffffff; }
  .bg-gray { background-color: #f4f7f6; }
  .bg-cream { background-color: #fcf9f2; }

  /* ★修正：コンテナの左右に余白を確保し、スマホでも揃うように */
  .section-block .container {
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;  /* 左右の余白を強制追加 */
    padding-right: 15px !important; /* 左右の余白を強制追加 */
  }

  .main-category-title {
    background-color: #303979;
    color: #ffffff !important;
    padding: 15px 20px;
    font-size: 1.3em;
    text-align: center;
    border-radius: 6px;
    margin-top: 0;
    margin-bottom: 30px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    font-weight: bold;
    letter-spacing: 1px;
  }

  .main-category-title a {
    color: #ffffff !important;
    text-decoration: none;
  }

  .sub-section-title {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 25px;
    color: #333;
    border-left: 5px solid #4a90e2;
    padding-left: 12px;
    font-size: 1.2em;
    font-weight: bold;
  }
