@charset "UTF-8";

/* ============================================
   イベント - Stylesheet
   ============================================ */

/* ---------- Variables ---------- */
:root {
  --color-primary: #0a337c;
  --color-secondary: #18181c;
  --color-bg: #ffffff;
  --color-card-bg: #f8f9fa;
  --color-footer-bg: #dfe4ed;
  --color-hero-bg: rgba(241, 243, 247, 0.8);
  --color-border: #e0e0e0;
  --color-muted: #717182;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-display: 'Zen Kaku Gothic New', sans-serif;
  --font-mono: 'Montserrat', sans-serif;
  --font-open: 'Open Sans', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-secondary);
  background: var(--color-bg);
  line-height: 1.75;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Page Hero Section
   ============================================ */
.page-hero {
  width: 100%;
  background: var(--color-hero-bg) url('../img/bg_headder_containts.png') center center / cover no-repeat;
  margin-top: 77px;
}

.page-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px;
}

.page-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 1px;
  line-height: 0.86;
}

.page-hero__subtitle {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-primary);
  letter-spacing: 0.8px;
  line-height: 0.93;
}

/* ============================================
   Main Content
   ============================================ */
.main {
  width: 100%;
}

.main__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px;
  gap: 80px;
}

/* ============================================
   News List (index と同一スタイル)
   ============================================ */
.news-list {
  border-top: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  width: 100%;
}

.news-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  transition: background-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background-color: #f9f9f9;
}

.news-date {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 600;
  font-family: var(--font-mono);
}

.news-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.news-category {
  background-color: #f0f0f0;
  color: #666;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  text-align: center;
  white-space: nowrap;
  border: 1px solid #cac4d0;
  font-family: var(--font-mono);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
}

.news-text {
  font-size: 0.95rem;
  color: var(--color-secondary);
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

.news-arrow {
  width: 16px;
  height: 16px;
  color: #ccc;
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.news-item:hover .news-arrow {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* ============================================
   Category Filter Tabs
   ============================================ */
.category-filter {
  display: flex;
  gap: 16px;
  width: 100%;
}

.category-filter__tab {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid transparent;
  width: 356px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.category-filter__tab:hover {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.category-filter__tab--seminar {
  background: #f3fafc;
}

.category-filter__tab--event {
  background: #fcf3fa;
}

.category-filter__tab--consultation {
  background: #f6fcf3;
}

.category-filter__tab-label {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  line-height: 1.2;
}

/* ============================================
   Event List
   ============================================ */
.event-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 19px 32px 20px;
  border-top: 1px solid var(--color-secondary);
  border-bottom: 1px solid var(--color-secondary);
  transition: background-color 0.2s ease;
}

.event-item + .event-item {
  border-top: none;
}

.event-item:hover {
  background-color: #f8f9fa;
}

.event-item__date {
  font-family: var(--font-open);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-secondary);
  letter-spacing: 0.8px;
  line-height: 1.7;
  width: 90px;
  flex-shrink: 0;
}

.event-item__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid #cac4d0;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1d1b20;
  letter-spacing: 0.1px;
  line-height: 1.43;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-item__tag--seminar {
  background: #f3fafc;
}

.event-item__tag--event {
  background: #fcf3fa;
}

.event-item__tag--consultation {
  background: #f6fcf3;
}

.event-item__title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-secondary);
  letter-spacing: 0.8px;
  line-height: 1.7;
  flex: 1;
}

.event-item__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #1e1e1e;
}

/* ============================================
   Content Sections Wrapper
   ============================================ */
.event-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-footer-bg);
  width: 100%;
}

.footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 79px;
  padding: 60px 40px 40px 40px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.footer__contact-title {
  font-family: var(--font-open);
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  line-height: 1.8;
  padding-bottom: 15px;
  border-bottom: 1px solid #a0a3aa;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
}

.footer__contact-name {
  font-family: var(--font-open);
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.8;
}

.footer__contact-detail {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.8;
}

.footer__copyright {
  font-family: var(--font-open);
  font-size: 16px;
  font-weight: 600;
  color: #110a51;
  line-height: 1.8;
}

/* ============================================
   Responsive
   ============================================ */

/* --- スマホ（767px以下）--- */
@media (max-width: 767px) {
  .page-hero__inner {
    padding: 40px 20px;
  }

  .page-hero__title {
    font-size: 36px;
    line-height: 1.2;
  }

  .page-hero__subtitle {
    font-size: 16px;
  }

  .main__inner {
    padding: 40px 16px;
    gap: 60px;
  }

  .category-filter {
    flex-direction: column;
    gap: 12px;
  }

  .category-filter__tab {
    width: 100%;
    padding: 16px;
  }

  .category-filter__tab-label {
    font-size: 16px;
  }

  .event-item {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 16px;
  }

  .event-item__date {
    font-size: 14px;
    width: auto;
  }

  .event-item__tag {
    font-size: 12px;
    padding: 4px 12px;
  }

  .event-item__title {
    font-size: 14px;
    width: 100%;
    flex: none;
  }

  .event-item__icon {
    display: none;
  }

  .news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .news-date {
    font-size: 0.8rem;
    order: 1;
  }

  .news-content {
    display: contents;
  }

  .news-category {
    order: 2;
  }

  .news-text {
    font-size: 0.9rem;
    width: 100%;
    order: 3;
  }

  .news-arrow {
    display: none;
  }

  .footer__inner {
    padding: 40px 20px 30px;
    gap: 40px;
  }

  .footer__contact-title {
    font-size: 18px;
  }

  .footer__contact-name,
  .footer__contact-detail {
    font-size: 14px;
  }

  .footer__copyright {
    font-size: 14px;
  }
}

/* --- 中間サイズ（768px〜1023px）--- */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-hero__title {
    font-size: 56px;
  }

  .page-hero__subtitle {
    font-size: 20px;
  }

  .category-filter__tab {
    width: calc(33.333% - 11px);
  }

  .category-filter__tab-label {
    font-size: 18px;
  }

  .event-item {
    padding: 16px 24px;
    gap: 16px;
  }
}

/* ============================================
   Back Button
   ============================================ */
.back-button-wrapper {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  border: 2px solid #0e508e;
  border-radius: 9999px;
  background: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.8px;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button:hover {
  background: var(--color-primary);
  color: #ffffff;
}

@media (max-width: 767px) {
  .back-button {
    width: 100%;
    font-size: 14px;
    padding: 14px 24px;
  }
}
