:root {
  --sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
    "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica,
    "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", YuGothic,
    "Yu Gothic", "メイリオ", Meiryo, sans-serif;
  --mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;

  /* Default theme */
  --bg: #fff;
  --text: #212121;
  --text-light: #4c4c4c;
  --bg01: #92bd98;
  --bg02: #ffb300;
  --gai-num-bg: #ececec;
  --gai-num-text: #666666;
  --header-footer-bg: #e8ece9;
  --accent-bg: #2a402d;
  --accent-text: #fff;
  --note-text: #b70000;
}

html {
  font-family: var(--sans-font);
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: var(--bg01);
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
}

.mobile {
  display: none;
}

.pc {
  display: block;
}

header {
  background-color: var(--header-footer-bg);
  text-align: center;
}

header p {
  color: var(--text-light);
}

header img {
  width: 1rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
}

h2 {
  font-size: 2.6rem;
  margin-top: 3rem;
}

h1,
h2 {
  line-height: 1.1;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.main01 {
  height: 100vh;
}

.main01 {
  position: relative;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  min-height: 100vh;
}

/* 診察室 */
.div1 {
  background-color: var(--bg);
  grid-area: 1 / 4 / 3 / 4;
  height: 40vh;
  overflow: hidden;
  padding-bottom: 2rem;
  border-radius: 0 0 0 40px;
  text-align: center;
}

.div1 p {
  font-size: 4rem;
  font-weight: 600;
}

.div1 > p > span {
  font-size: 15rem;
  font-weight: 800;
  line-height: 0.9;
}

/* 外出 */
.div2 {
  background-color: var(--bg);
  grid-area: 1 / 1 / 3/ 4;
  height: 40vh;
  overflow: scroll;
  padding: 0 2rem 2rem;
  border-radius: 0 0 40px 0;
  text-align: center;
}

.div2 > p {
  font-size: 4rem;
  font-weight: 600;
  color: var(--gai-num-text);
}

.gai01 {
  display: grid;
  grid-template-columns: repeat(10, 5rem);
  gap: 1.5rem;
}

.gai01-num,
.wait01-num {
  background-color: var(--bg);
  font-size: 3rem;
  text-align: center;
  line-height: 0.9;
}

.gai01-num {
  background-color: var(--gai-num-bg);
  color: var(--gai-num-text);
  font-size: 5rem;
  font-weight: 600;
  border-radius: 48px;
}

/* 院内待ち */
.div3 {
  grid-area: 3 / 1 / 5 / 5;
  height: 50vh;
  overflow: scroll;
}

.back {
  display: inline-flex;
  margin-bottom: 1rem;
  padding-right: 1rem;
  border-radius: 0 6px 6px 0;
  background: var(--accent-bg);
  color: var(--accent-text);
  align-items: center;
}

.back::before {
  font-family: "Material Icons";
  content: "\e2ea";
  align-items: center;
  color: var(--accent-text);
  font-size: 1.5rem;
}

.wait01 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2rem;
}

.wait01-num {
  font-size: 8rem;
  font-weight: 700;
  border-radius: 32px;
}

/* 注意書き */
.div4 {
  grid-area: 5 / 1 / 6 / 5;
  bottom: 0;
  position: fixed;
  width: 100%;
  background-color: var(--header-footer-bg);
  text-align: center;
}

.div4 p {
  font-size: 2.5rem;
  font-weight: 600;
}

.div4 p:first-child {
  color: var(--note-text);
}

@media only screen and (max-width: 720px) {
  .mobile {
    display: block;
  }
  .pc {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-row-gap: 1rem;
  }

  .div1 {
    grid-area: 1;
    height: fit-content;
    border-radius: 0 0 40px 40px;
    padding: 0.5rem;
  }
  .div2 {
    grid-area: 4;
    height: fit-content;
    border-radius: 40px 40px 0 0;
    padding: 0.5rem 0.5rem 10rem 0.5rem;
  }
  .div3 {
    grid-area: 3;
    padding: 0.5rem;
    height: fit-content;
  }
  .div4 {
    grid-area: 2;
    width: fit-content;
    padding: 1rem;
    text-align: left;
  }

  .div1 > p {
    font-size: 1.5rem;
  }
  .div1 > p > span {
    font-size: 3rem;
  }
  .div2 > p {
    font-size: 1.5rem;
  }
  .div3 p {
    margin-bottom: 1rem;
  }
  .div4 p {
    font-size: 1.25rem;
  }

  .gai01,
  .wait01 {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
  }

  .gai01-num,
  .wait01-num {
    font-size: 4rem;
  }
}
