/* ========================================
   工場・倉庫の床研磨・コーティング業界サイト
   オリジナルスタイルシート
   ======================================== */

/* ===== CSS変数定義 ===== */
:root {
  /* カラーパレット - 産業・工業的な配色 */
  --primary-color: #1a4d2e;        /* 深緑 - 床研磨の安定感 */
  --secondary-color: #ff6b35;      /* オレンジ - エネルギーと革新 */
  --accent-color: #4a90a4;         /* 青緑 - コーティングの光沢感 */
  --dark-bg: #1e1e1e;              /* ダークグレー */
  --light-bg: #f8f9fa;             /* ライトグレー */
  --text-dark: #2c3e50;            /* ダークテキスト */
  --text-light: #ffffff;           /* ライトテキスト */
  --text-gray: #6c757d;            /* グレーテキスト */
  --border-color: #dee2e6;         /* ボーダー */
  --success-color: #28a745;        /* 成功 */
  --warning-color: #ffc107;        /* 警告 */

  /* フォント */
  --font-main: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --font-heading: 'Roboto Condensed', 'Noto Sans JP', sans-serif;

  /* スペーシング */
  --section-padding: 80px;
  --container-max-width: 1400px;
  --content-max-width: 900px;

  /* トランジション */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;

  /* シャドウ */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
}

/* ===== リセット&基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.7;
  background: var(--light-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* ===== コンテナ ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ===== ヘッダー ===== */
header {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top {
  background: rgba(0,0,0,0.3);
  padding: 8px 0;
  font-size: 0.85rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-info span {
  opacity: 0.9;
}

.header-main {
  padding: 20px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
}

.logo-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2px;
  font-family: var(--font-heading);
}

.logo-text p {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ===== ナビゲーション ===== */
nav {
  background: rgba(0,0,0,0.2);
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  justify-content: center;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item a {
  display: block;
  color: var(--text-light);
  padding: 15px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-item a:hover,
.nav-item a.active {
  background: var(--secondary-color);
  color: var(--text-light);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--text-light);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-bg) 100%);
  color: var(--text-light);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/hero-main.png') center/cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
  line-height: 1.2;
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 35px;
  opacity: 0.95;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--secondary-color);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #e55a28;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

/* ===== セクション共通 ===== */
section {
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 25px auto 0;
}

/* ===== サイト概要 ===== */
.site-overview {
  background: white;
  padding: var(--section-padding) 0;
}

.overview-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.9;
}

.overview-content p {
  margin-bottom: 20px;
}

.overview-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.highlight-card {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: var(--transition);
  border-left: 4px solid var(--accent-color);
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.highlight-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.highlight-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ===== 最新ニュース ===== */
.latest-news {
  background: var(--light-bg);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-card-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-light);
  padding: 20px;
}

.news-card-header h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.news-date {
  font-size: 0.85rem;
  opacity: 0.9;
}

.news-card-body {
  padding: 25px;
}

.news-card-body p {
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== ページコンテンツ(2カラム) ===== */
.page-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 60px 0;
}

.main-content {
  background: white;
  padding: 50px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

/* ページヒーロー */
.page-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--text-light);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23ffffff" opacity="0.05" width="1200" height="600"/></svg>');
  opacity: 0.1;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 本文スタイル */
.main-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 50px 0 25px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--secondary-color);
  font-weight: 700;
}

.main-content h2:first-child {
  margin-top: 0;
}

.main-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 35px 0 20px 0;
  font-weight: 600;
  padding-left: 15px;
  border-left: 5px solid var(--accent-color);
}

.main-content h4 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 25px 0 15px 0;
  font-weight: 600;
}

.main-content p {
  margin-bottom: 20px;
  line-height: 1.9;
  font-size: 1.05rem;
}

.main-content ul,
.main-content ol {
  margin: 20px 0 20px 30px;
  line-height: 1.9;
}

.main-content li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.main-content strong {
  color: var(--primary-color);
  font-weight: 700;
}

.main-content em {
  background: linear-gradient(transparent 60%, #ffeb3b 60%);
  font-style: normal;
}

/* サイドバー */
.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-section {
  background: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent-color);
}

.sidebar-section h3 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

/* 目次 */
.toc ul {
  list-style: none;
  margin: 0;
}

.toc li {
  margin-bottom: 12px;
}

.toc a {
  color: var(--text-dark);
  font-size: 0.95rem;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.toc a:hover {
  background: var(--light-bg);
  border-left-color: var(--secondary-color);
  padding-left: 15px;
}

/* 関連リンク */
.related-links ul {
  list-style: none;
  margin: 0;
}

.related-links li {
  margin-bottom: 10px;
}

.related-links a {
  color: var(--primary-color);
  font-size: 0.95rem;
  display: block;
  padding: 10px;
  background: var(--light-bg);
  border-radius: 6px;
  transition: var(--transition);
}

.related-links a:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateX(5px);
}

/* 広告スペース */
.ad-space {
  background: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.ad-space img {
  margin: 0 auto;
}

/* 本文内広告バナー */
.content-ad {
  margin: 40px 0;
  padding: 20px;
  background: var(--light-bg);
  border-radius: 8px;
  text-align: center;
}

/* ===== フッター ===== */
footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 30px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-light);
}

.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 1024px) {
  .page-content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 50px;
  }

  .header-main {
    padding: 15px 0;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .logo-text p {
    font-size: 0.7rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-bg);
    transition: var(--transition);
    padding-top: 80px;
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-item a {
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .main-content {
    padding: 30px 20px;
  }

  .main-content h2 {
    font-size: 1.6rem;
  }

  .main-content h3 {
    font-size: 1.3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero {
    padding: 80px 0 50px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .overview-highlights {
    grid-template-columns: 1fr;
  }
}

/* ===== ユーティリティクラス ===== */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-40 {
  margin-top: 40px;
}


/* Auto-added missing selectors */
#+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document, {
    /* Auto-added: missing selector */
}
#latest-news {
    /* Auto-added: missing selector */
}
#site-overview {
    /* Auto-added: missing selector */
}
.ad-template {
    /* Auto-added: missing selector */
}


/* === Mobile fix v3 (auto-injected) === */
html, body { overflow-x: hidden; }
img, video, iframe, table { max-width: 100%; }

@media (max-width: 768px) {
  /* ヒーローテキストがviewportからはみ出さないようにする */
  h1, h2, h3 {
    font-size: clamp(1.3rem, 5vw, 2.5rem) !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  p, li, td, th, span, a {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  /* 全要素の幅を100vw以内に */
  .container, main, section, article, header, footer, nav,
  [class*="container"], [class*="wrapper"], [class*="content"] {
    max-width: 100vw;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}
/* === End Mobile fix v3 === */
