/* ========================================
   Design Tokens
======================================== */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f6f4;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e5e4e1;
  --color-cta: #1a1a1a;
  --color-cta-text: #ffffff;

  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --section-pad-pc: 120px;
  --section-pad-sp: 60px;
  --container: 1152px;
  --container-pad: 20px;
  --header-height: 88px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ========================================
   Reset / Base
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

/* Media frames: force cover fill (override global height:auto) */
.c-card__media img,
.philosophy__media img,
.work-single__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* ========================================
   Utilities / Shared
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 40px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: 0;
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
  border: 1px solid var(--color-cta);
}

.btn--primary:hover {
  opacity: 0.8;
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn--ghost:hover {
  background: var(--color-text);
  color: var(--color-cta-text);
}

/* Draw border CTA (hero / header) */
.btn--draw {
  position: relative;
  overflow: visible;
  border-color: transparent;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.btn--draw .btn__draw-label {
  position: relative;
  z-index: 1;
}

.btn--draw .btn__draw-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.btn--draw .btn__draw-line {
  position: absolute;
  background: var(--color-text);
  transition: transform 0.4s var(--ease);
}

/* 左上から: 上辺・左辺 */
.btn--draw .btn__draw-line--t {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
}

.btn--draw .btn__draw-line--l {
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: center top;
}

/* 右下から: 下辺・右辺 */
.btn--draw .btn__draw-line--b {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right center;
}

.btn--draw .btn__draw-line--r {
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: center bottom;
}

.btn--draw:hover {
  opacity: 1;
  background: var(--color-bg);
  color: var(--color-text);
  border-color: transparent;
}

.btn--draw:hover .btn__draw-line--t,
.btn--draw:hover .btn__draw-line--b {
  transform: scaleX(1);
}

.btn--draw:hover .btn__draw-line--r,
.btn--draw:hover .btn__draw-line--l {
  transform: scaleY(1);
}

@media (prefers-reduced-motion: reduce) {
  .btn--draw .btn__draw-line {
    display: none;
  }

  .btn--draw:hover .btn__draw-border {
    box-shadow: inset 0 0 0 1px var(--color-text);
  }
}

/* Common card component (services / works) */
.c-card {
  display: flex;
  flex-direction: column;
}

.c-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-text);
}

.c-card__text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text);
}

.c-card__meta {
  margin-top: auto;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.c-card__number {
  font-variant-numeric: tabular-nums;
}

.c-card__link {
  display: block;
  height: 100%;
}

.c-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
}

.c-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.c-card__link:hover .c-card__image {
  transform: scale(1.04);
}

.c-card__category {
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

/* ========================================
   Header
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--color-border);
}

.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: calc(var(--container) + 128px);
  height: 100%;
  margin: 0 auto;
  padding: 0 64px;
}

.header__logo {
  justify-self: start;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-width: 0;
}

.header__logo .custom-logo-link,
.footer__logo .custom-logo-link {
  display: inline-block;
  line-height: 0;
  max-width: 100%;
}

.header__logo .custom-logo,
.header__logo img,
.footer__logo .custom-logo,
.footer__logo img {
  display: block;
  width: auto;
  max-width: 160px;
  height: auto;
  max-height: 36px;
}

.header__nav {
  position: static;
  left: auto;
  transform: none;
  justify-self: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 28px;
}

.header__nav-link,
.header__nav-list a {
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: opacity 0.3s var(--ease);
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-list a:hover {
  opacity: 0.55;
}

.header__nav-cta {
  display: none;
}

.header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__cta {
  flex-shrink: 0;
  min-height: 40px;
  padding: 8px 24px;
  font-size: 13px;
}

.header__hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header__hamburger-line {
  display: block;
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}

.header__hamburger-line:nth-child(1) {
  top: 15px;
}

.header__hamburger-line:nth-child(2) {
  top: 21px;
}

.header__hamburger-line:nth-child(3) {
  top: 27px;
}

.header.is-menu-open .header__hamburger-line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.header.is-menu-open .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header.is-menu-open .header__hamburger-line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.header__overlay {
  display: none;
}

/* ========================================
   Hero
======================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height) + 40px) var(--container-pad) 120px;
  text-align: center;
  background: var(--color-bg);
}

.hero__inner {
  max-width: 765px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.hero__title-br {
  display: none;
}

.hero__lead {
  margin-top: 40px;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.hero__action {
  margin-top: 48px;
}

.hero__scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero__scroll-text {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: capitalize;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: var(--color-text);
  transform-origin: top center;
  animation: scroll-line 2s var(--ease) infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* ========================================
   Philosophy
======================================== */
.philosophy {
  background: var(--color-bg-alt);
  padding-top: var(--section-pad-pc);
}

.philosophy__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}

.philosophy__label {
  font-size: 13px;
  letter-spacing: 0.12em;
}

.philosophy__title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.philosophy__lead {
  margin-top: 24px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.philosophy__action {
  margin-top: 40px;
}

.philosophy__media {
  position: relative;
  margin-top: 64px;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 420px;
  overflow: hidden;
}

.philosophy__parallax {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.philosophy__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   Services
======================================== */
.services {
  padding: var(--section-pad-pc) 0;
  background: var(--color-bg);
}

.services__inner {
  max-width: calc(var(--container) + 128px);
  margin: 0 auto;
  padding: 0 64px;
}

.services__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.services__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.services__subtitle {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.c-card--service {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 400px;
  padding: 40px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

.c-card--service .c-card__title {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.c-card--service .c-card__text {
  margin-top: 16px;
}

.c-card--service .c-card__meta {
  margin-top: auto;
  padding-top: 40px;
}

/* 3 + 2 irregular grid */
.services__grid > .c-card--service:nth-child(1) {
  grid-column: 1 / 3;
}

.services__grid > .c-card--service:nth-child(2) {
  grid-column: 3 / 5;
}

.services__grid > .c-card--service:nth-child(3) {
  grid-column: 5 / 7;
}

.services__grid > .c-card--service:nth-child(4),
.services__grid > .c-card--service:nth-child(5) {
  min-height: 182px;
}

.services__grid > .c-card--service:nth-child(4) {
  grid-column: 1 / 4;
}

.services__grid > .c-card--service:nth-child(5) {
  grid-column: 4 / 7;
}

.services__grid > .c-card--service:nth-child(4) .c-card__meta,
.services__grid > .c-card--service:nth-child(5) .c-card__meta {
  text-align: right;
}

/* ========================================
   Works
======================================== */
.works {
  padding: var(--section-pad-pc) 0;
  background: var(--color-bg-alt);
}

.works__inner {
  max-width: calc(var(--container) + 128px);
  margin: 0 auto;
  padding: 0 64px;
}

.works__header {
  text-align: center;
}

.works__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.works__lead {
  margin-top: 16px;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.works__tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.works__tabs::-webkit-scrollbar {
  display: none;
}

.works__tab {
  position: relative;
  flex-shrink: 0;
  padding: 8px 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease);
}

.works__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.works__tab.is-active,
.works__tab:hover {
  color: var(--color-text);
}

.works__tab.is-active::after {
  transform: scaleX(1);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 31px;
  margin-top: 48px;
}

.c-card--work .c-card__body {
  margin-top: 16px;
}

.c-card--work .c-card__title {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.c-card--work .c-card__category {
  margin-top: 4px;
}

.c-card--work.is-hidden {
  display: none;
}

.works__empty {
  margin-top: 48px;
  text-align: center;
  color: var(--color-text-muted);
}

.works__pagination {
  margin-top: 64px;
  text-align: center;
}

.works__pagination .nav-links {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}

.works__pagination a,
.works__pagination span {
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ========================================
   About Page
======================================== */
.about {
  background: var(--color-bg);
}

.about-hero {
  padding: calc(var(--header-height) + 96px) 0 0;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.about-hero__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about-hero__title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.125;
  color: var(--color-text);
}

.about-hero__lead {
  max-width: 448px;
  margin-top: 32px;
  font-size: 18px;
  font-style: italic;
  line-height: 1.625;
  color: #46464b;
}

.about-hero__lead p {
  margin: 0;
}

.about-hero__lead p + p {
  margin-top: 0;
}

.about-hero__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 662 / 414;
  background: var(--color-bg-alt);
}

.about-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-profile {
  padding: 120px 0;
}

.about-profile__inner {
  width: min(662px, 100%);
  margin-left: auto;
  margin-right: max(var(--container-pad), calc((100% - var(--container)) / 2));
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.about-profile__header {
  padding: 8px 0 8px 34px;
  border-left: 2px solid var(--color-text);
}

.about-profile__name {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.about-profile__role {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.about-profile__bio {
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.8;
  color: #46464b;
}

.about-profile__bio p {
  margin: 0;
}

.about-profile__bio p + p {
  margin-top: 0;
}

.about-profile__timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.about-profile__timeline-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-profile__timeline-period {
  flex: 0 0 160px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.about-profile__timeline-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
}

.about-values {
  padding: 120px 0;
  background: #f3f3f4;
}

.about-values__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}

.about-values__title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 64px;
}

.about-values__card {
  padding: 33px;
  background: #f9f9fa;
  border: 1px solid #c7c6cb;
}

.about-values__card-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
}

.about-values__card-en {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  vertical-align: baseline;
}

.about-values__card-text {
  margin-top: 32px;
  font-size: 14px;
  line-height: 1.5;
  color: #46464b;
}

.about-values__card-text p {
  margin: 0;
}

.about-break {
  margin: 0;
  width: 100%;
  height: min(819px, 70vw);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.about-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========================================
   Fixed Page
======================================== */
.page-main {
  background: var(--color-bg);
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: calc(var(--header-height) + 64px) var(--container-pad) 64px;
  text-align: center;
  background-color: var(--color-bg-alt);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-hero--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero--has-image .page-hero__title,
.page-hero--has-image .page-hero__lead,
.page-hero--has-image .page-hero__breadcrumb,
.page-hero--has-image .page-hero__breadcrumb a {
  color: #fff;
}

.page-hero__breadcrumb {
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.page-hero__breadcrumb a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.page-hero__lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.page-article {
  padding: var(--section-pad-pc) 0;
}

.page-article__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.page-article__content {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.page-article__content > * + * {
  margin-top: 1.5em;
}

.page-article__content h2,
.page-article__content h3,
.page-article__content h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.page-article__content h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: 2.5em;
}

.page-article__content h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin-top: 2em;
}

.page-article__content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-article__content ul,
.page-article__content ol {
  padding-left: 1.5em;
}

.page-article__content ul {
  list-style: disc;
}

.page-article__content ol {
  list-style: decimal;
}

.page-article__content img,
.page-article__content figure {
  max-width: 100%;
  height: auto;
}

.page-article__content .alignwide,
.page-article__content .alignfull {
  max-width: 100%;
}

.page-article__content .wp-block-image {
  margin: 2em 0;
}

.work-single {
  padding: calc(var(--header-height) + var(--section-pad-pc)) 0 var(--section-pad-pc);
  background: var(--color-bg);
}

.work-single__header {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}

.work-single__category {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.work-single__title {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.work-single__lead {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.work-single__media {
  margin-top: 56px;
  width: 100%;
  max-height: 720px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
}

.work-single__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-single__body {
  max-width: 720px;
  margin: 56px auto 0;
  padding: 0 var(--container-pad);
}

.work-single__content {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.work-single__content > * + * {
  margin-top: 1.5em;
}

.work-single__content h2,
.work-single__content h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.work-single__content h2 {
  font-size: 24px;
}

.work-single__content h3 {
  font-size: 20px;
}

.work-single__content img {
  width: 100%;
  height: auto;
}

.work-single__detail {
  text-align: left;
}

.work-single__section + .work-single__section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.work-single__section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.work-single__section-body {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.work-single__section-body p {
  margin: 0;
}

.work-single__section-body p + p {
  margin-top: 1em;
}

.work-single__list {
  margin: 16px 0 0;
  padding-left: 1.25em;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.work-single__list li + li {
  margin-top: 0.35em;
}

.work-single__list--check {
  list-style: none;
  padding-left: 0;
}

.work-single__list--check li {
  position: relative;
  padding-left: 1.75em;
}

.work-single__list--check li::before {
  content: "";
  position: absolute;
  top: 0.32em;
  left: 0;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1px solid #b5b4b6;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%238a898c' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2l2.4 2.4 4.6-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.work-single__points {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.work-single__point-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.work-single__point-text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

.work-single__point-text p {
  margin: 0;
}

.work-single__spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.work-single__spec th,
.work-single__spec td {
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
}

.work-single__spec thead th {
  font-weight: 700;
  padding-top: 0;
}

.work-single__spec th:first-child,
.work-single__spec td:first-child {
  width: 38%;
  padding-right: 32px;
}

.work-single__spec tbody th {
  font-weight: 400;
}

.work-single__spec-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  word-break: break-all;
}

.work-single__spec-link:hover {
  opacity: 0.7;
}

.work-single__detail + .work-single__content {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.work-single__footer {
  margin-top: 72px;
  text-align: center;
}

@media (max-width: 768px) {
  .work-single {
    padding: calc(var(--header-height) + var(--section-pad-sp)) 0 var(--section-pad-sp);
  }

  .work-single__title {
    font-size: 26px;
  }

  .work-single__lead {
    margin-top: 16px;
    font-size: 14px;
  }

  .work-single__content h2 {
    font-size: 20px;
  }

  .work-single__content h3 {
    font-size: 18px;
  }

  .work-single__media {
    margin-top: 40px;
  }

  .work-single__body {
    margin-top: 40px;
  }

  .work-single__footer {
    margin-top: 56px;
  }
}

/* ========================================
   Values
======================================== */
.values {
  padding: var(--section-pad-pc) 0;
  background: var(--color-bg);
}

.values__inner {
  max-width: calc(var(--container) + 128px);
  margin: 0 auto;
  padding: 0 64px;
}

.values__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
}

.values__item {
  position: relative;
  padding: 0 32px;
  text-align: center;
}

.values__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 40px;
  background: var(--color-border);
  transform: translateY(-50%);
}

.values__item-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.values__item-text {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text);
}

/* ========================================
   Flow
======================================== */
.flow {
  padding: var(--section-pad-pc) 0;
  background: var(--color-bg-alt);
}

.flow__inner {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.flow__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
}

.flow__list {
  position: relative;
  margin-top: 64px;
}

.flow__list::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 17px;
  width: 1px;
  height: calc(100% - 36px);
  background: var(--color-border);
}

.flow__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.flow__item + .flow__item {
  margin-top: 48px;
}

.flow__number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-cta-text);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.flow__item-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  padding-top: 4px;
}

.flow__item-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
}

/* ========================================
   FAQ
======================================== */
.faq {
  padding: var(--section-pad-pc) 0;
  background: var(--color-bg);
}

.faq__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.faq__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
}

.faq__list {
  margin-top: 64px;
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__q-mark {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
}

.faq__q-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: left;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-text);
  transition: transform 0.3s var(--ease);
}

.faq__icon::before {
  width: 12px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 1px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.faq__item[open] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq__answer {
  padding: 0 0 24px 29px;
}

.faq__answer p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text-muted);
}

/* ========================================
   Contact
======================================== */
.contact {
  padding: var(--section-pad-pc) 0;
  background: var(--color-bg-alt);
}

.contact__inner {
  max-width: 576px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.contact__header {
  text-align: center;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.contact__lead {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.contact__form {
  margin-top: 48px;
}

.contact__field {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 32px;
}

.contact__field + .contact__field {
  margin-top: 32px;
}

.contact__field--textarea {
  align-items: start;
}

.contact__label {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact__input,
.contact__select,
.contact__textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.contact__input:focus,
.contact__select:focus,
.contact__textarea:focus {
  border-color: var(--color-text);
}

.contact__textarea {
  min-height: 114px;
  resize: vertical;
}

.contact__select-wrap {
  position: relative;
}

.contact__select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.contact__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.contact__submit {
  margin-top: 40px;
  text-align: center;
}

.contact__confirm-lead {
  margin-bottom: 32px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: center;
}

.contact__confirm-list {
  margin: 0;
}

.contact__confirm-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact__confirm-row:first-child {
  border-top: 1px solid var(--color-border);
}

.contact__confirm-row dt {
  font-size: 13px;
  letter-spacing: 0.04em;
}

.contact__confirm-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact__confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.contact-notice {
  max-width: 576px;
  margin: 24px auto 0;
  padding: 24px 16px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.contact-notice--sent {
  margin-top: 48px;
  padding: 40px 24px;
}

.contact__form.is-confirming .contact__step--input {
  display: none;
}

.contact__form.is-confirming .contact__step--confirm {
  display: block;
}

/* ========================================
   Footer
======================================== */
.footer {
  padding: 64px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: calc(var(--container) + 128px);
  margin: 0 auto;
  padding: 0 64px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer__copy {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: opacity 0.3s var(--ease);
}

.footer__links a:hover {
  opacity: 0.55;
}

.footer__sns {
  display: flex;
  gap: 24px;
}

.footer__sns a {
  display: block;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s var(--ease);
}

.footer__sns a:hover {
  opacity: 0.55;
}

.footer__sns img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ========================================
   Back to top
======================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: 0 8px 24px rgb(26 26 26 / 8%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.3s var(--ease),
    visibility 0.3s var(--ease),
    transform 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-cta);
  color: var(--color-cta-text);
  border-color: var(--color-cta);
}

.back-to-top__icon {
  display: block;
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
  .header__inner,
  .services__inner,
  .works__inner,
  .values__inner,
  .footer__inner {
    padding: 0 32px;
  }

  .header__nav-list {
    gap: 20px;
  }

  .values__item {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  /* SP: hamburger navigation */
  .header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header__nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    justify-self: stretch;
    z-index: 99;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    padding: 24px 20px 40px;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .header.is-menu-open .header__nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .header__nav-list > li {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .header__nav-list a {
    display: block;
    padding: 18px 4px;
    font-size: 15px;
    letter-spacing: 0.06em;
    white-space: normal;
  }

  .header__nav-cta {
    display: inline-flex;
    align-self: stretch;
    justify-content: center;
    margin-top: 28px;
    min-height: 52px;
  }

  .header__actions {
    gap: 8px;
  }

  .header__cta {
    display: none;
  }

  .header__hamburger {
    display: block;
  }

  .header__overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(26, 26, 26, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  body.is-menu-open .header__overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  .header__inner,
  .services__inner,
  .works__inner,
  .values__inner,
  .footer__inner {
    padding: 0 var(--container-pad);
  }

  .hero {
    padding-bottom: 100px;
  }

  .hero__title-br {
    display: block;
  }

  .page-hero {
    min-height: 240px;
    padding: calc(var(--header-height) + 40px) var(--container-pad) 48px;
  }

  .page-hero__title {
    font-size: 26px;
  }

  .page-hero__lead {
    margin-top: 16px;
    font-size: 14px;
  }

  .page-article {
    padding: var(--section-pad-sp) 0;
  }

  .about-hero {
    padding: calc(var(--header-height) + 48px) 0 0;
  }

  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-hero__media {
    order: -1;
    aspect-ratio: 350 / 438;
  }

  .about-hero__title {
    font-size: 40px;
  }

  .about-hero__lead {
    max-width: none;
    margin-top: 16px;
    font-size: 16px;
  }

  .about-profile {
    padding: 80px 0;
  }

  .about-profile__inner {
    width: 100%;
    margin-right: 0;
  }

  .about-profile__name {
    font-size: 32px;
  }

  .about-profile__bio {
    margin-top: 40px;
    font-size: 14px;
  }

  .about-profile__timeline {
    margin-top: 40px;
  }

  .about-profile__timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .about-profile__timeline-period {
    flex: none;
  }

  .about-profile__timeline-text {
    font-size: 14px;
  }

  .about-values {
    padding: 80px 0;
  }

  .about-values__inner {
    padding: 0 var(--container-pad);
  }

  .about-values__title {
    font-size: 32px;
  }

  .about-values__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }

  .about-values__card-title {
    font-size: 24px;
  }

  .about-break {
    height: min(307px, 80vw);
  }

  .about-break img {
    object-position: 0 50%;
  }

  .hero__lead {
    margin-top: 32px;
  }

  .hero__action {
    margin-top: 40px;
  }

  .philosophy {
    padding-top: var(--section-pad-sp);
  }

  .philosophy__lead {
    text-align: left;
  }

  .philosophy__lead br {
    display: none;
  }

  .philosophy__action {
    margin-top: 32px;
  }

  .philosophy__media {
    margin-top: 48px;
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }

  .services,
  .works,
  .values,
  .flow,
  .faq,
  .contact {
    padding: var(--section-pad-sp) 0;
  }

  .services__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .services__grid > .c-card--service:nth-child(n) {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .c-card--service {
    min-height: auto;
    padding: 32px 24px;
  }

  .c-card--service .c-card__meta {
    padding-top: 32px;
  }

  .services__grid > .c-card--service:nth-child(4) .c-card__meta,
  .services__grid > .c-card--service:nth-child(5) .c-card__meta {
    text-align: left;
  }

  .works__tabs {
    justify-content: flex-start;
    gap: 24px;
    margin-top: 32px;
    padding: 0 4px 4px;
  }

  .works__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 32px;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 48px;
  }

  .values__item {
    padding: 0;
  }

  .values__item:not(:last-child)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -20px;
    left: 50%;
    width: 30%;
    height: 1px;
    transform: translateX(-50%);
  }

  .flow__list {
    margin-top: 48px;
  }

  .flow__item + .flow__item {
    margin-top: 40px;
  }

  .flow__item {
    gap: 20px;
  }

  .faq__list {
    margin-top: 48px;
  }

  .contact__field {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact__field + .contact__field {
    margin-top: 24px;
  }

  .contact__confirm-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact__confirm-actions {
    flex-direction: column;
  }

  .contact__confirm-actions .btn {
    width: 100%;
  }

  .footer {
    padding: 48px 0;
  }

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

  .footer__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    letter-spacing: 0.04em;
  }

  .btn {
    min-height: 52px;
    padding: 14px 32px;
  }
}
