:root {
  --bg: #ecebe7;
  --ink: #2b2b2b;
  --sub: #777;
  --line: #cfcdc7;
  --side: 190px;
  --en: "Jost", sans-serif;
  --ja: "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--ja); font-weight: 300; font-size: 14px; line-height: 2; letter-spacing: .06em; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* 画像プレースホルダー（本番は写真に差し替え） */
.ph { background-size: cover; background-position: center; }
.ph--a { background-image: linear-gradient(135deg, #8d8a84, #c9c5bd 60%, #e6e3dc); }
.ph--b { background-image: linear-gradient(160deg, #4f4b45, #8e877c 55%, #bdb6aa); }
.ph--c { background-image: linear-gradient(120deg, #b9b4ab, #6e6a63 70%, #3d3a36); }

/* loading */
.loading { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; font-family: var(--en); font-size: 11px; letter-spacing: .2em; transition: opacity .8s, visibility .8s; }
.loading.is-done { opacity: 0; visibility: hidden; }

/* header */
.header__logo { position: fixed; top: 22px; left: 40px; z-index: 30; font-family: var(--en); font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: 0; opacity: 0; transition: opacity .4s; }
.header__logo small { display: block; font-size: 7px; letter-spacing: .4em; margin-top: 2px; }
body.is-scrolled .header__logo { opacity: 1; }
.gnav { position: fixed; top: 96px; left: 40px; z-index: 30; }
.gnav a { display: block; position: relative; font-family: var(--en); font-size: 11px; font-weight: 400; letter-spacing: .08em; line-height: 2.4; padding-left: 0; transition: padding .3s; }
.gnav a.is-current { padding-left: 10px; }
.gnav a.is-current::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translateY(-50%); }
.header__contact { position: fixed; top: 22px; right: 40px; z-index: 30; font-family: var(--en); font-size: 11px; letter-spacing: .1em; border: 1px solid currentColor; border-radius: 50%; padding: 4px 24px; transition: background .3s; }
.header__contact:hover { background: rgba(255,255,255,.4); }
body:not(.is-scrolled) .gnav, body:not(.is-scrolled) .header__contact { color: #fff; }
.menu-btn { display: none; }

/* main visual */
.mv { position: relative; height: 100vh; min-height: 560px; overflow: hidden; color: #fff; }
.mv__slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity 1.6s, transform 7s linear; }
.mv__slide.is-active { opacity: 1; transform: scale(1); }
.mv__slides::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.mv__center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; }
.mv__catch { font-size: 11px; font-weight: 500; letter-spacing: .1em; }
.mv__logo { font-family: var(--en); font-weight: 400; font-size: clamp(64px, 11vw, 120px); line-height: 1; letter-spacing: 0; margin: 4px 0 8px; }
.mv__from { font-family: var(--en); font-size: 10px; letter-spacing: .1em; }
.mv__from span { letter-spacing: .5em; margin-left: .3em; }
.mv__works { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 2; text-align: center; font-family: var(--en); }
.mv__works li { display: none; }
.mv__works li.is-active { display: block; }
.mv__works b { display: block; font-weight: 400; font-size: 16px; letter-spacing: .12em; }
.mv__works span { font-size: 10px; }
.mv__scroll { position: absolute; right: 40px; bottom: 40px; z-index: 2; font-family: var(--en); font-size: 10px; letter-spacing: .2em; writing-mode: vertical-rl; }

/* section common */
.sec { margin-left: var(--side); padding: 140px 60px 40px 0; max-width: calc(var(--side) + 1000px); }
.sec__title { font-family: var(--en); font-weight: 400; font-size: 22px; letter-spacing: .06em; margin-bottom: 40px; }
.sec__title span { font-family: var(--ja); font-size: 10px; margin-left: 12px; color: var(--sub); vertical-align: middle; }
.sec__intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.sec__lead { font-size: 20px; font-weight: 400; line-height: 1.8; }
.sec__text p + p { margin-top: 1.4em; }

/* works list */
.works { border-top: 1px solid var(--line); }
.works__item { position: relative; border-bottom: 1px solid var(--line); }
.works__item a { display: flex; justify-content: space-between; align-items: center; padding: 30px 0; font-family: var(--en); }
.works__item b { display: block; font-size: 16px; font-weight: 400; letter-spacing: .1em; line-height: 1.4; }
.works__item span { font-size: 10px; color: var(--sub); }
.works__item i { font-style: normal; transition: transform .3s; }
.works__item:hover i { transform: translateX(6px); }
.works__thumb { position: absolute; right: 80px; top: 50%; width: 220px; aspect-ratio: 4/3; transform: translateY(-50%) scale(.9); opacity: 0; pointer-events: none; transition: .4s; }
.works__item:hover .works__thumb { opacity: 1; transform: translateY(-50%) scale(1); }

/* notes */
.notes { margin-top: 60px; position: relative; }
.notes__label { position: absolute; left: -28px; top: 0; writing-mode: vertical-rl; font-family: var(--en); font-size: 10px; color: var(--sub); }
.notes__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note__img { aspect-ratio: 4/3; margin-bottom: 12px; transition: opacity .3s; }
.note:hover .note__img { opacity: .8; }
.note__cat { display: inline-block; font-family: var(--en); font-size: 10px; background: #dddbd5; border-radius: 3px; padding: 0 8px; }
.note__title { font-weight: 400; line-height: 1.7; margin: 6px 0; }
.note__tags { font-size: 10px; color: var(--sub); }
.more { display: inline-block; margin-top: 40px; font-size: 12px; border-bottom: 1px solid currentColor; }

/* service */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.services li { padding: 40px 30px 50px 0; border-bottom: 1px solid var(--line); }
.services li:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.services svg { width: 60px; height: 60px; fill: none; stroke: var(--ink); stroke-width: 1; margin-bottom: 20px; }
.services circle[r="3"] { fill: var(--ink); }
.services h3 { font-family: var(--en); font-weight: 400; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.services h3 span { display: block; font-family: var(--ja); font-size: 10px; color: var(--sub); }

/* price */
.price__cap { font-family: var(--en); font-weight: 400; font-size: 13px; border-left: 3px solid var(--ink); padding-left: 10px; margin-bottom: 20px; }
.price__cap span { font-family: var(--ja); font-size: 10px; color: var(--sub); margin-left: 8px; }
.price { width: 100%; border-collapse: collapse; }
.price th, .price td { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 24px; text-align: left; font-weight: 400; }
.price th { font-family: var(--en); background: #e2e0db; width: 140px; text-align: center; }
.price__yen { text-align: right !important; font-size: 18px; white-space: nowrap; }
.profile__text + .profile__text { margin-top: 1.4em; }
.price__notes { margin-top: 20px; font-size: 12px; color: var(--sub); }

/* flow */
.flow { counter-reset: f; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 70px 260px 1fr; gap: 20px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.flow li::before { content: counter(f, decimal-leading-zero); font-family: var(--en); font-size: 28px; font-weight: 300; }
.flow h3 { font-weight: 400; font-size: 16px; }
.flow h3 span { display: block; font-family: var(--en); font-size: 10px; color: var(--sub); }

/* profile */
.profile { display: grid; grid-template-columns: 300px 1fr; gap: 60px; }
.profile__img { aspect-ratio: 3/4; }
.profile__name { font-size: 22px; font-weight: 400; }
.profile__name span { font-family: var(--en); font-size: 12px; margin-left: 12px; color: var(--sub); }
.profile__role { font-family: var(--en); font-size: 11px; color: var(--sub); margin: 10px 0 24px; line-height: 1.8; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 36px; position: relative; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; font-family: var(--en); font-size: 16px; }
.faq summary::after { content: "+"; position: absolute; right: 8px; font-family: var(--en); font-size: 18px; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 28px 36px; color: #555; }

/* contact */
.contact { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.contact__btn { display: inline-flex; gap: 20px; align-items: center; border: 1px solid var(--ink); border-radius: 999px; padding: 18px 48px; font-weight: 400; transition: .3s; }
.contact__btn:hover { background: var(--ink); color: var(--bg); }

/* footer */
.footer { margin-left: var(--side); padding: 120px 60px 40px 0; display: flex; justify-content: space-between; align-items: flex-end; }
.footer__logo { font-family: var(--en); font-size: 48px; line-height: 1; letter-spacing: 0; }
.footer__logo small { display: block; font-size: 8px; letter-spacing: .4em; }
.footer__copy { font-family: var(--en); font-size: 10px; color: var(--sub); }

/* fade in */
.js-fade { opacity: 0; transform: translateY(24px); transition: opacity 1s, transform 1s; }
.js-fade.is-in { opacity: 1; transform: none; }

/* ---------- SP ---------- */
@media (max-width: 900px) {
  :root { --side: 0px; }
  body { font-size: 13px; }
  .header__logo { left: 16px; top: 16px; font-size: 26px; }
  .header__contact { display: none; }
  .menu-btn { display: block; position: fixed; top: 14px; right: 12px; z-index: 40; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; }
  body:not(.is-scrolled) .menu-btn { color: #fff; }
  .menu-btn span { display: block; width: 24px; height: 1px; background: currentColor; margin: 7px auto; transition: .3s; }
  body.is-menu .menu-btn { color: var(--ink); }
  body.is-menu .menu-btn span:first-child { transform: translateY(4px) rotate(30deg); }
  body.is-menu .menu-btn span:last-child { transform: translateY(-4px) rotate(-30deg); }
  .gnav { inset: 0; top: 0; left: 0; background: var(--bg); color: var(--ink) !important; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .4s; }
  body.is-menu .gnav { opacity: 1; visibility: visible; }
  .gnav a { font-size: 16px; line-height: 2.6; }
  .sec { padding: 90px 16px 20px; }
  .sec__intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 50px; }
  .sec__lead { font-size: 18px; }
  .works__thumb { display: none; }
  .notes__label { display: none; }
  .notes__list { grid-template-columns: 1fr; gap: 36px; }
  .services { grid-template-columns: 1fr; }
  .services li, .services li:not(:nth-child(3n+1)) { padding: 30px 0; border-left: 0; }
  .price th, .price td { display: block; width: 100%; border: 0; padding: 8px 0; }
  .price tr { display: block; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .price th { background: none; text-align: left; }
  .price__yen { text-align: left !important; }
  .flow li { grid-template-columns: 50px 1fr; }
  .flow li p { grid-column: 2; }
  .profile { grid-template-columns: 1fr; gap: 30px; }
  .profile__img { max-width: 260px; }
  .contact__btn { width: 100%; justify-content: center; }
  .footer { padding: 80px 16px 30px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .mv__scroll { right: 16px; }
}
