/* activities.css - 活動ページ固有のスタイル */

/* 新着イベントセクション */
.new-event-section {
  display: flex;
  padding: 60px 48px;
  flex-direction: column;
  align-items: center;
  background-color: var(--ivory);
}

/* 後方互換性のため旧クラス名も保持 */
.new-event-title {
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_48);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
  color: var(--shinonome);
}

.new-event-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  align-self: stretch;
}

.new-event-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

.new-event-block {
  display: flex;
  align-items: center;
  gap: 48px;
  align-self: stretch;
}

.new-event-section .event-date {
  color: var(--gray);
  font-family: var(--esteban);
  font-size: var(--font_32);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  min-width: 150px;
  flex-shrink: 0;
}

.new-event-section .event-description {
  overflow: hidden;
  color: var(--gray);
  text-overflow: ellipsis;
  font-family: var(--noto);
  font-size: var(--font_20);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  flex: 1 0 0;
}

.event-see-more {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  align-self: stretch;
  text-decoration: none;
  transition: all 0.2s ease;
}

.event-see-more:hover {
  transform: translateX(-4px);
}

.event-see-more:hover .see-more-text {
  color: #6a6a6a;
}

.event-see-more:hover img {
  transform: translateX(4px);
}

.see-more-text {
  color: var(--gray);
  font-family: var(--noto);
  font-size: var(--font_20);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.event-see-more img {
  transition: transform 0.2s ease;
}

.event-link img {
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
  cursor: pointer;
}

/* 年間スケジュールセクション */
.yearly-schedule-section .section-title {
  color: var(--ivory);
}

.yearly-schedule-title {
  text-align: center;
  font-family: var(--noto);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
  color: var(--ivory);
}

.yearly-schedule-description {
  color: var(--ivory);
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_28);
  font-style: normal;
  font-weight: 400;
  line-height: 129.945%; /* 46.78px */
  letter-spacing: 3.24px;
  align-self: stretch;
  padding: 0 10%;
}

.activity-title {
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_48);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
  color: var(--shinonome);
}

.PG-product-title {
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_48);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
  color: var(--black);
}

.yearly-schedule-section {
  display: flex;
  padding: 60px 32px;
  flex-direction: column;
  align-items: center;
  background: var(--shinonome);
  position: relative;
}

.yearly-schedule-section .section-title {
  color: var(--ivory);
  text-align: center;
  font-family: var(--noto);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
}

.yearly-events {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 64px;
  margin-top: 60px;
}

.half-events {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
}

.monthly-event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  gap: 32px;
}

.month-and-event {
  display: flex;
  align-items: center;
  gap: 24px;
}

.month {
  display: flex;
  align-items: center;
  gap: 16px;
}

.number {
  color: var(--ivory);
  font-family: var(--esteban);
  font-size: 60px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.roman {
  color: var(--ivory);
  font-family: var(--esteban);
  font-size: 38px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.event-multiple {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}

.event {
  color: var(--ivory);
  font-family: var(--noto);
  font-size: var(--font_22);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.monthly-event img {
  width: 190px;
  height: 127px;
  aspect-ratio: 190/127;
}

.background-logo {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  font-size: 0;
  line-height: 0;
}

.background-logo img {
  opacity: 0.2;
  display: block;
  margin: 0;
  padding: 0;
}

/* 活動写真セクション */
.activity-photo-section {
  display: flex;
  padding: 60px 0px;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--shinonome);
}

.activity-photo-section .section-title {
  color: var(--ivory);
  margin-top: 0;
  margin-bottom: 48px;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 親要素の制約を超えて画面幅いっぱいに表示 */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  box-sizing: border-box;
}

.carousel-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  transition: transform 2s ease-in-out;
  will-change: transform;
}

.carousel-track {
  overflow: hidden;
  width: 100%;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.item img {
  width: 331px;
  height: 218px;
  object-fit: cover;
  object-position: center;
}

/* 縦長の画像もトリミングして表示 */
.item img.portrait {
  object-fit: cover;
}

/* 横長の画像はトリミングして表示 */
.item img.landscape {
  object-fit: cover;
}

.move-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.move-buttons button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.move-buttons img {
  width: 64px;
  height: 64px;
  display: block;
  pointer-events: none; /* 画像のクリック判定を無効化し、button要素のクリック判定のみ有効にする */
}

.event-name {
  color: var(--ivory);
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_20);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.event-text {
  color: var(--ivory);
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_14);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

/* PG製品セクション */
.PG-product-section {
  display: flex;
  padding: 60px 0px;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: var(--shinonome);
  position: relative;
  z-index: -2;
}

.PG-product-section .section-title {
  padding: 0 10%;
  color: var(--ivory);
}

/* 後方互換性のため旧クラス名も保持 */
.PG-product-title {
  text-align: center;
  font-family: var(--noto);
  font-size: var(--font_48);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 48px;
  color: var(--black);
}

.PG-product-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.product-row {
  display: none;
}

.product-column {
  display: none;
}

.product-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  flex: 0 0 auto;
  width: calc((100% - 144px) / 4);
}

.product-block:hover {
  text-decoration: underline 1px solid var(--shinonome);
}

.product-photoframe {
  border-radius: 12px;
  background: #393939;
}

.product-photoframe img {
  width: 200px;
  height: 200px;
  border-radius: 12px;
}

.service-name {
  color: var(--ivory);
  text-align: center;
  align-self: stretch;
  font-family: var(--noto);
  font-size: var(--font_16);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.developer {
  color: var(--ivory);
  text-align: center;
  align-self: stretch;
  font-family: var(--noto);
  font-size: var(--font_14);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

.background-logo-left {
  position: absolute;
  left: 0;
  bottom: 34px;
  z-index: -1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  font-size: 0;
  line-height: 0;
}

.background-logo-left img {
  opacity: 0.06;
  display: block;
  margin: 0;
  padding: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .new-event-section {
    padding: 59px 42px;
  }

  .new-event-title {
    font-size: var(--font_36);
    margin-bottom: 32px;
  }

  .new-event-section .event-date {
    font-family: var(--jomolhari);
    font-size: var(--font_24);
    min-width: 120px;
  }

  .new-event-section .event-description {
    font-family: var(--inter);
    font-size: var(--font_16);
  }

  .see-more-text {
    font-size: var(--font_16);
  }

  .event-link img {
    width: 20px;
    height: 20px;
  }

  .yearly-schedule-section {
    padding: 100px 12px;
    z-index: -2;
  }

  .yearly-schedule-title {
    font-size: var(--font_36);
    margin-bottom: 32px;
  }

  .yearly-schedule-description {
    font-size: var(--font_24);
  }

  .yearly-events {
    flex-direction: column;
    justify-content: unset;
    gap: 34px;
  }

  .half-events {
    flex-direction: column;
    align-items: center;
    gap: 34px;
  }

  .monthly-event {
    gap: 12px;
    width: 100%;
    justify-content: space-between;
  }

  .month-and-event {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-shrink: 0;
  }

  .month {
    display: flex;
    justify-content: space-between;
    min-width: 90px;
  }

  .number {
    font-size: 32px;
    opacity: 0.4;
  }

  .roman {
    font-size: var(--font_24);
    opacity: 0.4;
  }

  .event-multiple {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
  }

  .event {
    font-family: var(--inter);
    font-size: var(--font_16);
  }

  .monthly-event img {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    margin-left: auto;
  }

  .background-logo {
    position: absolute;
    right: -30px;
    bottom: 34px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }

  .background-logo img {
    opacity: 0.2;
    display: block;
    margin: 0;
    padding: 0;
  }

  .activity-photo-section .section-title {
    font-size: var(--font_36);
    margin-bottom: 32px;
  }

  .carousel-container {
    gap: 12px;
  }

  .carousel-inner {
    justify-content: flex-start;
  }

  .item {
    flex: 0 0 auto;
  }

  .item img {
    width: 331px;
    height: 200px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center;
  }

  /* 縦長の画像もトリミングして表示 */
  .item img.portrait {
    object-fit: cover;
  }

  /* 横長の画像はトリミングして表示 */
  .item img.landscape {
    object-fit: cover;
  }

  .move-buttons {
    padding-bottom: 12px;
    gap: 24px;
  }

  .move-buttons img {
    width: 48px;
    height: 48px;
  }

  .event-name {
    font-size: var(--font_20);
  }

  .PG-product-title {
    font-size: var(--font_36);
    margin-bottom: 32px;
  }

  .PG-product-list {
    gap: 48px 64px;
    padding: 0 32px;
  }

  .product-block {
    width: calc((100% - 192px) / 4);
  }

  .product-photoframe {
    background: var(--ivory);
  }

  .product-photoframe img {
    width: 144px;
    height: 144px;
  }
}

/* スマホ対応（600px以下） */
@media (max-width: 600px) {
  .PG-product-list {
    gap: 24px;
    padding: 0 24px;
  }

  .product-block {
    width: 100%;
  }
}

/* 900-1200pxの範囲での調整 */
@media (min-width: 901px) and (max-width: 1200px) {
  .yearly-schedule-section {
    padding: 80px 24px;
  }

  .yearly-events {
    gap: 48px;
  }

  .half-events {
    gap: 48px;
  }

  .monthly-event {
    gap: 20px;
  }

  .month-and-event {
    gap: 32px;
  }

  .month {
    min-width: 110px;
    gap: 12px;
  }

  .number {
    font-size: 44px;
  }

  .roman {
    font-size: 32px;
  }

  .event {
    font-size: var(--font_20);
  }

  .monthly-event img {
    width: 150px;
    height: 100px;
  }
}

@media (max-width: 900px) {
  .background-logo img {
    height: 120px;
  }

  .background-logo-left img {
    height: 120px;
  }
}

@media (max-width: 639px) {
  .yearly-schedule-description {
    font-size: var(--font_18);
  }
}

/* 400px以下のレスポンシブ対応 */
@media (max-width: 400px) {
  .yearly-schedule-section {
    padding: 80px 8px;
  }

  .yearly-schedule-section .section-title {
    margin-bottom: 48px;
  }

  .yearly-events {
    gap: 24px;
  }

  .half-events {
    gap: 24px;
  }

  .monthly-event {
    gap: 6px;
  }

  .month-and-event {
    gap: 12px;
    flex-shrink: 1;
  }

  .month {
    min-width: 60px;
    gap: 8px;
  }

  .number {
    font-size: 24px;
  }

  .roman {
    font-size: 16px;
  }

  .event {
    font-size: 14px;
    line-height: 1.3;
  }

  .event-multiple {
    gap: 4px;
  }

  .monthly-event img {
    width: 90px;
    height: 60px;
    flex-shrink: 1;
  }
}
