:root {
  --paper: #f5f1e7;
  --paper-warm: #efe9db;
  --ink: #2b2721;
  --ink-soft: #5c5544;
  --ink-faint: #8a836e;
  --terracotta: #b0563a;
  --terracotta-deep: #8f4128;
  --terracotta-lift: #c96f4e;
  --olive: #6b6f52;
  --olive-deep: #4c503a;
  --sand: #d9cfba;
  --hairline: rgba(43, 39, 33, 0.16);
  --serif-jp: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --serif-en: 'Cormorant Garamond', 'Shippori Mincho', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif-jp);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  font-size: 15px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

/* ============ Header ============ */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 34px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.site-head.scrolled {
  background: rgba(245, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--hairline);
}
.head-logo { display: inline-flex; align-items: center; }
.head-logo img { height: 34px; width: auto; display: block; }
.head-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  letter-spacing: 0.12em;
}
.head-nav a { position: relative; padding: 4px 0; }
.head-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.head-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 22px !important;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav-cta:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--paper); }
.nav-cta::after { display: none; }

.head-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 22px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}
.menu-btn span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(4.25px) rotate(24deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-4.25px) rotate(-24deg); }

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 34px;
  font-size: 18px;
  letter-spacing: 0.2em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 90px 24px 70px;
}
.hero-stroke {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 118vw);
  opacity: 0;
  animation: strokeIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
@keyframes strokeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.st-under { fill: var(--terracotta-deep); opacity: 0.55; }
.st-main { fill: var(--terracotta); opacity: 0.94; }
.st-dry1, .st-dry2, .st-dry3, .st-dry4 {
  fill: none;
  stroke-linecap: round;
}
.st-dry1 { stroke: var(--terracotta-deep); stroke-width: 3.5; opacity: 0.42; }
.st-dry2 { stroke: var(--terracotta-lift); stroke-width: 2.6; opacity: 0.5; }
.st-dry3 { stroke: var(--terracotta-lift); stroke-width: 2; opacity: 0.45; }
.st-dry4 { stroke: var(--terracotta-deep); stroke-width: 1.8; opacity: 0.32; }
.st-flick1, .st-flick2 {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 7;
  stroke-linecap: round;
  opacity: 0.35;
}
.st-dot { fill: var(--terracotta); opacity: 0.45; }

.hero-inner {
  position: relative;
  text-align: center;
  margin-top: clamp(150px, 28vh, 250px);
  opacity: 0;
  animation: riseIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--ink-faint);
  margin-bottom: 26px;
}
.hero-head {
  font-size: clamp(30px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.55;
  color: var(--ink);
}
.hero-tagline {
  margin-top: 26px;
  font-size: clamp(15px, 2.2vw, 19px);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--ink-soft);
}
.hero-sub {
  margin-top: 20px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--ink-faint);
}
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 56px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--terracotta);
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

/* ============ Mood (間奏) ============ */
.mood {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(28px, 6vw, 90px);
  margin-top: clamp(30px, 6vw, 80px);
  overflow: hidden;
}
.mood-photo {
  flex: 0 0 auto;
  width: min(58vw, 660px);
  line-height: 0;
}
.mood-photo img {
  width: 100%;
  height: clamp(380px, 58vw, 640px);
  object-fit: cover;
  -webkit-mask-image: radial-gradient(115% 96% at 12% 48%, #000 42%, rgba(0,0,0,0.55) 62%, transparent 82%);
  mask-image: radial-gradient(115% 96% at 12% 48%, #000 42%, rgba(0,0,0,0.55) 62%, transparent 82%);
}
.mood-line {
  writing-mode: vertical-rl;
  font-size: clamp(17px, 2.4vw, 23px);
  letter-spacing: 0.4em;
  line-height: 2.4;
  color: var(--ink-soft);
}

/* ============ Sections ============ */
.sec {
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(90px, 13vw, 150px) 30px 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0 26px;
}
.sec-label {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
}
.sec-num {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--terracotta);
}
.v-text {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--ink-faint);
}
.sec-label::after {
  content: "";
  width: 1px;
  height: 60px;
  background: var(--hairline);
}
.sec-title {
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.6;
  margin-bottom: 30px;
}
.sec-lead {
  color: var(--ink-soft);
  margin-bottom: 54px;
  max-width: 560px;
}
.sp { display: none; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.shown { opacity: 1; transform: translateY(0); }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p + p { margin-top: 1.6em; }
.about-quote {
  margin-top: 44px;
  padding-left: 24px;
  border-left: 2px solid var(--terracotta);
  color: var(--ink-soft);
  font-size: 16.5px;
  letter-spacing: 0.08em;
  line-height: 2.1;
}
.about-card {
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  padding: 40px 34px 34px;
  text-align: center;
  transition-delay: 0.15s;
}
.card-mark {
  margin: 0 auto 22px;
  line-height: 0;
}
.card-mark img {
  width: 96px;
  height: auto;
  margin: 0 auto;
}
.card-role {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-faint);
}
.card-name {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.3em;
  margin: 8px 0 26px;
}
.card-facts {
  text-align: left;
  border-top: 1px solid var(--hairline);
}
.card-facts > div {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.card-facts dt { color: var(--ink-faint); letter-spacing: 0.14em; }
.card-facts dd { color: var(--ink-soft); }

/* ============ Services ============ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.svc {
  background: var(--paper);
  padding: 44px 38px 40px;
  position: relative;
}
.svc-num {
  font-family: var(--serif-en);
  font-size: 14px;
  color: var(--terracotta);
  letter-spacing: 0.1em;
}
.svc h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.16em;
  margin: 14px 0 16px;
}
.svc p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 2.1;
}
.svc-porters {
  grid-column: 1 / -1;
  background: var(--olive);
  color: var(--paper);
  padding: 54px 48px;
  overflow: hidden;
}
.svc-porters h3 {
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.svc-porters p {
  color: rgba(245, 241, 231, 0.82);
  max-width: 620px;
}
.svc-porters-logo {
  width: 150px;
  height: auto;
  margin-bottom: 22px;
  opacity: 0.95;
}
.svc-badge {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  border: 1px solid rgba(245, 241, 231, 0.5);
  padding: 4px 14px;
  border-radius: 999px;
  color: rgba(245, 241, 231, 0.85);
  font-weight: 400;
}

/* ============ Palette ============ */
.palette { margin-top: 58px; }
.palette-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.palette-title {
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--ink);
}
.palette-link {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--terracotta-deep);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.palette-link:hover { color: var(--terracotta); border-color: var(--terracotta); }
.swatches {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
}
.swatches li { display: flex; flex-direction: column; gap: 11px; }
.sw {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 2px;
  border: 0.5px solid rgba(43, 39, 33, 0.12);
}
.sw-name {
  font-family: var(--serif-en);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.palette-note {
  margin-top: 24px;
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.9;
}

/* ============ Flow ============ */
.flow-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  counter-reset: flow;
  margin-top: 50px;
}
.flow-list li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.flow-list li:nth-child(2) { transition-delay: 0.1s; }
.flow-list li:nth-child(3) { transition-delay: 0.2s; }
.flow-list li:nth-child(4) { transition-delay: 0.3s; }
.flow-list li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 1px;
  background: var(--terracotta);
}
.flow-step {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--terracotta);
}
.flow-list h3 {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 10px 0 12px;
}
.flow-list p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 2;
}

/* ============ Feature band ============ */
.feature-band {
  position: relative;
  width: 100%;
  margin-top: clamp(90px, 13vw, 150px);
  line-height: 0;
}
.feature-band img {
  width: 100%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
}
.feature-cap {
  position: absolute;
  right: 20px;
  bottom: 16px;
  font-family: var(--serif-en);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(20, 16, 12, 0.5);
}

.feature-band + .gallery { padding-top: clamp(52px, 8vw, 96px); }

/* ============ Gallery ============ */
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.g-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--sand);
}
.g-tile:nth-child(2) { transition-delay: 0.08s; }
.g-tile:nth-child(3) { transition-delay: 0.16s; }
.g-tile:nth-child(4) { transition-delay: 0.08s; }
.g-tile:nth-child(5) { transition-delay: 0.16s; }
.g-tile:nth-child(6) { transition-delay: 0.24s; }
.g-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.g-tile:hover img { transform: scale(1.045); }
.g-tile figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 34px 16px 12px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: #fff;
  background: linear-gradient(to top, rgba(30, 26, 20, 0.55), transparent);
  z-index: 2;
}
/* 写真が無い間の"塗り見本"プレースホルダー */
.t-plaster1 { background: radial-gradient(130% 110% at 25% 20%, #b7b3a8, #918d80 55%, #7d7a6e); }
.t-plaster2 { background: radial-gradient(130% 110% at 70% 25%, #cfc3b4, #b0a290 60%, #97896f); }
.t-wood1 { background: linear-gradient(115deg, #c9a778, #b28d5e 48%, #a37f52); }
.t-plaster3 { background: radial-gradient(130% 120% at 30% 70%, #97a3a4, #75858a 60%, #5d6f76); }
.t-wood2 { background: linear-gradient(100deg, #b98f62, #9c7448 55%, #8a663e); }
.t-plaster4 { background: radial-gradient(140% 110% at 60% 20%, #efe9dc, #d9cfbc 65%, #c4b79e); }

.g-more {
  margin-top: 46px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-line-out {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 15px 34px;
  font-size: 13px;
  letter-spacing: 0.14em;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-line-out:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.c-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--hairline);
  background: var(--paper-warm);
  padding: 30px 24px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease;
}
.c-card:nth-child(2) { transition-delay: 0.08s; }
.c-card:nth-child(3) { transition-delay: 0.16s; }
.c-card:nth-child(4) { transition-delay: 0.24s; }
.c-card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta);
  background: var(--paper);
}
.c-kind {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--terracotta);
}
.c-main {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.c-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

/* ============ Company ============ */
.co-table {
  border-top: 1px solid var(--hairline);
  max-width: 720px;
}
.co-table > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.co-table dt {
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}
.co-table dd { color: var(--ink-soft); }
.co-table dd a { border-bottom: 1px solid var(--hairline); }

/* ============ Footer ============ */
.site-foot {
  margin-top: clamp(110px, 15vw, 180px);
  position: relative;
}
.foot-stroke {
  color: var(--ink);
  line-height: 0;
}
.foot-stroke svg { width: 100%; height: clamp(40px, 7vw, 90px); }
.foot-body {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 30px 24px 54px;
}
.foot-word {
  font-size: clamp(16px, 2.6vw, 20px);
  letter-spacing: 0.24em;
  line-height: 2.2;
}
.foot-logo {
  margin: 40px 0 18px;
  line-height: 0;
}
.foot-logo img {
  width: 132px;
  height: auto;
  margin: 0 auto;
  opacity: 0.92;
}
.foot-copy {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: rgba(245, 241, 231, 0.45);
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .head-nav { display: none; }
  .menu-btn { display: flex; }
  .drawer { display: flex; }
  .site-head { padding: 14px 20px; }
  .head-social { margin-left: auto; margin-right: 6px; gap: 8px; }
  .social-btn { width: 34px; height: 34px; }
  .social-btn svg { width: 16px; height: 16px; }

  .sec {
    grid-template-columns: 1fr;
    padding-left: 24px;
    padding-right: 24px;
  }
  .sec-label {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding-top: 0;
  }
  .v-text {
    writing-mode: horizontal-tb;
    letter-spacing: 0.3em;
  }
  .sec-label::after { height: 1px; width: 46px; }

  .sp { display: inline; }

  .mood { gap: 20px; margin-top: 10px; }
  .mood-photo { width: 74vw; }
  .mood-photo img { height: 88vw; }
  .mood-line { font-size: 15px; letter-spacing: 0.3em; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc { padding: 36px 28px 34px; }
  .svc-porters { padding: 44px 28px; }
  .flow-list { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .g-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .co-table > div { grid-template-columns: 92px 1fr; gap: 14px; }

  .hero { padding-top: 70px; }
  .hero-stroke { width: 96vw; top: 12%; }
  .hero-inner { margin-top: clamp(50px, 14vh, 120px); }
  .hero-sub span { display: block; line-height: 2.1; }
  .sub-dot { display: none !important; }
}

@media (max-width: 480px) {
  .flow-list { grid-template-columns: 1fr; }
  .g-grid { grid-template-columns: 1fr 1fr; }
  .hero-tagline { letter-spacing: 0.3em; text-indent: 0.3em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-stroke, .hero-inner { animation-duration: 0.01s; animation-delay: 0s; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-scroll span::after { animation: none; }
}
