@charset "UTF-8";

/* ==========================================================================
   1. 基本リセット & 共通スタイル
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #333;
  line-height: 1.5;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

main table {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
}

main table img {
  max-width: 100% !important;
  height: auto !important;
}

.image-resize {
  width: 480px;
  height: auto;
}

/* チェックボックス本体を隠す */
.drawer-hidden {
  display: none !important;
}


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

.header-container {
  max-width: 517px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

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

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

h1.site-branding {
  margin: 0;
  padding: 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo {
  width: 56px;
  max-height: 33px;
  height: auto;
  flex-shrink: 0;
  vertical-align: middle;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-title-img {
  max-width: 320px;
  width: 100%;
  height: auto;
}

.header-title {
  flex-shrink: 0;
  height: auto;
  margin-left: auto; 
  vertical-align: middle;
}

.header-text {
  margin: 0;
  line-height: 1.4;
  font-size: 12px;
  text-align: left;
  flex: 1;
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drawer-open-btn {
  display: none;
}


/* ==========================================================================
   3. ドロワーメニュー & オーバーレイ
   ========================================================================== */
.drawer-content {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px 15px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 15px;
  border-bottom: 2px solid #000066;
  font-weight: bold;
}

.drawer-close-btn {
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.drawer-close-btn:hover {
  color: #FF6600;
}

.drawer-category {
  margin-bottom: 15px;
}

.drawer-category-title {
  font-weight: bold;
  color: #000066;
  font-size: 14px;
  margin-bottom: 5px;
}

.drawer-nav ul {
  list-style: none;
  padding-left: 10px;
  margin: 0;
}

.drawer-nav li {
  margin-bottom: 5px;
  font-size: 13px;
}

.drawer-nav a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.drawer-nav a:hover {
  color: #FF6600;
  text-decoration: underline;
}

.drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

#drawer-check:checked ~ .drawer-content {
  left: 0;
}

#drawer-check:checked ~ .drawer-overlay {
  display: block;
}

/* ==========================================================================
   4. ナビゲーション（メイン / サブ / フッター）
   ========================================================================== */
.main-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  margin: 0 auto 15px;
  padding: 0 5px;
}

.main-menu a {
  display: inline-block;
  transition: transform 0.2s ease;
}

.main-menu a:hover {
  transform: translateY(-2px);
}

.main-menu img {
  vertical-align: bottom;
  border: none;
}

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

/* ==========================================================================
   4. メインレイアウト & 金太郎画像エリア
   ========================================================================== */
.content-container {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}

.sidebar-nav {
  width: 240px;
  flex-shrink: 0;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.category-block {
  margin-bottom: 20px;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 12px;
}

.category-block:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.cat-thumb {
  width: 60px;
  max-width: none;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.cat-title {
  height: 20px;
  width: auto;
}

.product-links {
  list-style: none;
  padding-left: 10px;
  margin: 0;
}

.product-links li {
  margin-bottom: 4px;
  font-size: 13px;
}

.product-links a {
  color: #000066;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-links a:hover {
  color: #FF6600;
  text-decoration: underline;
}

.kintaro-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 0;
  font-size: 0;
  width: 100%;
}

.kintaro-grid img {
  width: 50% !important;
  max-width: none !important;
  height: auto !important;
  display: block;
  margin: 0;
  padding: 0;
}

/* 金太郎4分割画像用ボックス設定 */
#kintaro-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  line-height: 0;
  font-size: 0;
  margin-left: auto;
  margin-right: auto;
}

/* --- フッター領域 --- */
.footer-nav {
  font-size: 13px;
  text-align: center;
  border-bottom: 2px;
  padding: 10px 5px;
  max-width: 700px;
  margin: 0 auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

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

.footer-nav a:hover {
  text-decoration: underline;
}

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

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

.last-update {
  text-align: center;
  font-size: 11px;
  color: #000066;
  margin-top: 5px;
  padding-bottom: 15px;
}





/* ==========================================================================
   5. レスポンシブ表示切り替え (PC / スマホ)
   ========================================================================== */

/* PC表示時 (769px以上) */
@media screen and (min-width: 769px) {
  .drawer-open-btn,
  .drawer-content,
  .drawer-overlay {
    display: none !important;
  }

  .sidebar-nav {
    display: block;
  }

  .product-image {
    flex: 0 0 240px;
    max-width: 240px;
    width: 100%;
  }

  .zf-product-image {
    flex: 0 0 240px !important;
    max-width: 240px !important;
    width: 240px !important;
  }
  
  .zf-product-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
	
  .acf4-image {
    width: 240px !important;
    max-width: none !important;
    height: auto !important;
  }
	

  /* PCではキャッチコピーの強制改行を有効にする */
  br.pc-br {
    display: inline;
  }

  /* 金太郎4分割画像（PC時：横幅550px固定・2列できれいに並べる） */
  #kintaro-box {
    flex: 0 0 550px !important;
    max-width: 550px !important;
    width: 550px !important;
  }

  #kintaro-box img {
    width: 50% !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  .feature-flex-box {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .feature-img {
    flex: 0 0 auto;
    max-width: 100%;
  }

  .feature-img img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .feature-text {
    flex: 1;
    min-width: 240px;
  }

  .feature-title {
    color: #ee0000;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0 0 8px 0;
  }

  .feature-list {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .feature-list li {
    margin-bottom: 4px;
  }
}

/* スマホ表示時 (768px以下) */
@media screen and (max-width: 768px) {
  .header-top-row {
    justify-content: space-between;
  }

  h1.site-branding {
    padding-right: 65px;
  }

  /* スマホではキャッチコピーの強制改行を無効にして自然に繋げる */
  br.pc-br {
    display: none;
  }

  /* 金太郎4分割画像（スマホ時：横幅100%・2列配置） */
  #kintaro-box {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #kintaro-box img {
    width: 50% !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
	
  .acf4-image-box {
    width: 100% !important;
    max-width: 100% !important;
  }
  .acf4-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .feature-flex-box {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .feature-img {
    text-align: center;
  }
  
  .feature-img img {
    margin: 0 auto;
  }	

  .product-feature-box {
    flex-direction: column !important;
  }

  .drawer-open-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 9997;
    width: 56px;
    height: 56px;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.85);
    color: #000066;
    border: 1px solid rgba(0, 0, 102, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(4px);
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 14px;
  }

  .hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #000066;
    border-radius: 2px;
    transition: all 0.3s;
  }

  .content-container {
    flex-direction: column;
    padding: 0 10px;
    margin: 10px auto;
  }

  .sidebar-nav {
    display: none;
  }

  .product-image {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important; 
    margin-right: auto !important;
    display: block !important;
    text-align: center !important;
    float: none !important;
  }

  .product-image img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .zf-product-image {
    flex: 0 0 100% !important;
    max-width: 480px !important;
    width: 100% !important;
    margin-left: auto !important; 
    margin-right: auto !important;
    display: block !important;
    text-align: center !important;
  }

  .zf-product-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}

#drawer-check:checked ~ .header-banner .drawer-open-btn .hamburger-icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#drawer-check:checked ~ .header-banner .drawer-open-btn .hamburger-icon span:nth-child(2) {
  opacity: 0;
}
#drawer-check:checked ~ .header-banner .drawer-open-btn .hamburger-icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}


/* ==========================================================================
   6. フッターエリア
   ========================================================================== */
.footer-nav {
  text-align: center;
  padding: 15px 5px 10px;
  font-size: 13px;
  max-width: 700px;
  margin: 0 auto;
  word-break: break-word;
  overflow-wrap: break-word;
}

.footer-note {
  color: #666;
  font-size: 11px;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

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

.footer-nav a:hover {
  color: #FF6600;
  text-decoration: underline;
}

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

.copyright-orange {
  text-align: center;
  background-color: #FF6600;
  color: #FFFFFF;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 12px;
  margin-top: 15px;
  line-height: 1.6;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.last-update {
  text-align: center;
  font-size: 11px;
  color: #000066;
  margin-top: 5px;
  padding-bottom: 15px;
}

h2.drawer-title,
h3.drawer-category-title,
h3.category-header {
  margin: 0;
  padding: 0;
  font-weight: bold;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   7. メインコンテンツ（製品詳細）スタイル
   ========================================================================== */
.product-detail {
  background-color: #fff;
  padding: 10px;
}

.product-catch {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.6;
}
.product-catch2 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.6;
}

.product-catch .highlight {
  color: #000099;
  font-size: 1.3rem;
}

.product-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.product-image {
  flex: 0 0 240px;
  max-width: 100%;
}

.product-info {
  flex: 1;
  min-width: 250px;
}

.product-title img {
  max-width: 180px;
  height: auto;
  margin-bottom: 10px;
}

.product-tags {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.product-lead {
  color: #000066;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.product-description {
  font-size: 0.875rem;
  line-height: 1.6;
}

.product-spec {
  margin-top: 25px;
}

.product-spec h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.spec-table th, 
.spec-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: right;
}

.spec-table thead th {
  background-color: #f0f0f0;
  text-align: center;
}

.spec-table .bg-dark {
  background-color: #000011;
  color: #ffffff;
  text-align: center;
  vertical-align: middle;
  font-weight: normal;
}

.spec-table .sub-text {
  font-size: 0.75rem;
  display: block;
}

.spec-note {
  text-align: right;
  font-size: 0.85rem;
  margin: 4px 0 12px;
}

.pdf-note {
  font-size: 0.75rem;
  color: #666;
}

.product-features {
  margin-top: 30px;
}

.product-features .section-title {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.product-features .section-title span {
  color: #0066FF;
}

.divider {
  border: none;
  border-top: 3px solid #000;
  margin: 15px 0;
}

.product-features p {
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 15px;
}