:root {
  --primary: #8b1e24;
  --bg-gray: #f8f6f6;

  --text: "Noto Sans JP", sans-serif;
}

/* ----------------------------------------------
top
----------------------------------------------- */
.p-topSection {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media screen and (max-width: 767px) {
  .p-topSection {
    gap: 20px;
  }
}

/*  hero
----------------------------------------------- */

.p-topHero {
  position: relative;
  width: 100%;
  aspect-ratio: 140 / 55;
}

.p-topHero__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;

  max-width: 550px;
  width: 95%;
}

/* スライド */
.p-topHero__slide {
  position: relative;
}

.p-topHero__slide .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  aspect-ratio: 140 / 55;
}

.p-topHero__slide .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ページネーション */
.p-topHero__slide .swiper-pagination-bullets {
  position: absolute;
  width: auto !important;
  left: auto !important;
  right: 10px !important;
  z-index: 1;
}

.p-topHero__slide .swiper-pagination-bullet {
  background-color: #d9d9d9;
  height: 8px;
  width: 8px;
  border-radius: 0;
  margin: 0 4px; /* ドット間の余白 */
  opacity: 1;
}

/* ページネーション アクティブ*/
.p-topHero__slide .swiper-pagination-bullet-active {
  background-color: var(--primary);
}

@media screen and (max-width: 1000px) {
  .p-topHero {
    aspect-ratio: 390 / 300;
  }

  .p-topHero__slide .swiper-slide {
    aspect-ratio: 390 / 300;
  }

  .p-topHero__copy {
    width: 85%;
  }

  .p-topHero__slide .swiper-pagination-bullet {
    height: 6px;
    width: 6px;
    margin: 0 2px !important; /* ドット間の余白 */
  }
}

/*  news
----------------------------------------------- */

.p-topNews__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p-topNews__item time {
  font-size: 0.875em;
  color: #777;
}

.p-topNews__item h3 {
  font-size: 1.125em;
  font-weight: 700;
}

.p-topNews__item p {
  font-family: var(--text);
  margin-top: 0.875em;
  font-weight: 400;
}

@media screen and (min-width: 768px) {
  .p-topNews__item a:hover h3 {
    color: var(--primary);
  }
}

@media screen and (max-width: 767px) {
  .p-topNews__list {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*  EVENT 下層共通
----------------------------------------------- */

.p-event__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p-event__item .c-card {
  background-color: #fafafa;
}

.p-event__item img {
  margin-bottom: 0.875em;
}

.p-event__item time {
  font-size: 0.875em;
  color: #777;
}

.p-event__item h3 {
  font-size: 1.125em;
  font-weight: 700;
}

.p-event__item p {
  font-size: 0.875em;
  font-family: var(--text);
  margin-top: 0.5em;
}

@media screen and (min-width: 768px) {
  .p-event__item a:hover h3 {
    color: var(--primary);
  }
}

@media screen and (max-width: 767px) {
  .p-event__list {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*  ABOUT
----------------------------------------------- */

.p-topAbout__text {
  max-width: 800px;
  margin: 0 auto;
}

.p-topAbout__btnWrap {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p-topAbout__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  color: var(--primary);
  background-color: #fff;
  border: 1px solid var(--primary);

  font-size: 20px;
  font-weight: 700;
  padding: 0.5em 2.5em;
  border-radius: 5px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .p-topAbout__btn:hover {
    color: #fff;
    background-color: var(--primary);
  }
}

@media screen and (max-width: 767px) {
  .p-topAbout__btnWrap {
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }

  .p-topAbout__btn {
    font-size: 16px;
  }
}

/*  FIELD 
----------------------------------------------- */

.p-topField__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p-topField__item h3 {
  position: relative;
  padding-bottom: 0.875em;
  margin-bottom: 1em;
  font-size: 1.125em;
  font-weight: 700;
}

.p-topField__item h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-block;
  width: 2em;
  height: 3px;
  background-color: var(--primary);
}

.p-topField__item p {
  font-family: var(--text);
  font-weight: 400;
}

@media screen and (max-width: 767px) {
  .p-topField__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ----------------------------------------------
news 一覧
----------------------------------------------- */

.p-news__item > a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 1.25em;
  padding: 1.25em;
  padding-right: calc(2em + 1.25em);
  border-bottom: solid 1px #ccc;
}

.p-news__item > a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.5em;
  transform: translateY(-50%);
  width: 1.5em;
  height: 1.5em;
  background: url("../img/icon-arrow.svg") center / contain no-repeat;
  transition: 0.4s ease;
}

.p-news__item time {
  font-size: 0.75em;
  color: #777;
  display: flex;
  align-items: center;
}

.p-news__item h3 {
  font-weight: 700;
}

@media screen and (min-width: 768px) {
  .p-news__item > a:hover {
    border-bottom: solid 1px var(--primary);
  }

  .p-news__item > a:hover::after {
    transform: translateY(-50%) translateX(4px);
  }
}

@media screen and (max-width: 767px) {
  .p-news__item > a {
    padding-inline: 0em;
    padding-right: calc(2em + 1.25em);
    padding-block: 0.75em;
  }

  .p-news__item > a::after {
    right: 0.5em;
  }
}

/* ----------------------------------------------
news 詳細
----------------------------------------------- */

.p-newsDatail__titleBox {
  margin-bottom: 40px;
}

.p-newsDatail__titleBox time {
  font-size: 0.75em;
  color: #777;
  display: flex;
  align-items: center;
}

.p-newsDatail__titleBox h3 {
  border-left: 3px solid var(--primary);
  padding-inline: 0.5em;
  line-height: 1.3;
  font-size: 1.25em;
  margin-top: 16px;
  font-weight: 700;
}

.p-newsDatail__content {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.p-newsDatail__content a {
  color: var(--primary);
  text-decoration: underline;
}

.p-news__backBtn {
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .p-newsDatail__content a:hover {
    opacity: 0.6;
  }
}

@media screen and (max-width: 767px) {
  .p-newsDatail__titleBox {
    margin-bottom: 20px;
  }

  .p-news__backBtn {
    margin-bottom: 20px;
  }
}

/* ----------------------------------------------
event 一覧
----------------------------------------------- */

.p-event__calendarMonthList {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 20px;
  background-color: #fff;
  margin-bottom: 40px;
}

.p-event__calendarMonth {
  font-weight: 700;
}

.p-event__calendarMonth.-currunt {
  font-size: 1.125rem;
}

.p-event__calendarMonth.-prev,
.p-event__calendarMonth.-next {
  position: relative;
}

.p-event__calendarMonth.-prev:after,
.p-event__calendarMonth.-next:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.25em;
  height: 1.25em;

  background: url("../img/icon-arrow02.svg") center / contain no-repeat;
}

.p-event__calendarMonth.-prev {
  padding-left: 1.25em;
}

.p-event__calendarMonth.-next {
  padding-right: 1.25em;
}

.p-event__calendarMonth.-prev:after {
  left: 0;
  transform: translateY(-50%) rotate(180deg);
}

.p-event__calendarMonth.-next:after {
  right: 0;
  transform: translateY(-50%);
}

.p-event__catBox {
  padding-block: 1em;
}

.p-event__catBox + .p-event__catBox {
  border-top: 1px solid #ccc;
}

.p-event__catTitle {
  font-size: 1.125em;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1em;
}

.p-event__catList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.p-event__cat {
  display: block;
  width: max-content;
  background-color: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  padding: 0.15em 0.75em;
  font-family: var(--text);
}

.p-event__cat.-active {
  background-color: var(--primary);
  color: #fff;
}

@media screen and (max-width: 767px) {
  .p-event__calendarMonthList {
    padding: 8px;
    margin-bottom: 20px;
  }

  .p-event__calendarMonth.-currunt {
    font-size: 1em;
  }

  .p-event__cat {
    font-size: 1em;
  }
}

/* ----------------------------------------------
event 詳細
----------------------------------------------- */

.p-eventDatail__info {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 20px 40px;
  align-items: center;
}

.p-eventDatail__titleBox {
  grid-area: 1 / 1 / 2 / 3;
}

.p-eventDatail__titleBox h3 {
  font-size: 1.5em;
  font-weight: 700;
}

.p-eventDatail__info img {
  max-width: 370px;
  grid-area: 2 / 1 / 3 / 2;
  margin-bottom: auto;
}

.p-eventDatail__list {
  grid-area: 2 / 2 / 3 / 3;
}

.p-eventDatail__item {
  display: flex;
  gap: 1em;

  padding-block: 1.25em;
  padding-inline: 1em;
  border-bottom: 1px solid #ccc;
  font-family: var(--text);
}

.p-eventDatail__item:first-child {
  border-top: 1px solid #ccc;
}

.p-eventDatail__item dt {
  color: var(--primary);
  min-width: 100px;
}

.p-eventImgBox {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;

  margin-top: 40px;
}

.p-eventImgBox img {
  max-width: calc((100% - 1em) / 2);
}

.p-event__backBtn {
  margin-top: 80px;
  margin-bottom: 40px;
}

@media screen and (max-width: 767px) {
  .p-eventDatail__info {
    grid-template-columns: 1fr;
  }

  .p-eventDatail__titleBox,
  .p-eventDatail img,
  .p-eventDatail__list {
    grid-area: unset;
  }
  .p-eventDatail img {
    max-width: 100%;
  }

  .p-eventDatail__item {
    flex-direction: column;
    gap: 0;
  }

  .p-eventDatail__item dt {
    min-width: 100%;
  }
}

/* ----------------------------------------------
MEMBERS LIST 会員名簿
----------------------------------------------- */

.p-member .p-member__section:nth-child(odd) {
  background-color: var(--bg-gray);
}

.p-member__catList {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.p-member__cat {
  display: block;
  background-color: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  padding: 0.15em 0.75em;
  text-align: center;
  font-weight: 700;
}

.p-member__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.p-member__btn {
  display: block;
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  padding: 0.75em 0.5em;
  text-align: center;
  font-family: var(--text);
  font-weight: 600;
  transition: 0.4s ease;
}

@media screen and (min-width: 768px) {
  .p-member__btn:hover {
    border-bottom: 1px solid var(--primary);
  }
}

@media screen and (max-width: 767px) {
  .p-member__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------------------------------------
モーダル 中身
----------------------------------------------- */

.p-member__profileHeading {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 0 10px;

  padding-bottom: 1em;
  margin-bottom: 1.5em;
  border-bottom: 1px solid #ccc;
}

.p-member__profileTagList {
  grid-area: 1 / 1 / 2 / 3;
}

.p-member__profileName {
  grid-area: 2 / 1 / 3 / 2;
  font-weight: 500;
  font-size: 1.5em;
}

.p-member__profileName small {
  margin-right: 10px;
}

.p-member__profileSnsList {
  grid-area: 2 / 2 / 3 / 3;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.p-member__profileSns {
  width: 2rem;
  height: 2rem;
}

.p-member__profileText {
  font-family: var(--text);
}

.p-member__profileImgBox {
  display: grid;
  gap: 20px;
  margin-top: 1.5em;
}

.p-member__profileImgBox:has(img:only-child) {
  grid-template-columns: 1fr;
}

.p-member__profileImgBox:has(img:nth-child(2)) {
  grid-template-columns: repeat(2, 1fr);
}

.p-member__profileImgBox:has(img:nth-child(3)) {
  grid-template-columns: repeat(3, 1fr);
}

.p-member__profileImgBox + .c-btn {
  margin-top: 1.5em;
}

@media screen and (max-width: 767px) {
  .p-member__profileHeading {
    grid-template-columns: 1fr 72px;
  }

  .p-member__profileName {
    font-size: 18px;
  }

  .p-member__profileImgBox:has(img:nth-child(2)),
  .p-member__profileImgBox:has(img:nth-child(3)) {
    grid-template-columns: 1fr;
  }

  .p-member__profileSnsList {
    gap: 4px;
  }

  .p-member__profileSns {
    width: 24px;
    height: 24px;
  }

  .p-member__profileImgBox {
    margin-top: 1em;
  }

  .p-member__profileImgBox + .c-btn {
    margin-top: 1em;
  }
}

/* ----------------------------------------------
ABOUT 
----------------------------------------------- */

.p-about__text {
  max-width: 800px;
  margin-inline: auto;
  font-family: var(--text);
}

.p-about__promoterBox {
  max-width: 800px;
  margin-inline: auto;
  background-color: #fafafa;
  padding: 40px 20px;
  font-family: var(--text);
  margin-top: 40px;
}

.p-about__promoterBox h4 {
  text-align: center;
  font-weight: 700;
  margin-bottom: 20px;
}

.p-about__promoterBox h4 > small {
  font-weight: 400;
}

.p-about__promoterList {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px 0;
}

.p-about__promoterList li {
  text-align: center;
}

.p-about__representative {
  text-align: end;
  font-family: var(--text);
  margin-top: 40px;
}

@media screen and (max-width: 767px) {
  .p-about__promoterList {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 436px) {
  .p-about__promoterList {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------------------------------------
PROJECT 事業 
----------------------------------------------- */

.p-project__list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
  margin-top: 60px;
}

.p-project__item {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid #ccc;
}

.p-project__title {
  font-size: 1.5em;
  font-weight: 700;
}

.p-project__textBox p {
  font-family: var(--text);
}

.p-project__text {
  margin-top: 1.5em;
  margin-bottom: 1em;
}

.p-project__note {
  font-size: 0.85em;
  text-indent: -1em;
  padding-left: 1em;
}

.p-project__imgBox {
  max-width: 375px;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-project__imgBox > img {
  border: 0.5px solid #ccc;
}

@media screen and (max-width: 767px) {
  .p-project__list {
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 40px;
  }

  .p-project__item {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
  }

  .p-project__text {
    margin-top: 1em;
  }
}

/* ----------------------------------------------
HISTORY 協会の歴史 
----------------------------------------------- */

.p-history__text {
  text-align: center;
  margin-top: 1.5em;
  margin-bottom: 60px;
  letter-spacing: 10%;
}

.p-history__imgList {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.p-history__imgBox {
  position: relative;
  padding: 20px;
  padding-bottom: calc(20px + 32px);
  background-color: #fafafa;
  max-width: 390px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 39 / 36;
}

.p-history__imgBox > p {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  text-align: center;
}

.p-history__imgBox > img {
  border: 1px solid #ccc;
}

.p-history__imgList .p-history__imgBox:first-child > img {
  height: 100%;
  width: auto;
}

.p-history__imgList .p-history__imgBox:last-child > img {
  width: 100%;
  height: auto;
}

.p-history__repList {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-history__repItem {
  display: flex;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid #ccc;
}

.p-history__repItem > img {
  max-width: 250px;
}

.p-history__repTextBox > h4 {
  font-size: 1.5em;
  font-weight: 700;
}

.p-history__repTextBox > h4 > span {
  display: block;
  font-size: 0.85rem;
}

.p-history__repTextBox > p {
  font-family: var(--text);
  margin-top: 1em;
}

@media screen and (max-width: 767px) {
  .p-history__text {
    text-align: justify;
  }

  .p-history__imgList {
    flex-direction: column;
    align-items: center;
  }

  .p-history__imgBox {
    aspect-ratio: unset;
  }

  .p-history__imgList .p-history__imgBox:first-child > img {
    width: 100%;
    height: auto;
  }

  .p-history__repItem {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .p-history__repTextBox > h4 {
    font-size: 18px;
    font-weight: 700;
  }
}

/* 年表
----------------------------------------------- */
.p-chronology {
  margin-top: 60px;
}

.p-chronology__item {
  width: 100%;
  display: flex;
  gap: 20px;
  padding-bottom: 60px;
}

.p-chronology__year {
  flex-shrink: 0;
  font-family: var(--text);
  color: var(--primary);
  min-width: 125px;
}

.p-chronology__content {
  font-family: var(--text);
  position: relative;
  padding-left: 40px;
}

.p-chronology__content::before {
  content: "";
  position: absolute;
  left: -4.5px;
  top: 12px;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  z-index: 1;
}

.p-chronology__content::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 0px;
  width: 1px;
  height: calc(100% + 60px);
  background-color: #000;
}

.p-chronology .p-chronology__item:last-child .p-chronology__content:after {
  height: calc(100%);
}

.p-chronology__content > h4 {
  font-size: 1.125em;
  font-weight: 600;
  margin-bottom: 0.5em;
}

.p-chronology__content > img {
  width: 100%;
  margin-top: 20px;
}

@media screen and (max-width: 767px) {
  .p-chronology {
    margin-top: 40px;
  }

  .p-chronology__item {
    gap: 10px;
    padding-bottom: 40px;
  }

  .p-chronology__year {
    min-width: 60px;
  }

  .p-chronology__year small {
    display: block;
  }

  .p-chronology__content {
    padding-left: 20px;
  }

  .p-chronology__content > img {
    position: relative;
    width: calc(100% + 90px);
    margin-left: -90px;
    z-index: 1;
  }
}

/* ----------------------------------------------
gallery フォトギャラリー 
----------------------------------------------- */

/* ポップアップ (lightbox) */
.lightbox {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  max-width: 100vw !important;
  height: 100svh;
}

.lightboxOverlay {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

.lb-dataContainer {
  background-color: #fff;
  border-radius: 0;
  padding-top: 0px;
}

.lb-outerContainer {
  border-radius: 0;
}

.lb-dataContainer,
.lb-outerContainer,
.lb-container,
.lb-image {
  min-width: 320px !important;
  width: 100%;
  height: auto !important;
  max-width: 800px !important;
}

.lb-data .lb-details {
  width: 100%;
}

.lb-data .lb-caption {
      text-align: center;
  width: 100%;
  display: block;
  color: #000;
  font-family: var(--text);
  font-weight: 500;
  padding-left: 0.5em;
padding-block: 1em 0.5em;
}

.lb-prev,
.lb-next {
  background-image: none !important;
  position: relative;

  background-color: #fff;

  display: block !important;
  opacity: 1 !important;
}

.lb-prev::before,
.lb-next::before {
  position: absolute;
  top: 50%;
  border-radius: 100px;
}

.lb-prev::before {
  content: "";
  left: -60px;
  width: 40px;
  height: 40px;
  background: url(../img/icon-arrow02.svg) no-repeat center / 70% auto #fff;
  transform: translateY(-50%) rotate(180deg);
}

.lb-next::before {
  content: "";
  right: -60px;
  width: 40px;
  height: 40px;
  background: url(../img/icon-arrow02.svg) no-repeat center / 70% auto #fff;
  transform: translateY(-50%);
}

.lb-closeContainer {
  transform: translate(30px, -30px);
}

.lb-close {
  position: absolute;
  display: flex !important;
  justify-content: center;
  align-items: center;

  width: 50px !important;
  height: 50px !important;

  background: var(--primary) !important;
  background-image: none !important;

  border-radius: 50%;
  opacity: 1 !important;

  color: #fff !important;

  top: 0;
  right: 0;
  z-index: 999;
}

.lb-close::before {
  content: "×";
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

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


.lb-dataContainer,
.lb-outerContainer,
.lb-container,
.lb-image {
      max-width: 70vw!important;
    width: 100%!important;
    height: auto!important;
    min-width: auto!important;
}


  .lightbox .lb-image {
    width: 100% !important;
    height: auto !important;
  }

  .lb-close {
    width: 32px !important;
    height: 32px !important;
  }

  .lb-close::before {
    font-size: 20px;
  }

  .lb-closeContainer {
    transform: translate(16px, -16px);
    max-width: 85vw;
    width: 100%;
  }

  .lb-prev::before {
    left: -32px;
    width: 24px;
    height: 24px;
  }

  .lb-next::before {
    right: -32px;
    width: 24px;
    height: 24px;
  }
}

.p-gallery .p-gallery__section:nth-child(odd) {
  background-color: var(--bg-gray);
}

.p-gallery__imgBox {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.p-gallery__imgBox + .c-btn {
  margin-top: 40px;
}

.p-gallery__img {
  aspect-ratio: 190 / 120;
}

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

@media screen and (max-width: 767px) {
  .p-gallery__imgBox {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-gallery__imgBox + .c-btn {
    margin-top: 20px;
  }
}

/* ----------------------------------------------
LOGIN
----------------------------------------------- */

.p-login__form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-login__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-login__title {
  font-size: 1.125rem;
  font-weight: bold;
}

.p-login__input {
  border: 1px solid var(--primary);
  padding: 10px;
  font-family: var(--text);
  border-radius: 5px;
}

.p-login__contact {
  max-width: 550px;
  margin: 40px auto 0;
}

.p-login__contactText {
  font-size: 0.875rem;
  text-align: center;
  font-family: var(--text);
  line-height: 28px;
}

.p-login__contactBox {
  background-color: var(--bg-gray);
  text-align: center;
  padding: 16px;
  margin-top: 8px;
}

.p-login__contactTitle {
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: bold;
}

.p-login__contactTel {
  font-weight: 500;
  font-size: 1.25rem;
  font-family: var(--text);
}

.p-login__contactTel span {
  font-size: 0.875rem;
}

/* ----------------------------------------------
MEMBERS ONLY
----------------------------------------------- */
.p-mypage__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.p-mypage__contentItem {
  border: 1px solid var(--primary);
  font-size: 1rem;
  text-align: center;
  position: relative;
  /* aspect-ratio: 64 / 47; */
  background-color: #fafafa;

  flex-shrink: 0;
}

.p-mypage__contentItem a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
  padding-bottom: calc(20px + 36px);
}

.p-mypage__icon {
  width: 50px;
  margin-bottom: 16px;
}

.p-mypage__textBox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-mypage__title {
  font-size: 1.125rem;
  font-weight: bold;
}

.p-mypage__text {
  font-family: var(--text);
}

.p-mypage__arrow {
  position: absolute;
  background-color: var(--primary);
  padding: 10px 20px;
  bottom: 0;
  right: 0;
  border-radius: 5px 0 0 0;
}

.p-mypage__arrow img {
  display: block;
  width: 16px;
}

.p-logout__btn {
  color: var(--primary);
  background-color: #fff;
  border: 1px solid var(--primary);
  border-radius: 5px;
  padding: 12px 20px;
  font-size: 1.125rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto 0;
  transition: 0.4s ease;
}

@media screen and (min-width: 768px) {
  .p-mypage__contentItem a:hover {
    box-shadow: 0px 0px 16px 0px #8b1e2341;
  }

  .p-logout__btn:hover {
    color: #ffffff;
    background-color: var(--primary);
    border: 1px solid var(--primary);
  }
}

@media screen and (max-width: 767px) {
  .p-mypage__content {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ----------------------------------------------
DOWNLOAD
----------------------------------------------- */
.p-downloadTag__list {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.p-downloadTag__item {
  font-weight: bold;
  color: var(--primary);
  border-radius: 5px;
  border: 1px solid var(--primary);
  padding: 8px 20px;
  cursor: pointer;
  background-color: #ffffff;
}

.p-downloadTag__item.-active {
  background-color: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  padding: 8px 20px;
}

.p-download__item.is-hidden {
  display: none !important;
}

.p-download__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-download__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px 16px;
  border-bottom: 1px solid #cccccc;
  gap: 16px;
}

.p-download__info {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.p-download__infoBox {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.p-download__date {
  font-size: 0.875rem;
  color: #777777;
  font-weight: bold;
  min-width: 110px;
}

.p-download__tag {
  color: var(--primary);
  border: 1px solid var(--primary);
  font-size: 0.875rem;
  font-weight: 900;
  padding: 4px 16px;
  border-radius: 30px;
}

.p-download__text {
  font-weight: bold;
  line-height: 1.5;
  position: relative;
  font-size: 1rem;
  padding-right: 33px;
}

.p-download__text::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.p-download__text.-pdf::after {
  background: url(../img/icon-pdf.svg) no-repeat center / contain;
}
.p-download__text.-excel::after {
  background: url(../img/icon-excel.svg) no-repeat center / contain;
}
.p-download__text.-word::after {
  background: url(../img/icon-word.svg) no-repeat center / contain;
}

@media screen and (max-width: 767px) {
  .p-downloadTag__list {
    font-size: 0.875rem;
    gap: 10px;
  }

  .p-download__item {
    flex-direction: column;
  }
  .p-download__info {
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
  }
}
