/* Wysiwyg editor
 **************************************** */
.address-box {
  text-align: right;
}

.address-box p {
  display: inline-block;
  text-align: left;
}

.mce-content-body {
  position: relative;
  word-break: break-word;
  text-align: justify;
  text-justify: inter-ideograph;
  -ms-text-justify: inter-ideograph;
}

.mce-content-body ol {
  list-style: decimal;
}

.mce-content-body ul:not(:first-child),
.mce-content-body ol:not(:first-child) {
  margin-top: 1em;
}

.mce-content-body ul:not(:last-child),
.mce-content-body ol:not(:last-child) {
  margin-bottom: 1em;
}

.mce-content-body ul li,
.mce-content-body ol li {
  position: relative;
  margin: 0;
  border-bottom: none;
  padding: 0;
  margin-left: 2em;
  padding-top: .5em;
}

.mce-content-body ul li {
  list-style: none;
}

.mce-content-body ul li::before {
  content: '';
  position: absolute;
  top: 1.2em;
  left: -1.3em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--ts-accent);
  background-color: var(--ts-accent);
}

.mce-content-body table ul li::before {
  top: 1em;
}

.mce-content-body ul[style="list-style-type: circle;"] li::before {
  background-color: #fff;
}

.mce-content-body ul:not([style="list-style-type: square;"]) li::before {
  border-radius: 50%;
}

.mce-content-body img {
  max-width: 100%;
  height: auto;
}

.page-sustainability .mce-content-body table img {
  max-width: none;
}

.mce-content-body p:first-child img {
  margin-top: 0;
}

.mce-content-body p:last-child img {
  margin-bottom: 0;
}

.mce-content-body hr {
  margin-top: 4rem;
  margin-bottom: 4rem;
  border-color: #d3d3d3;
}

.box {
  padding: 2em 2.6em;
  background-color: #fff;
  border: 1px solid #000;
}

.box:not(:first-child) {
  margin-top: 2em;
}

.box:not(:last-child) {
  margin-bottom: 2em;
}

.box-wh {
  background-color: #fff;
  border: 0;
}

.box_line:not(:first-child) {
  margin-top: 4em;
}

.box_line:not(:last-child) {
  margin-bottom: 4em;
}

.box_line {
  position: relative;
  padding: 4.06rem 1rem;
  border-top: 1px solid #272931;
  border-bottom: 1px solid #272931;
}

.box_line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 180px;
  height: 4px;
  background-color: #272931;
}

.box_line--ttl {
  margin-bottom: 2em !important;
  font-size: 1.5rem;
  /* 24px */
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .1em;
}

.box_line--txt {
  line-height: 2.22;
  letter-spacing: .05em;
}

.mce-content-body .alignleft {
  float: left;
  clear: left;
  margin-right: 1em;
  margin-bottom: 1em;
}

.mce-content-body .alignright {
  float: right;
  clear: right;
  margin-left: 1em;
  margin-bottom: 1em;
}

.mce-content-body .aligncenter {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}

.mce-content-body img.aligncenter {
  display: block;
}

.mce-content-body .alignleft:last-child,
.mce-content-body .alignright:last-child,
.mce-content-body .aligncenter:last-child {
  margin-bottom: 0;
}

.mce-content-body p {
  letter-spacing: .1em;
}

.mce-content-body p:not(:last-child) {
  margin-bottom: 1em;
}

.mce-content-body strong {
  font-weight: bold;
}

.mce-content-body blockquote {
  margin: 1em 0;
  padding: 15px 40px;
  border-radius: 3px;
  position: relative;
  display: inline-block;
  font-style: oblique;
  color: #666;
  background-color: #f8f8f8;
}

.mce-content-body blockquote p {
  margin-bottom: 0;
}

.mce-content-body blockquote::before,
.mce-content-body blockquote::after {
  content: '';
  position: absolute;
  width: 1em;
  height: 1em;
  opacity: .25;
}

.mce-content-body blockquote::before {
  background-image: url('../img/top/icon-quote_left.svg');
  top: 13px;
  left: 10px;
}

.mce-content-body blockquote::after {
  background-image: url('../img/top/icon-quote_right.svg');
  bottom: 13px;
  right: 10px;
}

.mce-content-body a {
  text-decoration: underline;
}

.mce-content-body a:hover {
  text-decoration: none;
}

.mce-content-body .footer_text small {
  display: block;
  margin-top: 8px;
  text-align: right;
}

.mce-content-body table {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  border: none;
  height: auto !important;
}

.mce-content-body table:not(:first-child) {
  margin-top: 1em;
}

.mce-content-body table:not(:last-child) {
  margin-bottom: 1em;
}

.mce-content-body th,
.mce-content-body td,
.mce-content-body tr {
  height: auto !important;
}

.mce-content-body th,
.mce-content-body td {
  padding: 1em;
  border: 1px solid #D3D3D3;
  line-height: 1.5;
}

.mce-content-body th {
  /* min-width: 120px; */
  text-align: left;
}

.mce-content-body sup {
  font-size: .75rem;
  /* 12px */
  color: #555;
}

.mce-content-body .spacer {
  position: relative;
  display: block;
  padding: 1em;
  border: 2px dashed #ddd;
  background-color: #eee;
}

.mce-content-body .spacer::before {
  content: 'スペースが入ります';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: #ccc;
  text-align: center;
}

.bold {
  font-weight: 500;
  color: var(--ts-accent);
}

/* iframe */
.mce-content-body .iframe {
  position: relative;
}

.mce-content-body .iframe:not(:last-child) {
  margin-bottom: 2em;
}

.mce-content-body .iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.mce-content-body .iframe--youtube,
.mce-content-body .iframe--google_map {
  padding-top: calc(9 / 16 * 100%);
}

.scroll {
  overflow-x: scroll;
  margin-bottom: 1em;
  -webkit-overflow-scrolling: touch;
}

.scroll table {
  margin: 0;
}

@media screen and (max-width: 767px) {
  .mce-content-body img {
    width: 100%;
  }

  .mce-content-body p:not(:last-child) {
    margin-bottom: 2em;
  }

  .page-sustainability .mce-content-body table img {
    width: auto;
  }

  /* table scroll */
  .table-sp-scroll {
    white-space: nowrap;
  }

  /* .mce-content-body p:not([class]), */
  .mce-content-body p:not([style="text-align: right;"]) {
    text-align: left !important;
  }

  .mce-content-body .alignright,
  .mce-content-body .alignleft {
    width: 100% !important;
    float: none;
    margin: 20px auto;
    display: block;
  }

  .mce-content-body blockquote {
    padding: 15px;
  }

  .mce-content-body blockquote::before {
    top: 0;
    left: 0;
  }

  .mce-content-body blockquote::after {
    bottom: 0;
    right: 0;
  }

  .mce-content-body ul li::before {
    width: 8px;
    height: 8px;
  }

  .mce-content-body table {
    max-width: none !important;
  }

  .mce-content-body th {
    font-weight: bold;
  }

  .mce-content-body th,
  .mce-content-body td {
    padding: 8px;
  }

  .table-sp-full {
    width: 100% !important;
  }

  .table-sp-full th,
  .table-sp-full td {
    flex: 1;
  }

  .table-sp-block,
  .table-sp-block th,
  .table-sp-block td {
    width: 100% !important;
  }

  .table-sp-block th,
  .table-sp-block td {
    display: block;
  }

  .box {
    padding: 1.5em;
    font-size: .9285rem;
    line-height: 2;
    letter-spacing: .1em;
  }

  .mce-content-body hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .box_line:not(:first-child) {
    margin-top: 2em;
  }

  .box_line {
    padding: 2.06rem 0;
  }

  .box_line--ttl {
    margin-bottom: 1em !important;
    font-size: 1.4rem;
  }

  .scroll--cap {
    display: block;
    margin: 0.5em 0 !important;
    font-size: .875rem;
    line-height: 1;
    text-align: right;
    opacity: .25;
  }

  .scroll--cap.txt-ctr {
    text-align: center;
  }

}

/* 管理画面エディタ用
*************************************************** */
.mce-content-body.wp-editor {
  padding: 24px !important;
  max-height: 100vh !important;
  overflow-y: scroll !important;
}

@media screen and (max-width: 767px) {

  .mce-content-body.wp-editor table tr *:first-child:nth-last-child(2),
  .mce-content-body.wp-editor table tr *:first-child:nth-last-child(2)~* {
    display: table-cell;
    width: auto !important;
  }
}

/* add quicktag
*************************************************** */
/* 見出し */
.editor-ttl:not(:first-child),
.editor-ttl2:not(:first-child),
.editor-ttl3:not(:first-child) {
  margin-top: 3em;
}

.editor-ttl:not(:last-child),
.editor-ttl2:not(:last-child),
.editor-ttl3:not(:last-child) {
  margin-bottom: .5em;
}

.editor-ttl {
  font-size: 2rem;
  /* 32px */
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .05em;
}

.editor-ttl2 {
  font-size: 1.5rem;
  /* 24px */
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .05em;
}

.editor-ttl3 {
  position: relative;
  margin-bottom: 1em !important;
  padding-left: 1.5em;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7222;
  letter-spacing: .05em;
}

.editor-ttl3::before {
  content: '';
  position: absolute;
  top: .3em;
  bottom: 0;
  left: 0;
  display: block;
  width: 6px;
  height: 42px;
  background-color: var(--ts-accent);
  top: .5em;
  width: 14px;
  height: 14px;
}

.editor-ttl3.txt-ctr::before,
.editor-ttl3[style="text-align:center;"]::before {
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.editor-ttl4 {
  position: relative;
  margin-bottom: 1em !important;
  padding: .7em 1.25em;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.5;
  letter-spacing: 0;
  background-color: #27292F;
  border-left: 10px solid #B2353B;
}

/* ttl-cnt */
.ttl-cnt {
  display: flex;
  align-items: center;
  margin-bottom: 1.5em;
}

.ttl-cnt-ttl,
.lps_parts--img_text2 .ttl-03 {
  display: flex;
  align-items: center;
  margin-bottom: 1.5em;
  padding-left: 0;
  font-weight: 500;
  font-size: 1.625rem;
  /* 26px */
}

.ttl-cnt-ttl {
  margin-bottom: 0 !important;
}

.ttl-cnt-num,
.lps_parts--img_text2 .ttl-03::before {
  position: relative;
  counter-increment: img_text2_cnt;
  content: '0'counter(img_text2_cnt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 52px;
  height: 52px;
  margin-right: 1em;
  margin-bottom: 0 !important;
  padding: 1em;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  border-radius: 50px;
  letter-spacing: 0 !important;
  background-color: #000;
}

.lps_parts--img_text2 .lps_parts--child:only-child .ttl-03::before {
  display: none;
}

/* 注意書き */
.txt-attention {
  display: block;
  text-indent: -1em;
  padding-left: 1em;
  font-size: .875rem;
  /* 14px */
  color: #999;
}

.txt-attention::before {
  content: '※';
}

/* テーブル */
.mce-content-body table:not(.table1) th,
.table2 th {
  color: #fff;
  background-color: #272931;
}

.table2 th,
.table2 td {
  padding: 1.5em 1em;
  font-weight: 400;
}

.table2 td {
  background-color: #fff;
}

.table1 th,
.table1 td {
  position: relative;
  border: 0;
  font-weight: 400;
}

.table1 th::before,
.table1 td::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
}

.table1 th::before {
  background-color: #011111;
}

.table1 td::before {
  background-color: #d3d3d3;
}

/* IE */
_:-ms-input-placeholder,
:root .table1 th {
  border-bottom: 2px solid #011111;
}

_:-ms-input-placeholder,
:root .table1 td {
  border-bottom: 1px solid #d3d3d3;
}

_:-ms-input-placeholder,
:root .table1 th::before,
_:-ms-input-placeholder,
:root .table1 td::before {
  display: none;
}

@media screen and (max-width: 767px) {

  .editor-ttl:not(:first-child),
  .editor-ttl2:not(:first-child),
  .editor-ttl3:not(:first-child) {
    margin-top: 1em;
  }

  .editor-ttl {
    font-size: 1.428rem;
    line-height: 1.5;
  }

  .editor-ttl2 {
    font-size: 1.28rem;
    line-height: 1.5;
  }

  .editor-ttl3 {
    font-size: 1.14rem;
    line-height: 1.5;
  }

  .editor-ttl4 {
    padding: 1em .8em;
    font-size: 1.375rem;
    line-height: 1.7;
    border-left-width: 4px;
  }

  .editor-ttl3::before {
    width: 12px;
    height: 12px;
  }

  /* テーブル */
  .table2.table-sp-block th,
  .table2.table-sp-block td {
    border-bottom: 0;
  }

  .mce-content-body table:not(.table1).table-sp-block th,
  .table2.table-sp-block th {
    padding: 1em;
    text-align: left !important;
  }

  .table2 td {
    padding: 1em 2em;
  }


  .table2.table-sp-block tr:last-child>*:last-child {
    border-bottom: 1px solid #D3D3D3;
  }

  .table1.table-sp-block td::before {
    display: none;
  }

  /* 注意書き */
  .txt-attention {
    font-size: .929rem;
    /* 13px */
  }

  .ttl-cnt-ttl,
  .lps_parts--img_text2 .ttl-03 {
    font-size: 1.35rem;
  }

  .ttl-cnt-num,
  .lps_parts--img_text2 .ttl-03::before {
    min-width: 38px;
    height: 38px;
    padding: 0.5em;
    font-size: .85rem;
  }
}

/* text
********************************************** */
/* --- font --- */
.font-jp {
  font-family: 'A1明朝', serif;
}

.font-en,
.lps_parts--img_text2 .ttl-03::before,
.principles_philosophy--list li::before {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 300;
}

/* btn
********************************************** */
.btn+.btn {
  margin-top: 8px;
}

.btn a,
.btn button {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 1rem 3rem;
  border-radius: 50px;
  min-width: 250px;
  color: #2d333d;
  font-size: .813rem;
  text-align: center;
  border: 1px solid;
  outline: none;
  cursor: pointer;
  background: none;
  transition: .4s ease-out;
  text-decoration: none;
}

.btn svg {
  fill: #2d333d;
}

.mce-content-body .btn a {
  width: 80%;
}

.mce-content-body .btn a svg {
  display: none;
  vertical-align: bottom;
}

.btn a:not([target="_blank"]):not([href$=".pdf"]):not([href$=".jpg"]):not([href$=".png"])::before {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  right: 20px;
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid;
  border-right: 2px solid;
  transform: rotate(45deg);
  transition: all .4s ease-out;
}

.btn span {
  animation-delay: .3s;
  display: inline-block;
  line-height: 1;
  font-size: 1.2rem;
}

/* btn-cv */
.btn-cv a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 186px;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 0;
  background-color: var(--ts-accent);
}

.btn.btn-next_page a {
  border-radius: 0;
  text-align: left;
  min-width: auto;
  width: 100%;
}

/* --- btn-wh --- */
.btn-wh a {
  color: #fff;
  background: none;
}

.btn-wh svg {
  fill: #333;
}

.txt-link {
  display: inline-block;
  padding-bottom: 0.5em;
  border-bottom: 1px solid;
  line-height: 1.3;
}

.btn-wh a:hover {
  color: #fff;
}

.btn-wh a:hover svg {
  fill: #fff;
}

@media screen and (min-width: 1140px) {

  /* hover */
  .btn a:hover,
  .btn button:hover {
    color: var(--ts-accent);
    border-color: var(--ts-accent);
  }

  .btn a:hover span {
    opacity: 0;
    animation: text_anime_on .5s cubic-bezier(0.42, 0, 0, 1.01) forwards;
  }

  .btn a:hover::before {
    border-color: var(--ts-accent) !important;
  }

  .btn-cv a:hover {
    background-color: #fff;
    box-shadow: 0 0 30px rgba(197, 204, 214, .29);
  }

  .btn-cv a:hover path {
    fill: var(--ts-accent);
  }
}

@media screen and (max-width: 1366px) {
  .btn-cv a {
    min-width: auto;
  }

  .mce-content-body .btn a {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .btn a {
    max-width: 100%;
    font-size: 1.14rem;
    line-height: 1.5;
  }
}