html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}


.intro-image img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ===== Base ===== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 横スクロール防止 */
  font-family: "M PLUS Rounded 1c", sans-serif;
  background: var(--color-main);
  color: var(--color-text);
  box-sizing: border-box;
}

body {
  background-image: radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 20px 20px;
}

.main-gap {
  gap: 0px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 80vh;
  width: 100%;
  max-width: 100%;
  background-image:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: #fff;
  box-sizing: border-box;
}

.hero-bg-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("../images/ramune2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  width: 300px;       /* 横幅 */
  height: 300px;      /* 高さを固定 */
  z-index: 1;
  display: block;     /* これを追加 */
  pointer-events: none; /* テキスト操作を邪魔しない */
}

.hero h1,
.hero p {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-family: "Rampart One", cursive;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.hero p {
  margin-top: 16px;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero .btn-primary {
  background: #6ecff5;
  box-shadow: 0 8px 0 #4bb6de;
}

/* ラムネ玉っぽい丸 */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  animation: float 6s infinite ease-in-out;
}

.bubble.small  { width: 80px;  height: 80px; }
.bubble.medium { width: 140px; height: 140px; }
.bubble.large  { width: 220px; height: 220px; }

.b1  { top: 55%; left: 3%;  animation-duration: 6s; }
.b2  { top: 65%; left: 12%; animation-duration: 7s; }
.b3  { top: 75%; left: 25%; animation-duration: 5.5s; }
.b4  { top: 85%; left: 40%; animation-duration: 8s; }
.b5  { top: 60%; left: 55%; animation-duration: 6.8s; }
.b6  { top: 70%; left: 70%; animation-duration: 7.2s; }
.b7  { top: 90%; left: 80%; animation-duration: 9s; }
.b8  { top: 58%; left: 20%; animation-duration: 5.8s; }
.b9  { top: 80%; left: 5%;  animation-duration: 8.4s; }
.b10 { top: 68%; left: 35%; animation-duration: 6.1s; }
.b11 { top: 92%; left: 50%; animation-duration: 9.2s; }
.b12 { top: 77%; left: 65%; animation-duration: 7.7s; }
.b13 { top: 88%; left: 25%; animation-duration: 8.9s; }
.b14 { top: 63%; left: 85%; animation-duration: 6.4s; }

@keyframes float {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(12px, -28px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 600px) {
  /* Hero 背景ラムネ玉 */
  .bubble.small  { width: 40px;  height: 40px; }
  .bubble.medium { width: 70px;  height: 70px; }
  .bubble.large  { width: 120px; height: 120px; }

  /* 位置も少し中央寄せに寄せる */
  .b1  { top: 50%; left: 5%; }
  .b2  { top: 60%; left: 15%; }
  .b3  { top: 70%; left: 30%; }
  .b4  { top: 80%; left: 45%; }
  .b5  { top: 55%; left: 55%; }
  .b6  { top: 65%; left: 70%; }
  .b7  { top: 85%; left: 75%; }
  .b8  { top: 55%; left: 15%; }
  .b9  { top: 75%; left: 5%; }
  .b10 { top: 60%; left: 35%; }
  .b11 { top: 90%; left: 50%; }
  .b12 { top: 70%; left: 60%; }
  .b13 { top: 85%; left: 25%; }
  .b14 { top: 60%; left: 75%; }
}

/* ===== Hero Responsive ===== */
@media (max-width: 600px) {
  .hero {
    min-height: 60vh;
    padding: 24px 16px;
    background-position: center top;
  }

    .hero-bg-image {
    width: 150px;
    height: 150px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ===== Button ===== */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.25s;          /* アニメーション速度を統一 */
  position: relative;
  overflow: hidden;
  height: 56px;
  background: var(--color-main);
  color: #fff;
  box-shadow: 0 6px 0 #6aa9e4; /* 下に影をつける */
}

/* ホバーで少し沈む */
.btn-primary:hover {
  background: #6ecff5;         /* 少し明るく */
  transform: translateY(2px);  /* 下に沈む */
  box-shadow: 0 4px 0 #4bb6de; /* 影を短くして押されてる印象 */
}

/* クリックでさらに沈む */
.btn-primary:active {
  transform: translateY(4px);  /* さらに下に */
  box-shadow: 0 2px 0 #4bb6de; /* 影をさらに短く */
}

/* ===== Wave Divider ===== */
.wave-divider {
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
  transform: rotate(180deg);
}

/* ===== Intro Text ===== */
.intro {
  background: #ffffff;
  padding: 80px 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.intro-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 32px;
  color: #2c3e50;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .intro {
    padding: 50px 16px;
  }

  .intro p {
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

/* ===== Intro Buttons ===== */
.intro-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.intro-buttons a {
  min-width: 240px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 1rem;
}

.btn-secondary {
  display: inline-block;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.25s;
  background: var(--color-white);
  border: 2px solid var(--color-main);
  color: #3a7fc4;
  box-shadow: 0 6px 0 #dbeeff;
}

.btn-secondary:hover {
  background: #e8f8ff;
  transform: translateY(2px);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-sub);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Intro Image ===== */
.intro-image {
  width: 100%;
  overflow: hidden;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .intro-image {
    height: 240px;
  }

  .intro-image img {
    height: 100%;
    object-fit: cover;
  }
}
