/* 全体設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* ヘッダー */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo h1 {
  color: #7a366f;
  font-size: 1.8rem;
  font-weight: 700;
}

.header-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #7a366f;
}

.phone i {
  font-size: 1.1rem;
}

.business-hours,
.holidays {
  color: #666;
  font-size: 0.8rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin-top: 1rem;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background-color: #7a366f;
  color: #fff;
}

/* バーガーメニューボタン */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: #7a366f;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* メインコンテンツ */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

/* パンくずリスト */
.breadcrumb {
  background-color: #f8f9fa;
  padding: 1rem 0;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* パンくずリストが存在する場合、ヘッダーの下に配置（JavaScriptで動的に設定） */

.breadcrumb .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '>';
  margin-left: 0.5rem;
  color: #6c757d;
  font-weight: 500;
}

.breadcrumb-list li a {
  color: #7a366f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-list li a:hover {
  color: #5a2a4f;
  text-decoration: underline;
}

.breadcrumb-list li:last-child {
  color: #6c757d;
  font-weight: 500;
}

/* フッター */
.site-footer {
  background-color: #f8f9fa;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo-nav {
  align-items: flex-start;
}

.footer-logo h3 {
  color: #7a366f;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-nav {
  margin-top: 1rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #7a366f;
}

.footer-info h4,
.footer-map h4 {
  color: #7a366f;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-info p {
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
}

.footer-map {
  border-radius: 8px;
  overflow: hidden;
}

.footer-copyright {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid #ddd;
  margin-top: 2rem;
  color: #666;
  font-size: 0.9rem;
}

/* トップに戻るボタン */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 999;
  background-color: #7a366f;
  color: #fff;
  font-size: 1.2rem;
  padding: 0.8rem;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#back-to-top:hover {
  background-color: #6a2f5f;
  transform: scale(1.1);
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .header-info {
    align-items: flex-end;
    position: relative;
  }
  
  .contact-info {
    display: none;
  }
  
  /* バーガーメニューボタンを表示 */
  .mobile-menu-toggle {
    display: flex;
    order: 2;
  }
  
  /* メニューを非表示（デフォルト） */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding: 4rem 2rem 2rem;
    overflow-y: auto;
  }
  
  /* メニューが開いている時 */
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    margin-top: 0;
  }
  
  .main-nav li {
    border-bottom: 1px solid #e9ecef;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem;
    width: 100%;
    text-align: left;
    border-radius: 0;
  }
  
  .main-nav a:hover {
    background-color: #7a366f;
    color: #fff;
  }
  
  /* メニューオーバーレイ */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .menu-overlay.active {
    display: block;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-column {
    align-items: center;
  }
  
  .footer-map {
    height: 150px;
  }
  
  .breadcrumb .container {
    padding: 0 1rem;
  }
  
  .breadcrumb-list {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 480px) {
  .header-container {
    padding: 1rem;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .contact-info {
    font-size: 0.8rem;
  }
  
  .main-nav a {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
  }
}
