/* =============================================================

Modal

* ============================================================= */
/* l-modal
=============================== */
.l-modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100005;
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .9);
}

.l-modal__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 70px;
}

@media screen and (max-width: 768px) {
  .l-modal__inner {
    padding: 0 8%;
  }
}

.l-modal__bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  font-size: 0;
  opacity: 0;
}

.l-modal__contents {
  position: relative;
  overflow-y: auto;
  width: 800px;
  max-width: 100%;
  max-height: 90vh;
}

.l-modal__prev, .l-modal__next {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 3.3rem;
  height: 3.3rem;
  margin: auto 0;
  outline: none;
  border: 0;
  background: transparent;
  color: #fff;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

@media screen and (max-width: 560px) {
  .l-modal__prev, .l-modal__next {
    height: 5.33333vw;
  }
}

.l-modal__prev {
  left: calc(50vw - 470px);
  transform: rotate(90deg);
}

@media screen and (max-width: 940px) {
  .l-modal__prev {
    left: 0;
  }
}

.l-modal__next {
  right: calc(50vw - 470px);
  transform: rotate(-90deg);
}

@media screen and (max-width: 940px) {
  .l-modal__next {
    right: 0;
  }
}

.l-modal-contents:first-child + .l-modal__prev {
  display: none;
}

.l-modal-contents:first-child + .l-modal__prev + .l-modal__next {
  display: none;
}

.l-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  display: block;
  width: 37px;
  height: 37px;
  margin-top: 2.44681%;
  margin-right: 2.44681%;
  outline: none;
  border: 0;
  border-radius: 50%;
  background: #333;
  transition: all .3s ease-out;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.l-modal__close:hover {
  opacity: .7;
}

.l-modal__close span {
  display: none;
}

.l-modal__close:before, .l-modal__close:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 54.05405%;
  height: 3px;
  margin: auto;
  border-radius: 3px;
  background: #fff;
}

.l-modal__close:before {
  transform: rotate(-45deg);
}

.l-modal__close:after {
  transform: rotate(45deg);
}

/* l-modal-contents
=============================== */
.l-modal-contents {
  position: relative;
  z-index: 3;
  display: block;
  visibility: hidden;
  overflow: hidden;
  height: 0;
  border-radius: 10px;
  background: #f2f6f7;
  opacity: 0;
  transition: all .4s ease-out;
  pointer-events: none;
}

.l-modal-contents.is-show {
  visibility: visible;
  height: auto;
  opacity: 1;
  pointer-events: auto;
}

.l-modal-contents__head {
  width: 100%;
  padding: 30px 2.30769em 30px;
  text-align: center;
}

.l-modal-contents__title {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  font-weight: bold;
  font-size: 17px;
  line-height: var(--line-height);

  --line-height: 1.4;
  --line-space: (var(--line-height) - 1)/2;
}

.l-modal-contents__title b {
  display: inline-block;
  margin-right: .25em;
}

@media screen and (max-width: 768px) {
  .l-modal-contents__title b {
    display: block;
    margin-right: 0;
    margin-bottom: .4em;
  }
}

.l-modal-contents__title span {
  display: inline-block;
  font-size: .76923em;
}

.l-modal-contents__pager {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  padding: .5em 1em;
  background: #295ea4;
  color: #fff;
  text-align: center;
  font-weight: bold;
}

.l-modal-contents__body {
  padding: 0 7.5% 30px;
}

.l-modal-contents__body iframe {
  display: block;
  max-height: calc(90vh - 12rem);
  border: 0;
}

/* ============================================================= *

democar

* ============================================================= */
/* ATC-democar
=============================== */
.ATC-DEMOCAR {
  --key-color: #295ea4;
}

/* ============================================================= *

layout fix

* ============================================================= */
html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
}

.page-head .ttl:last-child {
  margin-bottom: 2.66667em;
}

@media screen and (max-width: 768px) {
  .page-head .ttl:last-child {
    margin-bottom: 2em;
  }
}

.btn:is(._arrow-prev, ._arrow-next) a {
  position: relative;
}

.btn:is(._arrow-prev, ._arrow-next) a:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  width: .5em;
  height: .5em;
  margin: auto 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.btn._arrow-next a:before {
  right: 2.22222em;
  transform: rotate(45deg);
}

@media screen and (max-width: 768px) {
  .btn._arrow-next a:before {
    right: 1em;
  }
}

.btn._arrow-prev a:before {
  left: 2.22222em;
  transform: rotate(-135deg);
}

@media screen and (max-width: 768px) {
  .btn._arrow-prev a:before {
    left: 1em;
  }
}

/* ============================================================= *

blog

* ============================================================= */
/* c-articles-grid
=============================== */
.c-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(264px, 1fr));
  gap: 8px;
}

@media screen and (min-width: 769px) {
  .c-articles-grid._detail {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .c-articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* c-articles-card
=============================== */
.c-articles-card {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
}

.c-articles-card__image {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
}

.c-articles-card__image img {
  width: 100%;
  height: 100%;
  transition: transform .3s;

  -o-object-fit: cover;

     object-fit: cover;
  -o-object-position: 50% 50%;
     object-position: 50% 50%;
}

.c-articles-card:hover .c-articles-card__image img {
  transform: scale(1.05);
}

.c-articles-card__contents {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  padding: 1.71429em 1.71429em 2.28571em;
  background: rgba(51, 51, 51, .5);
  color: #fff;
  font-size: clamp(12px, 10.08673px + .5102vw, 14px);
}

@media screen and (max-width: 768px) {
  .c-articles-card__contents {
    padding: 1.25em;
  }
}

.c-articles-card__date {
  font-weight: bold;
  font-family: Roboto, sans-serif;
  line-height: 1;
}

.c-articles-card__title {
  overflow: hidden;
  margin-top: 1em;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
}

/* c-articles-pager
=============================== */
.c-articles-pager {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 80px;
}

@media screen and (max-width: 768px) {
  .c-articles-pager {
    gap: 10px;
  }
}

.c-articles-pager__item {
  width: 280px;
  max-width: calc(50% - 10px);
}

/* c-blog-layout
=============================== */
.c-blog-layout {
  display: grid;
  grid-template-columns: 1fr min(264px, 25%);
  gap: 40px 7.40741%;
}

@media screen and (max-width: 768px) {
  .c-blog-layout {
    grid-template-columns: 100%;
  }
}

/* c-blog-article
=============================== */
.c-blog-article {
  font-size: 14px;
}

.c-blog-article + .c-blog-article {
  margin-top: 11.42857em;
}

.c-blog-article__table, .c-blog-article__tbody, .c-blog-article__tr, .c-blog-article__td {
  all: unset;
}

.c-blog-article__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5em 1.5em;
  padding: 1.28571em min(5.43478%, 40px);
  border-radius: 10px;
  background: #295ea4;
  color: #fff;
}

.c-blog-article__title {
  font-weight: bold;
  font-size: 1.71429em;
  line-height: 1.5;
}

.c-blog-article__date {
  flex-shrink: 0;
  font-weight: bold;
  font-family: Roboto, sans-serif;
}

.c-blog-article__body {
  margin: min(5.43478%, 40px) 0;
  padding: 0 min(5.43478%, 40px);
}

.c-blog-article__body img {
  display: inline;
  height: auto !important;
  max-width: 100%;
}

.c-blog-article__body iframe {
  display: inline;
  max-width: 100%;
}

.c-blog-article__body iframe[src*="youtube"] {
  height: auto !important;
  aspect-ratio: 568 / 321;
}

.c-blog-article__body strong {
  font-weight: bold;
}

.c-blog-article__body em {
  font-style: italic;
}

.c-blog-article__foot {
  margin-top: 3em;
}

/* c-blog-impressions
=============================== */
.c-blog-impressions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.c-blog-impressions__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1em;
  margin-top: .5em;
}

.c-blog-impressions__icons > i {
  display: flex;
  align-items: center;
  font-style: normal;
}

.c-blog-impressions__icons > i img {
  width: 20px;
  margin-right: .5em;
}

.c-blog-impressions__button {
  width: 280px;
  margin-top: 20px;
}

.c-blog-impressions__button button {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 64px;
  max-width: 280px;
  padding: 0 10px;
  outline: none;
  border: 0;
  border-radius: 10px;
  background-color: #333;
  box-shadow: 0 3px 0px #c1c1c1;
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  transition: .3s all;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

.c-blog-impressions__button button:hover {
  box-shadow: none;
  transform: translateY(3px);
}

/* c-blog-pager
=============================== */
.c-blog-pager {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-top: 80px;
  padding: 40px 5.43478%;
  border-radius: 10px;
  background: #f1f1f1;
}

.c-blog-pager__item {
  width: calc((100% - 8px)/3);
}

/* ============================================================= *

Tab

* ============================================================= */
*[data-tab-id] {
  display: none;
}

*[data-tab-id].is-current {
  display: block;
}

/* tab
=============================== */
.c-tab {
  overflow: hidden;
  margin: clamp(40px, 20.86735px + 5.10204vw, 60px) 0;

  --gap: clamp(8px, .34694px + 2.04082vw, 16px);
}

.c-tab__list {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--gap);
  width: 100%;
  padding: 0 var(--gap);
  border-bottom: 1px solid #333;
}

.c-tab__item {
  z-index: 1;
  display: flex;
  flex-grow: 1;
  align-items: stretch;
  margin-bottom: -1px;
}

.c-tab__button {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  width: 100%;
  min-height: 3.61111em;
  padding: 1em .25em;
  outline: none;
  border: 0px solid #333;
  border-bottom-width: 1px;
  border-radius: 4px 4px 0px 0px;
  background: #333;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.125em;
  line-height: 1.2;
  cursor: pointer;
  transition: background .3s;
}

.c-tab__button:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  z-index: 2;
  display: block;
  width: calc(100% + 4px);
  border-bottom: 1px solid #333;
  transform: translateX(-50%);
}

.c-tab__button.is-current {
  border: 1px solid #333;
  background: #fff;
  color: #333;
}

.c-tab__button.is-current:after {
  width: 100%;
  border-bottom: 1px solid #fff;
}
