@charset "utf-8";

/* CSS: ページのデザイン */

:root {
  --primary-color: #1a5e9a;

  --secondary-color: #f0f8ff;

  --accent-color: #ff9800;

  --text-color: #333;

  --white-color: #fff;

  --border-color: #ddd;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;

  margin: 0;

  padding: 0;

  color: var(--text-color);

  line-height: 1.8;

  background-color: var(--white-color);
}

.container {
  max-width: 960px;

  margin: 0 auto;

  padding: 20px;
}

.view_pcOnly {
  display: block;
}

.view_spOnly {
  display: none;
}

.view_pcOnlyInline {
  display: inline;
}

.view_spOnlyInline {
  display: none;
}

/* ファーストビュー */

header {
  text-align: center;

  background: linear-gradient(rgba(26, 94, 154, 0.85), rgba(26, 94, 154, 0.85)), url('../images/weeds-bg.jpg') no-repeat center center/cover;

  color: var(--white-color);

  height: 100vh;

  min-height: 500px;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 20px;

  box-sizing: border-box;
}

header h1 {
  font-size: 2.5em;
  margin: 0 0 10px 0;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

header p.sub-headline {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

header .logo {
  width: clamp(12.5rem, 6.707rem + 24.39vw, 25rem);
  margin: 0 auto;
  margin-bottom: clamp(1.25rem, 0.96rem + 1.22vw, 1.875rem);
}

.cta-button {
  display: inline-block;

  background-color: var(--accent-color);

  color: var(--white-color);

  padding: 15px 40px;

  font-size: 1.5em;

  font-weight: bold;

  text-decoration: none;

  border-radius: 50px;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);

  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* セクション共通スタイル */

section {
  padding: 80px 0;
}

h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 50px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin: 10px auto 0;
}

/* お悩みセクション */

.problems {
  background-color: #fffaf0;
  padding: 30px;
  border-radius: 8px;
  border: 2px dashed #ffc107;
}

.problems h3 {
  font-size: 1.5em;
  text-align: center;
  margin-top: 0;
}

.problems ul {
  list-style: '? ';
  padding-left: 20px;
}

.problems li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.solution {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-top: 30px;
}

/* 商品紹介セクション */

.product-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 25px;
}

.product-card {
  background: var(--white-color);

  border: 1px solid var(--border-color);

  border-radius: 8px;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

  display: flex;

  flex-direction: column;

  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;

  background-color: #f9f9f9;
  padding: 10px;
  box-sizing: border-box;
}

.product-card h3 {
  background-color: var(--primary-color);
  color: var(--white-color);

  padding: 15px;
  margin: 0;
  font-size: 1.3em;
  text-align: center;
}

.product-card .card-content {
  padding: 20px;
  flex-grow: 1;
}

.product-card p.catchphrase {
  font-weight: bold;
  color: var(--primary-color);
}

.product-card ul {
  list-style: '・';
  padding-left: 20px;
  margin: 10px 0 0;
}

.slider-nav,
.slider-dots {
  display: none;
}

/* グリホサートとグルホシネートの違いのスタイル */

.sp-only {
  display: none;
}

.comparison-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 30px;
}

.comparison-card {
  border: 2px solid var(--primary-color);

  border-radius: 8px;

  padding: 30px;

  background-color: #fff;
}

.comparison-card h3 {
  font-size: 1.8em;

  color: var(--primary-color);

  text-align: center;

  margin: 0 0 10px 0;

  border-bottom: 2px solid var(--accent-color);

  padding-bottom: 10px;
}

.comparison-card p.products {
  text-align: center;

  font-weight: bold;

  background-color: var(--secondary-color);

  padding: 5px;

  border-radius: 4px;

  margin-bottom: 20px;

  font-size: 0.9em;
}

.comparison-card ul {
  list-style: '? ';

  padding-left: 20px;

  margin-bottom: 20px;
}

.comparison-card li {
  margin-bottom: 10px;
}

.comparison-card h4 {
  font-size: 1.2em;

  color: var(--primary-color);

  border-left: 5px solid var(--accent-color);

  padding-left: 10px;

  margin: 25px 0 10px;
}

/* welzoの強み */

.welzo-merits {
  display: flex;
  gap: 30px;
}

.merit-item {
  flex: 1;
  text-align: center;
}

.merit-item .icon {
  width: 150px;
  margin: 0 auto;
}

.final-cta {
  text-align: center;
  padding: 40px 0;
}

#registration-section {
  padding-top: 40px;
}

/* フッター */

footer {
  background-color: #333;
  color: #ccc;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9em;
}

/* アニメーション */

.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ対応 */

@media (max-width: 768px) {
  .view_pcOnly {
    display: none;
  }

  .view_spOnly {
    display: block;
  }

  .view_pcOnlyInline {
    display: none;
  }

  .view_spOnlyInline {
    display: inline;
  }

  header h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.8em;
  }

  .welzo-merits {
    flex-direction: column;
  }

  /* スライダー */

  #products-section .container {
    padding: 0;
  }

  #products-section h2 {
    padding: 0 20px;
  }

  .product-slider-wrapper {
    position: relative;
    overflow: hidden;
  }

  .product-grid {
    display: flex;
    gap: 0;
    cursor: grab;
    user-select: none;
  }

  .product-grid:active {
    cursor: grabbing;
  }

  .product-card {
    flex: 0 0 80%;
    margin: 0 10%;
    width: 80%;
    box-sizing: border-box;
  }

  .slider-nav {
    display: block;
  }

  .slider-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
  }

  .slider-btn.prev {
    left: 5px;
  }

  .slider-btn.next {
    right: 5px;
  }

  .slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
  }

  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .dot.active {
    background-color: var(--primary-color);
  }

  /* 比較セクション */

  .sp-only {
    display: block;
  }

  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comparison-card {
    padding: 20px;
  }

  .comparison-card h3 {
    font-size: 1.5em;
  }
}
