:root {
  --black: #353535;
  --lightblue: #00a2de;
  --roadRed: #bd0000;
  --roadOrange: #ff9000;
}

.tjs-page {
  background: #fff;
  padding: 3rem 0 8rem;
}

@media (max-width: 767px) {
  .tjs-page {
    padding: 0;
  }
}

.tjs-page .nx-inner {
  background: #fff;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, .08); */
  padding: 1rem 3rem 5rem;
}

@media (max-width: 767px) {
  .tjs-page .nx-inner {
    box-shadow: none;
    padding: 2rem 1.5rem 6rem;
  }
}

.tjs-lead {
  margin-bottom: 2rem;
}

.tjs-breadcrumb {
  color: #565656;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.tjs-title-row {
  align-items: center;
  display: flex;
  gap: 1rem;
}

.tjs-title-row__badge {
  background: var(--lightblue);
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  padding: .7rem 1rem;
  white-space: nowrap;
}

.tjs-lead__title {
  color: #222;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .tjs-lead__title {
    font-size: 2rem;
  }
}

.tjs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 767px) {
  .tjs-hero {
    grid-template-columns: 1fr;
  }
}

.tjs-hero__map {
  width: 100%;
  max-width: 640px;

  img {
    border: 1px solid #b7b7b7;
    width: 100%;
    height: auto;
  }
}

.tjs-hero__contents {
  order: -1;
  background: #0071ba;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

@media (max-width: 767px) {
  .tjs-hero__contents {
    order: 1;
  }
}

.tjs-hero__title {
  font-size: 2rem;
  color: #fff;
  font-weight: bold;
  margin-bottom: 1em;
}

@media (max-width: 767px) {
  .tjs-hero__title {
    font-size: 1.6rem;
  }
}

.tjs-hero__caution {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 2em;
}

.tjs-hero__caution a {
  color: inherit;
  text-decoration: underline;
}

.tjs-hero__caution a:hover {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 767px) {
  .tjs-hero__caution {
    font-size: 1rem;
  }
}



.tjs-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .tjs-panel {
    padding: 0;
  }
}

.tjs-panel+.tjs-panel,
.tjs-status+.tjs-panel {
  margin-top: 2rem;
}

.tjs-chart-route {
  margin-top: 2rem;
}

@media (max-width: 767px) {

  .tjs-panel+.tjs-panel,
  .tjs-status+.tjs-panel {
    margin-top: 2rem;
  }

  .tjs-chart-route {
    margin-top: 0;
  }
}


.tjs-section-title {
  color: #222;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
}

.tjs-search__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 767px) {
  .tjs-search__grid {
    grid-template-columns: 4rem minmax(0, 1fr);
  }
}

.tjs-field__label {
  align-items: center;
  color: #fff;
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  grid-column: 1;
  line-height: 3.6rem;
  margin: 0;
}

@media (max-width: 767px) {
  .tjs-field__label {
    font-size: 1.3rem;
  }
}

.tjs-field {
  display: contents;
}

.tjs-field__control {
  appearance: none;
  background: #fff url("/2021_chugoku/assets-2025/img/icon-arrow-b.svg") right 1rem center / .8rem auto no-repeat;
  border: 2px solid var(--lightblue);
  ;
  border-radius: 4px;
  color: var(--black);
  font-size: 1.6rem;
  grid-column: 2;
  min-height: 4rem;
  padding: .4rem 3.4rem .4rem 1rem;
  width: 100%;
}

@media (max-width: 767px) {
  .tjs-field__control {
    font-size: 1.1rem;
    min-height: 4rem;
  }
}

.tjs-field__control--calendar-native {
  display: none;
}

.tjs-date-picker {
  grid-column: 2;
  grid-row: 2;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

.tjs-date-picker__button {
  appearance: none;
  background: #fff url("/2021_chugoku/assets-2025/img/icon-arrow-b.svg") right 1rem center / .8rem auto no-repeat;
  border: 2px solid var(--lightblue);
  ;
  border-radius: 4px;
  color: var(--black);
  cursor: pointer;
  font-size: 1.4rem;
  min-height: 3.6rem;
  padding: .4rem 3.4rem .4rem 1rem;
  text-align: left;
  width: 100%;
}

@media (max-width: 767px) {
  .tjs-date-picker__button {
    font-size: 1.1rem;
    min-height: 3.2rem;
  }
}

.tjs-date-picker__button:disabled {
  background-color: #f4f4f4;
  color: #777;
  cursor: default;
}

.tjs-calendar {
  background: #fff;
  border: 2px solid var(--lightblue);
  ;
  border-radius: 4px;
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .18);
  left: 0;
  margin-top: .4rem;
  max-width: calc(100vw - 3.6rem);
  padding: 1rem;
  position: absolute;
  top: 100%;
  width: 32rem;
  z-index: 20;
}

@media (max-width: 767px) {
  .tjs-calendar {
    left: 50%;
    max-width: calc(100vw - 3.6rem);
    right: auto;
    transform: translateX(-50%);
    width: 30rem;
  }
}

.tjs-calendar__head {
  align-items: center;
  display: grid;
  gap: .8rem;
  grid-template-columns: 3.2rem minmax(0, 1fr) 3.2rem;
  margin-bottom: .8rem;
}

.tjs-calendar__month {
  color: #222;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.tjs-calendar__nav {
  appearance: none;
  background: var(--lightblue);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  height: 3.2rem;
  line-height: 1;
}

.tjs-calendar__nav:disabled {
  background: #d8d8d8;
  color: #777;
  cursor: default;
}

.tjs-calendar__weekdays,
.tjs-calendar__grid {
  display: grid;
  gap: .3rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tjs-calendar__weekdays {
  color: #535353;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  text-align: center;
}

.tjs-calendar__blank {
  min-height: 3.2rem;
}

.tjs-calendar__day {
  appearance: none;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 4px;
  color: #222;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  min-height: 3.2rem;
  padding: 0;
}

@media (max-width: 767px) {

  .tjs-calendar__blank,
  .tjs-calendar__day {
    min-height: 3rem;
  }
}

.tjs-calendar__day:hover,
.tjs-calendar__day:focus {
  border-color: var(--lightblue);
  outline: 2px solid rgba(154, 123, 55, .25);
}

.tjs-calendar__day.is-selected {
  background: var(--lightblue);
  border-color: var(--lightblue);
  color: #fff;
}

.tjs-calendar__day.is-disabled {
  background: #f3f3f3;
  border-color: #e4e4e4;
  color: #aaa;
  cursor: default;
  font-weight: 400;
}

.tjs-calendar__day.is-disabled:hover,
.tjs-calendar__day.is-disabled:focus {
  outline: 0;
}

.tjs-field+.tjs-field .tjs-field__label {
  grid-row: 2;
}

.tjs-field+.tjs-field .tjs-field__control {
  grid-row: 2;
}

.tjs-week-select-custom {
  grid-column: 2;
  grid-row: 2;
  position: relative;
}

.tjs-week-select-custom__button {
  appearance: none;
  background: #fff url("/2021_chugoku/assets-2025/img/icon-arrow-b.svg") right 1rem center / .8rem auto no-repeat;
  border: 2px solid var(--lightblue);
  ;
  border-radius: 4px;
  color: var(--black);
  cursor: pointer;
  font-size: 1.6rem;
  min-height: 4rem;
  padding: .4rem 3.4rem .4rem 1rem;
  text-align: left;
  width: 100%;
}

@media (max-width: 767px) {
  .tjs-week-select-custom__button {
    font-size: 1.1rem;
    min-height: 4rem;
  }
}

.tjs-week-select-custom__button:disabled {
  background-color: #f4f4f4;
  color: #777;
  cursor: default;
}

.tjs-week-select-custom__list-wrap {
  background: #fff;
  border: 2px solid var(--lightblue);
  ;
  border-radius: 4px;
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .18);
  left: 0;
  margin-top: .4rem;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
}

@media (max-width: 767px) {
  .tjs-week-select-custom.is-list {
    grid-column: 2;
    grid-row: 2;
  }

  .tjs-week-select-custom.is-list .tjs-week-select-custom__list-wrap {
    box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .18);
  }
}

.tjs-week-select-custom__list {
  list-style: none;
  margin: 0;
  max-height: calc(var(--visible-count, 7) * 3.7rem);
  overflow-y: auto;
  padding: 0rem;
}

@media (max-width: 767px) {
  .tjs-week-select-custom__list {
    max-height: calc(var(--visible-count, 7) * 3.85rem);
  }
}

.tjs-week-select-custom__option {
  background: #fff;
  border: 0;
  color: var(--black);
  cursor: pointer;
  display: block;
  font-size: 1.6rem;
  line-height: 1.4;
  padding: .8rem .8rem;
  text-align: left;
  width: 100%;
}

@media (max-width: 767px) {
  .tjs-week-select-custom__option {
    align-items: center;
    display: flex;
    font-size: 1.4rem;
    min-height: 4rem;
    padding: .5rem 1rem;
  }
}

.tjs-week-select-custom__option:hover,
.tjs-week-select-custom__option:focus {
  background: #C0DDE8;
}

.tjs-week-select-custom__option.is-selected {
  background: #C0DDE8;
  font-weight: 700;
}

.tjs-week-select-custom__option.is-saturday {
  color: #1d4f96;
}

.tjs-week-select-custom__option.is-holiday {
  color: #b10000;
}

.tjs-status {
  color: #535353;
  font-size: 1.6rem;
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 767px) {
  .tjs-status {
    font-size: 1.4rem;
  }
}

.tjs-status.is-error {
  color: #bd0000;
  font-weight: 700;
}

.tjs-result-head {
  display: block;
}

.tjs-result-head__text {
  color: #535353;
  font-size: 1.4rem;
  margin-top: .5em;
  margin-bottom: 4rem;
}

@media (max-width: 767px) {
  .tjs-result-head__text {
    font-size: 1.4rem;
    margin-bottom: 3rem;
  }
}

.tjs-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .tjs-legend {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }
}

.tjs-legend__item {
  align-items: center;
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 700;
  gap: .5rem;
}

.tjs-legend__item::before {
  border-radius: 3px;
  content: "";
  display: inline-block;
  height: 1.2rem;
  width: 1.2rem;
}

.tjs-legend__item--main::before {
  background: var(--roadRed);
}

.tjs-legend__item--detour::before {
  background: var(--lightblue);
}

.tjs-legend__item--peak::before {
  background: var(--roadOrange);
}

.tjs-chart-wrap {
  margin-top: 1.6rem;
  overflow-x: visible;
  padding-bottom: 0;
}

.tjs-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .tjs-chart {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.tjs-chart-route__label {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 1.6rem;
  line-height: 1;
  margin: 0 0 .5rem;
  padding: 0;

  span {
    display: inline-block;
    margin-right: 1rem;
    color: #fff;
    font-size: 1.4rem;
    padding: .25em .5em;
    line-height: 1;
    border-radius: 6px;
  }

  .kobemita-suita-01 {
    color: #2BBE6B;

    >span {
      background: #2BBE6B;
    }
  }

  .kobemita-suita-02 {
    color: #308289;

    >span {
      background: #308289;
    }
  }

  .kobemita-suita-03 {
    color: #DF9335;

    >span {
      background: #DF9335;
    }
  }

  .kobekita-suita-01 {
    color: #B47815;

    >span {
      background: #B47815;
    }
  }

  .kobekita-suita-02 {
    color: #37B3DD;

    >span {
      background: #37B3DD;
    }
  }

  .kobekita-suita-03 {
    color: #FF61B4;

    >span {
      background: #FF61B4;
    }
  }

  .suita-mita-01 {
    color: #2BBE6B;

    >span {
      background: #2BBE6B;
    }
  }

  .suita-mita-02 {
    color: #C05C16;

    >span {
      background: #C05C16;
    }
  }

  .suita-mita-03 {
    color: #DF9335;

    >span {
      background: #DF9335;
    }
  }

  .suita-kobe-01 {
    color: #FF61B4;

    >span {
      background: #FF61B4;
    }
  }

  .suita-kobe-02 {
    color: #6D85CD;

    >span {
      background: #6D85CD;
    }
  }

  .suita-kobe-03 {
    color: #AECD00;

    >span {
      background: #AECD00;
    }
  }

  .mita-suita-01 {
    color: #E134C0;

    >span {
      background: #E134C0;
    }
  }

  .mita-suita-02 {
    color: #B0DB3A;

    >span {
      background: #B0DB3A;
    }
  }

  .mita-suita-03 {
    color: #02CFCB;

    >span {
      background: #02CFCB;
    }
  }

  .yoshikawa-suita-01 {
    color: #37A2DF;

    >span {
      background: #37A2DF;
    }
  }

  .yoshikawa-suita-02 {
    color: #F1BF23;

    >span {
      background: #F1BF23;
    }
  }

  .yoshikawa-suita-03 {
    color: #208EB1;

    >span {
      background: #208EB1;
    }
  }

  .miki-suita-01 {
    color: #C05C16;

    >span {
      background: #C05C16;
    }
  }

  .miki-suita-02 {
    color: #E83278;

    >span {
      background: #E83278;
    }
  }

  .miki-suita-03 {
    color: #AECD00;

    >span {
      background: #AECD00;
    }
  }
}

@media (max-width: 767px) {
  .tjs-chart-route__label {
    font-size: 1.4rem;
    padding: 0;
  }
}

.tjs-chart-route__label--main {
  background: #32a853;
}

.tjs-chart-route__label--detour {
  color: var(--blue);
  font-weight: 700;
  width: 100%;
}

@media (max-width: 767px) {
  .tjs-chart-route__label--detour {
    border-top: 1px solid var(--blue);
    padding-top: 1.5em;
  }
}

.tjs-chart-route__inner {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
}

@media (max-width: 767px) {
  .tjs-chart-route__inner {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }
}

.tjs-chart-route__axis-y {
  color: #222;
  display: grid;
  font-size: 1.1rem;
  grid-template-rows: repeat(5, 1fr);
  line-height: 1;
  padding-right: .6rem;
  text-align: right;
  white-space: nowrap;
}

.tjs-chart-route__axis-y span:nth-child(1) {
  align-self: start;
  transform: translateY(-50%);
}

.tjs-chart-route__axis-y span:nth-child(2),
.tjs-chart-route__axis-y span:nth-child(3),
.tjs-chart-route__axis-y span:nth-child(4) {
  align-self: center;
}

.tjs-chart-route__axis-y span:nth-child(2) {
  align-self: center;
  transform: translateY(-50%);
}
.tjs-chart-route__axis-y span:nth-child(4) {
  align-self: center;
  transform: translateY(50%);
}

.tjs-chart-route__axis-y span:nth-child(5) {
  align-self: end;
  transform: translateY(25%);
}

.tjs-chart-route__plot {
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), #ececec 100%);
  background-size: 100% 25%;
  border-bottom: 1px solid #d2d2d2;
  border-top: 1px solid #ececec;
  display: grid;
  gap: .45rem;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  height: 14rem;
  position: relative;
}

@media (max-width: 767px) {
  .tjs-chart-route__plot {
    gap: .25rem;
    height: 10.5rem;
  }
}

.tjs-bar {
  align-self: end;
  background: #cfcfcf;
  border-radius: 2px 2px 0 0;
  color: transparent;
  display: block;
  min-height: .6rem;
  padding: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .tjs-bar {
    min-height: .5rem;
  }
}

.tjs-bar--main,
.tjs-bar--detour {
  height: var(--bar-height);
}

.tjs-bar.is-peak {
  background: var(--lightblue);
}

.tjs-bar.is-closed {
  background: repeating-linear-gradient(45deg, #666, #666 4px, #bbb 4px, #bbb 8px);
  background: #565656;
  position: relative;

  &::before {
    content: '!';
    font-weight: bold;
    position: absolute;
    display: block;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
    height: 1em;
    text-align: center;
    color: #fff;
  }
}

.tjs-chart-route__axis-x {
  color: #535353;
  display: grid;
  font-size: 1.1rem;
  grid-column: 2;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  margin-top: .3rem;
  font-weight: 700;
  text-align: center;
  gap: .45rem;
}

.tjs-chart-route__axis-x span {
  transform: translateX(-50%);
  white-space: nowrap;
}

.tjs-chart-route__axis-x span:last-child {
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .tjs-chart-route__axis-x span {
    transform: translateX(-66%);
    white-space: nowrap;
  }

  .tjs-chart-route__axis-x span:last-child {
    transform: translateX(-66%);
  }

  .tjs-chart-route__axis-y,
  .tjs-chart-route__axis-x {
    font-size: .9rem;
  }
}

.tjs-table-scroll {
  margin-top: 2rem;
  overflow-x: auto;
}

.tjs-table {
  background: #fff;
  border: 1px solid #c8d9e2;
  width: 100%;
  font-size: 1.4rem;
}

.tjs-table th,
.tjs-table td {
  border: 1px solid #c8d9e2;
  padding: 1rem;
  text-align: center;
}

.tjs-table th {
  background: #0e4272;
  color: #fff;
  font-weight: 700;
}

.tjs-table td {
  font-size: 1.4rem;
}

.tjs-table .is-peak {
  background: #fff4dd;
  font-weight: 700;
}
