:root {
  --greyDark: #333333;
  --greyLight: #d6d6d6;
  --greyLight2: #a1a1a6;
  --white: #f5f5f7;
  --text: #1d1d1f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

header {
  padding: 20px;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;

  .logo {
    margin: 0;
    font-size: 28px;

    a {
      text-decoration: none;
      color: #fff;
      background: #333;
      padding: 8px 16px;
      font-weight: bold;
      display: inline-block;
    }
  }

  nav {
    ul {
      display: flex;
      gap: 20px;
    }

    a {
      color: var(--text);
      text-decoration: none;

      &:hover {
        opacity: 0.7;
      }
    }
  }
}

main {
  div {
   img {
      width: 100%;
      height: auto;
    }
  }
}

#about {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;

  h2 {
    text-align: center;
    margin-bottom: 40px;
  }

  div {
    display: flex;
    gap: 40px;
    align-items: center;
  }

  img {
    width: 200px;
    border-radius: 50%;
  }

  h3 {
    margin: 0 0 10px;
  }
}

#bicycle {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px;

  h2 {
    text-align: center;
    margin-bottom: 40px;
  }
  
  ul {
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
  }

  li {
    width: 32%;
    text-align: center;
  }

  img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
  }
}

footer {
  padding: 20px;
  background: var(--white);
  text-align: center;
  font-size: 14px;
  color: var(--text);
}

@media (max-width: 768px) {
  header.header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  header.header nav {
    width: 100%;
  }

  header.header nav ul {
    display: flex;
    justify-content: flex-start; 
    gap: 12px;
    padding: 6px 6px 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; 
    scroll-snap-type: x mandatory;    
  }

  header.header nav ul::-webkit-scrollbar {
    height: 6px;
  }
  header.header nav ul::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
  }

  header.header nav li {
    flex: 0 0 auto;        
    scroll-snap-align: start;
  }

  header.header nav a {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid var(--greyLight);
    border-radius: 999px;
    background: #fff;
    line-height: 1;
  }

  header.header nav a:active {
    transform: translateY(1px);
  }

  .mainvisual img { width: 100%; height: auto; }

  #about {
    div { flex-direction: column; text-align: center; gap: 20px; }
    img { width: 180px; margin: 0 auto; }
  }

  #bicycle {
    ul { flex-direction: column; gap: 28px; }
    li { width: 100%; }
    img { height: auto; }
  }
}

