@charset "UTF-8";
/* =========================================================
   Crewxia  —  style.css（assets/scss/style.scss から生成）
   PC: 1440px デザイン基準 / SP: 767px 以下
   ========================================================= */
/* ---------- Tokens ---------- */
:root {
  --c-dark: #333333;
  --c-black: #333333;
  --c-white: #fefefe;
  --c-gray: #999999;
  --c-gray-bg: #f0f0f0;
  --c-teal: #cde1e2;
  --c-text: #333333;
  --c-text-sub: #333333;
  --c-pin: #3cb8f1;
  --c-beige: #e1c4ad;
  --c-orange: #fda978;
  --ff-base: "Marcellus", "Noto Serif JP", serif;
  --ff-en: var(--ff-base);
  --ff-mincho: var(--ff-base);
  --ff-serif: var(--ff-base);
  --ff-sans: var(--ff-base);
  --header-h: 116px;
  --inner: 1280px;
  --gutter: 80px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --gutter: 20px;
  }
}
/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

table {
  border-collapse: collapse;
}

body {
  font-family: var(--ff-sans);
  color: var(--c-text);
  background: var(--c-white);
  line-height: 1.7;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

.wrapper {
  overflow-x: clip;
}

.offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
  background: var(--c-dark);
  display: flex;
  align-items: center;
  padding: 0 61px;
}
.header a {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-family: var(--ff-en);
  font-size: 38.5px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--c-white);
  transition: opacity 0.3s;
}
.header a:hover {
  opacity: 0.7;
}
.header a img {
  box-sizing: content-box;
  width: 1.1em;
  height: auto;
  padding: 0.08em;
  border-radius: 50%;
  background: #fefefe;
}
@media (max-width: 767px) {
  .header a {
    font-size: 26px;
  }
}
.header.top {
  height: 96px;
}
.header.line {
  border-bottom: 1px solid var(--c-white);
}
@media (max-width: 767px) {
  .header, .header.top {
    height: var(--header-h);
    padding: 0 20px;
  }
}

/* ---------- Global nav（画面下に浮いているバー） ---------- */
.navbar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translateX(-50%);
  width: 787px;
  max-width: calc(100% - 32px);
  transition: width 0.5s var(--ease);
}
.navbar .bar {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 4px;
  background: var(--c-black);
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}
.navbar nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  margin-right: 4px;
  transition: opacity 0.4s, max-width 0.5s var(--ease), margin-right 0.5s var(--ease);
  max-width: 1000px;
  overflow: hidden;
}
.navbar nav a {
  flex: 1 1 auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--c-gray);
  border-radius: 2px;
  font-family: var(--ff-en);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--c-white);
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}
.navbar nav a:hover, .navbar nav a[aria-current=page] {
  background: var(--c-white);
  color: var(--c-black);
}
.navbar .news {
  display: none;
  flex: 1;
  min-width: 0;
  margin-right: 4px;
  height: 44px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--c-gray);
  border-radius: 2px;
  color: #fefefe;
  font-size: 14px;
}
.navbar .news .track {
  display: flex;
  gap: 3em;
  padding-left: 100%;
  white-space: nowrap;
  animation: gnav-ticker 18s linear infinite;
}
.navbar .bar button {
  flex: 0 0 70px;
  height: 44px;
  border: 1px solid var(--c-white);
  border-radius: 2px;
  position: relative;
  background: var(--c-black);
}
.navbar .bar button span {
  position: absolute;
  left: 15px;
  width: 38px;
  height: 1px;
  background: var(--c-white);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.navbar .bar button span:nth-child(1) {
  top: 17px;
}
.navbar .bar button span:nth-child(2) {
  top: 25px;
}
.navbar .drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  background: rgba(238, 238, 238, 0.53);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 40px 94px 42px;
  max-height: calc(100vh - 110px);
  max-height: calc(100svh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  clip-path: circle(0 at calc(100% - 39px) calc(100% + 26px));
  transition: clip-path 0.6s var(--ease), visibility 0.6s;
}
.navbar .drawer .buttons, .navbar .drawer .row {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.navbar .buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}
.navbar .buttons a {
  width: 240px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-white);
  border-radius: 2px;
  font-family: var(--ff-serif);
  font-size: 24px;
  color: #333333;
  transition: background-color 0.3s, color 0.3s;
}
.navbar .buttons a:hover {
  background: var(--c-black);
  color: var(--c-white);
}
.navbar .list .row {
  border-bottom: 1px solid #333333;
}
.navbar .list .link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 43px;
  padding: 0 15px;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 16px;
  color: #333333;
}
.navbar .list .link::after {
  content: "→";
  font-family: var(--ff-sans);
  font-weight: 700;
  transition: transform 0.3s var(--ease);
}
.navbar .list .link:hover::after {
  transform: translateX(4px);
}
.navbar .list .link:hover {
  background: rgba(254, 254, 254, 0.5);
}
.navbar .list .child {
  padding: 8px 8px 12px;
}
.navbar .list .child li:nth-child(odd) a {
  background: #cccccc;
}
.navbar .list .child li:nth-child(even) a {
  background: #e2e2e2;
}
.navbar .list .child a {
  display: flex;
  gap: 0.4em;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  font-size: 16px;
  color: #333333;
  border-bottom: 1px solid var(--c-white);
  transition: background-color 0.3s;
}
.navbar .list .child a:hover {
  background: var(--c-white) !important;
}
@media (max-width: 767px) {
  .navbar {
    bottom: 12px;
    width: 78px;
  }
  .navbar .bar {
    justify-content: flex-end;
  }
  .navbar nav {
    display: none;
  }
  .navbar .drawer {
    padding: 24px 16px;
  }
  .navbar .buttons a {
    height: 56px;
    font-size: 18px;
  }
}
.navbar.open .bar button span:nth-child(1) {
  top: 21px;
  transform: rotate(23deg);
}
.navbar.open .bar button span:nth-child(2) {
  top: 21px;
  transform: rotate(-23deg);
}
.navbar.compact {
  width: 78px;
}
.navbar.compact .bar {
  justify-content: flex-end;
}
.navbar.compact nav {
  max-width: 0;
  margin-right: 0;
  opacity: 0;
  flex: 0;
}
.navbar.wide nav {
  display: none;
}
.navbar.wide .news {
  display: flex;
  animation: gnav-spread 0.5s var(--ease) both;
}
.navbar.wide:not(.folding) {
  width: 787px;
}
.navbar.folding .news {
  animation: gnav-fold 0.4s var(--ease) both;
}
.navbar.open .drawer {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 39px) calc(100% + 26px));
  transition: clip-path 0.8s var(--ease) 0.5s, visibility 0s;
}
.navbar.open .drawer .buttons, .navbar.open .drawer .row {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s, transform 0.5s var(--ease);
}
.navbar.open .drawer .row:nth-last-child(1) {
  transition-delay: 0.62s;
}
.navbar.open .drawer .row:nth-last-child(2) {
  transition-delay: 0.68s;
}
.navbar.open .drawer .row:nth-last-child(3) {
  transition-delay: 0.74s;
}
.navbar.open .drawer .row:nth-last-child(4) {
  transition-delay: 0.8s;
}
.navbar.open .drawer .row:nth-last-child(5) {
  transition-delay: 0.86s;
}
.navbar.open .drawer .row:nth-last-child(6) {
  transition-delay: 0.92s;
}
.navbar.open .drawer .row:nth-last-child(7) {
  transition-delay: 0.98s;
}
.navbar.open .drawer .buttons {
  transition-delay: 1.1s;
}
@media (prefers-reduced-motion: reduce) {
  .navbar .drawer, .navbar.open .drawer, .navbar .drawer .buttons, .navbar .drawer .row {
    transition: none !important;
  }
  .navbar .news {
    animation: none !important;
  }
}
@media (max-width: 767px) {
  .navbar.wide:not(.folding) {
    width: calc(100% - 24px);
  }
}

@keyframes gnav-spread {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@keyframes gnav-fold {
  from {
    clip-path: inset(0);
  }
  to {
    clip-path: inset(0 100% 0 0);
  }
}
@keyframes gnav-ticker {
  to {
    transform: translateX(-100%);
  }
}
/* ---------- Footer ----------
   フッターは画面と同じ高さにして、ページの中身の奥に固定する（sticky で画面の下にそろえる）。
   中身（main）を手前に重ねておくので、最後までスクロールすると中身が上へ抜けて、フッターが下から現れる。
   フッターが画面より高いとき（スマホや、高さの低い PC）は、main.js が tall を付けて、固定をやめる（上の CTA が中身に隠れないように）。
   PC の余白とロゴの大きさは、画面の高さに合わせて縮め、なるべく1画面に収める */
main {
  position: relative;
  z-index: 1;
  background: var(--c-white);
}

.footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-gray-bg);
  padding: clamp(48px, 10vh, 140px) 0 clamp(96px, 14vh, 112px);
}
.footer .buttons {
  width: 1024px;
  max-width: calc(100% - 2 * var(--gutter));
  margin: 0 auto;
  background: var(--c-black);
  padding: 13px 22px;
  display: flex;
  gap: 21px;
}
.footer .buttons a {
  flex: 1;
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border: 1px solid var(--c-gray);
  border-radius: 2px;
  font-family: var(--ff-en);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--c-white);
  position: relative;
  transition: background-color 0.3s, color 0.3s;
}
.footer .buttons a::after {
  content: "→";
  position: absolute;
  right: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: 0.3s var(--ease);
  font-family: var(--ff-sans);
}
.footer .buttons a:hover {
  background: var(--c-white);
  color: var(--c-black);
}
.footer .buttons a:hover::after {
  opacity: 1;
  transform: none;
}
.footer .content {
  width: 100%;
  max-width: calc(var(--inner) + 2 * var(--gutter));
  margin: clamp(24px, 5vh, 50px) auto 0;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.footer .info {
  padding-left: 16px;
  flex-shrink: 0;
}
.footer .info p {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.footer .info ul {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}
.footer .info a {
  display: block;
  color: #333333;
  transition: opacity 0.3s;
}
.footer .info a:hover {
  opacity: 0.5;
}
.footer .info svg {
  display: block;
  width: 26px;
  height: 26px;
}
.footer nav {
  width: 291px;
  margin-right: 16px;
  display: grid;
  gap: clamp(14px, 2.4vh, 24px);
}
.footer nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--c-black);
  line-height: 20px;
  font-family: var(--ff-en);
  font-size: 16px;
  letter-spacing: 0.08em;
}
.footer nav a::after {
  content: "→";
  font-family: var(--ff-sans);
  transition: transform 0.3s var(--ease);
}
.footer nav a:hover::after {
  transform: translateX(6px);
}
.footer .bottom {
  width: 100%;
  max-width: calc(var(--inner) + 2 * var(--gutter));
  margin: 20px auto 0;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.footer .bottom a:hover {
  text-decoration: underline;
}
.footer .logo {
  width: 100%;
  max-width: calc(var(--inner) + 2 * var(--gutter));
  margin: clamp(16px, 4vh, 50px) auto 0;
  padding: 0 var(--gutter);
  font-family: var(--ff-en);
  font-size: clamp(64px, min(8.9vw, 12vh), 128px);
  line-height: 1.25;
  letter-spacing: 0.08em;
}
.footer .logo a {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  transition: opacity 0.3s;
}
.footer .logo a:hover {
  opacity: 0.5;
}
.footer .logo img {
  width: 0.95em;
  height: auto;
}
.footer .copyright {
  margin-right: 16px;
  color: var(--c-text-sub);
}
.footer .copyright small {
  font-size: inherit;
}
@media (max-width: 767px) {
  .footer {
    padding: 72px 0 112px;
  }
  .footer .buttons {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  .footer .buttons a {
    height: 52px;
  }
  .footer .content {
    flex-direction: column;
    margin-top: 40px;
  }
  .footer .info {
    padding-left: 0;
  }
  .footer nav {
    width: 100%;
    margin: 0;
    gap: 0;
  }
  .footer nav a {
    min-height: 44px;
  }
  .footer .bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
    font-size: 11px;
  }
  .footer .logo {
    margin-top: 24px;
    font-size: 18.5vw;
  }
  .footer .copyright {
    margin-right: 0;
  }
}
.footer.white {
  background: var(--c-white);
}
.footer.tall {
  position: relative;
}

/* ---------- セクションの見出し（英字） ---------- */
.heading {
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.25;
  letter-spacing: 0.08em;
  color: var(--c-text);
}
.heading.white {
  color: var(--c-white);
}
.heading.split {
  opacity: 1;
  transform: none;
}
.heading.split span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(8deg);
  transform-origin: left bottom;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i) * 0.05s);
}
.heading.split.shown span {
  opacity: 1;
  transform: none;
}

/* ---------- ボタンを並べる行 ---------- */
.actions {
  display: flex;
  justify-content: flex-end;
}
.actions.center {
  justify-content: center;
}

/* ---------- VIEW ALL などのリンクボタン ---------- */
.more {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-width: 197px;
  height: 44px;
  padding: 0 16px 0 24px;
  justify-content: flex-end;
  font-family: var(--ff-en);
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--c-text-sub);
  position: relative;
  transition: color 0.3s, background-color 0.3s;
}
.more span {
  flex: 1;
  text-align: center;
}
.more i {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}
.more.white {
  color: var(--c-white);
}
.more.large {
  font-size: 20px;
  min-width: 220px;
}
.more.serif {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 20px;
}
.more.short {
  min-width: 111px;
  padding: 0 6px;
  gap: 16px;
}
.more.short i {
  width: 24px;
}

.more:hover i, a:hover .more i {
  width: 28px;
}

.more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
}
.more.plain::after {
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) and (min-width: 768px) {
  .more:hover::after, a:hover .more::after {
    animation: more-line 0.6s var(--ease);
  }
  .more.plain:hover::after, a:hover .more.plain::after {
    transform: none;
    animation: none;
  }
}
@keyframes more-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
/* ---------- スクロールでふわっと表示（main.js が shown を付ける） ---------- */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade.shown {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
/* ---------- AI アシスタント（右下の丸いボタン） ---------- */
.assistant {
  position: fixed;
  right: 211px;
  bottom: 16px;
  z-index: 91;
}
.assistant .launch {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-gray);
  border: 1px solid var(--c-black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  color: var(--c-white);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.assistant .launch:hover {
  transform: scale(1.06);
  background: #999999;
}
.assistant .window {
  position: absolute;
  right: 0;
  bottom: 96px;
  width: 400px;
  height: 535px;
  display: flex;
  flex-direction: column;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.assistant .head {
  flex: 0 0 80px;
  background: #545454;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 24px 0 16px;
  color: var(--c-white);
}
.assistant .head p {
  flex: 1;
  font-family: var(--ff-serif);
  font-size: 16px;
}
.assistant .head button {
  width: 36px;
  height: 36px;
  position: relative;
}
.assistant .head button::before, .assistant .head button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-white);
}
.assistant .head button::before {
  transform: rotate(42deg);
}
.assistant .head button::after {
  transform: rotate(-42deg);
}
.assistant .avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--c-gray);
  border: 1px solid rgba(51, 51, 51, 0.8);
  display: grid;
  place-items: center;
  box-shadow: 0 1.6px 10px rgba(225, 196, 173, 0.5);
}
.assistant .body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.assistant .body p, .assistant .body ul {
  flex-shrink: 0;
}
.assistant .body ul {
  display: grid;
  gap: 10px;
}
.assistant .body ul button, .assistant .bubble {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 20px;
  background: var(--c-white);
  border-radius: 16px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 15px;
  text-align: left;
  color: var(--c-black);
}
.assistant .body ul button::after {
  content: "→";
  font-family: var(--ff-sans);
}
.assistant .body ul button:hover {
  background: var(--c-black);
  color: var(--c-white);
}
.assistant .bubble {
  display: block;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.7;
}
.assistant .bubble a {
  text-decoration: underline;
}
.assistant .bubble.user {
  background: var(--c-black);
  color: var(--c-white);
  margin-left: 15%;
  width: auto;
}
.assistant form {
  flex: 0 0 80px;
  background: #545454;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}
.assistant form input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 16px;
  background: #f0f0f0;
  padding: 0 52px 0 20px;
  font-family: var(--ff-serif);
  font-size: 16px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.assistant form input::placeholder {
  color: rgba(51, 51, 51, 0.4);
}
.assistant form button {
  position: absolute;
  right: 30px;
  width: 24px;
  height: 24px;
}
.assistant form button::before {
  content: "→";
  font-size: 18px;
}
@media (max-width: 1100px) {
  .assistant {
    right: 16px;
    bottom: 84px;
  }
  .assistant .launch {
    width: 60px;
    height: 60px;
  }
  .assistant .window {
    bottom: 76px;
  }
}
@media (max-width: 767px) {
  .assistant {
    right: 12px;
    bottom: 12px;
  }
  .assistant .launch {
    width: 52px;
    height: 52px;
  }
  .assistant .window {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 76px;
    width: auto;
    height: min(535px, 100vh - 120px);
  }
}
.assistant.open .window {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (max-width: 767px) {
  .assistant {
    transition: opacity 0.3s, visibility 0.3s;
  }
}

@media (max-width: 767px) {
  .navbar.open ~ .assistant {
    opacity: 0;
    visibility: hidden;
  }
}

/* ---------- ページの一番上へ戻るボタン（全ページ。footer.php・main.js） ----------
   縦の線（i）の上に、左へ折れた短い線（矢印の片側）を付け、右に「TOP」を縦に書く。
   背景の明るさが変わっても見えるように、白を「差の絶対値」で重ねる（白い所では黒、暗い所では白に見える） */
.pagetop {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 89;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 104px;
  padding: 0 4px;
  color: #fefefe;
  mix-blend-mode: difference;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.pagetop i {
  position: relative;
  width: 1px;
  height: 100%;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.pagetop i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 20px;
  background: currentColor;
  transform-origin: top;
  transform: rotate(28deg);
}
.pagetop span {
  writing-mode: vertical-rl;
  font-family: var(--ff-en);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
@media (hover: hover) and (min-width: 768px) {
  .pagetop:hover i {
    transform: translateY(-8px);
  }
}
@media (max-width: 1100px) {
  .pagetop {
    right: 16px;
    bottom: 160px;
    width: 60px;
    padding: 0 0 0 29.5px;
    height: 80px;
  }
}
@media (max-width: 767px) {
  .pagetop {
    right: 12px;
    bottom: 80px;
    width: 52px;
    padding: 0 0 0 25.5px;
    gap: 4px;
    height: 56px;
  }
  .pagetop i::after {
    height: 12px;
  }
  .pagetop span {
    margin-bottom: 4px;
    font-size: 11px;
  }
}

.pagetop.shown {
  opacity: 1;
  visibility: visible;
}

/* ---------- メンバー紹介のモーダル ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 970px);
  place-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.modal .box {
  position: relative;
  display: flex;
  width: 970px;
  max-width: 100%;
  min-height: 600px;
  max-height: calc(100vh - 40px);
  border-radius: 8px;
  overflow: hidden;
  background: #545454;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}
.modal .box.leave {
  animation: modal-leave 0.25s var(--ease) forwards;
}
.modal .box.enter {
  animation: modal-enter 0.4s var(--ease);
}
.modal .box.reverse.leave {
  animation-name: modal-leave-back;
}
.modal .box.reverse.enter {
  animation-name: modal-enter-back;
}
.modal .photo {
  flex: 0 0 49.5%;
  background: #cccccc;
}
.modal .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal .body {
  min-width: 0;
  overflow-wrap: anywhere;
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 108px 48px 48px;
  color: var(--c-white);
  font-family: var(--ff-sans);
}
.modal .body .close {
  position: absolute;
  right: 48px;
  top: 32px;
  width: 32px;
  height: 32px;
}
.modal .body .close::before, .modal .body .close::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  transform: rotate(45deg);
}
.modal .body .close::after {
  transform: rotate(-45deg);
}
.modal .body ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  margin-top: 36px;
}
.modal .body .other {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.modal .body .other:hover, .modal .body ul a:hover {
  opacity: 0.7;
}
.modal .name {
  padding-right: 24px;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
}
.modal .role {
  margin-top: 20px;
  font-size: 14px;
}
.modal .address {
  margin-top: 8px;
  font-size: 14px;
}
.modal .text {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.25;
}
.modal .prev, .modal .next {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
}
.modal .prev::before, .modal .next::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--c-white);
  border-right: 2px solid var(--c-white);
  transition: left 0.3s var(--ease);
}
.modal .next {
  right: max(0px, 50% - 485px - 64px);
}
.modal .next::before {
  left: 12px;
  transform: translateY(-50%) rotate(45deg);
}
.modal .next:hover::before {
  left: 16px;
}
.modal .prev {
  left: max(0px, 50% - 485px - 64px);
}
.modal .prev::before {
  left: 18px;
  transform: translateY(-50%) rotate(-135deg);
}
.modal .prev:hover::before {
  left: 14px;
}
@media (max-width: 767px) {
  .modal .box {
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  .modal .photo {
    flex-basis: 260px;
  }
  .modal .body {
    overflow-y: visible;
    padding: 32px 24px;
  }
  .modal .body .close {
    right: 16px;
    top: 16px;
  }
  .modal .name {
    font-size: 24px;
  }
  .modal .text {
    font-size: 15px;
    line-height: 1.6;
  }
  .modal .prev, .modal .next {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
  }
  .modal .prev {
    left: 8px;
  }
  .modal .next {
    right: 8px;
  }
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal.open .box {
  transform: none;
}

@keyframes modal-leave {
  to {
    transform: translateX(-80px);
    opacity: 0;
  }
}
@keyframes modal-enter {
  from {
    transform: translateX(80px);
    opacity: 0;
  }
}
@keyframes modal-leave-back {
  to {
    transform: translateX(80px);
    opacity: 0;
  }
}
@keyframes modal-enter-back {
  from {
    transform: translateX(-80px);
    opacity: 0;
  }
}
/* ---------- 県のメンバー一覧（地図のピンから開く。写真を押すとプロフィールのモーダル） ---------- */
.roster {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  grid-template-columns: minmax(0, 970px);
  place-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.roster .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}
.roster .box {
  position: relative;
  width: 970px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 56px 48px 48px;
  color: var(--c-white);
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
}
.roster .box .close {
  position: absolute;
  right: 32px;
  top: 24px;
  width: 32px;
  height: 32px;
}
.roster .box .close::before, .roster .box .close::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  transform: rotate(45deg);
}
.roster .box .close::after {
  transform: rotate(-45deg);
}
.roster ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 24px;
}
.roster li {
  min-width: 0;
  overflow-wrap: anywhere;
  width: 240px;
}
.roster li button {
  display: block;
  width: 100%;
  text-align: left;
}
.roster li button:hover img {
  transform: scale(1.05);
  filter: none;
}
.roster .thumb {
  display: block;
  aspect-ratio: 195/260;
  overflow: hidden;
  background: #eeeeee;
}
.roster .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s;
  filter: grayscale(0.2);
}
.roster .name {
  display: block;
  margin-top: 8px;
  font-family: var(--ff-en);
  font-size: 15px;
  line-height: 22px;
}
@media (max-width: 767px) {
  .roster .box {
    padding: 48px 20px 28px;
  }
  .roster .box .close {
    right: 16px;
    top: 12px;
  }
  .roster ul {
    gap: 20px 12px;
  }
  .roster li {
    width: calc((100% - 12px) / 2);
  }
}
.roster.open {
  opacity: 1;
  visibility: visible;
}
.roster.open .box {
  transform: none;
}

/* ---------- 地図のピン ---------- */
.pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 35px;
  padding: 0 20px 0 6px;
  min-width: 114px;
  background: var(--c-pin);
  border-radius: 50px;
  font-family: var(--ff-en);
  font-size: 17.6px;
  letter-spacing: 0.08em;
  color: var(--c-white);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.pin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  animation: pin-ripple 3.2s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pin::before {
    animation: none;
  }
}
.pin:disabled::before {
  animation: none;
}
.pin i {
  width: 25px;
  height: 23px;
  border-radius: 50%;
  background: var(--c-white);
  position: relative;
  flex: none;
}
.pin i::before, .pin i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.6px;
  background: var(--c-pin);
  transform: translate(-50%, -50%);
}
.pin i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
@media (max-width: 767px) {
  .pin {
    height: 24px;
    min-width: 0;
    padding: 0 10px 0 4px;
    gap: 6px;
    font-size: 11px;
  }
  .pin i {
    width: 16px;
    height: 16px;
  }
  .pin i::before, .pin i::after {
    width: 8px;
  }
}
.pin::after {
  content: "";
  position: absolute;
  left: 9.5px;
  bottom: -10px;
  border-style: solid;
  border-width: 13px 9px 0 9px;
  border-color: var(--c-pin) transparent transparent;
  transition: border-color 0.3s;
}
.pin:hover {
  background: #1b9fdc;
  transform: translateY(-4px);
  z-index: 2;
}
.pin:hover::after {
  border-top-color: #1b9fdc;
}
@media (max-width: 767px) {
  .pin::after {
    left: 6px;
    bottom: -6px;
    border-width: 8px 6px 0;
  }
}
.pin:disabled {
  opacity: 0.45;
  cursor: default;
}
.pin:disabled:hover {
  background: var(--c-pin);
  transform: none;
}
.pin:disabled:hover::after {
  border-top-color: var(--c-pin);
}

@keyframes pin-ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(60, 184, 241, 0.55);
  }
  45%, 100% {
    box-shadow: 0 0 0 14px rgba(60, 184, 241, 0);
  }
}
/* ---------- コラムの一覧（TOP・横並びの行） ---------- */
.articles {
  width: 1024px;
  max-width: 100%;
  margin: 0 auto;
}
.articles li {
  border-bottom: 0.8px solid var(--c-black);
}
.articles a {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0;
  transition: opacity 0.3s;
}
.articles a:hover {
  opacity: 0.7;
}
.articles a:hover img {
  transform: scale(1.05);
}
.articles figure {
  flex: 0 0 180px;
  height: 120px;
  overflow: hidden;
}
.articles img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.articles .title {
  font-weight: 500;
  font-size: 16px;
  line-height: 23.2px;
  letter-spacing: 0.08em;
}
.articles .meta {
  display: inline-flex;
  gap: 32px;
  margin-top: 10px;
  padding-top: 0;
  border-top: 1px dotted var(--c-black);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 23.2px;
}
@media (max-width: 767px) {
  .articles a {
    gap: 16px;
    padding: 16px 0;
  }
  .articles figure {
    flex-basis: 100px;
    height: 68px;
  }
  .articles .title {
    font-size: 14px;
  }
}

/* ---------- ページ送り（Back / 01 —— 03 / Next） ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.pager a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  height: 33px;
  padding: 0 12px;
  border: 1px solid var(--c-black);
  font-family: var(--ff-en);
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.3s, color 0.3s;
}
.pager a:hover {
  background: var(--c-black);
  color: var(--c-white);
}
.pager .progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.pager .progress i {
  position: relative;
  width: 282px;
  height: 1.5px;
  background: #cccccc;
}
.pager .progress b {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--c-black);
}
@media (max-width: 767px) {
  .pager a {
    font-size: 15px;
    height: 30px;
  }
  .pager .progress i {
    width: 80px;
  }
}

/* ---------- 画像が入るまでの仮の箱 ---------- */
.placeholder {
  background: #d9d9d9;
  display: grid;
  place-items: center;
  font-family: var(--ff-base);
  font-weight: 700;
  font-size: 40px;
  color: var(--c-black);
}

.placeholder.banner, .banner {
  height: 654px;
}

.placeholder.banner img, .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .placeholder.banner, .banner {
    height: 220px;
  }
}
/* ---------- 制作実績のカード ---------- */
.work {
  display: flex;
  flex-direction: column;
  background: #d9d9d9;
  height: 100%;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.work .thumb {
  display: block;
  aspect-ratio: 590/205;
  overflow: hidden;
  background: #d9d9d9 linear-gradient(135deg, rgba(254, 254, 254, 0.25), transparent);
}
.work .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work .body {
  display: block;
  padding: 12px 38px 44px 19px;
}
.work .client {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}
.work .title {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}
.work .meta {
  display: block;
  margin-top: 10px;
}
.work .row {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding-left: 20px;
}
.work .label {
  flex: 0 0 84px;
  font-family: var(--ff-serif);
  font-size: 12px;
}
.work .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.work .tags em {
  font-style: normal;
  font-size: 16px;
  line-height: 18px;
  padding: 0 2px;
  background: var(--c-white);
  border-radius: 5px;
}
@media (max-width: 767px) {
  .work .body {
    padding: 12px 16px 24px;
  }
  .work .title {
    font-size: 16px;
    line-height: 1.5;
  }
  .work .row {
    padding-left: 0;
  }
  .work .tags em {
    font-size: 13px;
  }
}
.work:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ---------- コラムのカード ----------
   画像の下（カテゴリー・日付・タイトル）は、黒（#333333）を 20% まで薄くしたグレーの背景 */
.post {
  display: block;
  height: 100%;
  padding-bottom: 24px;
  background: rgba(51, 51, 51, 0.2);
  transition: background-color 0.3s;
}
.post figure {
  aspect-ratio: 454/244;
  overflow: hidden;
}
.post figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.post .meta {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 24px 10px 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
}
.post .category {
  display: inline-block;
  height: 32px;
  line-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #999999;
  color: var(--c-white);
}
.post .title {
  margin: 8px 10px 0;
  font-size: 20px;
  line-height: 23.2px;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
}
@media (max-width: 767px) {
  .post .meta {
    gap: 16px;
    font-size: 13px;
    margin-top: 14px;
  }
  .post .category {
    height: 26px;
    line-height: 26px;
  }
  .post .title {
    font-size: 15px;
    line-height: 1.6;
  }
}
.post:hover {
  background: rgba(51, 51, 51, 0.3);
}
.post:hover figure img {
  transform: scale(1.04);
}
.post:hover .category {
  background: var(--c-white);
  color: #333333;
}

/* =========================================================
   下層ページのメインビジュアル
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 861px;
  height: calc(100vh - var(--header-h));
  max-height: 900px;
  padding: 32px 60px 0;
}
.hero .title {
  position: absolute;
  left: 60px;
  right: 60px;
  top: 41%;
  z-index: 2;
}
.hero .title h1 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.5;
  border-top: 1px solid currentColor;
  padding-top: 0;
  margin-top: 8px;
}
.hero .deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: hero-float 9s ease-in-out infinite alternate;
}
@media (max-width: 767px) {
  .hero {
    min-height: 0;
    height: auto;
    padding: 20px 20px 120px;
  }
  .hero .title {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-top: 180px;
  }
  .hero .title h1 {
    font-size: 34px;
  }
}
.hero.light {
  background: #fafafa;
  color: var(--c-text);
}
.hero.dark {
  background: var(--c-dark);
  color: var(--c-white);
}
.hero.gray {
  background: #545454;
  color: var(--c-white);
}

@keyframes hero-float {
  to {
    transform: translate3d(0, -14px, 0) rotate(1.5deg);
  }
}
.hero nav, .overview nav, .headline nav {
  position: relative;
  z-index: 2;
  font-family: var(--ff-en);
  font-size: 20px;
  line-height: 1.25;
}

.hero nav ol, .overview nav ol, .headline nav ol {
  display: flex;
  flex-wrap: wrap;
}

.hero nav li + li::before,
.overview nav li + li::before,
.headline nav li + li::before {
  content: ">";
  margin: 0 0.3em;
}

.hero nav a:hover,
.overview nav a:hover,
.headline nav a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .hero nav, .overview nav, .headline nav {
    font-size: 13px;
  }
}
.hero .title p, .overview .title p {
  font-family: var(--ff-serif);
  font-size: 32px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .hero .title p, .overview .title p {
    font-size: 20px;
  }
}
/* ---------- ページごとの背景と装飾 ---------- */
.hero.journal {
  background: linear-gradient(180deg, #d9d9d9, #f0f0f0);
}
.hero.privacy {
  background: #f0f0f0;
}
.hero.portfolio {
  background: linear-gradient(180deg, #fefefe, #f0f0f0);
}
.hero.story {
  perspective: 1600px;
}
.hero.story canvas {
  left: 29.9%;
  top: 0;
  width: 67.7%;
  aspect-ratio: 1463/1280;
  opacity: 0.9;
  animation: about-hero-float 6s ease-in-out infinite alternate;
}
.hero.story img {
  left: 51%;
  top: 92px;
  width: 49%;
  animation: about-hero-drift 5s ease-in-out -2s infinite alternate, about-hero-spin 60s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero.story .deco {
    animation: none;
  }
}
.hero.crew {
  min-height: 0;
  height: 600px;
}
.hero.crew .title {
  top: 330px;
}
@media (max-width: 767px) {
  .hero.crew {
    height: auto;
    padding-bottom: 60px;
  }
  .hero.crew .title {
    top: auto;
  }
}
.hero.crew .deco {
  left: 54%;
  top: 30px;
  width: 42%;
  aspect-ratio: 1276/1002;
}
@media (prefers-reduced-motion: reduce) {
  .hero.crew .deco {
    animation: none;
  }
}
.hero.offer .deco {
  left: 43.4%;
  top: 50px;
  width: 49.4%;
  aspect-ratio: 1067/1062;
}
@media (prefers-reduced-motion: reduce) {
  .hero.offer .deco {
    animation: none;
  }
}
.hero.mail .deco {
  left: 46%;
  top: 10px;
  width: 52%;
  aspect-ratio: 1683/1771;
}
@media (prefers-reduced-motion: reduce) {
  .hero.mail .deco {
    animation: none;
  }
}
.hero.privacy .deco {
  left: 47.4%;
  top: 57px;
  width: 43.75%;
}
@media (max-width: 767px) {
  .hero .deco {
    left: auto !important;
    right: -25%;
    top: 30px !important;
    width: 95% !important;
    opacity: 0.6 !important;
  }
}

@keyframes about-hero-float {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-20px, -40px, 0);
  }
}
@keyframes about-hero-spin {
  from {
    rotate: y 0deg;
  }
  to {
    rotate: y 360deg;
  }
}
@keyframes about-hero-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(36px, 24px, 0);
  }
}
/* ---------- CREWの地図（TOP・ABOUT） ---------- */
.crewmap {
  position: relative;
  background: var(--c-white);
  padding: 248px 0 140px;
}
.crewmap .inner {
  max-width: calc(var(--inner) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.crewmap .map {
  position: relative;
  margin: 73px -38px 0;
  overflow: hidden;
}
.crewmap .map li:not([data-region=top]) {
  opacity: 0;
  visibility: hidden;
}
.crewmap .map[data-zoom=east] {
  --k: calc(1 / 1.7);
}
.crewmap .map[data-zoom=east] .stage {
  transform: translate(-68%, -6.8%) scale(1.7);
}
.crewmap .map[data-zoom=east] li[data-region=east] {
  opacity: 1;
  visibility: visible;
}
.crewmap .map[data-zoom=west] {
  --k: calc(1 / 1.6);
}
.crewmap .map[data-zoom=west] .stage {
  transform: translate(-8%, -48%) scale(1.6);
}
.crewmap .map[data-zoom=west] li[data-region=west] {
  opacity: 1;
  visibility: visible;
}
.crewmap .map[data-zoom] li[data-region=top] {
  opacity: 0;
  visibility: hidden;
}
.crewmap .map[data-zoom] .back {
  opacity: 1;
  visibility: visible;
}
.crewmap .stage {
  position: relative;
  transform-origin: 0 0;
  transition: transform 0.8s var(--ease);
}
.crewmap .stage .base {
  width: 100%;
  opacity: 0;
}
.crewmap .stage ul {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.crewmap .stage ul li {
  position: absolute;
  transform: scale(var(--k, 1)) translate(-18.5px, -45px);
  transform-origin: 0 0;
  pointer-events: auto;
  transition: opacity 0.4s 0.3s, visibility 0.4s 0.3s;
}
.crewmap .stage ul li:nth-child(3n+2) .pin::before {
  animation-delay: 1.1s;
}
.crewmap .stage ul li:nth-child(3n) .pin::before {
  animation-delay: 2.2s;
}
.crewmap .stage ul li:not([data-region=top]) {
  transform: scale(var(--k, 1)) translate(-15px, -39px);
}
.crewmap .stage ul li:not([data-region=top]) .pin {
  height: 30px;
  min-width: 0;
  padding: 0 11px;
  gap: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.crewmap .stage ul li:not([data-region=top]) .pin i {
  display: none;
}
.crewmap .stage ul li:not([data-region=top]) .pin::after {
  left: 8px;
  bottom: -9px;
  border-width: 10px 7px 0;
}
.crewmap .land {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease), opacity 0.5s var(--ease);
  pointer-events: none;
}
.crewmap .land img {
  width: 100%;
  height: 100%;
  pointer-events: auto;
}
.crewmap .land[data-land=east] img {
  clip-path: polygon(58% 0, 100% 0, 100% 58%, 70% 70%, 58% 70%);
}
.crewmap .land[data-land=west] img {
  clip-path: polygon(0 0, 58% 0, 58% 70%, 70% 70%, 100% 58%, 100% 100%, 0 100%);
}
.crewmap .map:not([data-zoom]) .land {
  cursor: pointer;
}
.crewmap .map:not([data-zoom]) .land:hover {
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.22)) brightness(1.06);
}
.crewmap .map:not([data-zoom]):has(.land:hover, [data-zoom]:hover) .land {
  opacity: 0.45;
}
.crewmap .map:not([data-zoom]):has(.land[data-land=east]:hover, [data-zoom=east]:hover) .land[data-land=east] {
  opacity: 1;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.22)) brightness(1.06);
}
.crewmap .map:not([data-zoom]):has(.land[data-land=west]:hover, [data-zoom=west]:hover) .land[data-land=west] {
  opacity: 1;
  filter: drop-shadow(0 12px 12px rgba(0, 0, 0, 0.22)) brightness(1.06);
}
.crewmap .back {
  position: absolute;
  right: 38px;
  bottom: 24px;
  z-index: 2;
  height: 40px;
  padding: 0 24px;
  background: var(--c-white);
  border: 1px solid var(--c-black);
  border-radius: 50px;
  font-size: 14px;
  letter-spacing: 0.08em;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s, background-color 0.3s;
}
.crewmap .back:hover {
  background: var(--c-teal);
}
@media (prefers-reduced-motion: reduce) {
  .crewmap .stage, .crewmap .stage ul li, .crewmap .land {
    transition: none;
  }
}
.crewmap .summary {
  position: absolute;
  left: 9.5%;
  top: 5.6%;
  display: flex;
  gap: 15px;
  z-index: 1;
}
.crewmap .total {
  padding-right: 15px;
  border-right: 1px solid var(--c-black);
  text-align: center;
}
.crewmap .label {
  font-family: var(--ff-en);
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1.25;
}
.crewmap .number {
  font-size: 24px;
  line-height: 1.4;
  margin-top: 10px;
}
.crewmap .number small {
  font-size: 16px;
  margin-left: 0.2em;
}
.crewmap dl {
  font-family: var(--ff-en);
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 25px;
}
.crewmap dl .item {
  display: flex;
  gap: 22px;
}
.crewmap dl dt {
  width: 76px;
}
.crewmap .actions {
  margin-top: 37px;
}
@media (max-width: 767px) {
  .crewmap {
    padding: 120px 0 80px;
  }
  .crewmap .map {
    margin: 32px -20px 0;
    padding-top: 100px;
  }
  .crewmap .map[data-zoom=east] .stage {
    transform: translate(-68%, -17%) scale(1.7);
  }
  .crewmap .stage ul li {
    transform: scale(var(--k, 1)) translate(-12px, -30px);
  }
  .crewmap .stage ul li:not([data-region=top]) {
    transform: scale(var(--k, 1)) translate(-7px, -7px);
  }
  .crewmap .stage ul li:not([data-region=top]) .pin {
    width: 14px;
    height: 14px;
    padding: 0;
    font-size: 0;
    border: 1.5px solid var(--c-white);
  }
  .crewmap .stage ul li:not([data-region=top]) .pin::after {
    content: none;
  }
  .crewmap .back {
    right: 20px;
    bottom: 12px;
    height: 32px;
    padding: 0 16px;
    font-size: 12px;
  }
  .crewmap .summary {
    left: 20px;
    top: 0;
  }
}

/* ---- FV のスクロール演出（main.js が on を付けると、FV を止めたまま右側のアニメーションの中へ入る） ---- */
.dive {
  background: var(--c-dark);
}
.dive.on::after {
  content: "";
  display: block;
  height: var(--dive-length, 600vh);
}
.dive.on .cover {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  max-height: none;
}
.dive.on + .collage {
  display: none;
}
.dive.on ~ .about {
  z-index: 2;
  margin-top: -100vh;
}

/* ---- FV（最初の画面） ---- */
.cover {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  color: var(--c-white);
  height: calc(100vh - 96px);
  min-height: 640px;
  max-height: 945px;
}
.cover canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover .inner {
  position: absolute;
  left: 5.63vw;
  top: 15.3%;
  z-index: 2;
}
.cover h1 {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: clamp(40px, min(5.56vw, 8.9vh), 80px);
  line-height: 1.5;
  letter-spacing: 0;
  padding-bottom: 0.55em;
  border-bottom: 0.8px solid var(--c-white);
  width: max-content;
  min-width: 8.44em;
}
.cover h1 span {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(14px, min(1.39vw, 2.2vh), 20px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 0.8em;
  opacity: 0.85;
}
.cover .inner p {
  margin-top: 0.3em;
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(30px, min(4.72vw, 7.5vh), 68px);
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.cover .poly {
  position: absolute;
  inset: auto;
  left: 54.6vw;
  top: 8%;
  width: 42.6vw;
  max-width: 614px;
  height: auto;
  aspect-ratio: 614/568;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(254, 254, 254, 0.08));
  animation: poly-float 8s ease-in-out infinite alternate;
}
.cover .portal {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  place-items: center;
  opacity: 0;
  background: #000000;
}
.cover .portal .frame {
  position: absolute;
  inset: 0;
}
.cover .portal figure {
  position: absolute;
  overflow: hidden;
}
.cover .portal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover .portal figure:nth-child(1) {
  left: 8%;
  top: 12%;
  width: 19%;
  aspect-ratio: 334/222;
}
.cover .portal figure:nth-child(2) {
  left: 58%;
  top: 6%;
  width: 17%;
  aspect-ratio: 400/320;
}
.cover .portal figure:nth-child(3) {
  left: 30%;
  top: 44%;
  width: 13%;
  aspect-ratio: 293/391;
}
.cover .portal figure:nth-child(4) {
  left: 72%;
  top: 52%;
  width: 20%;
  aspect-ratio: 386/290;
}
.cover .portal figure:nth-child(5) {
  left: 6%;
  top: 58%;
  width: 16%;
  aspect-ratio: 322/282;
}
.cover .portal figure:nth-child(6) {
  left: 39%;
  top: 4%;
  width: 13%;
  aspect-ratio: 322/282;
}
.cover .portal figure:nth-child(7) {
  left: 50%;
  top: 64%;
  width: 15%;
  aspect-ratio: 322/282;
}
.cover .portal figure:nth-child(8) {
  left: 82%;
  top: 22%;
  width: 13%;
  aspect-ratio: 322/282;
}
.cover .portal canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cover .portal .word {
  z-index: 5;
}
.cover .portal .slice {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}
.cover .portal.bend figure {
  visibility: hidden;
}
.cover .portal.bend .word {
  visibility: hidden;
}
.cover .portal.strip figure {
  overflow: visible;
}
.cover .portal.strip figure img:not(.slice) {
  visibility: hidden;
}
.cover a {
  position: absolute;
  right: 55px;
  bottom: 0;
  z-index: 2;
  width: 80px;
  padding-bottom: 60px;
  text-align: center;
  font-family: var(--ff-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
}
.cover a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 52px;
  background: var(--c-white);
  transform-origin: top;
  animation: scroll-line 2s var(--ease) infinite;
}
.cover h1, .cover .inner p, .cover .poly {
  opacity: 0;
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.cover h1 {
  transform: translateY(20px);
}
.cover .inner p {
  transform: translateY(20px);
  transition-delay: 0.3s;
}
@media (max-width: 767px) {
  .cover {
    height: calc(100svh - var(--header-h));
    min-height: 560px;
  }
  .cover .inner {
    left: 20px;
    right: 20px;
    top: 10%;
  }
  .cover h1 {
    font-size: 9vw;
    min-width: 0;
    width: auto;
  }
  .cover h1 span {
    font-size: 3.5vw;
    margin-bottom: 0.5em;
  }
  .cover .inner p {
    font-size: 7.4vw;
  }
  .cover .poly {
    left: auto;
    right: -18vw;
    top: auto;
    bottom: 15%;
    width: 78vw;
    opacity: 0.7 !important;
  }
  .cover a {
    right: 10px;
    bottom: calc(100lvh - 100svh);
  }
  .cover .portal figure:nth-child(1) {
    left: 4%;
    top: 14%;
    width: 42%;
  }
  .cover .portal figure:nth-child(2) {
    left: 54%;
    top: 8%;
    width: 38%;
  }
  .cover .portal figure:nth-child(3) {
    left: 30%;
    top: 44%;
    width: 30%;
  }
  .cover .portal figure:nth-child(4) {
    left: 50%;
    top: 62%;
    width: 44%;
  }
  .cover .portal figure:nth-child(5) {
    left: 2%;
    top: 70%;
    width: 36%;
  }
  .cover .portal figure:nth-child(6) {
    left: 30%;
    top: 2%;
    width: 26%;
  }
  .cover .portal figure:nth-child(7) {
    left: 4%;
    top: 40%;
    width: 26%;
  }
  .cover .portal figure:nth-child(8) {
    left: 66%;
    top: 34%;
    width: 30%;
  }
}

.dive.on .cover .portal {
  display: grid;
}

.cover.ready h1, .cover.ready .inner p {
  opacity: 1;
  transform: none;
}
.cover.ready .poly {
  opacity: 1;
  transition-delay: 0.6s;
}

@keyframes poly-float {
  from {
    transform: translateY(0) rotate(0);
  }
  to {
    transform: translateY(-18px) rotate(4deg);
  }
}
@keyframes scroll-line {
  0% {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
/* ---- 写真のコラージュ ---- */
.collage {
  background: var(--c-dark);
  padding: 280px 81px 120px;
}
.collage .frame {
  position: relative;
  max-width: 1278px;
  margin: 0 auto;
  aspect-ratio: 1278/478;
}
.collage figure {
  position: absolute;
  overflow: hidden;
}
.collage figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.collage figure:hover img {
  transform: scale(1.06);
}
.collage figure:nth-child(1) {
  left: 0;
  top: 46.4%;
  width: 26.1%;
  height: 46.4%;
  z-index: 1;
}
.collage figure:nth-child(2) {
  left: 41.8%;
  top: 17.8%;
  width: 31.3%;
  height: 66.9%;
  z-index: 2;
}
.collage figure:nth-child(3) {
  left: 19.6%;
  top: 0;
  width: 22.9%;
  height: 81.8%;
  z-index: 3;
}
.collage figure:nth-child(4) {
  left: 69.8%;
  top: 39.3%;
  width: 30.2%;
  height: 60.7%;
  z-index: 4;
}
.collage figure.fade:nth-child(2) {
  transition-delay: 0.15s;
}
.collage figure.fade:nth-child(3) {
  transition-delay: 0.3s;
}
.collage figure.fade:nth-child(4) {
  transition-delay: 0.45s;
}
@media (max-width: 767px) {
  .collage {
    padding: 80px 20px;
  }
  .collage .frame {
    aspect-ratio: 1278/560;
  }
}

/* ---- About ---- */
.about {
  position: relative;
  overflow: hidden;
  background: var(--c-gray-bg);
  padding: 160px 0 calc(121px + 200px);
  min-height: calc(1190px + 200px);
}
.about canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.about .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) {
  .about .inner {
    padding: 0 48px;
  }
}
@media (max-width: 767px) {
  .about .inner {
    padding: 0 20px;
  }
}
.about .inner {
  position: relative;
}
.about .text {
  margin-top: 75px;
  max-width: 788px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 35px;
}
.about .text p + p {
  margin-top: 35px;
}
.about h2 span, .about .text span {
  display: inline-block;
}
.about .lead {
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 40px;
}
.about .actions {
  margin-top: 318px;
}
@media (max-width: 767px) {
  .about {
    min-height: 0;
    padding: 80px 0 calc(80px + 100px);
  }
  .about canvas {
    opacity: 0.45;
  }
  .about .text {
    margin-top: 32px;
    font-size: 15px;
    line-height: 2;
  }
  .about .text p + p {
    margin-top: 20px;
  }
  .about .lead {
    font-size: 19px;
    margin-bottom: 24px;
  }
  .about .actions {
    margin-top: 48px;
  }
}

/* ---- Service ---- */
.service {
  position: relative;
  overflow: hidden;
  background: var(--c-dark);
  color: var(--c-white);
  padding: 160px 0 calc(75px + 200px);
}
.service canvas {
  position: absolute;
  pointer-events: none;
  max-width: none;
}
.service canvas:nth-of-type(1) {
  left: 42.6%;
  top: 4vw;
  width: 57.4%;
  aspect-ratio: 1239/1109;
  opacity: 0.9;
  animation: service-drift 7s ease-in-out infinite alternate;
}
.service canvas:nth-of-type(2) {
  left: 11.7%;
  top: 52px;
  width: 52.2%;
  aspect-ratio: 1128/1031;
  animation: service-float 5s ease-in-out infinite alternate;
}
.service canvas:nth-of-type(3) {
  left: 64.5%;
  top: 430px;
  width: 40.5%;
  aspect-ratio: 875/912;
  animation: service-float 6s ease-in-out -2s infinite alternate-reverse;
}
@media (prefers-reduced-motion: reduce) {
  .service canvas:nth-of-type(n) {
    animation: none;
  }
}
@media (max-width: 767px) {
  .service canvas:nth-of-type(n) {
    animation: none;
  }
}
.service .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) {
  .service .inner {
    padding: 0 48px;
  }
}
@media (max-width: 767px) {
  .service .inner {
    padding: 0 20px;
  }
}
.service .inner {
  position: relative;
  z-index: 2;
}
.service ul {
  margin-top: 63px;
}
.service ul.fade {
  opacity: 1;
  transform: none;
}
.service ul li {
  opacity: 0;
  transform: translateX(80vw);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.service ul li:nth-child(2) {
  transition-delay: 0.25s;
}
.service ul li:nth-child(3) {
  transition-delay: 0.5s;
}
.service ul li:nth-child(4) {
  transition-delay: 0.75s;
}
.service ul li:nth-child(5) {
  transition-delay: 1s;
}
.service ul li:nth-child(6) {
  transition-delay: 1.25s;
}
@media (prefers-reduced-motion: reduce) {
  .service ul li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.service ul.shown li {
  opacity: 1;
  transform: none;
}
.service li {
  border-bottom: 1px solid var(--c-white);
}
.service li a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  padding: 24px 31px 24px 4px;
  transition: background-color 0.4s var(--ease);
}
.service li a .name, .service li a .more {
  position: relative;
  z-index: 1;
}
.service li a .more {
  min-width: 205px;
}
@media (hover: hover) and (min-width: 768px) {
  .service li a:hover {
    background: rgba(254, 254, 254, 0.2);
  }
  .service li a:hover .more i {
    width: 28px;
  }
  .service li a:hover .bubble {
    opacity: 1;
    transform: translate(8px, -100%) scale(1);
  }
  .service li a:hover .bubble span {
    scale: 1;
    animation: click-grow 1.8s var(--ease) calc(var(--i, 0) * 0.08s) infinite backwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service li a:hover .bubble span {
    animation: none;
  }
}
.service .title {
  display: block;
  font-family: var(--ff-en);
  font-size: 36px;
  line-height: 45px;
  letter-spacing: 0.08em;
}
.service .catch {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  line-height: 24px;
}
.service .backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.service .backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  filter: brightness(0.4);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.service .bubble {
  position: absolute;
  left: var(--x, 70%);
  top: var(--y, 50%);
  transform: translate(8px, -100%) scale(0.6);
  transform-origin: left bottom;
  pointer-events: none;
  z-index: 2;
  width: 60px;
  height: 50px;
  border-radius: 40% 40% 40% 10%;
  background: #444444;
  color: var(--c-white);
  font-style: normal;
  font-family: var(--ff-serif);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease);
  animation: click-morph 2.4s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .service .bubble {
    animation: none;
  }
}
.service .bubble span {
  display: inline-block;
  scale: 0;
}
@media (prefers-reduced-motion: reduce) {
  .service .bubble span {
    scale: 1;
  }
}
.service .actions {
  margin-top: 45px;
  margin-right: -27px;
}
@media (max-width: 767px) {
  .service {
    padding: 80px 0 calc(60px + 100px);
  }
  .service canvas:nth-of-type(1) {
    width: 120%;
    left: 20%;
    top: 6vw;
  }
  .service canvas:nth-of-type(2), .service canvas:nth-of-type(3) {
    display: none;
  }
  .service ul {
    margin-top: 32px;
  }
  .service li a {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 20px 0;
    gap: 8px;
  }
  .service .title {
    font-size: 26px;
    line-height: 1.3;
  }
  .service .catch {
    font-size: 14px;
  }
  .service li a .more {
    min-width: 0;
    padding: 0;
    height: 28px;
    font-size: 13px;
    align-self: flex-end;
  }
  .service .backdrop, .service .bubble {
    display: none;
  }
  .service .actions {
    margin-right: 0;
  }
}
@media (hover: hover) and (min-width: 768px) {
  .service:has(li:nth-child(1) a:hover) .backdrop img:nth-child(1) {
    opacity: 1;
  }
  .service:has(li:nth-child(2) a:hover) .backdrop img:nth-child(2) {
    opacity: 1;
  }
  .service:has(li:nth-child(3) a:hover) .backdrop img:nth-child(3) {
    opacity: 1;
  }
  .service:has(li:nth-child(4) a:hover) .backdrop img:nth-child(4) {
    opacity: 1;
  }
  .service:has(li:nth-child(5) a:hover) .backdrop img:nth-child(5) {
    opacity: 1;
  }
}

@keyframes service-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0);
    opacity: 0.9;
  }
  to {
    transform: translate3d(-48px, 32px, 0) rotate(-6deg);
    opacity: 0.6;
  }
}
@keyframes service-float {
  from {
    transform: translate3d(0, 0, 0) rotate(0);
  }
  to {
    transform: translate3d(0, -45px, 0) rotate(10deg);
  }
}
/* ---- Approach ---- */
.approach {
  --grad-top: #333333;
  --grad-mid: #999999;
  --grad-mid-at: 45%;
  --grad-bottom: #fefefe;
  background: linear-gradient(180deg, var(--grad-top) 0%, var(--grad-mid) var(--grad-mid-at), var(--grad-bottom) 100%);
  padding: 146px 0 calc(120px + 300px);
  color: var(--c-white);
  overflow: hidden;
}
.approach h2 {
  padding-left: 127px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .approach h2 {
    padding-left: 48px;
  }
}
.approach .list {
  position: relative;
  max-width: 1440px;
  margin: 76px auto 0;
  display: grid;
  gap: 106px;
}
.approach .list svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.approach .list svg path {
  fill: none;
  stroke-width: 1;
}
.approach .list svg circle {
  fill: currentColor;
  stroke-width: 1;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.approach .list svg circle.reached {
  transform: scale(1);
}
.approach article {
  position: relative;
  display: flex;
  align-items: center;
}
.approach article:hover figure img {
  transform: scale(1.04);
}
.approach figure {
  overflow: hidden;
}
.approach figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.approach h3 {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0;
}
.approach h3 span {
  margin-right: 1em;
}
.approach .catch {
  margin-top: 14px;
  font-family: var(--ff-mincho);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.approach .description {
  margin-top: 13px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
.approach article:nth-child(1) .text {
  margin-left: 14%;
  width: 38%;
}
.approach article:nth-child(1) figure {
  margin-left: auto;
  margin-right: 5.56%;
  width: 33.7%;
  aspect-ratio: 485/253;
}
.approach article:nth-child(2) figure {
  margin-left: 5.63%;
  width: 26.2%;
  aspect-ratio: 377/330;
}
.approach article:nth-child(2) .text {
  margin-left: 18.2%;
  width: 44.4%;
}
.approach article:nth-child(3) .text {
  margin-left: 14%;
  width: 25%;
  color: var(--c-black);
}
.approach article:nth-child(3) figure {
  margin-left: auto;
  margin-right: 5.56%;
  width: 41.7%;
  aspect-ratio: 601/316;
}
.approach article:nth-child(4) figure {
  margin-left: 5.56%;
  width: 38.75%;
  aspect-ratio: 558/253;
}
.approach article:nth-child(4) .text {
  margin-left: 7.9%;
  width: 34%;
  color: var(--c-black);
}
@media (max-width: 767px) {
  .approach {
    padding: 80px 0 calc(80px + 150px);
  }
  .approach h2 {
    padding-left: 20px;
  }
  .approach .list {
    margin-top: 40px;
    gap: 56px;
    padding: 0 20px;
  }
  .approach article {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .approach article:nth-child(2), .approach article:nth-child(4) {
    flex-direction: column-reverse;
  }
  .approach article .text, .approach article figure {
    margin: 0 !important;
    width: 100% !important;
  }
  .approach h3 {
    font-size: 28px;
  }
  .approach .catch {
    font-size: 19px;
    margin-top: 8px;
  }
  .approach .description {
    font-size: 15px;
  }
}

/* ---- Works（実績の数字と一覧） ---- */
.results {
  background: var(--c-white);
  padding: 160px 0 330px;
  overflow-x: clip;
}
.results .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
  z-index: 1;
}
@media (max-width: 1100px) {
  .results .inner {
    padding: 0 48px;
  }
}
@media (max-width: 767px) {
  .results .inner {
    padding: 0 20px;
  }
}
.results .stats {
  display: flex;
  justify-content: center;
  margin-top: 75px;
  margin-bottom: 80px;
}
.results .stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 0 25px;
  border-right: 1px solid var(--c-black);
}
.results .stats li:last-child {
  border-right: 0;
}
.results .number {
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.45;
  letter-spacing: 0.08em;
}
.results .label {
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.results .list {
  margin: 46px 0 0 auto;
  width: 65%;
  max-width: 832px;
  display: grid;
  position: relative;
}
.results .list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 26px 4px 26px;
  border-bottom: 1px solid var(--c-black);
  font-size: 20px;
  transition: padding 0.3s var(--ease);
}
.results .list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(51, 51, 51, 0.05);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
@media (hover: hover) and (min-width: 768px) {
  .results .list a:hover {
    padding-left: 16px;
  }
  .results .list a:hover::after {
    opacity: 1;
  }
  .results .list a:hover i {
    opacity: 1;
    transform: translate(8px, -100%) scale(1);
  }
  .results .list a:hover i span {
    scale: 1;
    animation: click-grow 1.8s var(--ease) calc(var(--i, 0) * 0.08s) infinite backwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .results .list a:hover i span {
    animation: none;
  }
}
.results .list i {
  position: absolute;
  left: var(--x, 70%);
  top: var(--y, 50%);
  transform: translate(8px, -100%) scale(0.6);
  transform-origin: left bottom;
  pointer-events: none;
  z-index: 1;
  width: 60px;
  height: 50px;
  border-radius: 40% 40% 40% 10%;
  background: #444444;
  color: var(--c-white);
  font-style: normal;
  font-family: var(--ff-serif);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.4s var(--ease);
  animation: click-morph 2.4s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .results .list i {
    animation: none;
  }
}
.results .list i span {
  display: inline-block;
  scale: 0;
}
@media (prefers-reduced-motion: reduce) {
  .results .list i span {
    scale: 1;
  }
}
.results .list::before {
  content: "";
  position: absolute;
  right: 0;
  top: -46px;
  width: 153.8461538462%;
  height: 1px;
  background: linear-gradient(90deg, rgba(51, 51, 51, 0.15), #333333 30%, #333333 70%, rgba(51, 51, 51, 0.15));
}
.results .list.fade {
  opacity: 1;
  transform: none;
}
.results .list li {
  opacity: 0;
  transform: translateX(80vw);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.results .list li:nth-child(2) {
  transition-delay: 0.25s;
}
.results .list li:nth-child(3) {
  transition-delay: 0.5s;
}
.results .list li:nth-child(4) {
  transition-delay: 0.75s;
}
.results .list li:nth-child(5) {
  transition-delay: 1s;
}
.results .list li:nth-child(6) {
  transition-delay: 1.25s;
}
@media (prefers-reduced-motion: reduce) {
  .results .list li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.results .list.shown li {
  opacity: 1;
  transform: none;
}
.results .board {
  position: relative;
  container-type: inline-size;
}
.results .preview {
  --h: min(calc((35cqw - 56px) * 0.75), 315px);
  position: absolute;
  left: 0;
  top: max(0px, 50% + 23px - var(--h) / 2);
  width: calc(35% - 56px);
  max-width: 420px;
  aspect-ratio: 4/3;
  overflow: hidden;
  pointer-events: none;
}
.results .preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.4s var(--ease), transform 0.8s var(--ease), clip-path 0.6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .results .preview img {
    transition: opacity 0.2s;
    transform: none;
    clip-path: none;
  }
}
@media (hover: hover) and (min-width: 768px) {
  .results .board:has(li:nth-child(1) a:hover) .preview img:nth-child(1) {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
  .results .board:has(li:nth-child(2) a:hover) .preview img:nth-child(2) {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
  .results .board:has(li:nth-child(3) a:hover) .preview img:nth-child(3) {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
  .results .board:has(li:nth-child(4) a:hover) .preview img:nth-child(4) {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
  .results .board:has(li:nth-child(5) a:hover) .preview img:nth-child(5) {
    opacity: 1;
    transform: none;
    clip-path: inset(0);
  }
}
.results .actions {
  margin-top: 11px;
}
@media (max-width: 1100px) {
  .results .list {
    width: 100%;
  }
  .results .preview {
    display: none;
  }
}
@media (max-width: 767px) {
  .results {
    padding: 80px 0 120px;
  }
  .results .stats {
    flex-wrap: wrap;
    margin-top: 32px;
    margin-bottom: 40px;
    row-gap: 16px;
  }
  .results .stats li {
    width: 50%;
    padding: 0 8px;
  }
  .results .stats li:nth-child(2) {
    border-right: 0;
  }
  .results .label {
    font-size: 13px;
  }
  .results .list {
    margin-top: 56px;
  }
  .results .list::before {
    width: 100%;
    top: -28px;
  }
  .results .list a {
    font-size: 15px;
    min-height: 48px;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}

@keyframes click-morph {
  0% {
    border-radius: 40% 40% 40% 10%;
  }
  33% {
    border-radius: 55% 30% 50% 45%/45% 55% 35% 40%;
  }
  66% {
    border-radius: 30% 55% 35% 20%/55% 40% 50% 25%;
  }
  100% {
    border-radius: 50% 35% 55% 50%/35% 50% 45% 55%;
  }
}
/* ---- 制作実績のギャラリー ----
   画面の高さの窓（.gallery）の奥に、画面に固定した写真の帯（.screen）を置く。
   窓の外は clip-path で切り取るので、スクロールすると窓だけが動き、奥の写真は止まって見える。
   3段の帯は左・右・左へ流れ続け、窓が画面に入ってくる間は少し大きい所から等倍に戻る（--zoom は main.js が付ける） */
.gallery {
  position: relative;
  height: 100vh;
  height: 100svh;
  clip-path: inset(0);
  background: #333333;
  --gap: 16px;
}
.gallery .screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--gap);
  transform: scale(var(--zoom, 1));
}
.gallery .row {
  overflow: hidden;
}
.gallery .row:nth-child(2) .track {
  animation-name: gallery-right;
}
.gallery .track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: gallery-left 80s linear infinite;
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .gallery .track {
    animation: none;
  }
}
.gallery figure {
  flex: none;
  width: 24vw;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery figure a {
  display: block;
  height: 100%;
  transition: opacity 0.3s;
}
@media (hover: hover) and (min-width: 768px) {
  .gallery figure a:hover {
    opacity: 0.7;
  }
}
.gallery.on .track {
  animation-play-state: running;
}
@media (max-width: 767px) {
  .gallery {
    --gap: 10px;
  }
  .gallery figure {
    width: 46vw;
    aspect-ratio: 4/5;
  }
}

@keyframes gallery-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - var(--gap) / 2));
  }
}
@keyframes gallery-right {
  from {
    transform: translateX(calc(-50% - var(--gap) / 2));
  }
  to {
    transform: translateX(0);
  }
}
/* ---- CREW地図のまとまり ---- */
.team {
  position: relative;
}
.team .crewmap {
  padding-bottom: calc(140px + 200px);
}
@media (max-width: 767px) {
  .team .crewmap {
    padding-bottom: calc(80px + 100px);
  }
}

/* ---- Column ---- */
.latest {
  position: relative;
  background: var(--c-gray-bg);
  padding: 160px 0 28px;
  overflow-x: clip;
}
.latest .dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.latest .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 106px;
  position: relative;
  z-index: 1;
  --col-w: min(680px, 62%);
  --col-mr: max(0px, calc((100% - 1024px) / 2));
}
@media (max-width: 1100px) {
  .latest .inner {
    padding: 0 48px;
  }
}
@media (max-width: 767px) {
  .latest .inner {
    padding: 0 20px;
  }
}
.latest .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}
.latest .cards {
  flex: 0 0 var(--col-w);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-right: var(--col-mr);
}
.latest .cards.fade {
  opacity: 1;
  transform: none;
}
.latest .cards li {
  opacity: 0;
  transform: translateX(80vw);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.latest .cards li:nth-child(2) {
  transition-delay: 0.25s;
}
@media (prefers-reduced-motion: reduce) {
  .latest .cards li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.latest .cards.shown li {
  opacity: 1;
  transform: none;
}
.latest .cards a {
  display: block;
  transition: opacity 0.3s;
}
.latest .cards a:hover {
  opacity: 0.7;
}
.latest .cards figure {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.latest .cards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.latest .cards a:hover img {
  transform: scale(1.05);
}
.latest .cards .title {
  margin-top: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 23.2px;
  letter-spacing: 0.08em;
}
.latest .cards .meta {
  display: inline-flex;
  gap: 32px;
  margin-top: 10px;
  border-top: 1px dotted var(--c-black);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 23.2px;
}
@media (max-width: 767px) {
  .latest .head {
    flex-direction: column;
    gap: 32px;
  }
  .latest .cards {
    flex: none;
    width: 100%;
    grid-template-columns: 1fr;
    margin-right: 0;
  }
  .latest .cards .title {
    font-size: 14px;
  }
}
.latest .articles {
  width: var(--col-w);
  margin: 56px var(--col-mr) 0 auto;
}
.latest .articles.fade {
  opacity: 1;
  transform: none;
}
.latest .articles li {
  opacity: 0;
  transform: translateX(80vw);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.latest .articles li:nth-child(2) {
  transition-delay: 0.25s;
}
.latest .articles li:nth-child(3) {
  transition-delay: 0.5s;
}
.latest .articles li:nth-child(4) {
  transition-delay: 0.75s;
}
.latest .articles li:nth-child(5) {
  transition-delay: 1s;
}
.latest .articles li:nth-child(6) {
  transition-delay: 1.25s;
}
@media (prefers-reduced-motion: reduce) {
  .latest .articles li {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.latest .articles.shown li {
  opacity: 1;
  transform: none;
}
.latest .actions {
  max-width: 1074px;
  margin: 35px auto 0;
}
@media (max-width: 767px) {
  .latest {
    padding: 80px 0 20px;
  }
  .latest .articles {
    width: 100%;
    margin: 32px 0 0;
  }
}

/* ---- TOP：下のセクションが上のセクションにかぶさる（main.js が stack と z-index、止める位置 --stick を付ける） ---- */
.stack {
  position: sticky;
  top: var(--stick, 0px);
}

/* ---- セクションの境目（スクロールの速さで弓なりに曲がる。位置と形は main.js が決める） ---- */
.edge {
  position: absolute;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 320px;
  pointer-events: none;
}
.edge path:first-child {
  fill: var(--below);
}
.edge path:last-child {
  fill: var(--above);
}
.edge.shade {
  filter: drop-shadow(0 -10px 14px rgba(0, 0, 0, 0.22));
}
.edge.shade.down {
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.22));
}

/* ---------- ABOUT：メッセージ ---------- */
.message {
  background: linear-gradient(180deg, #fefefe, #e2e2e2);
  padding: 160px 0 120px;
}
.message .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 40px;
}
.message .inner p + p {
  margin-top: 40px;
}
.message h2 {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.4;
  margin-bottom: 40px;
}
@media (max-width: 767px) {
  .message {
    padding: 80px 0;
  }
  .message .inner {
    padding: 0 20px;
    font-size: 15px;
    line-height: 2;
  }
  .message .inner p + p {
    margin-top: 20px;
  }
  .message h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

/* ---------- ABOUT：Philosophy（3つの円が重なる図） ---------- */
.philosophy {
  background: url(../images/about/philosophy-bg.jpg) center/cover no-repeat, #fafafa;
  padding: 100px 20px 120px;
  /* 円が画面の左右の外から入ってくるので、横にはみ出した分を隠す */
  overflow-x: clip;
}
.philosophy h2 {
  max-width: 1280px;
  margin: 0 auto 8px;
}
@media (max-width: 767px) {
  .philosophy {
    padding: 80px 20px;
  }
  .philosophy h2 {
    margin-bottom: 32px;
  }
}

.diagram {
  position: relative;
  width: 674px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 674/633;
  container-type: inline-size;
}
.diagram .circle {
  position: absolute;
  width: 52.8%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  color: var(--c-black);
  text-align: center;
}
.diagram .circle:nth-child(1) {
  left: 24%;
  top: 0;
}
.diagram .circle:nth-child(2) {
  left: 0;
  top: 43.8%;
}
.diagram .circle:nth-child(3) {
  left: 47.2%;
  top: 43.8%;
}

/* ---- 表示の動き（main.js が .diagram に shown を付ける）----
   まず文字だけが画面の外から入ってくる（羅針は上、造船は左、航海は右）。止まってから、円の線を上から一周描く */
@property --draw {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.diagram.fade {
  opacity: 1;
  transform: none;
  transition: none;
}
.diagram .circle {
  opacity: 0;
  transition: transform 1.4s var(--ease);
}
.diagram .circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #999999;
  border-radius: 50%;
  --draw: 0deg;
  -webkit-mask: conic-gradient(#000000 var(--draw), transparent 0);
  mask: conic-gradient(#000000 var(--draw), transparent 0);
  transition: --draw 1.2s var(--ease) 1.4s;
}
.diagram .circle:nth-child(1) {
  transform: translateY(-100vh);
}
.diagram .circle:nth-child(2) {
  transform: translateX(-100vw);
}
.diagram .circle:nth-child(3) {
  transform: translateX(100vw);
}
.diagram.shown .circle {
  opacity: 1;
  transform: none;
}
.diagram.shown .circle::before {
  --draw: 360deg;
}
@media (prefers-reduced-motion: reduce) {
  .diagram .circle {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .diagram .circle::before {
    --draw: 360deg;
    transition: none;
  }
}
.diagram .title {
  font-size: 5.93cqw;
  line-height: 1.2;
  white-space: nowrap;
}
.diagram .text {
  font-size: 2.67cqw;
  line-height: 1.6;
  margin-top: 0.6cqw;
  white-space: nowrap;
}

/* ---------- ABOUT：Approach（4つの段階が回る、成長のサイクル） ----------
   クラス名は、TOP の .approach と重ならないように .cycle にする。
   円と説明の位置は、デザインの 1440 × 760 の枠の中の座標を % にしたもの */
.cycle {
  background: linear-gradient(180deg, #fafafa, #fafafa);
  padding: 120px 0 100px;
  overflow-x: clip;
}
.cycle .inner {
  max-width: 1440px;
  margin: 0 auto;
}
.cycle h2 {
  padding: 0 80px;
}
.cycle .wheel {
  position: relative;
  margin-top: 24px;
  aspect-ratio: 1440/760;
  container-type: inline-size;
  font-family: var(--ff-serif);
  color: var(--c-black);
}
.cycle .arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #999999;
  stroke-width: 1.5;
}
.cycle .arrows marker path {
  fill: none;
  stroke: #999999;
  stroke-width: 1.5;
}
.cycle .core {
  position: absolute;
  left: 42.5694444444%;
  top: 35.9210526316%;
  width: 14.8611111111%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: max(12px, 1.25cqw);
  line-height: 1.6;
}
.cycle ol li:nth-child(1) .ring {
  left: 29.375%;
  top: 10.9210526316%;
}
.cycle ol li:nth-child(1) .note {
  left: 9.1666666667%;
  top: 11.8421052632%;
}
.cycle ol li:nth-child(2) .ring {
  left: 54.0972222222%;
  top: 10.9210526316%;
}
.cycle ol li:nth-child(2) .note {
  left: 71.5277777778%;
  top: 10.5263157895%;
}
.cycle ol li:nth-child(3) .ring {
  left: 54.0972222222%;
  top: 57.7631578947%;
}
.cycle ol li:nth-child(3) .note {
  left: 71.5277777778%;
  top: 66.0526315789%;
}
.cycle ol li:nth-child(4) .ring {
  left: 29.375%;
  top: 57.7631578947%;
}
.cycle ol li:nth-child(4) .note {
  left: 9.1666666667%;
  top: 66.0526315789%;
}
.cycle .ring {
  position: absolute;
  width: 16.5277777778%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}
.cycle .ring .number {
  font-size: max(11px, 1.1cqw);
}
.cycle .ring .name {
  margin-top: 0.3cqw;
  font-size: max(16px, 2cqw);
}
.cycle .ring .catch {
  margin-top: 0.8cqw;
  font-size: max(12px, 1.25cqw);
}
.cycle .note {
  position: absolute;
  width: 20.8333333333%;
  font-size: max(11px, 0.9cqw);
  line-height: 1.7;
}
.cycle .note ul {
  margin-top: 2px;
}
.cycle .note ul li {
  padding-left: 1.1em;
  position: relative;
}
.cycle .note ul li::before {
  content: "";
  position: absolute;
  left: 0.35em;
  top: 0.75em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
@media (max-width: 767px) {
  .cycle {
    padding: 80px 0;
  }
  .cycle h2 {
    padding: 0 20px;
  }
  .cycle .wheel {
    aspect-ratio: auto;
    margin-top: 32px;
    padding: 0 20px;
  }
  .cycle .arrows {
    display: none;
  }
  .cycle .core {
    position: relative;
    inset: auto;
    width: 150px;
    margin: 0 auto 32px;
    font-size: 14px;
  }
  .cycle ol {
    display: grid;
    gap: 28px;
  }
  .cycle ol li {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .cycle ol li:nth-child(n) .ring {
    position: relative;
    inset: auto;
  }
  .cycle ol li:nth-child(n) .note {
    position: static;
  }
  .cycle .ring {
    flex: 0 0 120px;
    width: 120px;
  }
  .cycle .ring .name {
    font-size: 18px;
  }
  .cycle .ring .catch {
    font-size: 12px;
    margin-top: 4px;
  }
  .cycle .note {
    flex: 1;
    width: auto;
    font-size: 13px;
  }
  .cycle .note br {
    display: none;
  }
}

/* ---- 表示の動き（main.js が .wheel に shown を付ける）----
   中央の円を描いたあと、01 の円 → 01 から 02 への矢印 → 02 の円 …と、01〜04 の順に一周描く。
   説明文は、それぞれの円を描いたあとに出す。--i は 01〜04 の順番（0〜3、page-about.php で付ける）。
   円の線を描く --draw は about/_philosophy.scss で定義 */
@keyframes cycleflow {
  0% {
    stroke-dashoffset: 0.3;
  }
  25%, 100% {
    stroke-dashoffset: -1;
  }
}
@keyframes cyclering {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  6% {
    opacity: 1;
    transform: scale(1.04);
  }
  30%, 100% {
    opacity: 0;
    transform: scale(1);
  }
}
.cycle .wheel.fade {
  opacity: 1;
  transform: none;
  transition: none;
}
.cycle .wheel .core {
  color: transparent;
  transition: color 0.8s var(--ease) 0.4s;
}
.cycle .wheel .core::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--c-black);
  border-radius: 50%;
  --draw: 0deg;
  -webkit-mask: conic-gradient(#000000 var(--draw), transparent 0);
  mask: conic-gradient(#000000 var(--draw), transparent 0);
  transition: --draw 1s var(--ease) 0s;
}
.cycle .wheel ol li {
  --at: calc(0.6s + var(--i) * 1.1s);
}
.cycle .wheel .ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #b3b3b3;
  border-radius: 50%;
  --draw: 0deg;
  -webkit-mask: conic-gradient(#000000 var(--draw), transparent 0);
  mask: conic-gradient(#000000 var(--draw), transparent 0);
  transition: --draw 0.8s var(--ease) var(--at);
}
.cycle .wheel .ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #333333;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.cycle .wheel .ring span {
  opacity: 0;
  transition: opacity 0.6s var(--ease) calc(var(--at) + 0.3s);
}
.cycle .wheel .note {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease) calc(var(--at) + 0.4s), transform 0.8s var(--ease) calc(var(--at) + 0.4s);
}
.cycle .wheel .arrow {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.4s var(--ease) calc(0.6s + 0.7s + var(--i) * 1.1s);
}
.cycle .wheel .head {
  stroke: none;
  opacity: 0;
  transition: opacity 0.2s calc(0.6s + 1.05s + var(--i) * 1.1s);
}
.cycle .wheel .flow {
  stroke: #333333;
  stroke-dasharray: 0.3 2;
  stroke-dashoffset: 0.3;
}
.cycle .wheel.shown .core {
  color: var(--c-black);
}
.cycle .wheel.shown .core::before {
  --draw: 360deg;
}
.cycle .wheel.shown .ring::before {
  --draw: 360deg;
}
.cycle .wheel.shown .ring::after {
  animation: cyclering calc(4 * 1s) var(--ease) infinite;
  animation-delay: calc(0.6s + 4 * 1.1s + var(--i) * 1s);
}
.cycle .wheel.shown .ring span {
  opacity: 1;
}
.cycle .wheel.shown .note {
  opacity: 1;
  transform: none;
}
.cycle .wheel.shown .arrow {
  stroke-dashoffset: 0;
}
.cycle .wheel.shown .head {
  opacity: 1;
}
.cycle .wheel.shown .flow {
  animation: cycleflow calc(4 * 1s) linear infinite;
  animation-delay: calc(0.6s + 4 * 1.1s + var(--i) * 1s);
}
@media (prefers-reduced-motion: reduce) {
  .cycle .wheel .core, .cycle .wheel .ring span, .cycle .wheel .note, .cycle .wheel .arrow, .cycle .wheel .head {
    transition: none;
  }
  .cycle .wheel .core::before, .cycle .wheel .ring::before {
    transition: none;
  }
  .cycle .wheel.shown .flow, .cycle .wheel.shown .ring::after {
    animation: none;
  }
}

/* ---------- ABOUT：Strengths（3つのカード） ---------- */
.strengths {
  background: #fafafa;
  padding: 120px 0 140px;
}
.strengths .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}
.strengths .lead {
  margin-top: 24px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 16px;
  line-height: 2.5;
}
.strengths .lead .catch {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
}
.strengths .lead p + p {
  margin-top: 40px;
}
.strengths .lead .catch + p {
  margin-top: 0;
}
@media (max-width: 767px) {
  .strengths .lead {
    font-size: 14px;
    line-height: 2;
  }
  .strengths .lead .catch {
    font-size: 19px;
  }
  .strengths .lead p + p {
    margin-top: 20px;
  }
  .strengths .lead br {
    display: none;
  }
}
.strengths .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1042px;
  margin: 48px auto 0;
}
.strengths .cards li {
  background: #eeeeee;
  padding: 20px 24px 28px;
  font-family: var(--ff-mincho);
  color: var(--c-text);
}
.strengths .number {
  font-size: 13px;
  letter-spacing: 0.06em;
}
.strengths h3 {
  margin-top: 6px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}
.strengths .text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.strengths .cards ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.strengths .cards ul li {
  background: var(--c-white);
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 1100px) {
  .strengths .cards {
    gap: 20px;
  }
}
@media (max-width: 767px) {
  .strengths {
    padding: 80px 0;
  }
  .strengths .inner {
    padding: 0 20px;
  }
  .strengths .cards {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .strengths h3 {
    font-size: 20px;
  }
  .strengths .text br {
    display: none;
  }
}

/* ---------- ABOUT：Partnership（Client と Crewxia が重なる図） ---------- */
.partnership {
  position: relative;
  z-index: 3;
  background: url(../images/about/partnership-bg.jpg) center bottom/100% auto no-repeat, linear-gradient(180deg, #fafafa, #fefefe);
  padding: 120px 0 140px;
  overflow-x: clip;
}
.partnership .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}
.partnership .lead {
  margin-top: 24px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 16px;
  line-height: 2.5;
}
.partnership .lead .catch {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
}
.partnership .lead p + p {
  margin-top: 40px;
}
.partnership .lead .catch + p {
  margin-top: 0;
}
@media (max-width: 767px) {
  .partnership .lead {
    font-size: 14px;
    line-height: 2;
  }
  .partnership .lead .catch {
    font-size: 19px;
  }
  .partnership .lead p + p {
    margin-top: 20px;
  }
  .partnership .lead br {
    display: none;
  }
}
.partnership .venn {
  position: relative;
  width: 708px;
  max-width: calc(100% - 40px);
  margin: 56px auto 0;
  aspect-ratio: 708/352;
  container-type: inline-size;
  font-family: var(--ff-serif);
  color: var(--c-black);
  text-align: center;
}
.partnership .venn div {
  position: absolute;
  top: 0;
  width: 49.7%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.partnership .venn .side {
  opacity: 0;
  transition: transform 2s var(--ease);
}
.partnership .venn .side::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #b3b3b3;
  border-radius: 50%;
  --draw: 0deg;
  -webkit-mask: conic-gradient(#000000 var(--draw), transparent 0);
  mask: conic-gradient(#000000 var(--draw), transparent 0);
  transition: --draw 1.2s var(--ease) 2s;
}
.partnership .venn .side:first-child {
  left: 0;
  padding-right: 14%;
  transform: translateX(100vw);
}
.partnership .venn .side:last-child {
  right: 0;
  padding-left: 14%;
  transform: translateX(-100vw);
}
.partnership .venn .center {
  left: 30.5%;
  top: 10.8%;
  width: 39%;
  background: radial-gradient(circle at 50% 40%, #f4f8f8, #cde1e2 70%, #a9c3c4);
  z-index: 1;
  opacity: 0;
  transition: opacity 4.5s var(--ease) 2.5s;
}
.partnership .venn .center .name {
  font-weight: 700;
}
.partnership .venn.fade {
  opacity: 1;
  transform: none;
  transition: none;
}
.partnership .venn.shown .side {
  opacity: 1;
  transform: none;
}
.partnership .venn.shown .side::before {
  --draw: 360deg;
}
.partnership .venn.shown .center {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .partnership .venn .side,
  .partnership .venn .center {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .partnership .venn .side::before {
    --draw: 360deg;
    transition: none;
  }
}
.partnership .name {
  font-size: 4cqw;
  line-height: 1.3;
}
.partnership .text {
  margin-top: 1.2cqw;
  font-size: 1.98cqw;
  line-height: 1.6;
}
.partnership .steps {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.partnership .steps span {
  position: absolute;
  background: #b9c5c6;
}
.partnership .steps span:nth-child(1) {
  left: 0;
  width: 29.3%;
  top: -114px;
  height: 86px;
  background: #cde1e2;
}
.partnership .steps span:nth-child(2) {
  left: 26.4%;
  width: 24.3%;
  top: -18px;
  height: 56px;
}
.partnership .steps span:nth-child(3) {
  left: 62.1%;
  width: 27.4%;
  top: -22px;
  height: 36px;
}
.partnership .steps span:nth-child(4) {
  left: 49.6%;
  width: 12.4%;
  top: 54px;
  height: 24px;
}
.partnership .steps span:nth-child(5) {
  left: 80.6%;
  right: 0;
  top: 40px;
  height: 10px;
}
@media (max-width: 767px) {
  .partnership {
    padding: 80px 0 120px;
  }
  .partnership .inner {
    padding: 0 20px;
  }
  .partnership .venn {
    margin-top: 40px;
  }
  .partnership .name {
    font-size: 5cqw;
  }
  .partnership .text {
    font-size: 2.8cqw;
  }
  .partnership .steps span {
    transform: scaleY(0.5);
    transform-origin: top;
  }
}

/* ---------- ABOUT：Crew（地図の部品を、青みがかったグレーの背景にする） ----------
   下の端は斜めに切る（会社概要の上を、この分だけ重ねる） */
.crewmap.tinted {
  --slant: 20.7vw;
  z-index: 2;
  background: #cde1e2;
  padding: 180px 0 calc(var(--slant) + 80px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--slant)));
}
@media (max-width: 767px) {
  .crewmap.tinted {
    padding: 100px 0 calc(var(--slant) + 60px);
  }
}

/* ---------- ABOUT：会社概要 ----------
   上の Crew が斜めの分（--overlap）だけ重なる。その下に会社概要を置く */
.company {
  position: relative;
  z-index: 1;
  --overlap: 33.9vw;
  margin-top: calc(var(--overlap) * -1);
  background: var(--c-white);
  padding: calc(var(--overlap) + 120px) 0 140px;
}
.company .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}
.company dl {
  width: 1024px;
  max-width: 100%;
  margin: 40px auto 0;
}
.company .item {
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-black);
}
.company dt {
  flex: 0 0 297px;
  font-size: 28px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.company dd {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.company dd.serif {
  font-family: var(--ff-serif);
  letter-spacing: 0.08em;
}
.company .actions {
  width: 1024px;
  max-width: 100%;
  margin: 30px auto 0;
}
@media (max-width: 767px) {
  .company {
    padding: calc(var(--overlap) + 60px) 0 80px;
  }
  .company .inner {
    padding: 0 20px;
  }
  .company dl {
    margin-top: 24px;
  }
  .company .item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 16px 0;
  }
  .company dt {
    flex: none;
    font-size: 18px;
  }
  .company dd {
    font-size: 15px;
  }
}

/* ---------- CREW：CREW一覧 ---------- */
.people {
  padding: 24px 20px 160px;
  overflow-x: clip;
}
.people .filter {
  width: 1040px;
  max-width: 100%;
  margin: 0 auto 32px;
}
.people .select {
  position: relative;
  display: inline-block;
}
.people .select::after {
  content: "▽";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
}
.people select {
  width: 200px;
  height: 40px;
  padding: 0 36px 0 16px;
  border: 1px solid #cccccc;
  border-radius: 0;
  background: #fefefe;
  font-family: var(--ff-en);
  font-size: 16px;
  color: var(--c-black);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.people select:focus-visible {
  outline: 2px solid var(--c-black);
  outline-offset: 2px;
}
.people .empty {
  text-align: center;
  font-size: 14px;
}
.people ul {
  width: 1040px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px 16px;
}
.people li {
  min-width: 0;
  overflow-wrap: anywhere;
}
.people li[hidden] {
  display: none;
}
.people li.fade {
  opacity: 1;
  transform: none;
  transition: none;
}
.people li button {
  transition: transform 1.6s var(--ease);
  transition-delay: calc(var(--col, 0) * 0.1s);
}
.people li.from-left:not(.shown) button {
  transform: translateX(-100vw);
}
.people li.from-right:not(.shown) button {
  transform: translateX(100vw);
}
.people li.from-left.leave button {
  transform: translateX(100vw);
  transition: transform 1.6s var(--ease);
  transition-delay: calc(var(--col, 0) * 0.1s);
}
.people li.from-right.leave button {
  transform: translateX(-100vw);
  transition: transform 1.6s var(--ease);
  transition-delay: calc(var(--col, 0) * 0.1s);
}
@media (prefers-reduced-motion: reduce) {
  .people li button {
    transform: none !important;
    transition: none;
  }
}
@media (max-width: 767px) {
  .people li button {
    transform: none !important;
    transition: none;
  }
}
.people button {
  display: block;
  width: 100%;
  text-align: left;
}
@media (hover: hover) and (min-width: 768px) {
  .people button:hover .card {
    transform: rotateY(180deg);
  }
}
.people .card {
  position: relative;
  display: block;
  aspect-ratio: 195/260;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .people .card {
    transition: none;
  }
}
.people .thumb {
  display: block;
  height: 100%;
  overflow: hidden;
  background: #eeeeee;
  backface-visibility: hidden;
}
.people .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}
.people .back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  overflow: hidden;
  background: var(--c-black);
  color: #fefefe;
  transform: rotateY(180deg);
  backface-visibility: hidden;
}
.people .back .name {
  margin-top: 0;
}
.people .back .role {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(254, 254, 254, 0.3);
}
.people .back .text {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  font-size: 12px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
}
.people .name {
  display: block;
  margin-top: 8px;
  font-family: var(--ff-en);
  font-size: 15px;
  line-height: 22px;
}
.people .role {
  display: block;
  font-family: var(--ff-en);
  font-size: 11px;
  line-height: 22px;
}
@media (max-width: 1100px) {
  .people ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 767px) {
  .people {
    padding: 40px 20px 100px;
  }
  .people .filter {
    margin-bottom: 24px;
  }
  .people select {
    width: 180px;
  }
  .people ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 12px;
  }
}

/* ---------- SERVICE：サービスごとの全面パネル（sticky で、スクロールすると次のパネルが上に重なる） ---------- */
.panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  color: var(--c-white);
  background: #333333;
  overflow: hidden;
  isolation: isolate;
}
.panel img {
  position: absolute;
  left: 0;
  top: -15%;
  z-index: -1;
  width: 100%;
  height: 130%;
  max-width: none;
  object-fit: cover;
  transform: translate3d(0, var(--shift, 0), 0);
  will-change: transform;
}
.panel .inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 160px;
}
.panel .number {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 20px;
  line-height: 48px;
}
.panel .number span {
  margin-right: 20px;
}
.panel h2 {
  margin-top: 10px;
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.25;
}
.panel .text {
  margin-top: 10px;
  width: 440px;
  max-width: 100%;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
}
.panel .text strong {
  display: block;
  font-weight: 500;
}
.panel a {
  position: absolute;
  left: var(--x, calc(85.6% - 64.5px));
  top: var(--y, calc(38.6% + 74.5px));
  width: 129px;
  height: 149px;
  margin: -74.5px 0 0 -64.5px;
  background: rgba(254, 254, 254, 0.9);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 24px;
  color: var(--c-black);
  transition: transform 0.4s var(--ease);
  animation: click-float 3s ease-in-out infinite alternate;
}
@media (hover: hover) and (min-width: 768px) {
  .panel a {
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .panel a span {
    display: inline-block;
    scale: 0;
  }
}
.panel a:hover {
  transform: scale(1.08);
}
@media (max-width: 1100px) {
  .panel .inner {
    padding: 0 48px;
  }
}
@media (max-width: 767px) {
  .panel .inner {
    padding: 0 20px;
  }
  .panel h2 {
    font-size: 32px;
  }
  .panel .text {
    font-size: 15px;
  }
  .panel a {
    width: 80px;
    height: 92px;
    margin: -200px 0 0;
    font-size: 16px;
    left: auto;
    right: 20px;
    top: 50%;
  }
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 55%);
}
@media (hover: hover) and (min-width: 768px) {
  .panel.hover a, .panel a:focus-visible {
    opacity: 1;
    pointer-events: auto;
  }
  .panel.hover a span, .panel a:focus-visible span {
    scale: 1;
    animation: click-grow 1.8s var(--ease) calc(var(--i, 0) * 0.08s) infinite backwards;
  }
}
@media (hover: hover) and (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .panel.hover a span, .panel a:focus-visible span {
    animation: none;
  }
}

@keyframes click-float {
  to {
    translate: 0 -10px;
  }
}
@keyframes click-grow {
  0% {
    scale: 0;
  }
  25%, 80% {
    scale: 1;
  }
  100% {
    scale: 0;
  }
}
/* ---------- SERVICE：お問い合わせへの案内 ---------- */
.cta {
  background: url(../images/service/cta-bg.jpg) center/cover no-repeat, #eeeeee;
  padding: 120px 20px 120px;
  text-align: center;
}
.cta h2 {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.5;
}
.cta p {
  margin-top: 24px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
}
.cta .actions {
  margin-top: 24px;
}
@media (max-width: 767px) {
  .cta {
    padding: 72px 20px;
  }
  .cta h2 {
    font-size: 24px;
  }
  .cta p {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ---------- SERVICE：制作の流れ ---------- */
.flow {
  background: linear-gradient(180deg, #f0f0f0, #d9d9d9);
  padding: 160px 0;
}
.flow .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}
.flow ol {
  position: relative;
  width: 974px;
  max-width: 100%;
  margin: 40px auto 0;
  display: grid;
  gap: 32px;
}
.flow ol::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  bottom: 30px;
  width: 1px;
  background: var(--c-black);
}
.flow li {
  position: relative;
  display: flex;
  gap: 71px;
}
.flow .step {
  flex: 0 0 48px;
  height: 48px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--c-black);
  color: #fefefe;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--ff-en);
  font-size: 10px;
  line-height: 0.95;
  position: relative;
  z-index: 1;
}
.flow h3 {
  font-family: var(--ff-mincho);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.5;
}
.flow p {
  margin-top: 4px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  color: #333333;
}
@media (max-width: 767px) {
  .flow {
    padding: 80px 0;
  }
  .flow .inner {
    padding: 0 20px;
  }
  .flow li {
    gap: 16px;
  }
  .flow h3 {
    font-size: 18px;
  }
  .flow p {
    font-size: 14px;
  }
}

/* ---------- SERVICE 下層：Web Design・Graphic Design・Development・Growth Support の共通（template-parts/service-page.php） ---------- */
/* ---- メインビジュアル（写真を全面に敷いて暗くする） ---- */
.subhero {
  isolation: isolate;
}
.subhero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}
.subhero .title p {
  font-family: var(--ff-en);
}

/* ---- ページ全体の背景と、中身の幅 ---- */
.subpage {
  background: linear-gradient(rgba(254, 254, 254, 0.6), rgba(254, 254, 254, 0.6)), url(../images/service/subpage-bg.jpg) center/cover no-repeat, #f0f0f0;
  overflow-x: clip;
}
.subpage .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.subpage {
  /* ---- 導入の文と、4つの円（設計・表現・実装・運用・保守） ---- */
}
.subpage .statement {
  padding-top: 120px;
  font-family: var(--ff-mincho);
}
.subpage .statement h2 {
  font-weight: 600;
  font-size: 32px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.subpage .statement p {
  margin-top: 36px;
  font-weight: 500;
  font-size: 18px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--c-text-sub);
}
@media (max-width: 767px) {
  .subpage .statement {
    padding-top: 80px;
  }
  .subpage .statement h2 {
    font-size: 20px;
  }
  .subpage .statement p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.9;
  }
  .subpage .statement p br {
    display: none;
  }
}
.subpage .roles {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  container-type: inline-size;
}
.subpage .roles li {
  position: relative;
  flex: 0 0 auto;
  width: min(320px, 27.6cqw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--ff-serif);
  opacity: 0;
  transition: opacity 0.8s var(--ease) var(--delay);
}
.subpage .roles li::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(51, 51, 51, 0.6);
  border-radius: 50%;
  --draw: 0deg;
  -webkit-mask: conic-gradient(#000000 var(--draw), transparent 0);
  mask: conic-gradient(#000000 var(--draw), transparent 0);
  transition: --draw 1.2s var(--ease) var(--delay);
}
.subpage .roles li:nth-child(1) {
  --delay: 0s;
}
.subpage .roles li:nth-child(2) {
  --delay: 0.8s;
}
.subpage .roles li:nth-child(3) {
  --delay: 1.6s;
}
.subpage .roles li:nth-child(4) {
  --delay: 2.4s;
}
.subpage .roles li:not(:first-child) {
  margin-left: max(-40px, -3.4cqw);
}
.subpage .roles span {
  font-family: var(--ff-en);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.subpage .roles strong {
  margin-top: 8px;
  font-weight: 400;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.3;
  white-space: nowrap;
}
.subpage .roles p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
  color: var(--c-text-sub);
}
@media (prefers-reduced-motion: reduce) {
  .subpage .roles li {
    opacity: 1;
    transition: none;
  }
  .subpage .roles li::before {
    --draw: 360deg;
    transition: none;
  }
}
@media (max-width: 1100px) {
  .subpage .roles p {
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  .subpage .roles {
    flex-wrap: wrap;
    margin-top: 40px;
  }
  .subpage .roles li {
    width: 51%;
  }
  .subpage .roles li:not(:first-child) {
    margin-left: 0;
  }
  .subpage .roles li:nth-child(even) {
    margin-left: -2%;
  }
  .subpage .roles li:nth-child(n+3) {
    margin-top: -2%;
  }
  .subpage .roles span {
    font-size: 10px;
  }
  .subpage .roles strong {
    margin-top: 2px;
    font-size: 22px;
  }
  .subpage .roles p {
    margin-top: 6px;
    padding: 0 14%;
    font-size: 10px;
  }
  .subpage .roles p br {
    display: none;
  }
}
.subpage {
  /* ---- Solution（よくある課題） ---- */
}
.subpage .solution {
  padding-top: 160px;
}
.subpage .solution ul {
  width: 1024px;
  max-width: 100%;
  margin: 72px auto 0;
  padding: 0 0 24px;
  background: #d9d9d9;
}
.subpage .solution li {
  padding: 52px 12px 12px 56px;
  border-bottom: 1px solid var(--c-text-sub);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
}
@media (max-width: 767px) {
  .subpage .solution {
    padding-top: 96px;
  }
  .subpage .solution ul {
    margin-top: 32px;
    padding: 0 0 8px;
  }
  .subpage .solution li {
    padding: 28px 12px 10px 20px;
    font-size: 15px;
  }
}
.subpage {
  /* ---- Definition（考え方の文と、3つの円が重なる図） ---- */
}
.subpage .definition {
  padding-top: 160px;
}
.subpage .definition .lead {
  margin-top: 48px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.subpage .definition .text {
  margin-top: 40px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 2.1;
  letter-spacing: 0.02em;
  color: var(--c-text-sub);
}
@media (max-width: 767px) {
  .subpage .definition {
    padding-top: 96px;
  }
  .subpage .definition .lead {
    margin-top: 24px;
    font-size: 22px;
  }
  .subpage .definition .text {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.9;
  }
}
.subpage .venn {
  position: relative;
  width: 674px;
  max-width: 100%;
  aspect-ratio: 674/633;
  margin: 120px auto 0;
  container-type: inline-size;
  font-family: var(--ff-serif);
  text-align: center;
}
.subpage .venn.fade {
  opacity: 1;
  transform: none;
  transition: none;
}
.subpage .venn .circle {
  position: absolute;
  width: 52.8%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.subpage .venn .circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #999999;
  border-radius: 50%;
  --draw: 0deg;
  -webkit-mask: conic-gradient(#000000 var(--draw), transparent 0);
  mask: conic-gradient(#000000 var(--draw), transparent 0);
  transition: --draw 1.2s var(--ease);
}
.subpage .venn .circle strong,
.subpage .venn .circle span {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.subpage .venn .circle:nth-child(1) {
  left: 24%;
  top: 0;
  padding-top: 18cqw;
}
.subpage .venn .circle:nth-child(2) {
  left: 0;
  top: 43.8%;
  padding-top: 24cqw;
}
.subpage .venn .circle:nth-child(3) {
  left: 47.2%;
  top: 43.8%;
  padding-top: 24cqw;
}
.subpage .venn.shown .circle::before {
  --draw: 360deg;
}
.subpage .venn.shown .circle strong,
.subpage .venn.shown .circle span {
  opacity: 1;
}
.subpage .venn strong {
  font-family: var(--ff-en);
  font-weight: 400;
  font-size: 6.2cqw;
  line-height: 1.2;
}
.subpage .venn span {
  margin-top: 0.4em;
  font-size: 3.2cqw;
  line-height: 1.7;
}
.subpage .venn .core {
  position: absolute;
  left: 50%;
  top: 57.3%;
  z-index: 1;
  width: 24%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fefefe, #cde1e2 70%, #c8ced0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  font-family: var(--ff-en);
  font-size: 3.4cqw;
  line-height: 1.25;
  opacity: 0;
  transition: opacity 1s var(--ease) 1.2s;
}
.subpage .venn.shown .core {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .subpage .venn .circle::before {
    --draw: 360deg;
    transition: none;
  }
  .subpage .venn .circle strong,
  .subpage .venn .circle span {
    opacity: 1;
    transition: none;
  }
  .subpage .venn .core {
    opacity: 1;
    transition: none;
  }
}
@media (max-width: 767px) {
  .subpage .venn {
    margin-top: 56px;
  }
}
.subpage {
  /* ---- Approach（進め方。左に見出し、右に説明と項目。TOP の .approach と重ならないように .method にする） ---- */
}
.subpage .method {
  padding-top: 160px;
}
.subpage .method ol {
  display: grid;
  gap: 80px;
  width: 1024px;
  max-width: 100%;
  margin: 48px auto 0;
}
.subpage .method li {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 52px 56px;
  background: #d9d9d9;
}
.subpage .method .label {
  display: block;
  font-family: var(--ff-en);
  font-size: 16px;
  letter-spacing: 0.04em;
}
.subpage .method h3 {
  margin-top: 12px;
  font-family: var(--ff-mincho);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--c-text-sub);
}
.subpage .method p {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
  line-height: 2;
}
.subpage .method ul {
  margin-top: 8px;
}
.subpage .method ul li {
  display: block;
  position: relative;
  padding: 0 0 0 18px;
  background: none;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
  line-height: 2.2;
}
.subpage .method ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-text-sub);
}
@media (max-width: 1100px) {
  .subpage .method li {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .subpage .method {
    padding-top: 96px;
  }
  .subpage .method ol {
    gap: 24px;
    margin-top: 32px;
  }
  .subpage .method li {
    padding: 28px 20px;
  }
  .subpage .method h3 {
    font-size: 18px;
  }
  .subpage .method p {
    font-size: 14px;
  }
  .subpage .method ul li {
    padding: 0 0 0 16px;
    font-size: 14px;
  }
}
.subpage {
  /* ---- Support（つくれるサイトの種類。左右に互い違いに並べる） ---- */
}
.subpage .support {
  padding-top: 160px;
}
.subpage .support ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 120px;
  width: 1024px;
  max-width: 100%;
  margin: 64px auto 0;
}
.subpage .support li {
  grid-row: var(--row)/span 2;
  align-self: start;
  padding-top: 56px;
  border-top: 1px solid var(--c-text);
}
.subpage .support li:nth-child(odd) {
  grid-column: 1;
}
.subpage .support li:nth-child(even) {
  grid-column: 2;
}
.subpage .support .number {
  font-family: var(--ff-en);
  font-size: 18px;
  letter-spacing: 0.08em;
}
.subpage .support h3 {
  margin-top: 4px;
  font-family: var(--ff-mincho);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--c-text-sub);
}
.subpage .support .body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
}
.subpage .support p {
  flex: 1;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
}
.subpage .support img {
  flex: 0 0 180px;
  width: 180px;
  aspect-ratio: 3/2;
  object-fit: cover;
}
@media (max-width: 1100px) {
  .subpage .support img {
    flex-basis: 140px;
    width: 140px;
  }
}
@media (max-width: 767px) {
  .subpage .support {
    padding-top: 96px;
  }
  .subpage .support ol {
    grid-template-columns: 1fr;
    row-gap: 56px;
    margin-top: 32px;
  }
  .subpage .support li {
    grid-row: auto;
    padding-top: 28px;
  }
  .subpage .support li:nth-child(odd), .subpage .support li:nth-child(even) {
    grid-column: 1;
  }
  .subpage .support h3 {
    font-size: 22px;
  }
  .subpage .support .body {
    flex-direction: column-reverse;
    margin-top: 20px;
  }
  .subpage .support p {
    font-size: 14px;
  }
  .subpage .support img {
    flex: none;
    width: 100%;
  }
}
.subpage {
  /* ---- Showcase（Web の制作実績。写真が左、説明が右） ---- */
}
.subpage .cases {
  padding-top: 160px;
}
.subpage .cases ul {
  display: grid;
  gap: 48px;
  width: 1024px;
  max-width: 100%;
  margin: 56px auto 0;
}
.subpage .cases li a {
  display: flex;
  align-items: center;
  gap: 68px;
}
.subpage .cases li a:hover img {
  transform: scale(1.04);
}
.subpage .cases .thumb {
  flex: 0 0 400px;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #d9d9d9;
}
.subpage .cases .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.subpage .cases .body {
  flex: 1;
  min-width: 0;
}
.subpage .cases .client {
  display: block;
  font-size: 16px;
  line-height: 1.3;
}
.subpage .cases .title {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}
.subpage .cases .meta {
  display: block;
  max-width: 400px;
  margin-top: 20px;
  padding: 10px 0;
  background: #d9d9d9;
}
.subpage .cases .row {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding-left: 14px;
}
.subpage .cases .label {
  flex: 0 0 88px;
  font-size: 12px;
}
.subpage .cases .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.subpage .cases .tags em {
  font-style: normal;
  font-size: 16px;
  line-height: 18px;
  padding: 0 2px;
  background: var(--c-white);
  border-radius: 5px;
}
.subpage .cases .actions {
  margin-top: 32px;
}
@media (max-width: 1100px) {
  .subpage .cases li a {
    gap: 32px;
  }
  .subpage .cases .thumb {
    flex-basis: 45%;
  }
}
@media (max-width: 767px) {
  .subpage .cases {
    padding-top: 96px;
  }
  .subpage .cases ul {
    gap: 40px;
    margin-top: 32px;
  }
  .subpage .cases li a {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .subpage .cases .title {
    font-size: 16px;
    line-height: 1.5;
  }
  .subpage .cases .row {
    padding-left: 10px;
  }
  .subpage .cases .tags em {
    font-size: 13px;
  }
}
.subpage {
  /* ---- 横に流れる英文 ---- */
}
.subpage .ticker {
  margin-top: 120px;
  overflow: hidden;
}
.subpage .ticker p {
  display: flex;
  width: max-content;
  font-family: var(--ff-en);
  font-size: clamp(56px, 9.4vw, 136px);
  line-height: 1.3;
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: web-ticker 40s linear infinite;
}
.subpage .ticker span {
  padding-right: 0.6em;
}
@media (prefers-reduced-motion: reduce) {
  .subpage .ticker p {
    animation: none;
  }
}
@media (max-width: 767px) {
  .subpage .ticker {
    margin-top: 64px;
  }
}
.subpage {
  /* ---- Flow（横にスライドするカード。ボタンとバーは main.js） ---- */
}
.subpage .steps {
  padding: 120px 0;
}
.subpage .steps .track {
  display: flex;
  gap: 18px;
  margin-top: 56px;
  padding: 0 var(--gutter) 0 max(216px, (100vw - 1440px) / 2 + 216px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(216px, (100vw - 1440px) / 2 + 216px);
  scrollbar-width: none;
}
.subpage .steps .track::-webkit-scrollbar {
  display: none;
}
.subpage .steps .track:focus-visible {
  outline: 1px solid var(--c-text);
  outline-offset: 4px;
}
.subpage .steps li {
  flex: 0 0 306px;
  scroll-snap-align: start;
  padding: 36px 16px 32px;
  background: rgba(254, 254, 254, 0.35);
}
.subpage .steps .number {
  font-family: var(--ff-mincho);
  font-size: 16px;
  letter-spacing: 0.08em;
}
.subpage .steps h3 {
  min-height: 3em;
  font-family: var(--ff-mincho);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
}
.subpage .steps p {
  margin-top: 12px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: var(--c-text-sub);
}
.subpage .steps .controls {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 64px 0 0 125px;
}
.subpage .steps button {
  width: 50px;
  height: 32px;
  border: 1px solid var(--c-text);
  font-size: 16px;
  transition: background-color 0.3s, color 0.3s;
}
.subpage .steps button:hover:not(:disabled) {
  background: var(--c-text);
  color: var(--c-white);
}
.subpage .steps button:disabled {
  opacity: 0.3;
  cursor: default;
}
.subpage .steps .bar {
  position: relative;
  width: 280px;
  height: 1px;
  margin-left: 12px;
  background: #cccccc;
}
.subpage .steps .bar b {
  position: absolute;
  left: 0;
  top: -0.5px;
  width: var(--size, 33%);
  height: 2px;
  background: var(--c-text);
  transform: translateX(var(--pos, 0));
  transition: transform 0.2s;
}
@media (max-width: 767px) {
  .subpage .steps {
    padding: 72px 0;
  }
  .subpage .steps .track {
    margin-top: 32px;
    padding-left: var(--gutter);
    scroll-padding-left: var(--gutter);
  }
  .subpage .steps li {
    flex-basis: 78%;
  }
  .subpage .steps h3 {
    font-size: 20px;
  }
  .subpage .steps p {
    font-size: 14px;
  }
  .subpage .steps .controls {
    margin: 32px 0 0;
    gap: 16px;
  }
  .subpage .steps .bar {
    flex: 1;
    width: auto;
  }
}
.subpage {
  /* ---- 運用・保守への案内 ---- */
}
.subpage .growth {
  padding: 120px 20px 110px;
  background: rgba(254, 254, 254, 0.35);
  border-bottom: 1px solid #e2e2e2;
  text-align: center;
}
.subpage .growth h2 {
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.subpage .growth p {
  margin-top: 28px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--c-text-sub);
}
.subpage .growth .actions {
  margin-top: 32px;
}
@media (max-width: 767px) {
  .subpage .growth {
    padding: 72px 20px;
  }
  .subpage .growth h2 {
    font-size: 24px;
  }
  .subpage .growth p {
    font-size: 14px;
    line-height: 1.8;
  }
}
.subpage {
  /* ---- FAQ（details で開閉する） ---- */
}
.subpage .faq {
  padding: 160px 0;
}
.subpage .faq .list {
  width: 1024px;
  max-width: 100%;
  margin: 56px auto 0;
}
.subpage .faq details {
  border-bottom: 1px solid var(--c-text);
}
.subpage .faq summary {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 24px 24px 36px;
  list-style: none;
  cursor: pointer;
}
.subpage .faq summary::-webkit-details-marker {
  display: none;
}
.subpage .faq summary:hover .q {
  opacity: 0.7;
}
.subpage .faq summary i {
  position: relative;
  flex: 0 0 22px;
  height: 22px;
}
.subpage .faq summary i::before, .subpage .faq summary i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: var(--c-text-sub);
  transition: transform 0.3s var(--ease);
}
.subpage .faq summary i::after {
  transform: rotate(90deg);
}
.subpage .faq .open summary i::after {
  transform: rotate(0deg);
}
.subpage .faq .mark {
  flex: 0 0 32px;
  font-family: var(--ff-serif);
  font-size: 36px;
  line-height: 1;
  text-align: center;
  color: var(--c-text-sub);
}
.subpage .faq .q {
  flex: 1;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--c-text-sub);
  transition: opacity 0.3s;
}
.subpage .faq .answer {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 0 24px 24px 36px;
  overflow: hidden;
  cursor: pointer;
}
.subpage .faq .answer p {
  flex: 1;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--c-text-sub);
}
@media (max-width: 767px) {
  .subpage .faq {
    padding: 96px 0;
  }
  .subpage .faq .list {
    margin-top: 32px;
  }
  .subpage .faq summary {
    gap: 14px;
    padding: 18px 4px;
  }
  .subpage .faq summary i {
    flex-basis: 16px;
    height: 16px;
  }
  .subpage .faq .mark {
    flex-basis: 24px;
    font-size: 26px;
  }
  .subpage .faq .q {
    font-size: 15px;
  }
  .subpage .faq .answer {
    gap: 14px;
    padding: 0 4px 18px;
  }
  .subpage .faq .answer p {
    font-size: 14px;
  }
}

.roles.fade {
  opacity: 1;
  transform: none;
  transition: none;
}

.roles.shown li {
  opacity: 1;
}
.roles.shown li::before {
  --draw: 360deg;
}

@keyframes web-ticker {
  to {
    transform: translateX(-50%);
  }
}
/* ---------- WORKS：制作実績の一覧 ---------- */
.works {
  background: url(../images/works/bg.jpg) center top/cover no-repeat, #f0f0f0;
  padding: 130px 0 115px;
}
.works .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 104px 0 86px;
}
.works .filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 39px;
  padding-left: 9px;
}
.works .filter a {
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 20px;
  border: 1px solid var(--c-gray);
  font-family: var(--ff-en);
  font-size: 20px;
  line-height: 1;
  transition: background-color 0.3s, border-color 0.3s;
}
.works .filter a[aria-current=page] {
  background: #cccccc;
  border-color: var(--c-black);
}
.works .filter a:hover {
  border-color: var(--c-black);
}
.works .grid {
  margin-top: 43px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 70px 60px;
  padding: 0 4px;
}
.works .pager {
  margin-top: 70px;
}
@media (max-width: 1100px) {
  .works .inner {
    padding: 0 40px;
  }
  .works .grid {
    gap: 40px 24px;
  }
}
@media (max-width: 767px) {
  .works {
    padding: 60px 0 80px;
  }
  .works .inner {
    padding: 0 20px;
  }
  .works .filter {
    gap: 8px;
    padding: 0;
  }
  .works .filter a {
    font-size: 14px;
    height: 30px;
    padding: 0 10px;
  }
  .works .grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }
}

/* ---------- SHOWCASE：メインビジュアルの螺旋 ----------
   制作実績のカードを、螺旋階段のように 1 枚ずつ角度と高さをずらして並べ、全体を縦の軸で回す。
   --i はカードの順番、--n はカードの枚数（archive-showcase.php で付ける）。--turn は回った角度（main.js が変える）
   並べ方は参考サイトと同じ比率にする（1 枚ごとに 45 度ずらす。軸からの距離はカード幅の約 1.5 倍） */
.spiral {
  position: absolute;
  left: 46%;
  top: 0;
  width: 54%;
  height: 100%;
  z-index: 1;
  perspective: 800px;
  --step: 45deg;
  --rise: 46px;
  --radius: 250px;
}
.spiral .axis {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform: rotateX(-4deg) rotateZ(3deg) rotateY(var(--turn, -20deg));
}
.spiral a {
  position: absolute;
  left: -80px;
  top: -60px;
  width: 160px;
  height: 120px;
  overflow: hidden;
  border-radius: 4px;
  background: #eeeeee;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: rotateY(calc(var(--i) * var(--step))) translateZ(var(--radius)) translateY(calc((var(--i) - (var(--n) - 1) / 2) * var(--rise)));
}
.spiral a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
@media (hover: hover) and (min-width: 768px) {
  .spiral a:hover img {
    transform: scale(1.08);
    filter: none;
  }
}
@media (max-width: 767px) {
  .spiral {
    left: 30%;
    top: 10px;
    width: 70%;
    height: 190px;
    perspective: 500px;
    --rise: 10px;
    --radius: 115px;
  }
  .spiral a {
    left: -36px;
    top: -27px;
    width: 72px;
    height: 54px;
  }
}

/* ---------- WORKS 詳細：メインビジュアル ---------- */
.overview {
  position: relative;
  background: #f0f0f0;
  min-height: 719px;
  padding: 35px 81px 0;
}
.overview .title {
  margin-top: 106px;
  max-width: 1220px;
}
.overview h1 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.43;
  border-top: 1px solid var(--c-black);
  margin-top: 10px;
}
.overview .meta {
  margin-top: 26px;
  display: grid;
  gap: 30px;
  font-size: 20px;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .overview {
    min-height: 0;
    padding: 20px 20px 60px;
  }
  .overview .title {
    margin-top: 60px;
  }
  .overview h1 {
    font-size: 26px;
  }
  .overview .meta {
    font-size: 15px;
    gap: 12px;
  }
}

/* ---------- WORKS 詳細：本文 ---------- */
.detail {
  background: url(../images/works/detail-bg.webp) center top/100% auto repeat-y, #f0f0f0;
  padding-bottom: 80px;
}
.detail .visual {
  height: 760px;
}
.detail .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail .shots {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 110px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}
.detail .shots .placeholder {
  aspect-ratio: 353/1266;
}
.detail .shots img {
  width: 100%;
}
.detail .body {
  max-width: 1440px;
  margin: 130px auto 0;
  padding: 0 105px;
}
.detail .spec {
  border-top: 1px solid var(--c-black);
  border-bottom: 1px solid var(--c-black);
  padding: 21px 0 24px;
}
.detail .spec .item {
  display: flex;
  padding: 8px 0;
  font-family: var(--ff-serif);
  font-size: 24px;
  line-height: 1.4;
}
.detail .spec dt {
  flex: 0 0 246px;
  padding-left: 110px;
  box-sizing: content-box;
}
.detail .row {
  display: flex;
  padding: 40px 0;
  border-bottom: 1px solid var(--c-black);
  font-size: 20px;
  line-height: 1.5;
}
.detail .row h2 {
  flex: 0 0 238px;
  padding-left: 110px;
  box-sizing: content-box;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
}
.detail .row .content, .detail .row h2 + p, .detail .row h2 + ul {
  flex: 1;
  max-width: 870px;
}
.detail .row p + p {
  margin-top: 30px;
}
.detail .row.plain {
  border-bottom: 0;
}
.detail .url {
  margin-top: 30px;
}
.detail .url a:hover {
  text-decoration: underline;
}
.detail .facts {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}
.detail .facts li {
  width: 240px;
  height: 103px;
  background: #d9d9d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1.2;
}
.detail .dots li::before {
  content: "・";
}
.detail .process {
  margin-top: 40px;
  background: #d9d9d9;
  padding: 28px 10px;
  display: grid;
  gap: 40px;
}
.detail .process li {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-beige);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
}
.detail .process i {
  font-style: normal;
  font-size: 24px;
  text-align: center;
}
.detail .point {
  margin-top: 40px;
}
.detail .point h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.detail .point .placeholder {
  margin-top: 40px;
  aspect-ratio: 870/422;
}
.detail .pager {
  margin-top: 70px;
}
.detail .pager a {
  height: 38px;
  padding: 0 20px;
}
@media (max-width: 1100px) {
  .detail .body {
    padding: 0 40px;
  }
  .detail .row h2, .detail .spec dt {
    padding-left: 0;
    flex-basis: 180px;
  }
}
@media (max-width: 767px) {
  .detail .visual {
    height: 240px;
  }
  .detail .shots {
    padding: 40px 20px 0;
    gap: 12px;
  }
  .detail .body {
    margin-top: 60px;
    padding: 0 20px;
  }
  .detail .pager {
    margin-top: 48px;
  }
  .detail .pager a {
    height: 32px;
    padding: 0 10px;
  }
  .detail .spec .item {
    font-size: 16px;
  }
  .detail .spec dt {
    flex-basis: 110px;
  }
  .detail .row {
    flex-direction: column;
    gap: 16px;
    padding: 28px 0;
    font-size: 15px;
  }
  .detail .row h2 {
    flex: none;
    font-size: 20px;
  }
  .detail .facts {
    gap: 6px;
  }
  .detail .facts li {
    width: auto;
    flex: 1;
    height: 80px;
    font-size: 13px;
    text-align: center;
  }
  .detail .process li {
    grid-template-columns: 1fr;
    gap: 4px;
    font-size: 13px;
  }
  .detail .process i {
    transform: rotate(90deg);
  }
}

/* ---------- COLUMN：記事の一覧 ---------- */
.column {
  background: #fafafa;
  padding: 160px 0 113px;
}
.column .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 119px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.column aside {
  flex: 0 0 230px;
}
.column aside h2 {
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 23.2px;
  letter-spacing: 0.08em;
  padding-bottom: 24px;
  border-bottom: 2px solid #b3b3b3;
}
.column aside ul {
  margin-top: 38px;
  display: grid;
  gap: 24px;
}
.column aside a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  line-height: 23.2px;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
  transition: color 0.3s;
}
.column aside a::before {
  content: "";
  width: 15px;
  height: 2px;
  background: #c7c2ba;
  transition: width 0.3s var(--ease), background-color 0.3s;
}
.column aside a:hover {
  color: var(--c-black);
}
.column aside a:hover::before {
  width: 24px;
  background: var(--c-black);
}
.column .main {
  flex: 1;
  min-width: 0;
}
.column .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
.column .pager {
  margin: 80px -19px 0 -262px;
}
@media (max-width: 1100px) {
  .column .inner {
    padding: 0 40px;
  }
  .column .pager {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 767px) {
  .column {
    padding: 60px 0 80px;
  }
  .column .inner {
    padding: 0 20px;
    flex-direction: column;
  }
  .column aside {
    flex: none;
  }
  .column aside h2 {
    font-size: 22px;
    padding-bottom: 14px;
  }
  .column aside ul {
    margin-top: 20px;
    gap: 12px;
    display: flex;
    flex-wrap: wrap;
  }
  .column aside a {
    font-size: 14px;
    gap: 8px;
  }
  .column .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .column .pager {
    margin-top: 48px;
  }
}

/* ---------- COLUMN：メインビジュアルの輪 ----------
   コラムのカードを、観覧車のような大きな輪に並べ、輪を斜めに傾けて横の軸で回す。
   --i はカードの順番、--n はカードの枚数（template-parts/column-list.php で付ける）。--turn は回った角度（main.js が変える）
   大きさはすべて --u（1 目もり）の何倍かで決める（カードは 1.6×1、輪の半径は 5.6、見る距離は 8.6） */
.ring {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --u: 105px;
  perspective: calc(8.6 * var(--u));
}
.ring .axis {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform: translateX(calc(-0.6 * var(--u))) rotateY(24deg) rotateZ(15deg) rotateX(calc(var(--turn, 0deg) * -1));
}
.ring a {
  position: absolute;
  left: calc(-0.8 * var(--u));
  top: calc(-0.5 * var(--u));
  width: calc(1.6 * var(--u));
  height: var(--u);
  pointer-events: auto;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--i) / var(--n) * 360deg)) translateZ(calc(5.6 * var(--u))) rotateY(-10deg);
}
.ring a img,
.ring a .back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.ring a img {
  object-fit: cover;
  transition: filter 0.6s var(--ease);
}
.ring a .back {
  background: rgba(0, 0, 0, 0.08);
  transform: rotateY(180deg);
}
@media (hover: hover) and (min-width: 768px) {
  .ring a:hover img {
    filter: brightness(1.08);
  }
}
@media (max-width: 767px) {
  .ring {
    --u: 34px;
    perspective-origin: 30% 32%;
  }
  .ring .axis {
    left: 30%;
    top: 32%;
  }
}

/* ---------- COLUMN 詳細：メインビジュアル ---------- */
.headline {
  position: relative;
  background: var(--c-gray-bg);
  min-height: 891px;
  padding: 26px 61px 140px;
}
.headline .title {
  margin-top: 250px;
  max-width: 1319px;
}
.headline .title ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}
.headline .title li {
  height: 32px;
  line-height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--c-gray);
  color: var(--c-white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
}
.headline .label {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-black);
}
.headline h1 {
  margin-top: 30px;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.5;
}
.headline .date {
  margin-top: 30px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
}
@media (max-width: 767px) {
  .headline {
    min-height: 0;
    padding: 20px 20px 120px;
  }
  .headline .title {
    margin-top: 80px;
  }
  .headline .label {
    font-size: 18px;
  }
  .headline h1 {
    font-size: 26px;
    margin-top: 16px;
  }
  .headline .title ul {
    gap: 8px;
  }
  .headline .title li {
    font-size: 12px;
    height: 26px;
    line-height: 26px;
  }
}

/* ---------- COLUMN 詳細：記事の本文 ---------- */
.entry {
  background: var(--c-gray-bg);
  padding: 80px 20px 80px;
}
.entry .inner {
  width: 1024px;
  max-width: 100%;
  margin: 0 auto;
  color: #311d04;
  font-size: 20px;
  line-height: 1.6;
}
.entry .inner p + p {
  margin-top: 1.6em;
}
.entry .lead {
  letter-spacing: 0.04em;
}
.entry .contents {
  margin: 56px 0 88px;
  background: #d9d9d9;
  padding: 40px;
}
.entry .contents p {
  font-family: var(--ff-serif);
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--c-black);
}
.entry .contents .chapter {
  position: relative;
  padding-left: 20px;
  margin-top: 4px;
  color: #333333;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.8;
}
.entry .contents .chapter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-black);
}
.entry .contents ol ol li {
  position: relative;
  padding-left: 20px;
  font-weight: 400;
  font-size: 16px;
}
.entry .contents ol ol li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 8px;
  height: 1px;
  background: #333333;
}
.entry .contents a:hover {
  text-decoration: underline;
}
.entry h2 {
  margin: 0 0 40px;
  padding: 15px 20px;
  background: #d9d9d9;
  border-radius: 4px;
  color: #333333;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.1em;
  scroll-margin-top: 20px;
}
.entry h3 {
  position: relative;
  margin: 88px 0 40px;
  padding-left: 16px;
  color: #333333;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  scroll-margin-top: 20px;
}
.entry h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 4px;
  height: 32px;
  background: #d9d9d9;
}
.entry h4 {
  margin: 48px 0 40px;
  padding-bottom: 6px;
  border-bottom: 2px solid #d9d9d9;
  color: #333333;
  font-family: var(--ff-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  scroll-margin-top: 20px;
}
.entry table {
  width: 100%;
  margin-top: 49px;
  border-top: 1px solid #999999;
}
.entry th, .entry td {
  border-bottom: 1px solid #999999;
  padding: 24px 16px;
}
.entry th {
  width: 250px;
  background: #d9d9d9;
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--c-black);
  border-right: 1px solid #999999;
}
.entry td {
  background: #fefefe;
  color: #333333;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.entry .pager {
  margin-top: 70px;
}
.entry .pager a {
  height: 38px;
  padding: 0 20px;
}
@media (max-width: 767px) {
  .entry {
    padding: 48px 20px;
  }
  .entry .inner {
    font-size: 15px;
  }
  .entry .contents {
    padding: 24px 20px;
    margin: 32px 0 56px;
  }
  .entry .contents p {
    font-size: 18px;
  }
  .entry .contents .chapter {
    font-size: 14px;
  }
  .entry .contents ol ol li {
    font-size: 13px;
  }
  .entry h2 {
    font-size: 26px;
    line-height: 1.4;
    padding: 12px 16px;
    margin-bottom: 24px;
  }
  .entry h3 {
    font-size: 22px;
    line-height: 1.5;
    margin: 56px 0 24px;
  }
  .entry h3::before {
    top: 6px;
    height: 24px;
  }
  .entry h4 {
    font-size: 19px;
    margin: 40px 0 20px;
  }
  .entry th {
    width: 34%;
    font-size: 13px;
    padding: 14px 8px;
  }
  .entry td {
    font-size: 13px;
    padding: 14px 10px;
  }
  .entry .pager {
    margin-top: 48px;
  }
  .entry .pager a {
    height: 32px;
    padding: 0 10px;
  }
}

/* ---------- CONTACT：左の案内と右のフォーム ---------- */
.contact {
  background: #545454;
  padding: 66px 0 160px;
}
.contact .inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 92px 0 120px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: flex-start;
}
.contact .intro {
  flex: 0 1 536px;
  padding-top: 66px;
  color: var(--c-white);
}
.contact .intro h2 {
  font-family: var(--ff-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.contact .text {
  margin-top: 40px;
  font-size: 20px;
  line-height: 23.2px;
  letter-spacing: 0.08em;
}
.contact .text.medium {
  font-weight: 500;
}
.contact .crews {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 40px 24px;
}
.contact .crews button {
  display: block;
  text-align: left;
  color: var(--c-white);
}
.contact .crews button:hover img {
  transform: scale(1.05);
}
.contact .crews button:hover .photo {
  transform: perspective(800px) rotateY(360deg);
}
.contact .photo {
  display: block;
  aspect-ratio: 160/213;
  background: #d9d9d9;
  overflow: hidden;
  transform: perspective(800px) rotateY(0deg);
  transition: transform 0.9s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .contact .crews button:hover .photo {
    transform: none;
  }
}
.contact .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.contact .name {
  display: block;
  font-family: var(--ff-en);
  font-size: 15px;
  line-height: 22px;
}
.contact .role {
  display: block;
  font-family: var(--ff-en);
  font-size: 11px;
  line-height: 22px;
}
.contact .sheet {
  flex: 0 0 562px;
  background: var(--c-white);
  padding: 66px 26px 40px 36px;
}
.contact .sheet h2 {
  font-family: var(--ff-mincho);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}
@media (max-width: 1100px) {
  .contact .inner {
    flex-direction: column;
    padding: 0 40px;
  }
  .contact .sheet {
    flex: none;
    width: 100%;
  }
  .contact .intro {
    flex: none;
  }
}
@media (max-width: 767px) {
  .contact {
    padding: 40px 0 80px;
  }
  .contact .inner {
    padding: 0 20px;
    gap: 40px;
  }
  .contact .intro {
    padding-top: 0;
  }
  .contact .intro h2 {
    font-size: 22px;
  }
  .contact .text {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 20px;
  }
  .contact .crews {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 10px;
    margin-top: 24px;
  }
  .contact .name {
    font-size: 11px;
    line-height: 1.5;
  }
  .contact .role {
    font-size: 9px;
  }
  .contact .sheet {
    padding: 32px 16px;
  }
  .contact .sheet h2 {
    font-size: 22px;
    margin-bottom: 24px;
  }
}

/* ---------- CONTACT：入力フォーム（入力エラーは main.js が invalid を付ける） ---------- */
.inquiry .row {
  border: 0;
  border-top: 1px solid var(--c-black);
  padding: 15px 10px 20px;
  margin: 0;
  min-width: 0;
}
.inquiry .row.double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.inquiry .row.double .error {
  grid-column: 1/-1;
}
.inquiry .row.last {
  padding-bottom: 0;
  border-bottom: 1px solid var(--c-black);
}
@media (max-width: 767px) {
  .inquiry .row, .inquiry .row.last {
    padding: 14px 0 16px;
  }
  .inquiry .row.double {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.inquiry .label {
  display: block;
  padding: 0 10px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .inquiry .label {
    font-size: 16px;
    padding: 0;
  }
}
.inquiry .label span, .inquiry .agree span {
  color: inherit;
}
.inquiry input[type=text],
.inquiry input[type=email],
.inquiry input[type=tel],
.inquiry textarea,
.inquiry select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0;
  background: #d9d9d9;
  padding: 0 16px;
  height: 40px;
  font-family: var(--ff-base);
  font-size: 16px;
  color: var(--c-black);
  outline: none;
  transition: border-color 0.3s, background-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
@media (max-width: 767px) {
  .inquiry input[type=text],
  .inquiry input[type=email],
  .inquiry input[type=tel],
  .inquiry textarea,
  .inquiry select {
    font-size: 16px;
  }
}
.inquiry textarea {
  height: auto;
  min-height: 88px;
  padding: 10px 16px;
  line-height: 23px;
  resize: vertical;
}
.inquiry input:focus, .inquiry textarea:focus, .inquiry select:focus {
  border-color: var(--c-black);
  background: #e2e2e2;
}
.inquiry ::placeholder {
  color: rgba(51, 51, 51, 0.75);
}
.inquiry .select {
  position: relative;
}
.inquiry .select::after {
  content: "▽";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 18px;
}
.inquiry .checks {
  display: grid;
  gap: 4px;
  padding: 0 10px;
}
.inquiry .checks label, .inquiry .agree label {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 27px;
  font-size: 16px;
  cursor: pointer;
}
.inquiry input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  margin: 0 0 0 10px;
  border: 1px solid var(--c-black);
  border-radius: 2px;
  background: #d9d9d9;
  flex: none;
  cursor: pointer;
}
.inquiry input[type=checkbox]:checked {
  background: var(--c-black);
  box-shadow: inset 0 0 0 2px #d9d9d9;
}
.inquiry input[type=checkbox]:focus-visible {
  outline: 2px solid #047ed5;
  outline-offset: 2px;
}
.inquiry .note {
  margin: 8px 10px 0;
  font-size: 12px;
  line-height: 15px;
}
.inquiry .note a {
  text-decoration: underline;
}
.inquiry .agree {
  margin-top: 10px;
  padding: 0 10px;
}
.inquiry .submit {
  display: flex;
  justify-content: center;
  padding: 16px 0 20px;
}
.inquiry .submit button {
  min-width: 148px;
  height: 44px;
  padding: 0 10px;
  border-radius: 5px;
  background: rgba(51, 51, 51, 0.72);
  color: var(--c-white);
  font-weight: 500;
  font-size: 20px;
  transition: background-color 0.3s;
}
.inquiry .submit button:hover {
  background: var(--c-black);
}
.inquiry .error {
  display: none;
  margin: 6px 10px 0;
  font-size: 13px;
  color: #c0392b;
}
.inquiry .row.invalid .error,
.inquiry .agree.invalid .error,
.inquiry [data-required-group].invalid .error {
  display: block;
}
.inquiry .row.invalid input:invalid,
.inquiry .row.invalid select:invalid,
.inquiry .row.invalid textarea:invalid {
  border-color: #c0392b;
}

/* ---------- THANKS：送信完了 ---------- */
.thanks {
  background: #545454;
  color: var(--c-white);
  min-height: 875px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 160px;
}
.thanks h1 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.45;
}
.thanks .sub {
  margin-top: 32px;
  font-family: var(--ff-mincho);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.thanks .text {
  margin-top: 32px;
  font-size: 16px;
  line-height: 23.2px;
  letter-spacing: 0.08em;
}
.thanks .actions {
  margin-top: 32px;
}
@media (max-width: 767px) {
  .thanks {
    min-height: 0;
    padding: 80px 20px 120px;
  }
  .thanks h1 {
    font-size: 24px;
  }
  .thanks .sub {
    font-size: 20px;
  }
  .thanks .text {
    font-size: 13px;
    line-height: 1.9;
    text-align: left;
  }
  .thanks .text br {
    display: none;
  }
}

/* ---------- PRIVACY POLICY ---------- */
.policy {
  background: var(--c-white);
  padding: 80px 20px 160px;
}
.policy .inner {
  width: 1024px;
  max-width: 100%;
  margin: 0 auto;
  color: var(--c-text-sub);
  font-size: 20px;
  line-height: 23.2px;
  letter-spacing: 0.08em;
}
.policy h2, .policy h3 {
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.policy h3 {
  margin-top: 32px;
}
.policy h2 + p, .policy h3 + p {
  margin-top: 32px;
}
.policy p + p, .policy ul + p {
  margin-top: 24px;
}
.policy ul {
  margin-top: 0;
}
.policy a {
  text-decoration: underline;
}
.policy .date {
  margin-top: 32px !important;
}
@media (max-width: 767px) {
  .policy {
    padding: 48px 20px 80px;
  }
  .policy .inner {
    font-size: 14px;
    line-height: 1.8;
  }
  .policy h2, .policy h3 {
    font-size: 17px;
    line-height: 1.5;
  }
  .policy h3 {
    margin-top: 32px;
  }
  .policy h2 + p, .policy h3 + p {
    margin-top: 12px;
  }
}

/* ---------- 404 ----------
   下の「こちらから目的のページをお探しください」の画像までが1画面に収まるよう、
   余白と文字の大きさを画面の高さ（svh）に合わせて縮める */
.missing {
  position: relative;
  overflow: hidden;
  background: var(--c-white);
  padding: 6svh 20px 2svh;
}
.missing img {
  position: absolute;
  pointer-events: none;
}
.missing img:nth-of-type(1) {
  left: 0;
  top: 67px;
  width: 31.2%;
  max-width: 449px;
}
.missing img:nth-of-type(2) {
  left: 66.5%;
  top: 75px;
  width: 33.5%;
  max-width: 482px;
}
.missing img:nth-of-type(3) {
  left: 65.8%;
  top: 728px;
  width: 33%;
  max-width: 475px;
}
.missing .box {
  position: relative;
  width: 875px;
  max-width: 100%;
  margin: 0 auto;
  background: rgba(238, 238, 238, 0.92);
  padding: 3.5svh 20px 3.5svh;
  text-align: center;
  color: var(--c-text-sub);
  font-family: var(--ff-mincho);
  font-weight: 500;
}
.missing h1 {
  font-weight: 500;
  font-size: clamp(96px, 16svh, 240px);
  line-height: 0.93;
  letter-spacing: 0.08em;
}
.missing .title {
  margin-top: 1.5svh;
  font-size: clamp(20px, 3.4svh, 32px);
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.missing .text {
  margin-top: 2.5svh;
  font-size: clamp(15px, 2.6svh, 24px);
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.missing .actions {
  margin-top: 2.5svh;
}
@media (max-width: 767px) {
  .missing {
    padding: 2svh 20px 2svh;
  }
  .missing .box {
    padding: 2.5svh 16px;
  }
  .missing h1 {
    font-size: clamp(64px, 11svh, 110px);
  }
  .missing .title {
    font-size: 16px;
    line-height: 1.5;
  }
  .missing .text {
    margin-top: 1.5svh;
    font-size: 13px;
    line-height: 1.7;
  }
  .missing .actions {
    margin-top: 1svh;
  }
}

/* ---------- 404：ほかのページへのリンク ---------- */
.shortcuts {
  background: var(--c-white);
  padding: 1.5svh 20px 24px;
  text-align: center;
}
.shortcuts h2 {
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.08em;
  color: var(--c-text-sub);
}
.shortcuts ul {
  width: 1024px;
  max-width: 100%;
  margin: 3svh auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shortcuts a {
  display: flex;
  align-items: center;
  height: 103px;
  background: #eeeeee;
  padding: 10px 6px 10px 1px;
  text-align: left;
  font-size: 12px;
  transition: background-color 0.3s;
}
.shortcuts a:hover {
  background: #e2e2e2;
}
.shortcuts a:hover span::after {
  transform: translateX(4px);
}
.shortcuts img {
  width: 102px;
  height: 83px;
  object-fit: cover;
  flex: none;
}
.shortcuts span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.shortcuts span::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.3s;
}
@media (max-width: 767px) {
  .shortcuts {
    padding: 2svh 20px 0;
  }
  .shortcuts h2 {
    font-size: 15px;
  }
  .shortcuts ul {
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5svh;
    gap: 8px;
  }
  .shortcuts a {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 12px;
    gap: 10px;
  }
  .shortcuts img {
    width: 100%;
    height: 9svh;
  }
  .shortcuts span {
    padding: 0 10px;
    justify-content: space-between;
  }
}
