@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Noto+Sans+JP:wght@300;400;500&family=Noto+Serif+JP:wght@400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-color: #FDFCF8; /* 薄いクリーム色 */
  --text-primary: #4A4A4A; /* ダークグレー */
  --text-secondary: #555555;
  --brand-color: #4A5732; /* オリーブグリーン */
  --border-color: #EAEAEA;
  --footer-bg: #1A1A1A;
  --footer-text: #FFFFFF;
  
  --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
  --font-serif: 'Playfair Display', 'Noto Serif JP', serif;
  
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: opacity var(--transition-speed); }
a:hover { opacity: 0.7; }

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-color);
    text-decoration: none;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    color: var(--brand-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer {
    background-color: #1a1a1a;
    color: white;
    padding: 1.5rem 5%;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.footer-center {
    text-align: center;
}

.footer-center a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-center a:hover {
    color: white;
}

.copyright {
    color: #888;
    font-size: 0.75rem;
}

.footer-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 0.7;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding: 1rem 0;
  border-radius: 4px;
  flex-direction: column;
  gap: 0;
}
.dropdown:hover .dropdown-menu { display: flex; }
.dropdown-menu li a {
  padding: 0.8rem 1.5rem;
  display: block;
  font-size: 0.85rem;
  text-align: center;
}
.dropdown-menu li a:hover { background-color: var(--bg-color); }

/* Main layout */
main { width: 100%; }
.section-padding { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; width: 100%; }
.section-title {
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 500;
  color: var(--brand-color);
  margin-bottom: 3.5rem;
  letter-spacing: 1px;
}

/* ── ハンバーガーメニュー（モバイル用） ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-color);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── モバイルレスポンシブ（768px以下）── */
@media (max-width: 768px) {
  header {
    padding: 1rem 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-color);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 5rem 2rem 2rem;
  }
  nav.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }
  nav ul li a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  /* ドロップダウンをモバイルで常時展開 */
  .dropdown-menu {
    display: flex;
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0;
    padding-left: 1rem;
    min-width: auto;
  }
  .dropdown-menu li a {
    text-align: left;
    padding: 0.7rem 0;
    font-size: 0.9rem;
  }

  /* ヒーロースライダー */
  .hero-slider {
    height: 50vh;
    min-height: 300px;
  }
  .hero-arrow { display: none; }

  /* セクション */
  .section-padding {
    padding: 3rem 1.2rem;
  }

  /* ニュース */
  .news-link {
    font-size: 0.9rem;
  }

  /* フッター */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .footer-right {
    position: static;
    transform: none;
    justify-content: center;
  }

  /* ボタン */
  .btn {
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
  }
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-controls {
  position: absolute;
  bottom: 2rem;
  left: 0; width: 100%;
  display: flex;
  justify-content: center;
  gap: 1rem;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.dot.active { background: white; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.5rem; cursor: pointer; z-index: 10;
  transition: background 0.3s, border-color 0.3s;
  user-select: none;
}
.hero-arrow:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8); }
.hero-arrow.left { left: 2rem; }
.hero-arrow.right { right: 2rem; }

/* Service Grid (Premium Design) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

.service-item {
  display: flex; flex-direction: column; gap: 1rem;
}
.service-card {
  width: 100%;
  /* アスペクト比を維持して画像を綺麗に表示 */
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  display: block;
}
.service-desc-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* News Section */
.news-section {
  border: none;
}
.news-list {
  max-width: 800px;
  margin: 0 auto 3rem;
  display: flex; flex-direction: column;
  gap: 2.5rem;
}
.news-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  border: none;
  align-items: flex-start;
}
.news-item:first-child { border: none; }
.news-date { font-family: var(--font-sans); color: var(--text-secondary); font-size: 0.95rem;}
.news-link { font-size: 1rem; color: #0056b3; }
.news-link:hover { text-decoration: underline; opacity: 1; }

/* Buttons */
.center-btn { text-align: center; }
.btn {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 2px;
  transition: all var(--transition-speed);
  cursor: pointer;
  background: transparent;
}
.btn-outline {
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
}
.btn-outline:hover { background: var(--text-primary); color: var(--bg-color); }
.btn-primary {
  background: var(--brand-color);
  color: white;
  border: none;
}
.btn-primary:hover { opacity: 0.8; }

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; color: #000; }
.form-group input, .form-group textarea {
  padding: 0.8rem;
  border: 1px solid #EAEAEA;
  border-radius: 4px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand-color); }

.submit-btn {
  background: #0066cc;
  color: #FFFFFF;
  border: none;
  padding: 0.8rem 4rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity var(--transition-speed);
}
.submit-btn:hover { opacity: 0.8; }

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
}
.footer-links { display: flex; gap: 2rem; font-size: 0.9rem; letter-spacing: 1px; }
.copyright { font-size: 0.8rem; opacity: 0.5; font-family: var(--font-serif); }
