/* 外部CSS: style_seihin_toku.css */

/* 基本リセット・横はみ出し（横揺れ）防止 */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* 全画像レスポンシブ対応 */
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* メインコンテナ（左右の余白を削除して帯を全幅表示） */
.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 0;
}

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

.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: none;
  margin: 0 auto 15px;
  padding: 0 15px;
}

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

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

/* ==========================================
   mainエリア モダン＆スタイリッシュデザイン
   ========================================== */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 15px;
}

/* カードデザイン共通 */
.section-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 102, 0.06);
  padding: 28px 24px;
  margin-bottom: 30px;
  border: 1px solid #eef2f7;
}

/* タイトルエリア */
.page-title-box {
  text-align: center;
  border-bottom: 2px solid #000066;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.main-heading {
  font-size: 1.6rem;
  color: #000066;
  margin: 0 0 6px 0;
  letter-spacing: 0.05em;
}

.sub-title {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

/* 3つの特長グリッド */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.feature-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 18px 16px;
  position: relative;
  border-left: 4px solid #000066;
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #000066;
  opacity: 0.4;
  display: block;
  margin-bottom: 2px;
}

.feature-item h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #111;
}

.feature-item p {
  margin: 0;
  font-size: 0.83rem;
  color: #555;
  line-height: 1.5;
}

/* 自社工場バナー */
.notice-box {
  background: #fffdf0;
  border: 1px solid #ffe58f;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: #444;
}

.notice-badge {
  background: #d48800;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* カテゴリ比較バナー */
.category-banner {
  background: linear-gradient(135deg, #000066, #1a1a8c);
  color: #ffffff;
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 102, 0.15);
}

.banner-title {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 6px;
}

.banner-tags {
  font-size: 1.15rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.tag-red { color: #ff6b6b; }
.tag-green { color: #51cf66; }
.tag-divider { opacity: 0.4; font-size: 0.9rem; }

/* 製品レイアウト */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: 220px 1fr;
  }
}

.type-badge {
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.badge-red { background: #ffe3e3; color: #e03131; }
.badge-green { background: #e6fcf5; color: #099268; }

.type-title {
  font-size: 1.3rem;
  margin: 6px 0 14px 0;
}

.text-red { color: #ff3300; }
.text-green { color: #009900; }

.product-img-wrap {
  background: #f1f3f5;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.styled-img {
  border-radius: 4px;
  mix-blend-mode: multiply;
}

/* スペックリスト */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.spec-list li {
  font-size: 0.88rem;
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: #444;
}

.spec-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #000066;
  font-size: 0.8rem;
}

.product-lineup {
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.product-lineup strong {
  color: #000066;
  display: block;
  margin-bottom: 2px;
}

.product-lineup p {
  margin: 0;
  color: #666;
}

/* 構造・説明（モダンナンバリング） */
.detail-block {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed #e9ecef;
}

.detail-heading {
  font-size: 1rem;
  color: #333;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 18px;
  line-height: 1.6;
}

.modern-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: item-count;
}

.modern-list li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 16px;
}

.modern-list li::before {
  counter-increment: item-count;
  content: counter(item-count);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: #000066;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-list li strong {
  font-size: 0.95rem;
  color: #222;
  display: block;
}

.modern-list li p {
  margin: 4px 0 0 0;
  font-size: 0.83rem;
  color: #666;
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.grid-list li span {
  display: block;
  font-size: 0.78rem;
  color: #777;
}

/* ==========================================
   フッター・サブナビ・カテゴリ表示関連
   ========================================== */

/* サブナビ（特徴・カタログボタン） */
.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;
}

.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-container {
  width: 100%;
}

.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 15px;
  line-height: 1.6;
  width: 100%;
}

/* レスポンシブ対応 */
@media (max-width: 500px) {
  .section-card {
    padding: 20px 16px;
  }

  .notice-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .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;
  }
}

@media (min-width: 501px) {
  .category-thumb {
    width: 120px;
  }
}