@charset "UTF-8";

/* ==========================================================================
   original2 テーマ共通スタイル（トップページ）
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #F7F6F4;
  font-family: 'Hanken Grotesk', 'Noto Sans JP', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
}

.inner {
  max-width: 1280px;
  margin: 0 auto;
}

#who-we-are,
#what-we-do,
#works {
  scroll-margin-top: 96px;
}

@keyframes fv-zoomout {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

@keyframes dot-slide {
  0%   { transform: translateY(0);     opacity: 1; }
  80%  { transform: translateY(45px);  opacity: .15; }
  100% { transform: translateY(45px);  opacity: 0; }
}

/* ---- header ---- */
.hdr-inner {
  width: 100%;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 15px;
  font-weight: 500;
  color: #111111;
  letter-spacing: .1em;
}

@media (hover: hover) {
  .hdr-nav a:hover { opacity: .7; }
}

.hdr-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex: none;
  z-index: 60;
  position: relative;
}

.hdr-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111111;
  border-radius: 1px;
  transition: all .25s;
}

.hdr-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hdr-hamburger.open span:nth-child(2) { opacity: 0; }
.hdr-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: #fff;
  flex-direction: column;
  padding: 90px 32px 40px;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid #ECEAE6;
  letter-spacing: .06em;
}
.mobile-menu .mob-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: .06em;
}

/* ---- layout helpers ---- */
.sec { padding: 120px 80px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.g2 { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: center; }
.gft { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }

/* ---- hero ---- */
.hero { display: flex; align-items: stretch; min-height: 740px; position: relative; }
.hero-copy { flex: 0 0 54%; padding: 108px 72px 108px 80px; display: flex; flex-direction: column; justify-content: center; }
.hero-img { flex: 0 0 46%; position: relative; background: #EFEDE8; display: flex; align-items: center; justify-content: center; }

/* ---- who we are ---- */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.who-img-offset { margin-top: 60px; }

/* ---- works ---- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.works-dots { display: none; justify-content: center; gap: 8px; margin-top: 16px; }
.works-dot { width: 8px; height: 8px; border-radius: 50%; background: #CBCAC6; cursor: pointer; transition: background .2s; }
.works-dot.active { background: #111111; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .hdr-inner { padding: 0 40px; }
  .hero { flex-direction: column; min-height: auto; }
  .hero-copy { flex: none; padding: 64px 40px; }
  .hero-img { flex: none; min-height: 360px; }
  .sec { padding: 80px 40px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .g2 { grid-template-columns: 1fr; gap: 40px; }
  .gft { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 877px) {
  .hdr-nav { display: none; }
  .hdr-hamburger { display: flex !important; }
  .hdr-contact-btn { display: none !important; }
}

@media (max-width: 640px) {
  .hdr-inner { padding: 0 20px; }
  .hero-copy { padding: 48px 20px 40px; }
  .hero-img { min-height: 260px; }
  .sec { padding: 52px 20px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr; }
  .gft { grid-template-columns: 1fr; }
  .inner { padding: 0; }
  footer { padding: 48px 20px 28px !important; }
  .footer-top { flex-direction: column; gap: 10px; }
  .footer-nav { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 14px !important; padding-top: 0 !important; }
  .footer-nav a { font-size: 16px !important; }
  .footer-bottom { flex-direction: column !important; gap: 16px !important; align-items: flex-start !important; }
  .footer-right { width: 100%; flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .footer-links { width: 100%; }
  .footer-pmark { width: 100%; padding-top: 12px; }
  .footer-copy { order: 9; width: 100%; padding-top: 12px; margin-top: 4px; }
  .works-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .works-grid::-webkit-scrollbar { display: none; }
  .works-grid > * { flex: 0 0 82vw; scroll-snap-align: start; }
  .works-dots { display: flex !important; }
  .footer-pmark { justify-content: flex-start; padding-top: 12px; border-top: 1px solid #2a2a2a; margin-top: 8px; }
}
