.under main {
  margin-bottom: 100px;

  @media screen and (max-width: 1000px) {
    padding-top: 128px;
  }
  @media screen and (max-width: 900px) {
    padding-top: 82px;
  }
  @media screen and (max-width: 768px) {
    margin-bottom: 60px;
  }
}

.under-top {
  background-color: #f4f1ed;
  background-size: contain;
  width: 100%;
  height: 190px;
  position: relative;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  @media screen and (max-width: 900px) {
    height: 160px;
  }
}
.under-top::after {
  content: "";
  background-image: url(../img/under/under-top.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  width: 100%;
  display: block;
  position: absolute;
  aspect-ratio: 3 /1;
  max-width: 300px;
  min-width: 200px;
  bottom: 0;
  right: 0;
}
.under-top-wrap h1 {
  display: block;
  width: 90%;
  margin: 0 auto;
  max-width: 1200px;
  font-size: 1.875rem;
  color: #4d4d4d;
  font-weight: 600;
  @media screen and (max-width: 900px) {
    font-size: 1.4375rem;
    line-height: 1.4;
  }
}

.under main h2 {
  background-color: #f4f1ed;
  border-bottom: unset;
  font-size: 1.25rem;
  border-left: 5px solid #f28e1e;
  padding: 10px;
  display: flex;
  margin-bottom: 30px;
  @media screen and (max-width: 768px) {
    font-size: 1.125em;
    line-height: 1.7;
  }
}
.under.ouen main h2 {
  border-left: 5px solid #e46676;
}
.under.unei main h2 {
  border-left: 5px solid #009a71;
}

.under main h3 {
  border-top: 2px solid #f28e1e;
  border-bottom: 2px solid #f28e1e;
  padding: 15px 0;
  margin-bottom: 30px;
  line-height: 1.7;
}
.under.ouen h3 {
  border-top: 2px solid #e46676;
  border-bottom: 2px solid #e46676;
}

.under.unei h3 {
  border-top: 2px solid #009a71;
  border-bottom: 2px solid #009a71;
  padding: 15px 0;
  margin-bottom: 30px;
}
.under main h3 {
  margin: 40px 0 30px;
}

.under main h4 {
  margin-bottom: 30px;
  line-height: 1.7;
}
.under main ul {
  margin: 0 0 60px 12px;

  @media screen and (max-width: 768px) {
    margin-bottom: 30px;
  }
}

.under main .contents-wrap a {
  text-decoration: underline;
  line-height: 1.5;
  word-wrap: break-word;
}

.under main .contents-wrap.under-news-contents a {
  text-decoration: unset;
  width: 30%;
}
.plat-form .more-btn a {
  text-decoration: unset !important;
}
.under .wp-block-list li,
.under:not(.contact) main .contents-wrap li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  font-feature-settings: "palt";
  letter-spacing: 1.5px;
  line-height: 1.5;
  word-break: break-all;
  position: relative;
  @media screen and (max-width: 768px) {
  }
}
.under .wp-block-list li:has(ul),
.under .wp-block-list li:has(ol),
.under:not(.contact) main .contents-wrap li:has(ul),
.under:not(.contact) main .contents-wrap li:has(ol) {
  display: block;
}

.under .wp-block-list ul,
.under .wp-block-list ol {
  margin: 10px 0 5px 16px;
}
.under .wp-block-list ul li,
.under .wp-block-list ol li {
  margin-bottom: 5px !important;
}

.under .wp-block-list li::before,
.under:not(.contact) main .contents-wrap li::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #000;
  margin-right: 5px;
  flex-shrink: 0;
  position: absolute;
  left: -12px;
  top: 10px;

  @media screen and (max-width: 768px) {
    margin-right: 10px;
  }
}
.under .wp-block-list ul li::before,
.under:not(.contact) main .contents-wrap ul li ul li::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #000;
  margin-right: 5px;
  flex-shrink: 0;
  position: absolute;
  left: -12px;
  top: 10px;
  background-color: #fff;
}
.under ol.wp-block-list li::before,
.under:not(.contact) main .contents-wrap ol li::before {
  content: none;
}

.under ol.wp-block-list {
  list-style-type: decimal;
  margin: 0 0 60px 20px;
}
.under ol.wp-block-list li,
.under:not(.contact) main .contents-wrap ol li {
  display: list-item;
  word-break: break-all;
  @media screen and (max-width: 768px) {
    line-height: 1.4;
  }
}
.breadcrumb {
  width: 90%;
  margin: 0 auto 30px;
  max-width: 1200px;
  font-size: 0.875rem;
}
.breadcrumb a {
  text-decoration: underline;
}
.breadcrumb li::before {
  content: none !important;
  display: none !important;
}

.breadcrumb li + li:before {
  content: ">" !important;
  display: inline-block !important;
  margin: 0.5em;
  background-color: unset;
  width: auto;
  height: auto;
}
.under main .breadcrumb ul {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  @media screen and (max-width: 768px) {
    font-size: 0.75rem;
    flex-wrap: wrap;
  }
}
.under main .breadcrumb ul li {
  margin-bottom: 0;
}
.under main .contents-wrap .contents-only-head {
  background-color: #000;
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  border-left: unset;
  @media screen and (max-width: 768px) {
    margin-bottom: 10px;
  }
}
.under.single .cate-wrap {
  margin-bottom: 10px;
  @media screen and (max-width: 768px) {
    margin: 0 0 25px;
  }
}
.under main .contents-only-head::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-top: 3px;
  padding-right: 10px;
  margin-right: 7px;
}
.under main .contents-only-head.riyou {
  background-color: #f28e1e;
}
.under main .contents-only-head.riyou::before {
  background-image: url(../img/top/riyou-icon.png);
}

.under main .contents-only-head.ouen {
  background-color: #e46676;
}
.under main .contents-only-head.ouen::before {
  background-image: url(../img/top/ouen-icon.png);
}

.under main .contents-only-head.unei {
  background-color: #009a71;
}
.under main .contents-only-head.unei::before {
  background-image: url(../img/top/unei-icon.png);
}

.under-point-wrap::before {
  content: "";
  display: block;
  height: 100%;
  width: 13vw;
  min-width: 80px;
  background-size: contain;
  background-image: url(../img/under/under-point-l.png);
  background-repeat: no-repeat;
  background-position: bottom;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.under-point-wrap::after {
  content: "";
  display: block;
  height: 100%;
  width: 13vw;
  min-width: 80px;
  background-size: contain;
  background-image: url(../img/under/under-point-r.png);
  background-repeat: no-repeat;
  background-position: bottom;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
}

.wp-block-columns {
  display: flex;
  justify-content: space-between;
  gap: 5%;
  margin-bottom: 60px;
  @media screen and (max-width: 768px) {
    display: block;
  }
}
.wp-block-table {
  overflow-x: scroll;
}
.wp-block-table .has-fixed-layout {
  overflow-x: scroll;
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}
.under table.has-fixed-layout thead tr th {
  background-color: #f4f1ed;
}

.wp-block-table .has-fixed-layout td,
.wp-block-table .has-fixed-layout th {
  padding: 0.7rem;
  line-height: 1.5;
}

.under main .contents-wrap .wp-block-file__button {
  padding: 5px 10px;
  text-decoration: unset;
}

.under-flex-contents {
  display: flex;
  justify-content: flex-start;
  gap: 5%;
  margin-bottom: 60px;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

.under.archive .under-flex-contents {
  flex-wrap: wrap;
  align-items: flex-start;
}
.page .under-news-contents.contents-wrap {
  width: 100%;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}
.under-flex-contents img {
  object-fit: contain;
  width: 100%;
  min-width: 250px;
  @media screen and (max-width: 768px) {
    min-width: unset;
  }
}

.under main .contents-wrap p {
  line-height: 1.7;
  margin-bottom: 30px;
  @media screen and (max-width: 768px) {
  }
}

.under .contents-wrap .under-point-wrap {
  background-color: #ffeecc;
  text-align: center;
  line-height: 1.7;
  font-weight: 600;
  padding: 40px 7%;
  border-radius: 40px;
  margin-bottom: 30px;
  position: relative;
  font-size: clamp(18px, 2vw, 25px);
  isolation: isolate;
  word-break: auto-phrase;
  @media screen and (max-width: 768px) {
    padding: 30px 7%;
    font-size: 1rem;
    line-height: 1.7;
  }
}
.under.contact .contents-wrap .under-point-wrap {
  background-color: #b0e0d4;
}
.under.contact .contents-wrap .under-point-wrap small {
  font-size: 1rem;
}
.under .contents-wrap .midashi {
  font-family: "Noto Serif JP", serif;
  word-break: keep-all;
  white-space: nowrap;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.4;
  text-indent: -1em;
  padding-left: 1em;
  @media screen and (max-width: 768px) {
    font-size: 1.4375rem;
    padding-left: 0;
    text-indent: 0;
    text-align: center;
  }
}

/* 固定ページ遷移ボタン */
.under main .wp-block-button {
  display: flex;
  justify-content: right;
  margin-bottom: 60px;
}
.under main .plat-form h2 {
  background-color: unset;
  font-size: 1.5625rem;
  border-left: unset;
  justify-content: center;
  @media screen and (max-width: 768px) {
    font-size: 1.375rem;
  }
}
.under main h3.top-design-h3 {
  font-size: 1.875rem;
  padding-bottom: 15px;
  border-top: unset;
  border-bottom: 1px solid #f28e1e;
  margin-bottom: 30px;
  margin-top: 0;
  @media screen and (max-width: 768px) {
    font-size: 1.375rem;
  }
}
.ouen h3.top-design-h3 {
  border-bottom: 1px solid #e46676;
  border-top: unset;
}
.unei h3.top-design-h3 {
  border-bottom: 1px solid #009a71;
  border-top: unset;
}
.under .contents-wrap .explanation {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  margin-bottom: 30px;
  @media screen and (max-width: 768px) {
    text-align: center;
  }
}

.under-news-contents img {
  margin-bottom: 15px;
  min-width: 200px;
}
.under-news-contents .thumb img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  height: auto;
  border: 1px solid #f4f1ed;
}

.under-news-contents .under-flex-contents dl:not(.thumb) {
  width: 100%;
}

.under.archive .cate-wrap {
  margin-bottom: 5px;
}
.under.archive .under-news-contents .under-flex-contents dl:not(.thumb) {
  margin-bottom: 70px;
}
.under.news .news-contents {
  border-bottom: none;
}

.under-news-contents .under-flex-contents dl .news-title-wrap {
  width: 100%;
  border-bottom: 1px solid #000;
  margin-bottom: 15px;
}
main.under .under-news-contents .news-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  line-height: 1.5;
  margin: 10px 0;
}
.under-news-contents .news-date {
  display: flex;
  text-align: left;
  justify-content: space-between;
  @media screen and (max-width: 900px) {
    display: block;
  }
  @media screen and (max-width: 768px) {
    display: flex;
    margin-bottom: 50px;
  }
}
.archive.under .news-inner-flex {
  display: flex;
  width: 100%;
  gap: 5%;
}
.archive.under .news-inner-flex .thumb {
  width: 25%;
}
.archive.under .news-inner-flex .text-group {
  width: 70%;
}
.archive.under .news-inner-flex img {
  height: auto;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.archive.under .contents-wrap .news-contents .day-title-item {
  display: block;
}

.archive.under .news-contents .day {
  display: flex;
  align-items: center;
  gap: 10%;
  margin-bottom: 15px;
}

/* カテゴリリスト */
.news-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1%;
}
.under main .contents-wrap .news-category-list li {
  @media screen and (max-width: 768px) {
    width: 48%;
  }
}
.under main .contents-wrap .news-category-list li::before {
  content: none;
}

.under main .news-contents .news-category-list li a {
  border: 2px solid #f28e1e;
  padding: 5px 10px;
  width: 130px;
  border-radius: 50px;
  display: block;
  text-align: center;
  color: #f28e1e;
  text-decoration: unset;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}

.under main .news-category-list li.cat-active a {
  background-color: #f28e1e;
  color: #fff;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}
.archive.under .pagination {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.archive.under .pagination span {
  background: #f28e1e;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 55px;
}
.archive.under .news-contents .pagination a {
  border: 2px solid #f28e1e;
  font-weight: 700;
  color: #f28e1e;
  padding: 3px 10px;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 55px;
  text-decoration: unset;
}
.archive.under .news-contents .pagination a.prev {
  padding: 3px 10px 3px 7px;
}
.archive.under .news-contents .pagination a.next {
  padding: 3px 7px 3px 10px;
}
main.ouen .more-wrap.more-text a {
  border: 2px solid #e46676;
  text-decoration: unset;
  width: 180px;
}
main.unei .more-wrap.more-text a {
  border: 2px solid #009a71;
  width: 180px;
}
.wp-block-button__link.wp-element-button {
  text-decoration: unset;
}
.news-contents {
  border-bottom: unset;
}
.news-contents a {
  text-decoration: unset;
}

.under.archive main .news-contents a {
  width: 30%;
  text-decoration: unset;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}
main.ouen .more-wrap.more-text .arrow::before {
  background: #e46676;
}
main.unei .more-wrap.more-text .arrow::before {
  background: #009a71;
}
.more-wrap.more-text .arrow::after {
  right: 32px;
  top: 1px;
  @media screen and (max-width: 768px) {
    right: 32px;
    top: 2px;
  }
}
.under:not(:has(.mail)).more-wrap.more-text {
  margin-bottom: 60px;
}
main .more-wrap.more-text {
  margin-bottom: 60px;
}
.under .contact .contact-contents .mail {
  margin-bottom: 30px;
}
.under .contact .contact-contents .tel-number {
  text-align: center;
}
.under .contact .contact-contents .tel-sub {
  text-align: center;
  margin-bottom: 0;
}

.more-text .arrow {
  margin-left: 0;
}
.more-text {
  @media screen and (max-width: 900px) {
    text-align: left;
    width: 100%;
    display: block;
  }
  @media screen and (max-width: 768px) {
    text-align: end;
    width: unset;
  }
}

.under.contact {
  background-color: #fff;
}
.under.contact main .contents-wrap {
  display: block;
}
.snow-monkey-form[data-screen="loading"] {
  visibility: visible;
}
.smf-form--business .smf-item__col--label {
  display: flex;
  align-items: center;
}
.smf-item__label {
  font-weight: 500;
}

.smf-form--business .smf-item__col--label {
  background-color: #f4f1ed !important;
}
.smf-action .smf-button-control__control {
  background-color: #f28e1e !important;
  background-image: none !important;
  border: 2px solid #f28e1e !important;
  padding: 10px !important;
  color: #fff !important;
  font-size: 1rem;
  width: 120px;
  font-weight: 500;
}
.smf-action .smf-button-control__control:hover {
  opacity: 0.7;
}
.smf-action .smf-button-control__control[data-action="back"] {
  border: 2px solid #f28e1e !important;
  background-color: #fff !important;
  color: #f28e1e !important;
}
.smf-complete-content p {
  text-align: center !important;
  margin-top: 50px !important;
}
.policy-parts .wp-block-group.is-row {
  justify-self: center;
}
.policy-parts .smf-checkboxes-control__control {
  line-height: 1.4;
}
.policy-parts .smf-checkbox-control__label {
  display: none;
}
.policy-parts.wp-block-group {
  justify-content: center;
  align-items: center;
}
.under main .contents-wrap p.contact-policy-text {
  text-align: center;
}

.smf-form .syubethu_check .smf-checkbox-control__control {
  margin-top: 1px;
}

.policy-parts .smf-label {
  margin-right: 0 !important;
}
.smf-item.syubethu_check .smf-label {
  @media screen and (max-width: 768px) {
    margin-bottom: 10px;
  }
}
[data-screen="confirm"] + .contact-policy-text,
.contents-wrap:has([data-screen="complete"]) .contact-policy-toptext,
.contents-wrap:has([data-screen="confirm"]) .contact-policy-toptext,
[data-screen="complete"] + .contact-policy-text {
  display: none;
}

/* お問い合わせ表示テキストの切り替え */

.confim-text {
  display: none;
}
.contents-wrap:has([data-screen="confirm"]) .confim-text {
  display: block;
}

.smf-form--business .smf-item__col--controls {
  display: flex;
  align-items: center;
  width: 100%;
}

.smf-item__controls {
  width: 100%;
}
.under main .contents-wrap .policy-parts p {
  margin-bottom: 0;
}
.under.contact .smf-item__label__text {
  line-height: 1.5;
  font-feature-settings: "palt";
  letter-spacing: 0.5px;
}
.smf-item:has([data-validations~="required"]) .smf-item__label__text::after {
  content: "※";
  color: #ff0000;
  margin-left: 5px;
}
.under .contact mark {
  font-style: normal;
}
.under .contact .smf-focus-point {
  top: -9999px;
}
/* お問い合わせ限定フッター */
.under.contact section.contact .contents-wrap {
  justify-content: center;
}
.under.contact section.contact .contents-wrap .contact-contents:nth-of-type(1) {
  display: none;
}

/* 特殊背景 */
.apple-bg {
  margin: 100px 0 60px;
  padding: 50px 5% 0 5%;
  background-color: #f4f1ed;
  position: relative;
  @media screen and (max-width: 768px) {
    margin: 45px 0 0;
    padding-bottom: 0;
  }
}
.apple-bg::before {
  content: "";
  background-image: url(../img/top/contents-img.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 80%;
  height: 206px;
  display: block;
  margin: 0 auto;
  position: absolute;
  left: 0;
  right: 0;
  background-position: center;
  transform: translateY(-63%);
}

.apple-bg-contents {
  z-index: 50;
  border-radius: 20px;
  margin-bottom: 50px !important;
  background-color: #fff;
  width: 32%;
  text-align: center;
  padding: 40px 20px;
  @media screen and (max-width: 768px) {
    margin-bottom: 25px !important;
  }
}
