/* 
 * ハコビン - 軽貨物特化の業務効率化システム
 * メインカラー: 黄色 (#FFC107)
 */

/* ==================== 
   カスタムプロパティ（CSS変数）
   ==================== */
:root {
  --primary-color: #FFC107;
  --primary-dark: #FFA000;
  --primary-light: #FFD54F;
  --primary-accent: #FFECB3;
  --secondary-color: #2F3488;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #FFFDF7;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(255, 193, 7, 0.15);
  --shadow-hover: 0 5px 20px rgba(255, 193, 7, 0.3);
}

/* ==================== 
   リセット＆基本スタイル
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ==================== 
   ヘッダー
   ==================== */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 30px;
  width: auto;
}

/* ナビゲーション */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* ==================== 
   ヒーローセクション
   ==================== */
.hero {
  background: linear-gradient(135deg, #f6f8ff 0%, #e8edff 100%);
  padding: 140px 2rem 80px;
  text-align: center;
  margin-top: 70px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(47, 52, 136, 0.12);
  color: var(--primary-dark);
  padding: 0.55rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-logo {
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-logo img {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1.9rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.05rem 2.8rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 52, 136, 0.3);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(47, 52, 136, 0.4);
  background-color: #1f2366;
}

/* ==================== 
   セクション共通
   ==================== */
.section {
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* ==================== 
   メリットセクション
   ==================== */
.benefits {
  background-color: var(--bg-light);
}

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

.benefit-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  border: 3px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 2.5rem;
}

.benefit-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.benefit-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ==================== 
   機能一覧セクション
   ==================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-left-width: 6px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.8rem;
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ==================== 
   料金プランセクション
   ==================== */
.pricing {
  background-color: var(--bg-light);
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(255, 193, 7, 0.15);
  border: 3px solid #e0e0e0;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 50px rgba(255, 193, 7, 0.25);
}

.pricing-card.recommended {
  border-color: var(--primary-color);
  box-shadow: 0 15px 50px rgba(255, 193, 7, 0.3);
  transform: scale(1.05);
}

.pricing-card.recommended:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
  min-height: 3rem;
}

.pricing-price {
  text-align: center;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.price-currency {
  font-size: 1.2rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-left: 0.3rem;
}

.price-period {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 0.5rem;
}

.pricing-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  min-height: 2.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  min-height: 100px;
}

.pricing-features li {
  padding: 0.6rem 0;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: var(--primary-color);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.pricing-button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-dark);
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.pricing-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 193, 7, 0.4);
}

/* ==================== 
   お問い合わせセクション
   ==================== */
.contact {
  background-color: var(--bg-light);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-item-content p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* お問い合わせフォーム */
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-dark);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 193, 7, 0.4);
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

/* ==================== 
   フッター
   ==================== */
.footer {
  background: linear-gradient(135deg, var(--text-dark), #555);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==================== 
   トップへ戻るボタン
   ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(255, 193, 7, 0.5);
}

/* ==================== 
   アニメーション
   ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== 
   レスポンシブデザイン
   ==================== */

/* タブレット */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: var(--white);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    transition: left 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-logo img {
    width: 350px;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-container {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.recommended {
    transform: scale(1);
  }
  
  .pricing-card.recommended:hover {
    transform: translateY(-10px);
  }
}

/* スマートフォン */
@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }

  .logo img {
    height: 25px;
  }

  .header-container {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 102px 1.25rem 56px;
    margin-top: 64px;
  }

  .hero-badge {
    padding: 0.45rem 1.3rem;
    font-size: 0.85rem;
  }

  .hero-logo img {
    width: 220px;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .cta-button {
    padding: 0.85rem 1.9rem;
    font-size: 0.98rem;
  }

  .section {
    padding: 56px 1.25rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .benefit-card,
  .feature-card {
    padding: 1.6rem;
  }

  .pricing-card {
    padding: 1.6rem;
  }

  .price-amount {
    font-size: 2.6rem;
  }

  .contact-form {
    padding: 1.6rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}
