/* =========================================
   CSS Variables (Design Tokens)
   ========================================= */
:root {
  --primary-color: #1a1a1a;
  /* 高級感のあるチャコールブラック */
  --secondary-color: #c5a059;
  /* 上品なシャンパンゴールド */
  --text-main: #333333;
  --text-light: #555555;
  --bg-color: #ffffff;
  --bg-light: #f4f4f4;
  /* 少し落ち着いたライトグレー */
  --white: #ffffff;

  --font-logo: 'Noto Serif JP', serif;
  --font-heading: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.section-title.text-left::after {
  left: 0;
  transform: none;
}

.section-description {
  color: var(--text-light);
  font-size: 1.1rem;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Typography Helpers */
.highlight {
  color: var(--secondary-color);
}

/* Layout Helpers */
.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-auto {
  margin-top: auto;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-fast);
  /* Default transparency, applied dynamically via JS if needed */
  background-color: transparent;
  padding: 20px 0;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: var(--font-logo);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
}

/* Header link colors based on scroll state */
.header .logo a,
.header .nav-list a:not(.btn) {
  color: var(--white);
}

.header.scrolled .logo a,
.header.scrolled .nav-list a:not(.btn) {
  color: var(--text-main);
}

.header.scrolled .nav-list a:not(.btn):hover {
  color: var(--secondary-color);
}

.header .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.header.scrolled .btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.header.scrolled .btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list a:not(.btn) {
  font-weight: 500;
  position: relative;
}

.nav-list a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-fast);
}

.nav-list a:not(.btn):hover::after,
.nav-list a:not(.btn).active::after {
  width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 24px;
  position: relative;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  left: 0;
  transition: all var(--transition-fast);
}

.header:not(.scrolled) .hamburger-menu .bar {
  background-color: var(--white);
}

.hamburger-menu .bar:nth-child(1) {
  top: 0;
}

.hamburger-menu .bar:nth-child(2) {
  top: 11px;
}

.hamburger-menu .bar:nth-child(3) {
  bottom: 0;
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
  background-color: var(--text-main);
}

.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
  background-color: var(--text-main);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 80px;
  /* offset header */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
  /* slightly bigger for parallax effect */
}

/* Overlay to ensure text readability */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: -1;
}

.hero-content {
  color: var(--white);
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 1px;
  margin-bottom: 40px;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 20px;
}

/* =========================================
   Services Section
   ========================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-img-wrapper {
  overflow: hidden;
  height: 240px;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

.service-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-name {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* =========================================
   About Section
   ========================================= */
.about-flex {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-visual {
  flex: 1;
}

.company-name-large {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.company-info-dl {
  border-top: 1px solid #ddd;
}

.dl-row {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.dl-row dt {
  width: 30%;
  font-weight: 700;
  color: var(--primary-color);
}

.dl-row dd {
  width: 70%;
  color: var(--text-main);
}

.about-img-box {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
}

.about-img-box::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  background-color: var(--secondary-color);
  z-index: -1;
  border-radius: 12px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-fast);
}

.contact-card:hover {
  transform: translateY(-5px);
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.contact-number a {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.contact-email a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--secondary-color);
  text-underline-offset: 4px;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 40px;
}

.footer-brand h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 10px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* =========================================
   Gallery Page Specific
   ========================================= */
.page-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 150px 0 80px;
  /* Space for fixed header */
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--box-shadow);
  transition: all 0.4s ease;
}

.gallery-item.hide {
  display: none;
}

.gallery-img-wrapper {
  position: relative;
  height: 300px;
  width: 100%;
  overflow: hidden;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
  opacity: 1;
}

.gallery-category {
  font-size: 0.8rem;
  background: var(--secondary-color);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
}

.gallery-title {
  font-size: 1.2rem;
  margin: 0;
}

/* Modal / Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  animation: zoom 0.3s ease;
}

.modal-caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 20px 0;
  font-size: 1.2rem;
  animation: zoom 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--secondary-color);
  text-decoration: none;
}

@keyframes zoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* =========================================
   Animations & Reveal
   ========================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* =========================================
   Responsive Breakpoints
   ========================================= */
.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .about-flex {
    flex-direction: column;
  }

  .about-visual {
    width: 100%;
    order: -1;
  }
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hamburger-menu {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .nav-list a:not(.btn) {
    color: var(--text-main) !important;
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .dl-row {
    flex-direction: column;
    padding: 15px 0;
  }

  .dl-row dt {
    width: 100%;
    margin-bottom: 5px;
  }

  .dl-row dd {
    width: 100%;
  }

  .contact-number a {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}