/* ============================================
   Layout Styles - レイアウト関連
   ============================================ */

/* Layout - containers */
.w-main {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

#wrapper {
  overflow: clip;
}

.bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 350px;
  margin-top: 60px;
  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  pointer-events: none;
}

.page-bg {
  top: 60px;
}

.contact-white {
  position: relative;
  width: 100%;
  background-color: var(--background-color-white);
  margin-bottom: 120px;
}

.contact-bg-white {
  background-image: url(../images/common/contact_bg_white.png);
  background-position: 5%;
}

.contact-white-btn {
  text-align: center;
  margin-top: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.contact-white-header {
  padding-top: 114px;
}

/* Section Styles */

.section-title {
  font-family: var(--font-secondary);
  font-size: var(--font-size-96);
  font-weight: bold;
  line-height: 1;
  color: var(--heading-color);
  margin: 0;
}

.section-title-white {
  color: var(--text-color-white);
}

.section-title-accent {
  color: var(--accent-color);
}

.section-subtitle {
  display: block;
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-bold);
}

.section-footer {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 120px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background-color: var(--background-color-white);
}

/* WP Admin Bar 対応 */
body.admin-bar .header {
  top: 32px;
}
body.admin-bar .mobile-nav {
  top: 112px; /* 80px header + 32px admin bar */
}
@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
  body.admin-bar .mobile-nav {
    top: 98px; /* 52px header + 46px admin bar */
  }
}

.header-dark {
  background-color: var(--background-color-black);
}

.header-dark .header-logo img {
  filter: invert(1) brightness(2);
}

.header-dark .nav-en,
.header-dark .nav-ja {
  color: var(--text-color-white);
}

.header-dark .nav-list a:hover .nav-en,
.header-dark .nav-list a:hover .nav-ja {
  opacity: 0.7;
}

.header-dark .mobile-menu-toggle span {
  background-color: var(--text-color-white);
}

.header-dark .btn-inquiry {
  border: 1px solid var(--border-color-white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  /* padding: 0 clamp(1.25rem, 4vw, 2.5rem); */
  box-sizing: border-box;
}

.header-logo img {
  display: block;
  width: 220px;
  height: 34.8px;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 950px;
  width: 100%;
  height: 52px;
  gap: 20px;
}

.nav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 567px;
  height: 42px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  letter-spacing: 0;
}

.nav-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0;
}

.nav-en {
  font-family: var(--font-secondary);
  font-size: var(--font-size-16);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.nav-ja {
  font-family: var(--font-secondary);
  font-size: var(--font-size-13);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  max-width: 363px;
  height: 52px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: var(--text-color-black);
  transition: all 0.3s;
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background-color: var(--background-color-white);
  border-top: 1px solid var(--border-color-black);
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.mobile-nav.is-open {
  max-height: 80vh;
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  list-style: none;
}

.mobile-nav-list a {
  display: block;
  color: var(--text-color-black);
  text-decoration: none;
}

.mobile-nav-cta {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

/* Footer */
.footer {
  background-color: var(--background-color-black);
  color: var(--text-color-white);
}

.footer-container {
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding-top: 120px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-18);
  font-weight: bold;
  color: var(--text-color-white);
}

.footer-logo img {
  width: 348px;
}

.footer-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 55px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 50px;
  padding-bottom: 50px;
}

.footer-nav--mobile {
  display: none;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-nav-column a {
  display: block;
  padding: 14.5px 0;
  border-top: 1px solid var(--border-color-white);
  color: var(--text-color-white);
  font-family: var(--font-secondary);
  font-size: var(--font-size-13);
  line-height: 1.6;
  transition: color 0.3s;
}

.footer-nav-column a strong {
  font-family: var(--font-secondary);
  font-size: var(--font-size-16);
  font-weight: bold;
  margin: 0 8px;
}

.footer-nav-column a:last-child {
  border-bottom: 1px solid var(--border-color-white);
}

.footer-nav-column a:hover {
  color: #ccc;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  padding-bottom: 40px;
}

.footer-copyright {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1410px) {
  .nav,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 1000px) {
  .footer-top {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-btns {
    flex-wrap: wrap;
    height: auto;
  }
}

/* SP用調整 */
@media (max-width: 1250px) {
  .nav {
    display: none;
  }

  /* Header */
  .header {
    width: 100%;
  }

  .header-inner {
    width: 100%;
    height: 52px;
    margin: 0 auto;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .container {
    margin: 0;
    padding: 0 20px;
  }

  .bg {
    top: 50px;
    height: 120px;
    margin: 0;
  }

  /* Section Styles */
  .section-title {
    font-size: var(--font-size-48);
  }

  .section-subtitle {
    font-size: var(--font-size-11);
  }

  .section-footer {
    margin-top: 40px;
    margin-bottom: 60px;
  }

  /* contact white */
  .contact-white {
    margin-bottom: 60px;
  }

  .contact-bg-white {
    top: 40px;
  }

  .contact-white-header {
    padding-top: 85px;
  }

  .contact-white-btn {
    margin-top: 40px;
    gap: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  /* Footer */
  .footer-container {
    padding: 0 20px;
  }

  .footer-top {
    justify-content: center;
    padding-top: 42px;
  }

  .footer-logo {
    margin: 0 auto;
  }

  .footer-logo img {
    display: block;
    width: 90%;
    height: auto;
    margin: 0 auto;
  }

  .footer-btns {
    display: none;
  }

  .footer-nav--mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 25px 0;
    padding: 10px 0;
    border-top: 1px solid var(--text-color-white);
    border-bottom: 1px solid var(--text-color-white);
  }

  .footer-nav-column a {
    padding: 12px 0;
    border: none;
    white-space: nowrap;
  }

  .footer-nav-column a strong {
    margin-left: 0;
  }

  .footer-nav-column a:last-child {
    border-bottom: none;
  }

  .footer-nav--desktop {
    display: none;
  }

  .footer-bottom {
    padding: 25px 0;
  }

  .footer-copyright {
    font-size: var(--font-size-13);
  }

  .w-main {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
  }
}
