@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
  --primary: #f4623a;
  --secondary: #6c757d;
  --dark: #212529;
  --light: #f8f9fa;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  line-height: 1.7;
  color: var(--dark);
  margin: 0;
  padding: 0;
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 1rem 0;
  transition: background-color 0.3s ease-in-out;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

.navbar-logo {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.navbar.scrolled .navbar-logo {
  color: var(--dark);
}

.navbar-menu {
  display: flex;
  gap: 2rem;
}

.navbar-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar.scrolled .navbar-link {
  color: var(--dark);
}

.navbar-link:hover {
  color: var(--primary);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.navbar-toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.navbar.scrolled .navbar-toggle-icon {
  background-color: var(--dark);
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: all 0.3s ease-in-out;
}

.navbar.scrolled .navbar-toggle-icon::before,
.navbar.scrolled .navbar-toggle-icon::after {
  background-color: var(--dark);
}

.navbar-toggle-icon::before {
  top: -8px;
}

.navbar-toggle-icon::after {
  bottom: -8px;
}

@media (max-width: 768px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem 0;
    flex-direction: column;
    gap: 0;
  }

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

  .navbar-link {
    color: var(--dark);
    display: block;
    padding: 0.5rem 1rem;
    text-align: center;
  }
}

header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 8rem 0 4rem;  /* 上部8rem、下部4rem に変更 */
  display: flex;         /* Flexboxを使用して垂直方向の中央寄せを実現 */
  align-items: center;   /* 垂直方向の中央寄せ */
  background: linear-gradient(to bottom, rgba(92, 77, 66, 0.8) 0%, rgba(92, 77, 66, 0.8) 100%), url('/assets/img/piano-bg.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
  text-align: center;
  color: white;
}

.header-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.header-description {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  background-color: var(--primary);
  border: none;
  border-radius: 10rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: #ee3e0d;
  transform: translateY(-2px);
}

main {
  max-width: 1140px;
  margin: 0 auto;
}

section {
  padding: 8rem 2rem;  /* 左右のパディングを追加 */
}

section > * {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}


/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

ul {
  padding-left: 2.2rem;
  list-style-type: disc;
}

.contact-info {
  margin-top: 1rem;
}

.map-container {
  margin: 1.5rem auto 0;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

footer {
  padding: 2rem 0;
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  .header-description {
    font-size: 1.2rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

  .map-container {
    max-width: none;
  }
}

/* スマートフォン用の調整 */
@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }
  
  section > p,
  section > h2,
  section > h3,
  section > h4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  section > ul {
    padding-left: 1.5rem;
    padding-right: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .header-description {
    font-size: 1.1rem;
  }
}
