/* ========================================
   リセット & 基本設定
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

/* ========================================
 コンテナ
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-small {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
 ヘッダー
======================================== */
header {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: #2c5f8d;
}

nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
}

nav a {
  color: #333;
  font-size: 15px;
}

.btn-nav {
  background-color: #2c5f8d;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 50px;
}

.simple-header {
  padding: 20px 0;
}

.simple-header .logo {
  font-size: 18px;
}

/* ========================================
 ボタン
======================================== */
.btn-primary {
  display: inline-block;
  background-color: #e67e22;
  color: #fff;
  padding: 18px 48px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #d35400;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* ========================================
 ヒーローセクション
======================================== */
.hero {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 36px;
  line-height: 1.5;
  color: #2c5f8d;
  margin-bottom: 24px;
}

.hero-text {
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
}

.hero-campaign {
  background-color: #fff4e6;
  border: 2px solid #e67e22;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}

.campaign-badge {
  display: inline-block;
  background-color: #e67e22;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
}

.campaign-text {
  font-size: 18px;
  color: #333;
}

.campaign-text strong {
  font-size: 24px;
  color: #e67e22;
}

.hero-note {
  font-size: 13px;
  color: #777;
  margin-top: 16px;
}

.hero-image {
  flex: 1;
  background-color: #ddd;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

/* ========================================
 セクション共通
======================================== */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  text-align: center;
  color: #2c5f8d;
  margin-bottom: 48px;
}

/* ========================================
 サービスセクション
======================================== */
.service {
  background-color: #fff;
}

.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.problem-item {
  text-align: center;
  padding: 24px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.problem-icon {
  width: 80px;
  height: 80px;
  background-color: #ddd;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
}

.problem-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-item p {
  font-size: 15px;
  color: #555;
}

.solution {
  background-color: #e8f4f8;
  padding: 40px;
  border-radius: 12px;
  border-left: 4px solid #2c5f8d;
}

.solution h3 {
  font-size: 24px;
  color: #2c5f8d;
  margin-bottom: 16px;
}

.solution p {
  font-size: 16px;
  color: #555;
  line-height: 1.9;
}

/* ========================================
 選ばれる理由セクション
======================================== */
.benefits {
  background-color: #f8f9fa;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.benefit-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.benefit-image {
  width: 100%;
  height: 200px;
  background-color: #ddd;
}

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

.benefit-card h3 {
  font-size: 20px;
  color: #2c5f8d;
  padding: 24px 24px 12px;
}

.benefit-card p {
  font-size: 15px;
  color: #555;
  padding: 0 24px 24px;
  line-height: 1.8;
}

/* ========================================
 取り扱い回線セクション
======================================== */
.providers {
  background-color: #fff;
}

.providers-intro {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.provider-item {
  text-align: center;
  padding: 32px 24px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.provider-logo {
  width: 120px;
  height: 80px;
  background-color: #ddd;
  margin: 0 auto 16px;
  border-radius: 4px;
}

.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.provider-item p {
  font-size: 14px;
  color: #555;
}

.providers-note {
  text-align: center;
  font-size: 14px;
  color: #777;
}

/* ========================================
 ご利用の流れセクション
======================================== */
.flow {
  background-color: #f8f9fa;
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 200px;
  background-color: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.step-number {
  display: inline-block;
  background-color: #2c5f8d;
  color: #fff;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
}

.step-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.flow-arrow {
  font-size: 24px;
  color: #2c5f8d;
  font-weight: bold;
}

/* ========================================
 CTAセクション
======================================== */
.cta {
  background-color: #2c5f8d;
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.cta > p {
  font-size: 16px;
  margin-bottom: 24px;
}

.cta-campaign {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 32px;
  display: inline-block;
}

.cta-campaign p {
  font-size: 18px;
  font-weight: bold;
}

.cta-note {
  font-size: 13px;
  margin-top: 16px;
  opacity: 0.9;
}

/* ========================================
 フッター
======================================== */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 32px;
  gap: 40px;
}

.footer-logo {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 14px;
  color: #aaa;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: #aaa;
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: #777;
  padding-top: 24px;
  border-top: 1px solid #333;
}

/* ========================================
 お問合せフォーム
======================================== */
.contact-section {
  padding: 60px 0 100px;
  background-color: #f8f9fa;
  min-height: calc(100vh - 200px);
}

.contact-intro {
  text-align: center;
  margin-bottom: 48px;
}

.contact-intro h1 {
  font-size: 32px;
  color: #2c5f8d;
  margin-bottom: 16px;
}

.contact-intro p {
  font-size: 15px;
  color: #555;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background-color: #2c5f8d;
  width: 12.5%;
  transition: width 0.4s ease;
}

.progress-text {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-bottom: 48px;
}

.contact-form {
  background-color: #fff;
  padding: 48px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateX(20px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

.question-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 12px;
  font-weight: bold;
}

.question-note {
  font-size: 14px;
  color: #777;
  margin-bottom: 24px;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-card,
.checkbox-card {
  display: block;
  cursor: pointer;
}

.radio-card input[type="radio"],
.checkbox-card input[type="checkbox"] {
  display: none;
}

.radio-label,
.checkbox-label {
  display: block;
  padding: 18px 24px;
  background-color: #f8f9fa;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s;
  font-size: 15px;
}

.radio-card input[type="radio"]:checked + .radio-label,
.checkbox-card input[type="checkbox"]:checked + .checkbox-label {
  background-color: #e8f4f8;
  border-color: #2c5f8d;
  color: #2c5f8d;
  font-weight: bold;
}

.radio-label:hover,
.checkbox-label:hover {
  border-color: #2c5f8d;
}

.input-group {
  margin-bottom: 24px;
}

.text-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.text-input:focus {
  outline: none;
  border-color: #2c5f8d;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 16px;
}

.btn-back,
.btn-next,
.btn-submit {
  padding: 14px 32px;
  font-size: 15px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  font-family: inherit;
}

.btn-back {
  background-color: #f0f0f0;
  color: #555;
}

.btn-back:hover {
  background-color: #e0e0e0;
}

.btn-next,
.btn-submit {
  background-color: #2c5f8d;
  color: #fff;
  margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
  background-color: #234a6d;
}

.btn-next:disabled,
.btn-submit:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  padding: 60px 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #27ae60;
  color: #fff;
  font-size: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.form-success h2 {
  font-size: 28px;
  color: #2c5f8d;
  margin-bottom: 16px;
}

.form-success p {
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.8;
}

/* ========================================
 プライバシーポリシー
======================================== */
.privacy-section {
  padding: 60px 0;
  background-color: #fff;
}

.privacy-content {
  margin-top: 40px;
}

.privacy-content h1 {
  font-size: 32px;
  color: #2c5f8d;
  margin-bottom: 32px;
}

.privacy-content h2 {
  font-size: 22px;
  color: #333;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2c5f8d;
}

.privacy-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 16px;
}

.privacy-content ul {
  margin: 16px 0 24px 24px;
}

.privacy-content ul li {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.privacy-content ul li:before {
  content: "・";
  position: absolute;
  left: 0;
}

.contact-email {
  font-weight: bold;
  color: #2c5f8d;
}

.policy-date {
  margin-top: 40px;
  text-align: right;
  font-size: 14px;
  color: #777;
}

.back-link {
  text-align: center;
  margin-top: 48px;
}

.back-link a {
  color: #2c5f8d;
  font-size: 15px;
  text-decoration: underline;
}

/* ========================================
 レスポンシブ対応
======================================== */
@media (max-width: 768px) {
  .header-content {
      flex-direction: column;
      gap: 16px;
  }

  nav ul {
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
  }

  .hero .container {
      flex-direction: column;
      gap: 40px;
  }

  .hero-title {
      font-size: 28px;
  }

  .section-title {
      font-size: 26px;
  }

  .flow-steps {
      flex-direction: column;
  }

  .flow-arrow {
      transform: rotate(90deg);
  }

  .footer-content {
      flex-direction: column;
  }

  .contact-form {
      padding: 32px 24px;
  }

  .question-title {
      font-size: 20px;
  }

  .form-navigation {
      flex-direction: column;
  }

  .btn-next,
  .btn-submit {
      margin-left: 0;
  }
}