/* 基本リセット */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Mac Safari用 スクロールバー描画・追随の正常化 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  /* 以下の指定を削除・非設定にすることでSafariのスクロール描画を正常化 */
  /* height: 100vh; や min-height: 100vh; は一切書かない */
  /* overflow: auto; や overflow-x: hidden; も書かない */
}

/* ラッパー要素 */
.site-wrapper {
  width: 100%;
  /* 高さ制限やoverflowは付けない */
}
/* メインコンテナ */
.page-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 10px 15px;
}

/* ヘッダー */
.header-banner {
  background-color: #000066;
  padding: 10px;
  color: #ffffff;
  margin-bottom: 8px;
}

.header-inner {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ヘッダー画像の調整 */
.header-logo {
  flex-shrink: 0;
  width: auto;
  max-height: 33px;
}

.header-title {
  flex-shrink: 1;
  max-width: 100%;
  min-width: 0;
  height: auto;
}

/* メインナビゲーション */
.main-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: 100%;
  margin: 0 auto 15px;
  padding: 0 5px;
}

.main-menu a {
  display: inline-block;
}

.main-menu a:hover img {
  opacity: 0.8;
}

/* サブナビ */
.top-sub-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.sub-link {
  display: inline-block;
  padding: 8px 16px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  text-align: center;
  flex: 1;
  max-width: 250px;
}

.sub-link.orange {
  background-color: #ff6600;
}

.sub-link.navy {
  background-color: #000066;
}

/* 製品カテゴリブロック */
.product-category {
  margin-bottom: 25px;
  border-bottom: 1px solid #CCCCCC;
  padding-bottom: 15px;
}

.category-header {
  border-top: 1px solid #CCCCCC;
  border-bottom: 1px solid #CCCCCC;
  padding: 8px 0;
  margin-bottom: 15px;
}

.category-desc {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  color: #000000;
}

.category-body {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  min-width: 0;
  height: auto;
}

.category-thumb {
  width: 100px;
  flex-shrink: 0;
  text-align: center;
}

/* タイトルテキスト用スタイル */
.category-thumb .title-text {
  display: block;
  font-weight: bold;
  font-size: 15px;
  color: #000000;
  margin-top: 6px;
  line-height: 1.3;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.35);
}

/* 製品リスト */
.product-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.product-list li {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.product-list a {
  color: #000066;
  text-decoration: underline;
}

/* 注意事項 */
.note-box {
  border-top: 1px solid #CCCCCC;
  padding-top: 10px;
  font-size: 11px;
  color: #333;
  line-height: 1.5;
  margin-top: 20px;
}

/* フッター */
.footer-nav {
  text-align: center;
  padding: 15px 5px;
  font-size: 13px;
}

.footer-nav a {
  color: #000066;
  text-decoration: none;
  display: inline-block;
}

.footer-nav a:not(:last-child)::after {
  content: "｜";
  color: #000066;
  margin: 0 4px;
}

.copyright-orange {
  text-align: center;
  background-color: #FF6600;
  color: #FFFFFF;
  font-size: 12px;
  padding: 10px;
  line-height: 1.6;
}

/* レスポンシブ対応（スマホ表示時） */
@media (max-width: 500px) {
  .category-body {
    flex-direction: column;
  }

  .category-thumb {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }

  .category-thumb .title-text {
    margin-top: 0;
  }

  .top-sub-nav {
    flex-direction: column;
    align-items: center;
  }

  .sub-link {
    width: 100%;
    max-width: 100%;
  }

  .main-menu img {
    max-width: none;
    height: auto;
  }
}

/* デスクトップ表示時（501px以上） */
@media (min-width: 501px) {
  .category-thumb {
    width: 120px;
  }
}