/* Resets & Variables */
:root {
  --color-text: #333;
  --color-white: #fff;
  --color-black: #000;
  --color-gray-400: #9ca3af;
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-300: #d6d3d1;
  --color-stone-600: #57534e;
  --color-stone-800: #292524;

  --font-base: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  --width-pc: 1140px;
  /* 1170px - 30px padding */
  --breakpoint-sp: 768px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

/* Utilities */
.l-container {
  max-width: var(--layout-width, 1170px);
  margin: 0 auto;
  padding: 0 var(--space-base, 15px);
}

.l-main {
  min-height: 100vh;
}

.u-overflow-hidden {
  overflow: hidden;
}

.u-hidden-mobile {
  @media (max-width: 767px) {
    display: none !important;
  }
}

.u-section-py {
  padding-top: var(--space-section-sp, 56px);
  padding-bottom: var(--space-section-sp, 56px);

  @media (min-width: 768px) {
    padding-top: var(--space-section-pc, 100px);
    padding-bottom: var(--space-section-pc, 100px);
  }
}

.u-mt-20 {
  margin-top: 20px;
}

.u-delay-100 {
  animation-delay: 100ms;
}

.u-pc-only {
  display: block;

  @media (max-width: 767px) {
    display: none;
  }
}

.u-sp-only {
  display: none;

  @media (max-width: 767px) {
    display: block;
  }
}

/* 1. Page Header */
.page-header {
  position: relative;
  width: 100%;
  padding-top: 6rem;
  /* pt-24 */
  padding-bottom: 4rem;
  /* pb-16 */
  text-align: center;
  overflow: hidden;
  background-image: url('../../img/event-list/header-bg.jpg');
  background-size: cover;
  background-position: center;

  @media (min-width: 768px) {
    padding-top: 8rem;
    /* md:pt-32 */
    padding-bottom: 5rem;
    /* md:pb-20 */
  }
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-header__content {
  position: relative;
  z-index: 2;
  max-width: var(--width-pc);
  margin: 0 auto;
  padding: 0 15px;
}

.page-header__subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 2.25rem;
  /* text-4xl */
  font-weight: 300;
  /* font-light */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;

  @media (min-width: 768px) {
    font-size: 3.75rem;
    /* md:text-6xl */
  }
}

.page-header__title-wrapper {
  position: relative;
  display: inline-block;
}

.page-header__title {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.1em;
}

.page-header__line {
  width: 3rem;
  /* w-12 */
  height: 1px;
  background-color: var(--color-white);
  margin: 1.5rem auto 0;
}



/* 3. Main Content */
.main-content {
  max-width: 896px;
  /* max-w-4xl */
  margin: 0 auto;
  padding: 3rem 15px 6rem;
  /* pt-12 pb-24 */
}

/* Concept Section */
.concept {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  /* gap-12 */
  margin-bottom: 5rem;
  /* mb-20 */

  @media (min-width: 768px) {
    flex-direction: row;
    gap: 4rem;
    /* md:gap-16 */
  }
}

.concept__desc {
  text-align: left;

  @media (min-width: 768px) {
    width: 50%;
  }
}

.concept__text {
  font-size: 0.875rem;
  /* text-sm */
  color: var(--color-stone-600);
  line-height: 2;
  /* leading-loose */
  letter-spacing: 0.05em;

  @media (min-width: 768px) {
    font-family: var(--font-base);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.1em;
  }
}

.concept__note {
  font-size: 0.75rem;
  color: var(--color-stone-600);
  line-height: 1.6;
  margin-top: 1.5rem;
}

.concept__image {
  width: 100%;

  @media (min-width: 768px) {
    width: 50%;
  }
}

.concept__image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: var(--color-stone-50);
  border: 1px solid var(--color-stone-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* shadow-sm */
}

.concept__image-content {
  text-align: center;
  padding: 1rem;
}

.concept__icon {
  font-size: 1.5rem;
  /* text-2xl */
  color: var(--color-stone-200);
  margin-bottom: 0.5rem;
}

.concept__label {
  color: var(--color-stone-300);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Form Section */
.form-section {
  max-width: 768px;
  /* max-w-3xl */
  margin: 0 auto;
}

.form-wrapper {
  background-color: var(--color-white);
  border: 1px solid var(--color-stone-200);
  border-radius: 0.125rem;
  /* rounded-sm */
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);

  @media (min-width: 768px) {
    padding: 3rem;
  }
}

.form-wrapper__icon {
  margin-bottom: 1rem;
}

.form-wrapper__icon i {
  font-size: 1.875rem;
  /* text-3xl */
  color: var(--color-stone-200);
}

.form-wrapper__text {
  color: var(--color-gray-400);
  /* text-stone-400 equivalent approx */
  font-size: 0.75rem;
  /* text-xs */
  letter-spacing: 0.1em;
  line-height: 1.625;
}

/* ========================================
   Event List Styles
   ======================================== */

/* Event Section */
.section-event {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #FDFCF8;
}

.section-event__container {
  max-width: 912px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  position: relative;
}

/* Event Grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 64px 24px;
  justify-items: center;
}

@media (min-width: 768px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .event-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Event Card */
.c-card-event {
  width: 100%;
  max-width: 288px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
}

@media (max-width: 767px) {
  .c-card-event {
    max-width: 100%;
  }
}

@media (hover: hover) {
  .c-card-event:hover {
    transform: translateY(-5px);
  }

  .c-card-event:hover .c-card-event__image {
    transform: scale(1.1);
  }

  .c-card-event:hover .c-button-area,
  .c-card-event:hover .c-button-area__text {
    color: #DA6F31;
  }

  .c-card-event:hover .c-button-area__arrow {
    background-color: #444444;
    border-color: #444444;
    color: #ffffff;
    transform: translateX(4px);
  }

}

/* スマホ：タップした瞬間にテキスト色・矢印を変化（front-page と統一） */
@media (max-width: 767px) {
  .c-card-event .c-button-area,
  .c-card-event .c-button-area__text,
  .c-card-event .c-button-area__arrow {
    transition: color 0.1s, background-color 0.1s, border-color 0.1s, transform 0.1s;
  }

  .c-card-event.is-tapped .c-button-area,
  .c-card-event.is-tapped .c-button-area__text {
    color: #DA6F31 !important;
  }

  .c-card-event.is-tapped .c-button-area__arrow {
    background-color: #444444 !important;
    border-color: #444444 !important;
    color: #ffffff !important;
    transform: translateX(4px);
  }

}

/* カード全体をクリック可能にするためのリンク */
.c-card-event__link-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.c-card-event__link-image {
  display: block;
  margin-bottom: 1.5rem;
}

.c-card-event__image-container {
  overflow: hidden;
  background-color: #f0f0f0;
}

.c-card-event__image {
  transition: transform 0.6s ease;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  object-fit: cover;
}

.c-card-event__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.c-card-event__tag-wrapper {
  margin-bottom: 1rem;
}

.c-card-event__tag {
  background-color: #DE5902;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
  border-radius: 12px;
}

.c-card-event__date {
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  letter-spacing: 0.1em;
}

.c-card-event__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.7;
  letter-spacing: 0.05em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button Area - front-page と統一 */
.c-button-area {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs, 8px);
  margin-top: auto;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-main, #444444);
  align-self: flex-start;
  font-size: var(--font-btn-size, 14px);
  font-weight: 400;
  line-height: var(--font-btn-lh, 1.714);
  transition: 0.3s;
}

.c-button-area__text {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-size:16px;
  font-weight: 400;
  transition: 0.3s;
  letter-spacing: 0;
}

.c-button-area__arrow {
  width: var(--space-l-alt, 32px);
  height: var(--space-l-alt, 32px);
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.c-button-area__arrow svg {
  width: 16px;
  height: 16px;
}

/* Pagination */
.pagination {
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.pagination__item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  text-decoration: none;
  color: #9ca3af;
  transition: color 0.3s;
}

.pagination__item:hover {
  color: #333333;
}

.pagination__item--active {
  border-bottom: 2px solid #333333;
  color: #333333;
}