/* ひごのいえ公式Webサイト - プロフェッショナル版 共通スタイル */

/* カスタムカラー変数 - 信頼感と温かみを両立 */
:root {
  --primary-navy: #0F2A43;
  --primary-blue: #165C9A;
  --accent-teal: #2A9D8F;
  --accent-green: #52B788;
  --bg-light: #F8F9FA;
  --bg-gradient-start: #EEF2F7;
  --bg-gradient-end: #FDFEFF;
  --text-dark: #2D3748;
  --text-gray: #4A5568;
  --text-light: #718096;
  --white: #FFFFFF;
  --border-light: #E2E8F0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 基本スタイル */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

/* ヘッダー - プロフェッショナル版 */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: var(--shadow-lg);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-image {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.emergency-call {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
  color: var(--white);
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
  animation: pulse 2s infinite;
}

.emergency-call:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  transition: width 0.3s ease;
}

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

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

/* モバイルメニュー */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-navy);
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .logo-image {
    width: 45px;
    height: 45px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s ease;
  }
  
  .emergency-call {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ヒーローセクション */
.hero-section {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-blue) 100%);
  color: var(--white);
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* メインコンテンツ */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* セクション */
.section {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 3rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.section:hover {
  box-shadow: var(--shadow-lg);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* 統計セクション */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  border-radius: 1rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* ボタン - プロフェッショナル版 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

/* カード - プロフェッショナル版 */
.card {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--primary-blue);
}

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

.card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.card-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-gray);
}

/* 特徴カード */
.feature-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 1rem;
  border-left: 4px solid var(--primary-blue);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.feature-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
}

/* 固定CTAボタン - 改善版 */
.fixed-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.fixed-cta .btn {
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  font-size: 0.95rem;
  white-space: nowrap;
  font-weight: 700;
}

.fixed-cta .btn-emergency {
  background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
  color: var(--white);
  animation: pulse 2s infinite;
}

/* フッター - プロフェッショナル版 */
footer {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1a365d 100%);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--white);
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-teal);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--white);
  transform: translateX(4px);
}

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

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .section {
    padding: 2rem 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .fixed-cta {
    bottom: 1rem;
    right: 1rem;
    gap: 0.625rem;
  }
  
  .fixed-cta .btn {
    font-size: 0.85rem;
    padding: 0.875rem 1.25rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

/* ユーティリティ */
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* アニメーション */
.fade-in {
  animation: fadeIn 0.6s ease;
}

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

/* アクセシビリティ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* プリント最適化 */
@media print {
  .fixed-cta,
  .mobile-menu-btn,
  header {
    display: none;
  }
  
  body {
    background: white;
  }
  
  .section {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
