/* ========================================
   atelier-monogoto inspired
   Minimalist / Natural / Architectural
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-text:        #2c2c2c;
  --color-secondary:   #777777;
  --color-disabled:    #bbbbbb;
  --color-border:      #dddddd;
  --color-bg:          #ffffff;
  --color-surface:     #f5f4f1;
  --color-hover:       #111111;

  --font-serif: "Noto Serif JP", "游明朝", "Yu Mincho", Georgia, serif;
  --font-sans:  "Noto Sans JP", "游ゴシック", "Yu Gothic", sans-serif;

  --space-xs:  8px;
  --space-s:   16px;
  --space-m:   32px;
  --space-l:   56px;
  --space-xl:  88px;
  --space-xxl: 120px;

  --container: 1200px;
  --pad-h: 56px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: var(--color-bg);
  word-break: break-all;
  overflow-wrap: break-word;
  line-break: strict;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav--scrolled { border-color: var(--color-border); }

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.nav__links {
  display: flex;
  gap: var(--space-l);
  list-style: none;
}
.nav__links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--color-text); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--color-text); }
.mobile-menu__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  cursor: pointer;
}

/* ── Hero ── */
.hero {
  padding-top: 64px; /* nav height */
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 60vh 36vh;
  gap: 2px;
}

.hero__cell {
  overflow: hidden;
  background: var(--color-surface);
  position: relative;
}
.hero__cell--main {
  grid-column: 1;
  grid-row: 1 / 3;
}
.hero__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e5e0 0%, #d4cfc8 50%, #c8c3bb 100%);
}
.hero__cell--sub {
  background: linear-gradient(135deg, #f0ede8 0%, #e2ddd7 100%);
}
.hero__cell--sub2 {
  background: linear-gradient(135deg, #dbd7d0 0%, #ccc8c0 100%);
}

.hero__caption {
  position: absolute;
  bottom: var(--space-m);
  left: var(--space-m);
}
.hero__caption-text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.08em;
  color: #ffffff;
  font-feature-settings: "palt" 1, "kern" 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero__caption-sub {
  margin-top: var(--space-xs);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
}

/* ── Section Base ── */
.section {
  padding: var(--space-xxl) 0;
}
.section--surface {
  background: var(--color-surface);
}

.section__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-secondary);
  margin-bottom: var(--space-m);
  text-transform: uppercase;
}

.section__heading {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: var(--color-text);
  font-feature-settings: "palt" 1, "kern" 1;
  margin-bottom: var(--space-m);
}

.section__body {
  font-size: 14px;
  line-height: 2.0;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  max-width: 560px;
}

/* ── Philosophy / Split ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.split__text {}

.split__visual {}

.img-placeholder {
  background: var(--color-surface);
  width: 100%;
}
.img-placeholder--square   { aspect-ratio: 1 / 1; }
.img-placeholder--portrait { aspect-ratio: 3 / 4; }
.img-placeholder--landscape{ aspect-ratio: 4 / 3; }
.img-placeholder--wide     { aspect-ratio: 16 / 9; }

/* ── Services Grid ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: var(--space-l);
}

.service__item {
  background: var(--color-bg);
  padding: var(--space-l) var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.service__num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-disabled);
}

.service__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.service__body {
  font-size: 13px;
  line-height: 1.95;
  color: var(--color-secondary);
  flex: 1;
}

/* ── Works Grid ── */
.works__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-l);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.work__card {
  display: block;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.work__img {
  overflow: hidden;
}
.work__img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  transition: transform 0.5s ease;
}
.work__card:hover .work__img-placeholder {
  transform: scale(1.04);
}

.work__img-placeholder--1 { background: linear-gradient(160deg, #e0dbd4 0%, #ccc8c2 100%); }
.work__img-placeholder--2 { background: linear-gradient(160deg, #d8d3cc 0%, #c4bfb8 100%); }
.work__img-placeholder--3 { background: linear-gradient(160deg, #e8e3dc 0%, #d8d3cc 100%); }
.work__img-placeholder--4 { background: linear-gradient(160deg, #dcd8d2 0%, #c8c4bc 100%); }
.work__img-placeholder--5 { background: linear-gradient(160deg, #e4e0d8 0%, #d0ccc4 100%); }
.work__img-placeholder--6 { background: linear-gradient(160deg, #d4d0c8 0%, #c0bcb4 100%); }

.work__info {
  padding: var(--space-s) 0 var(--space-m);
}
.work__title {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 1.5;
}
.work__meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-top: 4px;
}

/* ── Process ── */
.process__list {
  margin-top: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-m);
  padding: var(--space-s) 0;
  border-bottom: 1px solid var(--color-border);
}
.process__item:first-child { border-top: 1px solid var(--color-border); }

.process__step {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-disabled);
  min-width: 32px;
}

.process__name {
  font-size: 15px;
  letter-spacing: 0.04em;
}

/* ── Result ── */
.result__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: start;
}

.result__left {}

.result__large-num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.result__large-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-top: var(--space-s);
}

.result__divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  margin: var(--space-m) 0;
}

.result__tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  margin-bottom: var(--space-m);
}

.result__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-m);
}

.result__body {
  font-size: 14px;
  line-height: 2.0;
  color: var(--color-secondary);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

/* ── Company ── */
.company__role {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  margin-bottom: var(--space-m);
}

.body-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  font-size: 14px;
  line-height: 2.0;
  color: var(--color-secondary);
  margin-bottom: var(--space-m);
}

.company__career {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-disabled);
  margin-bottom: var(--space-l);
  padding-bottom: var(--space-m);
  border-bottom: 1px solid var(--color-border);
}

.company__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.company__table th,
.company__table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}
.company__table th {
  width: 100px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
}
.company__table td {
  letter-spacing: 0.04em;
}

/* ── Link arrow ── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
  transition: border-color 0.2s, gap 0.2s;
}
.link-arrow:hover {
  border-color: var(--color-text);
  gap: 12px;
}

/* ── Contact ── */
.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-m);
}

.contact__body {
  font-size: 14px;
  line-height: 2.0;
  color: var(--color-secondary);
  margin-bottom: var(--space-l);
}

/* ── Contact Page ── */
.contact-page__hero {
  padding: 120px 0 var(--space-s);
}

.contact-page__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin: var(--space-xs) 0 var(--space-m);
}

.contact-page__lead {
  font-size: 14px;
  line-height: 2.0;
  color: var(--color-secondary);
  max-width: 560px;
}

.nav__link--active {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ── Contact Form ── */
.contact__form {
  text-align: left;
  margin-top: var(--space-l);
}

.form__group {
  margin-bottom: var(--space-m);
}

.form__label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  margin-bottom: 6px;
}

.form__required {
  color: #a0522d;
}

.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border, #d0ccc6);
  padding: 8px 0;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.form__input:focus {
  border-bottom-color: var(--color-text);
}

.form__input::placeholder {
  color: #b8b4ae;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__submit {
  margin-top: var(--space-m);
  cursor: pointer;
  background: none;
  font-family: var(--font-sans);
  width: 100%;
}

.form__thanks {
  margin-top: var(--space-m);
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-secondary);
  text-align: center;
}

.form__error {
  margin-top: var(--space-s);
  font-size: 13px;
  color: #a0522d;
  text-align: center;
}

.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.15em;
  padding: 12px 40px;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  transition: background 0.25s, color 0.25s;
}
.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0 var(--space-l);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-l);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}
.footer__nav a {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-secondary);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--color-text); }

.footer__copy {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-disabled);
}

/* ── Actual images ── */
.hero__img,
.hero__cell-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work__img-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.work__card:hover .work__img-photo {
  transform: scale(1.04);
}

.img-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.img-square {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* ── Fade in animation ── */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --pad-h: 32px; }

  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --pad-h: 20px;
    --space-xl: 64px;
    --space-xxl: 80px;
  }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 60vw 40vw 30vw;
  }
  .hero__cell--main { grid-column: 1; grid-row: 1; }
  .hero__cell--sub  { grid-row: 2; }
  .hero__cell--sub2 { grid-row: 3; }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .works__intro { flex-direction: column; align-items: flex-start; gap: var(--space-s); }
  .works__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }

  .result__wrap {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .footer__inner { flex-direction: column; gap: var(--space-l); }
  .footer__nav { text-align: left; }
}

/* ── Works grid card: fade with stagger ── */
.work__card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.work__card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Work hover overlay ── */
.work__img {
  position: relative;
  overflow: hidden;
}
.work__hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,44,44,0.72);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.work__card:hover .work__hover-overlay {
  opacity: 1;
}
.work__overlay-title {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.5;
}
.work__overlay-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ── Hero caption transition ── */
.hero__caption {
  will-change: transform;
}

/* ── Mobile menu slide in ── */
.mobile-menu {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.is-open {
  opacity: 1;
}
