:root {
  color-scheme: light;
  --background: #f7f4ef;
  --text: #191816;
  --border: #d7d0c5;
  --button: #ffffff;
  --button-hover: #eee6da;
  --accent: #2f6f73;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

html.embed-mode .site-header {
  display: none;
}

html.embed-mode .page {
  padding-top: 32px;
  padding-bottom: 32px;
}

html.embed-mode .home,
html.embed-mode .workspace-home {
  min-height: 100vh;
}

html.embed-mode .dinner-detail {
  min-height: 0;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(247, 244, 239, 0.92);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 20px;
}

.workspace-nav,
.area-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.workspace-nav {
  justify-content: flex-start;
}

.area-nav {
  justify-content: flex-end;
  margin-left: auto;
}

.nav-button,
.entry-link,
.workspace-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--button);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
}

.workspace-button {
  min-width: 92px;
  padding: 0 16px;
  font-weight: 700;
}

.workspace-create {
  background: #d8efe7;
  border-color: #b8d8cb;
}

.workspace-isp {
  background: #dde7fb;
  border-color: #bac9e8;
}

.workspace-temporary {
  background: #ffe5c9;
  border-color: #eac79e;
}

.workspace-personal {
  background: #eadff8;
  border-color: #cfc0e3;
}

.workspace-button.is-active {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.nav-button {
  min-width: 92px;
  padding: 0 18px;
}

.nav-button:hover,
.entry-link:hover,
.workspace-button:hover {
  background: var(--button-hover);
}

.home {
  display: grid;
  min-height: calc(100vh - 77px);
  place-items: center;
  padding: 40px 20px;
}

.workspace-home {
  min-height: calc(100vh - 77px);
}

.workspace-home-isp {
  background: linear-gradient(180deg, #f7f4ef 0%, #eef4ff 100%);
}

.workspace-home-temporary {
  background: linear-gradient(180deg, #f7f4ef 0%, #fff1df 100%);
}

.workspace-home-personal {
  background: linear-gradient(180deg, #f7f4ef 0%, #f3ecfb 100%);
}

h1 {
  margin: 0;
  font-size: clamp(56px, 12vw, 150px);
  font-weight: 700;
  letter-spacing: 0;
}

.page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 48px 20px;
}

.seminars-page {
  width: min(1180px, 100%);
}

.page h1 {
  margin-bottom: 24px;
  font-size: 48px;
}

.entry-list {
  display: grid;
  gap: 14px;
  max-width: 360px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0 18px;
}

.dinner-detail {
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  padding: 28px;
}

.dinner-meta {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin: 0 0 32px;
}

.dinner-meta div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
}

.dinner-meta dt {
  color: #5ca243;
  font-weight: 700;
}

.dinner-meta dd {
  margin: 0;
  font-weight: 700;
}

.dinner-meta a {
  color: #2f6f73;
}

.dinner-detail h2 {
  margin: 0 0 22px;
  color: #c06a31;
  font-size: 24px;
}

.participant-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 20px;
  line-height: 1.25;
}

.seminar-list {
  display: grid;
  gap: 14px;
}

.seminar-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
}

.seminar-card:hover {
  border-color: var(--accent);
  background: #fbfaf7;
}

.seminar-image {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.seminar-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 200%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: translateX(-50%);
}

.seminar-content {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px 24px;
}

.seminar-content h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.seminar-content p {
  margin: 0;
  max-width: 680px;
  color: #3d3934;
  font-size: 16px;
  line-height: 1.45;
}

.seminar-meta {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.seminar-meta div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
}

.seminar-meta dt {
  color: #5ca243;
  font-weight: 700;
}

.seminar-meta dd {
  margin: 0;
}

.tool-page {
  width: min(860px, 100%);
}

.tool-panel {
  display: grid;
  gap: 22px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  padding: 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-grid label,
.output-label {
  display: grid;
  gap: 8px;
  color: #4f4b45;
  font-size: 14px;
  font-weight: 700;
}

.field-grid input,
.field-grid select,
.tool-panel textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.field-grid input,
.field-grid select {
  min-height: 44px;
  padding: 0 12px;
  background: #ffffff;
}

.tool-panel textarea {
  min-height: 230px;
  resize: vertical;
  padding: 12px;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.45;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
}

.option-list legend {
  color: #4f4b45;
  font-weight: 700;
  padding: 0 6px;
}

.option-list label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.copy-button {
  justify-self: start;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--button);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 0 18px;
}

.copy-button:hover {
  background: var(--button-hover);
}

@media (max-width: 760px) {
  .site-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-nav,
  .area-nav {
    flex-wrap: wrap;
  }

  .area-nav {
    justify-content: flex-start;
    margin-left: 0;
  }

  .seminar-card {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .seminar-image {
    height: 330px;
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .dinner-detail {
    padding: 22px;
  }

  .dinner-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .seminar-image {
    height: 260px;
    min-height: 260px;
  }

  .seminar-content {
    padding: 18px 20px;
  }

  .seminar-content h2 {
    font-size: 21px;
  }
}
