/* 七尾花正株式会社 コーポレートサイト - メインスタイルシート */
/* Wix準拠の仕様でデザイン設計 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@400;500;600&display=swap');

/* CSS変数（カスタムプロパティ）*/
:root {
  /* カラーパレット */
  --primary-color: #f8b6c7; /* 淡いピンク */
  --secondary-color: #a8d8a8; /* 淡いグリーン */
  --accent-color: #e8969a;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #888888;
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-section: #f9f9f9;
  
  /* レイアウト */
  --safe-zone: 1000px;
  --full-width: 100vw;
  --section-padding: 80px;
  --section-padding-mobile: 40px;
  
  /* フォント */
  --font-primary: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* セーフゾーン（Wix準拠） */
.safe-zone {
  max-width: var(--safe-zone);
  margin: 0 auto;
  padding: 0 20px;
}

/* セクション共通スタイル */
section {
  padding: var(--section-padding) 0;
}

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

/* ヘッダー・ナビゲーション */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo img:hover {
  opacity: 0.8;
}

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

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

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

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

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

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

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

/* メインコンテンツ */
main {
  margin-top: 100px; /* ヘッダー分の余白 */
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.4;
  margin-bottom: 20px;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
}

h2 {
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}

h3 {
  font-size: 1.8rem;
  font-weight: 500;
}

h4 {
  font-size: 1.4rem;
  font-weight: 500;
}

p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

/* ボタンスタイル */
.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(248, 182, 199, 0.4);
}

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

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

/* Heroセクション */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(248, 182, 199, 0.08), rgba(255, 255, 255, 0.15));
  z-index: -1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  text-shadow: 
    2px 2px 8px rgba(0, 0, 0, 0.8),
    1px 1px 4px rgba(0, 0, 0, 0.6),
    0px 0px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  font-weight: 300;
  color: white;
  text-shadow: 
    2px 2px 6px rgba(0, 0, 0, 0.8),
    1px 1px 3px rgba(0, 0, 0, 0.6),
    0px 0px 8px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* スライドショー用スタイル */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 2;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active,
.dot:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

/* グリッドレイアウト */
.grid {
  display: grid;
  gap: 40px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* カードコンポーネント */
.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 30px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* フッター */
footer {
  background-color: var(--text-primary);
  color: white;
  padding: 60px 0 30px;
}

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

.footer-section h4 {
  font-family: var(--font-serif);
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-section p,
.footer-section a {
  color: #cccccc;
  text-decoration: none;
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid #555;
  padding-top: 30px;
  text-align: center;
  color: #999;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
  .safe-zone {
    padding: 0 30px;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }
  
  .nav-menu {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .grid,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .header-content {
    padding: 15px 0;
  }
  
  main {
    margin-top: 80px;
  }
  
  .safe-zone {
    padding: 0 20px;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .btn {
    padding: 12px 25px;
    font-size: 14px;
  }
}

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

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

/* ページヘッダー */
.page-header {
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-size: 3rem;
  margin-bottom: 20px;
}

.page-header p {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  font-weight: 400;
}

/* ユーティリティクラス */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

/* interviews */
.interview { 
  display: flex; 
  gap: 2rem; 
  align-items: flex-start; 
  margin: 3rem 0; 
}

.interview.reverse { 
  flex-direction: row-reverse; 
}

.interview-media { 
  flex: 0 0 320px; 
}

.interview-media img { 
  width: 100%; 
  height: auto; 
  border-radius: 12px; 
  object-fit: cover; 
}

.interview-media figcaption { 
  font-size: .85rem; 
  color: #777; 
  margin-top: .4rem; 
  text-align: center; 
}

.interview-body { 
  flex: 1; 
}

.interview-name { 
  font-size: 1.25rem; 
  margin: 0 0 .25rem; 
}

.interview-lead { 
  color: #666; 
  margin: 0 0 1rem; 
  font-style: italic; 
}

#interviews h4 { 
  margin: 1rem 0 .4rem; 
  font-size: 1rem; 
  color: #333; 
}

@media (max-width: 900px) {
  .interview, .interview.reverse { 
    flex-direction: column; 
  }
  
  .interview-media { 
    width: 100%; 
  }
}

.text-right {
  text-align: right;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}