:root {
  --colors-black: #232f3e;
  --colors-primary: #2074d5;
  --colors-q-gradient: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --colors-white: #ffffff;
  --colors-gray100: #f9f9fb;
  --colors-gray200: #f4f3f4;
  --colors-gray300: #eeedf2;
  --colors-gray400: #dbdbe1;
  --colors-gray500: #bebdc2;
  --colors-gray600: #9e9ca5;
  --colors-gray700: #747281;
  --colors-gray800: #544f69;
  --colors-gray900: #16191f;
  --colors-background: #ffffff;
  --colors-text-primary: #232f3e;
  --colors-text-secondary: #544f69;
  --fontSizes-12: 0.75rem;
  --fontSizes-14: 0.875rem;
  --fontSizes-16: 1rem;
  --fontSizes-18: 1.125rem;
  --fontSizes-20: 1.25rem;
  --fontSizes-24: 1.5rem;
  --fontSizes-28: 1.75rem;
  --fontSizes-32: 2rem;
  --fontSizes-44: 2.75rem;
  --fontWeights-normal: 400;
  --fontWeights-bold: 700;
  --fonts-regular: "Amazon Ember", apple-system, sans-serif;
  --lineHeights-20: 1.25rem;
  --lineHeights-22: 1.375rem;
  --lineHeights-24: 1.5rem;
  --lineHeights-26: 1.625rem;
  --lineHeights-32: 2rem;
  --lineHeights-44: 2.75rem;
  --space-small: 8px;
  --space-medium: 12px;
  --space-large: 16px;
  --space-extra-large: 20px;
  --radii-medium: 8px;
  --shadows-medium: 0px 4px 24px rgba(8, 37, 70, 0.08);
  --shadows-bold: 0px 4px 32px 4px rgba(8, 37, 70, 0.18);
  --saws-grid-gap: 16px;
  --saws-grid-margin: var(--saws-grid-gap);
  --saws-content-max-width: 1000px;
  --saws-inner-view-width: calc(100vw - var(--saws-scrollbar-width));
  --saws-grid-width: min(
    var(--saws-inner-view-width) - (var(--saws-grid-margin) * 2),
    var(--saws-content-max-width)
  );
}

@media (min-width: 37.5rem) {
  :root {
    --saws-grid-gap: 24px;
    --saws-grid-margin: 48px;
  }
}

@media (min-width: 60rem) {
  :root {
    --saws-grid-gap: 32px;
  }
}

@media (min-width: 77.5rem) {
  :root {
    --saws-grid-margin: 64px;
  }
}

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

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_Th.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_ThIt.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_Lt.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_LtIt.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_Rg.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_RgIt.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/Amazon-Ember-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/Amazon-Ember-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_Bd.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_BdIt.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_He.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("asset/font/AmazonEmber_HeIt.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
}

html {
  font-family: var(--fonts-regular);
}

body {
  font-family: var(--fonts-regular);
  line-height: 1.5;
  color: var(--colors-text-primary);
  background: var(--colors-background);
  margin: 0;
  padding: var(--space-extra-large);
  font-size: var(--fontSizes-16);
}

.container {
  max-width: var(--saws-content-max-width);
  margin: 0 auto;
  background: var(--colors-white);
}

.header {
  margin-top: 40px;
  margin-bottom: 32px;
}

.logo-section {
  text-align: left;
  margin-bottom: var(--space-large);
}

.logo {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.header h1 {
  font-size: var(--fontSizes-32);
  font-weight: 900;
  line-height: var(--lineHeights-44);
  color: var(--colors-text-primary);
  margin-bottom: var(--space-large);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: var(--fontSizes-20);
    line-height: var(--lineHeights-32);
    white-space: normal;
  }
}

.event-meta {
  display: flex;
  gap: var(--space-medium);
  margin-bottom: var(--space-large);
}

.tag {
  background: var(--colors-gray200);
  color: var(--colors-text-secondary);
  padding: 4px var(--space-small);
  border-radius: 4px;
  font-size: var(--fontSizes-12);
  font-weight: var(--fontWeights-normal);
}

.content {
  line-height: var(--lineHeights-22);
}

.event-details {
  margin-bottom: 24px;
}

.detail-row {
  display: flex;
  margin-bottom: var(--space-small);
  align-items: flex-start;
}

.label {
  font-weight: var(--fontWeights-bold);
  min-width: 60px;
  margin-right: var(--space-medium);
  color: var(--colors-text-primary);
}

.value {
  color: var(--colors-text-secondary);
}

.value.link {
  background: var(--colors-q-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.cost-note {
  font-size: var(--fontSizes-small);
  color: var(--colors-text-secondary);
  margin-top: var(--space-small);
  padding: var(--space-small);
  background-color: var(--colors-background-secondary);
  border-radius: var(--radii-medium);
  border-left: 3px solid var(--colors-accent);
}

.contact-email {
  background: var(--colors-q-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: var(--fontWeights-medium);
}

.contact-email:hover {
  text-decoration: underline;
}

.notice-list,
.disclaimer-list,
.application-list {
  margin: 0;
  padding-left: var(--space-large);
  color: var(--colors-text-secondary);
}

.notice-list li,
.disclaimer-list li,
.application-list li {
  margin-bottom: var(--space-small);
  line-height: var(--lineHeights-22);
}

.disclaimer-list ul {
  margin-top: var(--space-small);
  padding-left: var(--space-large);
  list-style-type: circle;
}

.disclaimer-list ul li {
  margin-bottom: var(--space-small);
}

.application-section .contact-info {
  margin: var(--space-medium) 0;
  padding: var(--space-small);
  background-color: var(--colors-background-secondary);
  border-radius: var(--radii-medium);
}

.application-section h4 {
  color: var(--colors-text-primary);
  font-weight: var(--fontWeights-bold);
  margin: var(--space-medium) 0 var(--space-small) 0;
}

.date-section,
.credit-section,
.schedule-section-wrapper,
.application-section,
.organizer-section,
.contact-section,
.notice-section,
.disclaimer-section,
.description-section,
.target-section,
.requirements-section,
.items-section,
.qa-section {
  margin-bottom: 24px;
}

.date-section h3,
.credit-section h3,
.schedule-section-wrapper h3,
.application-section h3,
.organizer-section h3,
.contact-section h3,
.notice-section h3,
.disclaimer-section h3,
.description-section h3,
.target-section h3,
.requirements-section h3,
.items-section h3,
.qa-section h3 {
  font-size: var(--fontSizes-18);
  font-weight: var(--fontWeights-bold);
  background: var(--colors-q-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-small);
}

.date-info,
.credit-info {
  color: var(--colors-text-secondary);
  margin-bottom: var(--space-medium);
}

.date-note,
.credit-note {
  font-size: var(--fontSizes-small);
  color: var(--colors-text-secondary);
  margin-top: var(--space-small);
}

.description-section p {
  color: var(--colors-text-secondary);
  margin-bottom: var(--space-medium);
  line-height: var(--lineHeights-22);
}

.topic-list,
.recommendation-list {
  margin: var(--space-medium) 0;
  padding-left: var(--space-large);
}

.topic-list li,
.recommendation-list li {
  color: var(--colors-text-secondary);
  margin-bottom: var(--space-small);
  line-height: var(--lineHeights-22);
}

.agenda-list {
  margin-top: var(--space-medium);
}

.agenda-item {
  display: flex;
  margin-bottom: var(--space-small);
  align-items: flex-start;
}

.time {
  font-weight: var(--fontWeights-normal);
  min-width: 120px;
  margin-right: var(--space-medium);
  color: var(--colors-text-primary);
  flex-shrink: 0;
}

.activity {
  color: var(--colors-text-secondary);
  line-height: var(--lineHeights-20);
}

.date-note {
  color: var(--colors-text-secondary);
  font-size: var(--fontSizes-14);
  margin-top: var(--space-small);
}

.requirements-section h4 {
  font-size: var(--fontSizes-16);
  font-weight: var(--fontWeights-bold);
  color: var(--colors-text-primary);
  margin: var(--space-large) 0 var(--space-small) 0;
}

.requirement-list {
  margin: var(--space-medium) 0;
  padding-left: var(--space-large);
}

.requirement-list li {
  color: var(--colors-text-secondary);
  margin-bottom: var(--space-small);
  line-height: var(--lineHeights-22);
}

.notes {
  margin-top: var(--space-large);
}

.notes p {
  color: var(--colors-text-secondary);
  font-size: var(--fontSizes-14);
  margin-bottom: var(--space-small);
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.schedule-table {
  margin-top: var(--space-large);
}

.schedule-section {
  border: 1px solid var(--colors-gray400);
  border-radius: var(--radii-medium);
  overflow: hidden;
  box-shadow: var(--shadows-medium);
}

.schedule-title {
  background: var(--colors-q-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: var(--space-medium);
  margin: 0;
  font-size: var(--fontSizes-16);
  font-weight: var(--fontWeights-bold);
  text-align: center;
  border-bottom: 1px solid var(--colors-gray400);
}

.schedule-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-medium);
  padding: var(--space-medium);
  border-bottom: 1px solid var(--colors-gray200);
  align-items: center;
  background: var(--colors-white);
  transition: background-color 0.2s ease;
}

.schedule-item:nth-child(even) {
  background: var(--colors-gray100);
}

.schedule-item:hover {
  background: var(--colors-gray200);
}

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

.schedule-time-dual {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.morning-time,
.afternoon-time {
  font-size: var(--fontSizes-14);
  color: var(--colors-text-primary);
  font-weight: var(--fontWeights-bold);
  font-family: monospace;
  padding: 2px 6px;
  border-radius: 4px;
}

.morning-time {
  background: var(--colors-gray600);
  color: var(--colors-white);
}

.afternoon-time {
  background: var(--colors-gray300);
  color: var(--colors-text-primary);
}

@media (max-width: 768px) {
  body {
    padding: var(--space-medium);
    font-size: var(--fontSizes-14);
  }

  .schedule-item {
    display: flex;
    flex-direction: column-reverse;
    gap: var(--space-small);
    padding: var(--space-medium);
    align-items: flex-start;
  }

  .schedule-time-dual {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: var(--space-small);
  }

  .morning-time,
  .afternoon-time {
    font-size: var(--fontSizes-12);
    padding: 6px 8px;
    white-space: nowrap;
    text-align: center;
    border-radius: 6px;
    font-weight: var(--fontWeights-bold);
  }

  .schedule-activity {
    font-size: 14px !important;
    line-height: 1;
    width: 100%;
  }

  .date-section h3,
  .credit-section h3,
  .schedule-section-wrapper h3,
  .application-section h3,
  .organizer-section h3,
  .contact-section h3,
  .notice-section h3,
  .disclaimer-section h3,
  .description-section h3,
  .target-section h3,
  .requirements-section h3,
  .qa-section h3 {
    font-size: var(--fontSizes-16);
  }

  .requirements-section h4 {
    font-size: var(--fontSizes-14);
  }

  .qa-question {
    font-size: var(--fontSizes-14);
  }
}

.schedule-duration {
  font-size: var(--fontSizes-12);
  color: var(--colors-text-secondary);
  text-align: center;
  background: var(--colors-gray300);
  padding: 2px 4px;
  border-radius: 4px;
  font-family: monospace;
}

.schedule-activity {
  font-size: var(--fontSizes-18);
  color: var(--colors-text-primary);
  line-height: var(--lineHeights-24);
  font-weight: var(--fontWeights-normal);
}

.requirement-list.numbered li {
  counter-increment: item;
  position: relative;
}

.qa-item {
  margin-top: 24px;
  margin-bottom: 32px;
}

.qa-question {
  font-size: var(--fontSizes-16);
  font-weight: var(--fontWeights-bold);
  color: var(--colors-text-primary);
  margin-bottom: var(--space-small);
}

.qa-answer {
  color: var(--colors-text-secondary);
  line-height: var(--lineHeights-24);
  margin: 0;
}
