/* ============================================================
   craft-05-modern
   建築事務所風モダン / デザイン住宅・高級リフォーム
   white #ffffff / concrete #ececea / black #0a0a0a / 無彩色アクセント
   ============================================================ */

:root {
  --bg: #ffffff;
  --concrete: #ececea;
  --ink: #0a0a0a;
  --ink-soft: #6b6b69;
  --ink-mute: #9b9b98;
  --line: #dcdcd8;
  --en: "Inter", sans-serif;
  --sans: "Noto Sans JP", sans-serif;
  --gutter: clamp(24px, 5vw, 72px);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

.inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* うっすら走る1pxグリッド線（縦4本） */
main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  max-width: 1240px;
  margin: 0 auto;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0,
    var(--line) 1px,
    transparent 1px,
    transparent calc(25% - 0.25px)
  );
  background-position: 0 0;
  background-size: calc(100% + 1px) 100%;
  opacity: 0.5;
}

main > * { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
}

.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  color: #fff;
}

.header-logo-en {
  font-family: var(--en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.header-logo-ja {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.7);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 4px;
}

.site-nav a {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  transition: opacity 0.3s ease;
}

.site-nav a:hover { opacity: 0.55; }

.nav-cta a {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 5px 14px;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: -8% 0;
  height: 116%;
  will-change: transform;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.22) 0%, rgba(10, 10, 10, 0) 32%, rgba(10, 10, 10, 0.42) 100%);
}

.hero-corner { position: absolute; z-index: 3; }

.hero-corner-tl {
  top: 0; left: 0;
  padding: 88px var(--gutter) 0;
}

.hero-mark {
  font-family: var(--en);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
}

.hero-corner-br {
  right: var(--gutter);
  bottom: 8vh;
  max-width: 460px;
  text-align: right;
}

.hero-sub {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 14px;
}

.hero-title {
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: #fff;
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 8vh;
  z-index: 3;
}

.hero-scroll span {
  font-family: var(--en);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  writing-mode: vertical-rl;
  padding-bottom: 60px;
  position: relative;
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.6);
  animation: scrollline 2.4s ease-in-out infinite;
}

@keyframes scrollline {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- data-reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Strip / News ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.strip-label {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  padding-top: 3px;
}

.news-list li {
  display: flex;
  gap: 28px;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 300;
}

.news-list time {
  font-family: var(--en);
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  flex-shrink: 0;
}

/* ---------- Sections（共通） ---------- */
.section { padding: clamp(100px, 13vw, 180px) 0 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-no {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.section-en {
  font-family: var(--en);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}

/* ---------- Concept ---------- */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.concept-heading {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 300;
  line-height: 2.1;
  letter-spacing: 0.03em;
}

.concept-para {
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 2.15;
  margin-bottom: 1.5em;
}

.concept-para:last-child { margin-bottom: 0; }

/* ---------- Works / project index ---------- */
.works-index {
  counter-reset: work;
  border-top: 1px solid var(--line);
}

.works-row {
  position: relative;
  counter-increment: work;
  border-bottom: 1px solid var(--line);
}

.works-link {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 30px 8px;
  color: var(--ink);
  transition: padding-left 0.5s cubic-bezier(0.19, 1, 0.22, 1), color 0.4s ease;
}

.works-idx::before {
  content: counter(work, decimal-leading-zero);
  font-family: var(--en);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
  transition: color 0.4s ease;
}

.works-body { display: block; }

.works-title {
  display: block;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.works-desc {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 46em;
}

.works-tag {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* ホバーで写真を固定位置フェード表示（デスクトップ / カーソル追従なし） */
.works-thumb {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 360px;
  aspect-ratio: 16 / 10;
  transform: translateY(-46%);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 30px 70px rgba(10, 10, 10, 0.16);
}

.works-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

/* キャプション（desc内の工期・費用）を写真の右下に小さく */
.works-thumb-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 78%;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-align: right;
  color: #fff;
  background: linear-gradient(to top left, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0));
}

@media (hover: hover) {
  .works-row:hover .works-link { padding-left: 24px; }
  .works-row:hover .works-title { color: var(--ink); }
  .works-row:hover .works-idx::before { color: var(--ink); }
  .works-row:hover .works-thumb {
    opacity: 1;
    transform: translateY(-50%);
  }
  .works-row:hover .works-thumb img { transform: scale(1); }
}

/* ---------- Services / fees ---------- */
.services-heading {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.services-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}

.services-category {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 8px;
}

.services-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.services-item-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.services-name {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
}

.services-price {
  font-family: var(--en);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.services-note {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.8;
}

.services-foot {
  margin-top: 40px;
  font-size: 12px;
  color: var(--ink-mute);
}

/* ---------- People ---------- */
.people-list {
  display: grid;
  gap: clamp(48px, 8vw, 96px);
}

.people-item {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.people-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.8s ease;
}

.people-item:hover .people-media img { filter: grayscale(0); }

.people-role {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
}

.people-name {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 200;
  letter-spacing: 0.06em;
  margin: 10px 0 24px;
}

.people-bio {
  color: var(--ink-soft);
  font-weight: 400;
  line-height: 2.15;
  max-width: 38em;
}

/* ---------- Voices ---------- */
.voices-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.voices-item {
  background: var(--bg);
  padding: 40px 32px;
}

.voices-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 2.1;
  color: var(--ink-soft);
}

.voices-author {
  margin-top: 22px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ---------- Flow ---------- */
.flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.flow-item {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.flow-step {
  font-family: var(--en);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.flow-title {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin: 14px 0 12px;
}

.flow-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 2;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }

.faq-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.faq-list .faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  display: flex;
  gap: 18px;
}

.faq-q::before {
  content: "Q";
  font-family: var(--en);
  font-weight: 400;
  color: var(--ink-mute);
  flex-shrink: 0;
}

.faq-a {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 2;
  display: flex;
  gap: 18px;
}

.faq-a::before {
  content: "A";
  font-family: var(--en);
  color: var(--ink-mute);
  flex-shrink: 0;
}

/* ---------- Access ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
}

.access-info div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 400;
}

.access-info .access-info div:first-child,
.access-info div:first-child { border-top: 1px solid var(--line); }

.access-info dt {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-mute);
  padding-top: 2px;
}

.access-info dd { color: var(--ink-soft); }

.access-info dd a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

/* ---------- CTA ---------- */
.cta {
  margin-top: clamp(120px, 14vw, 200px);
  background: var(--concrete);
}

.cta-inner {
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(80px, 10vw, 120px);
  text-align: center;
}

.cta-en {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}

.cta-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 200;
  letter-spacing: 0.06em;
  margin: 18px 0 14px;
}

.cta-text {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 44px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  min-width: 260px;
  padding: 18px 32px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  transition: all 0.35s ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: #2a2a28; }

.btn-ghost {
  border: 1px solid var(--ink);
  font-family: var(--en);
  letter-spacing: 0.02em;
}

.btn-ghost:hover { background: var(--ink); color: #fff; }

.cta-sns {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.cta-sns a {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.cta-sns a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px var(--gutter) 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-copy {
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

/* ---------- Demo bar ---------- */
.demo-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: rgba(10, 10, 10, 0.94);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.demo-bar p { flex: 1; }

.demo-bar button.js-demo-close {
  flex-shrink: 0;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.demo-bar button:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- Skin（店舗別差別化 / TEMPLATE_SPEC §9） ---------- */
/* accent: craft-05 は対象なし（無彩色が個性）。§9 対応表どおり style 注入なし */

/* altFont: 見出し・英字小文字セクション見出しを Zen Kaku Gothic New（細字）へ */
.u-alt-font .hero-title,
.u-alt-font .section-en,
.u-alt-font .concept-heading,
.u-alt-font .works-title,
.u-alt-font .people-name,
.u-alt-font .flow-title,
.u-alt-font .faq-q,
.u-alt-font .cta-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.u-alt-font .section-en {
  text-transform: lowercase;
}

/* button: 形状切替（.btn と .nav-cta a に適用） */
body.u-btn-square .btn,
body.u-btn-square .nav-cta a { border-radius: 0; }
body.u-btn-round .btn,
body.u-btn-round .nav-cta a { border-radius: 8px; }
body.u-btn-pill .btn,
body.u-btn-pill .nav-cta a { border-radius: 999px; padding-left: 40px; padding-right: 40px; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .services-groups { grid-template-columns: 1fr; gap: 8px; }
  .voices-list { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .access-grid { grid-template-columns: 1fr; gap: 36px; }

  .people-item { grid-template-columns: 1fr; gap: 24px; }
  .people-media img { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  main::before { display: none; }

  .site-header {
    padding: 16px 20px;
    mix-blend-mode: normal;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding-top: 0;
  }

  .site-nav a { font-size: 16px; color: var(--ink); }
  .nav-cta a { border-color: var(--ink); }

  .header-logo { color: var(--ink); }
  .header-logo-ja { color: var(--ink-soft); }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 110;
    mix-blend-mode: normal;
  }

  .nav-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    background: var(--ink);
    margin: 0 auto;
    transition: transform 0.35s ease;
  }

  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(4px) rotate(20deg); }
  body.nav-open .nav-toggle span:nth-child(2) { transform: translateY(-4px) rotate(-20deg); }

  .hero { height: 88vh; }
  .hero-corner-tl { display: none; }
  .hero-corner-br {
    left: 20px;
    right: 20px;
    bottom: 12vh;
    max-width: none;
    text-align: left;
  }
  .hero-scroll { left: 20px; bottom: 12vh; display: none; }

  .concept-grid { grid-template-columns: 1fr; gap: 28px; }

  .works-link {
    grid-template-columns: 40px 1fr;
    gap: 14px;
    padding: 22px 0;
  }
  .works-tag {
    grid-column: 2;
    margin-top: 8px;
  }
  .works-thumb { display: none; }

  .flow-list { grid-template-columns: 1fr; gap: 4px; }
  .flow-item { padding-top: 18px; padding-bottom: 4px; }

  .voices-item { padding: 32px 24px; }

  .footer-logo { font-size: 12px; }
}
