@charset "UTF-8";

/* ==========================================================
   Indie Dashboard PukiWiki CSS
   Brand: #0F172A / Accent: #4F46E5 / Text: #334155
   ========================================================== */

:root {
  --gi-brand: #0F172A;
  --gi-brand-dark: #020617;
  --gi-link: #4F46E5;
  --gi-link-visited: #4338CA;
  --gi-text: #334155;
  --gi-muted: #64748B;
  --gi-bg: #F8FAFC;
  --gi-surface: #FFFFFF;
  --gi-border: #CBD5E1;
  --gi-border-soft: #E2E8F0;
  --gi-pink-soft: #C7D2FE;
  --gi-pink-bg: #EEF2FF;
  --gi-table-line: #E2E8F0;
  --gi-success: #10B981;
  --gi-shadow-soft: 0 1px 3px rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--gi-bg);
}

body,
td {
  color: var(--gi-text);
  font-size: 16px;
  font-family: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

p,
li,
dl,
ol,
pre,
blockquote {
  line-height: 1.75;
}

p {
  margin: 0.5em 0;
}

a:link {
  color: var(--gi-link);
  text-decoration: underline;
  background: inherit;
}

a:visited {
  color: var(--gi-link-visited);
  text-decoration: underline;
  background: inherit;
}

a:active,
a:hover {
  color: var(--gi-brand);
  text-decoration: underline;
  background: inherit;
}

a.external-link:not(.external-link-silent)::after {
  content: url("../../image/external-link.png");
  margin: 3px;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

textarea,
input[type="text"],
input[type="search"],
select {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--gi-border);
  border-radius: 4px;
  background: #ffffff;
}

textarea:focus,
input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
  outline: 2px solid rgba(79, 70, 229, 0.18);
  border-color: var(--gi-brand);
}

input[type="submit"],
button.css3button,
#menu-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--gi-brand);
  border-radius: 6px;
  background: var(--gi-brand);
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
}

/* Header */
#menubtn_check {
  display: none;
}

body label#menubtn {
  display: none;
  position: fixed;
  right: 0;
  z-index: 20;
  margin-left: auto;
  border: 0;
  border-radius: 16px 0 0 16px;
  background: rgba(15, 23, 42, 0.92);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

div#header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: min(1000px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 8px 12px 10px;
  background: var(--gi-surface);
  border-bottom: 3px solid var(--gi-brand);
  word-break: break-word;
}

.headerpart {
  float: none;
  flex: 0 0 auto;
}

img#logo {
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  object-fit: contain;
}

div.title_site {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gi-brand);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

h1.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.title_footer {
  margin-top: 3px;
  color: var(--gi-muted);
  font-size: 11px;
  font-weight: bold;
  line-height: 1.35;
}

.search_area {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0;
  word-break: normal;
}

#head_search {
  margin: 0;
}

.search_box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.search_box input[type="text"] {
  width: min(260px, 36vw);
  min-height: 34px;
  padding: 6px 9px;
  font-size: 14px;
}

.search_box input[type="submit"] {
  min-height: 34px;
  padding: 6px 14px;
}

/* Page layout */
div#navigator {
  clear: both;
  margin: 0;
  padding: 4px 0 0;
}

div#path {
  width: min(1000px, 100%);
  /* margin: 6px auto 0; */
  padding: 4px 12px;
  color: var(--gi-muted);
  font-size: 13px;
}

div#contents {
  display: flex;
  flex-flow: row nowrap;
  gap: 10px;
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 0 8px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

div#body {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: var(--gi-surface);
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-shadow: var(--gi-shadow-soft);
}

div#bodyarea,
div#prarea {
  width: 100%;
  max-width: none;
}

div#prarea {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

div#menubar,
div#rightbar {
  flex-grow: 0;
  overflow: hidden;
  background: var(--gi-surface);
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-shadow: var(--gi-shadow-soft);
  font-size: 90%;
}

div#menubar {
  order: 1;
  min-width: 15.5em;
  max-width: 15.5em;
  margin: 0 4px 4px;
}

div#rightbar {
  order: 3;
  min-width: 15em;
  margin: 4px;
}

#rightbar .body,
#menubar .body {
  padding: 10px 12px;
}

#menubar ul,
#rightbar ul {
  margin: 0 0 0 1em;
  padding: 0 0 0 0.5em;
}

#rightbar ul li {
  line-height: 1.35;
}

div#note,
div#attach,
div#toolbar {
  clear: both;
  margin: 0;
  padding: 0;
  word-break: break-word;
}

div#toolbar {
  padding-left: 8px;
}

div#lastmodified,
div#related,
div#footer,
div.counter {
  font-size: 80%;
}

div#related {
  margin: 16px 0 0;
}

div#footer {
  margin: 16px 0 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  color: #0F172A;
  background: var(--gi-surface);
  font-weight: bold;
}

h1 {
  margin: 0 0 0.5em;
  padding: 0.35em 0.45em;
  border-bottom: 3px solid var(--gi-brand);
  font-size: 20px;
}

h2 {
  margin: 0 -0.5em 10px;
  padding: 6px 8px 6px 10px;
  border-top: 2px solid var(--gi-brand);
  border-right: 8px solid var(--gi-brand);
  border-bottom: 2px solid var(--gi-brand);
  border-left: 8px solid var(--gi-brand);
  border-radius: 0;
  box-shadow: none;
  font-size: 18px;
  line-height: 1.45;
}

h2::before,
h3::before {
  display: none !important;
  content: none !important;
}

h3 {
  margin: 12px 0 8px;
  padding: 3px 6px 3px 10px;
  border: 0;
  border-left: 8px solid var(--gi-brand);
  border-bottom: 2px solid var(--gi-brand);
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
  line-height: 1.45;
}

h4 {
  margin: 10px 0 6px;
  padding: 2px 6px 2px 10px;
  border: 0;
  border-left: 3px solid var(--gi-brand);
  border-bottom: 1px solid var(--gi-border);
  border-radius: 0;
  font-size: 15px;
  line-height: 1.45;
}

h5,
h6 {
  margin: 0 0 0.5em;
  padding: 0.15em;
  border-bottom: 1px solid var(--gi-border);
}

#menubar h1,
#rightbar h1,
#menubar h2,
#rightbar h2 {
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-bottom: 2px solid var(--gi-brand-dark);
  border-radius: 8px 8px 0 0;
  background: var(--gi-brand);
  color: #ffffff;
  font-size: 18px;
}

#menubar h3,
#rightbar h3 {
  border-left: 0;
  border-bottom: 3px solid var(--gi-brand);
  font-size: 16px;
}

#menubar h4,
#rightbar h4 {
  border-left: 0;
  border-bottom: 1px solid var(--gi-border);
  font-size: 13px;
}

/* Lists */
ul {
  margin: 0.5em 0;
  padding-inline-start: 30px;
  list-style-type: none;
}

li {
  padding-bottom: 5px;
}

.list1 li,
ul.recent_list li {
  position: relative;
  margin: 8px 0 5px -20px !important;
  padding-left: 20px;
  list-style-type: none !important;
  list-style-image: none !important;
}

.list1 li::before,
ul.recent_list li::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 2px;
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--gi-brand);
  box-shadow: 0 0 2px 2px rgba(255, 255, 255, 0.2) inset;
}

ul.list2 {
  list-style-type: circle;
}

ul.list3 {
  list-style-type: square;
}

ol.list1 {
  list-style-type: decimal;
}

ol.list2 {
  list-style-type: lower-roman;
}

ol.list3 {
  list-style-type: lower-alpha;
}

.list-indent1 {
  margin-left: 4px;
  padding-left: 4px;
}

.list-indent2 {
  margin-left: 8px;
  padding-left: 8px;
}

.list-indent3 {
  margin-left: 12px;
  padding-left: 12px;
}

.list-indent4 {
  margin-left: 16px;
  padding-left: 16px;
}

/* Table */
.style_table,
.sortable {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  word-break: break-word;
  border: 0;
  border-radius: 3px;
  border-spacing: 1px;
  background: #E2E8F0;
  text-align: left;
}

.style_th,
thead th.style_th,
tfoot th.style_th {
  padding: 5px;
  margin: 1px;
  border: 0;
  background: #F1F5F9;
  color: #334155;
  text-align: center;
  font-weight: bold;
}

.style_td,
thead td.style_td,
tfoot td.style_td,
tr:nth-child(odd) .style_td {
  padding: 5px;
  margin: 1px;
  border: 0;
  background: #ffffff;
  color: var(--gi-text);
}

tr:nth-child(even) .style_td {
  background: #F8FAFC;
}

/* Top menu / tabs */
.s_menu_three {
  display: none;
}

.new_menu_style {
  background: #6a6a6a;
  padding: 1px 1px 0 0;
}

.new_menu_style ul {
  display: table;
  width: 100%;
  margin: 0;
  padding: 0;
  border-collapse: collapse;
}

.new_menu_style li {
  display: table-cell;
  padding: 1px;
  border: none;
  border-right: 1px solid #8c8c8c;
  border-left: 1px solid #8c8c8c;
  border-bottom: 1px solid #8c8c8c;
  background: #ffffff;
  list-style: none;
}

.new_menu_style li a,
.gi-tab {
  display: block;
  background: linear-gradient(#ffffff, #e3e3e3);
  color: #334155;
  border-bottom: 2px solid var(--gi-border);
  text-align: center;
  text-decoration: none;
}

.new_menu_style .select_menu a,
.gi-tab.is-active {
  background: var(--gi-brand);
  color: #ffffff;
  border-bottom: 6px solid var(--gi-brand);
}

.head_col3 {
  background: #ffffff;
  border-bottom: solid 2px var(--gi-border);
}

.head_col3def {
  color: var(--gi-border);
}

.head_col3select {
  color: var(--gi-brand);
  border-bottom: solid 5px var(--gi-brand);
}

/* Pickup / topic */
.head-pickup,
.topichead {
  position: relative;
  width: auto;
  max-width: 100%;
  margin: 18px 0 8px;
  padding: 5px 8px 5px 35px;
  border: 0;
  border-bottom: 2px solid var(--gi-border);
  border-radius: 0;
  background: #ffffff;
  color: #0F172A;
  font-weight: bold;
  line-height: 1.4;
}

.head-pickup::before,
.topichead::before {
  content: '\f0eb';
  position: absolute;
  left: 0;
  top: 50%;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #10B981;
  color: #ffffff;
  font-family: "FontAwesome";
  font-size: 15px;
  font-weight: 900;
  line-height: 25px;
  text-align: center;
  transform: translateY(-50%);
}

.head-pickup::after,
.topichead::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #10B981;
  transform: translateY(-50%);
}

/* Block / code */
blockquote {
  margin: 5px;
  padding: 6px 8px;
  border: 1px solid #E2E8F0;
  border-left: 3px solid var(--gi-border);
  background: #F1F5F9;
}

pre {
  max-width: 100%;
  margin: 5px;
  padding: 0.5em;
  overflow: auto;
  border-top: 1px solid #E2E8F0;
  border-right: 2px solid #E2E8F0;
  border-bottom: 2px solid #E2E8F0;
  border-left: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: var(--gi-text);
  white-space: pre-wrap;
  word-wrap: break-word;
}

pre,
code,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

hr.full_hr,
hr.note_hr,
hr.short_line {
  border: 0;
  border-top: 1px solid var(--gi-border-soft);
}

hr.note_hr {
  width: 90%;
  margin: 1em auto 0;
}

/* Utility */
em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

.small {
  font-size: 80%;
}

span.noexists {
  background: #ECFDF5;
  color: inherit;
}

.super_index,
a.note_super,
span.new1 {
  color: var(--gi-brand);
  background: inherit;
  font-weight: bold;
  font-size: 60%;
  vertical-align: super;
}

span.new1,
span.new5,
span.comment_date {
  font-size: x-small;
}

span.new5 {
  color: green;
}

div.jumpmenu {
  font-size: 60%;
  text-align: right;
  user-select: none;
}

span.size1 { font-size: xx-small; }
span.size2 { font-size: x-small; }
span.size3 { font-size: small; }
span.size4 { font-size: medium; }
span.size5 { font-size: large; }
span.size6 { font-size: x-large; }
span.size7 { font-size: xx-large; }

strong.word0,
span.word0 { background: var(--gi-pink-soft); color: #000000; }
strong.word1 { background: #a0ffff; color: #000000; }
strong.word2 { background: #99ff99; color: #000000; }
strong.word3 { background: #ff9999; color: #000000; }
strong.word4 { background: #ff66ff; color: #000000; }
strong.word5 { background: #880000; color: #ffffff; }
strong.word6 { background: #00aa00; color: #ffffff; }
strong.word7 { background: #886800; color: #ffffff; }
strong.word8 { background: #004699; color: #ffffff; }
strong.word9 { background: #990099; color: #ffffff; }

.edit_form {
  clear: both;
}

.edit_form textarea,
.edit_form select {
  width: 95%;
}

._p_comment_form input[name="msg"],
._p_pcomment_form input[name="msg"] {
  max-width: 90%;
}

._p_article_form input[name="subject"] {
  max-width: 82%;
}

._p_bugtrack_form input[name="summary"],
._p_bugtrack_form textarea {
  width: 35em;
  max-width: 99.5%;
}

._p_tracker_form th {
  min-width: 5em;
}

.search-result-page-summary {
  overflow: hidden;
  color: gray;
  font-size: 70%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clear {
  clear: both;
  margin: 0;
}

.anchor_super {
  margin-left: 0.5em;
  font-size: xx-small;
  vertical-align: super;
}

.page_passage {
  font-size: small;
}

/* Calendar / plugin tables */
.style_calendar {
  margin: 3px;
  padding: 0;
  border: 0;
  background: #ccd5dd;
  color: inherit;
  text-align: center;
}

.style_td_caltop,
.style_td_today,
.style_td_sat,
.style_td_sun,
.style_td_blank,
.style_td_day,
.style_td_week {
  margin: 1px;
  padding: 5px;
  color: inherit;
  text-align: center;
}

.style_td_caltop,
.style_td_blank,
.style_td_day { background: #eef5ff; }
.style_td_today { background: #ffffdd; }
.style_td_sat { background: #dde5ff; }
.style_td_sun { background: #ffeeee; }
.style_td_week { background: #dde5ee; font-size: 80%; font-weight: bold; }

.calendar_viewer {
  margin-top: 20px;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.calendar_viewer_left { float: left; }
.calendar_viewer_right { float: right; }

/* Share buttons */
.share_area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0px 0 0px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: #F8FAFC;
  color: var(--gi-text);
  line-height: 1;
  font-size: 0;
  font-weight: bold;
}

.share_area hr {
  display: none !important;
}

.share_area::before {
  content: "シェア";
  flex: 0 0 auto;
  color: #64748B;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
}

.share_area ul,
.share_box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.share_area ul::before,
.share_area ul::after {
  content: none;
  display: none;
}

.share_area li {
  float: none;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1;
}

.share_area li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.share_area li a:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.share_area .hatena_btn a { background: var(--gi-link); }
.share_area .twitter_btn a { background: #000000; }
.share_area .facebook_btn a { background: #3b579d; }
.share_area .line_btn a { background: #00b900; }
.share_area .pocket_btn a { background: #ee4256; }
.share_area .nagesen_btn a { background: #ffffff; }
.share_area .line_btn { display: none; }

.fa-hatena::before {
  content: "B!";
  font-family: Verdana;
  font-weight: bold;
  font-style: normal;
}

.twitter_btn a {
  font-family: Arial, sans-serif;
  font-weight: bold;
}

.twitter_btn i {
  display: none;
}

.twitter_btn a::before {
  content: "𝕏";
}

img.nagesen_icon {
  width: 35px;
  height: 35px;
}

.share_area .shorturl_btn a {
  width: 60px;
  height: 28px;
  margin-left: 5px;
  padding: 2px 5px;
  border: solid 2px var(--gi-brand);
  border-radius: 3px;
  color: var(--gi-brand);
  font-size: small;
}

/* Buttons */
a.button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--gi-brand);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  color: var(--gi-brand);
  font-weight: bold;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  vertical-align: middle;
}

a.button:hover,
.button:hover {
  background: var(--gi-brand);
  color: #ffffff;
  text-decoration: none;
}

a.button:active,
.button:active {
  transform: translateY(1px);
}

/* Badges / misc components */
.gi-more-link,
a.gi-more-link {
  color: var(--gi-brand);
  text-decoration: underline;
  font-weight: bold;
}

.gi-updated-badge,
.app-updatelabel,
.livetimecnt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gi-brand);
  color: #ffffff;
  border-color: var(--gi-brand);
  font-size: 11px;
  font-weight: bold;
  line-height: 1.3;
}

.oshibtn {
  overflow: hidden;
  list-style: none;
}

.oshibtn::after {
  content: '';
  clear: both;
  display: block;
  height: 0;
  visibility: hidden;
}

.oshibtn li {
  float: left;
  display: inline-block;
  margin: 5px 46px 5px -42px;
  padding: 0.1em 0.25em;
  border-radius: 3px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.29);
  font-size: 12px;
  font-weight: bold;
  text-align: left;
  list-style: none;
}

.oshibtn li:hover { background: #E2E8F0; }
.oshibtn li a { font-weight: bold; text-decoration: none; }
.oshicol0 { border: solid 2px #cccccc; background: #F8FAFC; }
.oshicol1 { border: solid 2px #ff8888; background: #F8FAFC; }
.oshicol2 { border: solid 2px #ffcccc; background: #F8FAFC; }
.oshicol0 a { color: #cccccc; }
.oshicol1 a,
.oshicol2 a { color: #444444; }

.div-heading {
  padding: 0.1em 0.75em;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  background: #f6f6f6;
  color: #64748B;
  font-size: 0.5em;
  font-weight: bold;
}

/* Liver layout */
.liver-container {
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.liver-header-section {
  position: relative;
  overflow: hidden;
  padding: 30px;
  background: linear-gradient(135deg, #ff6b6b, #ffd93d);
}

.liver-profile-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.liver-avatar-container { position: relative; }

.liver-avatar,
.liver-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.liver-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(45deg, #cccccc, #ffffff);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.liver-avatar:hover {
  transform: scale(1.05) rotate(5deg);
}

.liver-avatar img {
  object-fit: cover;
}

.liver-status-indicator,
.liver-birthmark {
  position: absolute;
  bottom: 8px;
  width: 24px;
  height: 24px;
  border: 3px solid #ffffff;
  border-radius: 50%;
}

.liver-status-indicator {
  right: 8px;
  background: #4ade80;
}

.liver-birthmark {
  left: 8px;
  background: #fbbf24;
  font-size: large;
}

.liver-profile-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
}

.liver-profile-kana {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.9);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.liver-profile-name {
  display: inline-block;
  position: relative;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.4));
}

.liver-profile-screen_name { margin-bottom: 10px; }

.liver-profile-screen_name a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(80, 80, 80, 1);
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.liver-profile-office {
  display: inline-block;
  max-width: fit-content;
  margin-bottom: 15px;
  padding: 12px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  color: #ffffff;
  font-size: 0.95rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.liver-profile-office a { color: #ffffff; }

.liver-bio {
  position: relative;
  overflow: hidden;
  padding: 20px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.liver-bio-additional {
  margin-left: 5px;
  color: #444444;
  font-size: 0.9rem;
}

.liver-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 20px;
}

.liver-card {
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.liver-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #f0f0f0;
}

.liver-card-icon,
.liver-stream-icon,
.liver-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.liver-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
}

.liver-card-title {
  color: #334155;
  font-size: 1.3rem;
  font-weight: 600;
}

.liver-streaming-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.liver-streaming-info {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #334155;
  text-decoration: none;
}

.liver-stream-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  font-size: 20px;
}

.liver-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.liver-social-link {
  width: 32px;
  height: 32px;
  border: solid 1px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  font-size: 20px;
  text-decoration: none;
}

.liver-appicon { background: linear-gradient(135deg, #ffffff, #cccccc); }

.liver-secret-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid #444444;
  border-radius: 25px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}

.liver-secret-info.active {
  border-color: #4caf50;
  background: linear-gradient(145deg, #4caf50, #45a049);
}

.liver-secret-text {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.liver-secret-text a {
  color: #ffffff;
  text-decoration: underline;
}

.liver-secret-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
}

.liver-secret-info.active .liver-secret-indicator { background: #4caf50; }

.liver-attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.liver-attribute-tag {
  padding: 10px 15px;
  border: 2px solid transparent;
  border-radius: 25px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* Accordion */
.accordion-menu-btn {
  width: 100%;
  border: 0;
  background: #ffffff;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  outline: none;
}

.accordion-menu-btn:hover { background: #ececec; }

.accordion-arrow {
  float: right;
  margin-right: 16px;
  font-size: 1em;
}

.accordion-menu-content {
  padding-bottom: 10px;
  border: 1px solid #F1F5F9;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

@media (min-width: 900px) {
  .accordion-menu-btn,
  .accordion-menu-content {
    display: block !important;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .accordion-arrow,
  .liver-share-btn {
    display: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body {
    position: static;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    line-height: 1.55;
  }

  body,
  td {
    margin-left: 0;
    margin-right: 0;
    font-size: 15px;
  }

  body label#menubtn {
    display: flex;
    top: 10px;
    right: 0;
  }

  div#header {
    width: 100%;
    min-height: 0;
    padding: 10px 56px 10px 10px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    border-bottom-width: 3px;
  }

  img#logo {
    width: 46px;
    height: 46px;
  }

  div.title_site {
    font-size: 20px;
  }

  .title_footer {
    font-size: 10px;
    line-height: 1.25;
  }

  .search_area {
    order: 10;
    flex: 0 0 100%;
    width: 100%;
 /* margin: 6px 0 0; */
  }

  #head_search,
  .search_box {
    width: 100%;
  }

  .search_box {
    gap: 6px;
  }

  .search_box input[type="text"] {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    min-height: 18px;
    font-size: 14px;
  }

  .search_box input[type="submit"] {
    flex: 0 0 auto;
    min-height: 18px;
    padding-inline: 18px;
    font-size: 14px;
  }

  div#path {
/* margin: 6px 0 6px; */
    padding: 0 8px;
    font-size: 13px;
  }

  div#contents {
    display: block;
    width: 100%;
    padding: 0 8px;
  }

  div#body {
    width: 100%;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    background: #ffffff;
  }

  div#bodyarea {
    width: auto;
  }

  div#prarea {
    display: none;
  }

  div#body img,
  div#body iframe,
  div#body video,
  div#body table {
    max-width: 100%;
  }

  div#menubar,
  div#rightbar {
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 8px 0;
    border-radius: 8px;
    font-size: 100%;
  }

  div#menubar { order: 1; }
  div#rightbar { order: 3; }
  div.topnavi { display: none; }

  h1 { font-size: 18px; }

  h2 {
    margin-left: -0.5em;
    margin-right: -0.5em;
    padding: 6px 0 6px 10px;
    font-size: 17px;
  }

  h3 {
    margin-left: 0;
    margin-right: 0;
    font-size: 16px;
  }

  .style_table,
  .sortable {
    display: table;
    width: 100%;
    font-size: 14px;
  }

  /* SP top menu: remove old ruled-table look */
  .new_menu_style {
    margin: 12px 0 14px;
    padding: 0;
    background: transparent;
  }

  .new_menu_style ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin: 0;
    padding: 0;
    border-collapse: separate;
  }

  .new_menu_style li {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .new_menu_style li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 4px;
    border: 1px solid var(--gi-border-soft);
    border-bottom: 3px solid var(--gi-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--gi-text);
    font-size: 13px;
    font-weight: bold;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }

  .new_menu_style li a:hover,
  .new_menu_style .select_menu a {
    border-color: var(--gi-pink-soft);
    border-bottom-color: var(--gi-brand);
    background: var(--gi-pink-bg);
    color: var(--gi-brand);
  }

  .head-pickup,
  .topichead {
    margin: 0 0 12px;
    padding: 12px 12px 12px 44px;
    border: 1px solid var(--gi-pink-soft);
    border-left: 6px solid var(--gi-brand);
    border-radius: 10px;
    background: var(--gi-pink-bg);
    color: var(--gi-text);
    line-height: 1.45;
  }

  .head-pickup::before,
  .topichead::before {
    left: 12px;
    top: 50%;
    background: var(--gi-brand);
  }

  .head-pickup::after,
  .topichead::after {
    display: none;
  }

  hr,
  hr.full_hr,
  hr.note_hr,
  hr.short_line {
    width: 100%;
    margin: 10px 0;
    border: 0;
    border-top: 1px solid var(--gi-border-soft);
  }

  .share_box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-left: 0;
  }

  .share_navi {
    width: 100%;
    height: auto;
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.4;
    text-align: left;
  }

  .share_area {
    margin: 0;
  }

  .share_area li {
    float: none;
    margin: 0;
  }

  .share_area .line_btn {
    display: inline;
  }

  .s_menu_three {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    padding-right: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--gi-brand);
    font-size: 13px;
    font-weight: bold;
  }

  .s_menu_three ul {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 0;
    list-style: none;
  }

  .s_menu_three li {
    display: inline-block;
    width: 33.3333%;
    border-right: 1px solid var(--gi-pink-soft);
    border-bottom: 1px solid var(--gi-pink-soft);
    box-sizing: border-box;
    font-size: 13px;
    line-height: 34px;
    text-align: center;
    list-style: none;
  }

  .s_menu_three a {
    display: block;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
  }

  ._p_tracker_form th,
  ._p_tracker_form td,
  ._p_bugtrack_form th,
  ._p_bugtrack_form td {
    display: block;
    width: auto !important;
    margin: 0;
    text-align: left !important;
  }

  ._p_tracker_form td input[type="text"],
  ._p_tracker_form td textarea,
  ._p_bugtrack_form input[name="summary"],
  ._p_bugtrack_form textarea {
    width: 99.5%;
    box-sizing: border-box;
  }

  .liver-header-section { padding: 20px; }
  .liver-profile-info { gap: 10px; }
  .liver-profile-kana { font-size: 0.8rem; letter-spacing: 0.8px; }
  .liver-profile-name { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: 6px; }
  .liver-profile-screen_name a { padding: 6px 14px; font-size: 0.9rem; }
  .liver-profile-office { width: 100%; max-width: 98%; margin-bottom: 12px; padding: 10px 5px; font-size: 0.9rem; }
  .liver-bio { padding: 16px 20px; font-size: 1rem; line-height: 1.6; }
  .liver-content-grid { grid-template-columns: 1fr; }
  .liver-profile-header { flex-direction: column; text-align: center; }
  .liver-profile-info h1 { font-size: 1.8rem; }
  .liver-card { padding: 10px; }
}

@media print {
  a:link,
  a:visited {
    text-decoration: underline;
  }

  img#logo,
  div#navigator,
  div#menubar,
  div#rightbar,
  div#related,
  div#attach,
  div#toolbar {
    display: none;
  }
}

/* ==========================================================
   Final responsive refinements
   - PC width rhythm
   - Stable SP top menu
   - Compact SP body/header
   - Stable list markers
   ========================================================== */

@media (min-width: 768px) {
  div#header,
  div#path,
  div#contents {
    width: min(1000px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
  }

  div#contents {
    gap: 12px;
    padding: 0;
    align-items: flex-start;
  }

  div#menubar {
    margin: 0;
    min-width: 300px;
    max-width: 300px;
  }

  div#body {
    margin: 0;
    padding: 16px 18px;
    border-radius: 8px;
  }

  div#path {
    padding: 4px 0;
  }

  .head-pickup,
  .topichead {
    margin: 0 0 12px;
  }
}

/* Unified list markers: triangle */
.list1 li,
ul.recent_list li {
  position: relative;
  margin: 8px 0;
  padding-left: 14px;
  list-style: none !important;
  list-style-image: none !important;
}

.list1 li::before,
ul.recent_list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-right: 0;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--gi-brand);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  div#contents {
    padding: 0 4px;
  }

  div#body {
    padding: 8px 6px;
    border-radius: 8px;
  }

  div#path {
    padding: 0 4px;
    /* margin: 8px 0 6px; */
  }

  .head-pickup,
  .topichead {
    margin: 0 0 10px;
    padding: 2px 2px 2px 38px;
    background: #ffffff;
    border: 0;
    border-left: 5px solid var(--gi-brand);
    border-radius: 0;
    color: var(--gi-text);
    box-shadow: none;
  }

  .head-pickup::before,
  .topichead::before {
    left: 8px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    background: var(--gi-brand);
    font-size: 13px;
  }

  .head-pickup::after,
  .topichead::after {
    display: none !important;
  }

  .new_menu_style.s_menu_three {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 100%;
    margin: 10px 0 12px;
    padding: 0;
    background: transparent !important;
  }

  .new_menu_style.s_menu_three ul {
    display: contents !important;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .new_menu_style.s_menu_three li {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    list-style: none;
  }

  .new_menu_style.s_menu_three li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    width: 100%;
    padding: 5px 3px;
    border: 1px solid var(--gi-border-soft) !important;
    border-bottom: 2px solid var(--gi-border) !important;
    border-radius: 6px;
    background: #ffffff !important;
    color: var(--gi-text) !important;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: visible !important;
    box-shadow: none;
  }

  .new_menu_style.s_menu_three li a:hover,
  .new_menu_style.s_menu_three .select_menu a {
    color: var(--gi-brand) !important;
    background: var(--gi-pink-bg) !important;
    border-color: var(--gi-pink-soft) !important;
    border-bottom-color: var(--gi-brand) !important;
  }

  .share_area {
    margin: 4px 0 6px;
    padding: 3px 4px;
  }

  .share_area li a {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .share_area .line_btn {
    display: inline;
  }
}


/* ==========================================================
   Final fixes: SP list marker and pickup/topic alignment
   ========================================================== */

.list1 li,
ul.recent_list li {
  position: relative;
  margin: 8px 0;
  padding-left: 14px;
  list-style: none !important;
  list-style-image: none !important;
}

.list1 li::before,
ul.recent_list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-right: 0;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--gi-brand);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .list1,
  ul.recent_list {
    margin-left: 0;
    padding-left: 5px;
  }

  .list1 li,
  ul.recent_list li {
    margin: 6px 0 !important;
    padding-left: 14px;
  }

  .list1 li::before,
  ul.recent_list li::before {
    left: 0;
    top: 0.72em;
  }

  .head-pickup,
  .topichead {
    margin: 0 0 10px;
    padding: 8px 6px 8px 38px;
    background: #ffffff;
    border: 0;
    border-left: 5px solid var(--gi-brand);
    border-radius: 0;
    color: var(--gi-text);
    box-shadow: none;
  }

  .head-pickup::before,
  .topichead::before {
    left: 8px;
    top: 50%;
    width: 22px;
    height: 22px;
    line-height: 22px;
    background: var(--gi-brand);
    font-size: 13px;
    transform: translateY(-50%);
  }

  .head-pickup::after,
  .topichead::after {
    display: none !important;
    content: none !important;
  }
}

/* ==========================================
PC Navigation Buttons
========================================== */

.navigate_buttons {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 0 0 12px;
padding: 0;
}

.navigate_buttons .square_btn {
display: inline-flex;
align-items: center;
justify-content: center;

min-height: 34px;
padding: 0 12px;

border: 1px solid var(--gi-border-soft);
border-bottom: 3px solid var(--gi-border);

border-radius: 6px;

background: #ffffff;
color: var(--gi-text);

font-size: 13px;
font-weight: bold;
text-decoration: none;

transition:
background-color .15s ease,
border-color .15s ease,
color .15s ease,
transform .15s ease;
}

.navigate_buttons .square_btn:hover {
background: var(--gi-pink-bg);
border-color: var(--gi-pink-soft);
border-bottom-color: var(--gi-brand);
color: var(--gi-brand);
text-decoration: none;
}

.navigate_buttons .square_btn:active {
transform: translateY(1px);
}

/* 注目系 */

.navigate_buttons .btn_color_pickup {
  border-left: 4px solid var(--gi-brand);
  border-bottom: 3px solid var(--gi-border);
  background: #fff;
  color: var(--gi-text);
}

.navigate_buttons .btn_color_pickup:hover {
  background: var(--gi-pink-bg);
  border-left-color: var(--gi-brand);
  border-bottom-color: var(--gi-brand);
  color: var(--gi-brand);
}

/* ==========================================
SPでは非表示
========================================== */

@media (max-width: 767px) {
.navigate_buttons {
display: none;
}
}

/* ==========================================
Footer
========================================== */

.gi-footer {
margin-top: 30px;
border-top: 3px solid var(--gi-brand);
background: #fff;
}

.gi-footer-inner {
width: min(1000px, calc(100% - 24px));
margin: 0 auto;
padding: 24px 0;
}

.gi-footer-title {
margin-bottom: 18px;
color: var(--gi-brand);
font-size: 24px;
font-weight: bold;
}

.gi-footer-links {
display: flex;
flex-wrap: wrap;
gap: 50px;
}

.gi-footer-group {
min-width: 180px;
}

.gi-footer-heading {
margin-bottom: 8px;
padding-bottom: 4px;
border-bottom: 2px solid var(--gi-border-soft);
color: var(--gi-text);
font-size: 14px;
font-weight: bold;
}

.gi-footer-group ul {
margin: 0;
padding: 0;
list-style: none;
}

.gi-footer-group li {
margin: 6px 0;
padding: 0;
}

.gi-footer-group li::before {
display: none;
}

.gi-footer-group a {
color: var(--gi-link);
text-decoration: none;
}

.gi-footer-group a:hover {
color: var(--gi-brand);
text-decoration: underline;
}

.gi-footer-copy {
margin-top: 24px;
padding-top: 12px;
border-top: 1px solid var(--gi-border-soft);
color: var(--gi-muted);
font-size: 12px;
}

/* SP */

@media (max-width: 767px) {

.gi-footer {
margin-top: 20px;
}

.gi-footer-inner {
padding: 18px 10px;
}

.gi-footer-title {
font-size: 22px;
text-align: center;
}

.gi-footer-links {
flex-direction: column;
gap: 18px;
}

.gi-footer-group {
width: 100%;
}

.gi-footer-copy {
text-align: center;
}
}

/* スマホ専用広告 */
.ad_sp{
display: none;
}
@media (max-width: 767px) {
.ad_sp {
display: block;
}
}

/* tagbtn */
.tagbtn {
  list-style: none;
  overflow: hidden;
}
.tagbtn:after {
    content: "";
    clear: both;
    height: 0;
    display: block;
    visibility: hidden;
}

.tagbtn li {
  margin-left:-30px;
  margin-right:35px;
  margin-bottom:5px;
  margin-top:5px;
  text-align: left;
  float: left;
  list-style: none;

  display: inline-block;
  padding: 0.1em 0.5em;
  text-decoration: none;
  background: #F8FAFC;
  border-left: solid 3px #4F46E5;/*左線*/
  color: #111;/*文字色*/
  font-weight: bold;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
}
.tagbtn li:active {
  box-shadow: inset 0 0 2px rgba(128, 128, 128, 0.1);
  transform: translateY(2px);
}

.tagbtn li a {
  text-decoration: none;
  color: #111;
  font-weight: bold;
}


/* ==========================================================
   Indie Dashboard theme overrides
   - Data Driven / Professional / Independent / Growth
   - PukiWiki structure compatible
   ========================================================== */

body {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.06), transparent 32rem),
    var(--gi-bg);
  color: var(--gi-text);
}

body,
td {
  font-family: Inter, 'Noto Sans JP', 'LINE Seed JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', Meiryo, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

a:link,
a:visited {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover,
a:active {
  color: var(--gi-link);
  text-decoration-thickness: 2px;
}

div#header {
  border: 1px solid var(--gi-border-soft);
  border-top: 0;
  border-bottom: 1px solid var(--gi-border-soft);
  border-radius: 0 0 16px 16px;
  box-shadow: var(--gi-shadow-soft);
}

div.title_site {
  color: var(--gi-brand);
  letter-spacing: -0.03em;
}

.title_footer {
  color: var(--gi-muted);
  font-weight: 500;
}

input[type="submit"],
button.css3button,
#menu-btn {
  border-color: var(--gi-brand);
  background: var(--gi-brand);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

input[type="submit"]:hover,
button.css3button:hover,
#menu-btn:hover {
  background: #1E293B;
}

div#body,
div#menubar,
div#rightbar,
.liver-card,
.accordion-menu-content {
  border: 1px solid var(--gi-border-soft);
  border-radius: 16px;
  background: var(--gi-surface);
  box-shadow: var(--gi-shadow-soft);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--gi-brand);
  letter-spacing: -0.015em;
}

h1 {
  border-bottom: 1px solid var(--gi-border-soft);
  padding-left: 0;
}

h2 {
  margin: 18px 0 12px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--gi-border-soft);
  background: transparent;
  font-size: 21px;
}

h3 {
  margin: 18px 0 10px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 4px solid var(--gi-link);
  background: transparent;
  font-size: 17px;
}

h4 {
  padding: 0 0 0 10px;
  border-left: 3px solid var(--gi-border);
  border-bottom: 0;
  background: transparent;
}

#menubar h1,
#rightbar h1,
#menubar h2,
#rightbar h2 {
  background: var(--gi-brand);
  border-bottom: 0;
  color: #FFFFFF;
}

#menubar h3,
#rightbar h3 {
  border-left: 4px solid var(--gi-link);
  border-bottom: 0;
}

.style_table,
.sortable {
  border-spacing: 0;
  border: 1px solid var(--gi-border-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gi-border-soft);
}

.style_th,
thead th.style_th,
tfoot th.style_th {
  background: var(--gi-brand);
  color: #FFFFFF;
}

.style_td,
thead td.style_td,
tfoot td.style_td,
tr:nth-child(odd) .style_td { background: #FFFFFF; }
tr:nth-child(even) .style_td { background: #F8FAFC; }

.new_menu_style { background: transparent; }
.new_menu_style li { border-color: var(--gi-border-soft); }

.new_menu_style li a,
.gi-tab {
  background: #FFFFFF;
  border: 1px solid var(--gi-border-soft);
  border-bottom: 3px solid var(--gi-border-soft);
  border-radius: 10px;
  color: var(--gi-brand);
}

.new_menu_style .select_menu a,
.gi-tab.is-active,
.new_menu_style li a:hover {
  background: var(--gi-brand);
  border-color: var(--gi-brand);
  border-bottom-color: var(--gi-brand);
  color: #FFFFFF;
  text-decoration: none;
}

.head-pickup,
.topichead {
  border: 1px solid var(--gi-border-soft);
  border-left: 4px solid var(--gi-success);
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--gi-brand);
  box-shadow: var(--gi-shadow-soft);
}

.head-pickup::before,
.topichead::before,
.head-pickup::after,
.topichead::after {
  background: var(--gi-success);
  border-left-color: var(--gi-success);
}

blockquote {
  border: 1px solid var(--gi-border-soft);
  border-left: 4px solid var(--gi-link);
  border-radius: 12px;
  background: #F8FAFC;
}

pre {
  border: 1px solid var(--gi-border-soft);
  border-radius: 12px;
  background: #F8FAFC;
}

a.button,
.button,
.navigate_buttons .square_btn {
  border: 1px solid var(--gi-border-soft);
  border-bottom: 2px solid var(--gi-border);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--gi-brand);
}

a.button:hover,
.button:hover,
.navigate_buttons .square_btn:hover,
.navigate_buttons .btn_color_pickup:hover {
  background: var(--gi-brand);
  border-color: var(--gi-brand);
  color: #FFFFFF;
}

.gi-updated-badge,
.app-updatelabel,
.livetimecnt {
  background: var(--gi-success);
  border-color: var(--gi-success);
}

strong.word0,
span.word0 {
  background: #EEF2FF;
  color: var(--gi-brand);
}

.gi-footer {
  border-top: 1px solid var(--gi-border-soft);
  background: #FFFFFF;
}

.gi-footer-title {
  color: var(--gi-brand);
  letter-spacing: -0.03em;
}

.gi-footer-heading {
  border-bottom: 1px solid var(--gi-border-soft);
  color: var(--gi-brand);
}

.tagbtn li,
.oshibtn li {
  border-left-color: var(--gi-link);
  background: #FFFFFF;
  box-shadow: var(--gi-shadow-soft);
}

.tagbtn li a,
.oshibtn li a { color: var(--gi-brand); }

@media (max-width: 767px) {
  div#header { border-radius: 0; }
  div#body {
    border: 1px solid var(--gi-border-soft);
    box-shadow: none;
  }
  h2 {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    font-size: 19px;
  }
  .new_menu_style li a,
  .new_menu_style.s_menu_three li a {
    border-radius: 10px;
    background: #FFFFFF !important;
    color: var(--gi-brand) !important;
  }
  .new_menu_style li a:hover,
  .new_menu_style .select_menu a,
  .new_menu_style.s_menu_three li a:hover,
  .new_menu_style.s_menu_three .select_menu a {
    background: var(--gi-brand) !important;
    border-color: var(--gi-brand) !important;
    color: #FFFFFF !important;
  }
  .head-pickup,
  .topichead {
    border: 1px solid var(--gi-border-soft);
    border-left: 4px solid var(--gi-success);
    border-radius: 10px;
  }
}


/* ==========================================================
   Indie Dashboard contrast override v1.1
   - Reduce all-white impression
   - Add professional dashboard depth
   - Keep PukiWiki layout compatibility
   ========================================================== */

:root {
  --gi-brand: #0F172A;
  --gi-brand-dark: #020617;
  --gi-link: #4F46E5;
  --gi-link-visited: #4338CA;
  --gi-text: #0F172A;
  --gi-muted: #64748B;
  --gi-bg: #EEF2F7;
  --gi-surface: #FFFFFF;
  --gi-surface-soft: #F8FAFC;
  --gi-surface-tint: #F1F5F9;
  --gi-border: #CBD5E1;
  --gi-border-soft: #E2E8F0;
  --gi-pink-soft: #C7D2FE;
  --gi-pink-bg: #EEF2FF;
  --gi-table-line: #E2E8F0;
  --gi-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --id-accent: #4F46E5;
  --id-success: #10B981;
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 320px),
    linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 280px, #E9EEF5 100%);
}

/* Header: 白カード感を残しつつ、下に濃いブランドラインを入れる */
div#header {
  margin-top: 0;
  border: 1px solid var(--gi-border-soft);
  border-top: 0;
  border-bottom: 4px solid var(--gi-brand);
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

div.title_site {
  color: var(--gi-brand);
  letter-spacing: -0.02em;
}

.title_footer {
  color: var(--gi-muted);
}

.search_box input[type="text"] {
  border-color: var(--gi-border);
  background: #F8FAFC;
}

.search_box input[type="submit"],
input[type="submit"],
button.css3button,
#menu-btn {
  border-color: var(--gi-brand);
  background: var(--gi-brand);
  color: #FFFFFF;
}

/* Layout: 本文カードの白さを背景との差で締める */
div#contents {
  gap: 16px;
}

div#body,
div#menubar,
div#rightbar {
  border: 1px solid var(--gi-border-soft);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--gi-shadow-soft);
}

div#body {
  border-radius: 16px;
}

div#menubar,
div#rightbar {
  border-radius: 16px;
  overflow: hidden;
}

#rightbar .body,
#menubar .body {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* Sidebar headings */
#menubar h1,
#rightbar h1,
#menubar h2,
#rightbar h2 {
  border-bottom: 0;
  border-radius: 0;
  background: var(--gi-brand);
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

#menubar h3,
#rightbar h3,
h3,
h4 {
  border-left-color: var(--id-accent);
  border-bottom-color: var(--gi-border-soft);
}

/* Headings: 白地に線だけだと薄いので、淡い面を追加 */
h1 {
  border-bottom: 1px solid var(--gi-border-soft);
  background: linear-gradient(90deg, #F8FAFC, #FFFFFF);
  color: var(--gi-brand);
}

h2 {
  margin: 4px 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--gi-border-soft);
  border-left: 6px solid var(--id-accent);
  border-radius: 12px;
  background: #F8FAFC;
  color: var(--gi-brand);
}

h3 {
  margin: 18px 0 10px;
  padding: 8px 10px 8px 12px;
  border-left: 5px solid var(--id-accent);
  border-bottom: 0;
  border-radius: 8px;
  background: #F8FAFC;
  color: var(--gi-brand);
}

h4 {
  padding: 5px 8px 5px 10px;
  background: transparent;
  color: var(--gi-brand);
}

/* Links / list markers */
a:link { color: var(--gi-link); }
a:visited { color: var(--gi-link-visited); }
a:hover,
a:active { color: var(--gi-brand); }

.list1 li::before,
ul.recent_list li::before {
  border-left-color: var(--id-accent);
}

/* Top navigation: ボタン群を少し濃く、選択感を出す */
.navigate_buttons {
  gap: 8px;
  margin: 12px 0 16px;
}

.navigate_buttons .square_btn,
.new_menu_style li a,
.gi-tab {
  border: 1px solid var(--gi-border);
  border-bottom: 3px solid #CBD5E1;
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--gi-brand);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.navigate_buttons .square_btn:hover,
.new_menu_style li a:hover,
.new_menu_style .select_menu a,
.gi-tab.is-active {
  border-color: #C7D2FE;
  border-bottom-color: var(--id-accent);
  background: #EEF2FF;
  color: var(--id-accent);
}

.navigate_buttons .btn_color_pickup {
  border-left-color: var(--id-accent);
}

/* Share area: 本文先頭の白い帯を弱める */
.share_area {
  border: 1px solid var(--gi-border-soft);
  background: #F8FAFC;
}

.share_area::before {
  color: var(--gi-muted);
}

/* Pickup / topic */
.head-pickup,
.topichead {
  border: 1px solid var(--gi-border-soft);
  border-left: 6px solid var(--id-accent);
  border-radius: 12px;
  background: #F8FAFC;
  color: var(--gi-brand);
}

.head-pickup::before,
.topichead::before {
  background: var(--id-accent);
}

.head-pickup::after,
.topichead::after {
  border-left-color: var(--id-accent);
}

/* Table */
.style_table,
.sortable {
  border-spacing: 0;
  border: 1px solid var(--gi-border-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--gi-border-soft);
}

.style_th,
thead th.style_th,
tfoot th.style_th {
  background: var(--gi-brand);
  color: #FFFFFF;
}

.style_td,
thead td.style_td,
tfoot td.style_td,
tr:nth-child(odd) .style_td {
  background: #FFFFFF;
}

tr:nth-child(even) .style_td {
  background: #F8FAFC;
}

/* Code / quote */
blockquote,
pre {
  border-color: var(--gi-border-soft);
  background: #F8FAFC;
}

blockquote {
  border-left-color: var(--id-accent);
}

/* Badges / buttons */
.gi-updated-badge,
.app-updatelabel,
.livetimecnt {
  background: var(--id-success);
  border-color: var(--id-success);
}

a.button,
.button {
  border-color: var(--gi-border);
  background: #FFFFFF;
  color: var(--gi-brand);
}

a.button:hover,
.button:hover {
  border-color: var(--gi-brand);
  background: var(--gi-brand);
  color: #FFFFFF;
}

/* Footer */
.gi-footer {
  border-top: 0;
  background: var(--gi-brand);
  color: #FFFFFF;
}

.gi-footer-title,
.gi-footer-heading,
.gi-footer a,
.gi-footer-group a:hover {
  color: #FFFFFF;
}

.gi-footer-heading,
.gi-footer-copy {
  border-color: rgba(255, 255, 255, 0.16);
}

.gi-footer-copy {
  color: #CBD5E1;
}

/* Mobile refinements */
@media (max-width: 767px) {
  body {
    background: #F1F5F9;
  }

  div#header {
    border-radius: 0 0 14px 14px;
  }

  div#body {
    border: 1px solid var(--gi-border-soft);
    border-radius: 14px;
    box-shadow: none;
  }

  .new_menu_style.s_menu_three li a,
  .new_menu_style li a {
    border-radius: 8px;
    background: #FFFFFF !important;
    color: var(--gi-brand) !important;
  }

  .new_menu_style.s_menu_three li a:hover,
  .new_menu_style.s_menu_three .select_menu a,
  .new_menu_style .select_menu a {
    background: #EEF2FF !important;
    color: var(--id-accent) !important;
  }

  .head-pickup,
  .topichead {
    background: #F8FAFC;
    border: 1px solid var(--gi-border-soft);
    border-left: 5px solid var(--id-accent);
    border-radius: 10px;
  }
}

/* ==========================================================
   Indie Dashboard recommended polish v1.2
   - Clean SaaS dashboard look
   - No AI-ish heading capsules
   - Card depth + round dot list markers
   - PukiWiki structure compatible
   ========================================================== */

:root {
  --gi-brand: #0F172A;
  --gi-brand-dark: #020617;
  --gi-link: #4F46E5;
  --gi-link-visited: #4338CA;
  --gi-text: #334155;
  --gi-muted: #64748B;
  --gi-bg: #EEF2F7;
  --gi-surface: #FFFFFF;
  --gi-surface-soft: #F8FAFC;
  --gi-surface-tint: #F1F5F9;
  --gi-border: #CBD5E1;
  --gi-border-soft: #E2E8F0;
  --gi-indigo-soft: #EEF2FF;
  --gi-indigo-border: #C7D2FE;
  --gi-success: #10B981;
  --gi-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.08);
  --gi-shadow-control: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.06);
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.08), transparent 340px),
    linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 280px, #E9EEF5 100%);
  color: var(--gi-text);
}

body,
td {
  font-family: Inter, 'Noto Sans JP', 'LINE Seed JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', Meiryo, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

a:link,
a:visited {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover,
a:active {
  color: var(--gi-brand);
  text-decoration-thickness: 2px;
}

/* Header */
div#header {
  border: 1px solid var(--gi-border-soft);
  border-top: 0;
  border-bottom: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--gi-shadow-card);
}

div.title_site {
  color: var(--gi-brand);
  letter-spacing: -0.03em;
}

.title_footer {
  color: var(--gi-muted);
  font-weight: 500;
}

.search_box input[type="text"] {
  min-height: 38px;
  border-color: var(--gi-border);
  border-radius: 10px;
  background: var(--gi-surface-soft);
}

.search_box input[type="submit"],
input[type="submit"],
button.css3button,
#menu-btn {
  min-height: 38px;
  border-color: var(--gi-brand);
  border-radius: 10px;
  background: var(--gi-brand);
  color: #FFFFFF;
  box-shadow: var(--gi-shadow-control);
}

.search_box input[type="submit"]:hover,
input[type="submit"]:hover,
button.css3button:hover,
#menu-btn:hover {
  background: #1E293B;
}

/* Layout cards */
div#contents {
  gap: 18px;
}

div#body,
div#menubar,
div#rightbar {
  border: 1px solid var(--gi-border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--gi-shadow-card);
}

div#body {
  padding: 22px 24px;
}

#rightbar .body,
#menubar .body {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

/* Sidebar */
#menubar h1,
#rightbar h1,
#menubar h2,
#rightbar h2 {
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: var(--gi-brand);
  color: #FFFFFF;
  font-size: 18px;
  letter-spacing: 0.01em;
}

#menubar h3,
#rightbar h3 {
  margin: 18px 0 10px;
  padding: 0 0 0 12px;
  border: 0;
  border-left: 4px solid var(--gi-link);
  background: transparent;
  color: var(--gi-brand);
  font-size: 15px;
}

#menubar h4,
#rightbar h4 {
  border: 0;
  color: var(--gi-muted);
}

/* Headings: remove capsule/AI-ish shape */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--gi-brand);
  letter-spacing: -0.015em;
  background: transparent;
}

h1 {
  margin: 0 0 20px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--gi-border-soft);
  font-size: 24px;
}

h2 {
  margin: 34px 0 18px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--gi-border-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gi-brand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
}

h3 {
  position: relative;
  margin: 28px 0 14px;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 4px solid var(--gi-link);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gi-brand);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
}

h4 {
  margin: 20px 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gi-brand);
  font-size: 16px;
  font-weight: 700;
}

h5,
h6 {
  border-bottom: 1px solid var(--gi-border-soft);
}

h2::before,
h3::before,
h4::before {
  display: none !important;
  content: none !important;
}

/* Lists: replace old triangle with small dashboard dot */
ul {
  padding-inline-start: 24px;
}

.list1,
ul.recent_list {
  margin-left: 0;
  padding-left: 4px;
}

.list1 li,
ul.recent_list li {
  position: relative;
  margin: 9px 0 !important;
  padding-left: 22px;
  list-style: none !important;
  list-style-image: none !important;
}

.list1 li::before,
ul.recent_list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.88em;
  width: 8px;
  height: 8px;
  border: 2px solid var(--gi-link);
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
  transform: translateY(-50%);
}

#menubar .list1 li::before,
#rightbar .list1 li::before,
#menubar ul.recent_list li::before,
#rightbar ul.recent_list li::before {
  width: 7px;
  height: 7px;
  border-width: 2px;
  box-shadow: none;
}

/* Navigation buttons */
.navigate_buttons {
  gap: 8px;
  margin: 12px 0 18px;
}

.navigate_buttons .square_btn,
.new_menu_style li a,
.gi-tab {
  border: 1px solid var(--gi-border-soft);
  border-bottom: 2px solid var(--gi-border);
  border-radius: 11px;
  background: #FFFFFF;
  color: var(--gi-brand);
  box-shadow: var(--gi-shadow-control);
  text-decoration: none;
}

.navigate_buttons .square_btn:hover,
.navigate_buttons .btn_color_pickup:hover,
.new_menu_style li a:hover,
.new_menu_style .select_menu a,
.gi-tab.is-active {
  border-color: var(--gi-indigo-border);
  border-bottom-color: var(--gi-link);
  background: var(--gi-indigo-soft);
  color: var(--gi-link);
  text-decoration: none;
}

.navigate_buttons .btn_color_pickup {
  border-left: 4px solid var(--gi-link);
}

/* Share / utility panels */
.share_area {
  border: 1px solid var(--gi-border-soft);
  border-radius: 12px;
  background: var(--gi-surface-soft);
}

.share_area::before {
  color: var(--gi-muted);
}

/* Pickup / topic */
.head-pickup,
.topichead {
  border: 1px solid var(--gi-border-soft);
  border-left: 4px solid var(--gi-success);
  border-radius: 14px;
  background: var(--gi-surface-soft);
  color: var(--gi-brand);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.head-pickup::before,
.topichead::before {
  background: var(--gi-success);
}

.head-pickup::after,
.topichead::after {
  display: none !important;
  content: none !important;
}

/* Tables */
.style_table,
.sortable {
  border: 1px solid var(--gi-border-soft);
  border-radius: 14px;
  border-spacing: 0;
  overflow: hidden;
  background: var(--gi-border-soft);
}

.style_th,
thead th.style_th,
tfoot th.style_th {
  background: var(--gi-brand);
  color: #FFFFFF;
}

.style_td,
thead td.style_td,
tfoot td.style_td,
tr:nth-child(odd) .style_td {
  background: #FFFFFF;
}

tr:nth-child(even) .style_td {
  background: var(--gi-surface-soft);
}

/* Code / quotes */
blockquote,
pre {
  border: 1px solid var(--gi-border-soft);
  border-radius: 14px;
  background: var(--gi-surface-soft);
}

blockquote {
  border-left: 4px solid var(--gi-link);
}

/* Buttons / badges */
a.button,
.button {
  border: 1px solid var(--gi-border-soft);
  border-bottom: 2px solid var(--gi-border);
  border-radius: 11px;
  background: #FFFFFF;
  color: var(--gi-brand);
  box-shadow: var(--gi-shadow-control);
}

a.button:hover,
.button:hover {
  border-color: var(--gi-brand);
  background: var(--gi-brand);
  color: #FFFFFF;
}

.gi-updated-badge,
.app-updatelabel,
.livetimecnt {
  background: var(--gi-success);
  border-color: var(--gi-success);
}

/* Footer */
.gi-footer {
  border-top: 0;
  background: var(--gi-brand);
  color: #FFFFFF;
}

.gi-footer-title,
.gi-footer-heading,
.gi-footer a,
.gi-footer-group a:hover {
  color: #FFFFFF;
}

.gi-footer-heading,
.gi-footer-copy {
  border-color: rgba(255, 255, 255, 0.16);
}

.gi-footer-copy {
  color: #CBD5E1;
}

/* Mobile */
@media (max-width: 767px) {
  body {
    background: #F1F5F9;
  }

  div#header {
    border-radius: 0 0 14px 14px;
  }

  div#contents {
    padding: 0 8px;
  }

  div#body {
    padding: 14px 12px;
    border: 1px solid var(--gi-border-soft);
    border-radius: 14px;
    box-shadow: none;
  }

  h1 {
    font-size: 21px;
  }

  h2 {
    margin: 28px 0 16px;
    padding: 0 0 10px;
    font-size: 21px;
  }

  h3 {
    margin: 22px 0 12px;
    padding-left: 12px;
    font-size: 18px;
  }

  .list1,
  ul.recent_list {
    padding-left: 2px;
  }

  .list1 li,
  ul.recent_list li {
    margin: 8px 0 !important;
    padding-left: 20px;
  }

  .new_menu_style.s_menu_three li a,
  .new_menu_style li a {
    border-radius: 9px;
    background: #FFFFFF !important;
    color: var(--gi-brand) !important;
  }

  .new_menu_style.s_menu_three li a:hover,
  .new_menu_style.s_menu_three .select_menu a,
  .new_menu_style li a:hover,
  .new_menu_style .select_menu a {
    background: var(--gi-indigo-soft) !important;
    border-color: var(--gi-indigo-border) !important;
    color: var(--gi-link) !important;
  }

  .head-pickup,
  .topichead {
    border: 1px solid var(--gi-border-soft);
    border-left: 4px solid var(--gi-success);
    border-radius: 12px;
    background: var(--gi-surface-soft);
  }
}
/* ==========================================================
   Top Navigation Refinement
   - SaaS Dashboard Style
   ========================================================== */

/* PCナビ */

.navigate_buttons {
  gap: 8px;
}

.navigate_buttons .square_btn,
.new_menu_style li a,
.gi-tab {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0 16px;

  border: 1px solid #E2E8F0;
  border-radius: 8px;

  background: #FFFFFF;

  color: #0F172A;

  box-shadow: none;

  font-size: 14px;
  font-weight: 600;

  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease;
}

/* 左の青線を削除 */

.navigate_buttons .btn_color_pickup {
  border-left: 0 !important;
}

/* hover */

.navigate_buttons .square_btn:hover,
.new_menu_style li a:hover,
.gi-tab:hover {

  background: #F8FAFC;

  border-color: #CBD5E1;

  color: #0F172A;

  text-decoration: none;
}

/* active */

.new_menu_style .select_menu a,
.gi-tab.is-active {

  background: #EEF2FF;

  border-color: #C7D2FE;

  color: #4F46E5;

  box-shadow: none;
}

/* ボタン押下感を消す */

.navigate_buttons .square_btn:active {
  transform: none;
}

/* SPは現状維持 */

@media (max-width: 767px) {

  .navigate_buttons .square_btn,
  .new_menu_style li a,
  .gi-tab {
    border-radius: 8px;
  }

}


/* ==========================================================
   Final header alignment fix
   - Keep logo and site title side-by-side
   - Override old PukiWiki headerpart float/width/clear styles
   ========================================================== */

div#header {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 14px;
}

div#header .headerpart {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  clear: none !important;
  float: none !important;
  margin: 0;
}

div#header .headerpart:nth-child(2) {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

div#header .headerpart:first-child a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

img#logo {
  display: block;
  width: 56px;
  height: 56px;
}

div.title_site {
  margin: 0 0 2px;
  line-height: 1.05;
}

.title_footer {
  margin-top: 0;
  line-height: 1.3;
}

/* Keep search area on the right on PC */
.search_area {
  margin-left: auto;
}

/* Mobile: keep brand block horizontal, move search below */
@media (max-width: 767px) {
  div#header {
    flex-wrap: wrap !important;
    gap: 8px 10px;
    padding-right: 56px;
  }

  img#logo {
    width: 46px;
    height: 46px;
  }

  div#header .headerpart:nth-child(2) {
    flex: 1 1 auto;
    min-width: 0;
  }

  .search_area {
    order: 10;
    flex: 0 0 100%;
    width: 100%;
    margin-left: 0;
  }
}


/* ==========================================================
   SP Navigation Restore
   - Keep smartphone top navigation visible
   - Hide only PC navigation buttons on SP
   ========================================================== */

@media (max-width: 767px) {
  div.topnavi {
    display: block !important;
  }

  .s_menu_three,
  .new_menu_style.s_menu_three {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    width: 100%;
    margin: 10px 0 12px;
    padding: 0;
    background: transparent !important;
    overflow: visible;
  }

  .s_menu_three ul,
  .new_menu_style.s_menu_three ul {
    display: contents !important;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .s_menu_three li,
  .new_menu_style.s_menu_three li {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    list-style: none !important;
  }

  .s_menu_three li a,
  .new_menu_style.s_menu_three li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 35px;
    width: 100%;
    padding: 5px 3px;
    border: 1px solid var(--gi-border-soft) !important;
    border-bottom: 2px solid var(--gi-border) !important;
    border-radius: 8px;
    background: #FFFFFF !important;
    color: var(--gi-brand) !important;
    font-size: 12px;
    font-weight: bold;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .s_menu_three li a:hover,
  .s_menu_three .select_menu a,
  .new_menu_style.s_menu_three li a:hover,
  .new_menu_style.s_menu_three .select_menu a {
    background: var(--gi-indigo-soft, #EEF2FF) !important;
    border-color: var(--gi-indigo-border, #C7D2FE) !important;
    color: var(--gi-link, #4F46E5) !important;
  }

  .navigate_buttons {
    display: none !important;
  }
}


/* ==========================================================
   Final SP Header Layout Fix
   - Logo + site title stay on the same row
   - Search box moves to the second row
   - Menu button remains fixed on the right
   ========================================================== */

@media (max-width: 767px) {
  div#header {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    padding: 10px 56px 10px 10px !important;
  }

  div#header > .headerpart {
    width: auto !important;
    max-width: none !important;
    clear: none !important;
    float: none !important;
    margin: 0 !important;
  }

  div#header > .headerpart:first-child {
    display: flex !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    max-width: 46px !important;
    order: 1 !important;
  }

  div#header > .headerpart:first-child a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
  }

  div#header > .headerpart:nth-child(2) {
    display: flex !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 56px) !important;
    flex-direction: column !important;
    justify-content: center !important;
    order: 2 !important;
  }

  img#logo {
    display: block !important;
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
  }

  div.title_site {
    margin: 0 0 2px !important;
    font-size: 20px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  .title_footer {
    margin-top: 0 !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .search_area {
    order: 10 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  div#header {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    grid-template-areas:
      "logo title"
      "search search" !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding: 10px 56px 10px 10px !important;
  }

  div#header .headerpart:first-of-type {
    grid-area: logo !important;
    width: 46px !important;
    max-width: 46px !important;
    float: none !important;
    clear: none !important;
  }

  div#header .headerpart:nth-of-type(2) {
    grid-area: title !important;
    width: auto !important;
    min-width: 0 !important;
    float: none !important;
    clear: none !important;
  }

  div#header .search_area {
    grid-area: search !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  img#logo {
    display: block !important;
    width: 46px !important;
    height: 46px !important;
  }

  div.title_site {
    white-space: nowrap !important;
    line-height: 1.05 !important;
  }

  .title_footer {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}