/* COMMAND S front styles */

:root {
  --cs-black: #000;
  --cs-text: #000;
  --cs-border: #555;
  --cs-line: #000;
  --cs-pad-pc: 40px;
  --cs-pad-sp: 25px;
  --cs-max: 1440px;
  --cs-font: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--cs-text);
  background: #fff;
  font-family: var(--cs-font);
  font-weight: 400;
  line-height: 1.4;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.cs-site {
  width: 100%;
  overflow-x: hidden;
}

/* Notice marquee */
.cs-notice {
  position: relative;
  display: flex;
  align-items: center;
  height: 30px;
  overflow: hidden;
  white-space: nowrap;
}

.cs-notice__track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: cs-marquee linear infinite;
  animation-duration: var(--cs-notice-duration, 13.3s);
}

.cs-notice__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 80px;
  padding-right: 80px;
}

.cs-notice__group span {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  color: var(--cs-black);
}

.cs-notice__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes cs-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.cs-header__line {
  height: 1px;
  background: var(--cs-line);
  margin: 0;
}

/* Logo */
.cs-logo {
  display: flex;
  justify-content: center;
  padding: 9px var(--cs-pad-pc) 12px;
}

.cs-logo img {
  width: 100%;
  height: auto;
}

.cs-logo .cs-logo__pc {
  display: block;
  max-width: 1360px;
}

.cs-logo .cs-logo__sp {
  display: none;
  max-width: none;
  margin: 0 auto;
}

/* Hero / Swiper */
.cs-hero {
  padding: 0 var(--cs-pad-pc);
}

.cs-hero__frame {
  position: relative;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-bottom: 18px;
}

.cs-hero__swiper {
  width: 100%;
}

.cs-hero__swiper .swiper-slide {
  aspect-ratio: 1360 / 752;
  overflow: hidden;
  background: #f5f5f5;
}

.cs-hero__swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-hero__pagination {
  position: absolute;
  right: 0;
  bottom: 0;
  left: auto;
  width: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
  z-index: 2;
}

.cs-hero__pagination .swiper-pagination-bullet {
  width: 4px;
  height: 4px;
  margin: 0 !important;
  border-radius: 50%;
  background: #d9d9d9;
  opacity: 1;
}

.cs-hero__pagination .swiper-pagination-bullet-active {
  background: #666;
}

/* Address + Equipment */
.cs-info {
  display: grid;
  grid-template-columns: minmax(0, 377px) minmax(0, 1fr);
  gap: 40px 80px;
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 46px var(--cs-pad-pc) 0;
}

.cs-heading {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.cs-address__ja,
.cs-address__en {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.cs-address__en {
  margin-top: 2px;
}

.cs-floorplan {
  margin: 28px 0 0;
  max-width: 320px;
}

.cs-floorplan__link {
  display: block;
  cursor: zoom-in;
}

.cs-floorplan img {
  display: block;
  width: 100%;
  height: auto;
}

/* GLightbox: ~10% margin around enlarged image */
.glightbox-container .gslide-image img {
  max-width: 80vw !important;
  max-height: 80vh !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.cs-equipment {
  font-size: 13px;
  line-height: 0.8;
}

.cs-equipment--cols {
  display: grid;
  grid-template-columns: minmax(0, 377px) minmax(0, 237px);
  gap: 24px 80px;
  align-items: start;
}

.cs-equipment__col {
  white-space: pre-line;
}

/* Schedule */
.cs-schedule {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 56px var(--cs-pad-pc) 40px;
}

.cs-schedule__list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cs-schedule__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 6px;
  border: 1px solid var(--cs-border);
  border-radius: 8px;
  text-align: center;
}

.cs-schedule__item--tentative {
  background: #eaf4ff;
}

.cs-schedule__item--tentative_2nd {
  background: #fff8e1;
}

.cs-schedule__item--tentative_3rd {
  background: #ffeaea;
}

.cs-schedule__item--confirmed {
  background: #5c5c5c;
  border-color: #5c5c5c;
  color: #fff;
}

.cs-schedule__date {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.cs-schedule__title {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.cs-schedule__status {
  margin-top: 4px;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.75;
}

.cs-schedule__item--confirmed .cs-schedule__status {
  opacity: 0.85;
}

/* Footer */
.cs-footer {
  margin-top: 24px;
  padding-bottom: 24px;
}

.cs-footer__line {
  height: 1px;
  background: var(--cs-line);
}

.cs-footer__copy {
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
}

/* Fallback page */
.cs-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* SP */
@media (max-width: 900px) {
  .cs-logo {
    padding: 12px var(--cs-pad-sp) 16px;
  }

  .cs-logo .cs-logo__pc {
    display: none;
  }

  .cs-logo .cs-logo__sp {
    display: block;
    width: 100%;
    max-width: none;
  }

  .cs-hero {
    padding: 0;
  }

  .cs-hero__swiper .swiper-slide {
    aspect-ratio: 402 / 222;
  }

  .cs-hero__pagination {
    right: 50%;
    transform: translateX(50%);
    justify-content: center;
  }

  .cs-info {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px var(--cs-pad-sp) 0;
  }

  .cs-floorplan {
    max-width: 100%;
  }

  .cs-equipment--cols {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cs-schedule {
    padding: 40px var(--cs-pad-sp) 32px;
  }

  .cs-schedule__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 10px;
  }

  .cs-schedule__item {
    min-height: 52px;
  }

  .cs-notice__group span {
    font-size: 12px;
  }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .cs-schedule__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cs-info {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 32px 40px;
  }

  .cs-equipment--cols {
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
  }
}
