body {
  font-family: 'Noto Sans JP', sans-serif;
}

header .navbar-brand div {
  line-height: 30px;
}

header .navbar-brand span {
  font-size: 0.75rem;
}

a {
  text-decoration: none;
  color: rgba(0, 113, 193, 1);
}

a:hover {
  color: inherit;
}

a.no-icon::after {
  content: "" !important;
}

.accordion-button a {
  font-size: 14px;
  font-weight: 500;
}

.accordion-button::after {
  display: none;
}

.accordion-button::before,
.no-section::before {
  /* シェブロン/ダッシュは実要素(.accordion-chevron-icon/.accordion-dash-icon)で
     描画するため、この疑似要素は無効化する(設定変数を使うためstyle.css側で定義) */
  display: none;
}

.accordion-button:not(.collapsed) {
  background-color: transparent;
}

.sidebar .hoverable:hover {
  cursor: pointer;
}

/* .sidebar .active / .sidebar .hoverable:hover / .hoverable-area:hover の色は
   設定変数を使うため style.css 側で定義 */

.text-writing-vertical {
  writing-mode: vertical-rl;
}

li.ls-dot {
  list-style: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-dot" viewBox="0 0 16 16"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"/></svg>');
}

li.ls-dot-sm {
  list-style: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="currentColor" class="bi bi-dot" viewBox="0 0 14 14"><path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"/></svg>');
}

li.ls-arrow-right {
  list-style: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8z"/></svg>');
}

/* li.ls-arrow-right-tmb-orange / li.sec-folder は設定変数を使うため style.css 側で定義 */

#article-events-nav .nav-tabs .nav-link.active {
  color: initial;
}

#article-events-nav .nav-link:nth-child(1) {
  background-color: rgba(209,231,221,0.3) !important;
}

#article-events-nav .nav-link:nth-child(2) {
  background-color: rgba(255,243,205,0.3) !important;
}

#article-events-nav .nav-link:nth-child(3) {
  background-color: rgba(207,226,255,0.3) !important;
}

#article-events-nav .tab-pane:nth-child(1) {
  background-color: rgba(209,231,221,0.3) !important;
}

#article-events-nav .tab-pane:nth-child(2) {
  background-color: rgba(255,243,205,0.3) !important;
}

#article-events-nav .tab-pane:nth-child(3) {
  background-color: rgba(207,226,255,0.3) !important;
}

.lum-lightbox {
  background: rgba(0,0,0,.8);
  z-index: 9000;
}

.lum-lightbox-inner img {
  max-width: 150vw;
  max-height: 88vh;
}

.lum-close-button {
  top: 72px;
}

.callout {
  border: 1px solid #e9ecef;
  border-left-width: .25rem;
  border-radius: .25rem;
}

.article-body p {
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin: 1.5em .7em;
    letter-spacing: 0.4px;
    line-height: 1.7em;
}

.article-body img {
  padding: .25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  cursor: zoom-in;
}

.article-body h2 {
  margin-top: 45px;
  border-left: 3px solid #fc851B;
  border-bottom: 1px solid #979797;
  font-size: 24px;
  padding: 0 0 4px 10px;
  margin-bottom: 14px;
  line-height: 1.4em;
  /* color: moved to style.css to follow the "テキストの色" setting */
  font-weight: 600;
}

.article-body h3 {
    margin-top: 40px;
    font-size: 20px;
    margin-bottom: 1.3em;
    margin-left: 0.3em;
    font-weight: 500;
    line-height: 1.4em;
    background-color: rgba(248,180,25,0.05) !important;
    padding: 8px 16px 6px 4px;
    border-bottom: 1px dashed #FF9F45;
}

.article-body h3::before {
    content: "■";
    color: #FF9F45;
    margin-right: .25rem;
}

.article-body h4 {
  display: inline-block;
  font-size: 17px;
  margin-top: 1em;
  border-bottom: 1px dashed #192242;
}

.article-body a {
  color: rgba(0, 113, 193, 1) !important;
  text-decoration: none;
  word-break: break-word;
}

.article-body a.node-name--H2 {
  FONT-WEIGHT: 600;
  BORDER-BOTTOM: 1px solid;
}

.article-body a::after {
  position: relative;
  top: 4px;
  right: 0;
  margin-left: 4px;
  content: "\f470";
  font-family: bootstrap-icons !important;
  font-size: larger;
}

.article-body li.toc-list-item {
  letter-spacing: .7px;
}

.article-body li.toc-list-item a::after {
  content: none;
}

div#article-body-toc-title::before {
  display: inline-block;
  margin-right: .5em;
  padding-bottom: 2px;
  vertical-align: middle;
  content: "\f474";
  font-family: bootstrap-icons !important;
}

ol.toc-list {
  counter-reset: section;
  list-style-type: none;
}

ol.toc-list li::before {
  counter-increment: section;
  content: counters(section, "-") ". ";
}

.article_alert {
  background-color: #FFF3EF;
  border: 1px solid #FFA689;
  padding: 1.2rem 2.0rem 0.4rem 2.0rem;
  border-radius: 6px;
  position: relative;
  margin: 1em 0;
}

.article-body .article_alert::before {
  content: "注意点";
  display: block;
  padding-left: 1.5em;
  margin-bottom: 10px;
  color: #FF3E00;
  font-weight: 500;
}

.article-body .article_alert::after {
  content: "\f339";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: 16px;
  position: absolute;
  top: 1.2rem;
  left: 1.9rem;
  color: #FF3E00;
}

.article_related {
  background-color: #F8F7F6;
  border-radius: 6px;
  padding: 1.2rem 2.0rem 0.4rem 2.0rem;
  position: relative;
  margin: 1em 0;
}

.article_related::before {
  content: "関連コンテンツ";
  display: block;
  padding-left: 1.7rem;
  margin-bottom: 10px;
  color: #23221F;
  font-weight: 500;
}

.article_related::after {
  content: "\f194";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: 17px;
  position: absolute;
  top: 1.2rem;
  left: 1.9rem;
  color: #23221F;
}

.article_related_en {
  background-color: #F8F7F6;
  border-radius: 6px;
  padding: 1.2rem 2.0rem 0.4rem 2.0rem;
  position: relative;
  margin: 1em 0;
}

.article_related_en::before {
  content: "Related Content";
  display: block;
  padding-left: 1.7rem;
  margin-bottom: 10px;
  color: #23221F;
  font-weight: 500;
}

.article_related_en::after {
  content: "\f194";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: 17px;
  position: absolute;
  top: 1.2rem;
  left: 1.9rem;
  color: #23221F;
}

.article_related_th {
  background-color: #F8F7F6;
  border-radius: 6px;
  padding: 1.2rem 2.0rem 0.4rem 2.0rem;
  position: relative;
  margin: 1em 0;
}

.article_related_th::before {
  content: "เนื้อหาที่เกี่ยวข้อง";
  display: block;
  padding-left: 1.7rem;
  margin-bottom: 10px;
  color: #23221F;
  font-weight: 500;
}

.article_related_th::after {
  content: "\f194";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: 17px;
  position: absolute;
  top: 1.2rem;
  left: 1.9rem;
  color: #23221F;
}

.article_alert_en {
  background-color: #FFF3EF;
  border: 1px solid #FFA689;
  padding: 1.2rem 2.0rem 0.4rem 2.0rem;
  border-radius: 6px;
  position: relative;
  margin: 1em 0;
}

.article_related p {
  margin: 0px;
  line-height: 1.5em;
}

.article_related a {
  font-size: 14px;
  font-weight: 600;
}

.article-body .article_alert_en::before {
  content: "Cautions";
  display: block;
  padding-left: 1.5em;
  margin-bottom: 10px;
  color: #FF3E00;
  font-weight: 500;
}

.article-body .article_alert_en::after {
  content: "\f339";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: 16px;
  position: absolute;
  top: 1.2rem;
  left: 1.9rem;
  color: #FF3E00;
}

.article_alert_th {
  background-color: #FFF3EF;
  border: 1px solid #FFA689;
  padding: 1.2rem 2.0rem 0.4rem 2.0rem;
  border-radius: 6px;
  position: relative;
  margin: 1em 0;
}

.article-body .article_alert_th::before {
  content: "ข้อควรระวัง";
  display: block;
  padding-left: 1.5em;
  margin-bottom: 10px;
  color: #FF3E00;
  font-weight: 500;
}

.article-body .article_alert_th::after {
  content: "\f339";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: 16px;
  position: absolute;
  top: 1.2rem;
  left: 1.9rem;
  color: #FF3E00;
}

.article_tips {
  position: relative;
  padding: 1rem 2rem 1rem 2rem;
  margin: 1em 0;
  background-color: #d1e7dd;
  border-color: #badbcc;
  border-radius: 6px;
}

.article_tips::before {
  content: "Tips";
  display: block;
  padding-left: 1.5em;
  margin-bottom: 10px;
  color:#0f5132;
  font-weight: 500;
}

.article_tips::after {
  content: "\f4c8";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: 18px;
  position: absolute;
  top: 1.2rem;
  left: 1.9rem;
  color: #0f5132;
}

.article_lead {
  padding: 4rem 3rem 2rem;
}

.article_summary {
  position: relative;
  padding: 1rem 2rem 1rem 2rem;
  margin: 1rem 0;
  background-color: #d1e7dd;
  border-color: #badbcc;
  border-radius: 6px;
}

.article_summary::before {
  display: block;
  padding-left: 1.5em;
  margin-bottom: 10px;
  content: "Summary";
  color:#614310;
  letter-spacing: 0.1rem;
  font-weight: 500;
}

.article_summary::after {
  position: absolute;
  top: .85rem;
  left: 1.9rem;
  content: "\f43e";
  font-family: bootstrap-icons !important;
  font-weight: 400;
  font-size: 20px;
  color: #614310;
}

.casestudy-body strong {
  background: linear-gradient(transparent 80%,#f8e81c);
}

.img-caption {
  margin-top: .5rem;
  margin-bottom: 2rem;
  font-size: 12px;
  color: #444;
}

.annotation {
  padding: 1rem;
  border: 1px solid #000;
  font-size: 0.9rem;
}

.article_summary table {
  font-size: 20px;
}

.article_summary table tr {
  line-height: 2;
}

.article_summary table tr th {
  max-width: 4rem;
}

.article_summary table tr th em {
  font-style: normal;
}

.article_summary table tr th em::before {
  margin-right: 0.5rem;
  font-size: 24px;
}

/*
 * Chat Common
 */
.chat-left, .chat-right {
  overflow: hidden;
  margin: 1.5rem 0;
}

.chat-left p, .chat-right p {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 12px;
}

.chat-left p::before, .chat-right p::before, .chat-left p::after, .chat-right p::after {
  display: inline-block;
  content: "";
  position: absolute;
  top: 18px;
  border: 12px solid transparent;
}

.chat-left p::before, .chat-right p::before {
  z-index: 2;
}


/*
 * Chat Left
 */
.chat-left .faceicon {
  float: left;
  margin-right: -5rem;
}

.chat-left .faceicon img {
  border: solid 2px #f0f0f0;
}

.chat-left p {
  float: left;
  margin: 0 2rem 0 5rem;
  background: #f0f0f0;
}

.chat-left p::before {
  left: -22px;
  border-right: 12px solid #f0f0f0;
}

.chat-left p::after {
  left: -24px;
  border-right: 12px solid #f0f0f0;
}

/* Chat Left Color Patterns */
.chat-left.color-2 .faceicon img {
  border: solid 2px #ddd5cc;
}

.chat-left.color-2 p {
  background:#ddd5cc;
}

.chat-left.color-2 p::before, .chat-left.color-2 p::after {
  border-right: 12px solid #ddd5cc;
}

.chat-left.color-3 .faceicon img {
  border: solid 2px #f7e4e8;
}

.chat-left.color-3 p {
  background:#f7e4e8;
}

.chat-left.color-3 p::before, .chat-left.color-3 p::after {
  border-right: 12px solid #f7e4e8;
}

/*
 * Chat Right
 */
.chat-right .faceicon {
  float: right;
  margin-left: -5rem;
}

.chat-right .faceicon img {
  border: solid 2px #f2fbfc;
}

.chat-right p {
  margin: 0 5rem 0 2rem;
  border: 1px solid #dcdcdc;
  background:#f2fbfc;
}

.chat-right p::before {
  right: -22px;
  border-left: 12px solid #f2fbfc;
}

.chat-right p::after {
  right: -24px;
  border-left: 12px solid #dcdcdc;
}

/* Chat Right Color Patterns */
.chat-right.color-2 .faceicon img {
  border: solid 2px #F2E8FC;
}

.chat-right.color-2 p {
  background:#F2E8FC;
}

.chat-right.color-2 p::before {
  border-left: 12px solid #F2E8FC;
}

.chat-right.color-3 .faceicon img {
  border: solid 2px #f4f7e4;
}

.chat-right.color-3 p {
  background:#f4f7e4;
}

.chat-right.color-3 p::before {
  border-left: 12px solid #f4f7e4;
}

.chat-right.color-4 .faceicon img {
  border: solid 2px #d8e4fc;
}

.chat-right.color-4 p {
  background:#d8e4fc;
}

.chat-right.color-4 p::before {
  border-left: 12px solid #d8e4fc;
}

.person-detail-frame {
  background-color: rgba(248,180,25,0.05);
}

.person-detail {
  overflow: hidden;
  margin: 1.5rem 2rem;
}

.person-detail .faceicon {
  float: left;
  margin-right: -5rem;
}

.person-detail dl {
  float: left;
  position: relative;
  margin: 0 2rem 0 5rem;
}

.person-detail dt {
  margin: 0 0 1rem;
}

.faceicon {
  width: 4rem;
}

.faceicon img {
  width: 100%;
  height: auto;
  border: solid 2px #f0f0f0;
  border-radius: 50%;
  cursor: unset;
  pointer-events: none;
}

.fs-7 {
  font-size: 14px !important;
}

.fw-bolder-sm {
  font-weight: 500 !important;
}

/* .text-tmb-orange は設定変数を使うため style.css 側で定義 */

.text-tmb-blue {
  color: rgba(0, 113, 193, 1) !important;
}

/* .bg-tmb-orange / .bg-tmb-orange-deep / .bg-tmb-navy は設定変数を使うため style.css 側で定義 */

.bg-light-gray {
  background-color: rgba(248,249,250,0.3) !important;
}

.bg-light-red {
  background-color: rgba(248,215,218,0.3) !important;
}

.bg-light-blue {
  background-color: rgba(207,226,255,0.3) !important;
}

.bg-light-green {
  background-color: rgba(209,231,221,0.3) !important;
}

.bg-light-yellow {
  background-color: rgba(255,243,205,0.3) !important;
}

/* .btn-tmb-orange は設定変数を使うため style.css 側で定義 */

#submit:disabled {
  background-color: #999 !important;
}

@media (min-width: 768px) {
  body {
    font-size: 14px;
  }

  header .navbar-brand p {
    font-size: 14px;
  }

  .chat-left p {
    margin: 0 10rem 0 5rem;
  }

  .chat-right p {
    margin: 0 5rem 0 10rem;
  }

  .casestudy-body img {
    max-width: 80%;
  }
}
