:root {
  --ink: #1b1d24;
  --ink-soft: #4a4d57;
  --paper: #faf8f5;
  --paper-2: #f1ede7;
  --night: #121318;
  --lotus: #d8789a;
  --lotus-deep: #b85579;
  --line: #e2ddd5;
  --serif: "Shippori Mincho", serif;
  --latin: "Cormorant Garamond", serif;
  --sans: "Noto Sans JP", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .03em;
}
img { max-width: 100%; display: block; }
h1, h2, h3, .hero-lead, .section-lead, .credit-what, .credit-role, .work-name { text-wrap: balance; }
a { color: inherit; }
.pc { display: none; }
.nb { display: inline-block; }
@media (min-width: 768px) { .pc { display: inline; } }

/* ボタン */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--lotus-deep);
  color: #fff;
  border: 1px solid var(--lotus-deep);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--lotus); border-color: var(--lotus); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-small { padding: 8px 20px; font-size: 13px; }

/* ヘッダー */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 48px);
  color: #fff;
  transition: background .3s, color .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(250,248,245,.94);
  color: var(--ink);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.logo {
  font-family: var(--latin);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a:not(.btn) { text-decoration: none; opacity: .9; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle { display: none; }

@media (max-width: 767px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: 0; padding: 8px; cursor: pointer; color: inherit;
  }
  .nav-toggle span { width: 24px; height: 2px; background: currentColor; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 56px;
    flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav .btn { border-radius: 0; text-align: center; }
}

/* 最初の画面 */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  color: #fff;
  background: var(--night);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -4%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.5) blur(2px); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(18,19,24,.55) 0%, rgba(18,19,24,.88) 75%);
}
@keyframes drift { from { transform: scale(1.04) translateX(-1%); } to { transform: scale(1.1) translateX(1%); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
@media (max-width: 767px) {
  .hero-bg { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
}
.hero-inner { position: relative; z-index: 1; text-align: center; padding: 120px 20px 80px; }
.eyebrow {
  font-family: var(--latin);
  font-size: 15px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--lotus); margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.4; font-weight: 700; letter-spacing: .08em;
  margin: 0 0 24px;
}
.hero-lead { font-size: clamp(14px, 1.8vw, 17px); opacity: .9; margin: 0 0 40px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 看板 */
.credits { background: var(--night); color: #fff; padding: 28px 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.credits ul {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.credits li { display: flex; flex-direction: column; text-align: center; padding: 0 8px; border-left: 1px solid rgba(255,255,255,.15); }
.credits li:first-child { border-left: 0; }
.credit-what { font-family: var(--serif); font-size: 15px; font-weight: 700; }
.credit-role { font-size: 12px; opacity: .7; }
.credits-note { text-align: center; font-size: 11px; opacity: .5; margin: 16px 0 0; }
@media (max-width: 767px) {
  .eyebrow { letter-spacing: .15em; font-size: 13px; }
  .credits ul { grid-template-columns: 1fr; gap: 0; }
  .credits li { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0; }
  .credits li:first-child { border-top: 0; }
}

/* セクション共通 */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 120px) 16px; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(24px, 3.4vw, 34px); margin: 0; letter-spacing: .08em; }
.section-lead { color: var(--ink-soft); margin: 16px 0 0; }

/* 2つの入口 */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.field { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.field img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.field-body { padding: 28px 28px 32px; }
.field-tag { font-family: var(--latin); color: var(--lotus-deep); letter-spacing: .15em; margin: 0; }
.field h3 { font-family: var(--serif); font-size: 22px; margin: 4px 0 12px; }
.field p { margin: 0 0 16px; color: var(--ink-soft); }
.field-list { margin: 0; padding-left: 1.2em; font-size: 14px; }
@media (max-width: 767px) { .fields { grid-template-columns: 1fr; } }

/* 強み */
.strengths-wrap { max-width: none; background: var(--paper-2); }
.strengths {
  list-style: none; padding: 0; margin: 0 auto; max-width: var(--wrap);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.strengths .num { font-family: var(--latin); font-size: 40px; color: var(--lotus); line-height: 1; }
.strengths h3 { font-family: var(--serif); font-size: 20px; margin: 12px 0; }
.strengths p { margin: 0; color: var(--ink-soft); font-size: 14px; }
@media (max-width: 767px) { .strengths { grid-template-columns: 1fr; gap: 32px; } }

/* 実績 */
.works-title {
  font-family: var(--serif); font-size: 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 56px 0 24px;
}
.works-title:first-of-type { margin-top: 0; }
.works-title small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.works-featured { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
.works-featured .work-name { font-size: 17px; }
@media (max-width: 960px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; } }
.work {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
}
.thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #ddd; margin-bottom: 8px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: rgba(18,19,24,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center / 26px no-repeat;
  opacity: 0; transition: opacity .3s;
}
.work:hover .thumb img, .work:focus-visible .thumb img { transform: scale(1.04); }
.work:hover .thumb::after, .work:focus-visible .thumb::after { opacity: 1; }
.work-name { font-weight: 700; font-size: 15px; line-height: 1.6; }
.work-role { font-size: 12px; color: var(--ink-soft); }
.text-credits { margin: 48px 0 0; padding: 24px 28px; background: #fff; border: 1px solid var(--line); list-style: none; font-size: 14px; }
.text-credits li { padding: 6px 0; }
.text-credits b { margin-right: .8em; font-family: var(--serif); }

/* 流れ */
.flow-wrap { max-width: none; background: var(--paper-2); }
.flow {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step;
}
.flow li { background: #fff; padding: 24px; border-radius: 4px; counter-increment: step; }
.flow li::before { content: "STEP " counter(step); font-family: var(--latin); color: var(--lotus-deep); letter-spacing: .15em; font-size: 14px; }
.flow h3 { font-family: var(--serif); margin: 4px 0 8px; font-size: 18px; }
.flow p { margin: 0; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }

/* 代表 */
.about { display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: start; }
.about-photo {
  aspect-ratio: 4 / 5; background: var(--paper-2); border: 1px dashed var(--line);
  display: grid; place-items: center; color: var(--ink-soft); font-size: 13px;
}
.about h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 16px; }
.about-body > p:not(.eyebrow) { color: var(--ink-soft); }
.company { display: grid; grid-template-columns: 6em 1fr; gap: 8px 16px; margin: 28px 0 0; font-size: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.company dt { color: var(--ink-soft); }
.company dd { margin: 0; }
@media (max-width: 767px) { .about { grid-template-columns: 1fr; gap: 32px; } .about-photo { max-width: 280px; } }

/* 問い合わせ */
.contact { max-width: 760px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.req { display: inline-block; margin-left: 8px; font-size: 11px; color: var(--lotus-deep); font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--lotus); outline-offset: 1px; }
.form .btn { justify-self: center; padding: 16px 64px; }
.form-note { text-align: center; color: var(--lotus-deep); margin: 0; }
.contact-mail { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 32px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* フッター */
.site-footer { background: var(--night); color: #fff; text-align: center; padding: 40px 16px; }
.site-footer p { font-size: 12px; opacity: .6; margin: 8px 0 0; }

/* 動画の窓 */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-inner { position: relative; width: min(1000px, 100%); }
.modal-video { aspect-ratio: 16 / 9; }
.modal-video iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; right: 0; top: -44px; background: none; border: 0; color: #fff; font-size: 32px; cursor: pointer; }
