/* =========================
   SPAVELY - カスタムCSS
   モノトーン＆ミニマルデザイン
   ========================= */

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

:root {
  --color-primary: #000000;
  --color-secondary: #333333;
  --color-gray: #666666;
  --color-light-gray: #cccccc;
  --color-white: #ffffff;
  --color-background: #fafafa;
  --color-border: #e0e0e0;
  
  --font-primary: 'Noto Sans JP', sans-serif;
  --font-display: 'Playfair Display', serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: var(--font-primary);
  color: var(--color-secondary);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

/* タッチデバイス最適化 */
a, button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

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

/* ナビゲーション */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: var(--transition);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}

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

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-primary);
}

/* ヒーローセクション */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), 
              url('/hero-background.jpg') center/cover no-repeat;
  position: relative;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 0 24px;
}

.hero-logo {
  margin-bottom: 48px;
  animation: fadeInUp 1s ease;
}

.hero-logo img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 4px;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-gray);
  margin-bottom: 48px;
  font-weight: 300;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 0.2s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: var(--color-gray);
  animation: bounce 2s infinite;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 16px 48px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 14px;
  transition: var(--transition);
  border: 2px solid var(--color-primary);
  cursor: pointer;
}

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

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

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

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: 3px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--color-gray);
  margin-bottom: 64px;
  font-weight: 300;
}

/* ABOUTセクション */
.about-section {
  background: var(--color-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text {
  text-align: left;
  padding: 0 24px;
}

.lead {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-text p {
  font-size: 16px;
  line-height: 2;
  color: var(--color-gray);
  margin-bottom: 24px;
}

/* 製品セクション */
.products-section {
  background: var(--color-background);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 64px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background: var(--color-white);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  width: 100%;
  height: 320px;
  margin-bottom: 24px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-background);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.product-description {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-product {
  display: inline-block;
  width: 100%;
  max-width: 200px;
  padding: 12px 24px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* 特徴セクション */
.features-section {
  background: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  margin-top: 64px;
}

.feature-card {
  text-align: center;
  padding: 32px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  color: var(--color-primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(360deg);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.feature-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.8;
}

/* 使い方セクション */
.howto-section {
  background: var(--color-background);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  margin-top: 64px;
}

.step-card {
  background: var(--color-white);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}

.step-icon {
  font-size: 48px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.8;
}

/* コンタクトセクション */
.contact-section {
  background: var(--color-white);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-text {
  font-size: 16px;
  color: var(--color-gray);
  line-height: 2;
  margin-bottom: 48px;
}

.contact-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* フッター */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
  text-align: center;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 300;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  font-size: 18px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-company {
  margin-bottom: 24px;
}

.company-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.company-address {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.copyright {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 300;
  margin-top: 16px;
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero {
    height: 80vh;
  }
  
  .hero-logo img {
    height: 80px;
  }
  
  .hero-title {
    letter-spacing: 2px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .section-title {
    letter-spacing: 2px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-image {
    height: 400px;
  }
  
  .about-text {
    padding: 0;
    text-align: center;
  }
  
  .products-grid,
  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  /* ナビゲーション */
  .nav-content {
    height: 60px;
    padding: 0 16px;
  }
  
  .logo img {
    height: 35px;
  }
  
  /* ヒーローセクション */
  .hero {
    height: 70vh;
    padding-top: 60px;
  }
  
  .hero-logo img {
    height: 60px;
  }
  
  .hero-title {
    font-size: 32px;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }
  
  /* セクション */
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }
  
  .section-subtitle {
    font-size: 14px;
    margin-bottom: 32px;
  }
  
  /* ABOUT */
  .about-image {
    height: 300px;
  }
  
  .lead {
    font-size: 18px;
    margin-bottom: 24px;
  }
  
  .about-text p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  /* 製品カード */
  .product-card {
    padding: 20px;
  }
  
  .product-image {
    height: 240px;
    margin-bottom: 16px;
  }
  
  .product-name {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .product-description {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  /* 特徴・使い方カード */
  .feature-card,
  .step-card {
    padding: 24px 16px;
  }
  
  .feature-icon,
  .step-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .feature-card h3,
  .step-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .feature-card p,
  .step-card p {
    font-size: 13px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  /* ボタン */
  .btn {
    padding: 14px 28px;
    font-size: 13px;
  }
  
  .btn-product {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  /* フッター */
  .footer {
    padding: 48px 0;
  }
  
  .footer-logo img {
    height: 45px;
  }
  
  .footer-tagline {
    font-size: 12px;
  }
  
  .footer-links a {
    font-size: 12px;
  }
  
  .company-name {
    font-size: 13px;
  }
  
  .company-address {
    font-size: 11px;
  }
  
  /* コンタクト */
  .contact-text {
    font-size: 14px;
  }
}