@charset "UTF-8";
/* =================================================================
   097 KATACHI — デザイン住宅・規格住宅メーカー
   配色: モノトーン（インク / オフホワイト / ウォームグレー）
   フォント: Space Grotesk(en) × Zen Kaku Gothic New(jp)
   ヒーロー: フルブリード大判建築写真 + 極小ロゴ + 最小テキスト
   ナビ: ハンバーガーのみ + フルスクリーン黒オーバーレイ
   ================================================================= */

:root {
  --ink:    #0e0e0e;   /* 主役の黒 */
  --ink2:   #1c1c1a;
  --paper:  #f4f2ee;   /* オフホワイト */
  --paper2: #eae7e0;
  --gray:   #8a8580;   /* ウォームグレー */
  --gray-d: #57534d;   /* 濃いグレー（本文・4.5確保） */
  --line:   #d8d4cc;
  --white:  #ffffff;
  --maxw:   1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  padding-top: 36px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 88%; max-width: var(--maxw); margin: 0 auto; }
.en { font-family: 'Space Grotesk', sans-serif; }

/* ─── DEMO BAR ─────────────────────────────────────────── */
#demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1200;
  background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.12); padding: 7px 0;
}
.demo-bar-inner { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .72rem; color: rgba(255,255,255,.5); }
.demo-badge { font-family:'Space Grotesk',sans-serif; font-weight: 700; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: 3px 10px; flex-shrink: 0; }
.demo-link { color: var(--paper); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.demo-copy { color: rgba(255,255,255,.28); font-size: .64rem; margin-left: 4px; }
@media(max-width:640px){ .demo-copy { display: none; } }

/* ─── HEADER（ロゴ左 + ハンバーガーのみ） ───────────────── */
.site-header {
  position: fixed; top: 36px; left: 0; right: 0; z-index: 1000;
  padding: 22px 0; transition: background .4s, padding .4s;
}
.site-header.is-scrolled { background: rgba(244,242,238,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 14px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 88%; max-width: var(--maxw); margin: 0 auto; }
.site-logo { display: flex; flex-direction: column; line-height: 1; color: var(--white); transition: color .4s; }
.site-header.is-scrolled .site-logo { color: var(--ink); }
.logo-en { font-family:'Space Grotesk',sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .3em; }
.logo-jp { font-size: .6rem; letter-spacing: .25em; margin-top: 6px; opacity: .8; }

/* ハンバーガー（常時表示） */
.hamburger {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  width: 38px; height: 24px; justify-content: center; background: none; border: none; cursor: pointer;
  position: relative; z-index: 1100;
}
.hamburger span { display: block; height: 1.5px; background: var(--white); transition: .35s; }
.site-header.is-scrolled .hamburger span { background: var(--ink); }
.hamburger span:nth-child(1){ width: 38px; }
.hamburger span:nth-child(2){ width: 26px; }
.hamburger .ham-label { font-family:'Space Grotesk',sans-serif; font-size: .58rem; letter-spacing: .2em; color: var(--white); margin-top: 4px; }
.site-header.is-scrolled .hamburger .ham-label { color: var(--ink); }

/* メニュー展開時：スタッキングコンテキスト解除で背景透け防止（PC/モバイル共通）+ ハンバーガー可視化 */
.site-header.menu-active { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.site-header.menu-active .hamburger span { background: var(--paper); }
.site-header.menu-active .hamburger .ham-label { color: var(--paper); }

/* フルスクリーンメニュー */
.header-nav {
  position: fixed; inset: 0; z-index: 2000; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  padding: 80px 10vw 40px; gap: 2px;
  overflow-y: auto;
  clip-path: circle(0% at calc(100% - 60px) 60px);
  transition: clip-path .7s cubic-bezier(.76,0,.24,1); visibility: hidden;
}
/* 上下の余白で縦中央寄せ。項目が画面より多い時は潰れてスクロール可能（先頭HOMEが隠れない） */
.header-nav::before, .header-nav::after { content: ''; margin: auto 0; }
.header-nav.is-open { clip-path: circle(150% at calc(100% - 60px) 60px); visibility: visible; }
.header-nav > a {
  /* 高さ基準のサイズ指定で、項目7個が必ず1画面に収まる */
  font-family:'Space Grotesk',sans-serif; font-size: clamp(1.4rem, 4vh, 2.4rem); font-weight: 500;
  letter-spacing: .01em; padding: 4px 0; color: var(--paper); position: relative;
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s, color .3s;
}
.header-nav.is-open > a { opacity: 1; transform: translateY(0); }
.header-nav.is-open > a:nth-child(3){ transition-delay:.12s; }
.header-nav.is-open > a:nth-child(4){ transition-delay:.18s; }
.header-nav.is-open > a:nth-child(5){ transition-delay:.24s; }
.header-nav.is-open > a:nth-child(6){ transition-delay:.3s; }
.header-nav.is-open > a:nth-child(7){ transition-delay:.36s; }
.header-nav.is-open > a:nth-child(8){ transition-delay:.42s; }
.header-nav > a .jp { font-family:'Zen Kaku Gothic New',sans-serif; font-size: .8rem; letter-spacing:.2em; color: var(--gray); display: block; margin-bottom: -4px; }
.header-nav > a:hover { color: var(--gray); }
.mobile-nav-close {
  position: absolute; top: 40px; right: 10vw; background: none; border: none; color: var(--paper);
  font-family:'Space Grotesk',sans-serif; font-size: .8rem; letter-spacing: .2em; cursor: pointer;
}
.mobile-nav-home { /* フルスクリーンメニュー内のHOME（汎用aとして並ぶ） */ }

/* ─── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family:'Space Grotesk',sans-serif; font-weight: 500; font-size: .9rem;
  padding: 16px 36px; cursor: pointer; border: none; transition: .3s; letter-spacing: .04em;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink2); transform: translateY(-2px); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--white); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn .arr { transition: transform .3s; }
.btn:hover .arr { transform: translateX(4px); }

/* ─── SECTION COMMON ───────────────────────────────────── */
section { padding: 120px 0; }
.sec-en { font-family:'Space Grotesk',sans-serif; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 18px; }
.sec-title { font-size: clamp(1.7rem, 3.6vw, 2.9rem); font-weight: 500; letter-spacing: .02em; line-height: 1.5; }
.sec-title .en { font-weight: 500; }
.sec-head { margin-bottom: 64px; max-width: 640px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .sec-en { text-align: center; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.2s ease, transform 1.2s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.clip-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.76,0,.24,1); }
.clip-reveal.show { clip-path: inset(0 0 0% 0); }

/* ─── HERO（フルブリード） ─────────────────────────────── */
.hero { position: relative; height: calc(100vh - 36px); min-height: 620px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content:''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,.35) 0%, rgba(14,14,14,.05) 35%, rgba(14,14,14,.55) 100%); }
.hero-inner { position: absolute; left: 0; right: 0; bottom: clamp(44px, 8vh, 90px); z-index: 2; color: var(--paper); }
.hero-tag { font-family:'Space Grotesk',sans-serif; font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.3rem, 6.5vw, 5.2rem); font-weight: 500; line-height: 1.18; letter-spacing: .02em; margin-bottom: 26px; }
.hero h1 .en { display: block; font-weight: 500; font-size: clamp(1rem,2vw,1.4rem); letter-spacing: .3em; color: var(--paper2); margin-bottom: 16px; }
.hero-sub { font-size: 1rem; max-width: 34em; color: rgba(244,242,238,.85); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll { position: absolute; right: 6vw; bottom: 40px; z-index: 2; font-family:'Space Grotesk',sans-serif; font-size: .6rem; letter-spacing: .25em; color: var(--paper); writing-mode: vertical-rl; }

/* ─── PHILOSOPHY ──────────────────────────────────────── */
.philosophy { background: var(--paper); }
.philosophy .big { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 500; line-height: 1.75; letter-spacing: .03em; max-width: 22em; }
.philosophy .big em { font-style: normal; color: var(--gray); }
.philosophy .lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; align-items: start; }
.philosophy .lead-grid p { color: var(--gray-d); font-size: .96rem; }

/* ─── MODELS（家=商品グリッド） ───────────────────────── */
.models { background: var(--ink); color: var(--paper); }
.models .sec-title { color: var(--paper); }
.models .sec-en { color: var(--gray); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.model-card { position: relative; overflow: hidden; background: var(--ink2); aspect-ratio: 3/4; cursor: pointer; }
.model-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1), opacity .5s; opacity: .82; }
.model-card:hover img { transform: scale(1.06); opacity: 1; }
.model-card .m-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 26px; z-index: 2; background: linear-gradient(180deg, transparent, rgba(14,14,14,.85)); }
.model-card .m-no { font-family:'Space Grotesk',sans-serif; font-size: .64rem; letter-spacing: .25em; color: var(--gray); }
.model-card .m-name { font-family:'Space Grotesk',sans-serif; font-size: 1.6rem; font-weight: 500; letter-spacing: .12em; margin: 4px 0 6px; }
.model-card .m-desc { font-size: .82rem; color: rgba(244,242,238,.72); }
.model-card .m-price { font-family:'Space Grotesk',sans-serif; font-size: .78rem; color: var(--paper); margin-top: 10px; letter-spacing: .04em; }

/* ─── WORKS GALLERY ───────────────────────────────────── */
.gallery { background: var(--paper); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.g-item { overflow: hidden; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.g-item:hover img { transform: scale(1.05); }
.g-item .g-cap { position: absolute; left: 18px; bottom: 16px; color: var(--paper); font-size: .76rem; letter-spacing: .08em; z-index: 2; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.g-tall { grid-column: span 5; aspect-ratio: 4/5; }
.g-wide { grid-column: span 7; aspect-ratio: 7/5; }
.g-half { grid-column: span 6; aspect-ratio: 3/2; }
.g-third { grid-column: span 4; aspect-ratio: 1/1; }

/* ─── SPEC（性能数値） ────────────────────────────────── */
.spec { background: var(--ink); color: var(--paper); }
.spec .sec-title { color: var(--paper); }
.spec .sec-en { color: var(--gray); }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.15); }
.spec-item { padding: 44px 20px; border-bottom: 1px solid rgba(255,255,255,.15); border-right: 1px solid rgba(255,255,255,.15); }
.spec-item:nth-child(4n){ border-right: none; }
.spec-item .s-val { font-family:'Space Grotesk',sans-serif; font-size: clamp(2.2rem,4vw,3.4rem); font-weight: 500; line-height: 1; }
.spec-item .s-val small { font-size: .9rem; color: var(--gray); }
.spec-item .s-key { font-size: .82rem; color: rgba(244,242,238,.7); margin-top: 14px; }

/* ─── PROCESS（家づくりの流れ） ───────────────────────── */
.process { background: var(--paper); }
.process-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.process-step { background: var(--paper); padding: 40px 36px; }
.process-step .p-no { font-family:'Space Grotesk',sans-serif; font-size: .72rem; letter-spacing: .2em; color: var(--gray); }
.process-step h3 { font-size: 1.2rem; font-weight: 500; margin: 12px 0 10px; letter-spacing: .03em; }
.process-step p { font-size: .9rem; color: var(--gray-d); }

/* ─── NEWS ────────────────────────────────────────────── */
.news { background: var(--paper2); }
.news-list { display: grid; gap: 0; max-width: 900px; margin: 0 auto; }
.news-row { display: flex; gap: 26px; align-items: center; padding: 26px 6px; border-bottom: 1px solid var(--line); transition: padding .3s; flex-wrap: wrap; }
.news-row:first-child { border-top: 1px solid var(--line); }
.news-row:hover { padding-left: 16px; }
.news-date { font-family:'Space Grotesk',sans-serif; font-size: .9rem; color: var(--gray); flex-shrink: 0; }
.news-cat { font-size: .66rem; letter-spacing: .12em; color: var(--ink); border: 1px solid var(--ink); padding: 3px 12px; flex-shrink: 0; }
.news-ttl { font-size: .95rem; color: var(--ink); }

/* ─── CTA ─────────────────────────────────────────────── */
.cta { background: var(--ink); color: var(--paper); text-align: center; }
.cta .sec-en { color: var(--gray); text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); font-weight: 500; line-height: 1.4; margin-bottom: 20px; letter-spacing: .03em; }
.cta p { color: rgba(244,242,238,.78); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── PAGE HERO（下層） ───────────────────────────────── */
.page-hero { background: var(--ink); color: var(--paper); padding: 160px 0 80px; }
.page-hero .sec-en { color: var(--gray); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: .04em; }
.page-hero h1 .en { display: block; font-family:'Space Grotesk',sans-serif; font-size: .9rem; letter-spacing: .3em; color: var(--gray); margin-bottom: 14px; }
.breadcrumb { font-size: .74rem; color: var(--gray); margin-top: 16px; }
.breadcrumb a:hover { color: var(--paper); }

/* ─── CONTACT ─────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: start; }
.contact-form { display: grid; gap: 22px; }
.form-field label { display: block; font-size: .8rem; letter-spacing: .06em; color: var(--ink); margin-bottom: 9px; }
.form-field .req { color: var(--gray); font-size: .7rem; margin-left: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 4px; border: none; border-bottom: 1px solid var(--line);
  font-family: inherit; font-size: .98rem; background: transparent; transition: border .3s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-bottom-color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-aside { background: var(--ink); color: var(--paper); padding: 44px 38px; }
.contact-aside h3 { font-family:'Space Grotesk',sans-serif; font-size: 1rem; letter-spacing: .1em; margin-bottom: 22px; }
.contact-info dt { font-family:'Space Grotesk',sans-serif; font-size: .64rem; letter-spacing: .15em; color: var(--gray); margin-top: 20px; }
.contact-info dd { font-size: .96rem; color: var(--paper); }

/* ─── 汎用 PROSE / TABLE ──────────────────────────────── */
.lead { font-size: 1.2rem; font-weight: 500; line-height: 1.9; margin-bottom: 28px; letter-spacing: .03em; }
.prose p { margin-bottom: 22px; color: var(--gray-d); }
.prose h3 { font-weight: 500; letter-spacing: .03em; }
.about-table { width: 100%; border-collapse: collapse; }
.about-table th, .about-table td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.about-table th { width: 30%; color: var(--ink); font-weight: 500; }
.about-table td { color: var(--gray-d); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.media-frame { overflow: hidden; }
.media-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ─── FOOTER ──────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(244,242,238,.6); padding: 90px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo-en { color: var(--paper); font-size: 1.6rem; letter-spacing: .3em; }
.footer-brand p { font-size: .86rem; margin-top: 18px; max-width: 26em; }
.footer-col h4 { font-family:'Space Grotesk',sans-serif; font-size: .68rem; letter-spacing: .18em; color: var(--gray); margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: .88rem; transition: color .3s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .74rem; color: rgba(244,242,238,.4); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 980px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(2n){ border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  section { padding: 80px 0; }
  .header-nav { padding: 88px 8vw 40px; align-items: flex-start; }
  /* menu-active の透け防止はグローバル側で共通化済み */
  .mobile-nav-close { right: 8vw; }

  .philosophy .lead-grid { grid-template-columns: 1fr; gap: 28px; }
  .model-grid { grid-template-columns: 1fr; }
  .model-card { aspect-ratio: 4/3; }

  /* ギャラリー → 1カラム */
  .gallery-grid { grid-template-columns: 1fr; }
  .g-tall, .g-wide, .g-half, .g-third { grid-column: span 1; aspect-ratio: 3/2; }

  .spec-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }

  /* contact 1col（2階層） */
  .contact-grid, .contact-layout, .contact-wrap, .contact-flex,
  [class*="contact-grid"], [class*="contact-layout"], [class*="contact-wrap"] {
    display: block !important; grid-template-columns: 1fr !important; flex-direction: column !important; gap: 32px;
  }
  .contact-aside { margin-top: 30px; }
  .form-row, .form-grid, .form-2col, .form-pair, .input-row, .input-grid,
  [class*="form-row"], [class*="form-grid"], [class*="two-col"] {
    display: block !important; grid-template-columns: 1fr !important;
  }
  form input[type="text"], form input[type="email"], form input[type="tel"],
  form input[type="number"], form textarea, form select,
  .form-row > input, .form-row > textarea, .form-row > select,
  .form-row > div, .form-grid > * {
    width: 100% !important; max-width: 100% !important; box-sizing: border-box;
  }
  .form-row, .form-grid { margin-bottom: 1rem; }

  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; }
}
