:root {
  --ink: #151512;
  --muted: #6d6d66;
  --line: rgba(21, 21, 18, 0.18);
  --citron: #f4c400;
  --paper: #f3f1e9;
  --white: #fffefa;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-jp);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.kicker {
  margin: 0;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 11.2px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.mini-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.proposal-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 8px 25px rgba(21, 21, 18, 0.12);
  backdrop-filter: blur(10px);
}

.proposal-switcher a,
.proposal-switcher strong {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 99px;
  font-family: var(--font-en);
  font-size: 11px;
  text-decoration: none;
  place-items: center;
}

.proposal-switcher strong {
  background: var(--citron);
}

/* Proposal hub */
.proposal-hub {
  min-height: 100vh;
  padding: 0 5vw 6vw;
  background: #e8e8e2;
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  border-bottom: 1px solid var(--line);
}

.hub-header > p {
  margin: 0;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.hub-main {
  padding-top: clamp(64px, 8vw, 128px);
}

.hub-intro {
  display: grid;
  grid-template-columns: 0.45fr 1.8fr 0.75fr;
  gap: 5vw;
  align-items: end;
}

.hub-intro h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 89.6px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.15;
  word-break: keep-all;
}

.hub-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.proposal-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19.2px;
  margin-top: 80px;
}

.proposal-card {
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  transition: transform 0.25s ease;
}

.proposal-card:hover {
  transform: translateY(-7px);
}

.proposal-preview {
  position: relative;
  display: block;
  height: 270px;
  overflow: hidden;
  background: #dddcd6;
}

.proposal-preview span {
  position: absolute;
  display: block;
}

.proposal-a .mock-head {
  inset: 0 0 auto;
  height: 28px;
  background: white;
}

.proposal-a .mock-title {
  top: 72px;
  left: 25px;
  width: 47%;
  height: 58px;
  border-top: 14px solid var(--ink);
  border-bottom: 14px solid var(--ink);
}

.proposal-a .mock-copy {
  top: 150px;
  left: 25px;
  width: 35%;
  height: 3px;
  background: var(--ink);
  box-shadow: 0 10px var(--ink), 0 20px var(--ink);
}

.proposal-a .mock-grid {
  right: 20px;
  bottom: 20px;
  width: 38%;
  height: 108px;
  background: var(--citron);
}

.proposal-b .proposal-preview {
  background: #e8e5dc;
}

.proposal-b .mock-head {
  inset: 0 0 auto;
  height: 28px;
  background: white;
}

.proposal-b .mock-title {
  top: 60px;
  left: 25px;
  width: 42%;
  height: 50px;
  border-top: 12px solid var(--ink);
  border-bottom: 12px solid var(--ink);
}

.proposal-b .mock-copy {
  top: 130px;
  left: 25px;
  width: 30%;
  height: 3px;
  background: var(--ink);
  box-shadow: 0 10px var(--ink), 0 20px var(--ink);
}

.proposal-b .mock-images {
  right: 20px;
  bottom: 20px;
  width: 45%;
  height: 55px;
  background: var(--citron);
  box-shadow: 0 -65px #b8b6ae, 0 -130px #f8f7f2;
}

.proposal-meta {
  padding: 22.4px 8px 12.8px;
}

.proposal-meta p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proposal-meta h2 {
  margin: 11.2px 0 8px;
  font-size: 18.4px;
  font-weight: 600;
}

.proposal-meta span {
  color: var(--muted);
  font-size: 12px;
}

/* A: Compact */
.layout-compact {
  background: var(--paper);
}

.compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.compact-header .mini-brand {
  gap: 15.2px;
}

.compact-header .mini-brand img {
  width: 64px;
  height: 64px;
  filter: saturate(1.08) contrast(1.08);
}

.compact-header .mini-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.compact-header .mini-brand-copy strong {
  font-size: 20px;
}

.compact-header .mini-brand-copy small {
  margin-top: 4.8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.22em;
  white-space: nowrap;
}

.compact-header nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 2.8vw, 48px);
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
}

.compact-header nav a {
  text-decoration: none;
}

.compact-contact-link {
  padding: 14px 22px;
  background: var(--ink);
  color: white;
}

.compact-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 590px;
  padding: 4vw 5vw;
  border-bottom: 1px solid var(--line);
}

.compact-hero-copy {
  align-self: center;
  max-width: 650px;
  padding: 48px 5vw 48px 2vw;
}

.compact-hero h1 {
  margin: 22.4px 0 28.8px;
  font-size: clamp(60.8px, 6.3vw, 107.2px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.93;
}

.compact-hero mark {
  color: var(--ink);
  background: linear-gradient(transparent 64%, var(--citron) 0);
}

.compact-hero-copy > p:not(.kicker) {
  max-width: 520px;
  margin: 0 0 32px;
  color: var(--muted);
  line-height: 1.9;
}

.arrow-link {
  display: inline-flex;
  justify-content: space-between;
  width: 220px;
  padding: 12.8px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.compact-hero-image {
  position: relative;
  height: 500px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.compact-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.4);
}

.compact-hero-image figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 11.2px 16px;
  background: var(--citron);
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.compact-services {
  padding: 112px 5vw;
  background: var(--white);
}

.compact-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.compact-section-head h2 {
  margin: 0;
  font-size: clamp(35.2px, 4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.2;
  text-align: right;
}

.compact-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.compact-service-grid article {
  min-height: 390px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.compact-service-grid article:last-child {
  border-right: 0;
}

.service-letter {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 11px;
}

.compact-service-grid h3 {
  margin: 44.8px 0 25.6px;
  font-size: clamp(22.4px, 2vw, 32px);
  font-weight: 500;
}

.compact-service-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.compact-service-grid li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 11.2px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.compact-service-grid li strong {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 2;
}

.service-summary {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.small-links {
  display: flex;
  flex-wrap: wrap;
  gap: 11.2px 19.2px;
  margin-top: 24px;
}

.small-links a {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.compact-info {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding: 96px 7vw;
}

.compact-info h2 {
  margin: 22.4px 0 32px;
  font-size: clamp(35.2px, 4vw, 68.8px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.compact-info > div > p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.compact-info dl {
  margin: 0;
}

.compact-info dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 19.2px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.6;
}

.compact-info dl div:last-child {
  border-bottom: 1px solid var(--line);
}

.compact-info dt {
  color: var(--muted);
}

.compact-info dd {
  margin: 0;
}

.compact-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  padding: 64px 7vw;
  background: var(--ink);
  color: white;
}

.compact-cta h2 {
  margin: 16px 0 0;
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.compact-cta > a {
  display: flex;
  justify-content: space-between;
  min-width: 310px;
  padding: 19.2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--citron);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

/* B: Expanded compact */
.layout-expanded .compact-service-grid article {
  min-height: 0;
}

.service-image-placeholder,
.portrait-placeholder {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: flex-end;
  justify-content: space-between;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(21, 21, 18, 0.13) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(21, 21, 18, 0.13) 50%, transparent 50.3%),
    #e5e3dc;
}

.service-image-placeholder {
  aspect-ratio: 4 / 3;
  margin: 0 0 24px;
  padding: 16px;
}

.service-image-placeholder span,
.portrait-placeholder span {
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-image-placeholder strong {
  max-width: 55%;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.compact-info-expanded {
  grid-template-columns: 0.65fr 1.35fr;
}

.expanded-company-content {
  display: grid;
  gap: 40px;
}

.company-profile-placeholder {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) 1.28fr;
  gap: 32px;
  align-items: end;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 16px;
}

.bio-placeholder {
  padding: 32px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.bio-placeholder h3 {
  margin: 20px 0 16px;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 500;
}

.bio-placeholder > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .hub-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .proposal-cards {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .proposal-preview {
    height: 220px;
  }

  .compact-header nav a:not(.compact-contact-link) {
    display: none;
  }

  .compact-hero {
    grid-template-columns: 1fr;
    padding: 64px 6vw;
  }

  .compact-hero-copy {
    padding: 32px 0 64px;
  }

  .compact-hero-image {
    height: 390px;
  }

  .compact-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
  }

  .compact-section-head h2 {
    text-align: left;
  }

  .compact-service-grid {
    grid-template-columns: 1fr;
  }

  .compact-service-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .compact-info {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .compact-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 32px;
  }

  .compact-cta > a {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .mini-brand img {
    width: 40px;
    height: 40px;
  }

  .compact-header .mini-brand {
    gap: 11.2px;
  }

  .compact-header .mini-brand img {
    width: 54px;
    height: 54px;
  }

  .compact-header .mini-brand-copy strong {
    font-size: 16px;
  }

  .compact-header .mini-brand-copy small {
    font-size: 7px;
  }

  .compact-header {
    height: 82px;
    padding: 0 5vw;
  }

  .compact-contact-link {
    padding: 10px 14px;
    font-size: 12px;
  }

  .compact-hero h1 {
    font-size: 17vw;
  }

  .compact-services {
    padding: 80px 6vw;
  }

  .compact-info,
  .compact-cta {
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .compact-info dl div {
    grid-template-columns: 1fr;
    gap: 6.4px;
  }

  .company-profile-placeholder {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portrait-placeholder {
    width: min(100%, 320px);
  }

  .bio-placeholder {
    padding: 24px 0;
  }
}
