@charset "UTF-8";

/* 構成：Common 共通要素 → HOMEページ（Hero / ABOUT US / SERVICE / WORKS / STUDIO / CONTACT）。
   各まとまりは基本スタイル → 画面幅別の調整の順。SERVICE等の下層ページは今後追加する。
   font-size は px を基本とする。HOMEのSERVICEカード見出しは clamp() で調整する。
   フォント定義は assets/fonts/libre-bodoni/font-face.css を参照。 */

/* --------------------------------------Common 共通要素 */

/* 共通-欧文見出しはフォント本来の横幅で表示 */
.display-title-text {
  display: inline-block;
  white-space: nowrap;
  letter-spacing: .02em;
}

/* 共通-欧文セクションタイトル */
.display-title {
  text-transform: uppercase;
  font-weight: 400;
  font-synthesis: none;
  font-family: var(--serif);
  font-size: var(--home-title-size, 120px);
  letter-spacing: -.065em;
  line-height: 1;
  margin-top: 27px;
}

/* 共通-色・フォント・本文の余白・ヘッダーの高さ */
:root {
  --paper: #fcfbf9;
  --ink: #202020;
  --muted: #73736e;
  --line: #d8d7d1;
  --works-studio-color: #2e2d2e;
  --gutter: clamp(22px,5vw,90px);
  --home-section-top: 240px; /* SERVICE・STUDIOの上 */
  --home-section-bottom: 360px; /* SERVICE・WORKS・STUDIOの下 */
  --home-title-gap: 88px; /* SERVICE・STUDIOのタイトル下 */
  --home-button-gap: 120px; /* ボタンの上 */
  --serif: "Libre Bodoni","Bodoni 72","Didot","Baskerville","Times New Roman",serif;
  --jp-serif: "Hiragino Mincho ProN","Yu Mincho","YuMincho",serif;
  --sans: "Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

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

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

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* 共通-電話番号の字間 */
a[href^="tel:"] {
  letter-spacing: .08em;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: 0;
  background: none;
  padding: 0;
}

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

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

figure {
  margin: 0;
}

p {
  margin: 0;
}

h1 {
  margin: 0;
}

h2 {
  margin: 0;
}

h3 {
  margin: 0;
}

h4 {
  margin: 0;
}

ul {
  margin: 0;
  list-style: none;
  padding: 0;
}

address {
  font-style: normal;
}

::selection {
  background: #dcded5;
  color: #151515;
}

:focus-visible {
  outline: 2px solid #827144;
  outline-offset: 6px;
}

/* 共通-読み上げ専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 共通-本文へのスキップリンク */
.skip-link {
  position: fixed;
  z-index: 100;
  left: 20px;
  top: 10px;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 共通-本文領域の幅 */
.section-shell,
.page-container {
  padding-inline: var(--gutter);
}

/* 共通-セクションの小見出し */
.section-kicker {
  font-size: 12px;
  letter-spacing: .11em;
  line-height: 1.5;
  padding: 0 0 0 2px;
}

/* 共通-下線付きリンク */
.text-link {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--text-link-underline, #a8a8a1);
  padding: 4px 10px 4px 4px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  text-transform: uppercase;
  transition: opacity .18s ease, border-bottom-color .65s ease-in-out;
}

.text-link:hover {
  border-bottom-color: #fff;
  opacity: .84;
}

/* 共通-暗い背景でのリンク下線色 */
.about,
.studio,
.works-solid,
.works-gradient,
.page-dark {
  --text-link-underline: rgb(255 255 255 / .65);
}

/* 共通-セクションリンクの縦並び */
.section-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(9px, 1.1vw, 22px);
}

/* HOMEのSERVICE・STUDIO-ボタン上の余白 */
.service-copy > .section-links,
.studio-copy > .section-links {
  margin-top: var(--home-button-gap);
}

/* 共通-キャッチと本文の文字設定 */
.section-catch {
  font-family: var(--jp-serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.4;
}

.page-catch {
  font-family: var(--jp-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.4;
}

.section-body,
.page-body {
  font-size: 15px;
  line-height: 1.5;
}

.section-body {
  margin-top: 60px;
}

/* 共通-セクションリスト */
.section-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.6;
}

/* 共通-SERVICEのリストに小さな四角を付ける */
.service-copy .section-list li::before,
#staff .section-list li::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 6px;
  background-color: #96968d;
  vertical-align: middle;
}

/* 共通-HOMEのSERVICEと下層ページのタイトル */
.section-heading .display-title,
.page-heading .display-title {
  font-size: var(--home-title-size, calc(var(--heading-font-size) - var(--page-title-reduction, 0px)));
  letter-spacing: -.045em;
}

.section-heading,
.page-heading {
  --heading-font-size: 100px;
}

/* 共通-セクション見出しの配置 */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

/* 共通-丸い操作ボタン */
.circle-button {
  border: 1px solid #a9a9a1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
  transition: background .2s,color .2s;
}

.circle-button:hover:not(:disabled) {
  background: var(--ink);
  color: #fff;
}

.circle-button:disabled {
  opacity: .25;
  cursor: default;
}

/* 共通-スクロール量はJavaScriptから受け取る（動きは任意） */
[data-parallax]:not(.hero-title) {
  transform: translate3d(0, var(--parallax-y, 0px), 0);
}

/* Common 共通要素-文字サイズ */
@media (min-width: 1600px) {
  .section-heading,
  .page-heading {
    --heading-font-size: 116px;
  }

  .display-title {
    font-size: var(--home-title-size, 138px);
  }
}

/* Common 共通要素-文字サイズ */
@media (max-width: 1150px) {
  .section-heading,
  .page-heading {
    --heading-font-size: 80px;
  }

  .display-title {
    font-size: var(--home-title-size, 96px);
  }
}

/* Common 共通要素-画面幅に合わせた調整 */
@media (max-width: 900px) {
  .section-heading,
  .page-heading {
    --heading-font-size: 68px;
  }

  .display-title {
    font-size: var(--home-title-size, 76px);
  }

  :root {
    --header-height: 70px;
  }

}

/* Common 共通要素-画面幅に合わせた調整 */
@media (max-width: 700px) {
  :root {
    --gutter: 22px;
    --home-section-top: 100px;
    --home-section-bottom: 140px;
    --home-title-gap: 48px;
    --header-height: 68px;
  }

  .service-copy > .section-links,
  .works-gallery-first .works-controls {
    --home-button-gap: 100px;
  }

  .desktop-break {
    display: none;
  }

  .section-catch {
    font-size: 24px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
  }

  .section-heading,
  .page-heading {
    --heading-font-size: 65px;
  }

  .display-title {
    font-size: 85px;
    margin-top: 22px;
  }

  .circle-button {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

}

/* Common 共通要素-画面幅に合わせた調整 */
@media (max-width: 360px) {
  .circle-button {
    width: 34px;
    height: 34px;
  }

}

/* Common 共通要素-動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none!important;
    animation: none!important;
  }

  *::before {
    transition: none!important;
    animation: none!important;
  }

  *::after {
    transition: none!important;
    animation: none!important;
  }

}

/* Common 共通要素-動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  [data-parallax] {
    --parallax-y: 0px !important;
  }

}

/* --------------------------------------Common ヘッダー */
/* ヘッダー-画面上部に固定。Heroでは黒20%の透過 */
.site-header {
  --header-color-timing: .9s ease-in-out;
  height: var(--header-height);
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 32px;
  background-color: var(--header-background, rgba(0, 0, 0, .2));
  transition: background-color var(--header-color-timing), color var(--header-color-timing), border-color var(--header-color-timing);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

/* HOME-ファーストビューではヘッダー下端の線を表示しない */
#home .site-header:not(.is-over-about):not(.is-past-service) {
  border-bottom-color: transparent;
}

.header-brand {
  flex: none;
  width: 106px;
}

/* HOME-メインロゴが消えたら、左上ロゴをふわっと表示する */
#home .header-brand {
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease-in-out, visibility 0s linear .7s;
}

#home .site-header.is-logo-visible .header-brand {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.header-brand img {
  width: 100%;
  height: auto;
  transition: filter var(--header-color-timing);
}

/* ヘッダー-ナビゲーションの間隔と文字サイズ */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(15px,1.7vw,30px);
  font-size: 12px;
  line-height: 1;
}

.primary-nav > a,
.nav-group > a {
  text-transform: uppercase;
  padding: 13px 0;
  white-space: nowrap;
  position: relative;
}

.primary-nav > a:is(:hover, :focus-visible)::after,
.nav-group > a:is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

.primary-nav .nav-secondary {
  color: #c4c4c0;
  transition: color var(--header-color-timing);
}

/* 共通-CONTACTボタンは白地に濃紺文字 */
.primary-nav .nav-contact,
.contact-button {
  border: 1px solid #f9f9fa;
  padding: 8px 12px;
  display: flex;
  background: #f9f9fa;
  color: #001039;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  text-shadow: none;
}

.mobile-note {
  display: none;
}

.menu-toggle {
  display: none;
}

/* ヘッダー-SERVICE以降の不透明な背景 */
.site-header.is-past-service {
  --header-background: #c8c8c8;
}

/* ヘッダー-ABOUT USの上では同じグレーにして、本文が透けないようにする */
.site-header.is-over-about {
  --header-background: #535353;
}

/* ヘッダー-明るいセクション上の文字色 */
.site-header.is-on-light {
  color: var(--ink);
  border-bottom-color: rgba(0, 0, 0, .12);
}

.site-header.is-on-light .header-brand img {
  filter: invert(1);
}

.site-header.is-on-light .nav-secondary,
.access-button {
  color: #343430;
}

/* ヘッダー-スマートフォンのメニュー表示中 */
.site-header.menu-open:not(.is-past-service),
.site-header.menu-open .primary-nav {
  color: #fff;
}

.site-header.menu-open:not(.is-past-service) .header-brand img {
  filter: none;
}

.site-header.menu-open .nav-secondary,
.site-header.menu-open .nav-phone {
  color: #c4c4c0;
}

.primary-nav > a::after,
.nav-group > a::after {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.primary-nav .nav-access::after,
.primary-nav .nav-contact::after,
.menu-open .nav-phone::after {
  content: none;
}

/* 共通-ACCESSと電話番号の枠線付きボタン */
.primary-nav .nav-access,
.menu-open .nav-phone,
.about-cta .phone-button,
.access-button {
  border: 1px solid currentColor;
  padding: 8px 12px;
  display: flex;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}

.primary-nav .nav-contact:hover,
.contact-button:hover {
  background: #e9e9e9;
  border-color: #e9e9e9;
}

.primary-nav .nav-access:hover,
.menu-open .nav-phone:hover,
.about-cta .phone-button:hover,
.access-button:hover {
  background: rgba(255, 255, 255, .1);
}

/* ヘッダー-ページへのリンクとサブメニューの開閉 */
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
}

.submenu-toggle {
  display: grid;
  place-items: center;
  width: 24px;
  height: 36px;
  cursor: pointer;
  list-style: none;
}

.submenu-toggle::-webkit-details-marker {
  display: none;
}

.submenu-toggle::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown[open] > .submenu-toggle::before {
  transform: translateY(2px) rotate(225deg);
}

.nav-submenu {
  position: absolute;
  inset: 100% auto auto 0;
  width: max-content;
  min-width: 190px;
  max-height: min(65dvh, 420px);
  overflow-y: auto;
  padding-block: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.4;
}

.nav-submenu a {
  display: block;
  padding: 10px 16px;
  text-transform: uppercase;
}

.nav-submenu a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ヘッダー-HOMEにもサブメニュー矢印の右側と同じ余白を設ける */
@media (min-width: 901px) {
  .primary-nav > a:first-child {
    margin-inline-end: 8px;
  }
}

/* Common ヘッダー-画面幅に合わせた調整 */
@media (max-width: 1150px) {
  .site-header {
    padding-left: 24px;
    padding-right: 24px;
    gap: 20px;
  }

  .primary-nav {
    gap: 20px;
  }

}

/* Common ヘッダー-画面幅に合わせた調整 */
@media (max-width: 1000px) {
  .site-header {
    gap: 12px;
  }

  .primary-nav {
    gap: 8px;
  }

}

/* Common ヘッダー-900px以下は全項目をメニュー内に表示 */
@media (max-width: 900px) {
  .site-header {
    padding: 0 22px;
    gap: 20px;
  }

  .header-brand {
    width: 96px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    min-height: 44px;
  }

  .menu-lines {
    width: 25px;
    display: grid;
    gap: 6px;
  }

  .menu-lines i {
    display: block;
    width: 25px;
    height: 1px;
    background: currentColor;
    transition: transform .25s;
  }

  .menu-toggle[aria-expanded="true"] .menu-lines i:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-lines i:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .primary-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-height));
    background: #151515;
    overflow-y: auto;
    padding: 20px 30px 40px;
    align-content: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .primary-nav.is-open {
    display: grid;
  }

  .primary-nav > a,
  .nav-group > a {
    font-family: var(--serif);
    font-size: 33px;
    padding: 18px 0;
    border-bottom: 1px solid #444;
    line-height: 1.2;
  }

  .nav-group {
    display: block;
  }

  .nav-group > a {
    display: block;
    padding-inline-end: 44px;
  }

  .submenu-toggle {
    position: absolute;
    inset: 16px 0 auto auto;
    width: 44px;
    height: 44px;
  }

  .nav-submenu {
    position: static;
    width: auto;
    min-width: 0;
    max-height: none;
    padding-block: 4px 8px;
    border: 0;
    background: transparent;
    color: inherit;
  }

  /* スマートフォンのACCESS・CONTACT・電話番号は同じ横幅と高さ */
  .primary-nav .nav-access,
  .primary-nav .nav-contact,
  .primary-nav .nav-phone {
    display: flex;
    margin-top: 16px;
    padding: 18px 20px;
    font-family: var(--sans);
    font-size: 18px;
  }

  .mobile-note {
    display: none;
  }

}

/* --------------------------------------Common お問い合わせCTA */
.contact {
  padding-top: 65px;
  padding-bottom: 75px;
  background: #2e2d2e;
  color: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin: 80px 0 80px;
}

.contact-layout p {
  color: #c7c9c1;
}

.contact-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid #858b7e;
  padding: 20px 0 30px;
  margin-left: 8%;
}

.contact-cta > span:first-child {
  text-transform: uppercase;
  font-family: var(--serif);
  font-size: 67px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: -.04em;
}

.contact-cta small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .06em;
  margin-top: 22px;
  color: #c7c9c1;
}

.contact-arrow {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: none;
  border: 1px solid #858b7e;
  border-radius: 50%;
  font-size: 35px;
  transition: background .25s,color .25s,transform .25s;
}

.contact-cta:hover .contact-arrow {
  background: var(--paper);
  color: var(--ink);
  transform: rotate(45deg);
}

/* 共通 CONTACT-文字サイズ */
@media (min-width: 1600px) {
  .contact-cta > span:first-child {
    font-size: 75px;
  }
}

/* 共通 CONTACT-文字サイズ */
@media (max-width: 1150px) {
  .contact-cta > span:first-child {
    font-size: 52px;
  }
}

/* 共通 CONTACT-文字サイズ */
@media (max-width: 900px) {
  .contact-cta > span:first-child {
    font-size: 40px;
  }
}

/* 共通 CONTACTセクション-画面幅に合わせた調整 */
@media (max-width: 700px) {
  .contact {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
  }

  .contact-layout > * {
    min-width: 0;
  }

  .contact-cta {
    margin-left: 0;
    padding: 20px 0 26px;
  }

  .contact-cta > span:first-child {
    font-size: 54px;
  }

  .contact-cta small {
    margin-top: 15px;
  }

  .contact-arrow {
    width: 60px;
    height: 60px;
    font-size: 29px;
  }

}

/* 共通 CONTACT-幅の狭いスマートフォン */
@media (max-width: 400px) {
  .contact-cta {
    gap: 16px;
  }

  .contact-cta > span:first-child {
    font-size: 44px;
  }

  .contact-arrow {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

/* 共通 CONTACTセクション-動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .contact-cta:hover .contact-arrow {
    transform: none;
  }

}

/* --------------------------------------Common フッター */
.site-footer {
  padding-top: 70px;
  padding-bottom: 25px;
  background: #f1f0eb;
}

.footer-logo {
  width: 150px;
  height: auto;
  margin-bottom: 28px;
}

/* フッター-会社名とメニューを同じ高さに配置 */
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
}

.footer-company > p {
  font-size: 12px;
  margin-bottom: 16px;
}

.footer-company address {
  font-size: 12px;
  line-height: 2.1;
  color: #62625d;
}

.footer-company address a {
  display: inline-block;
  margin-top: 9px;
}

/* フッター-電話番号下のACCESS・CONTACT */
.footer-actions,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-actions {
  gap: 8px;
  margin-top: 12px;
  line-height: 1;
}

.footer-nav {
  gap: 16px clamp(16px, 2vw, 32px);
}

.footer-nav a:hover,
.footer-policies a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.rights-notice {
  max-width: 900px;
  font-size: 12px;
  line-height: 1.1;
  color: #77776f;
  margin-top: 65px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 25px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
}

.footer-bottom small {
  font-size: inherit;
}

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}

/* 共通-ページ先頭へ戻るボタンを画面右下に固定 */
.back-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 20;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #ffffff5b;
  color: var(--ink);
  font-size: 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s ease-in-out, visibility 0s linear .6s;
}

.back-top:not([hidden]) {
  display: grid;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

/* フッター-画面幅に合わせた調整 */
@media (max-width: 700px) {
  .site-footer {
    padding-top: 45px;
    padding-bottom: 22px;
  }

  .footer-logo {
    width: 132px;
    margin-bottom: 22px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .back-top {
    width: 40px;
    height: 40px;
  }

  .rights-notice {
    margin-top: 40px;
    line-height: 1.9;
  }

  .footer-bottom {
    padding-top: 20px;
    margin-top: 23px;
  }

  .footer-policies {
    margin-left: 0;
  }
}

/* --------------------------------------Common 写真拡大表示 */
.lightbox-close {
  text-transform: uppercase;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  padding: 6px;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  margin: 0;
  padding: 24px 32px;
  background: #1c1c1b;
  color: #f9f9f5;
  overflow: hidden;
}

.lightbox::backdrop {
  background: #1c1c1b;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 20px;
}

.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 12px;
  line-height: 1.6;
}

.lightbox-close > span {
  font-size: 30px;
  font-weight: 300;
}

.lightbox-image-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 44px;
}

.lightbox-counter {
  font-size: 12px;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}

.lightbox .circle-button:hover {
  background: #f9f9f5;
  color: #1c1c1b;
}

/* Common 写真拡大表示-画面幅に合わせた調整 */
@media (max-width: 700px) {
  .lightbox {
    padding: 15px 16px;
    gap: 12px;
  }

  .lightbox-toolbar {
    gap: 10px;
  }

  .lightbox-close {
    gap: 10px;
  }

  .lightbox-close > span {
    font-size: 28px;
  }

  .lightbox-image-wrap {
    margin-left: -16px;
    margin-right: -16px;
  }

  .lightbox-bottom {
    padding-bottom: 8px;
  }

}

/* --------------------------------------HOMEページ */

/* 【HOME】PCのセクションタイトルは90px。スマートフォンは既存の文字サイズを維持 */
@media (min-width: 701px) {
  #home {
    --home-title-size: 90px;
  }
}

/* --------------------------------------【HOME】Heroセクション 動画 */

/* 【HOME】Hero-表示領域 */
.hero {
  position: relative;
  isolation: isolate;
  height: calc(100svh - 92px);
  min-height: 420px;
  max-height: 960px;
  background: #262626;
  color: #fff;
  overflow: hidden;
}

/* 【HOME】Hero-静止画を先に表示し、再生開始後に動画へ切り替える */
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: inherit;
}

/* Safariの再生判定を妨げないよう、動画は透明にせず静止画を前に重ねる */
.hero-poster {
  z-index: 1;
  opacity: 1;
  pointer-events: none;
  transition: opacity .8s ease-in-out;
}

.hero.is-video-playing .hero-poster {
  opacity: 0;
}

/* 自動再生が拒否された場合だけ表示する */
.hero-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  padding: 10px 20px;
  border: 1px solid currentColor;
  background: rgb(0 0 0 / .35);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* 【HOME】Hero-正式ロゴを画面幅の60%で表示 */
.hero-title {
  position: absolute;
  z-index: 2;
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate3d(-50%, calc(-50% + var(--parallax-y, 0px)), 0);
  width: 60vw;
}

.hero-title img {
  width: 100%;
  height: auto;
  max-height: none;
}

/* 【HOME】Heroセクション 動画-画面幅に合わせた調整 */
@media (max-width: 700px) {
  .hero {
    height: calc(100svh - 104px);
    min-height: 380px;
    max-height: 900px;
  }

  .hero-poster,
  .hero-video {
    object-position: center;
  }
}

/* --------------------------------------【HOME】ABOUT USセクション */
.about {
  padding-block: clamp(80px, 10.8vw, 224px) clamp(72px, 7.4vw, 154px);
  padding-inline: clamp(24px, 6.45vw, 134px);
  position: relative;
  z-index: 1;
  background: #535353;
  color: #fff;
}

/* 【HOME】ABOUT US-乗算の黒を映像に重ね、その上にグレーを表示する */
@media (prefers-reduced-motion: no-preference) {
  .hero-about-scene.is-scroll-ready {
    isolation: isolate;
  }

  .hero-about-scene.is-scroll-ready .hero {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 0;
    max-height: none;
  }

  .hero-about-scene.is-scroll-ready .hero-title {
    opacity: var(--hero-logo-opacity, 1);
  }

  .hero-about-scene.is-scroll-ready .about {
    z-index: auto;
    background-color: transparent;
    color: color-mix(in srgb, #ededed, #fff calc(var(--about-gray-opacity, 0) * 100%));
    text-shadow: 0 1px 5px rgb(0 0 0 / calc(.8 * (1 - var(--about-gray-opacity, 0))));
  }

  /* 上端を通過したら少し待ち、時間をかけてグレーを表示する */
  .hero-about-scene.is-scroll-ready .about.is-past-hero {
    --about-gray-opacity: 1;
    --about-gray-timing: .95s ease-in-out .2s;
    transition: color var(--about-gray-timing), text-shadow var(--about-gray-timing);
  }

  .hero-about-scene.is-scroll-ready .about::before,
  .hero-about-scene.is-scroll-ready .about::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .hero-about-scene.is-scroll-ready .about::before {
    background: linear-gradient(to bottom, transparent, #000 var(--about-black-feather, 0px));
    mix-blend-mode: multiply;
    opacity: var(--about-black-opacity, 0);
  }

  .hero-about-scene.is-scroll-ready .about::after {
    background: #535353;
    opacity: var(--about-gray-opacity, 0);
  }

  .hero-about-scene.is-scroll-ready .about.is-past-hero::after {
    transition: opacity var(--about-gray-timing);
  }

  .hero-about-scene.is-scroll-ready .about > * {
    position: relative;
    z-index: 1;
  }
}

/* 【HOME】ABOUT US-見出しと紹介文を同じ左端に揃える */
.about-content {
  margin-block-start: clamp(56px, 8.5vw, 178px);
  margin-inline: 13% 12.5%;
  font-family: var(--jp-serif);
}

.about-title {
  font-weight: 400;
  font-size: 48px;
  line-height: 1.56;
  letter-spacing: .025em;
  text-wrap: balance;
}

.about-lead {
  margin-block-start: clamp(40px, 6.35vw, 132px);
  font-size: 23px;
  line-height: 1.4;
  letter-spacing: .025em;
}

/* 【HOME】ABOUT US-下段はCONTACTと電話番号を左、リンクを右に配置し、下端を揃える */
.about-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: clamp(32px, 4.75vw, 98px);
  margin-block-start: clamp(36px, 4.8vw, 100px);
}

/* 【HOME】ABOUT US-CONTACTと電話番号を横並びに配置 */
.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1;
}

/* 【HOME】ABOUT US-文字サイズ */
@media (min-width: 1600px) {
  .about-title {
    font-size: 64px;
  }

  .about-lead {
    font-size: 30px;
  }
}

/* 【HOME】ABOUT US-文字サイズ */
@media (max-width: 1150px) {
  .about-title {
    font-size: 38px;
  }

  .about-lead {
    font-size: 18px;
  }
}

/* 【HOME】ABOUT US-狭い画面はCONTACTと電話番号の下にリンクを並べる */
@media (max-width: 900px) {
  .about {
    padding-block: 72px 80px;
    padding-inline: var(--gutter);
  }

  .about-content {
    margin-inline: 0;
    margin-block-start: 42px;
  }

  .about-lead {
    margin-block-start: 36px;
    font-size: 17px;
  }

  .about-details {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-block-start: 26px;
  }
}

/* 【HOME】ABOUT US-スマートフォンの見出しとボタン */
@media (max-width: 700px) {
  .about-title {
    /* 左右の余白を引いた幅を、長い行の15文字と予備の1文字で割る */
    font-size: clamp(12px, calc((100vw - 2 * var(--gutter)) / 16), 32px);
    letter-spacing: -.025em;
  }

  .about-title > span {
    white-space: nowrap;
  }

  .about-lead {
    margin-block-start: 200px;
  }

  .about-cta .contact-button,
  .about-cta .phone-button {
    padding: 14px 16px;
    font-size: 13px;
  }
}

/* --------------------------------------【HOME】SERVICEセクション */
.services {
  padding-block: var(--home-section-top) var(--home-section-bottom);
  background: #f1f0eb;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 10%;
  padding-top: var(--home-title-gap);
}

.service-row+.service-row {
  padding-top: 110px;
}

.services .section-kicker {
  padding-left: 0;
}

.service-copy {
  /* max-width: 410px; */
  padding-left: 0;
}

.service-copy .text-link {
  padding-left: 0;
}

.item-kicker {
  font-size: 12px;
  letter-spacing: .13em;
  line-height: 1.5;
  margin-bottom: 25px;
  color: var(--muted);
}

.service-copy .section-body .section-list {
  color: #5c5c58;
}

/* 【HOME】SERVICE-写真は画面幅の40%、列の中央に配置 */
.service-image {
  align-self: center;
  justify-self: center;
  width: 40vw;
  max-width: 100%;
  min-width: 0;
}

/* 【HOME】SERVICE-3枚の写真を同じ正方形で表示 */
.service-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-row-reverse {
  grid-template-columns: 1.15fr 1fr;
}

.service-row-reverse .service-copy {
  grid-column: 2;
  grid-row: 1;
}

.service-row-reverse .service-image {
  grid-column: 1;
  grid-row: 1;
}

/* 【HOME】SERVICEセクション-画面幅に合わせた調整 */
@media (max-width: 1150px) {
  .service-row {
    gap: 7%;
  }

  .service-copy .wide-break {
    display: none;
  }

}

/* 【HOME】SERVICEセクション-画面幅に合わせた調整 */
@media (max-width: 900px) {
  .service-row {
    gap: 6%;
  }

  .service-row+.service-row {
    padding-top: 80px;
  }

}

/* 【HOME】SERVICEセクション-画面幅に合わせた調整 */
@media (max-width: 700px) {
  .service-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .service-row+.service-row {
    padding-top: 60px;
  }

  .service-copy {
    max-width: none;
    order: 1;
  }

  .service-image {
    order: 0;
  }

  .item-kicker {
    margin-bottom: 16px;
  }

  .service-copy .section-body {
    max-width: 450px;
  }

}

/* --------------------------------------【HOME】WORKSセクション 横スクロール */
.works {
  padding: 120px 0 65px;
  overflow: visible;
}

/* 【HOME】WORKS-暗い背景に合わせた文字とフィルターの色 */
.works-solid,
.works-gradient {
  --works-filter-color: #c4c4c0;
  color: var(--paper);
}

.works-solid {
  --works-stage-background: var(--works-studio-color);
  background-color: var(--works-studio-color);
}

/* 【HOME】WORKS-以前のグラデーション。HTMLの works-solid を works-gradient に替えると復元 */
.works-gradient {
  --works-background-start: #f1f0eb;
  --works-background-end: #0d0d0d;
  --works-stage-background: linear-gradient(to bottom, var(--works-background-start), var(--works-background-end));
  /* ギャラリーの上下の余白は、それぞれ背景の端の色に揃える */
  background: linear-gradient(to bottom, var(--works-background-start) 50%, var(--works-background-end) 50%);
}

.works-gradient .works-heading {
  color: var(--ink);
}

/* 【HOME】WORKS-ギャラリーの下にジャンル選択と実績紹介へのボタン */
.works-controls {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 20px;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(18px, 2.7vw, 45px);
}

.work-filters button {
  font-size: 12px;
  white-space: nowrap;
  color: var(--works-filter-color, var(--muted));
  position: relative;
  padding-bottom: 7px;
  letter-spacing: 0.08em;
}

.work-filters button[aria-pressed="true"] {
  color: inherit;
}

.work-filters button[aria-pressed="true"]::after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  content: "";
}

.works-rail {
  --works-rail-gutter: var(--gutter);
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--works-rail-gutter);
  padding: 20px var(--works-rail-gutter) 16px;
  scrollbar-width: none;
}

/* 【HOME】WORKS-ワイド表示の写真列は画面の左右いっぱいに表示 */
.is-wide-gallery .works-rail {
  --works-rail-gutter: 0px;
}

.works-rail::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 calc((100vw - 2 * var(--gutter) - 48px)/3);
  min-width: 0;
  scroll-snap-align: start;
  text-align: left;
}

.work-card button {
  display: block;
  width: 100%;
  text-align: left;
}

.work-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #edece7;
}

.work-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.6,.3,1);
}

.work-card button:hover img {
  transform: scale(1.035);
}

.work-open {
  position: absolute;
  right: 15px;
  bottom: 15px;
  background: var(--paper);
  color: var(--ink);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 20px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .25s,transform .25s;
}

.work-card button:hover .work-open {
  opacity: 1;
  transform: none;
}

.work-card button:focus-visible .work-open {
  opacity: 1;
  transform: none;
}

.work-meta {
  padding-top: 15px;
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.6;
}

.no-script-gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  padding: 30px var(--gutter);
}

.no-script-gallery img {
  width: 100%;
  height: auto;
}

.works-stage {
  position: relative;
  background: var(--works-stage-background, var(--paper));
}

/* 【HOME】WORKS-PCでは縦スクロールに連動して横へ表示 */
.works-scroll.is-scroll-driven .works-stage {
  position: sticky;
  top: var(--header-height);
  height: var(--works-stage-height, auto);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  padding: 24px 0 20px;
}

.is-scroll-driven .works-heading .display-title {
  font-size: var(--home-title-size, 94px);
  margin-top: 12px;
}

.is-scroll-driven .works-rail {
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 0;
  align-items: center;
  overflow-y: hidden;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.is-scroll-driven .work-card {
  flex-basis: var(--work-card-size);
}

.is-scroll-driven .works-controls {
  margin-top: 10px;
}

/* 【HOME】WORKS-ワイド表示の縦スクロール連動時は、写真を大きく重ねる */
.is-scroll-driven.is-wide-gallery .works-stage {
  padding-block: 16px 12px;
}

.is-scroll-driven.is-wide-gallery .works-rail {
  gap: 0;
}

.is-scroll-driven.is-wide-gallery .work-card + .work-card {
  margin-inline-start: calc(var(--work-card-size, 0px) * -.14);
}

.is-scroll-driven.is-wide-gallery .work-card + .work-card .work-image {
  box-shadow: -6px 0 16px rgb(0 0 0 / .16);
}

.is-scroll-driven.is-wide-gallery .work-card:is(:hover, :focus-within) {
  z-index: 1;
}

/* 【HOME】WORKS 固定区間-文字サイズ */
@media (min-width: 1600px) {
  .is-scroll-driven .works-heading .display-title {
    font-size: var(--home-title-size, 104px);
  }
}

/* 【HOME】WORKS 固定区間-文字サイズ */
@media (max-width: 1150px) {
  .is-scroll-driven .works-heading .display-title {
    font-size: var(--home-title-size, 73px);
  }
}

/* 【HOME】WORKSセクション 横スクロール-画面幅に合わせた調整 */
@media (max-width: 700px) {
  .works {
    padding-top: 75px;
    padding-bottom: 30px;
  }

  .works .display-title {
    font-size: 78px;
  }

  .works-rail {
    gap: 15px;
    padding-top: 15px;
  }

  .work-card {
    flex-basis: 78vw;
  }

  .work-open {
    opacity: 1;
    transform: none;
    width: 29px;
    height: 29px;
    font-size: 18px;
    right: 12px;
    bottom: 12px;
  }

  .work-meta {
    padding-top: 12px;
  }

  .no-script-gallery {
    gap: 12px;
    grid-template-columns: 1fr;
  }

}

/* 【HOME】WORKSセクション 横スクロール-動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .work-card button:hover img {
    transform: none;
  }

}

/* 【HOME】WORKS-文字サイズ */
@media (max-width: 480px) {
  .works .display-title {
    font-size: 65px;
  }
}

/* 【HOME】WORKS-試しのレイアウト。元に戻すときはHTMLの works-gallery-first を外す */
.works.works-gallery-first {
  padding-block: 0 var(--home-section-bottom);
}

.works-gallery-first .works-scroll.is-scroll-driven .works-stage {
  grid-template-rows: minmax(0, var(--works-rail-track, max-content)) auto;
  align-content: start;
  padding-block: 0;
}

.works-gallery-first .works-rail,
.works-gallery-first .no-script-gallery {
  align-items: flex-start;
  padding-block: 0;
}

.works-gallery-first .works-controls {
  gap: var(--home-button-gap);
  margin-top: 60px;
}

.works-gallery-first .works-rail:empty {
  display: none;
}

/* 写真の左上に見出しを重ねる。写真のタップやスワイプはそのまま受け取る */
.works-gallery-first .works-heading {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 2;
  padding-block: 100px 36px;
  color: var(--paper);
  background: radial-gradient(ellipse at top left, rgb(0 0 0 / .72), transparent 68%);
  pointer-events: none;
}

.works-gallery-first .works-heading .display-title {
  margin-top: 10px;
}

/* --------------------------------------【HOME】STUDIOセクション */
.studio {
  position: relative;
  isolation: isolate;
  padding-block: var(--home-section-top) var(--home-section-bottom);
  background-color: #252824;
  color: var(--paper);
}

/* 【HOME】STUDIO-直前のWORKSと同じ色から背景写真になじませる */
.works-solid + .studio {
  --studio-top-blend: var(--works-studio-color);
}

/* 【HOME】STUDIO-B1の写真を全面に敷き、文字側に暗いグラデーションを重ねる */
.studio-background,
.studio::before {
  position: absolute;
  inset: 0;
}

.studio-background {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio::before {
  z-index: -1;
  content: "";
  background:
    linear-gradient(to bottom, var(--studio-top-blend, transparent), transparent 180px),
    linear-gradient(90deg, rgb(0 0 0 / .62), transparent 60%),
    linear-gradient(90deg, rgb(0 0 0 / .74), rgb(0 0 0 / .59) 620px, rgb(0 0 0 / .16));
}

/* 【HOME】STUDIO-キャッチコピー、リード、設備 */
.studio-copy {
  margin-top: var(--home-title-gap);
}

/* 【HOME】STUDIO-設備は横一列。収まらない画面では横にスクロール */
.studio-copy .section-list {
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}

.studio-copy .section-list li {
  flex: none;
}

.studio-copy .section-list li::before {
  content: "+";
  margin-right: 7px;
}

/* 【HOME】STUDIO-アクセスリンク下の徒歩案内 */
.studio-copy .section-links > p {
  font-size: 14px;
  line-height: 1.6;
}

/* 【HOME】STUDIOセクション-スマートフォンの見出しと余白 */
@media (max-width: 700px) {
  /* 【HOME】STUDIO-スマートフォンでは設備を折り返して全部表示する */
  .studio-copy .section-list {
    flex-wrap: wrap;
    width: auto;
    overflow-x: visible;
    white-space: normal;
  }

  .studio .display-title {
    font-size: var(--home-title-size, 76px);
  }
}

@media (max-width: 480px) {
  .studio .display-title {
    font-size: 64px;
  }
}

/* --------------------------------------下層ページ 共通 */
.subpage {
  --page-width: 1260px;
  --page-section-space: 96px;
  --page-content-gap: 32px;
}

.subpage main {
  padding-top: var(--header-height);
}

.page-container {
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
}

/* 下層ページ 共通-ページ冒頭と本文 */
.page-intro {
  display: grid;
  gap: 18px;
  padding-block: 70px var(--page-section-space);
}

.page-heading {
  --page-title-reduction: 40px;
  min-width: 0;
  overflow: clip;
}

.page-section-heading .section-kicker {
  padding-left: 0;
  text-transform: uppercase;
}

.page-section-title,
.page-subheading {
  font-family: var(--section-title-font, var(--jp-serif));
  font-weight: 400;
  line-height: 1.55;
}

.page-section-title {
  font-size: clamp(26px, 3vw, 40px);
}

.page-subheading {
  margin-bottom: 12px;
  font-size: 22px;
}

.page-body {
  max-width: 800px;
}

/* 下層ページ 共通-セクションと本文の組み方 */
.page-section {
  padding-block: var(--page-section-space);
}

.page-section,
.page-section > .page-container,
.page-section-heading {
  display: grid;
  gap: var(--page-content-gap);
}

.page-section-heading {
  gap: 8px;
}

.page-band {
  background: #f1f0eb;
}

.page-dark {
  background: var(--works-studio-color);
  color: var(--paper);
}

.page-split,
.page-three-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--page-content-gap);
  align-items: start;
}

article.page-split {
  align-items: center;
}

.page-three-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-image {
  width: 100%;
  height: auto;
}

.page-image-wide {
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.page-photo-grid {
  --photo-grid-columns: repeat(3, minmax(0, 1fr));
  display: grid;
  grid-template-columns: var(--photo-grid-columns);
  gap: 12px;
}

.page-photo-grid .page-image {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.page-photo-grid a {
  display: block;
}

.page-photo-grid:not(.works-photo-grid) a:hover {
  opacity: .88;
}

/* 下層ページ 共通-ページ内ナビとリンク */
.page-jump-links,
.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px 24px;
}

.page-jump-links {
  padding-block: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.page-jump-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.page-jump-links a:hover {
  border-bottom-color: currentColor;
}

/* 下層ページ 共通-設備と会社情報の一覧 */
.page-details,
.page-access-list {
  font-size: 14px;
  line-height: 1.8;
}

.page-details {
  margin: 0;
  border-top: 1px solid var(--line);
}

.page-details > div {
  display: grid;
  grid-template-columns: minmax(90px, 23%) minmax(0, 1fr);
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.page-details dd {
  margin: 0;
}

.page-access-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.page-section address {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* 下層ページ CONTACT-お問い合わせフォーム */
.page-form-status {
  max-width: 960px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}

.page-form-status a:not(.text-link),
.page-form-consent-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.page-form label {
  font-size: 14px;
}

.page-form label > span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
}

.page-form input,
.page-form textarea {
  font: inherit;
  color: var(--ink);
}

.page-form input:not([type="checkbox"]),
.page-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.page-form-wide,
.page-form-consent {
  grid-column: 1 / -1;
}

.page-form-consent input {
  margin-right: 8px;
}

.page-form-submit {
  justify-self: start;
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.page-form-submit:disabled {
  color: var(--muted);
  cursor: default;
}

.page-form-submit:not(:disabled):is(:hover, :focus-visible) {
  border-color: var(--ink);
}

.page-form-confirm {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.8;
}

.page-form-confirm > div {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.page-form-confirm dt {
  font-weight: 600;
}

.page-form-confirm dd {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.page-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-form-consent-link {
  font-size: 14px;
}

.page-phone {
  font-size: 28px;
}

/* --------------------------------------プライバシーポリシー・利用規約 */
.policy-content {
  padding-top: 0;
}

.policy-content .page-body + .page-body {
  margin-top: 12px;
}

@media (max-width: 760px) {
  .subpage {
    --page-section-space: 58px;
    --page-content-gap: 24px;
  }

  .page-intro {
    padding-top: 44px;
  }

  .page-split,
  .page-three-columns,
  .page-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-photo-grid {
    --photo-grid-columns: repeat(2, minmax(0, 1fr));
  }

  .page-image-wide {
    aspect-ratio: 4 / 3;
  }
}

/* --------------------------------------SERVICEページ */
/* SERVICE-制作パートナーのロゴリンク */
.partner-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
}

.partner-links img {
  width: 144px;
  height: auto;
}

/* --------------------------------------WORKSページ */
/* WORKS-背景の境界から前後の内容まで各160px */
.works-page {
  --works-boundary-space: 160px;
}

.works-page #others {
  padding-bottom: var(--works-boundary-space);
}

.works-page #movie {
  padding-block: var(--works-boundary-space);
  background: #666666;
}

.works-page .contact {
  padding-top: var(--works-boundary-space);
}

.works-page .contact-layout {
  margin-top: 0;
  align-items: start;
}

/* WORKS-動画は社名と埋め込みプレーヤーだけを並べる */
.works-video-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
}

.works-video-list li {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.works-video-list h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.works-video-list iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* WORKS-スマートフォンでは動画を縦に並べる */
@media (max-width: 760px) {
  .works-video-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* WORKS-写真一覧の列数を画面幅に合わせる */
.works-photo-grid {
  --photo-grid-columns: repeat(auto-fill, minmax(clamp(82px, 13vw, 170px), 1fr));
}

/* WORKS-現行サイトに合わせた暗転と拡大鏡カーソル */
.works-photo-grid a {
  position: relative;
  isolation: isolate;
  cursor: zoom-in;
}

.works-photo-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / .4);
  mix-blend-mode: multiply;
  opacity: .01;
  pointer-events: none;
  transition: opacity .45s ease;
}

.works-photo-grid a:hover::after {
  opacity: 1;
}

/* プライバシーポリシー・利用規約-スマートフォンで長いタイトルを折り返す */
@media (max-width: 520px) {
  .policy-intro .display-title-text {
    white-space: normal;
  }
}

/* --------------------------------------COMPANYページ */
/* COMPANY-理念の本文と3つの要素 */
.company-philosophy {
  display: grid;
  gap: var(--page-content-gap);
}

/* COMPANY-理念のステートメント */
.company-statement {
  width: fit-content;
  max-width: 100%;
  justify-self: start;
  margin-block: 160px;
  font-family: var(--jp-serif);
  font-size: clamp(30px, 4vw, 64px);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.4;
  text-align: left;
  text-wrap: balance;
}

/* COMPANY-スマートフォンは単語と記号を一行ずつ表示 */
@media (max-width: 700px) {
  .company-statement > span {
    display: block;
  }
}

/* COMPANY-ステートメントを左からぼかしながら表示 */
@media (prefers-reduced-motion: no-preference) {
  .company-statement.is-reveal-pending {
    opacity: 0;
  }

  .company-statement.is-revealing {
    mask-image: linear-gradient(to right, #000 45%, transparent 55%);
    mask-size: 225% 100%;
    mask-repeat: no-repeat;
    animation: company-statement-reveal 1.6s ease-in-out both;
  }

  @keyframes company-statement-reveal {
    from {
      mask-position: right;
      opacity: 0;
    }

    to {
      mask-position: left;
      opacity: 1;
    }
  }
}

/* COMPANY-アクセスのGoogle マップ */
.company-map {
  display: block;
  width: 100%;
  border: 0;
}
