/* =============================================
   menu-header.css
   PICOデジタル資料室 メニューページ専用スタイル
   
   【使い方】
   index.php の <head> 内で読み込み：
   <link rel="stylesheet" href="menu-header.css">
   
   ※ 既存のstyles.cssの後に読み込むと上書きされます
============================================= */

/* === ヘッダー本体 === */
.pico-header {
  background: linear-gradient(135deg, #0075c1 0%, #004d82 100%);
  color: white;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -1em;
  margin-bottom: 0;
  box-sizing: border-box;
  overflow: visible;
}

/* 上部アクセントライン（カラフル） */
.pico-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0075c1, #4ECDC4, #45B7D1, #96CEB4);
}

/* === パンくず・メタ情報エリア === */
.header-top {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.header-top .breadcrumb {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8em;
}

.header-top .breadcrumb a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.header-top .breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.header-top .breadcrumb span {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.6);
}

.header-top .meta {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8em;
}

/* === メインタイトルエリア === */
.header-main {
  padding: 24px 20px 22px;
  text-align: center;
}

/* ロゴ画像 - 強力な指定 */
.pico-header .header-logo,
.header-main .header-logo,
img.header-logo {
  width: 60px !important;
  max-width: 60px !important;
  height: auto !important;
  margin-bottom: 12px;
  opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pico-header h1 {
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 0 10px 0;
  letter-spacing: 0.02em;
  color: white;
  text-align: center;
  width: 100%;
}

.header-main .subtitle {
  display: inline-block;
  background: rgba(255, 224, 102, 0.2);
  color: #FFE066;
  padding: 6px 22px;
  border-radius: 100px;
  font-size: 0.92em;
  font-weight: 600;
  border: 1px solid rgba(255, 224, 102, 0.4);
}

/* === 統計バー === */
.stats-bar {
  background: rgba(255, 255, 255, 0.1);
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}

.stats-bar .stat-item {
  font-size: 0.82em;
  color: rgba(255, 255, 255, 0.9);
}

.stats-bar .stat-number {
  display: block;
  font-size: 1.35em;
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

/* === レスポンシブ（スマホ・LINE対応） === */
@media (max-width: 768px) {
  .header-main {
    padding: 20px 16px 18px;
  }
  
  .pico-header .header-logo,
  .header-main .header-logo,
  img.header-logo {
    width: 40px !important;
    max-width: 40px !important;
    margin-bottom: 8px;
  }
  
  .pico-header h1 {
    font-size: 1.5em;
  }
  
  .header-main .subtitle {
    font-size: 0.85em;
    padding: 5px 16px;
  }
  
  .stats-bar {
    padding: 12px 16px;
  }
  
  .stats-bar .stat-number {
    font-size: 1.2em;
  }
  
  .stats-bar .stat-item {
    font-size: 0.75em;
  }
  
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 16px;
  }
  
  .header-top .breadcrumb,
  .header-top .meta {
    font-size: 0.75em;
  }
}

/* =============================================
   タブエリア
============================================= */
.tab-container {
  margin: 0;
  padding: 18px 1em 14px;
  background: #f8fafc;
}

.tab-buttons {
  display: flex;
  background: #e8ecf0;
  border-radius: 100px;
  padding: 4px;
  gap: 0;
  max-width: 400px;
  margin: 0 auto 10px auto;
  box-shadow: none;
}

.tab-button {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 600;
  color: #666;
  transition: all 0.25s ease;
}

.tab-button:hover {
  color: #0075c1;
}

.tab-button.active {
  background: white;
  color: #0075c1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* タブガイド */
.tab-guide {
  background: #f0f7ff;
  border: 1px solid #e3eef9;
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.82em;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-guide .guide-icon {
  font-size: 1.1em;
}

@media (max-width: 600px) {
  .tab-buttons {
    max-width: 100%;
  }
  
  .tab-button {
    font-size: 0.82em;
    padding: 9px 10px;
  }
  
  .tab-guide {
    font-size: 0.78em;
    padding: 8px 12px;
  }
}

/* =============================================
   セクション見出し h2
============================================= */
h2 {
  position: relative;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  border-left: 4px solid #0075c1;
  border-bottom: none;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.2em;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 117, 193, 0.08);
  margin-top: 1.8em;
  margin-bottom: 1em;
}

/* 下の縦線を削除 */
h2:before {
  display: none;
}
