body {
  font-family:
    "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo,
    Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: small;
  color: #000000;
  background-color: #fff;
  background-image: url("../img/common/makiko1.gif");
  margin: 0;
  padding: 0;
}

/* 全体コンテナ（元の width: 80%, 1px solid #000000 を維持） */
.container {
  width: 80%;
  background: #ffffff;
  margin: 0 auto;
  border: 1px solid #000000;
  text-align: left;
}

/* ヘッダー */
.site-header {
  background: #dddddd;
  padding: 0 10px;
}

.site-header h1 {
  margin: 0;
  padding: 10px 0;
  text-align: center; /* 元の .ss クラスの指定を反映 */
  font-size: xx-large;
  font-weight: bold;
}

/* 2カラムレイアウト（float の代わりに Flexbox を使用） */
.layout-body {
  display: flex;
  align-items: stretch;
}

/* サイドバー（元の width: 24%, background: #EBEBEB を維持） */
.sidebar {
  width: 24%;
  flex-shrink: 0;
  background: #ebebeb;
  padding: 30px 0;
  font-size: small;
}

.sidebar h3 {
  margin: 0 10px 1em 10px;
  text-align: center;
  font-size: 1.17em;
}

.sidebar p {
  margin: 0 10px 1em 10px;
}

.sidebar hr {
  border: 0;
  border-top: 1px solid #999;
  margin: 10px 0;
}

/* 旧 <font onmouseover="..."> の代替 */
.nav-link {
  color: #000000;
  text-decoration: underline;
}

.nav-link:hover {
  color: #c30;
}

/* 旧 <table> ボタンの代替（幅117px・高さ24px・黒枠・白背景を維持） */
.form-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 117px;
  height: 24px;
  margin: 0 auto;
  border: 1px solid #000000;
  background-color: #ffffff;
  font-size: small;
}

/* メインコンテンツ（元の margin-left: 26% 相当の 2% 余白 + 右 20px を維持） */
.main-content {
  flex: 1;
  margin: 0 20px 0 2%;
  text-align: left;
  font-size: small;
}

.main-content h2 {
  color: #c30;
  font-size: 1.5em;
  margin: 0.83em 0;
}

.main-content p {
  color: #000000;
  font-size: small;
  margin: 1em 0;
}

/* 写真エリア（元の幅 784px と画像寸法 398x218 / 376x221 を維持） */
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  max-width: 784px;
  margin: 1em 0;
}

.photo-item {
  margin: 0;
  text-align: center;
  font-size: small;
}

.photo-item:first-child {
  width: 398px;
}

.photo-item:last-child {
  width: 386px;
}

.photo-item img {
  display: block;
  margin: 0 auto 4px auto;
  max-width: 100%;
}

/* フッター（元の background: #DDDDDD, padding: 0 10px を維持） */
.site-footer {
  padding: 0 10px;
  background: #dddddd;
}

.site-footer p {
  margin: 0;
  padding: 10px 0;
  text-align: center;
  font-size: small;
}

/* 画面幅が狭い端末向けの最小限の崩れ防止 */
@media (max-width: 768px) {
  .container {
    width: 96%;
  }
  .layout-body {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .main-content {
    margin: 0 15px;
  }
  .photo-item:first-child,
  .photo-item:last-child {
    width: 100%;
    margin-bottom: 12px;
  }
  .photo-item img {
    height: auto;
  }
}
