@charset "utf-8";

/* 用例検索ページ専用のスタイル */

/* ページタイトル */
.content h1.search-page-title {
  text-align: center;
  color: #181818;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-top: 10px;
  margin-bottom: 10px;
}

/* 検索ページの説明 */
.search-instruction {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin: 0 15px 20px 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #dbdbdb;
  border-left: 4px solid #2d7a2d;
  display: none; /* 一時的に非表示 */
}

/* タブボタンのスタイル */
.content button {
  color: #2d7a2d;
  width: auto;
  font-size: 95%;
  font-family: "Noto Sans JP", Sans-Serif;
  font-weight: 400;
  padding: 4px 15px;
  background-color: transparent;
  border: 1px solid #2d7a2d;
  cursor: pointer;
  margin-right: 6px;
  border-radius: 0;
  transition: all 0.2s ease;
  margin-left: 0;
}

.content button.active {
  color: white;
  background-color: #2d7a2d;
}

/* 検索セクション */
.search-section {
  max-width: 800px;
  margin: 0px auto;
  padding: 20px;
  background: white;
  border-radius: 4px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #2d7a2d;
  margin-bottom: 25px;
  padding-bottom: 8px;
  border-bottom: 3px solid #76b676;
}

.section-title-large {
  font-size: 18px;
  font-weight: 700;
  color: #2d7a2d;
  margin: 0px 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 3px solid #76b676;
}

.search-form-container {
  /* max-width: 600px; */
  margin: 0 auto;
}

.search-form {
  margin: 0 15px;
}

/* フォーム要素 */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group:first-child {
  width: 200px;
}

.form-group:nth-child(2) {
  width: 300px;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.required {
  font-size: 12px;
  color: #c53030;
  font-weight: 400;
  margin-left: 5px;
}

.form-select {
  width: 100%;
  padding: 4px 6px;
  font-size: 14px;
  font-family: "Noto Sans JP", sans-serif;
  border: 2px solid #ddd;
  border-radius: 0;
  background-color: white;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.form-select:hover {
  border-color: #76b676;
}

.form-select:focus {
  outline: none;
  border-color: #5c9f5c;
}

.form-select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  color: #999;
}

/* ボタン */
.form-actions {
  text-align: right;
  margin-top: 35px;
}

.btn-search,
.btn-reset {
  display: inline-block;
  padding: 10px 20px !important;
  font-size: 15px;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #5c9f5c;
}

.btn-search {
  background-color: #5c9f5c;
  color: white;
}

.btn-search:hover:not(:disabled) {
  color: white !important;
  background-color: #76b676 !important;
  border-color: #76b676 !important;
}

.btn-search:disabled {
  background-color: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}

.btn-reset {
  background-color: white;
  color: #5c9f5c;
  margin-left: 10px;
}

.btn-reset:hover {
  color: white !important;
  background-color: #76b676 !important;
  border-color: #76b676 !important;
}

/* 検索結果セクション */
.results-section {
  max-width: 800px;
  margin: 0px auto;
  padding: 20px;
}

/* 2カラムレイアウトコンテナ（デフォルトは非表示） */
.two-column-container {
  display: none;
}

/* 960px未満用の動詞表示コンテナ（デフォルトは非表示） */
.verb-display-container {
  display: none;
}

/* 960px未満用の用例コンテナ（デフォルトは非表示） */
#examples-container {
  display: none;
}

.section-title-large {
  font-size: 18px;
  font-weight: 700;
  color: #2d7a2d;
  margin: 0px 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 3px solid #76b676;
}

.search-info {
  background: #e8f4e8;
  /* border-radius: 4px; */
  padding: 5px 10px;
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  border: 2px solid #76b676;
  margin: 0 10px;
}

.search-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-info-item .label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.search-info-item .value {
  font-size: 16px;
  color: #2d7a2d;
  font-weight: 700;
}

#result-particle,
#result-role,
#result-count {
  font-size: 14px;
}

/* 動詞グループ別頻度 */
.verb-groups-container {
  background: white;
  border-radius: 4px;
  padding: 20px 10px;
  margin-bottom: 30px;
}

/* 動詞表示コンテナ（タブ） */
.verb-display-container {
  background: white;
  border-radius: 4px;
  padding: 20px 10px;
  margin-bottom: 10px;
}

/* タブナビゲーション */
.tab-navigation {
  display: flex;
  gap: 0;
  /* border-bottom: 2px solid #e0e0e0; */
  margin-bottom: 2px;
}

.tab-button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  color: #666;
  background: transparent;
  border: none;
  border-bottom-width: 0px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  bottom: -2px;
}

.tab-button:hover {
  color: white !important;
  background-color: #76b676 !important;
  border-color: #76b676 !important;
}

#show-all-btn:hover {
  color: white !important;
  background-color: #76b676 !important;
  border-color: #76b676 !important;
}

.tab-button.active {
  color: #2d7a2d;
  font-weight: 700;
  border-bottom-color: transparent;
}

/* タブコンテンツ */
.tab-content {
  display: none;
  border: 1px solid #76b676;
  /* border-radius: 4px; */
  padding: 15px 20px 20px 20px;
}

.tab-content.active {
  display: block;
}

/* チャートフッター（分類語彙表の説明） */
.chart-footer {
  margin-top: 20px;
  /* padding-top: 15px; */
  /* border-top: 1px solid #e0e0e0; */
  text-align: right;
}

.chart-footer p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.chart-footer a,
.chart-description a {
  color: #2d7a2d;
  text-decoration: none;
}

.chart-footer a:hover,
.chart-description a:hover {
  text-decoration: underline;
}

.subsection-title {
  font-size: 16px;
  font-weight: 700;
  color: #2d7a2d;
  margin-bottom: 15px;
  border-bottom: 2px dotted #76b676;
  padding-bottom: 3px;
}

.chart-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 13px;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-description p {
  margin: 0;
}

/* トグルスイッチコンテナ */
.toggle-switches {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

/* トグルスイッチ */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background-color: #5c9f5c;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.verb-groups-chart {
  margin-top: 20px;
}

.verb-group-row {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  gap: 10px;
  min-height: 36px;
}

.verb-group-label {
  width: 240px;
  min-width: 240px;
  font-size: 14px;
  color: #333;
  text-align: left;
  flex-shrink: 0;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-weight: 400;
}

.verb-group-label strong {
  font-weight: 700;
}

.bar-container {
  flex: 1;
  height: 20px;
  background-color: #e8e8e8;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.verb-group-bar {
  height: 100%;
  background-color: #5c9f5c;
  border-radius: 0;
  transition: width 0.5s ease;
}

.verb-group-bar:hover {
  opacity: 0.8;
}

.verb-group-bar.unclassified {
  background: #999;
}

.verb-group-count {
  min-width: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #2d7a2d;
  text-align: right;
  white-space: nowrap;
}

.verb-group-count .count-detail {
  font-weight: 400;
}

/* タグクラウド */
.verb-cloud-chart {
  /* margin-top: 20px; */
  padding: 5px 10px;
  text-align: center;
  line-height: 1.4;
  background-color: #f8f8f8;
  border: 1px solid #b8ceb8;
  margin: 0 10px;
}

.cloud-verb {
  display: inline-block;
  margin: 5px 8px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-weight: 900;
  cursor: default;
  transition: opacity 0.2s ease;
}

.cloud-verb:hover {
  opacity: 0.7;
}

/* タグクラウドの頻度表示 */
.cloud-verb .verb-count {
  font-size: 14px;
  font-weight: 900;
  font-family: 'M PLUS Rounded 1c', sans-serif;
  margin-left: 4px;
}

/* 動詞リスト */
.verb-list {
  font-size: 13px;
  color: #404040;
  line-height: 1.4;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid #76b676;
  margin-left: 6px;
}

.verb-list .verb-item {
  cursor: pointer;
  transition: color 0.2s ease;
}

.verb-list .verb-item:hover {
  color: #2d7a2d;
  text-decoration: underline;
}

.verb-item {
  display: inline;
  white-space: nowrap;
}

/* 用例コンテナ */
.examples-container {
  max-width: 800px;
  margin: 0px auto;
  padding: 0 12px 12px;
  display: none;
}

.examples-container[style*="display: block"] {
  display: block !important;
}

.example-group {
  margin-bottom: 35px;
  padding: 10px 20px;
  background-color: #f9f9f9;
  border: 1px solid #a8cfa8;
  border-left: 5px solid #76b676;
}

.example-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px dotted #ccc;
  margin-top: 5px;
}

.example-title-left {
  display: flex;
  align-items: center;
  gap: 1.00em;
}

#examples-title {
  font-size: 16px;
  font-weight: 400;
  color: #176117;
}

.back-to-cloud {
  padding: 4px 10px;
  font-size: 12px;
  color: #2d7a2d;
  background-color: transparent;
  border: 1px solid #2d7a2d;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.back-to-cloud:hover {
  background-color: #2d7a2d;
  color: white;
}

/* 語釈グループ */
.definition-group {
  margin-bottom: 30px;
}

.definition-header {
  font-size: 13px;
  color: #3a3a3a;
  background: #f2f8f2;
  border-left: 3px solid #76b676;
  padding: 7px 8px;
  margin: 15px 0 6px -4px;
  font-weight: bold;
}
.definition-wlsp {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: normal;
  color: #4f7f4f;
}
.definition-wlsp.none {
  color: #999;
}

/* シンプルな用例リスト */
.simple-example-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.simple-example-item {
  margin-left: 8px;
  margin-bottom: 12px;
  line-height: 1.8;
  font-size: 13px;
  color: #333;
}

.simple-example-item strong {
  font-weight: 700;
  color: #176117;
}

.simple-example-item .verb-highlight {
  border-bottom: 3px dotted #4e964e;
  padding-bottom: 2px;
}

.examples-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8e8e8;
}

.examples-count {
  font-size: 14px;
  color: #666;
}

.examples-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
}

.sort-select {
  padding: 6px 10px;
  font-size: 13px;
  font-family: "Noto Sans JP", sans-serif;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  color: #333;
  cursor: pointer;
}

/* 用例リスト */
.examples-list {
  display: grid;
  gap: 20px;
}

.example-card {
  padding: 20px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background-color: #fafafa;
  transition: box-shadow 0.2s ease;
}

.example-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verb-info {
  margin-bottom: 12px;
  font-size: 15px;
}

.verb-reading {
  font-weight: 700;
  color: #2d7a2d;
  margin-right: 8px;
}

.verb-kanji {
  color: #666;
  font-size: 14px;
}

.example-text {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
  margin-bottom: 12px;
}

.annotation-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.annotation-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  color: #2d7a2d;
  background-color: #e8f5e8;
  border: 1px solid #a8cfa8;
  border-radius: 3px;
}

/* さらに表示ボタン */
.load-more-container {
  text-align: center;
  margin-top: 30px;
}

.btn-load-more {
  padding: 10px 40px;
  font-size: 15px;
  font-weight: 500;
  font-family: "Noto Sans JP", sans-serif;
  color: #5c9f5c;
  background-color: white;
  border: 2px solid #5c9f5c;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  background-color: #f0f8f0;
}

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

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin-top: 20px;
  font-size: 16px;
  color: white;
  font-weight: 500;
}

/* 960px以上では2カラムレイアウト */
@media only screen and (min-width: 960px) {
  html, body {
    height: 100%;
    overflow: hidden;
  }
  
  #wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  
  .content h1.search-page-title {
    flex-shrink: 0;
    margin-top: 10px;
    margin-bottom: 0;
  }
  
  .search-section {
    flex-shrink: 0;
  }
  
  /* 検索フォームを1行に */
  .search-form {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
    justify-content: center;
  }
  
  .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    align-items: center;
  }
  
  .form-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .form-group:first-child {
    width: auto;
  }
  
  .form-group:nth-child(2) {
    width: auto;
  }
  
  .form-label {
    margin-bottom: 0;
    white-space: nowrap;
  }
  
  .form-select {
    width: 150px;
  }
  
  .form-group:nth-child(2) .form-select {
    width: 260px;
  }
  
  /* 「必須」を赤のアスタリスクに変更 */
  .required {
    font-size: 16px;
    color: #c53030;
    font-weight: 700;
  }
  
  .required::before {
    content: '*';
  }
  
  /* 元のテキストを非表示 */
  .form-label .required {
    font-size: 0;
  }
  
  .form-label .required::before {
    font-size: 16px;
  }
  
  .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 0;
  }
  
  /* ボタンの高さをドロップダウンと揃える */
  .btn-search,
  .btn-reset {
    margin-left: 0;
    white-space: nowrap;
    padding: 6px 15px !important;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-search i,
  .btn-reset i {
    margin-right: 5px;
  }
  
  /* 結果セクションを2カラムレイアウトに */
  .results-section {
    flex: 1;
    overflow: hidden;
    margin: 0;
    padding: 0;
    max-width: none;
    /* margin-bottom: 20px; */
  }
  
  .two-column-container {
    display: flex !important;
    gap: 30px;
    height: 100%;
    overflow: hidden;
    padding: 5px 40px 25px 40px;
  }
  
  .left-column {
    flex: 0 0 calc(50% - 15px);
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
    overflow-y: hidden;
    height: 100%;
    border: 1px solid #a8cfa8;
  }
  
  .right-column {
    flex: 0 0 calc(50% - 15px);
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
    overflow-y: hidden;
    height: 100%;
    border: 1px solid #a8cfa8;
  }
  
  /* 格パターン検索結果ページのみ高さを調整 */
  .argument-structure-result-page .left-column,
  .argument-structure-result-page .right-column {
    height: calc(100% - 25px);
  }
  
  .verb-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .verb-section h2 {
    flex-shrink: 0;
    padding: 10px 20px;
    margin: 0;
    font-size: 14px;
    color: #176117;
    padding-bottom: 10px;
    border-bottom: 1px dotted #76b676;
  }
  
  .verb-section-header {
    flex-shrink: 0;
    box-sizing: border-box;
    height: 34px;
    padding: 0 4px 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #cae4ca;
  }
  
  .verb-section-header .header-left {
    display: flex;
    align-items: center;
  }
  
  .verb-section-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-weight: 700;
  }
  
  /* 動詞リストのタブ（960px以上で表示） */
  .verb-toggle-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 8px 12px 0;
    border-bottom: 1px solid #a8cfa8;
  }
  
  /* .content button（style.css / particle.css）より詳細度を上げる */
  .verb-section .verb-toggle-buttons .toggle-btn {
    color: #2d7a2d;
    width: auto;
    font-size: 12px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    padding: 4px 14px 5px;
    background-color: #f4f9f4;
    border: 1px solid #a8cfa8;
    border-top: 3px solid #a8cfa8;
    border-bottom: none;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
    margin: 0 0 -1px;
  }
  
  .verb-section .verb-toggle-buttons .toggle-btn:hover {
    color: #2d7a2d !important;
    background-color: #e8f2e8 !important;
    border-color: #a8cfa8 !important;
  }
  
  .verb-section .verb-toggle-buttons .toggle-btn.active,
  .verb-section .verb-toggle-buttons .toggle-btn.active:hover {
    color: #176117 !important;
    font-weight: 700;
    background-color: white !important;
    border-color: #a8cfa8 !important;
    border-top-color: #5c9f5c !important;
    border-bottom: 1px solid white !important;
  }
  
  /* 960px以上では元のタブナビゲーションを非表示にする */
  .verb-section .verb-content .tab-navigation {
    display: none;
  }
  
  /* タブボタンのスタイル */
  .verb-section .tab-button {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    font-family: "Noto Sans JP", sans-serif;
    color: #666;
    background: transparent;
    border: none;
    border-bottom-width: 0px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    bottom: -2px;
  }
  
  .verb-section .tab-button:hover {
    color: white !important;
    background-color: #76b676 !important;
    border-color: #76b676 !important;
  }
  
  .verb-section .tab-button.active {
    color: #2d7a2d;
    font-weight: 700;
    border-bottom-color: transparent;
  }
  
  /* タブコンテンツ */
  .verb-section .tab-content {
    border: none;
    padding: 10px 0px 20px;
    border-top: none;
    margin-top: 0;
  }
  
  .verb-section .tab-content.active {
    display: block;
  }
  
  .verb-content {
    flex: 1;
    overflow-y: auto;
  }
  
  /* 960px以上では説明とトグルスイッチを2行で表示 */
  .verb-section .chart-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 5px 20px 10px 20px;
  }
  
  .verb-section .chart-description p {
    margin: 0;
  }
  
  /* 動詞グループチャートのpadding */
  .verb-section .verb-groups-chart {
    padding: 0 20px;
  }
  
  /* チャートフッターのpadding */
  .verb-section .chart-footer {
    padding: 10px 20px 20px 20px;
  }
  
  /* 960px以上では動詞グループを2行で表示 */
  .verb-section .verb-group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
    align-items: flex-start;
  }
  
  .verb-section .verb-group-label {
    width: 100%;
    font-size: 14px;
    margin-bottom: 0;
    flex-basis: 100%;
  }
  
  .verb-section .bar-container {
    flex: 1;
    min-width: 0;
  }
  
  .verb-section .verb-group-count {
    flex-shrink: 0;
    margin-left: 10px;
  }
  
  /* 用例セクションのヘッダー */
  .examples-section-header {
    flex-shrink: 0;
    box-sizing: border-box;
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    background-color: #cae4ca;
  }
  
  .examples-section-header h2 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 14px;
    color: #176117;
  }
  
  /* 用例セクションのスタイル */
  .examples-section {
    max-width: 800px;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  #examples-container-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px 10px 20px;
  }
  
  #example-group {
    margin-bottom: 0;
    border: none;
    border-left: none;
    padding: 0;
    background-color: transparent;
  }
  
  .example-title {
    display: none;
  }
  
  /* 検索情報を960px以上では非表示 */
  .search-info {
    display: none;
  }
  
  /* 初期プレースホルダー */
  .examples-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: #666;
  }
  
  .examples-placeholder-text {
    font-size: 16px;
    line-height: 1.8;
  }
  
  /* タブナビゲーション */
  .tab-navigation {
    margin-top: 10px;
  }
  
  .tab-content {
    margin-top: 0;
  }

  /* 格と意味の検索結果：動詞リスト 30%・用例 70%、動詞リストは折りたたみ可 */
  .collapsible-verb-layout .left-column {
    flex: 0 0 calc(30% - 9px);
    min-width: 300px;
    max-width: none;
  }

  .collapsible-verb-layout .right-column {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .collapsible-verb-layout .examples-section {
    max-width: none;
  }

  .collapsible-verb-layout .verb-collapse-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    color: #2d7a2d;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
  }

  .collapsible-verb-layout .verb-groups-chart .verb-group-label,
  .collapsible-verb-layout .verb-groups-chart .verb-group-count {
    font-size: 13px;
  }

  .collapsible-verb-layout .verb-groups-chart .verb-list {
    font-size: 12px;
  }

  .collapsible-verb-layout .verb-groups-chart .bar-container {
    height: 18px;
  }

  html.verb-list-collapsed .collapsible-verb-layout {
    gap: 0;
  }

  html.verb-list-collapsed .collapsible-verb-layout .left-column {
    flex: 0 0 36px;
    min-width: 36px;
    max-width: 36px;
    border-right: none;
  }

  html.verb-list-collapsed .collapsible-verb-layout .verb-section {
    display: none;
  }

  html.verb-list-collapsed .collapsible-verb-layout .verb-expand-rail {
    display: flex;
  }

  .collapsible-verb-layout .verb-expand-rail {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 10px 0;
    color: #176117;
    background-color: #cae4ca;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.2s ease;
  }

  .collapsible-verb-layout .verb-expand-rail:hover {
    color: #176117 !important;
    background-color: #b3d8b3 !important;
    border-color: transparent !important;
  }

  .verb-expand-rail-label {
    writing-mode: vertical-rl;
    letter-spacing: 0.15em;
  }
}

.verb-expand-rail {
  display: none;
}

/* 960px未満では従来のレイアウト */
@media only screen and (max-width: 959px) {
  .content h1.search-page-title {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .two-column-container {
    display: none !important;
  }
  
  .verb-display-container {
    display: block;
    background: white;
    border-radius: 4px;
    padding: 20px 10px;
    margin-bottom: 10px;
  }
  
  /* 960px未満では元のタブナビゲーションを表示 */
  .verb-section .verb-content .tab-navigation {
    display: flex !important;
    gap: 0;
    margin-bottom: 2px;
  }
  
  /* 960px未満ではトグルボタンを非表示 */
  .verb-toggle-buttons {
    display: none !important;
  }
  
  #examples-container {
    max-width: 800px;
    margin: 0px auto;
    padding: 0 12px 12px;
  }
  
  #examples-container .example-group {
    margin-bottom: 35px;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border: 1px solid #a8cfa8;
    border-left: 5px solid #76b676;
  }
  
  .left-column,
  .right-column {
    width: 100%;
    border: none;
  }
  
  .verb-section {
    padding: 0;
  }
  
  .verb-section h2 {
    display: none;
  }
  
  .verb-content {
    padding: 0;
  }
  
  .examples-section {
    padding: 0;
  }
  
  .examples-section h2 {
    display: none;
  }
  
  #examples-container-wrapper {
    padding: 0;
  }
  
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block;
  }
  
  .section-title-large {
    display: block !important;
  }
  
  .search-info.mobile-only {
    display: flex !important;
  }
  
  .example-title.mobile-only {
    display: flex !important;
  }
}

/* 共通スタイル：desktop-only/mobile-onlyクラス */
.desktop-only {
  display: none;
}

.mobile-only {
  display: none;
}

@media only screen and (min-width: 960px) {
  .desktop-only {
    display: block;
  }
  
  .mobile-only {
    display: none !important;
  }
}

@media only screen and (max-width: 959px) {
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .search-section {
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .verb-group-row {
    flex-wrap: wrap;
  }

  .verb-group-label {
    width: 100%;
    margin-bottom: 5px;
  }

  .verb-group-bar {
    flex: 1;
    min-width: 50px;
  }

  .examples-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .example-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .search-info {
    flex-direction: column;
    gap: 15px;
  }

  .chart-description {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* 格ラベルのスタイル（典型） */
.particle-label {
  position: relative;
  padding-bottom: 18px;
  display: inline-block;
  margin-right: 8px;
  min-width: 3.5em;
  text-align: center;
}

/* アンダーライン（ラベルの上） */
.particle-label::before {
  content: '';
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  border-bottom: 2px solid #2d7a2d;
}

/* ラベル（アンダーラインの下） */
.particle-label::after {
  content: attr(data-particle);
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: normal;
  color: #2d7a2d;
  background: white;
  padding: 0px 4px;
  white-space: nowrap;
  border: 1px solid #2d7a2d;
  border-radius: 0;
}

/* 対象格（検索中の格）のスタイル - 典型 */
.particle-label.target-particle::after {
  background: #5c9f5c;
  color: white;
  font-weight: 400;
  border-color: #5c9f5c;
}

/* 格ラベルのスタイル（周辺） */
.particle-label-optional {
  position: relative;
  padding-bottom: 18px;
  display: inline-block;
  margin-right: 8px;
  min-width: 3.5em;
  text-align: center;
}

/* アンダーライン（実線、ラベルの上） */
.particle-label-optional::before {
  content: '';
  position: absolute;
  bottom: 17px;
  left: 0;
  right: 0;
  border-bottom: 2px solid #999;
}

/* ラベル（アンダーラインの下、グレー） */
.particle-label-optional::after {
  content: attr(data-particle);
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: normal;
  color: #4d4d4d;
  background: white;
  padding: 0px 4px;
  white-space: nowrap;
  border: 1px solid #4d4d4d;
  border-radius: 0;
}

/* 対象格（検索中の格）のスタイル - 周辺 */
.particle-label-optional.target-particle::after {
  background: #5c9f5c;
  color: white;
  font-weight: 600;
  border-color: #5c9f5c;
}

/* 動詞のハイライト */
.simple-example-item .verb-highlight {
  border-bottom: 3px dotted #4e964e;
  padding-bottom: 0px;
  margin-right: 8px;
}

/* 用例フィルタートグル */
.example-filter-toggle {
    /* margin: 15px 0; */
    padding: 5px 15px 15px;
    /* background-color: #f9f9f9; */
    /* border: 1px solid #dbdbdb; */
    /* border-left: 4px solid #2d7a2d; */
    float: right;
}

@media only screen and (min-width: 960px) {
    #example-group {
        margin-bottom: 0;
        border: none;
        border-left: none;
        padding: 0;
        background-color: transparent;
        clear: both;
    }
}

@media only screen and (min-width: 960px) {
    .verb-section .chart-description {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        padding: 5px 20px 10px 20px;
    }
}

/* モバイル版の用例リスト */
#examples-list-mobile {
    clear: both;
}

/* モバイル版の戻るボタン */
.back-to-cloud-mobile {
    padding: 4px 10px;
    font-size: 12px;
    color: #2d7a2d;
    background-color: transparent;
    border: 1px solid #2d7a2d;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 400;
    flex-shrink: 0;
}

.back-to-cloud-mobile:hover {
    color: white !important;
    background-color: #76b676 !important;
    border-color: #76b676 !important;
}

/* 動詞検索タブ */
#tab-search .chart-description {
  margin-bottom: 6px;
  padding-bottom: 5px;
}
#tab-search-mobile .chart-description {
  margin-bottom: 6px;
}
.verb-search-box {
  padding: 0 20px 8px;
}
.verb-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  font-size: 14px;
  font-family: "Noto Sans JP", sans-serif;
  border: 1px solid #a8cfa8;
}
.verb-search-input:focus {
  outline: none;
  border-color: #5c9f5c;
}
.verb-search-count {
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}
.verb-search-list {
  list-style: none;
  margin: 0;
  padding: 0 20px 20px;
}
.verb-search-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 6px 4px;
  font-size: 14px;
  border-bottom: 1px dashed #e0e0e0;
  cursor: pointer;
}
.verb-search-item:hover,
.verb-search-item:focus {
  background: #f4f9f4;
  outline: none;
}
.verb-search-item.selected {
  background: #e8f2e8;
  font-weight: 700;
}
.verb-search-name {
  font-size: 13px;
  font-weight: bold;
}
.verb-search-reading {
  color: #666;
  font-size: 12px;
  font-weight: bold;
}
.verb-search-num {
  flex-shrink: 0;
  color: #888;
  font-size: 12px;
  font-weight: bold;
}
