/* Layout Styles */

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section */
.section-smart {
  padding: var(--section-spacing) 0;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: 80px;
  background-color: var(--color-blue);
  border-bottom: 1px solid var(--color-blue);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-image {
  height: 50px;
  width: auto;
  display: block;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-blue);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: bold;
  font-size: 0.875rem;
}

.logo-text {
  color: var(--color-blue);
  font-weight: bold;
  font-size: 1.125rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.header-nav a {
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.header-nav a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.header .btn-smart-ghost {
  color: var(--color-white);
  border-color: var(--color-white);
}

.header .btn-smart-ghost:hover {
  background-color: var(--color-white);
  color: var(--color-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span:not(.hamburger-text) {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: var(--transition-fast);
}

.hamburger-text {
  display: block;
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.05em;
}

/* Footer */
.footer {
  background-color: var(--color-text-dark);
  color: var(--color-white);
  padding: 40px 0;
}

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

.footer-logo {
  font-weight: bold;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-lighter);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-column h4 {
  font-weight: bold;
  font-size: 0.875rem;
  margin-bottom: 16px;
  opacity: 0.8;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-column a {
  font-size: 0.875rem;
  color: var(--color-text-lighter);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-address,
.footer-copyright {
  font-size: 0.875rem;
  color: #aaa;
}

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-mobile-cta);
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border-light);
  padding: 16px;
  gap: 8px;
}

.btn-line,
.btn-entry {
  flex: 1;
  padding: 12px;
  border-radius: 2px;
  text-align: center;
  font-weight: bold;
  font-size: 0.875rem;
  transition: opacity var(--transition-fast);
}

.btn-line {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn-entry {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.btn-line:hover,
.btn-entry:hover {
  opacity: 0.9;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-white);
  color: var(--color-text-dark);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/common/hero-background.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-blue);
}

/* デスクトップ: 一行表示でセンタリング */
@media (min-width: 769px) {
  .hero-title {
    white-space: nowrap;
  }
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.125rem);
  opacity: 0.8;
  margin-bottom: 2rem;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-blue);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

.hero-scroll span {
  font-size: 0.75rem;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Tablet - ENTRYボタンとハンバーガー表示 */
@media (max-width: 900px) {
  .header .btn-smart-ghost {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--container-padding-mobile);
  }

  .section-smart {
    padding: var(--section-spacing-mobile) 0;
  }

  .header-container {
    padding: 0 var(--container-padding-mobile);
  }

  .header-nav {
    display: flex;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border-light);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }

  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header-nav a {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-dark);
  }

  .btn-smart-ghost {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer {
    padding: 40px 0 80px;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
    align-items: center;
    text-align: center;
  }

  .footer-company {
    text-align: center;
    width: 100%;
  }

  .footer-logo {
    text-align: center;
    display: block;
  }

  .footer-links {
    flex-direction: column;
    gap: 32px;
    text-align: center;
    width: 100%;
    align-items: center;
  }

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

  .footer-column ul {
    align-items: center;
  }

  .footer-column h4 {
    text-align: center;
  }

  .footer-column a {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .mobile-cta {
    display: flex;
  }
}
