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

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', 'Yu Gothic', sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }

/* ===== ヘッダー ===== */
.header {
  background: #fff;
  border-bottom: 3px solid #E8831A;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

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

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #E8831A;
  letter-spacing: 0.04em;
}

.header-title {
  font-size: 14px;
  color: #888;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ===== レイアウト ===== */
.layout {
  display: flex;
  flex: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 16px;
  gap: 24px;
  align-items: flex-start;
}

/* ===== サイドバー ===== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 88px;
}

.sidebar-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px 0;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.1em;
  padding: 0 18px 8px;
  text-transform: uppercase;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li a {
  display: block;
  padding: 9px 18px;
  font-size: 13.5px;
  color: #444;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: #FFF4EA;
  color: #E8831A;
  border-left-color: #E8831A;
  font-weight: 600;
}

/* ===== メインコンテンツ ===== */
.main {
  flex: 1;
  min-width: 0;
}

/* ===== ウェルカムバナー ===== */
.welcome-banner {
  background: linear-gradient(135deg, #E8831A 0%, #F5A54A 100%);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(232,131,26,0.3);
}

.welcome-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.welcome-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.welcome-sub {
  font-size: 13.5px;
  opacity: 0.92;
  line-height: 1.6;
}

/* ===== カードグリッド ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1.5px solid transparent;
  transition: all 0.18s;
  cursor: pointer;
}

.card:hover {
  border-color: #E8831A;
  box-shadow: 0 4px 16px rgba(232,131,26,0.15);
  transform: translateY(-2px);
}

.card-add {
  border: 2px dashed #ddd;
  background: #fafafa;
}

.card-add:hover {
  border-color: #E8831A;
  background: #FFF4EA;
}

.card-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFF4EA;
  border-radius: 10px;
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.card-arrow {
  font-size: 22px;
  color: #ccc;
  flex-shrink: 0;
  transition: color 0.15s;
}

.card:hover .card-arrow {
  color: #E8831A;
}

/* ===== 最終更新 ===== */
.update-info {
  font-size: 12px;
  color: #aaa;
  text-align: right;
  padding: 4px 0;
}

/* ===== マニュアルページ共通 ===== */
.page-header {
  margin-bottom: 24px;
}

.page-breadcrumb {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
}

.page-breadcrumb a {
  color: #E8831A;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: #222;
  border-left: 5px solid #E8831A;
  padding-left: 14px;
}

.page-subtitle {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
  padding-left: 19px;
}

/* ===== コンテンツブロック ===== */
.content-block {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.content-block h2 {
  font-size: 17px;
  font-weight: 700;
  color: #E8831A;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #FFE8CE;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-block h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #444;
  margin: 18px 0 8px;
}

.content-block p {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

.content-block ul, .content-block ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.content-block li {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 4px;
}

/* ===== 強調ボックス ===== */
.info-box {
  background: #FFF4EA;
  border-left: 4px solid #E8831A;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 13.5px;
  color: #555;
  line-height: 1.7;
}

.warn-box {
  background: #FFF8E1;
  border-left: 4px solid #FFC107;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 13.5px;
  color: #555;
  line-height: 1.7;
}

/* ===== テーブル ===== */
.content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13.5px;
}

.content-block th {
  background: #FFF4EA;
  color: #E8831A;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #FFE8CE;
}

.content-block td {
  padding: 10px 14px;
  border: 1px solid #eee;
  color: #555;
  line-height: 1.6;
}

.content-block tr:nth-child(even) td {
  background: #fafafa;
}

/* ===== Google Driveリンクボタン ===== */
.gdrive-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E8831A;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.15s;
}

.gdrive-btn:hover {
  background: #C96D10;
}

/* ===== コンテンツ画像 ===== */
.content-img {
  width: 100%;
  max-width: 720px;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: block;
  margin: 12px 0 16px;
}

.content-img-caption {
  font-size: 12px;
  color: #aaa;
  margin-top: -12px;
  margin-bottom: 16px;
}

/* ===== 検索 ===== */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin: 0 24px;
}

.search-input {
  width: 100%;
  padding: 8px 16px;
  border: 1.5px solid #eee;
  border-radius: 24px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #f9f9f9;
  transition: border-color 0.15s, background 0.15s;
  color: #333;
}

.search-input:focus {
  border-color: #E8831A;
  background: #fff;
}

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 999;
  overflow: hidden;
  border: 1px solid #eee;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #FFF4EA;
}

.search-result-page {
  font-size: 11px;
  color: #E8831A;
  font-weight: 700;
  margin-bottom: 2px;
}

.search-result-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}

.search-result-snippet {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
}

.search-no-results {
  padding: 16px;
  font-size: 13px;
  color: #aaa;
  text-align: center;
}

mark {
  background: #FFE8CE;
  color: #C96D10;
  border-radius: 2px;
  padding: 0 1px;
}

/* ===== フッター ===== */
.footer {
  background: #fff;
  border-top: 2px solid #FFE8CE;
  text-align: center;
  padding: 18px;
  font-size: 12px;
  color: #aaa;
  margin-top: auto;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    padding: 16px 12px;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .header-inner {
    padding: 0 16px;
  }

  .welcome-banner {
    padding: 20px;
  }

  .welcome-title {
    font-size: 18px;
  }

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

  .content-block {
    padding: 20px 18px;
  }
}
