/* ------------------------------------------------------------ */
/* sub common
/* ------------------------------------------------------------ */
.sub:not(.company) .page-header.base {
  padding-bottom: 0;
}

.page-header .main-ttl {
  margin-bottom: 0;
}

.sub-contents.base {
  padding-bottom: 0;
}

/* ------------------------------------------------------------ */
/* category & archive
/* ------------------------------------------------------------ */
.pagenate {
  width: 100%;
  margin: 3em auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.prev,
.next {
  background: url(../img/hrzn-arrow.svg) no-repeat center / 60% auto;
}

.next {
  transform: rotate(-180deg);
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 400;
  background-color: rgb(var(--wht));
}

.page-numbers:not(.prev):not(.next):not(.dots):hover {
  background-color: rgb(var(--base));
  opacity: 1;
}

.page-numbers.current {
  background-color: rgb(var(--base));
}

.page-numbers:not(.prev):not(.next):not(.dots) {
  padding: 5px;
  border: 1px solid rgb(var(--blk));
}

.page-numbers:not(.dots) {
  min-width: 2em;
  height: 2em;
}

.page-numbers.dots {
  font-family: sans-serif;
}

/* NEWS */
/* BLOG */
.sort-box {
  width: 100%;
  padding: 1em 1.5em;
  margin: 0 0 3em;
  border: 1px solid rgb(var(--blk));
}

.sort-ttl {
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.sort-list {
  display: flex;
  gap: 0.5em 1em;
  flex-wrap: wrap;
}

.sort-btn {
  font-weight: 600;
}

.sort-btn * {
  display: inline-block;
  vertical-align: middle;
}

.sort-btn input[type="checkbox"] {
  appearance: none;
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid rgb(var(--gray));
  background: rgb(var(--wht));
  padding: 0;
  position: relative;
  margin: 4px 3px 4px 0;
  flex-shrink: 0;
  -webkit-appearance: none;
}

.sort-btn input[type="checkbox"] {
  border-radius: 0;
}

.sort-btn input[type="checkbox"]:checked {
  background-color: rgb(var(--base));
}

.sort-btn input[type="checkbox"]:checked:after {
  display: inline-block;
  color: rgb(var(--blk));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.sort-btn input[type="checkbox"]:checked:after {
  content: "✔";
  font-size: 18px;
  line-height: 1;
}

.post_side {
  display: none;
}

.post_side .sub-ttl {
  font-size: 2rem;
}

.post_side .blogList {
  font-size: 0.85em;
}

.post_side .blogList-item a {
  /* flex-direction: row; */
  align-items: flex-start;
  gap: 0 1em;
}

.post_side .blog-img {
  flex: 1;
  /* aspect-ratio: 1/1; */
  aspect-ratio: 2/1;
}

/* safari */
::-webkit-full-page-media,
:future,
:root .post_side .blog-img::after {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: 100%;
}

.post_side .blog-img:not(:has(img))::before {
  content: "thumb";
  font-size: 1em;
}

.post_side .blog-info {
  flex: 1.7;
  gap: 0;
  padding: 0;
}

.post_side .blog-update::after {
  content: none;
}

/* ------------------------------------------------------------ */
/* single
/* ------------------------------------------------------------ */
.post-header {
  width: 100%;
  margin-bottom: 1.5em;
}

.post-ttl {
  font-size: 1.45em;
  margin-bottom: 1em;
}

.post-info span {
  display: inline-block;
  vertical-align: middle;
  margin-right: 1em;
}

.cat {
  font-size: 0.8em;
  font-weight: 600;
  background-color: rgb(var(--base));
  padding: 0 1em;
}

/* NEWS */
/* BLOG */
.writer-prophile {
  margin: 15% 0 0;
}

.proph-ttl {
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.proph-grid-box {
  display: grid;
  grid-template-columns: 1fr 2.5fr;
  grid-template-rows: auto 1fr;
  gap: 1em;
  align-items: flex-start;
}

.proph-grid-box h6 {
  grid-row: 1 / 2;
  grid-column: 1 / 3;
}

.proph-grid-box h6 span {
  display: inline-block;
  vertical-align: middle;
  margin-right: 1em;
}

.proph-grid-box .role {
  font-size: 0.85em;
  font-weight: 400;
}

.proph-grid-box p {
  font-size: 0.85em;
}

.proph-grid-box figure {
  width: auto;
  position: relative;
  overflow: hidden;
}

.proph-grid-box figure::before {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: calc(95 / 85 * 100%);
}

.proph-grid-box figure img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------ */
/* page
/* ------------------------------------------------------------ */
/* PHILOSOPHY */
.phlsph-container>*:nth-child(2) {
  margin-bottom: 2em;
  text-align: center;
}

.field-container,
.re-field-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.field-ttl {
  position: relative;
  display: flex;
  gap: 8%;
  margin: 0.5em 0;
}

.field-ttl::before {
  content: "";
  display: block;
  width: 28%;
  /* max-width: 90px; */
  height: auto;
  aspect-ratio: 1/1;
  padding-bottom: 28%;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: scale(1.2);
}

#field01 .field-ttl::before {
  background-image: url(../img/illust01.svg);
}

#field02 .field-ttl::before {
  background-image: url(../img/illust02.svg);
}

#field03 .field-ttl::before {
  background-image: url(../img/illust03.svg);
}

#field04 .field-ttl::before {
  background-image: url(../img/illust04.svg);
}

.field-ttl span {
  line-height: 1.5;
  letter-spacing: 1.5em;
  text-indent: 1.5em;
  font-weight: bold;
  display: inline-block;
  border: 1px solid rgb(var(--blk));
  margin-bottom: 1em;
  margin-top: 0.3em;
}

.field-ttl h4 {
  font-size: 1.8em;
  line-height: 1;
  letter-spacing: 0.1em;
}

.field-ttl figure {
  width: 28%;
}

.field-txt .btn {
  text-align: center;
}

/* GROUP */
.group-company {
  background-image: linear-gradient(to left,
      rgb(var(--base)) 50%,
      rgb(var(--wht)) 50%,
      rgb(var(--wht)) 100%);
  background-repeat: no-repeat;
  background-size: 100% 85%;
  background-position: left bottom;
}

.group-item {
  border: 1px solid rgb(var(--blk));
  padding: 6%;
  display: flex;
  flex-direction: column;
  gap: 1em;
  background-color: rgb(var(--wht));
}

a.group-item:hover {
  opacity: 1;
  box-shadow: 0 0 10px rgba(var(--blk), 0.3);
}

a.group-item:hover img {
  transform: scale(1.05);
}

.group-item img {
  transition: all 0.3s;
}

.grp-company {
  width: 100%;
  min-height: 195px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1em;
}

.grp-logo {
  flex-grow: 1;
  display: flex;
}

.group-item>p {
  font-size: 0.85em;
}

/* COMPANY */
.company-message {
  background-image: linear-gradient(to right,
      rgb(var(--base)) 0,
      rgb(var(--base)) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top left;
}

.msg-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.msg-img,
.msg-txt {
  flex: 1;
}

.msg-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.msg-txt>*:not(.ceo-name) {
  width: 100%;
}

.msg-txt h2 {
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.msg-txt h2 span {
  font-size: 1.2em;
  line-height: 1;
  display: inline-block;
  background-color: rgb(var(--blk));
  color: rgb(var(--base));
}

.ceo-name {
  font-weight: 600;
  font-size: 1.5em;
  display: block;
}

.ceo-name span {
  font-size: 0.6em;
  display: block;
}

.msg-img figure {
  width: 100%;
  position: relative;
  aspect-ratio: 65/62;
  overflow: hidden;
  background-color: rgb(var(--gray));
  text-align: center;
}

.msg-img img {
  object-fit: cover;
  object-position: top;
  height: 100%;
  width: 100%;
}

/* safari */
::-webkit-full-page-media,
:future,
:root .msg-img figure::after {
  content: "";
  display: block;
  width: 100%;
  padding-bottom: calc(60 / 65 * 100%);
}

::-webkit-full-page-media,
:future,
:root .msg-img img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* num_list */
.num_list {
  counter-reset: item;
}

.num_list li {
  font-size: 1.3em;
  line-height: 1.6;
  position: relative;
  font-weight: 600;
}

.num_list li {
  margin-bottom: 0.5em;
}

.num_list li::before {
  counter-increment: item;
  content: counter(item) ".";
  width: 1.8em;
  height: 1.8em;
  letter-spacing: 0.3em;
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0;
  display: inline-block;
}

.tableList-item:first-of-type {
  border-top: 1px solid rgb(var(--gray));
}

.tableList-item {
  display: flex;
  gap: 0 1em;
  padding: 0.5em 0;
  border-bottom: 1px solid rgb(var(--gray));
  font-size: 0.9em;
}

.tableList-ttl {
  width: 110px;
  flex-shrink: 0;
  font-weight: 600;
  flex-shrink: 0;
}

.tableList-txt {
  flex: 1;
}

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

  /* BLOG */
  .post_main .blogList-item {
    padding-bottom: 1.5em;
    border-bottom: 1px solid rgb(var(--gray));
  }

  .post_main .blogList-item a {
    /* flex-direction: row; */
    /* align-items: flex-start; */
    gap: 0 1em;
  }

  .post_main .blog-img {
    flex: 1;
    /* aspect-ratio: 1/1; */
    aspect-ratio: 2 / 1;
    margin-bottom: 0.5em;
  }

  /* safari */
  ::-webkit-full-page-media,
  :future,
  :root .post_main .blog-img::after {
    content: "";
    display: block;
    width: 100%;
    padding-bottom: 100%;
  }

  .post_main .blog-info {
    flex: 1.5;
    gap: 0;
    padding: 0;
  }

  .blog-update .arrow::before,
  .blog-update .arrow::after {
    content: none;
  }
}

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

  /* ------------------------------------------------------------ */
  /* sub common
  /* ------------------------------------------------------------ */
  /* ------------------------------------------------------------ */
  /* category & archive
  /* ------------------------------------------------------------ */
  /* NEWS */
  /* BLOG */
  .blog_2col {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2em 0;
  }

  .blog_2col .blogList-item {
    width: calc((100% - 2em) / 2);
    border: 1px solid rgb(var(--gray));
    margin-bottom: 0;
  }

  .blog_2col .blogList-item:not(:nth-of-type(2n)) {
    margin-right: 2em;
  }

  .blog_3col {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2em 0;
  }

  .blog_3col .blogList-item {
    width: calc((100% - 4em) / 3);
    border: 1px solid rgb(var(--gray));
    margin-bottom: 0;
  }

  .blog_3col .blogList-item:not(:nth-of-type(3n)) {
    margin-right: 2em;
  }

  /* ------------------------------------------------------------ */
  /* single
  /* ------------------------------------------------------------ */
  /* NEWS */
  /* BLOG */
  /* ------------------------------------------------------------ */
  /* page
  /* ------------------------------------------------------------ */
  /* PHILOSOPHY */
  /* GROUP */
  /* COMPANY */
  .company-message {
    background-image: linear-gradient(to right,
        rgb(var(--base)) 80%,
        rgb(var(--wht)) 80%,
        rgb(var(--wht)) 100%);
  }
}

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

  /* ------------------------------------------------------------ */
  /* sub common
  /* ------------------------------------------------------------ */
  /* ------------------------------------------------------------ */
  /* category & archive
  /* ------------------------------------------------------------ */
  .pagenate {
    justify-content: flex-start;
  }

  .page-numbers:not(.dots) {
    min-width: 2.5em;
    height: 2.5em;
  }

  /* NEWS */
  /* BLOG */
  .sort-box {
    /* width: calc(70% - 70% * 0.05); */
    width: calc(80% - 80%* 0.05);
    padding: 1.5em 2em;
  }

  .post_container {
    display: flex;
    gap: 0 5%;
  }

  .post_main {
    /* flex: 2.5; */
    width: 80%;
  }

  .post_main.nonside {
    width: 100%;
  }

  .post_side {
    /* flex: 1; */
    width: 20%;
    display: block;
  }

  /* ------------------------------------------------------------ */
  /* single
  /* ------------------------------------------------------------ */
  /* NEWS */
  /* BLOG */
  .proph-grid-box {
    grid-template-columns: 1fr 4fr;
    gap: 0.5em 1.5em;
  }

  .proph-grid-box h6 {
    grid-column: 2 / 3;
  }

  .proph-grid-box p {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
  }

  .proph-grid-box figure {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
  }

  /* ------------------------------------------------------------ */
  /* page
  /* ------------------------------------------------------------ */
  /* PHILOSOPHY */
  .phlsph-container {
    display: grid;
    align-items: center;
    grid-template-columns: 1.5fr 1fr;
    gap: 0 1.5em;
  }

  .phlsph-container>*:first-child {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
  }

  .phlsph-container>*:nth-child(2) {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
  }

  .phlsph-container>*:last-child {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
  }

  .field-container,
  .re-field-container {
    display: grid;
    /* align-items: center; */
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.5em 0;
  }

  .field-container>*:first-child {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
  }

  .field-container>*:nth-child(2) {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
  }

  .field-container>*:last-child {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
  }

  .re-field-container>*:first-child {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
  }

  .re-field-container>*:nth-child(2) {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
  }

  .re-field-container>*:last-child {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
  }

  .field-ttl {
    margin: 0;
  }

  .field-img {
    width: calc(100% + 2em);
    height: 100%;
  }

  .field-img img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .re-field-container .field-img {
    transform: translateX(-2em);
    padding-right: 10%;
  }

  .field-container .field-img {
    padding-left: 10%;
    /* transform: translateX(2em); */
  }

  .field-txt {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }

  .field-txt .btn {
    text-align: left;
  }

  /* GROUP */
  .group-company {
    background-image: linear-gradient(to top,
        rgb(var(--base)) 70%,
        rgb(var(--wht)) 70%,
        rgb(var(--wht)) 100%);
    background-size: 100% 85%;
  }

  .group-company .txt {
    margin-bottom: 3em;
  }

  .group-item {
    padding: 1.5em;
  }

  .grp-company {
    min-height: 280px;
    gap: 0;
  }

  /* 250106追加：グループ3つから2つに減らし中央寄せ */
  .group-company .flx_box {
    justify-content: space-evenly;
  }

  .group-company .flx_3cols .flx_item:not(:nth-child(3n)) {
    margin-right: 0;
  }

  /* COMPANY */
  .msg-container {
    gap: 0;
    flex-direction: row;
  }

  .msg-img figure {
    aspect-ratio: 65 / 90;
    transform: translateX(2em);
  }

  .num_list li {
    font-size: 1.55em;
  }

  .tableList-item,
  .tableList-item:first-of-type {
    border: none;
    font-size: 1em;
    padding: 0;
    gap: 0 2em;
  }

  .tableList-ttl {
    width: 145px;
    padding-bottom: 0.5em;
  }

  .tableList-txt {
    padding-bottom: 0.5em;
    padding-left: 2em;
    border-left: 1px solid rgb(var(--blk));
    font-weight: 600;
  }
}

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

  /* ------------------------------------------------------------ */
  /* sub common
  /* ------------------------------------------------------------ */
  /* ------------------------------------------------------------ */
  /* category & archive
  /* ------------------------------------------------------------ */
  /* NEWS */
  /* BLOG */
  /* ------------------------------------------------------------ */
  /* single
  /* ------------------------------------------------------------ */
  .post-ttl {
    font-size: 3rem;
  }

  .post-update {
    font-size: 1.1em;
  }

  /* NEWS */
  /* BLOG */
  .proph-grid-box {
    grid-template-columns: 1fr 5fr;
    gap: 0.5em 1.5em;
  }

  /* ------------------------------------------------------------ */
  /* page
  /* ------------------------------------------------------------ */
  /* PHILOSOPHY */
  .field-ttl h4 {
    font-size: 2.5em;
  }

  /* GROUP */
  /* COMPANY */
  .msg-container {
    gap: 4%;
  }

  .msg-img,
  .msg-txt {
    flex: inherit;
  }

  .msg-txt {
    width: 60%;
  }

  .msg-txt h2 {
    font-size: 2.5rem;
  }

  .msg-txt>.txt {
    font-size: 1.8rem;
  }

  .msg-img {
    width: 35%;
  }

  .msg-img figure {
    /* width: calc((100vw - 1000px) / 2 + 45%);
    transform: translateX(20%); */
    /* width: calc((100vw - 1000px)/2 + 90%);
      transform: translateX(10%); */
  }
}

@media screen and (min-width: calc(1000px + 4em)) {

  /* ------------------------------------------------------------ */
  /* page
  /* ------------------------------------------------------------ */
  /* PHILOSOPHY */
  .field-container,
  .re-field-container {
    gap: 2em 0;
  }

  .field-img {
    width: calc((100vw - 1000px - 4em) / 2 + 100% + 2em);
    /* width: 100%; */
  }

  .re-field-container .field-img {
    transform: translateX(calc((100vw - 1000px - 4em) / -2 - 2em));
    /* transform: translateX(calc((100vw - 1000px)/-2)); */
  }
}

@media screen and (min-width: 1700px) {
  .msg-img figure {
    width: 110%;
  }
}