/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  padding: 20px 0;
  text-align: center;
}

.logo {
  max-width: 300px;
  margin: 0 auto;
}

/* Section styles */
section {
  margin-bottom: 60px;
  padding: 0 0 20px 0;
}

.subtitle {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #00a0e9; /* C96M41Y6K0 */
}

/* Flex containers */
.flex-container {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 30px;
}

.image-container {
  flex: 0 0 40%;
}

.text-container {
  flex: 0 0 60%;
}

/* Images grid layouts */
.step-images {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
  gap: 15px;
}

.step-images img {
  width: 32%;
  border-radius: 8px;
  object-fit: contain;
  height: 260px;
}

.benefit-images {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  gap: 20px;
}

.benefit-images img {
  width: 48%;
  border-radius: 8px;
}

/* Goal section */
.goal {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  color: #00b0c8; /* C70M0Y20K0 */
  margin: 40px 0;
  padding: 20px;
  background-color: rgba(0, 176, 200, 0.1);
  border-radius: 10px;
}

/* Call to action section */
.cta-section {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cta-title {
  font-size: 24px;
  font-weight: bold;
  color: #e94c89; /* M66 */
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #e94c89; /* M66 */
  color: white;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 30px;
  transition: background-color 0.3s;
  box-shadow: 0 4px 8px rgba(233, 76, 137, 0.3);
}

.cta-button:hover {
  background-color: #d43a77;
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .subtitle {
    font-size: 20px;
  }

  .flex-container {
    flex-direction: column;
    gap: 20px;
  }

  .image-container,
  .text-container {
    flex: 0 0 100%;
  }

  .step-images,
  .benefit-images {
    flex-direction: column;
    align-items: center;
  }

  .step-images img,
  .benefit-images img {
    width: 100%;
    margin-bottom: 15px;
  }

  .goal {
    font-size: 22px;
    padding: 15px;
  }

  .cta-section {
    padding: 25px 15px;
  }

  .cta-title {
    font-size: 20px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100%;
    max-width: 280px;
  }

  .partner-logo {
    width: 45%;
    height: 80px;
  }
}

/* Additional responsive adjustments for very small screens */
@media (max-width: 480px) {
  .subtitle {
    font-size: 18px;
  }

  .partner-logo {
    width: 100%;
  }

  .logo {
    max-width: 220px;
  }
}

.modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 0.5px solid #999;
  border-radius: 15px;
  padding: 15px 10px;
  margin: 10px;
  width: 350px;
  z-index: 1000;
  display: none;
}

@media (min-width: 768px) {
  .modal {
    width: 600px;
  }
}

@media (min-width: 1200px) {
  .modal {
    width: 950px;
  }
}

.modal-title {
  text-align: center;
  font-size: 12px;
}

@media (min-width: 600px) {
  .modal-title {
    font-size: 16px;
  }
}

.link {
  text-decoration: underline;
  cursor: pointer;
  color: blue;
}

.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

#accept-btn {
  padding: 15px 25px;
  font-size: 20px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#accept-btn:hover {
  background-color: #115293;
}