/*
Theme Name: DSI Theme
Theme URI: https://dsi-net.jp
Description: 株式会社ディー・エス・アイ コーポレートサイト専用テーマ
Author: DSI
Version: 1.1
*/

:root {
  --navy: #0d2246;
  --blue: #1a3f7a;
  --accent: #2a6dd9;
  --light-blue: #e8f0fb;
  --gray: #f5f6fa;
  --border: #dde3f0;
  --text: #1a1a2e;
  --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Meiryo', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* ===== ナビゲーション ===== */
#site-nav ul { display: flex; gap: 28px; list-style: none; }
#site-nav a {
  font-size: 13px;
  color: #444;
  letter-spacing: 0.05em;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
#site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
#site-nav .nav-contact {
  background: var(--accent);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  border-bottom: none;
}
#site-nav .nav-contact:hover { background: var(--blue); color: var(--white); }

/* ===== ハンバーガーメニュー ===== */
.nav-toggle {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== HERO ===== */
.dsi-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e5bb5 100%);
  color: var(--white);
  padding: 100px 24px 90px;
  position: relative;
  overflow: hidden;
}
.dsi-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.dsi-hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.dsi-hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.dsi-hero h1 { font-size: clamp(22px, 3vw, 38px); font-weight: 700; line-height: 1.55; margin-bottom: 22px; }
.dsi-hero .hero-catch {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.dsi-hero p { font-size: 15px; color: rgba(255,255,255,0.8); max-width: 540px; line-height: 1.9; margin-bottom: 32px; }
.dsi-hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.dsi-hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 14px 20px;
}
.dsi-hero-stat .stat-num { font-size: 22px; font-weight: 800; color: #fff; }
.dsi-hero-stat .stat-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ===== ボタン ===== */
.dsi-btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  margin-right: 12px;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}
.dsi-btn-white:hover { opacity: 0.88; color: var(--navy); }
.dsi-btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 12px 26px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.dsi-btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

/* ===== 共通セクション ===== */
.dsi-section { padding: 72px 24px; }
.dsi-section-inner { max-width: 1100px; margin: 0 auto; }
.dsi-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 12px;
}
.dsi-section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.dsi-section-title { font-size: 24px; font-weight: 700; color: var(--navy); }
.dsi-view-all { font-size: 12px; color: var(--accent); font-weight: 600; }
.dsi-view-all::after { content: ' →'; }

/* ===== ニュース ===== */
.dsi-news-section { background: var(--white); }
.dsi-news-list { display: flex; flex-direction: column; }
.dsi-news-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.dsi-news-item:first-child { border-top: 1px solid var(--border); }
.dsi-news-date { font-size: 12px; color: #888; min-width: 82px; padding-top: 2px; flex-shrink: 0; }
.dsi-news-text { font-size: 14px; color: var(--text); line-height: 1.7; }
.dsi-news-text a { color: var(--accent); }

/* ===== 製品グリッド ===== */
.dsi-products-section { background: var(--gray); }
.dsi-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.dsi-card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
  color: inherit;
}
.dsi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,34,70,0.1); color: inherit; }
.dsi-card-img { background: var(--light-blue); height: 150px; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.dsi-card-body { padding: 18px; }
.dsi-card-tag { font-size: 10px; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.dsi-card-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.dsi-card-desc { font-size: 12px; color: #666; line-height: 1.7; }

/* ===== 事業内容セクション ===== */
.dsi-business-section { background: var(--white); }
.dsi-business-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dsi-business-card { padding: 26px; border-radius: 8px; border: 1px solid var(--border); }
.dsi-business-icon { width: 46px; height: 46px; background: var(--light-blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.dsi-business-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.dsi-business-desc { font-size: 13px; color: #666; line-height: 1.8; }

/* ===== CTA ===== */
.dsi-cta {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
}
.dsi-cta .dsi-section-label { color: rgba(255,255,255,0.6); }
.dsi-cta .dsi-section-title { color: var(--white); margin-bottom: 14px; }
.dsi-cta p { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 28px; }

/* ===== 一般ページ ===== */
.dsi-page-header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  padding: 56px 24px;
}
.dsi-page-header-inner { max-width: 1100px; margin: 0 auto; }
.dsi-page-header .dsi-section-label { color: rgba(255,255,255,0.6); }
.dsi-page-header h1 { font-size: 28px; font-weight: 700; color: var(--white); margin-top: 8px; }
.dsi-page-content { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }

/* ===== ニュース投稿一覧 ===== */
.news-archive { display: flex; flex-direction: column; }
.news-archive-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.news-archive-item:first-child { border-top: 1px solid var(--border); }
.news-archive-date { font-size: 12px; color: #888; min-width: 90px; padding-top: 3px; flex-shrink: 0; }
.news-archive-title a { font-size: 14px; color: var(--text); line-height: 1.7; transition: color 0.2s; }
.news-archive-title a:hover { color: var(--accent); }

/* ===== 投稿詳細 ===== */
.single-post { max-width: 780px; margin: 0 auto; padding: 64px 24px; }
.single-post-date { font-size: 12px; color: #888; margin-bottom: 12px; }
.single-post h1 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.single-post-body { font-size: 14px; line-height: 1.9; color: #444; }
.single-post-body p { margin-bottom: 16px; }
.back-link { margin-top: 40px; display: inline-block; font-size: 13px; color: var(--accent); font-weight: 600; }
.back-link::before { content: '← '; }

/* ===== フッター ===== */
#site-footer { background: #0a1c3d; color: rgba(255,255,255,0.6); padding: 48px 24px 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; gap: 32px; flex-wrap: wrap; }
.footer-logo { font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: 0.1em; margin-bottom: 8px; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.8; max-width: 240px; }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav-col h4 { font-size: 12px; color: var(--white); font-weight: 600; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-nav-col ul { list-style: none; }
.footer-nav-col li { margin-bottom: 10px; }
.footer-nav-col a { font-size: 12px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-nav-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 11px; text-align: center; color: rgba(255,255,255,0.3); }

/* ===== 会社概要テーブル ===== */
.dsi-company-table, .company-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 48px; }
.dsi-company-table th, .company-table th { width: 28%; padding: 16px; text-align: left; color: var(--navy); font-weight: 600; vertical-align: top; white-space: nowrap; background: #f8faff; border-bottom: 1px solid var(--border); }
.dsi-company-table td, .company-table td { padding: 16px; color: #333; line-height: 1.8; border-bottom: 1px solid var(--border); }

/* ===== 事業内容ページ ===== */
.dsi-business-detail { display: flex; flex-direction: column; gap: 40px; }
.dsi-business-detail-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--gray);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}
.dsi-business-detail-icon { font-size: 2.5rem; }
.dsi-business-detail-body h2 { font-size: 1.25rem; color: var(--navy); margin-bottom: 12px; }
.dsi-business-detail-body p { color: #555; line-height: 1.8; margin-bottom: 12px; }
.dsi-business-detail-body ul { padding-left: 20px; color: #555; line-height: 2; }

/* ===== CO2製品ページ ===== */
.dsi-product-detail { display: flex; flex-direction: column; gap: 48px; }
.dsi-product-detail-item {
  padding: 36px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(10,30,80,0.08);
  border-top: 4px solid var(--accent);
}
.dsi-product-detail-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.dsi-product-detail-icon { font-size: 2.8rem; }
.dsi-product-detail-head h2 { font-size: 1.2rem; color: var(--navy); margin: 4px 0 0; }
.dsi-product-detail-item > p { color: #555; line-height: 1.85; margin-bottom: 16px; }
.dsi-product-detail-item ul { padding-left: 20px; color: #555; line-height: 2.1; margin-bottom: 16px; }

/* CO2レベルインジケーター */
.co2-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.co2-level {
  padding: 14px 16px;
  border-radius: 8px;
  text-align: center;
}
.co2-level .level-icon { font-size: 20px; margin-bottom: 4px; }
.co2-level .level-range { font-size: 13px; font-weight: 700; }
.co2-level .level-label { font-size: 11px; margin-top: 4px; }
.co2-level.good { background: #edfaf0; color: #1a7a3a; }
.co2-level.caution { background: #fff8e6; color: #a05d00; }
.co2-level.warning { background: #fef0f0; color: #c0392b; }

/* 製品仕様テーブル */
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0 24px; }
.spec-table th { width: 36%; padding: 10px 14px; background: var(--light-blue); color: var(--navy); font-weight: 600; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: #444; line-height: 1.7; }

/* 用途バッジ */
.use-cases { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.use-case-badge {
  background: var(--light-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* 価格改定バナー */
.price-note {
  background: linear-gradient(135deg, #fff8e1, #fff3cd);
  border-left: 4px solid #f0a500;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #6b4c00;
  margin: 16px 0;
}
.price-note strong { color: #a05d00; }

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex !important; }
  #site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 99;
  }
  #site-nav.open { display: block; }
  #site-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  #site-nav li a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: 14px; }
  #site-nav .nav-contact { background: none; color: var(--accent); border-radius: 0; padding: 14px 24px; }
  .dsi-hero { padding: 64px 20px 56px; }
  .dsi-section { padding: 52px 20px; }
  .footer-top { flex-direction: column; }
  .dsi-company-table th, .company-table th { width: 36%; white-space: normal; }
  .co2-levels { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dsi-business-detail-item { grid-template-columns: 1fr; }
  .dsi-product-detail-head { flex-direction: column; align-items: flex-start; }
  #site-header { position: relative; }
}