body {
  overflow: hidden;
  background: #fff;
}
:root {
  --primary-color: #39B54A;
}

h1 {
  position: relative;
  font-size: 34px;
  font-weight: normal;
  line-height: 34px;
  color: #333333;
  padding: 15px 0 10px;
  margin-bottom: 30px;
  text-align: left;
}

@media only screen and (max-width: 767px) {
  h1 {
    font-size: 130%;
    color: #444444;
    line-height: 1.5;
    text-align: center;
    padding: 5% 2% 2% 2%;
  }
}

p {
  word-break: break-all;
  font-size: 16px;
  text-align: left;
  line-height: 29px;
}

.stMain {
  overflow: visible;
}

.stAppHeader, .stDecoration, .stAppToolbar {
  display: none;
}

.stMainBlockContainer {
  padding: 0 0 20px;
  max-width: 970px;

  p, textarea, input, select, button {
    font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック体", "Yu Gothic", YuGothic, "sans-serif";
  }
}

.stVerticalBlock {
  gap: 0;
}

.stElementContainer:has(> iframe[height="0"]) {
  display: none;
}

.stTooltipContent {
  height: 1.8em;
}
.stTooltipContent p {
  line-height: 1em;
}

div[data-testid="stSpinner"],
.stSpinner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #39B54A !important;
  --primary-color: #39B54A;
}
div[data-testid="stSpinner"] > div,
.stSpinner > div {
  align-items: center;
  justify-content: center;
}
div[data-testid="stSpinner"] > div:first-child,
.stSpinner > div:first-child,
div[data-testid="stSpinner"] [data-baseweb="spinner"],
.stSpinner [data-baseweb="spinner"] {
  color: #39B54A !important;
  border-color: #39B54A !important;
  border-top-color: #39B54A !important;
  border-right-color: #39B54A !important;
  border-bottom-color: #39B54A !important;
  border-left-color: #39B54A !important;
}
div[data-testid="stSpinner"] > div:first-child *,
.stSpinner > div:first-child * {
  color: #39B54A !important;
  stroke: #39B54A !important;
}
div[data-testid="stSpinner"] *,
.stSpinner * {
  text-align: center;
}
div[data-testid="stSpinner"] p,
div[data-testid="stSpinner"] span,
.stSpinner p,
.stSpinner span {
  line-height: 22px;
  text-align: center;
  color: #333333 !important;
}
div[data-testid="stSpinner"] > div:last-child,
div[data-testid="stSpinner"] .stSpinnerText,
div[data-testid="stSpinner"] [data-testid="stSpinnerText"] {
  color: #333333 !important;
}
div[data-baseweb="spinner"],
div[data-baseweb="spinner"] svg {
  color: #39B54A !important;
}
div[data-baseweb="spinner"] svg *,
div[data-baseweb="spinner"] circle,
div[data-baseweb="spinner"] path {
  stroke: #39B54A !important;
}
div[data-testid="stSpinner"] svg,
.stSpinner svg {
  color: #39B54A !important;
}
div[data-testid="stSpinner"] svg circle,
div[data-testid="stSpinner"] svg path,
.stSpinner svg circle,
.stSpinner svg path {
  stroke: #39B54A !important;
}
div[data-testid="stSpinner"] svg *,
.stSpinner svg * {
  stroke: #39B54A !important;
  fill: none !important;
}
div[data-testid="stSpinner"] [role="progressbar"],
.stSpinner [role="progressbar"],
div[data-testid="stSpinner"] > div,
.stSpinner > div {
  border-color: #39B54A !important;
  border-top-color: #39B54A !important;
}

div[data-testid="stMarkdownContainer"]:has(.custom-progress-bar-container),
div.stMarkdown:has(.custom-progress-bar-container),
.stElementContainer:has(.custom-progress-bar-container) {
  overflow: visible;
  padding-bottom: 6px;
}

.stElementContainer:has(> .stProgress) {
  margin-bottom: 6px;
}
.stElementContainer:has(> .stButton) {
  display: flex;
  justify-content: center;
  width: 100%;
}
.stElementContainer .stProgress div[aria-valuenow="100"] {
  visibility: hidden;
}

.not_embeded .stMain {
  overflow-y: auto;
}
.not_embeded .stMainBlockContainer {
  padding: 0 0 20px;
  margin: 0 auto;
}

.header {
  height: 120px;
  padding-top: 10px;
}

.topicPath {
  width: 100%;
}
.topicPath ol {
  width: 100%;
}
.topicPath ol li {
  position: relative;
}
.topicPath ol li a {
  background: none;
}
.topicPath ol li:has(> a)::after {
  content: '>';
  font-size: 14px;
  position: absolute;
  top: -1px;
  right: 10px;
}

.title:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 96px;
  height: 1px;
  background: #39B54A;
}
.title:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: calc(100% - 96px);
  height: 1px;
  background: #C8D1D7;
}

.description {
  line-height: 29px;
}

.note {
  margin: 10px 0 0;
  text-align: left;
}
.note ul li {
  margin-bottom: 8px;
  list-style: none;
  font-size: 13px;
  line-height: 20px;
  color: #666;
}
.note ul li a {
  text-decoration: underline;
}

/* テキストエリアのラベルスタイルをdata-testidで指定（推奨） */
div[data-testid="stTextArea"] label[data-testid="stWidgetLabel"] p {
  color: #39B54A;
  font-size: 20px;
  font-weight: bold;
  margin: 30px 0 10px;
}
/* テキストエリアの入力フィールドスタイル */
div[data-testid="stTextArea"] textarea {
  min-height: 10rem;
  font-size: 16px;
  line-height: 29px;
}
div[data-testid="stTextArea"] textarea::placeholder {
  color: #757575;
}

.stButton {
  margin: 28px auto;
  display: flex;
  justify-content: center;
  width: fit-content;
}

.stButton button {
  position: relative;
  display: inline-block;
  font-size: 18px;
  border-radius: 4px;
  line-height: 18px;
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
  background: #39B54A;
  border: 1px solid #39B54A;
  padding: 0;

  p {
    color: #fff;
  }
}

.stButton button:hover,
.stButton button:active,
.stButton button:focus {
  p {
    background: rgba(0, 0, 0, 0.2);
  }
}
.stButton button:focus:not(:active) {
  background: #fff;
  color: #39B54A;
}
.stButton button p {
  display: block;
  text-align: center;
  padding: 10px 50px 6px;
}

.stButton button:disabled,
.stButton button:disabled:hover {
  background: #cccccc !important; /* 背景を明確なグレーに */
  color: #888888 !important;      /* 文字色を薄いグレーに */
  border-color: #cccccc !important;
  cursor: not-allowed;  /* カーソルを「禁止」マークに変更 */
}

.stButton button:disabled p,
.stButton button:disabled:hover p {
  background: transparent !important; /* ホバー時の黒い背景エフェクトを無効化 */
  color: #888888 !important;
}

.stDataFrame {
  width: 100%;
}

.stMarkdown {
  overflow: auto;
}
.stMarkdown table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 0 0 20px;
  border-left: 1px solid #ecedee;
  border-top: 1px solid #ecedee;
  border-radius: 6px;
}
div[data-testid="stHeader"],
div[data-testid="stSubheader"] {
  display: flex;
  justify-content: center;
  width: 100%;
}
div[data-testid="stHeader"],
div[data-testid="stSubheader"] {
  text-align: center;
}
.stMainBlockContainer h2,
.stMainBlockContainer h3 {
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
  width: 100%;
}
.stElementContainer:has(> div[data-testid="stHeader"]),
.stElementContainer:has(> div[data-testid="stSubheader"]) {
  display: flex;
  justify-content: center;
  width: 100%;
}
.stElementContainer:has(> div[data-testid="stHeader"]) > div,
.stElementContainer:has(> div[data-testid="stSubheader"]) > div {
  width: 100%;
}
div[data-testid="stHeader"] h2,
div[data-testid="stSubheader"] h3 {
  width: 100%;
  text-align: center;
}
div[data-testid="stHeader"] > div,
div[data-testid="stSubheader"] > div {
  width: 100%;
  display: flex;
  justify-content: center;
}
div[data-testid="stHeader"] h1,
div[data-testid="stHeader"] h2,
div[data-testid="stHeader"] h3,
div[data-testid="stSubheader"] h1,
div[data-testid="stSubheader"] h2,
div[data-testid="stSubheader"] h3 {
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
  width: 100%;
}
.stMarkdown table tr {
  border: none;
}
.stMarkdown table th,
.stMarkdown table td {
  border-left: none;
  border-right: 1px solid #ecedee;
  border-top: none;
  border-bottom: 1px solid #ecedee;
  padding: 8px 9px 7px;
  vertical-align: middle;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.stMarkdown table th {
  color: #81828a;
  font-size: 14px;
  font-weight: normal;
  background: #f8f9fb;
  text-wrap-mode: nowrap;
}

@media only screen and (max-width: 767px) {
  .stMarkdown {
    overflow: auto;
  }
  .stMarkdown table thead {
    display: none;
  }
  .stMarkdown table tr {
    display: flex;
    flex-wrap: wrap;
  }
  .stMarkdown table tr td {
    width: 100%;
  }
  .stMarkdown table tr td:first-child {
    background: #f8f9fb;
  }
}
