@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  --primary-color: #007bff;
  --text-color: #333;
  --bg-color: #fdfdfd;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

#container {
  width: 100%;
}

/* Header Skewed Layout */
.hero-header {
  position: relative;
  height: 450px;
  /* overflow: hidden; Removed to allow dropdowns */
  background: #222;
  display: flex;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  margin-bottom: 40px;
}

.hero-header-small {
  height: 450px;
}

.hero-header-full {
  height: 100vh;
  min-height: 600px;
}

/* Background container for skew panels */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  pointer-events: auto;
  /* Allow interaction with skew panels */
  z-index: 1;
}

.skew-panel {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  transform: skewX(-12deg);
  margin-left: -50px;
  border-right: 5px solid #fff;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* z-index removed here as it's controlled by parent or hover */
}

.skew-panel:first-child {
  margin-left: -100px;
}

.skew-panel:last-child {
  border-right: none;
  margin-right: -100px;
}

.skew-panel:hover {
  flex: 1.6;
  z-index: 2;
}

.skew-panel img {
  width: 180%;
  height: 100%;
  object-fit: cover;
  transform: skewX(12deg) scale(1.05);
  position: absolute;
  left: -40%;
  top: 0;
  filter: brightness(0.6) saturate(0.8);
  transition: all 0.5s ease;
}

.skew-panel:hover img {
  filter: brightness(1) saturate(1.1);
  transform: skewX(12deg) scale(1.1);
}

.header-content {
  position: absolute;
  top: 100px;
  left: 10%;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  color: #fff;
}

.site-info {
  text-align: center;
  pointer-events: auto;
}

.site-title-main {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.site-nav-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav-links a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Dropdown Menu */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  min-width: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1000;
  text-align: left;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li {
  display: block;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  text-shadow: none;
}

.submenu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: none;
}

.header-search {
  position: absolute;
  top: 25px;
  right: 15%;
  z-index: 20;
  pointer-events: auto;
}

.header-search input {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  width: 220px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.header-label-large {
  position: absolute;
  bottom: 50px;
  left: 10%;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  pointer-events: none;
  z-index: 5;
  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

/* Footer Styles */
.footer_wrap {
  padding: 40px 20px;
  background: #fdfdfd;
  border-top: 1px solid #eee;
  position: relative;
  text-align: center;
}

.copyright {
  color: #888;
  font-size: 0.85rem;
}

.login a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}

.login a:hover {
  color: #888;
}

/* Pagetop Button */
.pagetop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
}

#scroll-to-top {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

#scroll-to-top:hover {
  transform: translateY(-5px);
  opacity: 1;
}


.pagetop img {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

/* Base Utilities (Replacing Bootstrap) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.d-flex {
  display: flex !important;
}
.flex-column {
  flex-direction: column !important;
}
.justify-content-center {
  justify-content: center !important;
}
.align-items-center {
  align-items: center !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}
.mb-3 {
  margin-bottom: 1rem !important;
}
.mb-5 {
  margin-bottom: 3rem !important;
}
.p-3 {
  padding: 1rem !important;
}
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.w-100 {
  width: 100% !important;
}
.border-bottom {
  border-bottom: 1px solid #dee2e6 !important;
}

.text-center {
  text-align: center !important;
}
.text-start {
  text-align: left !important;
}
.text-end {
  text-align: right !important;
}
.text-white {
  color: #fff !important;
}
.text-dark {
  color: #212529 !important;
}
.text-muted {
  color: #6c757d !important;
}
.text-decoration-none {
  text-decoration: none !important;
}

.bg-dark {
  background-color: #212529 !important;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.fw-bold {
  font-weight: 700 !important;
}
.display-6 {
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
}