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

body {
    font-family: 'Merriweather', serif;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
}

 .container2 {
            width: 300px;
            border: 2px solid #333;
            padding: 10px;
            text-align: center;
            border-radius: 10px;
            box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        }
        .container2 img {
            width: 50%;
            border-radius: 5px;
        }
        .text {
            margin-top: 10px;
            font-size: 16px;
            color: #333;
      
  }
    
header {
    background-color: #3e3b34;
    color: #fff;
    padding: 20px 0;
}

header h1 {
    font-size: 3em;
    text-align: center;
    margin-bottom: 10px;
}

nav ul {
    list-style-type: none;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

.hero {
    background-image: url('bg.jpg'); /* ここにあなたのヒーロー画像のURLを入れてください */
    background-size: cover;
    background-position: center;
    height: 400px;
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 8px;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.cta {
    padding: 10px 20px;
    background-color: #c39c6e;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.about {
    background-color: #fff;
    padding: 50px 0;
    text-align: center;
}

.about h2 {
    font-size: 2em;
    margin-bottom: 20px;
}


footer {
    background-color: #3e3b34;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer p {
    font-size: 1em;
}

.marquee-wrap{
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 矢印 */
.marquee-btn{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.2);
  background: #fff;
  font-size: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 横スクロール本体 */
.marquee{
  overflow-x: auto;
  scroll-behavior: smooth;
}

.marquee-track{
  display: flex;
  gap: 16px;
  width: max-content;
}


/* カード */
.marquee-card{
  flex: 0 0 260px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.marquee-card img{
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.marquee-card span{
  display: block;
  padding: 10px 12px;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
}

@media (max-width:768px){
  .marquee-card{ flex-basis: 78vw; }
}

/* ★1枚ごとにピタッと止める */
.marquee{
  flex: 1 1 auto;      /* flex内で縮められるように */
  min-width: 0;        /* ★これ重要 */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.marquee-card{
  scroll-snap-align: start;
}