/* 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;
  background-color: #FDFCF8;
}

.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/column-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;
}

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

.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__arrow {
  background-color: #DE5902;
  border-color: #DE5902;
  color: #ffffff;
}

.c-card-event:hover .c-button-area__arrow::before {
  color: #ffffff;
}

/* カード全体をクリック可能にするためのリンク */
.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 */
.c-button-area {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  cursor: pointer;
  transition: opacity 0.3s;
  text-decoration: none;
  color: inherit;
  align-self: flex-start;
}

.c-button-area:hover {
  opacity: 0.7;
}

.c-button-area__text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.c-button-area__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.c-button-area__arrow::before {
  content: '→';
  font-size: 14px;
  color: #333333;
  transition: color 0.3s;
}

.c-card-event:hover .c-button-area__arrow::before {
  color: #ffffff;
}

.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;
}

/* ========================================
   Column List Styles
   ======================================== */

.container {
  max-width: var(--width-pc);
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 767px) {
  .container {
    padding: 0;
  }
}

.l-columns {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 80px 0;
}

@media (min-width: 768px) {
  .l-columns {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
  }
}

/* Sidebar */
.l-columns__sidebar {
  width: 100%;
}

@media (min-width: 768px) {
  .l-columns__sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
  }
}

.p-sidebar-nav {
  @media (max-width: 767px) {
    padding: 0 15px;
  }
}

.p-sidebar-nav__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  color: #DE5902;
  letter-spacing: 0.1em;
  border-bottom: none;
}

.p-sidebar-nav__list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.p-sidebar-nav__list li,
/* target li specifically to override any global styles */
.p-sidebar-nav__item {
  list-style: none;
}

.p-sidebar-nav__list li::marker,
.p-sidebar-nav__item::marker {
  content: none;
  display: none;
}

.p-sidebar-nav__item {
  margin-bottom: 10px;
}

.p-sidebar-nav__link {
  display: block;
  padding: 8px 0;
  color: #666;
  font-size: 14px;
  transition: color 0.3s;
}

.p-sidebar-nav__link:hover,
.p-sidebar-nav__link--active {
  color: #DE5902;
  font-weight: 700;
}

/* Main Content */
.l-columns__content {
  flex: 1;
  width: 100%;
}

.p-column-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  border-top: 1px solid #ddd;
}

/* Column Card */
.p-column-card {
  width: 100%;
  border-bottom: 1px solid #ddd;
  padding: 30px 15px;
  transition: background-color 0.3s;

  @media (min-width: 768px) {
    padding: 30px 0;
  }
}

.p-column-card:hover {
  background-color: #fafafa;
}

.p-column-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  gap: 20px;
}

@media (min-width: 768px) {
  .p-column-card__link {
    flex-direction: row;
    align-items: flex-start;
  }
}

.p-column-card__img-box {
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .p-column-card__img-box {
    width: 260px;
  }
}

.p-column-card__img-wrapper {
  position: relative;
  padding-top: 66.6%;
  /* 3:2 aspect ratio */
  overflow: hidden;
  border-radius: 0;
}

.p-column-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.p-column-card:hover .p-column-card__img {
  transform: scale(1.1);
}

.p-column-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.p-column-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.p-column-card__tag {
  background-color: #DE5902;
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 99px;
  color: #fff;
  font-weight: 700;
}

.p-column-card__time {
  font-size: 13px;
  color: #999;
  font-weight: 500;
}

.p-column-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Pagination (Event List Style) */
.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;
  border: none;
}

.pagination__item:hover {
  color: #333333;
}

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