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

/* Font Variables */
:root {
  /* Fonts */
  --font-serif: 'Cardo', 'Times New Roman', serif;
  --font-serif-jp: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  /* Primary Colors */
  --color-primary: #0ABAB5;
  --color-primary-dark: #099A96;
  --color-primary-light: #5fb9b0;
  --color-accent: #52b4b1;
  /* Gold Colors */
  --color-gold: #BFAB67;
  --color-gold-dark: #A89555;
  /* Text Colors */
  --color-text: #333;
  --color-text-light: #666;
  /* UI Colors */
  --color-border: #ccc;
  --color-error: #e74c3c;
  --color-bg-light: #e8f4f3;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
  background-color: #fff;
  height: 85px;
  display: flex;
  align-items: center;
}

.header-container {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px 0 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 55px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 46px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 51px;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-serif-jp);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  transition: color 0.3s;
}

/* マリンメニューは18px */
.nav-list a[href*="marine/"] {
  font-size: 18px;
  letter-spacing: 1.2px;
}

.nav-list a:hover {
  color: var(--color-primary);
}

.header-buttons {
  display: flex;
  gap: 16px;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #fff;
  min-width: 207px;
  height: 57px;
  padding: 0 24px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1.125px;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: var(--color-primary-dark);
}

.contact-btn--architecture {
  background-color: var(--color-gold);
}

.contact-btn--architecture:hover {
  background-color: var(--color-gold-dark);
}

.contact-btn--marine {
  background-color: var(--color-primary);
  min-width: 223px;
}

.contact-btn--marine:hover {
  background-color: var(--color-primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Main Content */
.main {
  min-height: calc(100vh - 200px);
}


/* Footer */
.footer {
  background-color: #fff;
  padding: 60px 0 40px;
  margin-top: 0;
}

/* Simple Footer (copyright only) */
.footer--simple {
  padding: 30px 0;
}

.footer--simple .footer-copyright {
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: flex-start;
  gap: 80px;
}

.footer-section {
  text-align: left;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 1.725px;
  margin-bottom: 12px;
}

.footer-divider {
  width: 324px;
  height: 1px;
  background-color: #B2B2B2;
  margin-bottom: 20px;
}

.footer-info {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  line-height: 28px;
}

.footer-info p {
  margin: 0;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 40px;
}

.footer-nav-arrow {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
  transform: rotate(45deg);
}

.footer-nav a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-sns-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-sns-link:hover {
  color: var(--color-primary);
}

.footer-sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  background-color: #656565;
  border-radius: 50%;
  color: #fff;
}

.footer-copyright {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 20px;
  color: #1D1B37;
  text-align: center;
  margin-top: 60px;
}

/* Hamburger Menu (hidden on PC) */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 43px;
  height: 1px;
  background-color: var(--color-accent);
  margin: 6.5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger animation when open */
.hamburger.open .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger.open .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* SP Fullscreen Menu (hidden on PC) */
.sp-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFFFFF;
  z-index: 2000;
  padding: 75px 35px 30px;
  overflow-y: auto;
}

.sp-menu.open {
  display: block;
}

.sp-menu-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 23px;
  padding: 0;
}

.sp-menu-close-line {
  display: block;
  width: 44px;
  height: 1px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
}

.sp-menu-close-line:first-child {
  top: 0;
  transform-origin: left top;
  transform: rotate(27.7deg);
}

.sp-menu-close-line:last-child {
  bottom: 0;
  transform-origin: left bottom;
  transform: rotate(-27.7deg);
}

.sp-menu-nav {
  display: flex;
  flex-direction: column;
}

.sp-menu-list {
  list-style: none;
}

.sp-menu-item {
  /* メインメニュー間: 約26-27px */
}

.sp-menu-item + .sp-menu-item {
  margin-top: 26px;
}

.sp-menu-link {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-serif-jp);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 24px;
  display: block;
}

.sp-menu-sublist {
  list-style: none;
  margin-top: 26px;
  padding-left: 17px;
}

.sp-menu-sublist li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sp-menu-sublist li + li {
  margin-top: 16px;
}

.sp-menu-sublist li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 1px;
  background-color: var(--color-text);
  flex-shrink: 0;
}

.sp-menu-sublink {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-serif-jp);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.05px;
  line-height: 16.8px;
  display: block;
}

.sp-menu-privacy {
  margin-top: 22px;
  padding-left: 1px;
}

.sp-menu-privacy a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-serif-jp);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1.05px;
  line-height: 16.8px;
}

/* SP Menu Buttons */
.sp-menu-buttons {
  margin-top: 29px;
  margin-right: -15px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.sp-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  height: 67px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.2px;
  line-height: 32px;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 0;
}

.sp-menu-btn--gold {
  background-color: var(--color-gold);
}

.sp-menu-btn--teal {
  background-color: var(--color-primary);
}

/* Responsive - Tablet (Switch to hamburger before nav items wrap) */
@media (max-width: 1024px) {
  /* Show hamburger on tablet/SP */
  .hamburger {
    display: block;
  }

  /* Hide PC nav on tablet/SP */
  .header-right {
    display: none;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .header {
    height: 59px;
  }

  .header-container {
    padding: 0 20px;
  }

  /* Logo size adjustment for SP */
  .logo-img {
    height: 35px;
  }

  /* Footer SP */
  .footer {
    padding: 60px 20px 30px; /* Figma: contact下端からInfo上端まで61px, 左右20px */
  }

  .footer-container {
    flex-direction: column;
    gap: 40px;
    padding: 0;
  }

  .footer-section {
    text-align: left;
  }

  .footer-heading {
    font-size: 23px;
    letter-spacing: 1.725px;
    margin-bottom: 12px;
  }

  .footer-divider {
    width: 100%; /* 画面幅に応じて可変 */
    margin: 0 0 20px;
  }

  .footer-info {
    font-size: 14px;
    letter-spacing: 1.05px;
    line-height: 28px;
  }

  .footer-nav {
    display: block;
    text-align: left;
  }

  .footer-nav li {
    line-height: 40px;
  }

  .footer-nav a {
    font-size: 14px;
    letter-spacing: 1.05px;
  }

  .footer-sns {
    display: flex;
    justify-content: flex-start;
  }

  .footer-sns-link {
    font-size: 14px;
  }

  .footer-copyright {
    margin-top: 40px;
    font-size: 12px;
  }
}

/* ========================================
   Scroll Animation (Global)
   ======================================== */

/* 初期状態：下にずれて透明 */
.fade-in-target {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

/* 表示状態：元の位置で不透明 */
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}
