:root {
  --theme-all: #717171;
  --theme-english: #40B769;
  --theme-airline: #13b7cd;
  --theme-bridal: #FB6789;
  --theme-hotel: #FF7B48;
}

.t-all {--theme-color: var(--theme-all);}
.t-eng {--theme-color: var(--theme-english);}
.t-air {--theme-color: var(--theme-airline);}
.t-brd {--theme-color: var(--theme-bridal);}
.t-htl {--theme-color: var(--theme-hotel);}

/* 学科選択 
------------------------------------- */

.c-course-selector {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  border-radius:50px;
  overflow: hidden;
}

.c-course-selector__button {
  display: grid;
  place-content: center;
  width: 100%;
  padding-block: .8em;
  border: none;
  background: var(--theme-color);
  font-size: clamp(1.4rem, 0.2rem + 1.563vw, 1.8rem);
  color: #fff;
  white-space: nowrap;
  transition: all .2s;
}

.c-course-selector__button:not(.is-on) {
  opacity: .8;
}

@media not (min-width:768px) {
  .c-course-selector {
    grid-template-columns:1fr 1fr;
    gap: 1px;
    border-radius:.5rem;
  }

  .c-course-selector li:has([data-filter="all"]) {
    grid-column: 1/3;
    grid-row: 1/2;
    display: flex;
  }
}

@media (max-width:390px) {
  .c-course-selector, .p-realvoice-card-list {
    width: calc(100% + (390px - 100vw) * .4);
    margin-left: calc((390px - 100vw) * -.2);
  }
  .c-course-selector__button {
    letter-spacing: 0;
  }
}


/* 一覧
------------------------------------- */

.p-realvoice-card-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(1.5rem, 0.577rem + 2.366vw, 3rem);
}

@media not (min-width:768px) {
  .p-realvoice-card-list {
    grid-template-columns: repeat(2,1fr);
  }
}

.p-realvoice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  width: 100%;
  aspect-ratio: 1;
  padding: 1em 1.3em;
  border: none;
  border-radius: clamp(0.8rem, 0.369rem + 1.104vw, 1.5rem);
  background-color: #fff;
  text-decoration: none;
  text-align: left;
  overflow: hidden;
  color: #fff;
  transition: background-color .3s;
  cursor: pointer;
}

.p-realvoice-card::before {
  content: "";
  position: absolute;
  right: 1em;
  top: 1em;
  display: block;
  width: min(30px,20%);
  aspect-ratio: 1;
  background: url(../../img/common/icon_extend.svg) no-repeat 50% 50% / contain;
  transition: opacity .2s;
}

.p-realvoice-card__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;  
}

.p-realvoice-card__img[data-trim="1"] {
  scale: 1.333333;
}

.p-realvoice-card__label {
  position: absolute;
  left: 0;
  top: 0;
  width: 10em;
  padding: .2em;
  background: var(--theme-color);
  text-align: center;
  letter-spacing: 0;
  font-size: min(1.3rem,3.3vw);
}

.p-realvoice-card__caption {
  position: relative;
  display: -webkit-box; 
  -webkit-line-clamp: 3; 
  -webkit-box-orient: vertical; 
  line-height: 1.5;
  overflow: hidden;
  transition: opacity .2s;
}

.p-realvoice-card__more {
  position: relative;
  margin-top: .3em;
  font-weight: 700;
  transition: opacity .2s;
}

.p-realvoice-card:not(:hover)::before,
.p-realvoice-card:not(:hover) :is(.p-realvoice-card__caption, .p-realvoice-card__more) {
  opacity: 0;
}
.p-realvoice-card:hover {
  background-color: #000;
}
.p-realvoice-card:hover .p-realvoice-card__img {
  opacity: .5;
}

.p-realvoice-pagination {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.p-realvoice-pagination :is(a,button) {
  position: relative;
  display: inline-grid;
  place-content: center;
  min-width: 1.8em;
  height: 1.8em;
  margin-inline: .3em;
  border: none;
  border-radius: .3em;
  background: transparent;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
}
  
.p-realvoice-pagination :is(.-current, .mixitup-control-active) {
  background-color: #36BAFC;
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

.p-realvoice-pagination :is(a,button):not(.mixitup-control-active):hover {
  background-color: #bce6;
}

.p-realvoice-pagination .-first::before,
.p-realvoice-pagination .-first::after,
.p-realvoice-pagination .-newer::before,
.p-realvoice-pagination .-older::before,
.p-realvoice-pagination .-last::before,
.p-realvoice-pagination .-last::after {
  content: "";
  position: absolute;
  top: calc(50% - .25em);
  display: block;
  width: .5em;
  aspect-ratio: 1;
  border: currentColor solid; 
  border-width: 1px 0 0 1px;
  rotate:-45deg;
}

.p-realvoice-pagination .-first::before,
.p-realvoice-pagination .-last::before {left: calc(50% - .25em);}
.p-realvoice-pagination .-first::after,
.p-realvoice-pagination .-last::after {left: calc(50%);}
.p-realvoice-pagination .-newer::before,
.p-realvoice-pagination .-older::before {left: calc(50% - .2em);}
.p-realvoice-pagination .-older,
.p-realvoice-pagination .-last {scale: -1 1;}

@media (min-width:768px) {
  .p-realvoice-pagination .-spCount {display: none;}
}

@media not (min-width:768px) {
  .p-realvoice-pagination button:not(:is(.-first, .-last, .-newer, .-older)) {display: none;}
  .p-realvoice-pagination .-spCount {padding-inline: .6em; translate: 0 -3%;}
}

/*
.mix.is-hidden-page {
  display: none !important;
}

.mix {
  transition: opacity 0.2s, transform 0.2s;
}
/*

/* モーダル
------------------------------------- */

.p-realvoice-modal-container {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 1.2rem;
  overflow: visible;
}

.p-realvoice-modal-container::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.p-realvoice-modal-container[open] {
  position: fixed;
  top: 50%;
  left: 50%;
  bottom: unset;
  right: unset;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.p-realvoice-modal__inner {
  max-height: 90vh;
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch;
  padding: clamp(2rem, 0rem + 2.5vw, 3rem);
  border-radius: 1.2rem;
  background: #fff;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.p-realvoice-modal__img {
  position: relative;
  aspect-ratio: 1;
  margin-inline: auto;
}

.p-realvoice-modal__viewport {
  display: flex;
  overflow-x: auto;

  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.p-realvoice-modal__viewport::-webkit-scrollbar {
  display: none;
}

.p-realvoice-modal__viewport.is-dragging {
  cursor: grabbing;
}

.p-realvoice-modal__slide-item {
  padding-right: 1px;
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.p-realvoice-modal__slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.p-realvoice-modal__prev,
.p-realvoice-modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: min(25px,4vw);
  aspect-ratio: 3/5;
  padding: 0;
  border: none;
  line-height: 0;
  filter: drop-shadow(0 0 10px #0002);
}

.p-realvoice-modal__prev::before,
.p-realvoice-modal__next::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.p-realvoice-modal__prev {
  left: 10px;
  scale: -1 1;
}

.p-realvoice-modal__next {
  right: 10px;
}

@media (min-width:800px) {
  .p-realvoice-modal__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
  }

  .p-realvoice-modal__img {
    width: min(480px, 48vw);
  }
}

@media not (min-width:800px) {
  .p-realvoice-modal__img {
    width: clamp(34.6rem, 19.789rem + 35.263vw, 48rem);
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
}

.p-realvoice-modal__close {
  position: absolute;
  right: 0;
  top: 0;
  width: 3rem;
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: #888;
  translate: -25% -60%;
}

.p-realvoice-modal__close::before,
.p-realvoice-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 50%;
  height: 10%;
  background: #fff;
  translate: -50% -50%;
}

.p-realvoice-modal__close::before {
  rotate: 45deg;
}

.p-realvoice-modal__close::after {
  rotate:-45deg;
}


/* コラム
------------------------------------- */

.p-column-list-container {
  margin-top: 48px;
}

@media (min-width:1024px) {
  .p-column-index {
     display: grid;
     grid-template-columns:1fr 220px;
     gap: 40px;
  }
  
  .p-column-index__body .c-course-selector__button {
    font-size: 1.4rem;
  }
}

.p-column-index__card {
  position: relative;
  display: block;
  text-decoration: none;
  transition: background-color .3s;
}

.p-column-index__card__img {
  position: relative;
  width: 100%; 
  aspect-ratio: 10/7;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
}

.p-column-index__card__img:not(:has(img)) {
  background: #EFF6FC url(../img/logo.png) no-repeat 50% 50% / 80%;
}

.p-column-index__card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-column-index__card__date {
  margin-block: .4rem .2rem;
  font-size: 1.2rem;
}

.p-column-index__card__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #094067;
}

.p-column-index__currentYM {
  margin-top: 0;
}

.p-column-index__currentYM:empty {
  display: none;
}

body:has(.p-column-index__currentYM:empty) .p-column-index__archive-index dd.-all {
  display: none;
}

@media not (min-width:1024px) {
  .p-column-index__nav {
    margin-top: 80px;
  }
}

.p-column-index__nav__inner {
  padding: 20px;
  border: 1px #094067 solid;
  border-radius: 5px;
  background: #EFF6FC;
}

.p-column-index__archive-index dt {
  margin-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #094067;
  letter-spacing: .12em;
}

.p-column-index__archive-index dt button {
  border: none;
}

.p-column-index__archive-index dd {
  padding-block: 1rem;
  border-top: 1px #BFDAF4 solid;
}

.p-column-index__archive-index dd:last-child,
body:has(.p-column-index__currentYM:empty) .p-column-index__archive-index dd:nth-last-child(2) {
  padding-bottom: .2rem;
}

.p-column-index__archive-index dd a {
  text-decoration: none;
}

@media (min-width:1024px) {
  .p-column-index__archive-index dt button {
    pointer-events: none;
  }
}

@media not (min-width:1024px) {
  .p-column-index__nav__inner {
    padding-block: 17px;
  }

  .p-column-index__nav__inner:has(dt button) {
    padding-top: 0;
  }
    
  .p-column-index__archive-index dt:has(button) {
    margin-bottom: 0;
  }
  
  .p-column-index__archive-index dt button {
    position: relative;
    width: 100%;
    padding: 17px 0;
    text-align: left;
    cursor: pointer;
  }

  .p-column-index__archive-index dt button::after {
    content: "\e904";
    display: block;
    width: auto;
    height: auto;
    position: absolute;
    right: 0;
    top: 50%;
    translate: 0 -40%;
    margin-top: 0;
    font-size: 12px;
    font-family: 'icomoon';
    background: none;
  }
  
  .p-column-index__archive-index dt button.is-open::after {
    content: "\e900";
  }
  
  .p-column-index__archive-index:has(dt button:not(.is-open)) {
    padding-bottom: 0;
  }
  
  .p-column-index__archive-index dt:has(button:not(.is-open)) ~ * {
    display: none;
  }
}

.p-column-index__body h4 {
  font-size: 2.2rem;
}

.p-column-index__body h5 {
  font-size: 1.9rem;
}

.p-column-index__body h6 {
  font-size: 1.7rem;
}

.p-column-index__body :is(h4,h5,h6) {
  margin-bottom: .75em;
}

.p-column-index__body :is(h4,h5,h6):where(:not(:first-child)) {
  margin-top: 1.2em;
}
.p-column-index__body #entry ul {
  margin-bottom: 1rem;
}
.p-column-index__body #entry ul li {
  list-style: disc inside;
}

.p-realvoice__mv {
  width: 1000px;
  padding: 40px 0 0;
  margin: 0 auto;
  @media screen and (max-width: 1023px) {
    width: 100%;
    margin: 0 auto;
    padding: 0;
  }
}
.p-realvoice__menu {
  width: 1000px;
  padding: 20px 0 40px;
  margin: 0 auto;
  p {
    text-align: center;
    margin-bottom: 40px;
  }
  @media screen and (max-width: 1023px) {
    width: 100%;
    margin: 0 auto;
    padding: 20px 27px 0;
    p {
      text-align: left;
    }
  }
}