body{
  margin: 0;
  font-family: sans-serif;
  background-color: #ffffff;
  color: #000;
}

header, footer{
  text-align: center;
  padding: 10px;
}

nav{
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

nav a img{
  max-width: 100%;
  height: auto;
}

.container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 10px;
  gap: 20px;
}

/* 会社概要カード */
.card{
  flex: 1 1 350px;
  max-width: 500px;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

h1, h2{
  text-align: center;
}

/* 横スクロールタイムライン */
.timeline-horizontal{
  display: flex;
  overflow-x: auto;
  padding: 20px 10px;
  gap: 20px;
  align-items: flex-start;
  scroll-behavior: smooth;
}

.timeline-horizontal::-webkit-scrollbar {
  height: 8px;
}

.timeline-horizontal::-webkit-scrollbar-thumb {
  background-color: #ff6600;
  border-radius: 4px;
}

.timeline-item{
  flex: 0 0 auto;
  width: 200px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
}

.timeline-item img{
  width: 100%;
  border-radius: 6px;
  margin-bottom: 5px;
}

.timeline-item h3{
  margin: 5px 0 0 0;
  font-size: 1em;
}

.timeline-icon{
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6600;
  color: #fff;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* 矢印装飾 */
.timeline-arrow{
  font-size: 1.5em;
  color: #ff3300;
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
}

/* 最後のステップは矢印を消す */
.timeline-item:last-child .timeline-arrow{
  display: none;
}

/* スマホ表示 */
@media (max-width: 600px) {
  .timeline-horizontal{
    flex-direction: column;
    overflow-x: visible;
    padding-left: 0;
  }
  .timeline-item{
    width: 100%;
    margin-bottom: 20px;
  }
  .timeline-icon{
    top: -10px;
    left: 10px;
    transform: none;
  }
  .timeline-arrow{
    display: none;
  }
}


</style>
