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

body {
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: #c00000; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ヘッダー */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.header-logo-name { font-weight: 700; font-size: 0.95rem; color: #111; white-space: nowrap; }
.header-logo-sep { width: 1px; height: 16px; background: #ccc; display: inline-block; }
.header-logo-sub { font-size: 0.78rem; color: #888; font-weight: 400; white-space: nowrap; }

.header-nav { display: none; align-items: center; gap: 20px; }
.header-nav a { font-size: 0.82rem; color: #555; white-space: nowrap; }

.header-hamburger {
  background: none; border: none; cursor: pointer; padding: 8px;
  display: flex; flex-direction: column; gap: 5px; flex-shrink: 0;
}
.header-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #555; border-radius: 1px; transition: transform 0.2s, opacity 0.2s;
}

#mobile-menu {
  display: none;
  background: rgba(255,255,255,0.97);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 8px 0;
}
#mobile-menu a { display: block; padding: 12px 24px; font-size: 0.9rem; color: #333; }

@media (min-width: 1101px) {
  .header-nav       { display: flex; }
  .header-hamburger { display: none; }
}

/* レイアウト */
.layout-body {
  display: flex; flex: 1; align-items: flex-start;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.layout-main { flex: 1; min-width: 0; }
.layout-sidebar { width: 300px; flex-shrink: 0; padding: 24px 16px; }

@media (max-width: 1023px) {
  .layout-body { flex-direction: column; align-items: stretch; }
  .layout-sidebar { width: 100%; padding: 0 16px 24px; }
}

/* フッター */
#site-footer { text-align: center; padding: 1rem; font-size: 0.85rem; color: #888; }

/* 看板ヒーロー */
.kanban {
  background: #fff7f0;
  padding: 32px 20px;
  border-bottom: 1px solid #e8d5c4;
}
.kanban-frame {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  border: 2px solid #c00000;
  box-shadow: inset 0 0 0 4px #fff7f0, inset 0 0 0 6px #c00000;
  padding: 28px 32px;
}
.kanban-corner {
  position: absolute;
  color: #c00000;
  font-size: 0.6rem;
  line-height: 1;
}
.kanban-corner--tl { top: 5px;    left: 7px;  }
.kanban-corner--tr { top: 5px;    right: 7px; }
.kanban-corner--bl { bottom: 5px; left: 7px;  }
.kanban-corner--br { bottom: 5px; right: 7px; }
.kanban-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.kanban-stamp-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  overflow: hidden;
}
.kanban-svg { display: block; width: 52px !important; height: 52px !important; }
.kanban-site {
  font-size: 0.72rem;
  color: #aaa;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}
.kanban-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.kanban-desc {
  font-size: 0.83rem;
  color: #666;
}

@media (max-width: 520px) {
  .kanban-frame  { padding: 16px 14px; }
  .kanban-inner  { gap: 14px; }
  .kanban-title  { font-size: 1.2rem; }
}

/* ツールメニュー */
.menu-section { padding: 28px 20px 40px; }
.menu-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #aaa;
  font-weight: 400;
  margin-bottom: 20px;
}
.menu-heading::before,
.menu-heading::after { content: ''; flex: 1; height: 1px; background: #e5e7eb; }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.menu-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.menu-card:hover {
  box-shadow: 0 4px 18px rgba(192,0,0,0.13);
  transform: translateY(-2px);
  text-decoration: none;
}
.menu-card-icon { flex-shrink: 0; width: 44px; height: 44px; overflow: hidden; }
.menu-card-icon img { display: block; width: 44px !important; height: 44px !important; }
.menu-card-body { flex: 1; min-width: 0; }
.menu-card-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}
.menu-card-desc {
  font-size: 0.81rem;
  color: #666;
  line-height: 1.55;
  margin-bottom: 10px;
}
.menu-card-link {
  font-size: 0.8rem;
  color: #c00000;
  font-weight: 600;
}

/* 広告ウィジェット */
.ad-widget { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.ad-pr { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.ad-pr span { font-size: 0.7rem; color: #aaa; border: 1px solid #d1d5db; border-radius: 3px; padding: 0 4px; }
.ad-widget img { width: 100%; border-radius: 4px; margin-bottom: 12px; object-fit: cover; }
.ad-title { font-size: 0.85rem; font-weight: 700; color: #1f2937; margin-bottom: 12px; line-height: 1.4; }
.ad-btn-amazon {
  display: block; text-align: center; font-weight: 700;
  color: #000; font-size: 0.85rem; padding: 8px 12px;
  border-radius: 4px; background: #fbd303; margin-bottom: 8px;
  text-decoration: none;
}
.ad-btn-rakuten {
  display: block; text-align: center; font-weight: 700;
  color: #fff; font-size: 0.85rem; padding: 8px 12px;
  border-radius: 4px; background: #bf0000; text-decoration: none;
}
