:root {
  /* Color Palette based on White-bellied Parrot (シロハラインコ) */
  --color-main: #FF4500;  /* Orange */
  --color-sub: #008000;   /* Green */
  --color-accent: #FFD700;/* Yellow */
  --color-base: #FFFFFF;
  --color-text: #333333;
  --color-gray: #f4f4f4;
  --color-border: #dddddd;
  
  /* Glassmorphism Presets */
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: blur(12px);
  
  --font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --container-width: 1100px;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-sub);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--color-main);
}

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--color-main); border-bottom: 2px solid var(--color-accent); padding-bottom: 0.5rem; }
h3 { font-size: 1.5rem; color: var(--color-sub); }

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.bg-gray {
  background-color: var(--color-gray);
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--color-main);
  color: var(--color-base);
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
  background-color: #e03e00;
  color: var(--color-base);
  transform: translateY(-2px);
}

.btn-sub {
  background-color: var(--color-sub);
}

.btn-sub:hover {
  background-color: #006600;
}

.btn-emergency {
  background-color: var(--color-main);
  border: 3px solid var(--color-accent);
  border-radius: 50px;
  font-size: 1.2rem;
  padding: 15px 40px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 69, 0, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 69, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 69, 0, 0); }
}

/* Header */
.header {
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-info {
  display: flex;
  flex-direction: column;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 60px;
  vertical-align: middle;
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-sub);
  white-space: nowrap;
  letter-spacing: 0.05em;
  margin-left: 0;
}

.logo-qualification {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8b6e00;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #FFD700;
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 2px;
  width: fit-content;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--color-text);
  font-weight: bold;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-main);
  transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

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

.header-tel {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-main);
}

/* Hamburger Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-main);
}

/* Mobile Nav (Hidden by Default) */
.nav-mobile {
  display: none;
  background-color: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 20px;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

@media (max-width: 768px) {
  .nav-links, .header-contact {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .nav-mobile {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
  }
  .nav-mobile.active {
    display: flex;
  }
}

/* Main Spacing */
main {
  margin-top: 80px; /* Offset for fixed header */
}

/* Footer */
.footer {
  background-color: var(--color-sub);
  color: var(--color-base);
  padding: 40px 0 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-info {
  flex: 1;
  min-width: 250px;
}

.footer-nav {
  flex: 1;
  min-width: 200px;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: var(--color-base);
  opacity: 0.8;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  background-color: #000;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fade 15s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 0.6; }
  33% { opacity: 0.6; }
  43% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 50px 40px;
  border-radius: 15px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.hero-content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 6px;
  background: linear-gradient(to right, var(--color-main), var(--color-accent));
  border-radius: 15px 15px 0 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero-qualification {
  display: inline-block;
  padding: 6px 20px;
  margin-bottom: 25px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #8b6e00; /* Darker gold for text readability */
  background: rgba(255, 215, 0, 0.15); /* Light gold semi-transparent background */
  border: 2px solid transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), linear-gradient(135deg, #FFD700 0%, #B8860B 50%, #FFD700 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  letter-spacing: 0.1em;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Feature/Strengths Section */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.strength-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.strength-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: var(--color-accent);
}

.strength-icon {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 15px;
}

.strength-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

/* Emergency CTA */
.emergency-cta {
  background-color: var(--color-accent);
  padding: 50px 0;
  text-align: center;
  color: var(--color-text);
}

.emergency-cta h2 {
  color: var(--color-text);
  border: none;
}

.emergency-cta p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Responsive details */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .strength-card { padding: 20px; }
  
  .logo-img {
    height: 40px !important;
  }
  
  .logo-text {
    font-size: 1.1rem !important;
    margin-left: 8px;
  }
  
  .header-inner {
    height: 60px;
  }
  
  .nav-mobile {
    top: 60px;
  }
}
