/* ===================================
   VIVOWA - 共通スタイル
   =================================== */

/* ===================================
   カスタムカラー定義（VIVOWAロゴに合わせたカラフルカラー）
   =================================== */
:root {
  --primary-color: #00A8CC;        /* ターコイズブルー */
  --secondary-color: #FFA726;      /* オレンジ */
  --accent-color: #7CB342;         /* ライムグリーン */
  --text-dark: #2C3E50;            /* 濃いグレー */
  --text-light: #7F8C8D;           /* ライトグレー */
  --bg-light: #F8F9FA;             /* 背景色（明るい） */
  --white: #FFFFFF;
  --gradient-1: linear-gradient(135deg, #00A8CC 0%, #7CB342 50%, #FFA726 100%);
  --gradient-2: linear-gradient(135deg, #FFA726 0%, #FFD54F 100%);
  --gradient-3: linear-gradient(135deg, #00A8CC 0%, #00BCD4 100%);
  --gradient-vivowa: linear-gradient(135deg, #00A8CC 0%, #7CB342 50%, #FFA726 100%);
}

/* ===================================
   リセット & ベーススタイル
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  line-height: 1.8;
  background-color: var(--white);
  overflow-x: hidden;
  font-weight: 400;
}

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

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

ul, ol {
  list-style: none;
}

/* ===================================
   告知バナー
   =================================== */
.announcement-bar {
  background: var(--gradient-1);
  color: var(--white);
  text-align: center;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  z-index: 100;
}

.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-bar a:hover {
  opacity: 0.85;
}

/* ===================================
   ヘッダー & ナビゲーション
   =================================== */
.header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 90;
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
}

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

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 5px 0;
}

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

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

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* ===================================
   ボタンスタイル
   =================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
  background: var(--gradient-vivowa);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,168,204,0.4);
}

.btn-secondary {
  background: var(--gradient-2);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,167,38,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===================================
   カード共通スタイル
   =================================== */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.card-text {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ===================================
   グリッドレイアウト
   =================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ===================================
   フッター
   =================================== */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 60px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section ul a {
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

.footer-section ul a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ===================================
   背景セクション
   =================================== */
.bg-gradient {
  background: var(--gradient-1);
  color: var(--white);
}

.bg-light {
  background-color: var(--bg-light);
}

/* ===================================
   テキストユーティリティ
   =================================== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   スペーシング
   =================================== */
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

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

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

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

/* タブレット */
@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-container {
    height: 70px;
  }
}

/* スマートフォン */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 60px 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .announcement-bar {
    font-size: 0.85rem;
    padding: 10px 15px;
  }
  
  .header-container {
    height: 60px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    gap: 0;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-menu a {
    width: 100%;
    padding: 20px 30px;
    border-bottom: 1px solid var(--bg-light);
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .card {
    padding: 30px;
  }
  
  .btn {
    width: 100%;
    padding: 12px 24px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .logo {
    font-size: 1.3rem;
  }
}