/* ==============================================
   佐藤化成株式会社 - 共通スタイルシート
   Design: 2603 Renewal
   ============================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --blue-dark:    #0b3872;
  --blue-main:    #1a5fa8;
  --blue-mid:     #2876cc;
  --blue-light:   #4a9de8;
  --blue-pale:    #e8f2fc;
  --blue-border:  #c5ddf7;
  --white:        #ffffff;
  --gray-bg:      #f5f7fb;
  --gray-light:   #eaeef5;
  --gray-mid:     #d0d8e4;
  --gray-text:    #6b7a99;
  --text-dark:    #1e2d4a;
  --text-main:    #2c3e50;
  --text-light:   #5a6a80;
  --accent-red:   #c8303a;
  --border-radius: 6px;
  --shadow-sm:    0 1px 4px rgba(0,30,80,.08);
  --shadow-md:    0 4px 16px rgba(0,30,80,.12);
  --shadow-lg:    0 8px 32px rgba(0,30,80,.16);
  --transition:   .2s ease;
  --max-width:    1120px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro',
               'メイリオ', Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-main);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--blue-main); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-mid); text-decoration: underline; }
ul, ol { list-style: none; }

/* ---- Layout Wrapper ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img {
  height: 42px;
  width: auto;
}
.site-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .03em;
  line-height: 1.25;
}
.site-logo-text span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .1em;
  opacity: .8;
}

/* Navigation */
#global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#global-nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
#global-nav ul li a:hover,
#global-nav ul li a.active {
  background: var(--blue-mid);
  color: var(--white);
  text-decoration: none;
}
#global-nav ul li a.btn-contact {
  background: var(--accent-red);
  color: var(--white);
  padding: 7px 16px;
}
#global-nav ul li a.btn-contact:hover { background: #a82530; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
#mobile-nav {
  display: none;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,.1);
}
#mobile-nav.open { display: block; }
#mobile-nav ul { padding: 12px 0; }
#mobile-nav ul li a {
  display: block;
  padding: 12px 24px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background var(--transition);
}
#mobile-nav ul li a:hover { background: var(--blue-mid); text-decoration: none; }

/* ============================================================
   PAGE HERO / BREADCRUMB
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 60%, var(--blue-mid) 100%);
  padding: 40px 24px;
  text-align: center;
  color: var(--white);
}
.page-hero h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.page-hero p {
  font-size: 13px;
  opacity: .75;
  color: var(--white);
}

.breadcrumb {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-light);
  padding: 8px 24px;
  font-size: 12px;
  color: var(--gray-text);
}
.breadcrumb a { color: var(--blue-main); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#main-content {
  padding: 40px 0 60px;
}
.content-section {
  margin-bottom: 40px;
}

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.home-hero {
  background: url('../images/bg-blue.jpg') center center / cover no-repeat;
  padding: 72px 24px 80px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 56, 114, 0.45);
}
.home-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.home-hero h1 {
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  margin-bottom: 20px;
}
.home-hero h1 .accent { color: #f0e040; }
.home-hero p {
  font-size: 15px;
  opacity: .9;
  line-height: 1.9;
  color: var(--white);
  margin-bottom: 32px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1.5px solid rgba(255,255,255,.55);
  border-radius: 40px;
  font-size: 12px;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
}

/* ============================================================
   HOME SECTIONS
   ============================================================ */
.home-categories {
  background: var(--white);
  padding: 60px 24px;
}
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--blue-main);
  margin: 8px auto 0;
  border-radius: 2px;
}
.section-title p {
  font-size: 13px;
  color: var(--gray-text);
}

/* Category Cards */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-decoration: none;
}
.cat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-main);
  text-decoration: none;
}
.cat-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--blue-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cat-card-body h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
  line-height: 1.4;
}
.cat-card-body p {
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Home Info & News */
.home-info {
  background: var(--gray-bg);
  padding: 56px 24px;
}
.home-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.info-box {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.info-box-header {
  background: var(--blue-main);
  padding: 12px 20px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}
.info-box ul { padding: 12px 0; }
.info-box ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid var(--gray-light);
  transition: background var(--transition);
}
.info-box ul li:last-child a { border-bottom: none; }
.info-box ul li a:hover {
  background: var(--blue-pale);
  color: var(--blue-main);
  text-decoration: none;
  padding-left: 24px;
}
.info-box-photo {
  text-align: center;
  padding: 24px;
}
.info-box-photo img {
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 12px;
}
.info-box-photo p {
  font-size: 12px;
  color: var(--gray-text);
}

/* Home contact CTA */
.home-cta {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-main) 100%);
  padding: 56px 24px;
  text-align: center;
  color: var(--white);
}
.home-cta h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.home-cta p { font-size: 14px; opacity: .85; margin-bottom: 28px; color: var(--white); }
.cta-tel {
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .06em;
  margin-bottom: 20px;
  display: block;
}
.cta-tel a { color: var(--white); }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}
.btn-primary:hover {
  background: transparent;
  color: var(--white);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
  text-decoration: none;
}
.btn-blue {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
}
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: none; }

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-intro {
  background: var(--blue-pale);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
  border-left: 4px solid var(--blue-main);
  font-size: 14px;
  color: var(--text-main);
}

.products-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
}
.products-alpha-nav a {
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 36px;
  text-align: center;
  border: 1.5px solid var(--blue-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-main);
  background: var(--white);
  transition: all var(--transition);
}
.products-alpha-nav a:hover,
.products-alpha-nav a.has-items {
  background: var(--blue-main);
  color: var(--white);
  border-color: var(--blue-main);
  text-decoration: none;
}
.products-alpha-nav a.empty {
  color: var(--gray-mid);
  border-color: var(--gray-light);
  pointer-events: none;
}

.products-section {
  margin-bottom: 40px;
}
.products-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue-border);
}
.products-section-kana {
  width: 40px;
  height: 40px;
  background: var(--blue-main);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.products-section-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-dark);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.product-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-main);
  transition: all var(--transition);
}
.product-item a:hover {
  background: var(--blue-pale);
  border-color: var(--blue-main);
  color: var(--blue-main);
  text-decoration: none;
  padding-left: 20px;
}
.product-item a::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--blue-main);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue-border);
}
.product-detail-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.product-detail-header .product-back {
  font-size: 13px;
  color: var(--blue-main);
}
.product-detail-header .product-back::before { content: '← '; }

.product-detail-body {
  font-size: 14px;
  line-height: 1.9;
}
.product-detail-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 24px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--blue-main);
}
.product-detail-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 16px 0 8px;
}
.product-detail-body p { margin-bottom: 12px; color: var(--text-main); }
.product-detail-body img {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: 16px auto;
}

/* ============================================================
   TABLES (product specs etc.)
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}
.data-table th,
.data-table td {
  padding: 9px 14px;
  border: 1px solid var(--gray-mid);
  text-align: left;
  line-height: 1.6;
}
.data-table thead th {
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 700;
  text-align: center;
}
.data-table tbody th {
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-weight: 700;
  white-space: nowrap;
  width: 30%;
}
.data-table tbody td {
  background: var(--white);
}
.data-table tbody tr:nth-child(even) td {
  background: var(--gray-bg);
}
.data-table tbody td.center,
.data-table tbody th.center { text-align: center; }

/* Legacy table overrides for product pages */
table.font_normal,
table.table_layout1,
table.table_border,
table[border] {
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}
table.font_normal td,
table.table_layout1 td,
table.table_layout1 th,
table[border] td,
table[border] th {
  padding: 8px 12px;
  border: 1px solid var(--gray-mid);
  font-size: 13px;
  line-height: 1.7;
}
td[bgcolor="#dcdcdc"], th[bgcolor="#dcdcdc"],
td[bgcolor="#DCDCDC"], th[bgcolor="#DCDCDC"] {
  background-color: var(--blue-pale) !important;
  color: var(--blue-dark) !important;
  font-weight: 600;
}
td[bgcolor="#f5f5f5"], td[bgcolor="#F5F5F5"] {
  background-color: var(--white) !important;
}
td[bgcolor="#EEEEEE"], td[bgcolor="#eeeeee"] {
  background-color: var(--gray-bg) !important;
}
td[bgcolor="#CCCCCC"], td[bgcolor="#cccccc"] {
  background-color: var(--blue-pale) !important;
  color: var(--blue-dark) !important;
  font-weight: 600;
}

/* ============================================================
   ABOUT US PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}
.company-table th {
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 10px 14px;
  border: 1px solid var(--blue-border);
  width: 130px;
  vertical-align: top;
  white-space: nowrap;
}
.company-table td {
  padding: 10px 14px;
  border: 1px solid var(--blue-border);
  background: var(--white);
  line-height: 1.8;
  vertical-align: top;
}
.company-photo {
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  width: 100%;
}
.business-section {
  margin-top: 40px;
}
.business-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.business-table th {
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 12px 16px;
  border: 1px solid var(--blue-border);
  width: 180px;
  vertical-align: top;
  white-space: nowrap;
  text-align: center;
}
.business-table td {
  padding: 12px 16px;
  border: 1px solid var(--blue-border);
  background: var(--white);
  line-height: 1.9;
}
.map-wrapper { border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-mid); }
.map-wrapper iframe { display: block; width: 100%; }

/* ============================================================
   PE HISTORY PAGE
   ============================================================ */
.pe-content {
  font-size: 14px;
  line-height: 2;
  color: var(--text-main);
}
.pe-content p {
  margin-bottom: 20px;
  text-align: justify;
}
.pe-intro-box {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-main);
  border-radius: 0 8px 8px 0;
  padding: 18px 24px;
  margin-bottom: 28px;
  font-size: 14px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 28px;
}
.contact-info-table th {
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 12px 16px;
  border: 1px solid var(--blue-border);
  width: 120px;
  white-space: nowrap;
}
.contact-info-table td {
  padding: 12px 16px;
  border: 1px solid var(--blue-border);
  background: var(--white);
}
.contact-form-frame {
  width: 100%;
  min-height: 1080px;
  border: none;
  border-radius: 10px;
  overflow: hidden;
}

/* ============================================================
   LINK PAGE
   ============================================================ */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.link-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-main);
  transition: all var(--transition);
}
.link-item a::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--blue-light);
  border-radius: 50%;
  flex-shrink: 0;
}
.link-item a:hover {
  background: var(--blue-pale);
  border-color: var(--blue-main);
  color: var(--blue-main);
  text-decoration: none;
}
.link-note {
  text-align: center;
  color: var(--gray-text);
  font-size: 12px;
  margin-top: 20px;
}

/* ============================================================
   INTRO CATEGORY PAGES
   ============================================================ */
.intro-content img {
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin: 16px auto;
}
.intro-list {
  padding-left: 0;
}
.intro-list li {
  padding: 10px 0 10px 20px;
  position: relative;
  border-bottom: 1px solid var(--gray-light);
  font-size: 14px;
}
.intro-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--blue-main);
  font-size: 10px;
  top: 14px;
}
.intro-list li a { color: var(--text-main); }
.intro-list li a:hover { color: var(--blue-main); }

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.font_normal { font-size: 14px; line-height: 1.8; }
.font_small { font-size: 13px; line-height: 1.7; }
.font_small_bold { font-size: 13px; font-weight: 700; line-height: 1.7; }
.font_more_small { font-size: 11px; line-height: 1.6; }
.font_product_title { font-size: 24px; font-weight: 700; color: var(--blue-dark); }
.font_product_sub_title { font-size: 16px; font-weight: 700; color: var(--blue-dark); }
.font_product_title2 { font-size: 13px; font-weight: 700; color: var(--blue-dark); }
.font_normal_bold { font-weight: 700; font-size: 14px; }
.font_catch { color: var(--blue-dark); font-weight: 700; font-size: 18px; }
.font_normal_highlight { color: var(--accent-red); font-weight: 700; font-size: 13px; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .site-logo-text {
  font-size: 16px;
  margin-bottom: 12px;
  display: block;
}
.footer-brand p {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.footer-col ul li {
  margin-bottom: 6px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
}
.footer-col ul li a:hover {
  color: var(--white);
  text-decoration: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a {
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.footer-nav a:hover { color: var(--white); }
.footer-copy {
  font-size: 11px;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  #global-nav { display: none; }
  .hamburger { display: flex; }
  .home-info-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .home-hero { padding: 48px 20px 56px; }
  .page-hero h1 { font-size: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-list { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; }
  #main-content { padding: 24px 0 40px; }
  .container { padding: 0 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-tel { font-size: 24px; }
  .products-alpha-nav a { width: 32px; height: 32px; line-height: 30px; font-size: 12px; }
}

/* ============================================================
   PRODUCT PAGE — LEGACY TABLE OVERFLOW FIX
   旧テーブルベースの製品ページがモバイルでオーバーフローしないよう
   ============================================================ */

/* コンテナ自体がはみ出さないようにする */
#main-content,
.container,
.content-section {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

/* 旧HTMLの固定幅テーブルをレスポンシブ化 */
.content-section table {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  table-layout: auto;
  border-collapse: collapse;
  word-break: break-word;
}

/* テーブルセルの固定幅・nowrap を無効化 */
.content-section table td,
.content-section table th {
  max-width: 100%;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* 画像がセル幅を超えないよう制限 */
.content-section table img,
.content-section img {
  max-width: 100%;
  height: auto;
}

/* 横スクロールが必要な大型テーブル（仕様表等）はラップ */
.content-section .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================================
   RESPONSIVE (追加)
   ============================================================ */
@media (max-width: 640px) {
  /* 製品ページの旧テーブルを縦積みに近づける */
  .content-section table td {
    display: block;
    width: 100% !important;
  }
  /* ただし data-table（仕様表）は通常テーブルのまま横スクロール対応 */
  .data-table td,
  .data-table th {
    display: table-cell;
    width: auto !important;
  }
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  #site-header, #site-footer, .hamburger, #mobile-nav { display: none !important; }
  body { font-size: 12px; color: #000; }
  a { color: #000; }
}
