@media (width < 400px) {
  * {
    margin: 0;
    padding: 0;
  }
  
  snap,button {
    display: block;
  }
  
  .setting {
    margin: 20px 0;
  }
  
  .setting p {
    display: inline;
  }
  
  .screen_slider {
    font-family: sans-serif;
    scroll-snap-type: mandatory;
    scroll-snap-points-y: repeat(100vw);
    scroll-snap-type: x mandatory;
    display: flex;
    overflow-x: scroll;
  }
  
  section {
    background-color: #fff;
    min-width: 100%;
    height: 100dvh;
    scroll-snap-align: start;
    text-align: center;
    position: relative;
    display: block;
  }
  
  h1  {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    font-size: 24vw;
    font-family: monospace;
  }
  
  h2 {
    font-size: 36px;
    text-align: center;
    padding: 20px;
    margin: auto 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  section:nth-of-type(2) p {
    position: relative;
    display: block;
    font-size: 16px;
    margin: 25px;
    padding: 15px 0px;
    color: var(--a-color);
    border: 1px solid #7f7f80;
    text-decoration: none;
  }
  
  section:nth-of-type(2) p:active::after {
    background-color: rgba(192,162,199,0.2);
  }
  
  section:nth-of-type(2) p:active {
    background-color: rgba(211,204,214,0.2);
  }
  
  section:nth-of-type(2) p::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -5px;
    color: var(--a-color);
    border: 1px solid #7f7f80;
    width: 100%;
    height: 100%;
  }
}

@media (width > 400px) {
  * {
    margin: 0;
    padding: 0;
  }
  
  snap,button {
    display: block;
  }
  
  .setting {
    margin: 20px 0;
  }
  
  .setting p {
    display: inline;
  }
  
  .screen_slider {
    width: 100%;
    height: 100vh;
    scroll-snap-type: y mandatory;
    overflow: auto;
  }
  
  section {
    background-color: #fff;
    min-width: 100%;
    height: 100dvh;
    scroll-snap-align: start;
    text-align: center;
    position: relative;
    display: block;
  }
  
  h1  {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    font-size: 32vw;
    font-family: monospace;
  }
  
  h2 {
    font-size: 36px;
    text-align: center;
    padding: 20px;
    margin: auto 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  section:nth-of-type(2) p {
    position: relative;
    display: block;
    font-size: 16px;
    margin: 25px;
    padding: 15px 0px;
    color: var(--a-color);
    border: 1px solid #7f7f80;
    text-decoration: none;
  }
  
  section:nth-of-type(2) p:active::after {
    background-color: rgba(192,162,199,0.2);
  }
  
  section:nth-of-type(2) p:active {
    background-color: rgba(211,204,214,0.2);
  }
  
  section:nth-of-type(2) p::after {
    content: '';
    position: absolute;
    top: 5px;
    right: -5px;
    color: var(--a-color);
    border: 1px solid #7f7f80;
    width: 100%;
    height: 100%;
  }
}