@charset "UTF-8";

/* ==========================================================================
  1. 全体
   ========================================================================== */

 * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* ==========================================================================
  2. aタグ
   ========================================================================== */

a,
a:visited {
  color: #0076df;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0076df;
  text-decoration: underline;
}

a:active {
  color: #ff4500;
}

header a,
header a:visited,
header a:hover {
  color: #555555;
  text-decoration: none;
}

.header-nav a {
  text-decoration: none;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: #4f46e5;
}

@media (max-width: 767px) {
  .header-nav a {
    font-size: 1rem;
    width: 100%;
    padding: 4px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  }

  .header-nav a:last-child {
    border-bottom: none;
  }
}

.breadcrumb-item a {
  color: #4f46e5;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

footer a,
footer a:visited,
footer a:hover {
  color: #9ca3af;
}

/* ==========================================================================
  3. ヘッダー
   ========================================================================== */

header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  border-radius: 0 0 16px 16px;
}

.header-nav {
  display: flex;
  gap: 24px;
}

@media (max-width: 767px) {
  header {
    padding: 0 20px;
  }

  .header-nav {
    position: fixed;
    top: 10px;
    right: -240px;
    width: 200px;
    height: auto;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 24px 24px 24px;
    gap: 20px;
    z-index: 105;
    opacity: 0;
    transition: right 0.3s ease, opacity 0.3s ease;
  }

  .header-nav.active {
    right: 10px;
    opacity: 1;
  }
}

.hamburger-btn {
  display: none;
}

@media (max-width: 767px) {
  .hamburger-btn {
    display: block;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 110;
    cursor: pointer;
  }

  .hamburger-btn span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #111827;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .hamburger-btn span:nth-child(1) {
    top: 0;
  }

  .hamburger-btn span:nth-child(2) {
    top: 11px;
  }

  .hamburger-btn span:nth-child(3) {
    bottom: 0;
  }

  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}

/* ==========================================================================
  4. ボディー
   ========================================================================== */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #333333;
  line-height: 1.6;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 40px 20px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.breadcrumb-nav {
  display: none;
  padding: 12px 0;
  padding-bottom: 18px;
  background-color: #f9fafb;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.0rem;
  gap: 8px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  color: #4b5563;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
  margin-right: 8px;
  color: #9ca3af;
}

.breadcrumb-item[aria-current="page"] {
  font-weight: 600;
  color: #111827;
}

@media (min-width: 768px) {
  .breadcrumb-nav {
    display: block;
  }
}

/* ==========================================================================
  5. フッター
   ========================================================================== */

footer {
  background-color: #1f2937;
  color: #9ca3af;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid #374151;
}

footer p {
  max-width: 1200px;
  margin: 0 auto;
}