/* ナノペイントジャパン カスタムスタイル */

:root {
  --primary-color: #e63946;
  --secondary-color: #1d3557;
  --accent-color: #f1faee;
  --text-dark: #2b2d42;
  --text-light: #8d99ae;
  --success-color: #06a77d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.7;
}

/* ヘッダー固定 */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #1a1a1a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.header-scrolled {
  padding: 0.5rem 0;
}

/* ボタンスタイル */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #d62828;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* コンパクトボタン（ヘッダー用） */
.btn-primary-compact {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary-compact:hover {
  background-color: #d62828;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* WEB見積もりボタン（CTAセクション用） */
.btn-web-estimate {
  background-color: white;
  color: #e63946;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-width: 300px;
  height: 64px;
}

.btn-web-estimate:hover {
  background-color: #f9fafb;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background-color: #14213d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

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

/* 電話番号ボタン */
.phone-button {
  background: linear-gradient(135deg, #06a77d 0%, #05896a 100%);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 3rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(6, 167, 125, 0.3);
}

.phone-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(6, 167, 125, 0.4);
}

/* ヘッダー内の電話番号 */
.header-phone {
  font-size: 1rem;
}

/* セクション共通スタイル */
.section {
  padding: 5rem 0;
}

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

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 1rem auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.125rem;
  margin-bottom: 3rem;
}

/* カード */
.card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ヒーローセクション */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  padding: 2rem;
}

/* フッター */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 3rem 0 1rem;
}

footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .phone-button {
    font-size: 1.25rem;
    padding: 1rem 2rem;
  }

  .section {
    padding: 3rem 0;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ナビゲーションメニュー */
.nav-link {
  position: relative;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.5rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #ef4444;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 999;
  padding: 5rem 2rem;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu.active {
  display: flex;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: var(--text-light);
  text-decoration: none;
}

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

/* バッジ */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--primary-color);
  color: white;
}

/* フォーム */
.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

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

/* テーブル */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
}

.table th {
  background-color: var(--secondary-color);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background-color: #f9fafb;
}
