/* ========================================
   特殊運送・精密機器輸送業界サイト
   Precision Equipment Transport
   ======================================== */

:root {
  /* カラーパレット: プロフェッショナルで信頼感のある配色 */
  --primary-color: #1a4d7a;      /* 深い青 - 信頼性 */
  --secondary-color: #2c7cb5;    /* 明るい青 - アクセント */
  --accent-color: #ff8c42;       /* オレンジ - 活気 */
  --dark-bg: #0f2b45;            /* ダークブルー背景 */
  --light-bg: #f4f7fa;           /* ライトグレーブルー背景 */
  --text-dark: #1a2a3a;          /* メインテキスト */
  --text-light: #4a5a6a;         /* サブテキスト */
  --text-white: #ffffff;
  --border-color: #d4dce5;
  --shadow: rgba(26, 77, 122, 0.15);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

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

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

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

/* ========================================
   ヘッダー
   ======================================== */

header {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
  color: var(--text-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px var(--shadow);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-color);
}

/* ナビゲーション: 2行レイアウト対応 */
nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 900px;
  justify-content: center;
}

.nav-item a {
  font-weight: 500;
  color: var(--text-white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--accent-color);
}

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

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 3px;
  transition: var(--transition);
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 3rem 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 2rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--text-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
  transition: var(--transition);
}

.hero-cta:hover {
  background-color: #ff6f1a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 140, 66, 0.5);
}

/* ========================================
   コンテナ
   ======================================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.container-narrow {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ========================================
   2カラムレイアウト
   ======================================== */

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.main-content {
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-section {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
}

.sidebar-section h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
}

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

.sidebar-section ul li {
  margin-bottom: 0.8rem;
}

.sidebar-section ul li a {
  color: var(--text-dark);
  display: block;
  padding: 0.5rem 0;
  border-left: 3px solid transparent;
  padding-left: 0.8rem;
  transition: var(--transition);
}

.sidebar-section ul li a:hover {
  border-left-color: var(--accent-color);
  color: var(--secondary-color);
  padding-left: 1.2rem;
}

/* サイドナビ広告エリア */
.sidebar-ad {
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border-color);
}

/* ========================================
   セクション
   ======================================== */

section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 4px solid var(--accent-color);
  font-weight: 700;
}

section h3 {
  font-size: 1.7rem;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

section h4 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

section p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
  color: var(--text-dark);
}

section ul, section ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

section ul li, section ol li {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

/* ========================================
   カードグリッド
   ======================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--shadow);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 2rem;
}

.card-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  margin-top: 0;
}

.card-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-white);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
}

.card-link:hover {
  background-color: var(--accent-color);
  transform: translateX(5px);
}

/* ========================================
   ニュースセクション
   ======================================== */

.news-section {
  background-color: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  margin-top: 4rem;
}

.news-list {
  list-style: none;
  margin-top: 2rem;
}

.news-item {
  padding: 1.5rem;
  border-left: 4px solid var(--accent-color);
  background-color: var(--light-bg);
  margin-bottom: 1.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.news-item:hover {
  border-left-color: var(--secondary-color);
  background-color: #e8f1f8;
  transform: translateX(5px);
}

.news-date {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
}

.news-description {
  color: var(--text-dark);
  line-height: 1.7;
}

/* ========================================
   パンくずリスト
   ======================================== */

.breadcrumb {
  background-color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px var(--shadow);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--text-light);
}

.breadcrumb li:last-child::after {
  content: '';
}

.breadcrumb a {
  color: var(--secondary-color);
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

/* ========================================
   ページヒーロー(サブページ用)
   ======================================== */

.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 2rem;
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1rem;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-white);
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

/* ========================================
   バナー広告エリア
   ======================================== */

.banner-ad {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* ========================================
   フッター
   ======================================== */

footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
  color: var(--text-white);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-weight: 600;
}

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

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: var(--text-white);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--accent-color);
  padding-left: 0.5rem;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-white);
  font-size: 0.95rem;
}

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

/* ========================================
   レスポンシブデザイン
   ======================================== */

@media (max-width: 1024px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--dark-bg);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 8px 20px var(--shadow);
    max-width: 100%;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item a {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

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

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

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

  .container,
  .container-narrow {
    padding: 2rem 1rem;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }

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

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

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

  section h2 {
    font-size: 1.8rem;
  }

  section h3 {
    font-size: 1.4rem;
  }
}

/* ========================================
   ユーティリティクラス
   ======================================== */

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.highlight {
  background-color: #fff3cd;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-dark);
}

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


/* Auto-added missing selectors */
#+i+dl;f.parentNode.insertBefore(j,f);
    })(window,document, {
    /* Auto-added: missing selector */
}
#table-of-contents {
    /* Auto-added: missing selector */
}
.ad-banner {
    /* Auto-added: missing selector */
}
.article-content {
    /* Auto-added: missing selector */
}
.content-card {
    /* Auto-added: missing selector */
}
.content-grid {
    /* Auto-added: missing selector */
}
.content-section {
    /* Auto-added: missing selector */
}
.content-wrapper {
    /* Auto-added: missing selector */
}
.hamburger-menu {
    /* Auto-added: missing selector */
}
.header-content {
    /* Auto-added: missing selector */
}
.hero-image {
    /* Auto-added: missing selector */
}
.hero-overlay {
    /* Auto-added: missing selector */
}
.hero-section {
    /* Auto-added: missing selector */
}
.hero-subtitle {
    /* Auto-added: missing selector */
}
.latest-news {
    /* Auto-added: missing selector */
}
.main-nav {
    /* Auto-added: missing selector */
}
.nav-list {
    /* Auto-added: missing selector */
}
.news-link {
    /* Auto-added: missing selector */
}
.overview-content {
    /* Auto-added: missing selector */
}
.related-article-card {
    /* Auto-added: missing selector */
}
.related-article-content {
    /* Auto-added: missing selector */
}
.related-article-image {
    /* Auto-added: missing selector */
}
.related-articles {
    /* Auto-added: missing selector */
}
.related-articles-grid {
    /* Auto-added: missing selector */
}
.related-links {
    /* Auto-added: missing selector */
}
.sidebar-banner {
    /* Auto-added: missing selector */
}
.site-footer {
    /* Auto-added: missing selector */
}
.site-header {
    /* Auto-added: missing selector */
}
.site-overview {
    /* Auto-added: missing selector */
}
.toc {
    /* 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 === */
