/* ===== 変数定義 ===== */
:root {
  --primary-color: #1a5f7a;
  --secondary-color: #39c3f9;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f7fafc;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --transition-base: all 0.3s ease;
}

/* ===== お試しリセット ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: #fff;
}

/* ===== 共通ボタン ===== */
a.register-btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

a.register-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== 共通セクションスタイル ===== */
section {
  padding: 80px 20px;
}

/* ===== ヘッダー ===== */
.header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== メインビジュアル ===== */
.main-visual {
  background: linear-gradient(135deg, rgba(26, 95, 122, 0.8), rgba(57, 195, 249, 0.8)), url('../img/worker.png');
  background-size: cover;
  background-position: center;
  padding:300px 30px;
  text-align: center;
  color: white;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.main-visual__image-top,
.main-visual__image-bottom {
  position: absolute;
  width: 280px;
  height: auto;
  z-index: 1;
  transition: transform 0.3s ease;
}

.main-visual__image-top {
  top: -20px;
  right: -20px;
  transform: rotate(5deg);
}

.main-visual__image-bottom {
  bottom: -20px;
  left: -20px;
  transform: rotate(-5deg);
}

.main-visual__image-top:hover,
.main-visual__image-bottom:hover {
  transform: scale(1.05) rotate(0);
}

.main-title {
  font-size: 5rem;
  margin-bottom: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
}

.main-visual p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.free-registration-text {
  font-size: 4rem;
  padding: 12px 24px;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* ===== カード共通 ===== */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 32px 24px;
  margin-bottom: 24px;
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ===== benefits ===== */
.benefits {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.benefit-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.price {
  font-size: 3.5rem;
  color: var(--accent-color);
  font-weight: bold;
  margin: 1.5rem 0;
}

.benefit-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.benefit-card p:last-child {
  color: #666;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ===== アフィリエイトの始め方 ===== */
.steps {
  background: var(--light-bg);
  padding: 80px 0;
}

.step-container {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.step-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  position: relative;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-title {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}

.step-description h3 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
}

.step-description p {
  color: var(--text-color);
  font-size: 1rem;
  margin-bottom: 0;
}

.arrow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid #1a5f7a;
}

/* アフィリエイト登録の流れ */
.affiliate-flow {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.affiliate-flow h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  font-size: 2rem;
  background-color: #1a5f7a;
  padding: 15px 30px;
  display: inline-block;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.flow-container {
  max-width: 800px;
  margin: 0 auto;
}

.flow-item {
  display: flex;
  background-color: #fff;
  border-left: 5px solid #1a5f7a;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  position: relative;
}

.flow-item:not(:last-child):after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #1a5f7a;
}

.flow-number {
  background-color: #1a5f7a;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.flow-content {
  flex-grow: 1;
}

.flow-content h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
  background-color: #1a5f7a;
  padding: 8px 15px;
  border-radius: 5px;
  display: inline-block;
  position: relative;
}

.flow-content p {
  color: #666;
  margin: 0;
}

/* イントロセクション */
.intro {
  background-color: var(--light-bg);
  text-align: center;
  padding: 60px 20px;
}

.intro-content {
  max-width: 1000px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.intro-text .highlight {
  background-color: #ffeeba;
  padding: 2px 8px;
  font-weight: bold;
  border-radius: 4px;
}

.feature-titles {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-bottom: 30px;
}

.feature-title {
  color: #fff;
  background-color: #1a5f7a;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.4rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.feature-description {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: left;
  border-top: 5px solid #1a5f7a;
  margin-bottom: 40px;
}

.feature-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.cta-container {
  margin-top: 40px;
  text-align: center;
}

/* 会社情報セクション */
.company-info {
  padding: 60px 20px;
  background-color: #f5f9fa;
}

.company-info h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
  font-size: 2rem;
  position: relative;
  background-color: #1a5f7a;
  padding: 15px 30px;
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  left: 50%;
  transform: translateX(-50%);
}

.company-info h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #1a5f7a;
}

.company-info-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  gap: 30px;
  align-items: center;
}

.company-info-text {
  flex: 1;
  min-width: 300px;
}

.company-info-text p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.company-info-text .highlight {
  background-color: #ffeeba;
  padding: 2px 5px;
  font-weight: bold;
}

.company-info-text strong {
  color: #1a5f7a;
}

.company-info-text .cta-text {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 20px;
}

.company-info-text .company-link {
  color: #1a5f7a;
  text-decoration: underline;
  font-weight: bold;
  transition: all 0.3s ease;
}

.company-info-text .company-link:hover {
  color: #0d3c4e;
}

.company-info-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.company-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .company-info-container {
    flex-direction: column-reverse;
  }
  
  .company-info-image {
    margin-bottom: 20px;
  }
}

/* 無料会員登録のデザイン強化 */

.step-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background-color: #fdfdfd;
  margin-bottom: 20px;
}

.step-item {
  background-color: #f0f8ff; /* 薄いブルーでハイライト */
  border-color: #1a5f7a;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.step-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  background-color: #1a5f7a; /* プライマリーカラーに変更 */
  padding: 5px 15px;
  border-radius: 20px;
  display: inline-block;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.step-description {
  font-size: 0.95rem;
  color: #333;
}

.registration-heading {
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.registration-icon {
  width: 24px;
  height: 24px;
  background-image: url('../img/user-plus.svg');
  background-size: cover;
  background-repeat: no-repeat;
  margin-right: 10px;
  display: inline-block;
}

.registration-text {
  vertical-align: middle;
}

.registration-badge {
  display: inline-block;
  background-color: #ff5b5b;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 10px;
}


.step-item-highlight {
  border: 2px solid var(--accent-color);
  background: linear-gradient(to bottom, #fff, #f9f9f9);
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.registration-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background: url('../img/user-plus.svg') no-repeat center/contain;
  vertical-align: middle;
}

.registration-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin-top: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  .main-visual {
    min-height: 400px;
    padding: 40px 20px;
  }

  .main-visual__image-top,
  .main-visual__image-bottom {
    width: 200px;
  }

  .main-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
  }

  .free-registration-text {
    font-size: 3rem;
    padding: 10px 20px;
    margin-bottom: 2rem;
  }

  .benefits {
    padding: 0 20px;
    gap: 24px;
  }

  .step-card {
    padding: 24px;
  }

  .header h1 {
    font-size: 1.6rem;
  }

  .price {
    font-size: 2.8rem;
  }

  .wrapper {
    padding: 0 20px;
  }

  .intro-text {
    font-size: 1.1rem;
  }

  .features li {
    font-size: 1rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .main-visual {
    min-height: 300px;
    padding: 30px 15px;
  }

  .main-visual__image-top,
  .main-visual__image-bottom {
    display: none; /* スマホ版では画像を非表示にする */
  }

  .main-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .free-registration-text {
    font-size: 2rem;
    padding: 8px 16px;
    margin-bottom: 1.5rem;
  }

  section {
    padding: 40px 16px;
  }

  .card {
    padding: 24px 16px;
  }

  .benefit-card {
    padding: 32px 16px;
  }

  .price {
    font-size: 2.4rem;
    margin: 1rem 0;
  }

  .benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .register-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}