#content {
  background: #fff;
  font-family: "A1ゴシック M",A1 Gothic M,sans-serif;
  * {
    font-feature-settings: 'palt';
  }
  h1,h2,h3,h4,h5,a {
    letter-spacing: 0.03em;
  }
}

p {
  font-size: 18px;
  line-height: 2.11;
  letter-spacing: 0.02em;
  @media (width <= 800px) {
    font-size: 16px;
    line-height: 1.88;
  }
}

.page-head {
  width: 100%;
  height: 184px;
  position: relative;
  display: block;
  overflow: hidden;
  @media (width <= 800px) {
    height: 90px;
  }
  img {
    width: auto;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    translate: -50% 0;
  }
}

.backtop {
  font-family: "A1ゴシック M",A1 Gothic M,sans-serif;
  font-size: 24px;
  letter-spacing: 0.03em;
  font-feature-settings: 'palt';
  .arrow {
    margin-left: 14px;
  }
  @media (width <= 800px) {
    display: block;
    padding-top: 20px;
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
    .arrow {
      width: 18px;
      height: 18px;
      margin-left: 6px;
    }
  }
}

.column,
.report {
  background: #fff;
}

.post-card-list-wrap {
  position: relative;
  z-index: 2;
}

.post-card-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  max-width: 861px;
  margin: 0 auto;
  @media (width <= 1017px) {
    flex-direction: column;
    align-items: center;
  }
  .post-title {
    -webkit-line-clamp: 6;
    @media (width <= 1017px) {
      -webkit-line-clamp: 4;
    }
  }

  /* 記事が2つ以上の場合：左揃えで1列2つ */
  &:not(:has(li:only-child)) {
    justify-content: flex-start;
    .post-card {
      flex: 0 1 calc(50% - 5.5px);
    }
    .post-title {
      -webkit-line-clamp: 4;
    }
  }
}

.post-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 523px;
  border-radius: 8px;
  background: #fff;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.10));
  a {
    display: flex;
    height: 100%;
    border-radius: 8px;
    aspect-ratio: 523 / 240;
  }
}

.card-image {
  aspect-ratio: 1 / 1;
  flex: none;
  height: 100%;
  width: auto;
  min-width: 0;
  max-width: 100%;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom;
    border-radius: 8px 0 0 8px;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px 18px 19px;
  @media (width <= 800px) {
    padding: 13px 14px 14px 15px;
  }
  > * {
    width: 100%;
  }
  .post-title {
    font-size: clamp(10px, 1.7vw, 19px);
    line-height: 1.6;
    display: -webkit-box;
      -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    @media (width <= 1017px) {
      font-size: 15.5px;
    }
  }
  .card-info {
    display: flex;
    justify-content: space-between;
  }
  .post-meta {
    font-size: 12px;
    @media (width <= 800px) {
      font-size: 10px;
    }
  }

  .read-more {
    width: 35px;
    height: 17px;
    justify-content: center;
    border: solid 1px #6e6e6e;
    border-radius: 21px;
    color: #6e6e6e;
    @media (width <= 800px) {
      width: 28px;
      height: 14px;
      margin-top: -3px;
      background: #fff;
      color: #6e6e6e;
    }
    &::before {
      background: #6e6e6e;
    }
    img {
      width: 100%;
      height: auto;
    }
  }
}


.post-link:hover {
  opacity: 1!important;
  .card-content .read-more {
    color: #fff;
    &::before {
      transform: scaleX(1);
      transform-origin: left;
    }
  }
}

.post-card-list-head {
  max-width: 906px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 24px;
  @media (width < 880px) {
    height: 98px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0;
  }
  h2 {
    font-family: var(--font-bold);
    font-size: 24px;
    @media (width <= 800px) {
      margin-top: 4px;
      font-size: 20px;
    }
  }
  p {
    margin: 1px -3px 0 0;
    font-size: 14px;
    color: #6F6F6F;
    letter-spacing: 0.03em;
    @media (width <= 800px) {
      margin: 0;
      font-size: 12px;
    }
  }
}

.post-card-list-wrap {
  background: #F0FAF7;
  padding: 70px 24px;
  @media (width <= 800px) {
    padding: 19px 18px 53px;
  }
}

.post-card-list-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
  background-image: url('../../img/digital-analog2025/common/post-bg.png');
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .post-card-list-wrap::before {
    background-image: url('../../img/digital-analog2025/common/post-bg@2x.png');
  }
}

.read-more,
.close-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: solid 1.4px #000;
    overflow: hidden;
    transition: color 0.5s ease;
    @media (width <= 800px) {
      background: #000;
      color: #fff;
    }
    &::before {
      position: absolute;
      top: 0;
      left: 0;
      content: "";
      display: block;
      width: 100%;
      height: 100%;
      background: #000;
      transform: scaleX(0);
      transform-origin: right;
      transition: all 0.5s ease;
      transition-property: transform;
    }
    span,
    svg {
      position: relative;
      z-index: 2;
    }
  }


.fixed-link-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 48px);
  max-width: 861px;
  margin: 0 auto;
  padding: 52px 60px;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.20);
  @media (width < 1100px) {
    width: calc(100% - 36px);
    max-width: 580px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 30px 30.5px 30px;
  }
  @media (width <= 800px) {
    border-radius: 12px;
  }
  h1 {
    margin: 6px 0 10px;
    font-size: 57px;
    font-family: var(--font-bold);
    letter-spacing: 0.08em!important;
    line-height: 1.35;
    @media (width <= 800px) {
      font-size: 35px;
      margin: 8px 0 10px;
    }
    span {

      display: block;
      margin: 5px 0 16px;
      font-size: 42px;
      letter-spacing: 0.08em;
      @media (width <= 800px) {
        margin: 1px 0 14px;
        font-size: 26px;
      }
    }
  }

  h2 {
    font-size: 18px;
    font-family: var(--font-bold);
    letter-spacing: 0.06em;
  }

  p {
    font-size: 16px;
    color: #6E6E6E;
    letter-spacing: 0.02em;
    line-height: 1.8;
    @media (width <= 800px) {
      font-size: 15px;
    }
  }

  .read-more {
    width: 144px;
    height: 40px;
    margin-top: 24px;
    padding: 0 15px 0 22px;
    border-radius: 21px;
    background: #fff;
    @media (width < 1100px) {
      position: absolute;
      bottom: 25px;
      right: 23px;
      width: 128px;
      height: 35px;
      z-index: 2;
      padding: 0 15px 0 19px;
      font-size: 15px;
    }
    @media (width <= 800px) {
      background: #000;
      color: #fff;
    }
  }

  img {
    vertical-align: bottom;
  }

  .left {
    max-width: 453px;
  }

  .right {
    position: absolute;
    right: 0;
    @media (width < 1100px) {
      position: relative;
    }
    &.custom-break-1100 {
      img.pc {
        display: inline-block !important;
      }
      img.sp {
        display: none !important;
      }
      @media (width < 1100px) {
        img.pc {
          display: none !important;
        }
        img.sp {
          display: inline-block !important;
        }
      }
    }
  }
}

.fixed-link-inner:hover {
  opacity: 1!important;
  .read-more {
    color: #fff;
    &::before {
      transform: scaleX(1);
      transform-origin: left;
    }
  }
}

.part2 .fixed-link-inner {
  @media (width <= 800px) {
    gap: 4px;
  }
}

.part3 .fixed-link-inner {
  @media (width <= 800px) {
    gap: 6px;
    padding-bottom: 0;
  }
}

.part-head {
  display: flex;
  background-size: cover;
  overflow: hidden;
  .left {
    position: relative;
    z-index: 12;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding-left: 57px;
    @media (width <= 800px) {
      max-width: unset;
      padding: 0 35px 33px 38px;
    }
    h1, h2 {
      font-family: var(--font-bold);
    }
    h1 {
      margin: -13px 0 -10px 0;
      font-size: clamp(37px, 4.7vw, 57px);
      letter-spacing: 0.08em;
      line-height: 1.35;
      span {
        display: block;
        margin: 5px 0 16px;
        font-size: clamp(28px, 3.41vw, 42px);
        letter-spacing: 0.08em;
        @media (width <= 800px) {
          margin: 3px 0;
        }
      }
    }
    h2 {
      padding-left: 3px;
      font-size: 18px;
      letter-spacing: 0.06em;
      @media (width <= 800px) {
        padding-left: 0;
      }
    }
    p {
      margin-top: -12px;
      font-size: 16px;
      color: #6E6E6E;
      letter-spacing: 0.05em;
      line-height: 1.8;
      @media (width <= 800px) {
        margin-top: -4px;
        font-size: 15px;
        letter-spacing: 0.02em;
      }
    }
  }
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(4px 0px 4px rgba(0, 0, 0, .25));
  z-index: -1;
  .clip-path {
    width: 100%;
    height: 100%;
    background: #fff;
  }
}

/* モーダル */
.modalBtn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 144px;
  height: 40px;
  padding: 0 15px 0 21px;
  border: 1.4px solid #000;
  border-radius: 25px;
  margin-bottom: -2px;
  cursor: pointer;
  @media (width <= 800px) {
    width: 128px;
    height: 35px;
    margin-top: -4px;
    padding: 0 15px 0 19px;
    background: #fff;
    color: #000;
  }
  &:hover {
    color: #fff;
    &::before {
      transform: scaleX(1);
      transform-origin: left;
    }
  }
}

.modal.modalOverview {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99;
  overflow: scroll;
  justify-content: center;
  align-items: flex-start;
  padding: 125px 0 68px 220px;
  @media (width <= 800px) {
    padding: 0;
  }

  &.is-active {
    display: flex;
  }

  .modalOverlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    z-index: -1;
  }

  .modalContainer {
    max-width: 700px;
    width: calc(100% - 40px);
    background: #fff;
    padding: 55px 50px 42px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    @media (width <= 800px) {
      top: 0;
      transform: translateY(0);
    }
    h2 {
      text-align: center;
      font-size: 26px;
      margin-bottom: 50px;
      padding-bottom: 26px;
      border-bottom: solid 2px #C5DDDA;
    }
    h3 {
      width: fit-content;
      padding-bottom: 5px;
      margin-bottom: 35px;
      border-bottom: 1px solid #000;
      letter-spacing: -0.02em;
    }
    tr {
      @media (width <= 800px) {
        display: flex;
        flex-direction: column;
      }
    }
    tr + tr {
      @media (width <= 800px) {
        margin-top: 26px;
      }
    }
    .close-btn:hover {
      color: #fff;
      &::before {
        transform: scaleX(1);
        transform-origin: left;
      }
    }
  }
}

.modal.modalOverview .modalContainer table {
  width: 100%;
  td {
    position: relative;
    padding: 0 0 23px 19px;
    letter-spacing: 0.03em;
    @media (width <= 800px) {
      padding-bottom: 0;
    }
    &:nth-child(odd):before {
      content: '●';
      position: absolute;
      left: -3px;
      top: -2px;
      font-size: 18px;
      @media (width <= 800px) {
        top: -4px;
      }
    }
    &:nth-child(even) {
      padding-left: 6.4%;
      @media (width <= 800px) {
        padding-left: 19px;
      }
    }
  }
}

.modal.modalOverview .modalContainer ul {
  margin-top: 5px;
  padding-left: 10px;
  @media (width <= 800px) {
    margin-top: 24px;
  }
  li {
    position: relative;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.03em;
    &::before {
      content: '*';
      position: absolute;
      left: -8px;
      top: -1px;
      font-size: 18px;
    }
  }
}

.modal.modalOverview .modalContainer .close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 40px;
  margin: 50px auto 0 ;
  border: solid 1.4px #000;
  border-radius: 21px;
  background: #fff;
  cursor: pointer;
  @media (width <= 800px) {
    background: #fff;
    color: #000;
  }

  span {
    margin-right: 5px;
  }

  img {
    width: 12px;
    height: 12px;
  }
}

@media (width <= 800px) {
  .modal.modalOverview {
    padding: 140px 17.5px 30px;
  }

  .modal.modalOverview .modalContainer {
    width: 100%;
    padding: 20px;
  }

  .modal.modalOverview .modalContainer h2 {
    font-size: 20px;
  }

  .modal.modalOverview .modalContainer h3 {
    font-size: 16px;
  }

  .modal.modalOverview .modalContainer table td {
    font-size: 14px;
  }

  .modal.modalOverview .modalContainer ul li {
    font-size: 12px;
  }
}