*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:#fff;
  color:#000;
  font-family:-apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height:1.8;
}

a{
  color:#000;
  text-decoration:none;
}

/* =========================
   Design Tokens
========================= */
:root{
  --pagePad: clamp(16px, 6vw, 72px);
  --copyInset: clamp(16px, 5vw, 60px);

  /* 本文基準（Heroと完全統一） */
  --copySize: clamp(16px, 1.6vw, 22px);
  --copyLine: 1.9;

  /* ヘッダUI用 */
  --navSize: clamp(12px, 1.2vw, 18px);

  --lineBold: 12px;
  --stroke: 2px;

  /* fixed header offset (JS不要で安全側に確保) */
  --headerOffset: 104px;
}

.container{
  max-width:1080px;
  margin:0 auto;
  padding-inline: var(--pagePad);
}

/* =========================
   Header (fixed + always on top)
========================= */
.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;

  background:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:28px var(--pagePad);
  border-bottom: var(--lineBold) solid #000;

  z-index:1000;
}

.logo img{
  height:40px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  gap: clamp(12px, 2.2vw, 36px);
  align-items:center;
  flex-wrap:wrap;
}

.nav a{
  font-size: var(--navSize);
  line-height:1;
}

.nav-cta{
  border: var(--stroke) solid #000;
  padding: clamp(6px,.8vw,8px) clamp(10px,1.4vw,14px);
  font-size: var(--navSize);
  line-height:1;
}

/* =========================
   Main offset (avoid hiding under fixed header)
========================= */
main{
  padding-top: var(--headerOffset);
}

/* =========================
   Hero
========================= */
.hero{
  min-height:80vh;
  display:grid;
  place-items:center;
  background:#fff;
  border-bottom: var(--lineBold) solid #000;

  position:relative;
  z-index:1;
}

/* 常に2カラム / はみ出し防止 */
.hero-inner{
  width:100%;
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 80px);
  align-items:center;
  padding: clamp(56px, 7vw, 100px) 0;
}

/* ===== Copy ===== */
.hero-copy{
  max-width:620px;
  padding-left: var(--copyInset);
}

/* Catch.svg（内部余白なし前提） */
.catch-svg{
  width: min(560px, 100%);
  height:auto;
  display:block;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.body{
  margin:0;
  font-size: var(--copySize);
  line-height: var(--copyLine);
}

/* =========================
   Hero Image Layers
========================= */
.hero-visual,
.about-visual{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  max-width:560px;
}

/* ラッパー */
.hero-illus-wrap{
  position:relative;
  width: min(560px, 100%);
  perspective: 1400px;
}

.hero-base{
  width:100%;
  height:auto;
  display:block;
}

/* 上レイヤー（?）: スクロール連動でJSがtransform更新する前提 */
.hero-top{
  position:absolute;
  inset:0;
  width:100%;
  height:auto;

  transform: rotateY(0deg) scale(1);
  transform-origin:center;
  will-change: transform;
}

/* =========================
   Sections
========================= */
.section{
  padding: clamp(96px, 12vw, 180px) 0;
  border-bottom: var(--lineBold) solid #000;
}

h2{
  font-size: clamp(40px, 4.4vw, 60px);
  margin:0 0 clamp(28px, 5vw, 60px);
  letter-spacing:0.02em;
}

/* =========================
   About
========================= */
.about-inner{
  width:100%;
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 80px);
  align-items:center;
}

.about-copy{
  max-width:620px;
}

.about-text{
  font-size: var(--copySize);
  line-height: calc(var(--copyLine) + 0.1);
  margin:0;
}

.about-illus{
  width: min(280px, 60%);
  height:auto;
  display:block;
}

/* =========================
   Company
========================= */
.company{
  display:grid;
  gap:26px;
  font-size: var(--copySize);
  line-height: var(--copyLine);
}

.company div{
  display:grid;
  grid-template-columns:160px 1fr;
  gap:26px;
}

.map-link{
  margin-top:50px;
  font-size: var(--copySize);
  line-height: var(--copyLine);
}

.map-link a{
  border-bottom: var(--stroke) solid #000;
  padding-bottom:3px;
}

/* =========================
   Buttons
========================= */
.btn{
  display:inline-block;
  padding:18px 36px;
  font-weight:700;
  border: var(--stroke) solid #000;
  font-size: var(--copySize);
  line-height:1;
}

.solid{
  background:#000;
  color:#fff;
}

.outline{
  background:#fff;
  color:#000;
}

/* =========================
   Contact
========================= */
.contact-actions{
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

/* =========================
   Footer
========================= */
.footer{
  padding:120px 0 80px;
  text-align:center;
}

.footer-logo{
  height:40px;
  width:auto;
  display:inline-block;
}

/* =========================
   Responsive
========================= */
@media (max-width:900px){

  /* fixed headerの高さが少し変わる可能性があるので安全側に */
  :root{
    --headerOffset: 92px;
  }

  .company div{
    grid-template-columns:160px 1fr;
    gap:18px;
  }

  .hero-visual,
  .about-visual{
    max-width:360px;
  }

  .about-illus{
    width: min(240px, 70%);
  }
}