* {
  box-sizing: border-box;
}

:root {
  --color-bg: #ecebe6;
  --color-text-primary: #333333;
  --color-text-secondary: #333333;
  --color-accent: #bca47a;
  --color-accent-light: #f5f4ef;
  --color-border: #d1d0ca;
  --font-sans: 'Noto Sans JP', -apple-system, sans-serif;
  --space-xl: 32px;
  --space-5xl: 160px;
  --radius-sm: 0px;
  --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1170px;
  --container-padding: 15px;
  --fs-min: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: 2.0;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0L103.9 25V75L60 100L16.1 75V25L60 0Z' fill='none' stroke='%23d1d0ca' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/svg%3E");
}

/* =========================================
   Header, Footer, Navigation (Common styles)
========================================= */

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  border-bottom: 1px solid var(--color-border);
}

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

/* --- Navigation --- */
.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-primary);
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.nav-cta {
  background: #555555 !important;
  color: #ffffff !important;
  padding: 10px 24px;
  min-width: 140px;
  text-align: center;
  border: 1px solid #555555 !important;
  transition: var(--transition);
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: none;
  position: relative;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta.accent {
  background: var(--color-accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--color-accent) !important;
}

.nav-cta:hover {
  background: transparent !important;
  color: var(--color-text-primary) !important;
  border: 1px solid var(--color-text-primary) !important;
}

.nav-cta.accent:hover {
  background: transparent !important;
  color: var(--color-accent) !important;
  border: 1px solid var(--color-accent) !important;
}

.totate-logo-link::after {
  display: none !important;
}

/* --- SP Menu Button --- */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
  padding: 0;
}

.menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: all 0.3s ease;
}

.menu-btn.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- SP Nav Overlay --- */
.sp-nav-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.sp-nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.sp-nav-overlay .nav {
  display: flex !important;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.sp-nav-overlay .nav a {
  font-size: 18px;
}

.sp-nav-overlay .nav-cta {
  min-width: 200px !important;
}

/* --- Footer --- */
.footer {
  padding: 120px var(--container-padding);
  background: #333333;
  color: #fff;
}

.btn-footer-visit {
  width: 280px;
  background: #333333;
  border: 1px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.btn-footer-visit::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.btn-footer-visit:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-footer-visit:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.btn-footer-catalog {
  width: 280px;
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.btn-footer-catalog::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.btn-footer-catalog:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-footer-catalog:hover {
  background: transparent !important;
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 120px;
}

.footer-copy {
  text-align: center;
  margin-top: 160px;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: #3b3b3b;
  text-transform: uppercase;
}

/* --- Section 11 (CV Grid) --- */
.btn-outline-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  background: #fff;
  border: 1px solid #333333;
  text-decoration: none;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-arrow:hover {
  background: #333333;
  color: #fff;
}

.btn-outline-arrow .arrow {
  font-size: 20px;
  line-height: 1;
}

.cv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
}

.cv-header-text h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.cv-header-text p {
  font-size: 16px;
  color: var(--color-text-secondary);
}

.grid-2-cv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 40px;
}

.card-cv-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.card-cv-new .img-wrap {
  width: 100%;
  height: 240px;
  margin-bottom: 32px;
  background: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-cv-new .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-cv-new .desc {
  font-size: 16px;
  color: #333;
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 400px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   Responsive: Mobile (768px and below)
============================================ */
@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 80px;
  }
  .grid-2-cv {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cv-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Header Logo */
  .header-inner img {
    height: 32px !important;
  }

  .nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  /* Footer */
  .footer {
    padding: 80px 20px !important;
  }

  .footer-inner {
    flex-direction: column !important;
    gap: 56px !important;
  }

  .footer-inner img {
    height: 32px !important;
    margin-bottom: 24px !important;
  }

  .footer-inner div:first-child p {
    font-size: 14px;
    line-height: 2.2;
  }

  .btn-footer-visit,
  .btn-footer-catalog {
    width: 100%;
  }

  .footer-copy {
    margin-top: 48px;
  }
}
