/* 日本空間社 — Figma「日本空間社 LP デザイン案」の色・文字スタイルに合わせる */
:root {
  --bg: #eeeeee;
  --text: #373737;
  --sub: #6e6e6e;
  --line: #c8c8c8;
  --gray: #737373;
  --white: #ffffff;
  --placeholder: #d2d2d0;
  --en: "Inter", "Noto Sans JP", sans-serif;
  --jp: "Noto Sans JP", "Inter", sans-serif;
  --pad: 80px;
}
@media (max-width: 767px) {
  :root { --pad: 20px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--jp);
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }

.container { padding-left: max(var(--pad), calc((100vw - 1280px) / 2)); padding-right: max(var(--pad), calc((100vw - 1280px) / 2)); }
.pc { display: inline; }
.more.sp-only { display: none; }
@media (max-width: 767px) { .pc, .more.pc-only { display: none; } .more.sp-only { display: inline-flex; } }

/* ---------- type ---------- */
.en-label { font-family: var(--en); font-size: 12px; letter-spacing: .04em; color: var(--sub); line-height: 1.5; }
.en-display { font-family: var(--en); font-weight: 700; font-size: 36px; letter-spacing: -.01em; line-height: 1.2; }
.jp-sub { font-size: 12px; color: var(--sub); line-height: 1.9; margin-top: 10px; }
.lead { font-weight: 500; font-size: 26px; line-height: 1.7; letter-spacing: .06em; }
.catch { font-weight: 500; font-size: 40px; line-height: 1.5; letter-spacing: .08em; }
.heading-jp { font-weight: 700; font-size: 15px; line-height: 1.7; }
.body { font-size: 14px; line-height: 2.1; }
.small { font-size: 12px; line-height: 1.9; }
@media (max-width: 767px) {
  .en-display { font-size: 28px; }
  .jp-sub { margin-top: 6px; }
  .lead { font-size: 20px; letter-spacing: .04em; }
  .catch { font-size: 26px; letter-spacing: .06em; }
}

/* ---------- header ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 28px 40px;
  position: relative;
  z-index: 20;
}
.site-header__tagline { font-family: var(--en); font-size: 12px; line-height: 1.5; letter-spacing: .04em; }
.site-header__logo img { width: 160px; height: auto; }
.site-nav { display: flex; justify-content: flex-end; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 28px; font-family: var(--en); font-weight: 500; font-size: 13px; letter-spacing: .02em; }
.menu-button { width: 28px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.menu-button span { display: block; height: 1px; background: var(--text); transition: transform .3s, opacity .3s; }
.menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(30deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-30deg); }
.is-top .site-header { position: absolute; top: 0; left: 0; right: 0; }
@media (max-width: 1024px) {
  .site-header { grid-template-columns: auto 1fr; }
  .site-header__tagline, .site-nav__list { display: none; }
}
@media (max-width: 767px) {
  .site-header { padding: 18px 20px; }
  .site-header__logo img { width: 128px; }
}

.drawer {
  position: fixed; inset: 0; z-index: 15;
  background: var(--bg);
  padding: 120px var(--pad) 40px;
  overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer__list li { border-bottom: 1px solid var(--line); }
.drawer__list a { display: flex; align-items: baseline; justify-content: space-between; padding: 20px 0; font-family: var(--en); font-weight: 700; font-size: 28px; line-height: 1.2; }
.drawer__list span { font-family: var(--jp); font-weight: 400; font-size: 12px; color: var(--sub); }
body.is-menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(100svh, 60vw); min-height: 560px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero__scroll { position: absolute; right: var(--pad); bottom: 88px; font-family: var(--en); font-size: 12px; letter-spacing: .04em; }
@media (max-width: 767px) {
  .hero { height: 600px; min-height: 0; }
  .hero img { object-position: 20% center; }
  .hero__scroll { display: none; }
}

/* ---------- sections ---------- */
.sec { padding-top: 160px; padding-bottom: 160px; }
.sec--line { border-top: 1px solid var(--line); }
.sec--gray { background: var(--gray); color: var(--white); }
.sec--gray .jp-sub, .sec--gray .en-label { color: var(--white); }
.sec--tight-top { padding-top: 40px; }
@media (max-width: 767px) {
  .sec { padding-top: 72px; padding-bottom: 80px; }
  .sec--tight-top { padding-top: 16px; }
}

.statement { padding-top: 140px; padding-bottom: 120px; }
.statement .en-hero { font-family: var(--en); font-weight: 300; font-size: 14px; letter-spacing: .06em; color: var(--sub); line-height: 1.5; }
.statement .catch { margin: 18px 0; }
@media (max-width: 767px) {
  .statement { padding-top: 64px; padding-bottom: 56px; }
  .statement .en-hero { font-size: 12px; letter-spacing: .04em; }
  .statement .catch { margin: 12px 0; }
  .statement .body { font-size: 12px; }
}

.row2 { display: grid; grid-template-columns: 400px 1fr; column-gap: 80px; }
.row2--end { align-items: end; }
.stack > * + * { margin-top: 32px; }
@media (max-width: 1024px) { .row2 { grid-template-columns: 1fr; row-gap: 28px; } }
@media (max-width: 767px) { .stack > * + * { margin-top: 24px; } }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 64px; }
@media (max-width: 767px) { .head-row { margin-bottom: 32px; } }

.more { display: inline-flex; align-items: center; gap: 12px; font-family: var(--en); font-weight: 500; font-size: 13px; letter-spacing: .02em; line-height: 1.5; }
.arrow { display: inline-block; width: 22px; height: 10px; flex: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10' fill='none'%3E%3Cpath d='M0 5H20M16 1L20 5L16 9' stroke='%23373737'/%3E%3C/svg%3E"); }
.arrow--white, .sec--gray .arrow, .cta .cta__info .arrow, .button--dark .arrow {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10' fill='none'%3E%3Cpath d='M0 5H20M16 1L20 5L16 9' stroke='%23ffffff'/%3E%3C/svg%3E"); }
.arrow--left { transform: scaleX(-1); }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.facts dt { font-family: var(--en); font-size: 12px; color: var(--sub); line-height: 1.5; }
.facts dd { margin: 6px 0 0; font-weight: 700; font-size: 15px; line-height: 1.7; }
@media (max-width: 767px) {
  .facts { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .facts div { display: grid; grid-template-columns: 96px 1fr; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .facts dd { margin: 0; }
}

/* group diagram */
.diagram { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr; gap: 20px; align-items: stretch; margin-top: 64px; }
.diagram__arrow { align-self: center; height: 10px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='10' fill='none'%3E%3Cpath d='M0 5H30M26 1L30 5L26 9' stroke='%23373737'/%3E%3C/svg%3E"); }
.gcard { border: 1px solid var(--text); padding: 36px 32px; }
.gcard--dark { background: var(--text); color: var(--white); }
.gcard__en { font-family: var(--en); font-size: 12px; color: var(--sub); line-height: 1.5; }
.gcard--dark .gcard__en { color: var(--white); }
.gcard__name { font-weight: 500; font-size: 26px; line-height: 1.7; letter-spacing: .06em; margin-top: 10px; }
.gcard__role { font-weight: 700; font-size: 15px; line-height: 1.7; margin-top: 10px; }
.gcard__desc { font-size: 12px; line-height: 1.9; margin-top: 18px; }
.gcard--link { display: block; transition: background-color .3s; }
.gcard--link:hover { opacity: 1; background: var(--white); }
.gcard--dark.gcard--link:hover { background: #4a4a4a; }
.gcard__link { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--en); font-weight: 500; font-size: 13px; line-height: 1.5; }
.gcard--dark .gcard__link { border-top-color: #5c5c5c; }
.gcard--dark .gcard__link .arrow { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10' fill='none'%3E%3Cpath d='M0 5H20M16 1L20 5L16 9' stroke='%23ffffff'/%3E%3C/svg%3E"); }
.ext { display: inline-block; width: 10px; height: 10px; flex: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none'%3E%3Cpath d='M1 9L9 1M3 1H9V7' stroke='%23373737'/%3E%3C/svg%3E"); }
.group-note { margin-top: 64px; }
@media (max-width: 1024px) {
  .diagram { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .diagram__arrow { height: 24px; transform: rotate(90deg); width: 24px; justify-self: center; }
  .gcard { padding: 24px; }
  .group-note { margin-top: 32px; }
}

/* services (top / what we do) */
.services { display: grid; gap: 100px; margin-top: 100px; }
.service { display: grid; grid-template-columns: 680px 1fr; gap: 80px; align-items: center; }
.service--right { grid-template-columns: 1fr 680px; }
.service--right .service__img { order: 2; }
.service__img img { width: 100%; aspect-ratio: 680 / 460; object-fit: cover; }
.service__title { display: inline-block; font-family: var(--en); font-weight: 600; font-size: 22px; line-height: 1.3; padding-bottom: 8px; border-bottom: 1px solid currentColor; margin: 18px 0; }
.service .heading-jp { margin-bottom: 18px; }
.sec--gray .more { margin-top: 100px; }
@media (max-width: 1024px) {
  .services { gap: 48px; margin-top: 48px; }
  .service, .service--right { grid-template-columns: 1fr; gap: 16px; }
  .service--right .service__img { order: 0; }
  .service__img img { aspect-ratio: 335 / 224; }
  .service__title { margin: 12px 0; }
  .sec--gray .more { margin-top: 48px; }
}

/* works */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 40px; }
.work__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--placeholder); }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work:hover .work__img img { transform: scale(1.03); }
.work a:hover { opacity: 1; }
.work__cat { font-family: var(--en); font-size: 12px; color: var(--sub); line-height: 1.5; margin-top: 16px; }
.work__title { font-weight: 700; font-size: 15px; line-height: 1.7; margin-top: 4px; }
.work[hidden] { display: none; }
@media (max-width: 767px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 15px; }
  .work__title { font-size: 13px; }
  .works-grid--carousel { display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
  .works-grid--carousel .work { flex: 0 0 260px; scroll-snap-align: start; }
  .works-grid--carousel + .more { margin-top: 32px; }
}

.filter { display: flex; gap: 32px; border-bottom: 1px solid var(--line); margin-bottom: 48px; overflow-x: auto; }
.filter button { border: 0; background: none; padding: 0 0 14px; font-family: var(--en); font-weight: 500; font-size: 13px; color: var(--sub); cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.filter button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--text); }
@media (max-width: 767px) { .filter { gap: 24px; margin-bottom: 32px; } }

/* news */
.news { border-top: 1px solid var(--line); }
.news li a, .news__row { display: grid; grid-template-columns: 100px 120px 1fr 22px; gap: 40px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.news time, .news .cat { font-family: var(--en); font-size: 12px; line-height: 1.5; }
.news time { color: var(--sub); }
@media (max-width: 767px) {
  .news li a, .news__row { grid-template-columns: auto 1fr; gap: 6px 16px; padding: 18px 0; }
  .news li a > span:nth-child(3), .news__row > span:nth-child(3) { grid-column: 1 / -1; }
  .news .arrow { display: none; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { border-top: 1px solid var(--text); padding-top: 28px; }
.step__no { font-family: var(--en); font-weight: 300; font-size: 44px; line-height: 1.2; }
.step__en { font-family: var(--en); font-size: 12px; color: var(--sub); line-height: 1.5; margin-top: 10px; }
.step .heading-jp { margin-top: 10px; }
.step .small { margin-top: 10px; }
@media (max-width: 1024px) {
  .steps, .steps--3 { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 20px 0 28px; }
}

/* lists */
.list { border-top: 1px solid var(--line); }
.list li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; line-height: 1.7; }
.list li::before { content: ""; width: 12px; height: 1px; background: var(--text); flex: none; }

/* page title */
.page-title { padding-top: 96px; padding-bottom: 72px; }
.crumb { font-family: var(--en); font-size: 12px; color: var(--sub); line-height: 1.5; margin-bottom: 42px; }
.crumb a:hover { text-decoration: underline; }
.page-title h1 { font-family: var(--en); font-weight: 700; font-size: 56px; line-height: 1.2; letter-spacing: -.02em; }
@media (max-width: 767px) {
  .page-title { padding-top: 32px; padding-bottom: 40px; }
  .crumb { margin-bottom: 20px; }
  .page-title h1 { font-size: 40px; }
}

.wide-photo { height: 600px; overflow: hidden; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .wide-photo { height: 260px; } }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pair img { width: 100%; aspect-ratio: 380 / 260; object-fit: cover; }
@media (max-width: 767px) { .pair { gap: 15px; } .pair img { aspect-ratio: 4 / 3; } }

.big-photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.biz-block .big-photo { margin-bottom: 64px; }
.biz-no { font-family: var(--en); font-size: 12px; color: var(--sub); line-height: 1.5; margin-bottom: 10px; }
@media (max-width: 767px) {
  .big-photo img { aspect-ratio: 3 / 2; }
  .biz-block .big-photo { margin-bottom: 28px; }
}

/* company table */
.table { border-top: 1px solid var(--line); }
.table div { display: grid; grid-template-columns: 140px 1fr; gap: 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.table dt { font-weight: 700; font-size: 15px; line-height: 1.7; }
.table dd { margin: 0; }
@media (max-width: 767px) { .table div { grid-template-columns: 80px 1fr; gap: 16px; padding: 16px 0; } }
.map { margin-top: 40px; aspect-ratio: 800 / 320; background: var(--placeholder); display: grid; place-items: center; color: var(--sub); font-size: 12px; text-align: center; padding: 20px; }
@media (max-width: 767px) { .map { aspect-ratio: 335 / 220; } }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 1024px) { .cards2 { grid-template-columns: 1fr; gap: 12px; } }

/* work detail */
.page-title .work-name { font-family: var(--jp); font-weight: 500; font-size: 26px; line-height: 1.7; letter-spacing: .06em; margin-top: 12px; }
.detail-photo img { width: 100%; height: auto; }
.detail-photo--portrait img { width: auto; max-width: 100%; max-height: 900px; margin: 0 auto; }
@media (max-width: 767px) { .page-title .work-name { font-size: 20px; } }
.detail-info { display: grid; grid-template-columns: 480px 1fr; gap: 80px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.gallery div { aspect-ratio: 620 / 420; background: var(--placeholder); display: grid; place-items: center; color: var(--sub); font-size: 12px; text-align: center; padding: 20px; }
.pager { display: flex; justify-content: space-between; align-items: center; }
.pager a { display: inline-flex; align-items: center; gap: 12px; font-family: var(--en); font-weight: 500; font-size: 13px; }
@media (max-width: 1024px) { .detail-info { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; gap: 15px; } .pager .heading-jp { font-size: 13px; } }

/* contact form */
.form { width: min(800px, 100%); margin: 0 auto; display: grid; gap: 40px; }
.field__label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; line-height: 1.7; margin-bottom: 10px; }
.req { background: var(--text); color: var(--white); font-weight: 400; font-size: 12px; line-height: 1.6; padding: 1px 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--white); padding: 16px 20px; font: inherit; color: var(--text); border-radius: 0; }
.field textarea { height: 200px; resize: vertical; }
.field ::placeholder { color: var(--sub); }
.radios { display: flex; flex-wrap: wrap; gap: 12px 28px; border: 0; padding: 0; margin: 0; }
.radios label, .agree { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.radios input, .agree input { width: 18px; height: 18px; accent-color: var(--text); margin: 0; }
.agree { justify-content: center; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 36px; font-weight: 700; font-size: 15px; line-height: 1.7; border: 0; cursor: pointer; }
.button--white { background: var(--white); color: var(--text); width: 420px; max-width: 100%; }
.button--dark { background: var(--text); color: var(--white); width: 360px; max-width: 100%; justify-self: center; }
.form-note { text-align: center; color: var(--sub); }
.form-message { text-align: center; border: 1px solid var(--text); padding: 20px; }

/* cta */
.cta { background: var(--text); color: var(--white); padding: 140px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.cta__title { font-family: var(--en); font-weight: 700; font-size: 88px; line-height: 1.1; letter-spacing: -.02em; }
.cta__jp { font-weight: 700; font-size: 15px; line-height: 1.7; margin: 16px 0; }
.cta__info { font-family: var(--en); font-weight: 500; font-size: 13px; line-height: 1.9; margin-top: 24px; }
@media (max-width: 1024px) {
  .cta { padding: 72px 0; }
  .cta__inner { flex-direction: column; align-items: stretch; gap: 20px; }
  .cta__title { font-size: 48px; }
  .button--white { width: 100%; padding: 22px 24px; }
}

/* footer */
.site-footer { padding: 80px 0 40px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 56px; }
.site-footer__brand { display: flex; align-items: center; gap: 48px; }
.site-footer__nav { display: flex; gap: 32px; font-family: var(--en); font-weight: 500; font-size: 13px; line-height: 1.5; }
.site-footer__copy { border-top: 1px solid var(--line); padding-top: 24px; font-family: var(--en); font-size: 12px; color: var(--sub); line-height: 1.5; }
@media (max-width: 1024px) {
  .site-footer { padding: 56px 0 32px; }
  .site-footer__top { flex-direction: column; gap: 28px; margin-bottom: 28px; }
  .site-footer__brand { flex-direction: column; align-items: flex-start; gap: 16px; }
  .site-footer__nav { flex-wrap: wrap; gap: 10px 22px; }
}

/* for professionals */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--text); padding: 4px 14px; font-size: 12px; line-height: 1.8; }
.tags--white li { border-color: var(--white); }
.pro-steps { margin-top: 72px; }
.pro-more { margin-top: 56px; }
.sec--gray .step { border-top-color: var(--white); }
.sec--gray .step__en { color: var(--white); }
@media (max-width: 767px) { .pro-steps { margin-top: 40px; } .pro-more { margin-top: 32px; } }
