:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --hero: #1f2937;
  --accent: #f97316;
  --line-green: #06c755;
  --teal: #0f766e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
}

.hidden {
  display: none;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(840px, calc(100% - 32px));
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

.brand-title {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.brand-title a {
  color: inherit;
  text-decoration: none;
}

.brand-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo .custom-logo {
  display: block;
  max-height: 40px;
  width: auto;
}

.brand-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.header-links a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
}

.header-catch {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.header-catch span {
  color: #ea580c;
}

.home-content {
  padding-top: 20px;
  padding-bottom: 94px;
}

.filter-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  padding: 16px;
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.search-return {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 95;
  border: 0;
  border-radius: 999px;
  background: #ea580c;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 22px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.35);
  cursor: pointer;
}

.advanced-filter {
  width: 100%;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
}

.advanced-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.advanced-filter-head p {
  margin: 0;
  font-size: 14px;
  color: #334155;
  font-weight: 700;
}

.advanced-toggle {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.advanced-filter-body {
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.advanced-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.advanced-tab {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.advanced-tab.is-active {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

.advanced-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.advanced-label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  color: #475569;
  font-weight: 700;
}

.advanced-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #1e293b;
  background: #fff;
}

.advanced-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.apply-filters {
  border: 0;
  background: #ea580c;
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.apply-filters:hover {
  background: #c2410c;
}

.clear-filters {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.date-field-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.date-open-btn {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.amount-label {
  margin-top: 10px;
}

.picker-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(15, 23, 42, 0.5);
  display: grid;
  place-items: center;
  padding: 16px;
}

.picker-modal.hidden {
  display: none;
}

.picker-dialog {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.picker-title {
  margin: 0 0 10px;
  font-weight: 700;
  color: #1e293b;
}

.picker-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

.picker-range {
  display: grid;
  gap: 6px;
}

.picker-range label {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
}

.picker-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.picker-clear,
.picker-cancel,
.picker-apply {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.picker-clear,
.picker-cancel {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.picker-apply {
  border: 0;
  background: #ea580c;
  color: #fff;
}

.category-wrap {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 8px;
}

.category-wrap button {
  background: #f1f5f9;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.category-wrap button.is-active {
  background: #1e293b;
  color: #fff;
}

.free-toggle {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #9a3412;
  font-size: 14px;
}

.free-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-ui {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background 0.2s;
}

.toggle-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.free-toggle input:checked + .toggle-ui {
  background: var(--accent);
}

.free-toggle input:checked + .toggle-ui .toggle-dot {
  transform: translateX(18px);
}

.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.list-heading h2 {
  margin: 0;
  font-size: 20px;
}

.list-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.seminar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-image {
  height: 170px;
  background: #e2e8f0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image-fallback {
  position: relative;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #0f172a;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.8) 0 42px, transparent 43px),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.45) 0 34px, transparent 35px),
    linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 45%, #dbeafe 100%);
}

.card-image-fallback::after {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -32px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.08);
}

.fallback-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #334155;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(100, 116, 139, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  z-index: 1;
}

.fallback-category {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.fallback-copy {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.seminar-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.card-body {
  padding: 16px;
  flex: 1;
}

.card-badges {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-badges span {
  font-size: 14px;
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 700;
}

.card-badges .category {
  background: #f1f5f9;
  color: #334155;
}

.card-badges .price {
  background: #fff7ed;
  color: #c2410c;
}

.card-badges .price.is-paid {
  background: #f1f5f9;
  color: #64748b;
}

.card-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.35;
}

.card-meta {
  margin: 0;
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 14px;
}

.card-foot {
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.card-foot .org {
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-foot .detail {
  color: #1e293b;
  font-weight: 700;
  font-size: 15px;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  color: #64748b;
  border-radius: 12px;
  text-align: center;
  padding: 56px 12px;
}

.pagination {
  margin-top: 22px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.page-button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  min-width: 42px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.page-button.is-active {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

.page-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.modal-open {
  overflow: hidden;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(2px);
  overflow-y: auto;
  padding: 26px 12px;
}

.detail-modal-dialog {
  width: min(940px, calc(100% - 16px));
  margin: 0 auto;
}

.detail-top {
  border-radius: 14px 14px 0 0;
  padding: 18px 0 70px;
  background: var(--hero);
}

.detail-top-inner {
  position: relative;
}

.prominent-back {
  border: 0;
  background: #f97316;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.35);
}

.prominent-back:hover {
  background: #ea580c;
}

.detail-close {
  position: absolute;
  right: 0;
  top: 0;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.badge-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tag,
.price {
  display: inline-block;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.tag {
  color: #fff;
  background: rgba(71, 85, 105, 0.75);
  border: 1px solid #475569;
}

#detail-price-state {
  background: #fb923c;
  color: #fff;
}

#detail-title {
  margin: 0;
  color: #fff;
  line-height: 1.35;
  font-size: clamp(24px, 3.3vw, 38px);
}

.detail-stack {
  margin-top: -52px;
  padding-bottom: 54px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 22px;
  margin-bottom: 16px;
}

.detail-image-wrap {
  margin: -22px -22px 18px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  background: #e2e8f0;
  aspect-ratio: 16 / 7;
}

.detail-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-card h3 {
  margin: 0 0 12px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.detail-card p {
  color: #475569;
  line-height: 1.8;
}

.detail-table {
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.detail-table div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.detail-table div:last-child {
  border-bottom: 0;
}

.detail-table dt {
  color: #64748b;
  font-weight: 700;
}

.detail-table dd {
  margin: 0;
}

.cta-main {
  margin-top: 22px;
  text-align: center;
}

.cta-main a {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  padding: 14px 20px;
}

.cta-main p {
  margin: 8px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.line-box {
  background: linear-gradient(135deg, var(--teal), #1f2937);
  color: #fff;
  border-radius: 12px;
  padding: 22px;
}

.line-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: #14b8a6;
  padding: 4px 8px;
  border-radius: 6px;
}

.line-box h4 {
  margin: 12px 0;
  font-size: 27px;
  line-height: 1.3;
}

.line-box ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: #ccfbf1;
}

.line-box li {
  margin-bottom: 6px;
}

.line-box button {
  border: 0;
  background: var(--line-green);
  color: #fff;
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.line-box p {
  margin: 10px 0 0;
  font-size: 12px;
  opacity: 0.8;
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 38px 0 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer h5 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
}

.site-footer h5 a {
  color: inherit;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

.copyright {
  text-align: center;
  margin-top: 20px;
  opacity: 0.8;
  font-size: 12px;
}

.legal-content {
  padding-top: 26px;
  padding-bottom: 60px;
}

.legal-article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
}

.legal-title {
  margin: 0 0 16px;
  font-size: 28px;
}

.legal-body {
  color: #334155;
  line-height: 1.8;
}

.legal-body h2,
.legal-body h3 {
  color: #0f172a;
  margin-top: 24px;
  margin-bottom: 10px;
}

@media (max-width: 1000px) {
  .seminar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-links {
    display: block;
  }

  .header-catch {
    font-size: 14px;
  }

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

  .list-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .advanced-filter-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .advanced-toggle {
    width: 100%;
  }

  .date-field-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .advanced-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .apply-filters {
    width: 100%;
  }

  .detail-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-modal {
    padding: 12px 8px;
  }

  .detail-top {
    padding: 14px 0 62px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
