/* ============================================================
   最近の更新内容ツール - フロントエンドCSS v1.1.4
   全12px統一・太字なし。階層は色の濃淡のみで表現。
   ============================================================ */

.rut-wrap, .rut-wrap * { box-sizing: border-box; }

.rut-wrap {
  margin: 28px auto;
  padding: 14px 18px;
  max-width: 780px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #333;
}

/* ── 見出し ── */
.rut-title {
  font-size: 12px;
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid #eee;
  color: #222;
}

/* ============================================================
   エントリー(共通)
   ============================================================ */
.rut-entry {
  margin: 0;
  padding: 8px 0;
}
.rut-entry + .rut-entry {
  border-top: 1px dashed #eee;
}

/* ── 日付 + タグ行 ── */
.rut-entry__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 12px;
}

.rut-entry__date {
  color: #555;
  letter-spacing: 0.02em;
}

.rut-entry__tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── タグ色バリエーション ── */
.rut-entry__tag--update    { background: #f0f8f8; color: #0A9298; border: 1px solid #0A9298; }
.rut-entry__tag--renewal   { background: #fff7ed; color: #C4613F; border: 1px solid #C4613F; }
.rut-entry__tag--survey    { background: #f7f7ed; color: #b8860b; border: 1px solid #b8860b; }
.rut-entry__tag--add       { background: #f0f4fa; color: #2e6cb8; border: 1px solid #2e6cb8; }
.rut-entry__tag--fix       { background: #fce8e8; color: #c0392b; border: 1px solid #c0392b; }
.rut-entry__tag--default   { background: #f5f5f5; color: #666;    border: 1px solid #ccc;    }

/* ── タイトル(必須) 濃い色のみで識別 ── */
.rut-entry__title {
  margin: 2px 0 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #222;
}

/* ── 詳細(任意) 薄い色 ── */
.rut-entry__detail {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: #555;
}
.rut-entry__detail a {
  color: #0A9298;
  text-decoration: underline;
}
.rut-entry__detail a:hover {
  opacity: 0.7;
}

/* ============================================================
   最新1件(常時表示)
   ============================================================ */
.rut-latest .rut-entry {
  padding-top: 4px;
}

/* ============================================================
   過去履歴(<details>で折りたたみ)
   ============================================================ */
.rut-history {
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.rut-history__toggle {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #0A9298;
  padding: 4px 4px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.rut-history__toggle::-webkit-details-marker {
  display: none;
}
.rut-history__toggle:hover {
  opacity: 0.75;
}

/* ▼ アイコン */
.rut-history__toggle-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left:  4px solid transparent;
  border-right: 4px solid transparent;
  border-top:   5px solid #0A9298;
  transition: transform 0.2s;
}

.rut-history[open] .rut-history__toggle-icon {
  transform: rotate(180deg);
}

.rut-history[open] .rut-history__toggle-text::before {
  content: "閉じる ";
}
.rut-history[open] .rut-history__toggle-text {
  font-size: 0;
}
.rut-history[open] .rut-history__toggle-text::before {
  font-size: 12px;
}

.rut-history__inner {
  margin-top: 6px;
  padding-top: 4px;
}

/* ============================================================
   注釈
   ============================================================ */
.rut-note {
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #999;
  text-align: right;
}

/* ============================================================
   モバイル
   ============================================================ */
@media (max-width: 600px) {
  .rut-wrap {
    padding: 12px 12px;
  }
  .rut-entry__meta {
    flex-wrap: wrap;
    gap: 6px;
  }
}
