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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  background: #f5f3ef;
  background-image: radial-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px), radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 24px 24px, 48px 48px;
  background-position: 0 0, 12px 12px;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

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

.logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo a h1 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.1em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.15em;
}

.main-nav .nav-list {
  display: flex;
  gap: 0.5rem;
}

.main-nav .nav-list > li {
  position: relative;
}

.main-nav .nav-list > li > a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: #1a1a1a;
  border-radius: 4px;
}

.main-nav a:hover,
.main-nav a.active {
  color: #8b7355;
  background: rgba(139, 115, 85, 0.08);
}

.has-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.has-dropdown .arrow {
  font-size: 0.7rem;
  transition: 0.3s;
}

.has-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.has-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: 0.3s;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.has-dropdown .dropdown-menu li a {
  padding: 0.75rem 1.25rem;
  display: block;
}

.has-dropdown .dropdown-menu li a:hover {
  padding-left: 1.5rem;
  color: #8b7355;
  background: rgba(139, 115, 85, 0.05);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: #1a1a1a;
  transition: 0.3s;
}

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

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

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

.main-content {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

.hero-section {
  background-image: linear-gradient(135deg, rgba(44, 62, 80, 0.55), rgba(139, 115, 85, 0.55)), url("/assets/images/bg1.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-family: "Noto Serif JP", serif;
  font-size: 3rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.95;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #d4af37;
  margin: 1rem auto 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
  table-layout: auto;
}

.table-modern th,
.table-modern td {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  vertical-align: top;
  line-height: 1.6;
}

.table-modern th:first-child,
.table-modern td:first-child {
  width: 22%;
  font-weight: 500;
}

.table-modern th:nth-child(2),
.table-modern td:nth-child(2) {
  width: 48%;
}

.table-modern th:nth-child(3),
.table-modern td:nth-child(3) {
  width: 30%;
}

.table-modern th {
  background: #f5f3ef;
  color: #2c3e50;
  font-weight: 600;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.table-modern tr td:last-child,
.table-modern tr th:last-child {
  border-right: none;
}

.table-modern tr:last-child td {
  border-bottom: none;
}

.table-modern td.table-span {
  text-align: center;
  font-weight: 500;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.btn {
  background: #8b7355;
  color: #fff;
}

.btn:hover {
  background: rgb(107.3526785714, 88.8169642857, 65.6473214286);
  transform: translateY(-2px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.btn.btn-outline {
  background: transparent;
  border: 2px solid #8b7355;
  color: #8b7355;
}

.btn.btn-outline:hover {
  background: #8b7355;
  color: #fff;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-family: "Noto Sans JP", sans-serif;
  background: #fff;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b7355;
  box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.site-footer {
  background: #2c3e50;
  color: #fff;
  margin-top: 4rem;
  padding: 3rem 0 1rem;
}

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

.site-footer h3,
.site-footer h4 {
  font-family: "Noto Serif JP", serif;
  margin-bottom: 1rem;
}

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

.site-footer .footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.page-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #8b7355;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 900;
}

.page-top.visible {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  background: rgb(107.3526785714, 88.8169642857, 65.6473214286);
  transform: translateY(-3px);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-overlay.active {
  display: flex;
}

.modal-image {
  max-width: 90%;
  max-height: 90%;
  -o-object-fit: contain;
     object-fit: contain;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
  }

  .main-nav.active {
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav .nav-list {
    flex-direction: column;
    padding: 1rem;
  }

  .main-nav .nav-list > li > a {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .has-dropdown {
    width: 100%;
  }

  .has-dropdown .dropdown-toggle {
    justify-content: space-between;
  }

  .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    margin-top: 0.5rem;
    display: none;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
  }

  .has-dropdown .dropdown-menu li a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e0e0e0;
  }

  .hero-section {
    padding: 4rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .page-top {
    bottom: 1rem;
    right: 1rem;
  }
}

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

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

