/* ==============================
   ベース設定
============================== */
body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  color: #333;
  background-color: #fff;
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================
   ヘッダー
============================== */
.site-header {
  background: #003366;
  color: #fff;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

/* 画像ロゴ対応 */
.logo img {
  display: block;
  height: auto;
  width: auto;
  max-height: 44px;
  transition: max-height 0.3s ease;
}

/* 画面幅が900px以下のときロゴを少し小さく */
@media (max-width: 900px) {
  .logo img {
    max-height: 38px;
  }
}

/* スマホサイズ（480px以下）のときさらに小さく */
@media (max-width: 480px) {
  .logo img {
    max-height: 30px;
  }
}

/* ページネーション（ドット） */
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 0;
}
.slider-dots button[aria-current="true"] {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}

/* hero-slider にフォーカスが当たった時のアウトライン（キーボードで見えるように） */
.hero-slider:focus {
  outline: 3px solid rgba(0,102,204,0.25);
  outline-offset: 4px;
}

/* ----- ナビゲーション ----- */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

/* サブメニュー（デスクトップはホバーで表示） */
.main-nav li { position: relative; }
.main-nav .submenu {
  position: absolute;
  left: 0;
  top: 100%;
  background: rgba(0,0,0,0.45); /* 半透明の黒 */
  padding: 8px 0;
  min-width: 200px;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-radius: 6px;
  z-index: 1000;
}
.main-nav .submenu li { padding: 0; }
.main-nav .submenu a {
  display: block;
  padding: 10px 16px;
  color: #fff; /* 白文字 */
  text-decoration: none;
}
.main-nav .submenu a:hover { background: rgba(255,255,255,0.06); }
.main-nav li.has-submenu:hover > .submenu { display: block; }

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.8;
}

.main-nav a.active {
  border-bottom: 2px solid #fff;
  padding-bottom: 2px;
}

/* ----- ハンバーガーメニュー ----- */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* ==============================
   ヒーロースライダー
============================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 背景画像ではなく img を内部に配置する方式に対応 */
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}
/* スライドの薄めオーバーレイ */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* ← 0.22が自然で程よい濃さ */
  z-index: 1;
}

/* テキストをオーバーレイの上に */
.slide .hero-content {
  position: relative;
  z-index: 2;
}


.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 6px 12px rgba(0,0,0,0.6);
  margin-bottom: 12px;
}


.hero-content p {
  font-size: 1.1rem;
  color: #eef2ff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
  margin-bottom: 20px;
}


/* スライド内の img を全面に表示し、テキストを重ねる */
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

/* 矢印ボタン */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  font-size: 22px;
  line-height: 1;
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-prev:hover,
.slider-next:hover { background: rgba(0,0,0,0.6); }
/* ===== 非表示のSEO用テキスト（スクリーンリーダー・検索エンジンのみ認識） ===== */
.visually-hidden {
  position: absolute !important;
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0 0 0 0); 
  border: 0;
}
/* ===== ヒーロースライダー見出し（h2をh1と同じ見た目に） ===== */
.hero-content h2 {
  font-size: 2.8rem;          /* 元のh1サイズと同等 */
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.4;
}

/* スマホ対応（以前のh1と同条件で） */
@media (max-width: 1024px) {
  .hero-content h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.4rem;
  }
}

/* ==============================
   製品紹介
============================== */
.featured-section {
  background-color: #fff;
  padding: 60px 0;
}

.featured-section h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 40px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: auto;
}
  .card h2 {
    font-family: "Noto Serif JP", "Noto Sans JP", serif;
    display: block;                /* ← blockに変更 */
    box-sizing: border-box;        /* padding を含めて幅を計算（左右差の原因対策） */
    width: 100%;
    margin: 0;
    padding: 8px 16px 16px 16px;
    font-size: 1.8rem;
    font-weight: 900;              /* ← 太字をより強調 */
    letter-spacing: 0.06em;
    text-align: center;            /* ← テキストを中央揃え */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

    /* 高級感のあるグラデーション文字 */
    background: linear-gradient(90deg, #1e2a47 0%, #6a76c9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    transition: transform 0.3s ease, opacity 0.3s ease;
  }


.card h2:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.card .sub-title {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-bottom: -4px;   /* ← h2との間隔をさらに狭く */
  margin-top: 40px;      /* 上側の余白を多く */
}
.card .sub-title {
  color: #6a76c9;
  opacity: 0.9;
}
.card h2 {
  margin-top: 0;        /* ← h2の上余白をリセットして密着 */
}

/* レスポンシブ調整（スマホで少し小さく） */
@media (max-width: 768px) {
  .card .sub-title {
    font-size: 0.75rem;
    margin-top: 10px;
  }
}

.card p {
  margin: 0 15px 15px;
  font-size: 0.95rem;
}

.card .link {
  display: inline-block;
  margin: 0 15px 20px;
  color: #0066cc;
  text-decoration: none;
  font-weight: bold;
}

.card .link:hover {
  text-decoration: underline;
}

/* ==============================
   ニュース
============================== */
.news-section {
  background: #f7f9fc;
  padding: 60px 0 120px 0;
}

.news-section h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 30px;
}

.news-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.news-list li {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
  font-size: 0.95rem;
}

.news-list .date {
  color: #0066cc;
  font-weight: bold;
  margin-right: 8px;
}

/* 注目ニュースのスタイル */
.featured-news {
  background: linear-gradient(135deg, #fff3e0 0%, #e8f5e8 100%);
  border: 2px solid #ff6b35;
  border-radius: 8px;
  padding: 16px !important;
  margin: 12px 0;
  position: relative;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
  animation: pulse-glow 2s ease-in-out infinite alternate;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.featured-news .date {
  flex-shrink: 0;
  margin-right: 8px;
}

.featured-news .new-badge {
  flex-shrink: 0;
  margin-right: 8px;
  margin-left: 0;
}

.featured-news a {
  color: #003366;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: #ff6b35;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
  flex: 1;
  line-height: 1.5;
}

.featured-news a:hover {
  color: #ff6b35;
  text-decoration-color: #003366;
  text-underline-offset: 4px;
}

.new-badge {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  margin: 0 8px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
  }
  100% {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* ==============================
   フッター
============================== */
.site-footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* ==============================
   📱 レスポンシブ対応
============================== */
@media (max-width: 1024px) {
  .hero-slider {
    height: 450px;
  }
  .hero-content h1 {
    font-family: "Noto Serif JP", serif;
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: 0.02em;
  }
  /* 大きめデバイスでのカード見出し調整 */
  .card h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  /* ヘッダー */
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    color: #fff;
  }

  .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    background: #003366;
  }

  .main-nav .submenu {
    position: static;
    display: none;
    background: transparent;
    box-shadow: none;
    padding-left: 12px;
  }

  .main-nav li.has-submenu.open > .submenu {
    display: block;
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .main-nav a {
    display: block;
    padding: 12px;
  }

  /* ヒーロー */
  .hero-slider {
    height: 320px;
  }

  .hero-content h1 {
    font-family: "Noto Serif JP", serif;
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
  }

  .hero-content p {
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
  }

  /* ニュース */
  .news-section {
    padding: 40px 0;
  }

  /* 注目コンテンツ */
  .featured-section {
    padding: 40px 0;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  /* モバイルで見出しの背景幅と余白を調整 */
  .card h2 {
    padding: 12px 14px;
    font-size: 1.15rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  /* 下層ページ */
  .company-table th, .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    background: #f7f9fc;
    color: #003366;
  }

  .company-table tr {
    margin-bottom: 10px;
    display: block;
    border: 1px solid #ddd;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 250px;
  }

  .hero-content h1 {
    font-family: "Noto Serif JP", serif;
    font-weight: 600;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
  }

  .hero-content p {
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
  }

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

  /* スマホ最小サイズ: さらに小さく */
  .card h2 {
    font-size: 1.05rem;
    padding: 10px 12px;
  }

  .news-section h2,
  .featured-section h2 {
    font-size: 1.4rem;
  }
}
/* 統一フォント指定を上書き */
.hero-content h1 {
  font-family: "Noto Sans JP", sans-serif !important;
}

/* 既存のレスポンシブメディアクエリ内でのフォント上書きを削除または無効化 */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-family: "Noto Sans JP", sans-serif !important;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-family: "Noto Sans JP", sans-serif !important;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-family: "Noto Sans JP", sans-serif !important;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
  }
}
/* スマホ時のみ改行を有効にする */
.sp-br {
  display: none;
}

@media (max-width: 768px) {
  .sp-br {
    display: inline; /* スマホサイズで改行 */
  }

  .hero-content h1 {
    font-family: "Noto Sans JP", sans-serif !important;
    font-size: 1.25rem;
    line-height: 1.5;
    word-break: keep-all;
    white-space: normal;
    max-width: 90%;
    padding: 0 1rem;
    margin: 0 auto;
  }
}
/* ===== ヒーロー見出し・サブテキストのフォント統一 ===== */
.hero-content h1,
.hero-content p {
  font-family: "Noto Sans JP", sans-serif !important;
  word-break: keep-all;
  white-space: normal;
  text-align: center;
  margin: 0 auto;
  max-width: 90%;
  line-height: 1.5;
  color: #fff;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 6px;
    color: #eef2ff;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .hero-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .featured-news .date {
    font-size: 0.95rem !important;
  }
}

.featured-news a br {
  display: none !important;
}
/* NEWS 注目記事タイトルのスマホ用フォント調整 */
@media (max-width: 768px) {
  .featured-news a {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .featured-news a {
    font-size: 0.85rem;
  }
}

