@charset "UTF-8";

/* layout */
.layout_grid {
  --grid-gap: var(--size-5xl);
  display: grid;
  grid-template-columns: var(--section-gridtemplate-columns, 1fr);
  gap: var(--grid-gap) 0;
  @media (width < 768px) {
    --grid-gap: var(--size-3xl);
  }
}

.layout_card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--size-2xl);
  & a {
    box-shadow: 0 4px 8px -2px rgba(32, 32, 36, 0.04);
  }

  & a {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 100%;
    border-radius: var(--size-3xs);
    overflow: hidden;
  }

  & [class*=image] {
    & img {
      width: 100%;
    }
  }

  & [class*=text] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--size-2xl);
    padding: var(--size-2xl);
    background: var(--white);
    line-height: var(--scale-2xl);

    & p {
      color: var(--gray-600);
    }

    & .link {
      margin-top: auto;
    }
  }
  @media (768px <= width) {
    & a {
      &:hover {
        box-shadow: 0px 4px 16px -2px #2020241F;
        text-decoration: none;
      }
    }

    & .link {
      &:hover {
        text-decoration: underline;
      }
    }
  }
  @media (width < 768px) {
    grid-template-columns: 1fr;
  }
}

/* ticker */

.ticker {
  padding: var(--size-2xl) 0;
  background: #fff;
}

.ticker__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.75rem;
  padding: 0 var(--size-sm);
  @media (width < 768px) {
    height: 2.75rem;
    padding: 0 var(--size-2xs);
  }
}

/* section */
.section {
  --section-background-color: transparent;
  display: grid;
  grid-template-columns: var(--section-gridtemplate-columns, 1fr);
  gap: var(--section-grid-gap, 5rem 0);
  padding: var(--section-padding, 5rem 2rem);
  color: var(--gray-700);
  font-size: var(--font-size-md);
  line-height: var(--scale-2xl);
  &:nth-of-type(odd) {
    --section-background-color: #fff;
  }

  @media (width < 768px) {
    --section-padding: 2.5rem 0;
    --section-grid-gap: 3.75rem 0;
  }
}

.section__container {
  padding: 0;
  @media (width < 768px) {
    padding: 0 2rem;
  }
}

.section__header {
  --grid-gap: var(--size-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  @media (width < 768px) {
    --grid-gap: var(--size-3xl);
  }
}

.section__heading {
  color: var(--gray-900);
  font-size: var(--font-size-4xl);
  font-weight: 600;
  line-height: var(--scale-xl);
  @media (width < 768px) {
    font-size: var(--font-size-2xl);
  }

  &.-center {
    text-align: center;
    @media (width < 768px) {
      text-align: left;
    }
  }
}

.section__note {
  display: flex;
  gap: 4px;
  font-size: var(--font-size-xs);
  &::before {
    content: "※";
  }
}

.section__row {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0 11.5625%;

  &.-start {
    align-items: flex-start;
  }
  @media (width < 768px) {
    flex-direction: column;
    gap: var(--size-3xl);
  }
}

.section__row-image {
  width: 42.5%;
  flex-shrink: 0;

  & img {
    width: 100%;
  }
  @media (width < 768px) {
    width: 100%;
  }
}

.section__row-contents {
  flex: 1;
  --grid-gap: 1.75rem;
  @media (width < 768px) {
    --grid-gap: var(--size-2xl);
    width: 100%;
  }
}

.section__row-lead {
  display: grid;
  grid-template-columns: var(--section-gridtemplate-columns, 1fr);
  gap: var(--size-2xl) 0;
}

/* accrdion */
.accordion__item {
  display: flex;
  flex-direction: column;
  & + .accordion__item {
    border-top: 1px solid var(--gray-200);
  }

  &[open] {
    gap: var(--size-xl);
    & .accordion__toggle {
      padding-bottom: 0;
      &::after {
        transform: rotate(180deg);
      }
    }
    @media (width < 768px) {
      gap: var(--size-2xl);
    }
  }
}

.accordion__toggle {
  display: flex;
  flex-direction: column;
  gap: var(--size-xs);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  line-height: 1.25;
  color: var(--gray-900);
  list-style: none;
  cursor: pointer;
  padding: var(--size-3xl) 2.75rem var(--size-3xl) var(--size-2xl);
  position: relative;
  &::marker,
  &::-webkit-details-marker {
    display: none;
  }
  &::after {
    background-color: var(--colors-primary-900);
    content: '';
    display: block;
    mask-image: url(/assets/images/global/icons/arrow-down.svg);
    mask-repeat: no-repeat;
    mask-size: contain;
    width: var(--size-xl);
    height: var(--size-xl);
    position: absolute;
    top: 0;
    bottom: 0;
    right: var(--size-2xl);
    margin: auto;
  }

  @media (768px <= width) {
    &:hover {
      h3 {
        text-decoration: underline;
      }
    }
  }

  @media (width < 768px) {
    padding: var(--size-2xl) var(--size-xl) var(--size-2xl) 0;
    font-size: var(--font-size-xl);
    &::after {
      right: 0;
    }
  }
}

.accordion__toggle-tag {
  align-self: flex-start;
  font-size: var(--font-size-sm);
  color: var(--colors-primary-600);
  padding: 0.25rem 0.5rem 0.1875rem 0.5rem;
  border-radius: 0.1875rem;
  background: var(--colors-primary-050);
}

.accordion__body {
  padding: 0 var(--size-2xl) var(--size-3xl);
  @media (width < 768px) {
    padding: 0 0 var(--size-xl);
  }
}

/* intro */
.intro {
  @media (width < 768px) {
    padding-top: 0;
  }
}

/* case */
.case__link-text {
  & p {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
}
.case__link-image {
  overflow: hidden;
  position: relative;
  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  &::before {
    content: "";
    display: block;
    padding-top: 52.5547%;
  }
}
.case__link-logo {
  height: 2.25rem;
  & img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
  }
}

/* partner */
.partner__grid {
  display: grid;
  align-items: center;
  grid-template-columns: 42.5% 1fr;
  grid-template-areas:
    "image heading"
    "image text";
  gap: 1.25rem 11.5625%;

  @media (width < 768px) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "text";
    gap: var(--size-3xl);
  }
}

.partner__image {
  grid-area: image;
  grid-column: 1;
  align-self: center;
  & img {
    width: 100%;
  }
}

.partner__heading {
  grid-area: heading;
  align-self: end;
}

.partner__text {
  grid-area: text;
  align-self: start;
}

/* cta */
.cta {
  --cta-padding: var(--size-8xl) var(--size-3xl);
  text-align: center;
  color: var(--white);
  background: no-repeat center center / cover;
  background-image: -webkit-image-set( url("../../../images/pages/government/bg-cta-pc.webp") type("image/webp"), url(../../../images/pages/government/bg-cta-pc.png));
  background-image: image-set( url("../../../images/pages/government/bg-cta-pc.webp") type("image/webp"), url(../../../images/pages/government/bg-cta-pc.png));
  padding: var(--cta-padding);
  & .section__heading {
    color: var(--white);
  }

  @media (width < 768px) {
    --cta-padding: var(--size-5xl) 0;
    text-align: left;
    background-image: -webkit-image-set( url("../../../images/pages/government/bg-cta-sp.webp") type("image/webp"), url(../../../images/pages/government/bg-cta-sp.png));
    background-image: image-set( url("../../../images/pages/government/bg-cta-sp.webp") type("image/webp"), url(../../../images/pages/government/bg-cta-sp.png));
  }
}

.cta__actions {
  text-align: center;
  & .button {
    --button-font-size: var(--font-size-md);
    --button-width: 16.5rem;
    --button-min-height: 3.25rem;
    width: var(--button-width);
    min-height: var(--button-min-height);
    justify-content: center;
  }

  @media (width < 768px) {
    & .button {
      width: 100%;
    }
  }
}

/* document */

.document__link {
  display: block;
  background: var(--white);
  text-align: center;
  font-size: var(--font-size-md);
  border-radius: var(--size-3xs);
  box-shadow: 0 4px 8px -2px rgba(32, 32, 36, 0.04);
  overflow: hidden;
}

.document__link-image {
  overflow: hidden;
  position: relative;
  &::before {
    content: "";
    display: block;
    padding-top: 52.3114%;
  }
  & img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
  }
}

.document__link-actions {
  padding: var(--size-sm) var(--size-5xl);
}

.service__link-text {
  & p {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    & sup {
      font-size: var(--font-size-2xs);
      vertical-align: top;
    }
  }
}

.service__link-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.25;
  @media (width < 768px) {
    font-size: var(--font-size-xl);
  }
}

/* column */
.column {
  overflow: hidden;
}

.splide {
  [role="tabpanel"] {
    word-break: break-word;
    overflow-wrap: normal;
    &[aria-hidden='true'] {
        display: block;
    }
  }
  [role="tab"] {
    &:focus,
    &:hover,
    &[aria-selected='true'] {
      padding: 0;
    }
  }
}

.column__slider {
  @media (width < 768px) {
    margin: 0 -2rem;
  }

  .splide__track {
    overflow: visible;
    @media (width < 768px) {
      overflow: hidden;
      padding: 0 2rem !important;
    }
  }
}

.column__slide {
  & a {
    display: grid;
    grid-template-columns: 1fr;
    height: 100%;
    border-radius: var(--size-3xs);
    background: var(--white);
    box-shadow: 0 4px 8px -2px rgba(32, 32, 36, 0.04);
    overflow: hidden;
    @media (768px <= width) {
      &:hover {
        text-decoration: none;
        box-shadow: 0px 4px 16px -2px #2020241F;
      }

      & .link {
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }

  @media (width < 768px) {
    padding: 0 1.75rem 0 0;
  }
}

.column__slide-image {
  line-height: 0;
  & img {
    width: 100%;
  }
}

.column__slide-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3.75rem 0;
  padding: 1rem 1.5rem 1.25rem;
  font-size: var(--font-size-md);
  & .title {
    color: var(--gray-600);
  }
}

.splide__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  @media (width < 768px) {
    padding: 0 2rem;
  }

  .splide__arrows {
    display: flex;
    align-items: center;
    gap: var(--size-3xs);
    order: 2;
  }

  .splide__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: 1px solid #404046;
    border-radius: var(--size-4xs);
    &[disabled] {
      opacity: .5;
    }
  }

  .splide__pagination {
    display: flex;
    justify-content: center;
    box-shadow: none;
    order: 1;
    flex: 1;
    max-width: 12.5rem;
    @media (width < 768px) {
      flex-grow: 1;
    }
    & li {
      display: flex;
      flex: 1;
      @media (width < 768px) {
        width: 1.5625rem;
      }
    }
  }

  .splide__pagination__page {
    display: block;
    padding: 0;
    flex: 1;
    height: var(--size-4xs);
    background: var(--gray-200);
    &[aria-selected='true'] {
      background: var(--gray-600);
      border: none;
    }
  }
}

.splide__bottom-link {
  order: 0;
  @media (width < 768px) {
    order: 2;
    width: 100%;
  }
}

/* news */
.news__item {
  & + .news__item {
    border-top: 1px solid var(--gray-200);
  }
}

.news__link {
  display: flex;
  align-items: center;
  gap: var(--size-2xl);
  padding: var(--size-3xl) 0;
  line-height: var(--scale-2xl);
  &::after {
    background-color: var(--link-color);
    content: '';
    display: block;
    mask-image: url(/assets/images/global/icons/arrow-right.svg);
    mask-repeat: no-repeat;
    mask-size: contain;
    width: var(--size-md);
    height: var(--size-md);
    margin: 0 0 0 auto;
  }

  @media ( 768px <= width ) {
    &:hover {
      text-decoration: none;
      & p {
        text-decoration: underline;
      }
    }
  }
  @media (width < 768px) {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: var(--size-3xs) 0;
    padding: var(--size-2xl) 2.25rem var(--size-2xl) 0;
    position: relative;
    &::after {
      position: absolute;
      top: 0;
      bottom: 0;
      right: 0;
      margin: auto;
    }
  }
}

.news__date {
  width: var(--size-11xl);
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  @media (width < 768px) {
    width: 100%;
  }
}

.cta-bottom {
  text-align: left;
  color: var(--gray-600);
}

.cta-bottom__row {
  display: flex;
  align-items: center;
  gap: 0 7.8014%;
  @media (width < 768px) {
    flex-direction: column;
    gap: var(--size-3xl);
  }
}

.cta-bottom__text {
  flex: 1;
  color: var(--white);

  & .section__heading {
    color: var(--white);
  }
}

.cta-bottom__contents {
  width: 48.9362%;
  padding: 4rem;
  background: var(--white);
  border-radius: var(--size-3xs);
  @media (width < 768px) {
    --grid-gap: var(--size-2xl);
    width: 100%;
    padding: 1.75rem var(--size-2xl);
  }
}

.cta-bottom__contents-header {
  --grid-gap: var(--size-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  @media (width < 768px) {
    --grid-gap: var(--size-xs);
  }
}

.cta-bottom__contents-heading {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--gray-900);
  line-height: var(--scale-xl);
  text-align: center;
  @media (width < 768px) {
    font-size: var(--font-size-xl);
    text-align: left;
  }
}
