/* リセット＆基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f3f4f6;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ヘッダー */
header {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.7;
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: #6b7280;
  font-weight: 500;
}

.main-nav a:hover {
  color: #2563eb;
}

/* コンテナ（グラスモーフィズム：方眼を透かす） */
.container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* サイドバー（半透明・グラスモーフィズム） */
aside {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 80px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

aside h2 {
  font-size: 1.1rem;
  color: #2563eb;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #2563eb;
}

aside ul {
  list-style: none;
}

aside li {
  margin-bottom: 0.75rem;
}

aside a {
  color: #6b7280;
  display: block;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

aside a:hover {
  background-color: #f3f4f6;
  color: #2563eb;
  text-decoration: none;
}

/* サイドバー免責事項 */
.disclaimer-box {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 6px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #78350f;
}

.disclaimer-box p {
  margin: 0;
}

/* メインコンテンツ（半透明・グラスモーフィズム） */
main {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.8);
  min-height: 600px;
}

/* カテゴリーセクション */
.category-section {
  margin-bottom: 3rem;
}

.category-section h2 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
}

/* ツールカードグリッド */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  cursor: pointer;
}

.tool-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: #2563eb;
}

.tool-card h3 {
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-card .icon {
  font-size: 1.5rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

/* フッター */
footer {
  background-color: #1f2937;
  color: #9ca3af;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #9ca3af;
}

.footer-section a:hover {
  color: #2563eb;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
  }
  
  main {
    grid-area: main;
  }
  
  aside {
    grid-area: sidebar;
    position: static;
    margin-top: 2rem;
  }
  
  .tool-grid {
    grid-template-columns: 1fr;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* URLエンコーダー用スタイル */
.encoder-container {
  max-width: 100%;
}

.encoder-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.encoder-panel {
  display: flex;
  flex-direction: column;
}

.encoder-panel label {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1f2937;
}

.encoder-panel textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Courier New', Monaco, monospace;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
  background-color: #fff;
}

.encoder-panel textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.encoder-panel textarea[readonly] {
  background-color: #f9fafb;
  cursor: default;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.clear-btn,
.copy-btn {
  flex: 1;
  min-width: 150px;
  padding: 16px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon {
  font-size: 1.2rem;
}

.primary-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.secondary-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.copy-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.clear-btn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

.clear-btn:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.guide-section {
  display: grid;
  gap: 20px;
}

/* Guide タブ — 塗りつぶし反転スタイル */
.guide-tabs-wrap {
  margin-bottom: 1.5rem;
}
.guide-tabs {
  display: flex;
  gap: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  width: fit-content;
}
.guide-tab {
  padding: .5rem 1.25rem;
  border-radius: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: #2196F3;
  cursor: pointer;
  transition: background .15s, color .15s;
  border: 1px solid #2196F3;
  border-bottom: none;
  background: #fff;
  margin-right: -1px;
  position: relative;
  z-index: 0;
}
.guide-tab.active {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: #fff;
  z-index: 2;
  margin-bottom: -1px;
  box-shadow: none;
}
.guide-pane {
  display: none;
}
.guide-pane.active {
  display: block;
  border: 1px solid #2196F3;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}
/* guide-pane内のinfo-boxは自前border/bgを除去 */
.guide-pane .info-box,
.guide-pane .info-box.explanation {
  background: transparent;
  border: none;
  border-left: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* SVGアイコン付き特徴リスト */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.feature-list > li {
  display: flex;
  align-items: flex-start;
  gap: .375rem;
  padding: .125rem 0;
}
.feature-list > li svg {
  flex-shrink: 0;
  margin-top: .175rem;
}

.info-box {
  background: rgba(239, 246, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-left: 4px solid #2563eb;
  padding: 24px;
  border-radius: 12px;
}

.info-box.explanation {
  background: rgba(240, 253, 244, 0.88);
  border-left-color: #10b981;
}

.info-box h3 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #1f2937;
  font-size: 1.3rem;
}

.info-box h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  color: #1f2937;
  font-size: 1.1rem;
}

.info-box ol,
.info-box ul {
  margin: 12px 0;
  padding-left: 1.75rem;
  padding-inline-start: 1.75rem;
  line-height: 1.8;
  list-style-position: outside;
}

.info-box li {
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
  color: #374151;
}

.info-box ul ul {
  margin-top: 8px;
  padding-left: 1.5rem;
}

.info-box p {
  line-height: 1.75;
  color: #374151;
  margin-bottom: 12px;
}

/* 共通：箇条書きリストのマーカー位置・カード風 */
.tool-page-main ul,
.tool-page-main ol {
  padding-left: 1.75rem;
  padding-inline-start: 1.75rem;
  list-style-position: outside;
}

.tool-page-main li {
  margin-bottom: 0.5rem;
}

main ul,
main ol {
  padding-left: 1.75rem;
  list-style-position: outside;
}

main li {
  margin-bottom: 0.5rem;
}

.example-box {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
}

.example-box code {
  display: block;
  background-color: #f9fafb;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: 'Courier New', Monaco, monospace;
  font-size: 0.9rem;
  color: #1f2937;
  margin-top: 8px;
  word-break: break-all;
}

.example-box p {
  margin: 12px 0 4px 0;
  font-weight: 600;
  color: #1f2937;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .encoder-layout {
    grid-template-columns: 1fr;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .primary-btn,
  .secondary-btn,
  .clear-btn,
  .copy-btn {
    min-width: 100%;
  }
}

/* オプションパネル（半透明） */
.options-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.checkbox-option span {
  font-size: 0.95rem;
  color: #374151;
}

/* 文字数カウンター */
.char-counter {
  float: right;
  font-size: 0.85rem;
  font-weight: 400;
  color: #6b7280;
}

/* ショートカットヒント */
.shortcut-hint {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 4px;
}

/* ローディングオーバーレイ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f4f6;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay p {
  color: white;
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* 比較表 */
.comparison-table {
  display: grid;
  gap: 16px;
  margin: 16px 0;
}

.comparison-row {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.comparison-header {
  background-color: #f9fafb;
  padding: 12px 16px;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 1px solid #e5e7eb;
}

.comparison-content {
  padding: 16px;
}

.comparison-content p {
  margin: 8px 0;
}

.comparison-content code {
  display: block;
  background-color: #f9fafb;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: 'Courier New', Monaco, monospace;
  font-size: 0.85rem;
  color: #1f2937;
  margin: 4px 0;
  word-break: break-all;
}

/* モード選択（半透明・グラスモーフィズム） */
.mode-selector {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.mode-selector > label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  color: #1f2937;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option:hover {
  border-color: #2563eb;
  background-color: #f9fafb;
}

.radio-option input[type="radio"] {
  margin-right: 10px;
  cursor: pointer;
}

.radio-option > span:first-of-type {
  font-weight: 500;
  color: #1f2937;
}

.mode-desc {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 4px;
  margin-left: 28px;
}

.radio-option input[type="radio"]:checked ~ span:first-of-type {
  color: #2563eb;
  font-weight: 600;
}

/* 業種別ダミーテキスト生成ツール：完全版CSS */
/* フルワイドコンテナ（グラスモーフィズム） */
.fullwidth-container {
  max-width: 1600px !important;
  margin: 2rem auto !important;
  padding: 0 2rem !important;
  position: relative;
  z-index: 1;
}

.tool-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem 1rem 2rem;
  border-bottom: 2px solid rgba(229, 231, 235, 0.9);
}

/* 全ツール共通：h1 グラデーション装飾 */
.tool-header h1,
.tool-page-main main h1 {
  font-size: 50px;
  font-weight: 700;
  font-family: 'BIZ UDPGothic', sans-serif;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, #2196F3, #1976D2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ツールチップ */
.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tooltip-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: .625rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
  line-height: 1;
  color: hsl(var(--muted-fg, 215 16% 47%));
}
.tooltip-body {
  display: none;
  position: absolute;
  bottom: calc(100% + .5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 17.5rem;
  max-width: 280px;
  padding: .5rem .75rem;
  background: #e8f4ff;
  color: #0d1a2e;
  border: 1.5px solid #1976D2;
  border-radius: 6px;
  font-size: .75rem;
  line-height: 1.6;
  z-index: 100;
  pointer-events: none;
  white-space: normal;
}
.tooltip-body::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1976D2;
}
.tooltip-wrap:hover .tooltip-body {
  display: block;
}

.tool-header p {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.65;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

/* タイトル・説明文の余白・デザイン統一（h1は上記グラデーションで統一） */

.intro,
.description,
.tool-page-main .description {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.intro p,
.description p {
  margin-bottom: 0.5em;
}

/* 3カラムレイアウト */
.three-column-layout {
  display: grid !important;
  grid-template-columns: 300px 1fr 1fr !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
}

/* 左カラム（半透明・グラスモーフィズム） */
.left-column {
  background: rgba(249, 250, 251, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.9) !important;
  border-radius: 12px !important;
  padding: 20px !important;
  height: fit-content !important;
  max-height: 800px !important;
  overflow-y: auto !important;
}

.search-box {
  margin-bottom: 16px;
}

.search-box input {
  width: 100% !important;
  padding: 10px 12px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
}

.search-box input:focus {
  outline: none !important;
  border-color: #2563eb !important;
}

.category-tree {
  margin-top: 12px;
}

.category-item {
  margin-bottom: 12px;
}

.category-header {
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
  padding: 8px 12px;
  background-color: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 8px;
}

.industry-list {
  padding-left: 8px;
}

.industry-item {
  padding: 8px 12px;
  margin: 4px 0;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #374151;
  transition: all 0.2s;
}

.industry-item:hover {
  background-color: #dbeafe;
  color: #2563eb;
}

.industry-item.active {
  background-color: #2563eb !important;
  color: white !important;
  font-weight: 600;
}

/* 中央カラム（半透明・グラスモーフィズム） */
.center-column {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.9) !important;
  border-radius: 12px !important;
  padding: 24px !important;
}

.center-column h3 {
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.replace-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 12px;
}

.input-row label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #2563eb;
  font-family: 'Courier New', monospace;
}

.input-row input {
  padding: 10px 12px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
}

.input-row input:focus {
  outline: none !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* スライダー */
.slider-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-row > label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
}

.slider-with-labels {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.slider-label {
  font-size: 0.85rem;
  color: #6b7280;
  min-width: 20px;
}

.slider-with-labels input[type="range"] {
  flex: 1 !important;
  height: 8px !important;
  border-radius: 4px !important;
  background: #d1d5db !important;
  outline: none !important;
  -webkit-appearance: none !important;
}

.slider-with-labels input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-with-labels input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2563eb;
  min-width: 60px;
  text-align: right;
}

/* トーン切り替え */
.tone-switch {
  display: flex;
  gap: 16px;
}

.switch-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.switch-option:hover {
  border-color: #2563eb;
  background-color: #f9fafb;
}

.switch-option input[type="radio"] {
  cursor: pointer;
}

.switch-option input[type="radio"]:checked + span {
  color: #2563eb !important;
  font-weight: 600 !important;
}

.switch-option span {
  font-size: 0.95rem;
  color: #374151;
}

/* 自動保存 */
.auto-save-option {
  margin-top: 16px;
  padding: 12px;
  background-color: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 6px;
}

.auto-save-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auto-save-option input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.auto-save-option span {
  font-size: 0.9rem;
  color: #374151;
}

/* 右カラム（半透明・グラスモーフィズム） */
.right-column {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.9) !important;
  border-radius: 12px !important;
  padding: 24px !important;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.preview-header h3 {
  font-size: 1.2rem;
  color: #1f2937;
  margin: 0;
}

.preview-header .char-counter {
  font-size: 0.9rem;
  color: #6b7280;
}

.preview-box {
  min-height: 400px !important;
  max-height: 600px !important;
  overflow-y: auto !important;
  padding: 20px !important;
  background-color: #f9fafb !important;
  border: 2px solid #e5e7eb !important;
  border-radius: 6px !important;
  line-height: 1.8 !important;
  font-size: 1rem !important;
}

.preview-box p {
  margin: 0 0 1em 0;
}

.preview-box p:last-child {
  margin-bottom: 0;
}

.placeholder-text {
  color: #9ca3af !important;
  font-style: italic !important;
  text-align: center !important;
}

.missing-tag {
  color: #ef4444 !important;
  font-weight: 600 !important;
  background-color: #fee2e2 !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
}

/* 出力ボタン */
.output-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.output-btn {
  padding: 14px 20px !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.output-btn.primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  color: white !important;
}

.output-btn.primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3) !important;
}

.output-btn.secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}

.output-btn.secondary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3) !important;
}

.output-btn.download {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  color: white !important;
}

.output-btn.download:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3) !important;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .three-column-layout {
    grid-template-columns: 1fr !important;
  }
  
  .left-column {
    max-height: 400px !important;
  }
  
  .input-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  
  .tone-switch {
    flex-direction: column;
  }
}

/* ダミーテキストページ：control-section / slider-group */
.control-section {
  margin-top: 2rem;
}

.control-section h3 {
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

.reset-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.reset-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-2px);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.slider-group label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
}

.slider-group input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #d1d5db;
  outline: none;
  -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-group input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #6b7280;
}

/* ダミーテキストページ専用：最下部サイドバー */
.bottom-sidebar {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

.bottom-sidebar aside {
  position: static;
  margin: 0;
}

/* ダークモード：グラスモーフィズムをテーマ対応 */
.dark main {
  background: hsl(var(--card) / 0.88) !important;
  border-color: hsl(var(--border) / 0.6) !important;
}

.dark .left-column,
.dark .center-column,
.dark .right-column {
  background: hsl(var(--card) / 0.85) !important;
  border-color: hsl(var(--border) / 0.6) !important;
}

.dark .tool-card,
.dark aside {
  background: hsl(var(--card) / 0.85) !important;
  border-color: hsl(var(--border) / 0.6) !important;
}

/* ダークモード：ガイドタブ */
.dark .guide-tab {
  background: hsl(var(--card));
  color: #60a5fa;
  border-color: #60a5fa;
}
.dark .guide-tab.active {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: #fff;
  border-color: #2196F3;
}
.dark .guide-pane.active {
  background: hsl(var(--card));
  color: hsl(var(--fg));
  border-color: #60a5fa;
}
