body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Meiryo", "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  line-height: 1.6;
}
.header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
}
.header h1 {
  margin: 0;
  font-size: 1.5rem;
}
.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 8px;
}
.hamburger span:nth-child(3) {
  top: 16px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}
.sidebar {
  width: 250px;
  background-color: #f8f9fa;
  padding: 1rem;
  height: 100vh;
  position: fixed;
  left: -250px;
  top: 64px;
  transition: left 0.3s ease;
  z-index: 999;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}
.sidebar.active {
  left: 0;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar li {
  margin-bottom: 0.5rem;
}
.sidebar a {
  color: #2c3e50;
  text-decoration: none;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.sidebar a:hover {
  background-color: #e9ecef;
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}
.main-content {
  margin-left: 0;
  padding: 96px 2rem 64px 2rem;
  min-height: calc(100vh - 128px);
  transition: margin-left 0.3s ease;
  box-sizing: border-box;
}
.main-content.sidebar-active {
  margin-left: 250px;
}
.message {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.footer {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1001;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}
/* 診断ツール共通スタイル */
.tool-container {
  max-width: 800px;
  margin: 0 auto;
}

.tool-card {
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.tool-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tool-card .card-header {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: #2c3e50;
}

.tool-form {
  background-color: #ffffff;
}

.tool-result {
  margin-top: 2rem;
}

.tool-result .card-header {
  background-color: #2c3e50;
  color: white;
  font-weight: 600;
}

.tool-result pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.tool-button {
  min-width: 120px;
}

.tool-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-status .badge {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
}

.tool-details {
  margin-top: 1rem;
}

.tool-details summary {
  cursor: pointer;
  color: #2c3e50;
  font-weight: 500;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.tool-details summary:hover {
  background-color: #e9ecef;
}

.tool-details[open] summary {
  margin-bottom: 0.5rem;
}

.tool-export-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tool-loading {
  display: none;
  text-align: center;
  padding: 2rem;
}

.tool-loading.active {
  display: block;
}

.tool-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

.tool-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #c3e6cb;
}

/* フォーム要素の統一 */
.tool-form .form-label {
  font-weight: 500;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.tool-form .form-control,
.tool-form .form-select {
  border-color: #ced4da;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-form .form-control:focus,
.tool-form .form-select:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.tool-form .form-check-label {
  font-weight: normal;
  color: #495057;
}

/* レスポンシブテーブル */
.tool-table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tool-table {
  width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
}

.tool-table th {
  background-color: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.tool-table td {
  vertical-align: middle;
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-result.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@media (max-width: 600px) {
  .sidebar {
    width: 200px;
    left: -200px;
  }
  .sidebar.active {
    left: 0;
  }
  .main-content.sidebar-active {
    margin-left: 200px;
  }
  .tool-container {
    padding: 0 1rem;
  }
  .tool-export-buttons {
    justify-content: center;
  }
}

/* ホームページ専用スタイル */
.hero-section {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 4rem 0;
  margin-top: 0;
  text-align: center;
}

.hero-section .display-4 {
  font-weight: 300;
  margin-bottom: 1rem;
}

.hero-section .bi-tools {
  font-size: 3rem;
  margin-right: 1rem;
  vertical-align: middle;
}

.tools-grid {
  padding: 3rem 0;
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
  font-weight: 600;
}

.section-title i {
  margin-right: 0.5rem;
  color: #3498db;
}

.tool-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tool-card.advanced {
  border: 2px solid #f39c12;
  background: linear-gradient(135deg, #fff 0%, #fffbf5 100%);
}

.tool-card-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid #ecf0f1;
}

.tool-icon {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 0.5rem;
  display: block;
}

.tool-card.advanced .tool-icon {
  color: #f39c12;
}

.tool-card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.tool-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.tool-card-body p {
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.25rem 0;
  color: #95a5a6;
  font-size: 0.9rem;
}

.feature-list li:before {
  content: "✓";
  color: #27ae60;
  font-weight: bold;
  margin-right: 0.5rem;
}

.tool-card-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid #ecf0f1;
}

.advanced-tools {
  background: white;
  padding: 3rem 0;
}

.cta-section {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  padding: 3rem 0;
}

.cta-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.cta-card h3 {
  margin-bottom: 1rem;
}

.usage-section {
  padding: 3rem 0;
  background: white;
}

.usage-step {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.usage-step h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: 600;
}

.usage-step p {
  color: #7f8c8d;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section .bi-tools {
    font-size: 2rem;
    display: block;
    margin: 0 0 1rem 0;
  }
  
  .tools-grid, .advanced-tools, .usage-section {
    padding: 2rem 0;
  }
  
  .tool-card-header, .tool-card-body, .tool-card-footer {
    padding: 1rem;
  }
  
  .usage-step {
    padding: 1rem;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}
