@charset "utf-8";
/* CSS Document */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
      font-size: 16px;
      line-height: 1.3;
      color: #111;
    }

    a {
      background-color: transparent;
      text-decoration: none;
    }

    a:active, a:hover {
      outline: 0;
    }

    img {
      border: 0;
    }

    #map {
      width: 100vw;
      height: calc(100vh - 80px);
      background: #D3EDFB;
    }

    #overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw; height: 100vh;
      background: white;
      z-index: 1999;
      opacity: 1;
      transition: opacity 0.8s ease;
      pointer-events: none;
    }

    #overlay.fade-out {
      opacity: 0;
    }

    #loading {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 2000;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .spinner {
      width: 40px; height: 40px;
      border: 5px solid #ccc;
      border-top: 5px solid #0099D9;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin-bottom: 10px;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    #control {
      width: 100%;
      min-height: 100px;
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      position: fixed;
      bottom: 0;
      left: 0;
      background: #D4F3FF;
      padding: 10px;
      z-index: 1000;
      box-shadow: 0 -10px 5px rgba(0,0,0,0.03);
      gap: 10px 3.33%;
    }
    .select-wrap {
      width: 30%;
      max-width: 350px;
    }
    label {
      font-size: 20px;
      font-weight: bold;
      font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    }

    .select-box {
      position: relative;
      width: 100%;
      z-index: 1;
    }

    select {
      width: 100%;
      font-size: 24px;
      padding: 5px 60px 5px 30px;
      border-radius: 12px;
      border: 2px solid #000;
      background: transparent;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      cursor: pointer;
      font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    }
    .select-box::before {
      content:'';
      height: 100%;
      width: 2px;
      background: #000;
      position: absolute;
      right: 50px;
      top:0;
      z-index: -1;
    }
    .select-box::after {
      content: '';
      width: 0;
      height: 0;
      border-left: 12px solid transparent;
      border-right: 12px solid transparent;
      border-top: 12px solid black;
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-45%);
      z-index: -1;
    }

    option:disabled {
      color: #DDDDDD !important;
    }

    .btn {
      width: 30%;
      max-width: 450px;
    }

    .btn a {
      background: #0070C0;
      color: white;
      padding: 10px 25px;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 60px;
      border-radius: 120px;
      font-size: 22px;
      font-weight: bold;
      transition: .3s all;
    }

    .btn a:hover {
      opacity: 0.7;
    }

    #display {
      position: absolute;
      left: 20px;
      top: 0;
      z-index: 1000;
      width: 220px;
      line-height: 1.2;
    }

    #display .year {
      background: linear-gradient(0deg,rgba(0, 140, 214, 1) 0%, rgba(0, 157, 225, 1) 50%);
      color: #fff;
      font-size: 26px;
      font-weight: bold;
      text-align: center;
      padding: 20px 10px 10px;
      letter-spacing: .2em;
    }

    #display .date {
      background: linear-gradient(0deg,rgba(0, 141, 210, 1) 5%, rgba(0, 159, 220, 1) 100%);
      color: #fff;
      font-size: 30px;
      font-weight: bold;
      text-align: center;
      padding: 10px 10px 20px;
      position: relative;
    }

    #display .date .big {
      font-size: 60px;
      font-feature-settings: "palt";
    }
    #display .date .day {
      position: relative;
      z-index: 1;
    }

    #display .date .weekday {
      position: absolute;
      right: 7px;
      top: -18px;
      font-size: 14px;
      font-weight: 700;
      color: #111;
    }

    #display .date .weekday::before {
      content: '';
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #fff;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      z-index: -1;
    }
    .date.holiday .weekday,
.date.sunday .weekday {
  color: #E60012!important;
}

.date.saturday .weekday {
  color: #003894!important;
}

    #legend {
      position: absolute;
      right: 20px;
      bottom: 110px;
      z-index: 1100;
      width: 50px;
      cursor: pointer;
      transition: .3s all;
    }
    #legend:hover {
      opacity: .7;
    }

    #legend img {
      width: 100%;
    }
    #modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

#modalOverlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

#modalContent {
  position: relative;
  background: white;
  padding: 10px;
  border-radius: 12px;
  z-index: 3100;
  max-width: 85vw;
  max-height: 90vh;
}

#modalContent img {
  width: 100%;
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

#closeModal {
  position: absolute;
    top: -45px;
    right: -25px;
    font-size: 50px;
    font-weight: normal;
    color: #fff;
    cursor: pointer;
}
    .leaflet-container {
  cursor: default;
}

.leaflet-grab {
  cursor: default !important;
}

.leaflet-dragging .leaflet-container {
  cursor: move !important;
}


    @media screen and (max-width: 1280px) {
      .btn a {
        font-size: 18px;
      }
      select {
        font-size: 20px;
      }
    }
    
    @media screen and (max-width: 767px) {
      #map {
      height: calc(100vh - 155px);
    }
      .btn {
        width: 100%;
        max-width: inherit;
      }

      .btn a {
        font-size: 4vw;
        height: 3em;
      }

      #control {
        padding: 5%;
        height: auto;
        flex-wrap: wrap;
        justify-content: space-between;
      }
      .select-wrap {
        width: 100%;
        max-width: inherit;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      label {
        font-size: 4vw;
        width: 100%;
      }

      select {
        font-size: 4vw;
        padding: .3em 32px .3em .5em;
      }

      .select-box {
        width: 100%;
      }
      .select-box::before {
        right: 30px;
      }
      .select-box::after {
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 8px solid black;
        right: 9px;
      }
      #display {
        left: 0;
        display: flex;
      }

      #display .year {
        background: linear-gradient(90deg,rgba(0, 140, 214, 1) 0%, rgba(0, 157, 225, 1) 50%);
        font-size: 4vw;
        padding: 3vw 10px 0;
        height: 10vw;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
      }
      #display .date {
        background: linear-gradient(90deg,rgba(0, 141, 210, 1) 5%, rgba(0, 159, 220, 1) 100%);
        font-size: 4vw;
        padding: 1vw 1em 0 10px;
        height: 10vw;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
      }

      #display .date .big {
        font-size: 7vw;
      }
      
      #display .date .weekday {
      position: inherit;
      right: -1vw;
      top: -.5vw;
      font-size: 3vw;
    }
      #display .date .weekday::before {
      width: 4vw;
      height: 4vw;
    }
      #legend {
        width: 10vw;
        bottom: calc(42vw + 12px);
        right: 6px;
      }
    }
    @media (orientation: landscape) and (max-width: 1000px){
      #map {
      height: calc(100vh - 6vw);
    }

    #control {
      min-height: 5vw;
      flex-wrap: nowrap;
      padding: 1.2vw;
      gap: 3.33%;
    }
    .select-wrap {
      width: 25%;
      display: flex;
      flex-direction: column;
    }
    label {
      font-size: 1.7vw;
    }

    select {
      width: 100%;
      font-size: 2vw;
      padding: .5vw 6vw .5vw 1vw;
      border-radius: 1.2vw;
    }
    .select-box::before {
      right: 5vw;
    }
    .select-box::after {
      border-left: 1.2vw solid transparent;
      border-right: 1.2vw solid transparent;
      border-top: 1.2vw solid black;
      right: 1.6vw;
      top: 50%;
      transform: translateY(-45%);
    }

    .btn {
      width: 40%;
    }

    .btn a {
      padding: 1.5vw 2vw;
      height: auto;
      border-radius: 3vw;
      font-size: 1.8vw;
    }


    #display {
        left: 0;
        display: flex;
      }

      #display .year {
        background: linear-gradient(90deg,rgba(0, 140, 214, 1) 0%, rgba(0, 157, 225, 1) 50%);
        font-size: 4vh;
        padding: 3vh 10px 0;
        height: 10vh;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
      }
      #display .date {
        background: linear-gradient(90deg,rgba(0, 141, 210, 1) 5%, rgba(0, 159, 220, 1) 100%);
        font-size: 4vh;
        padding: 1vh 1em 0 10px;
        height: 10vh;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
      }

      #display .date .big {
        font-size: 7vh;
      }
      
      #display .date .weekday {
      position: inherit;
      right: -1vh;
      top: -.5vh;
      font-size: 3vh;
    }
      #display .date .weekday::before {
      width: 4vh;
      height: 4vh;
    }
    #legend {
      right: 1vw;
      bottom: 9vw;
      width: 5vw;
    }
      #modal {
        height: 100svh;
      }
      #modalContent {
        max-width: 70svh;
       max-height: 80svh;
        padding: 3svh;
     }
      #modalContent img {
        width: auto;
        height: 100%;
        max-height: 74svh;
      }
      #closeModal {
    top: -10svh;
    right: -5svh;
    font-size: 10svh;
}
    }

