/* =====================================================================
   PROGRES  2026 リニューアル（Figma: PROGRES_Website_Wireframe_v1 / 05_Design_PC）
   数値は 1440px 幅のデザインの座標から算出。
   ===================================================================== */

:root {
  --red: #dc0000;
  --black: #000;
  --ink: #231815;
  --gray: #7b7c7b;
  --gray-2: #898989;
  --line: #dedede;
  --ph: #dedede;          /* 画像の仮置き */
  --field: #f4f4f4;
  --sans: "Noto Sans JP", sans-serif;
  --serif: "Noto Serif JP", serif;
  --mincho: "Shippori Mincho", "Noto Serif JP", serif;
  --content: 1080px;
  /* 左右の余白：1440px 幅で 180px */
  --side: max(24px, calc((100vw - var(--content)) / 2));
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; vertical-align: top; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .65; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.u-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.l-inner { width: auto; margin-inline: var(--side); }

/* ---------- typography helpers ---------- */
.v-text { writing-mode: vertical-rl; text-orientation: upright; }
.l-header, .g-menu__cols { white-space: nowrap; }
.c-serif {
  font-family: var(--serif); font-weight: 500;
  font-size: 24px; line-height: 38px;
  font-feature-settings: "palt";
}
.c-mincho { font-family: var(--mincho); font-weight: 500; }
.c-label { font-size: 14px; font-weight: 700; line-height: 24.5px; }
.c-heading { font-size: 31px; font-weight: 700; line-height: 41px; }
.c-page-ttl { font-size: 20px; font-weight: 700; line-height: 24px; }
.c-ph { background: var(--ph); }

/* 丸矢印（▶ in ○） */
.c-arrow {
  display: inline-block; flex: none;
  width: 12.75px; height: 12.75px;
  background: url(/assets/img/icon-arrow-red.svg) center / contain no-repeat;
  vertical-align: middle;
}
.c-arrow--up { background-image: url(/assets/img/icon-arrow-gray.svg); transform: rotate(-90deg); }
.c-arrow--left { background-image: url(/assets/img/icon-arrow-gray.svg); transform: rotate(180deg); }

.c-arrow-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; line-height: 24.5px; color: var(--ink);
}
.c-arrow-link.is-red { color: var(--red); }
.c-arrow-link.is-mincho { font-family: var(--mincho); font-size: 16px; }

/* ---------- header ---------- */
.l-header { position: absolute; inset: 0 0 auto; z-index: 10; height: 0; }
.l-header__menu-btn {
  position: absolute; top: 69px; left: calc(var(--side) + 2px);
  width: 51px; height: 17px;
}
.l-header__menu-btn span {
  position: absolute; left: 0; width: 51px; height: 3px; background: var(--red);
}
.l-header__menu-btn span:first-child { top: 0; }
.l-header__menu-btn span:last-child { top: 14px; }

/* 縦書きナビ（li が右から左へ1列ずつ並ぶ） */
.v-nav { writing-mode: vertical-rl; text-orientation: upright; font-size: 22px; font-weight: 700; line-height: 22px; }
.v-nav li + li { margin-block-start: 19px; }
.v-nav [aria-current="page"] { color: var(--red); }
.l-header__nav { position: absolute; top: 69px; right: calc(var(--side) / 2); }

.v-subnav { writing-mode: vertical-rl; text-orientation: upright; font-size: 22px; font-weight: 700; line-height: 22px; }
.v-subnav li { position: relative; padding-top: 11px; }
.v-subnav li + li { margin-block-start: 19px; }
.v-subnav [aria-current="page"] { color: var(--red); }
/* 縦書きのナビとメニューは、ホバーで薄くせず赤にする（今いるページは上で常に赤） */
:is(.v-nav, .v-subnav, .g-menu__group-ttl) a { transition: color .2s ease; }
:is(.v-nav, .v-subnav, .g-menu__group-ttl) a:hover { opacity: 1; color: var(--red); }
.v-subnav li::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 16px; height: 1px; background: var(--black); transform: translateX(-50%);
}
.l-header__subnav {
  position: absolute; top: 64px; right: calc(var(--side) / 2 + 365px);
  display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 28px;
}
.l-header__subnav-label,
.l-header__page-label {
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 14px; font-weight: 700; line-height: 14px;
}
.l-header__page-label {
  position: absolute; top: 64px; right: calc(var(--side) / 2 + 355px);
  font-size: 30px; line-height: 30px;
}
/* トップのお知らせ（赤・縦書き） */
.l-header__news {
  position: absolute; top: 68px; right: calc(var(--side) / 2 + 271px);
  writing-mode: vertical-rl; text-orientation: upright;
  font-size: 14px; line-height: 22px; color: var(--red);
}
.l-header__news > span { display: block; }
.l-header__news .c-arrow { margin-top: 7px; transform: rotate(90deg); }

/* ---------- global menu ---------- */
/* 開く：白い面がふわっと現れ、ハンバーガーの2本線が寄って × になり、ロゴと項目が少し遅れて下から上がってくる。
   閉じる：× が2本線に戻りながら、全体が早めに消える */
.g-menu {
  position: fixed; inset: 0; z-index: 100;
  background: #fff; overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1), visibility 0s .3s;
}
.is-menu-open .g-menu { visibility: visible; opacity: 1; transition: opacity .45s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.is-menu-open { overflow: hidden; }
.g-menu__logo, .g-menu__main, .g-menu__group {
  opacity: 0; translate: 0 16px;
  transition: opacity .2s ease, translate .2s ease;
}
.is-menu-open .g-menu__logo,
.is-menu-open .g-menu__main,
.is-menu-open .g-menu__group {
  opacity: 1; translate: 0 0;
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1) var(--d, .12s), translate .8s cubic-bezier(.2, .7, .2, 1) var(--d, .12s);
}
.g-menu__main { --d: .16s; }
.g-menu__group { --d: .22s; }
.g-menu__group + .g-menu__group { --d: .28s; }
/* ×（中身より手前に置く。中身の枠が重なって押せなくならないように） */
.g-menu__close { position: absolute; z-index: 2; top: 69px; left: calc(var(--side) + 2px); width: 51px; height: 17px; }
.g-menu__close span {
  position: absolute; left: 0; top: 7px; width: 51px; height: 3px; background: var(--red);
  /* 閉じる時：先に傾きを戻し、それから上下に離れて2本線へ */
  transition: rotate .25s cubic-bezier(.4, 0, .2, 1), translate .25s cubic-bezier(.4, 0, .2, 1) .2s;
}
.g-menu__close span:first-child { translate: 0 -7px; }
.g-menu__close span:last-child { translate: 0 7px; }
/* 開く時：先に2本線が真ん中に寄り、それから傾いて × に */
.is-menu-open .g-menu__close span { transition: translate .25s cubic-bezier(.4, 0, .2, 1) .1s, rotate .35s cubic-bezier(.2, .7, .2, 1) .35s; }
.is-menu-open .g-menu__close span:first-child { translate: 0 0; rotate: 45deg; }
.is-menu-open .g-menu__close span:last-child { translate: 0 0; rotate: -45deg; }
.g-menu__close:hover span { background: var(--black); }
@media (prefers-reduced-motion: reduce) {
  .g-menu__logo, .g-menu__main, .g-menu__group, .g-menu__close span { translate: none !important; transition: opacity .2s !important; }
  .is-menu-open .g-menu__close span { transition: none !important; }
}
.g-menu__inner { position: relative; min-height: 896px; }
.g-menu__logo { position: absolute; top: 160px; right: calc(var(--side) - 9px); width: 246px; }
.g-menu__cols {
  position: absolute; top: 306px; right: calc(var(--side) - 4px);
  display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 178px;
}
.g-menu__group { position: relative; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 50px; padding-top: 4px; }
/* SNS のアイコンは「私たちについて」の左下（サブナビの下の空き）に置く */
.g-menu__sns { position: absolute; left: 0; bottom: -80px; }
.g-menu__group + .g-menu__group { margin-right: -75px; }
.g-menu__group-ttl [aria-current="page"] { color: var(--red); }
.g-menu__group-ttl { writing-mode: vertical-rl; text-orientation: upright; font-size: 22px; font-weight: 700; line-height: 22px; }

/* ---------- SNS のアイコン（フッター・開閉メニュー共通。sns_links()） ---------- */
.c-sns { display: flex; gap: 18px; }
.c-sns a { display: block; color: var(--gray-2); transition: color .2s; }
.c-sns a:hover { color: var(--black); }
.c-sns svg { display: block; }
.c-sns svg.is-note { width: 16px; height: 16px; margin: 2px; } /* 塗りの重いロゴなので、ほかと見た目の大きさをそろえる */

/* ---------- footer ---------- */
.l-footer { border-top: 1px solid var(--line); }
.l-footer__inner {
  position: relative; margin-left: var(--side); margin-right: calc(var(--side) / 2);
  padding: 118px 0 112px; display: flex; justify-content: space-between; align-items: flex-start;
}
.l-footer__logo img { width: 106px; }
.l-footer__address { margin-top: 9px; font-size: 13px; line-height: 22.75px; color: var(--gray-2); }
.l-footer__sns { margin-top: 24px; }
.l-footer__sns + .l-footer__copy { margin-top: 46px; }
.l-footer__copy { margin-top: 92px; font-size: 11px; line-height: 19.25px; color: var(--gray-2); }
.l-footer__copy small { font-size: inherit; }
.l-footer__pagetop { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 24.5px; }

/* ---------- 共通部品 ---------- */
/* 実績カード */
.c-work { display: block; color: var(--black); }
.c-work__img { aspect-ratio: 334 / 332; overflow: hidden; }
.c-work__img img { width: 100%; height: 100%; object-fit: cover; }
.c-work__cat { margin-top: 22px; font-size: 14px; font-weight: 500; line-height: 24.5px; }
.c-work__ttl { margin-top: 4.5px; font-size: 22px; line-height: 38.5px; }
.c-work__client { margin-top: 3.5px; font-size: 14px; font-weight: 300; line-height: 24.5px; }
.c-work--large .c-work__img { aspect-ratio: 719.5 / 899; }
.c-work--large .c-work__body { padding-inline: 30px; }
.c-work--large .c-work__cat { margin-top: 27px; color: var(--gray); }
.c-work--large .c-work__ttl { margin-top: 11.5px; color: var(--ink); }
.c-work--large .c-work__client { margin-top: 10.5px; color: var(--gray); }

.c-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 38px; }

/* お問い合わせ誘導 */
.c-cta { margin-top: 220px; padding-bottom: 224px; }
.c-cta__ttl { display: block; width: fit-content; margin-left: auto; margin-right: auto; font-size: 32px; font-weight: 500; line-height: 32px; }
.c-cta__body { width: fit-content; max-width: calc(100% - 2 * var(--side)); margin: 88px auto 0; }
.c-cta__txt { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 38px; font-feature-settings: "palt"; }
.c-cta .c-arrow-link { margin-top: 49px; }

/* お知らせカード */
.c-news { border-top: 1px solid var(--line); padding-top: 11px; }
.c-news__date { font-size: 13.5px; font-weight: 300; line-height: 20px; }
.c-news__img { margin-top: 16px; aspect-ratio: 334 / 332; }
.c-news__img img { width: 100%; height: 100%; object-fit: cover; }
/* 記事の画像が無い時：薄いグレーの地にプログレのロゴ（no_image()） */
.c-noimage { display: grid; place-items: center; width: 100%; height: 100%; background: var(--field); }
.c-noimage .c-noimage__logo { width: 40%; max-width: 220px; height: auto; object-fit: contain; transition: scale 1.6s cubic-bezier(.2, .7, .2, 1); }
.c-evo-card__media .c-noimage { position: absolute; inset: 0; }
.c-evo-card:hover .c-noimage .c-noimage__logo { scale: 1.04; }
.c-news__excerpt {
  margin-top: 25px; font-size: 16px; line-height: 29px; font-feature-settings: "palt";
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.c-news__more { display: block; width: fit-content; margin: 15px 0 0 auto; font-size: 10px; line-height: 14px; }
.c-news__ttl { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 16px; font-weight: 500; line-height: 24px; }

/* 本文（事例・お知らせの index.md から作る部分） */
.c-prose { font-size: 16px; line-height: 2; font-feature-settings: "palt"; }
.c-prose > * + * { margin-top: 1.75em; }
.c-prose h2 { margin-top: 88px; font-size: 22px; font-weight: 700; line-height: 34px; }
.c-prose h3 { margin-top: 48px; font-size: 18px; font-weight: 700; line-height: 30px; }
.c-prose > :first-child { margin-top: 0; }
.c-prose h2 + *, .c-prose h3 + * { margin-top: 20px; }
.c-prose figure { margin-block: 56px; }
.c-prose figure + figure { margin-top: 24px; }
.c-prose figcaption { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--gray); }
.c-prose ul { padding-left: 1.2em; list-style: disc; }
.c-prose ol { padding-left: 1.5em; list-style: decimal; }
.c-prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--line); color: var(--gray); }
.c-prose a { text-decoration: underline; text-underline-offset: 3px; }
.c-prose strong { font-weight: 700; }

/* 下書きの印・型のチェック（ローカルとテストサイトだけに出る） */
.c-work__img { position: relative; }
.c-draft-tag { display: inline-block; padding: 0 8px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; vertical-align: middle; }
.c-work__img .c-draft-tag { position: absolute; top: 12px; left: 12px; }
.c-notice { position: relative; z-index: 5; margin-bottom: 48px; padding: 16px 20px; border: 2px solid var(--red); font-size: 14px; line-height: 1.8; }
.c-notice ul { padding-left: 1.2em; list-style: disc; color: var(--red); }

/* =====================================================================
   TOP
   ===================================================================== */
/* 一番上：事例の写真と動画が、重なりながら切り替わる（top-hero.js）。
   入ってくる1枚が上に重なって現れ、出ていく1枚はその下で消えるのを待つ（間に地の色が透けない）。
   上はナビ、下はクレジットが読めるよう、上下だけうっすら暗くする */
.p-top-hero { position: relative; height: 709px; overflow: hidden; background: var(--ph); color: #fff; }
.p-top-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 30%),
    linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .34) 16%, rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, 0) 42%);
}
.p-top-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0s 1.4s, visibility 0s 1.4s; }
.p-top-hero__slide.is-on { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1.4s ease; }
.p-top-hero__img,
.p-top-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 写真は、出ている間ほんの少しずつ引いていく */
.p-top-hero__slide.is-on .p-top-hero__img { animation: top-hero-zoom 9s cubic-bezier(.2, .6, .3, 1) both; }
@keyframes top-hero-zoom { from { scale: 1.05; } to { scale: 1; } }
/* 動画は流れ始めてから写真の上に出す（読み込み中は写真のまま） */
.p-top-hero__video { opacity: 0; transition: opacity .6s; }
.p-top-hero__video.is-playing { opacity: 1; }
.p-top-hero__credit {
  position: absolute; left: var(--side); bottom: 40px; z-index: 3;
  display: block; max-width: calc(100% - 2 * var(--side) - 260px); color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25), 0 0 16px rgba(0, 0, 0, .35); font-feature-settings: "palt";
}
.p-top-hero__concept { display: block; font-size: 16px; font-weight: 700; line-height: 28px; letter-spacing: .06em; }
.p-top-hero__client { display: flex; align-items: center; gap: 9px; margin-top: 4px; font-size: 12px; line-height: 20px; letter-spacing: .08em; color: rgba(255, 255, 255, .85); }
.p-top-hero__client .c-arrow { width: 10px; height: 10px; background-image: url(/assets/img/icon-arrow-white.svg); }
.p-top-hero__slide.is-on .p-top-hero__credit { animation: top-hero-credit 1.2s ease .5s both; }
@keyframes top-hero-credit { from { opacity: 0; translate: 0 6px; } }
/* 右下：何枚目か（今の1枚は線が伸びていく）と、止めるボタン */
.p-top-hero__ui { position: absolute; right: var(--side); bottom: 44px; z-index: 3; display: flex; align-items: center; gap: 20px; }
.p-top-hero__ui[hidden] { display: none; }
.p-top-hero__dots { display: flex; gap: 6px; }
.p-top-hero__dot { display: block; width: 36px; padding: 10px 0; }
.p-top-hero__dot span { position: relative; display: block; height: 2px; background: rgba(255, 255, 255, .4); overflow: hidden; }
.p-top-hero__dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; }
.p-top-hero__dot:hover { opacity: 1; }
.p-top-hero__dot:hover span { background: rgba(255, 255, 255, .7); }
.p-top-hero__pause { position: relative; width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%; }
.p-top-hero__pause span,
.p-top-hero__pause span::before { position: absolute; top: 9px; width: 2px; height: 8px; background: #fff; }
.p-top-hero__pause span { left: 10px; }
.p-top-hero__pause span::before { content: ""; top: 0; left: 4px; }
/* 止めている時は ▶ */
.p-top-hero__pause.is-paused span { left: 11px; width: 0; height: 0; background: none; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.p-top-hero__pause.is-paused span::before { display: none; }
/* トップだけ、写真に重なる縦書きナビとお知らせを白にする */
.page-top .l-header__nav,
.page-top .l-header__news { color: #fff; text-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.page-top .l-header__news .c-arrow { background-image: url(/assets/img/icon-arrow-white.svg); }
/* 明るい絵の1枚（TOP_HERO の tone: light。白い紙の絵本など）の間は、文字と線を黒にして、上下の影をなくす */
.p-top-hero::after { transition: opacity 1.4s ease; }
.p-top-hero:has(.is-on[data-tone="light"])::after { opacity: 0; }
.p-top-hero__slide[data-tone="light"] .p-top-hero__credit { color: var(--ink); text-shadow: none; }
.p-top-hero__slide[data-tone="light"] .p-top-hero__client { color: var(--gray); }
.p-top-hero__slide[data-tone="light"] .p-top-hero__client .c-arrow { background-image: url(/assets/img/icon-arrow-gray.svg); }
.p-top-hero__dot span, .p-top-hero__dot span::after, .p-top-hero__pause, .p-top-hero__pause span, .p-top-hero__pause span::before { transition: background-color 1.4s ease, border-color 1.4s ease; }
.p-top-hero:has(.is-on[data-tone="light"]) .p-top-hero__dot span { background: rgba(35, 24, 21, .2); }
.p-top-hero:has(.is-on[data-tone="light"]) .p-top-hero__dot:hover span { background: rgba(35, 24, 21, .4); }
.p-top-hero:has(.is-on[data-tone="light"]) .p-top-hero__dot span::after,
.p-top-hero:has(.is-on[data-tone="light"]) .p-top-hero__pause span,
.p-top-hero:has(.is-on[data-tone="light"]) .p-top-hero__pause span::before { background-color: var(--ink); }
.p-top-hero:has(.is-on[data-tone="light"]) .p-top-hero__pause { border-color: rgba(35, 24, 21, .5); }
.p-top-hero:has(.is-on[data-tone="light"]) .p-top-hero__pause.is-paused span { background: none; border-color: transparent transparent transparent var(--ink); }
.page-top .l-header__nav, .page-top .l-header__news { transition: color 1.4s ease, text-shadow 1.4s ease; }
.page-top:has(.p-top-hero .is-on[data-tone="light"]) .l-header__nav,
.page-top:has(.p-top-hero .is-on[data-tone="light"]) .l-header__news { color: var(--ink); text-shadow: none; }
.page-top:has(.p-top-hero .is-on[data-tone="light"]) .l-header__news .c-arrow { background-image: url(/assets/img/icon-arrow-gray.svg); }
@media (prefers-reduced-motion: reduce) {
  .p-top-hero__slide, .p-top-hero__slide.is-on, .p-top-hero__video { transition: none; }
  .p-top-hero__slide.is-on .p-top-hero__img, .p-top-hero__slide.is-on .p-top-hero__credit { animation: none; }
}

.p-top-intro { padding-top: 89px; }
.p-top-intro__logo { line-height: 0; }
.p-top-intro__logo img { width: 225.78px; }
.p-top-intro__body { position: relative; margin-top: 60px; }
.p-top-intro__catch {
  position: absolute; top: 0; right: 66.5px;
  font-size: 46px; font-weight: 900; line-height: 85px;
}
.p-top-intro__txt { max-width: min(664px, 100% - 330px); padding-top: 62px; }
.p-top-intro__more { margin-top: 55px; color: var(--black); font-weight: 700; }


.p-top-can { position: relative; margin-top: 120px; min-height: 386px; }
.p-top-can__txt { max-width: 664px; margin-top: 32.5px; }
.p-top-can__vttl {
  position: absolute; top: 106px; right: calc(var(--side) / -2 - 3px);
  font-size: 35px; font-weight: 700; line-height: 35px;
}

/* SELECTED WORKS：1作品＝画面幅いっぱいの写真1枚（高さは画面の8割）。
   文字は写真の下端に、映画のクレジットのように小さく白で重ねる（案件名・ひとこと・制作領域）。
   どんな写真でも読めるよう、下側だけうっすら暗くする */
.p-selected { margin-top: 160px; }
.p-selected__heading { font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: .24em; }
.p-selected__list { display: grid; gap: 64px; margin-top: 40px; }
.p-selected__item { position: relative; }
.p-selected__link { display: block; color: var(--black); }
.p-selected__link:hover { opacity: 1; }
.p-selected__link:focus-visible { outline-offset: -3px; }
.p-selected__media { position: relative; height: clamp(420px, min(80vh, 75vw), 960px); overflow: hidden; }
.p-selected__img,
.p-selected__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-selected__img { transition: scale 1.6s cubic-bezier(.2, .7, .2, 1); }
.p-selected__link:hover .p-selected__img { scale: 1.015; }
.p-selected__video { opacity: 0; transition: opacity .8s; }
.p-selected__video.is-playing { opacity: 1; }
/* 動画の合間に見せる画像（selected-works.js が足す） */
.p-selected__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.p-selected__slide.is-on { opacity: 1; }
.p-selected__toggle {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 12px; line-height: 20px;
}
.p-selected__link { position: relative; }
/* 文字は画像の下に3段：分類（小さくグレー）→ キャッチ（大きく太字）→ 会社名（明朝でグレー） */
.p-selected__credit { padding: 22px var(--side) 0; color: var(--black); }
.p-selected__fields { font-size: 12.5px; font-weight: 700; line-height: 20px; letter-spacing: .06em; color: var(--gray); }
.p-selected__ttl { margin-top: 8px; font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; font-feature-settings: "palt"; }
.p-selected__client { margin-top: 8px; font-family: var(--serif); font-size: 14px; font-weight: 500; line-height: 22px; color: var(--gray); font-feature-settings: "palt"; }
.p-selected__all { display: flex; width: fit-content; margin: 120px auto 0; font-size: 13px; font-weight: 700; letter-spacing: .2em; }
/* 画面に入る時：写真がゆっくり現れ、わずかに引く。クレジットは少し遅れて出る（selected-works.js が is-armed → is-in） */
.p-selected__item.is-armed .p-selected__img { opacity: 0; transform: scale(1.04); }
.p-selected__item.is-armed .p-selected__credit { opacity: 0; }
.p-selected__item.is-armed.is-in .p-selected__img { opacity: 1; transform: none; transition: opacity 1.6s ease, transform 2.6s cubic-bezier(.16, 1, .3, 1), scale 1.6s cubic-bezier(.2, .7, .2, 1); }
.p-selected__item.is-armed.is-in .p-selected__credit { opacity: 1; transition: opacity 1.2s ease .5s; }
/* 横幅いっぱいに並べる。広い画面は3カラム、タブレットは2カラム、スマホは1列
   最後の段に穴が空かないよう、3カラムでは3で割って1余れば最初の1件を横いっぱい、2余れば最初の2件を半分ずつ。2カラムでは奇数なら最初の1件を横いっぱい */
@media (min-width: 768px) {
  .p-selected__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 6px; }
  .p-selected__media { height: auto; aspect-ratio: 4 / 3; }
  .p-selected__credit { padding: 22px clamp(20px, 2.4vw, 36px) 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .p-selected__item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
  .p-selected__item:first-child:nth-last-child(odd) .p-selected__media { aspect-ratio: auto; height: clamp(420px, 56vw, 560px); }
  .p-selected__ttl { font-size: 19px; }
  .p-selected__item:first-child:nth-last-child(odd) .p-selected__ttl { font-size: 24px; }
}
@media (min-width: 1024px) {
  .p-selected__list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .p-selected__item { grid-column: span 2; }
  .p-selected__item:first-child:nth-last-child(3n+1) { grid-column: 1 / -1; }
  .p-selected__item:first-child:nth-last-child(3n+2),
  .p-selected__item:nth-child(2):nth-last-child(3n+1) { grid-column: span 3; }
  .p-selected__ttl { font-size: 19px; }
  .p-selected__fields { font-size: 12px; }
  .p-selected__client { font-size: 13px; }
  .p-selected__item:first-child:nth-last-child(3n+1) .p-selected__media { aspect-ratio: auto; height: clamp(420px, min(76vh, 56vw), 900px); }
  .p-selected__item:first-child:nth-last-child(3n+1) .p-selected__ttl { font-size: 28px; }
  .p-selected__item:first-child:nth-last-child(3n+1) .p-selected__fields { font-size: 12.5px; }
  .p-selected__item:first-child:nth-last-child(3n+1) .p-selected__client { font-size: 14px; }
}
/* スマホ用の写真（main-sp.jpg）がある事例：PC の写真だけ位置を指定し、スマホ用は真ん中 */
.p-selected__img.has-sp { object-position: var(--pos, 50% 50%); }
/* スマホ幅だけの調整（index.md の card_sp_ratio / card_sp_zoom） */
@media (max-width: 767px) {
  .p-selected__img.has-sp { object-position: 50% 50%; }
  .p-selected__media[data-sp-ratio] { height: auto; aspect-ratio: var(--sp-ratio); }
  .p-selected__media[data-sp-zoom] .is-contain,
  .p-selected__link:hover .p-selected__media[data-sp-zoom] .p-selected__img.is-contain { scale: var(--sp-zoom); }
}
@media (prefers-reduced-motion: reduce) {
  .p-selected__img, .p-selected__video, .p-selected__slide { transition: none; }
  .p-selected__link:hover .p-selected__img { scale: none; }
}
.page-top .c-cta { margin-top: 227px; }

/* =====================================================================
   プログレのお仕事
   ===================================================================== */
.p-works { padding-top: 200px; }
/* 一覧は本文より広く使う（1440px 幅で左右 70px） */
.p-works__wrap { width: min(100% - 2 * clamp(20px, 4.86vw, 70px), 1300px); margin-inline: auto; }
.p-works__ttl { font-size: 52px; font-weight: 700; line-height: 1.1; letter-spacing: .04em; }
.p-works__ttl span { display: block; margin-top: 16px; font-size: 14px; line-height: 24px; letter-spacing: 0; }
.p-works-history .p-history__works { margin-top: 96px; } /* 仕事一覧＞歴史（/works/history/） */
.p-works-history__back { margin-top: 80px; }
/* 件数と「絞り込む」の帯（mount.jp/projects の形） */
.p-works__bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 96px; padding-bottom: 20px; border-bottom: 1px solid var(--black); }
.p-works__count { display: flex; align-items: center; font-size: 14px; font-weight: 700; line-height: 24px; }
.p-works__sep { width: 1px; height: 14px; margin: 0 10px; background: #bbb; }
.p-works__tools { display: flex; align-items: center; gap: 28px; }
.p-works__motion { min-height: 44px; font-size: 11.5px; line-height: 20px; color: #777; text-decoration: underline; text-underline-offset: 3px; }
.p-works__motion:hover { color: var(--black); }
.p-works__toggle, .p-works__float { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; line-height: 24px; color: var(--black); }
.p-works__plus { position: relative; flex: none; width: 36px; height: 36px; border-radius: 4px; background: var(--black); }
.p-works__plus::before, .p-works__plus::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 1.5px; background: #fff; transition: transform .3s ease; }
.p-works__plus::after { transform: rotate(90deg); }
[aria-expanded="true"] > .p-works__plus::after { transform: rotate(0deg); }
/* 絞り込みの中身（開いた時だけ） */
.p-works__filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.p-works__filter[hidden] { display: none; }
.p-works__filter button {
  display: inline-flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 4px; font-size: 13.5px; font-weight: 500; line-height: 22px; color: var(--black);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.p-works__filter button:hover { border-color: var(--black); }
.p-works__filter button[aria-pressed="true"] { border-color: var(--black); background: var(--black); color: #fff; }
.p-works__filter-en { font-size: 10px; letter-spacing: .14em; opacity: .55; }
.p-works__filter-n { font-size: 11px; opacity: .55; }
.p-works__lead { max-width: 640px; margin-top: 40px; font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 2; font-feature-settings: "palt"; color: var(--ink); }
/* 下の方まで見ている間だけ、左下に出る「絞り込む」 */
.p-works__float {
  position: fixed; left: clamp(20px, 4.86vw, 70px); bottom: 32px; z-index: 20; padding: 8px 8px 8px 18px;
  border-radius: 6px; background: #fff; box-shadow: 0 4px 24px rgba(0, 0, 0, .14);
  opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity .3s ease, translate .3s ease, visibility 0s .3s;
}
.p-works__float.is-shown { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .3s ease, translate .3s ease; }
/* 作品の並び：3件ずつのまとまり。9件ごとに「大1＋小2」「小3」「小3」（次の9件は大を右に） */
.p-works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 64px 44px; margin-top: 64px; }
/* 事例がまだ無いカテゴリを選んだ時 */
.p-works__empty { margin-top: 24px; font-size: 14px; color: var(--gray); }
.p-works__empty[hidden] { display: none; }
.p-works__item { display: flex; }
.p-works__item[hidden] { display: none; }
.p-works__item.is-big { grid-column: span 2; grid-row: span 2; container-type: inline-size; }
.p-works__item.is-big.is-right { grid-column: 2 / span 2; }
.p-works__item.is-shown { animation: p-works-in .6s ease both; }
@keyframes p-works-in { from { opacity: 0; transform: translateY(8px); } }
.p-works .c-cta { margin-top: 200px; }

/* 仕事一覧の1件：角丸の画像（数秒ごとに切り替わる）と、下に名前・ひとこと・矢印 */
.c-work-card { display: flex; flex-direction: column; width: 100%; color: var(--black); }
.c-work-card:hover { opacity: 1; }
.c-work-card:focus-visible { outline-offset: 6px; }
.c-work-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--field); isolation: isolate; }
.c-work-card__media.is-empty { background: var(--ph); } /* 画像が届くまでのグレー */
/* 横の小さい2件の高さに合わせる。一覧の最後などで横が空いていても、小さい2段分の高さ（幅×3/4＋段の間と名前の分）は保つ */
.is-big .c-work-card__media { flex: 1 1 0; aspect-ratio: auto; min-height: 320px; min-height: calc(75cqw + 89px); }
/* 白地の画像でも形がわかるよう、ごく薄い線 */
.c-work-card__media::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07); pointer-events: none; }
.c-work-card__img, .c-work-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.c-work-card__img { opacity: 0; transition: opacity .9s ease, scale 1s cubic-bezier(.2, .7, .2, 1); }
.c-work-card__img.is-on { opacity: 1; }
.c-work-card:hover .c-work-card__img { scale: 1.03; }
/* Webサイト・システムの画面（web-*.jpg / recruit-*.jpg / system-*.jpg）は切らずに全体を見せ、グレーの地に置く（ロゴが切れないように） */
:is(.c-work-card__img, .c-work__img img):is([src*="/web-"], [src*="/recruit-"], [src*="/system-"]) {
  object-fit: contain; padding: 8%;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .2)) drop-shadow(0 6px 16px rgba(0, 0, 0, .08));
}
.c-work-card__video { z-index: 1; opacity: 0; transition: opacity .6s ease; }
.c-work-card__video.is-playing { opacity: 1; }
.c-work-card__media .c-draft-tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.p-selected__media .c-draft-tag { position: absolute; top: 16px; left: 16px; z-index: 2; }
/* main.jpg の無い事例（ロゴなど）は、画像を切らずに白地の真ん中に出す（下のクレジットにかからないよう、下を広く空ける） */
.p-selected__img.is-contain, .p-selected__slide.is-contain { box-sizing: border-box; padding: 2% 8% 10%; object-fit: contain; background: #fff; }
.c-work-card__fields {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; max-width: calc(100% - 20px); padding: 3px 9px; border-radius: 3px;
  background: rgba(255, 255, 255, .92); font-size: 9.5px; line-height: 16px; letter-spacing: .12em; color: #777;
}
.c-work-card__body { display: flex; align-items: center; gap: 16px; min-height: 46px; margin-top: 16px; }
.c-work-card__text { flex: 1; min-width: 0; }
.c-work-card__ttl, .c-work-card__concept { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-feature-settings: "palt"; }
.c-work-card__ttl { font-size: 15px; font-weight: 700; line-height: 24px; letter-spacing: .02em; }
.c-work-card__concept { margin-top: 2px; font-size: 12.5px; line-height: 20px; color: #888; }
.c-work-card__arrow {
  flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45'%3E%3Cpath d='M23.4 29.9 22 28.6l6.1-6.1L22 16.4l1.4-1.4 7.5 7.5z'/%3E%3Cpath d='M15 21.4h14.4v1.9H15z'/%3E%3C/svg%3E") center / 36px no-repeat;
  transition: background-color .2s ease, border-color .2s ease, background-position .3s ease;
}
.c-work-card:hover .c-work-card__arrow { border-color: var(--black); background-position: calc(50% + 3px) 50%; }
.is-big .c-work-card__ttl { font-size: 17px; line-height: 28px; }
.c-work-card__fields span, .p-selected__fields span:not(.u-visually-hidden) { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .p-works__item.is-shown { animation: none; }
  .c-work-card__img, .p-works__plus::after, .p-works__float { transition: none; }
  .c-work-card:hover .c-work-card__img { scale: none; }
}
@media (max-width: 1023px) {
  .p-works__grid { gap: 48px 24px; }
  .is-big .c-work-card__media { min-height: calc(75cqw + 91.5px); }
  .c-work-card__ttl, .is-big .c-work-card__ttl { font-size: 14px; line-height: 22px; }
  .c-work-card__concept { font-size: 12px; }
}

/* =====================================================================
   私たちについて
   ===================================================================== */
.p-about { padding-top: 285px; }
.p-about__concept { margin-top: 98px; }
/* 下層ページでは最初のセクションの上余白をなくす（上はヘッダー分の padding-top） */
.p-about > section:first-child { margin-top: 0; }
.p-about__concept-body { max-width: 933px; }
.p-about__concept-body > :first-child { margin-top: 0; }
.p-about__concept-body p + p { margin-top: 38px; }
.p-about__heading { margin: 76px 0 38px; font-family: var(--sans); font-size: 31px; font-weight: 700; line-height: 41px; }

.p-about__philosophy { position: relative; margin-top: 173px; }

.p-about__company { margin-top: 200px; }
.p-about__company-list {
  display: grid; grid-template-columns: 8em 1fr; max-width: 760px; margin-top: 40px;
  font-size: 16px; line-height: 1.8; border-top: 1px solid var(--line);
}
.p-about__company-list dt,
.p-about__company-list dd { padding: 18px 0; border-bottom: 1px solid var(--line); }
.p-about__company-list dt { font-weight: 700; font-size: 14px; }

/* 歴史 */
.p-history__catch { margin-top: 40px; font-size: 38px; font-weight: 900; line-height: 64px; font-feature-settings: "palt"; }
.p-history__lead { max-width: 760px; margin-top: 56px; }
/* 過去の仕事：年代ごとの帯に、作品が右から左へ流れ続ける */
.p-history__works { margin-top: 160px; background: #1a1a1a; color: #fff; }
.p-history__age { padding: 56px 0 72px; }
.p-history__age + .p-history__age { border-top: 1px solid rgba(255, 255, 255, .25); }
.p-history__age-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-inline: var(--side); }
.p-history__age-ttl { font-size: 14px; font-weight: 500; line-height: 22px; letter-spacing: .04em; }
/* 早送り：押すと帯が速く流れる（もう一度押すと元の速さ） */
.p-history__speed {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; color: #fff;
  transition: background-color .2s, color .2s, border-color .2s;
}
.p-history__speed::before { content: ""; width: 14px; height: 9px; background: currentColor; clip-path: polygon(0 0, 50% 50%, 50% 0, 100% 50%, 50% 100%, 50% 50%, 0 100%); }
.p-history__speed:hover { border-color: #fff; }
.p-history__speed[aria-pressed="true"] { background: #fff; color: #1a1a1a; border-color: #fff; }
.p-history__age-body { margin-top: 40px; overflow: hidden; }
.p-history__reel { display: flex; align-items: center; width: max-content; animation: p-history-reel 80s linear infinite; }
.p-history__age:nth-child(even) .p-history__reel { animation-duration: 95s; }
.p-history__reel li { flex: none; height: 300px; margin-right: 64px; }
.p-history__reel img,
.p-history__ph { display: block; width: auto; height: 100%; }
.p-history__ph { aspect-ratio: var(--r); }
.p-history__age-body:hover .p-history__reel { animation-play-state: paused; }
@keyframes p-history-reel { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .p-history__reel { animation: none; }
  .p-history__age-body { overflow-x: auto; }
  .p-history__speed { display: none; }
}

/* ページ下の、ほかの下層ページへのリンク */
.p-about__pages { margin-top: 200px; padding-bottom: 200px; }
.p-about__pages ul { display: flex; flex-wrap: wrap; gap: 20px 80px; }
.p-about__pages a { font-size: 22px; font-weight: 700; line-height: 32px; }
.p-about__pages span { margin-right: 12px; font-weight: 300; color: var(--gray); }

/* =====================================================================
   お知らせ
   ===================================================================== */
.p-news { padding: 589px 0 218px; }
.p-news__years { display: flex; gap: 46px; margin-top: 47px; padding-left: 5px; font-size: 17.5px; font-weight: 700; line-height: 21px; }
.p-news__years [aria-current] { color: var(--red); }
.p-news__grid { margin-top: 211px; row-gap: 137px; }
.p-news__empty { margin-top: 120px; }

/* 事例の詳細 */
.p-work { padding-top: 285px; }
.p-work__cat { font-size: 14px; font-weight: 500; line-height: 24.5px; color: var(--gray); }
.p-work__ttl { margin-top: 14px; font-size: 38px; font-weight: 700; line-height: 58px; font-feature-settings: "palt"; }
.p-work__client { margin-top: 12px; font-size: 16px; font-weight: 300; line-height: 28px; }
.p-work__main { margin-top: 80px; }
.p-work__main img { width: 100%; }
.p-work__body { display: grid; grid-template-columns: 240px minmax(0, 720px); column-gap: 80px; margin-top: 88px; }
.p-work__meta { align-self: start; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
.p-work__meta dt { padding-top: 16px; font-size: 12px; font-weight: 300; color: var(--gray); }
.p-work__meta dd { padding: 2px 0 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.p-work__meta a { text-decoration: underline; text-underline-offset: 3px; }
.p-work__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 120px; }
.p-work__gallery img { width: 100%; }
.p-work .js-zoom { display: block; cursor: zoom-in; }
.p-work .js-zoom img { transition: opacity .3s ease; }
.p-work .js-zoom:hover img { opacity: .85; }

/* 画像の拡大表示（main.js が .js-zoom から作る dialog） */
.is-zoom-open { overflow: hidden; }
.c-zoom { width: 100%; max-width: none; height: 100%; max-height: none; padding: 0; border: 0; background: rgba(0, 0, 0, .96); color: #fff; }
.c-zoom[open] { display: grid; place-items: center; }
.c-zoom::backdrop { background: transparent; }
.c-zoom__img { width: min(100vw - 160px, (100vh - 140px) * 1000 / 650); max-height: calc(100vh - 140px); object-fit: contain; }
.c-zoom.is-pan .c-zoom__img { width: calc(100vw - 160px); } /* 横長の画像は、横幅いっぱいまで大きく */
.c-zoom__count { position: absolute; left: 0; right: 0; bottom: 24px; font-size: 13px; letter-spacing: .1em; text-align: center; }
.c-zoom__close, .c-zoom__nav { position: absolute; width: 56px; height: 56px; color: #fff; }
.c-zoom__close { top: 16px; right: 16px; }
.c-zoom__close::before, .c-zoom__close::after { content: ""; position: absolute; inset: 0; margin: auto; width: 26px; height: 1.5px; background: currentColor; rotate: 45deg; }
.c-zoom__close::after { rotate: -45deg; }
.c-zoom__nav { top: 50%; translate: 0 -50%; }
.c-zoom__nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.c-zoom__nav--prev { left: 16px; }
.c-zoom__nav--prev::before { rotate: -135deg; translate: 3px 0; }
.c-zoom__nav--next { right: 16px; }
.c-zoom__nav--next::before { rotate: 45deg; translate: -3px 0; }
.c-zoom__close:hover, .c-zoom__nav:hover { opacity: .6; }
.c-zoom.is-single .c-zoom__nav, .c-zoom.is-single .c-zoom__count { display: none; }
.p-work__others { margin-top: 200px; }
.p-work__others .c-grid3 { margin-top: 50px; }
.p-work__back { display: flex; width: fit-content; margin: 64px 0 0 auto; }
/* 関連する事例（同じお客さまの事例。見出しの下にお客さまの名前） */
.p-work__related .c-heading span { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; line-height: 1.6; color: #777; }
.p-work__related + .p-work__others { margin-top: 160px; }
.p-work .c-cta { margin-top: 200px; }

/* ジャンルごとの段がある事例（works/detail.php の .is-project）。写真を画面いっぱいに置き、見出しは縦書きで重ねる */
.p-work.is-project { padding-top: 0; }
.p-project__hero { position: relative; }
.p-project__hero-photo { position: relative; overflow: hidden; }
/* main.mp4 がある事例は、写真の上で無音の動画をくり返す（main.js が流し始めたら is-playing で前に出す） */
.p-project__hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.p-project__hero-video.is-playing { opacity: 1; }
.p-project__toggle {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff;
  font-size: 12px; line-height: 20px;
}
@media (prefers-reduced-motion: reduce) { .p-project__hero-video { transition: none; } }
.p-project__hero-img { display: block; width: 100%; height: min(49vw, 100svh); object-fit: cover; }
.p-project__hero.is-plain { height: 500px; } /* main.jpg が無い事例。縦書きナビの下にタイトルが来る高さ */
.p-project__ttl {
  position: absolute; top: calc(100% - 232px); right: calc(var(--side) + 66px);
  font-size: 46px; font-weight: 500; line-height: 85px; letter-spacing: 0; white-space: nowrap;
}
.p-project .c-notice { margin-top: max(160px, calc(var(--ttl-n) * 46px - 216px)); }
.p-project__client { width: calc(100% - 300px); margin-top: max(264px, calc(var(--ttl-n) * 46px - 319px)); font-size: 21px; font-weight: 500; line-height: 34px; }
.p-project .c-notice + .l-inner .p-project__client { margin-top: 48px; }
.p-project__hero.is-plain ~ .c-notice { margin-top: max(48px, calc(var(--ttl-n) * 46px - 216px)); }
.p-project__hero.is-plain + .l-inner .p-project__client { margin-top: max(48px, calc(var(--ttl-n) * 46px - 319px)); }
@media (min-width: 768px) and (max-width: 1024px) { /* 幅が狭いと名前がタイトルの横に収まらないので、タイトルの下まで下げる */
  .p-project__hero.is-plain + .l-inner .p-project__client { margin-top: max(48px, calc(var(--ttl-n) * 46px - 216px)); }
}
.p-project__client span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 20px; color: var(--gray); }
.p-project__intro { margin-top: 55px; columns: 2; column-gap: 53px; }
.p-project__intro p, .p-project__lead p {
  font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 2; font-feature-settings: "palt";
  word-break: auto-phrase; /* 行の終わりと段の切れ目を、ことばの途中（「なっちゃ／ん」）ではなく、ことばの切れ目にする。両端そろえにすると字の間が開くので、左そろえ */
}
.p-project__intro p + p, .p-project__lead p + p { margin-top: 2em; }
.p-project__parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; margin-top: 107px; }
.p-project__parts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 2つの時は右に空白ができないよう、幅いっぱいに */
.p-project__parts > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
.p-project__label { font-size: 15px; font-weight: 400; line-height: 29px; color: var(--gray); }
.p-project__lead { margin-top: 9px; }
.p-project__thumb { display: block; margin-top: 24px; aspect-ratio: 330 / 195; overflow: hidden; }
.p-project__thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.p-project__thumb:hover img { opacity: .85; }
.p-project__part { margin-top: 130px; scroll-margin-top: 40px; }
.p-project__media { margin-top: 12px; }
.p-project__media > * + * { margin-top: 24px; }
.p-project__media img { width: 100%; }
/* Webサイト・システムの画面（web-*.jpg / recruit-*.jpg / system-*.jpg）は、白いサイトがページの白に溶けないよう細い線で囲む（一覧のカードと同じ考え） */
:is(.p-project__thumb, .p-project__media) img:is([src*="/web-"], [src*="/recruit-"], [src*="/system-"]) { outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.p-project__media p { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
/* 事例の URL（会社名の下のジャンル名と同じ、小さいグレーの文字） */
.p-project__media p.c-site-url { margin-top: 12px; font-family: var(--sans); font-size: 12.5px; font-weight: 500; line-height: 20px; color: var(--gray); }
.p-project__media p.c-site-url a { color: inherit; text-decoration: none; }
.p-project__media p.c-site-url a:hover { text-decoration: underline; }
.p-project__media figcaption { margin-top: 12px; font-size: 13px; line-height: 1.7; color: var(--gray); }
.p-project + .p-work__others { margin-top: 160px; }
.p-project__media p.c-reveal__note { display: none; }

/* 年ごとの行（markdown の「### 2026 | チラシ」。左に年と説明、右に画像を2列。画像は押すと拡大） */
.c-shelf { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.p-project__media > .c-shelf + .c-shelf { margin-top: 56px; }
.c-shelf__head { display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.c-shelf__ttl { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.2; }
.c-shelf__sub { font-size: 13px; line-height: 1.7; color: var(--gray); }
.c-shelf__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.c-shelf__figs a { display: block; cursor: zoom-in; }
.c-shelf__figs img { outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; transition: opacity .3s ease; }
.c-shelf__figs a:hover img { opacity: .85; }
@media (max-width: 767px) {
  .c-shelf { grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding-top: 20px; }
  .p-project__media > .c-shelf + .c-shelf { margin-top: 40px; }
  .c-shelf__head { flex-direction: row; align-items: baseline; gap: 12px; }
  .c-shelf__ttl { font-size: 24px; }
  .c-shelf__figs { gap: 12px; }
}

/* 問いのボックス：押すと下に中身が開く（markdown の「::: 問い | EN」。main.js が is-armed を付けた時だけ閉じる） */
.c-reveal { background: var(--field); }
.c-reveal__q {
  position: relative; display: block; width: 100%; padding: 120px 140px 120px 64px; text-align: left; color: var(--black);
  transition: background-color .4s ease;
}
.c-reveal__q:hover { background: #ececec; }
.c-reveal__en { display: block; font-size: 12px; font-weight: 500; letter-spacing: .22em; line-height: 20px; color: var(--gray); }
.c-reveal__ttl { display: block; margin-top: 20px; font-size: clamp(28px, 4vw, 52px); font-weight: 700; line-height: 1.35; font-feature-settings: "palt"; word-break: auto-phrase; } /* 折り返しは、ことばの切れ目で */
.c-reveal__icon { position: absolute; top: 28px; right: 28px; width: 36px; height: 36px; border-radius: 4px; background: var(--black); }
.c-reveal__icon::before, .c-reveal__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 1.5px; background: #fff;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.c-reveal__icon::after { transform: rotate(90deg); }
.c-reveal__q[aria-expanded="true"] .c-reveal__icon::after { transform: rotate(0deg); }
.c-reveal__hint { position: absolute; right: 28px; bottom: 28px; display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 20px; }
.c-reveal__hint-close, .c-reveal__q[aria-expanded="true"] .c-reveal__hint-open { display: none; }
.c-reveal__q[aria-expanded="true"] .c-reveal__hint-close { display: inline; }
.c-reveal__hint .c-arrow { transition: translate .4s cubic-bezier(.2, .7, .2, 1); }
.c-reveal__q:hover .c-arrow { translate: 4px 0; }
.c-reveal__body { display: grid; grid-template-rows: 1fr; }
.c-reveal__inner { min-height: 0; overflow: hidden; }
.c-reveal__inner > * + * { margin-top: 24px; }
.c-reveal__inner img { width: 100%; height: auto; }
.c-reveal__note { display: none; font-size: 11.5px; line-height: 20px; color: var(--gray); text-align: center; }
.c-reveal.is-armed .c-reveal__body { grid-template-rows: 0fr; transition: grid-template-rows .7s cubic-bezier(.2, .7, .2, 1); }
.c-reveal.is-armed.is-open .c-reveal__body { grid-template-rows: 1fr; }
.c-reveal.is-armed .c-reveal__inner > * { opacity: 0; translate: 0 16px; transition: opacity .4s ease, translate .4s ease; }
.c-reveal.is-armed.is-open .c-reveal__inner > * { opacity: 1; translate: 0 0; transition: opacity .8s ease .25s, translate .9s cubic-bezier(.2, .7, .2, 1) .25s; }
.c-reveal__inner .js-zoom { display: block; cursor: zoom-in; }
/* 中身が画像1枚の時：ボックスを画像と同じ形にし、押すと画像が問いの上にかぶさる（問いの文字は消える） */
.c-reveal--cover { position: relative; width: 100%; aspect-ratio: var(--ratio); } /* 幅を決めておく（スマホで高さを取った時に、横に広がらないように） */
.c-reveal--cover .c-reveal__q { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 calc(var(--side) + 80px) 0 var(--side); }
/* 事例の段では、画面の横幅いっぱいに出す（問いの文字と＋は、本文の幅にそろえる） */
.p-project__media > .c-reveal--cover { width: 100vw; margin-inline: calc(50% - 50vw); }
.c-reveal--cover .c-reveal__icon, .c-reveal--cover .c-reveal__hint { right: var(--side); }
.c-reveal--cover .c-reveal__ttl { margin-top: 14px; font-size: clamp(24px, 3.2vw, 44px); }
.c-reveal--cover .c-reveal__en, .c-reveal--cover .c-reveal__ttl, .c-reveal--cover .c-reveal__hint {
  transition: opacity .5s ease .45s, translate .7s cubic-bezier(.2, .7, .2, 1) .45s;
}
.c-reveal--cover.is-open .c-reveal__en, .c-reveal--cover.is-open .c-reveal__ttl, .c-reveal--cover.is-open .c-reveal__hint {
  opacity: 0; translate: 0 -10px; transition: opacity .3s ease, translate .4s ease;
}
.c-reveal--cover .c-reveal__icon { z-index: 2; transition: opacity .3s ease; }
/* 開いた後の「−」はパネルの右上に重なるので、小さくし、PCでは画像に載せた時だけ見せる */
.c-reveal--cover.is-open .c-reveal__icon { top: 12px; right: 12px; width: 28px; height: 28px; }
.c-reveal--cover.is-open .c-reveal__icon::before, .c-reveal--cover.is-open .c-reveal__icon::after { width: 12px; }
@media (hover: hover) {
  .c-reveal--cover.is-open .c-reveal__icon { opacity: 0; }
  .c-reveal--cover.is-open:hover .c-reveal__icon, .c-reveal--cover.is-open:has(:focus-visible) .c-reveal__icon { opacity: 1; }
}
.c-reveal--cover .c-reveal__body { position: absolute; inset: 0; z-index: 1; display: block; }
.c-reveal--cover .c-reveal__inner, .c-reveal--cover figure, .c-reveal--cover .js-zoom { height: 100%; }
.c-reveal--cover .c-reveal__inner img { height: 100%; object-fit: cover; }
.c-reveal--cover.is-armed .c-reveal__body { clip-path: inset(0 100% 0 0); pointer-events: none; transition: clip-path .9s cubic-bezier(.65, 0, .15, 1); }
.c-reveal--cover.is-armed.is-open .c-reveal__body { clip-path: inset(0); pointer-events: auto; }
.c-reveal--cover.is-armed .c-reveal__inner > * { opacity: 1; translate: none; transition: none; }
.c-reveal--cover.is-armed .c-reveal__inner img { scale: 1.04; transition: scale 1.4s cubic-bezier(.2, .7, .2, 1); }
.c-reveal--cover.is-armed.is-open .c-reveal__inner img { scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .c-reveal--cover .c-reveal__en, .c-reveal--cover .c-reveal__ttl, .c-reveal--cover .c-reveal__hint,
  .c-reveal--cover.is-armed .c-reveal__body, .c-reveal--cover.is-armed .c-reveal__inner img { transition: none !important; translate: none !important; scale: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .c-reveal__q, .c-reveal__icon::before, .c-reveal__icon::after, .c-reveal__hint .c-arrow,
  .c-reveal.is-armed .c-reveal__body, .c-reveal.is-armed .c-reveal__inner > * { transition: none !important; translate: none !important; }
}

/* 本文の動画（content.php：YouTube は video_embed、動画ファイルは <video>） */
.c-video iframe, .c-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
/* 縦長の動画（サイネージの縦動画）は、サイネージの柱の形に入れる（content.php の md_video）
   画面のまわりに黒いベゼルと銀の縁、画面の下に柱が続き、下に向かって消える。画面が画面の高さ（72svh）に収まる大きさ
   2本並び（.js-video-pair）は左右連動のサイネージ。--ar は動画の 横÷縦 */
.c-signage-row { display: flex; justify-content: center; gap: clamp(16px, 3vw, 48px); }
.c-signage {
  --bz: clamp(9px, 1.5vw, 22px);
  position: relative; flex: 0 1 auto; width: calc(72svh * var(--ar) + var(--bz) * 2); min-width: 0; /* 入りきらない時は縮む */
  padding: calc(var(--bz) * 2.4) var(--bz) calc(var(--bz) * 10);
  border-radius: calc(var(--bz) * 1.4) calc(var(--bz) * 1.4) 0 0;
  background: linear-gradient(100deg, #262626, #0a0a0a 28%, #000 60%, #1c1c1c);
  box-shadow: inset 0 0 0 2px #d4d4d4, inset 0 0 0 3px #555;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--bz) * 8), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--bz) * 8), transparent);
}
/* 上のベゼルのセンサー */
.c-signage::before { content: ""; position: absolute; top: calc(var(--bz) * 1.2 - 3px); left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3a3a3a; }
.c-signage video { display: block; width: 100%; height: auto; }
/* 動画を3つ以上1行に並べた時（content.php）は、スマホの画面の形で横に並べる。PC は1行に4つまで、スマホは2つずつ。--ar は動画の 横÷縦 */
.c-phone-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 3vw, 40px) clamp(12px, 2.4vw, 32px); }
/* 現行の iPhone（Pro）をまねた枠：細くそろったベゼル、大きな角丸、ダイナミックアイランド、側面のボタン。
   角丸は % で書いて幅に比例させる（縦は --ar を掛けて、まるい角になるようにそろえる） */
.c-phone {
  --pz: clamp(3px, .5vw, 6px);
  position: relative; isolation: isolate;
  flex: 0 1 auto; width: min(calc(64svh * var(--ar) + var(--pz) * 2), calc((100% - clamp(12px, 2.4vw, 32px) * 3) / 4)); min-width: 0;
  padding: var(--pz); border-radius: 15.5% / calc(15.5% * var(--ar));
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 2px #3b3b3f, 0 0 0 3px #77777c, 0 22px 36px -22px rgba(0, 0, 0, .55);
}
.c-phone video { display: block; width: 100%; height: auto; border-radius: 13.4% / calc(13.4% * var(--ar)); }
/* ダイナミックアイランド（画面の上の黒い楕円。押せるのは動画なので、クリックは通す） */
.c-phone::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  top: var(--pz); left: 50%; width: 29%; aspect-ratio: 126 / 37; margin: 3% 0 0 -14.5%;
  border-radius: 999px; background: #000;
}
/* 側面のボタン（左：アクションボタンと音量の上下、右：電源） */
.c-phone::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 -5px;
  background:
    linear-gradient(#4a4a4e, #4a4a4e) 0 14% / 3px 3.5% no-repeat,
    linear-gradient(#4a4a4e, #4a4a4e) 0 24% / 3px 7% no-repeat,
    linear-gradient(#4a4a4e, #4a4a4e) 0 36% / 3px 7% no-repeat,
    linear-gradient(#4a4a4e, #4a4a4e) 100% 29% / 3px 11% no-repeat;
  border-radius: 2px;
}
@media (max-width: 767px) {
  .c-phone { width: calc((100% - clamp(12px, 2.4vw, 32px)) / 2); }
}

/* お知らせの詳細 */
.p-article { padding: 285px 0 218px; }
.p-article > article { max-width: 760px; }
.p-article__head { margin-top: 64px; }
.p-article__date { font-size: 13.5px; font-weight: 300; line-height: 20px; }
.p-article__ttl { margin-top: 16px; font-size: 30px; line-height: 48px; font-feature-settings: "palt"; }
.p-article__main { margin-top: 56px; }
.p-article__main img { width: 100%; }
.p-article__body { margin-top: 56px; }
.p-article__gallery { display: grid; gap: 24px; margin-top: 56px; }
.p-article__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 120px; padding-top: 24px; border-top: 1px solid var(--line); }
.p-article__pager a { font-size: 14px; line-height: 1.7; }
.p-article__pager span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 300; color: var(--gray); }
.p-article__pager .is-newer { grid-column: 2; text-align: right; }
.p-article__back { margin-top: 64px; }
.p-article__missing { margin: 48px 0; }

/* =====================================================================
   お問合わせ
   ===================================================================== */
.p-contact { padding: 588px 0 300px; }
.p-contact__lead { margin-top: 86px; font-size: 23px; line-height: 42.1px; letter-spacing: .04em; }
.p-contact .c-arrow-link.is-red:not(button) { margin-top: 80px; }

.p-form { margin-top: 169px; max-width: 1083px; }
.p-form__row + .p-form__row { margin-top: 62px; }
.p-form__label { display: block; font-size: 14px; font-weight: 300; line-height: 17px; }
.p-form__req { margin-left: 14px; color: var(--red); }
.p-form__pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 55px; }
.p-form__single { width: calc(50% - 27.5px); }
.p-form__row > div, .p-form__pair > div { min-width: 0; }
.p-form__row > :not(.p-form__label) { margin-top: 18px; }
.p-form input,
.p-form textarea {
  display: block; width: 100%; height: 73px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 0; background: var(--field);
  font: 300 14px/1.6 var(--sans); color: var(--black);
}
.p-form textarea { height: 340px; padding: 20px 22px; resize: vertical; }
.p-form ::placeholder { color: #b5b5b5; }
.p-form [aria-invalid="true"] { border-color: var(--red); }
.p-form__error { margin-top: 6px; font-size: 13px; color: var(--red); }
.p-form__error--global { margin-top: 40px; }
.p-form__submit { margin-top: 86px; }
.p-form__confirm { display: grid; grid-template-columns: 10em 1fr; border-top: 1px solid var(--line); }
.p-form__confirm dt, .p-form__confirm dd { padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.p-form__confirm dt { font-weight: 300; }
.p-form__actions { display: flex; gap: 60px; margin-top: 60px; }
.p-form__actions .c-arrow-link { font-family: var(--mincho); font-size: 16px; }
.c-arrow-link.is-back { color: var(--gray-2); }

/* =====================================================================
   タブレット（縦書きのサブナビが本文と重なる幅）
   ===================================================================== */
@media (max-width: 1180px) {
  .l-header__subnav, .l-header__page-label, .l-header__news { display: none; }
}

/* =====================================================================
   スマートフォン
   ===================================================================== */
@media (max-width: 767px) {
  :root { --side: 20px; }
  body { font-size: 15px; }
  .l-header__nav { display: none; }
  .l-header__menu-btn { top: 28px; left: 20px; width: 40px; height: 14px; }
  .l-header__menu-btn span { width: 40px; height: 2px; }
  .l-header__menu-btn span:last-child { top: 12px; }

  .g-menu__close { top: 28px; left: 20px; width: 40px; height: 14px; }
  .g-menu__close span { top: 6px; width: 40px; height: 2px; }
  :root:not(.is-menu-open) .g-menu__close span:first-child { translate: 0 -6px; }
  :root:not(.is-menu-open) .g-menu__close span:last-child { translate: 0 6px; }
  .g-menu__inner { min-height: 0; padding: 90px 20px 60px; }
  .g-menu__logo { position: static; width: 160px; margin-left: auto; }
  .g-menu__cols { position: static; flex-wrap: wrap; gap: 48px 40px; margin-top: 48px; }
  .g-menu__group + .g-menu__group { margin-right: 0; }
  .g-menu .v-nav, .g-menu .v-subnav, .g-menu__group-ttl { font-size: 18px; line-height: 18px; }
  .g-menu .v-nav li + li, .g-menu .v-subnav li + li { margin-block-start: 16px; }
  .g-menu__group { gap: 28px; }
  .g-menu__sns { bottom: -32px; } /* 字が小さくサブナビとの間が詰まるので、少し下げる */

  .c-serif, .c-cta__txt { font-size: 17px; line-height: 31px; }
  .c-heading { font-size: 24px; line-height: 34px; }
  .c-grid3 { grid-template-columns: 1fr; row-gap: 56px; }
  .c-work__ttl { font-size: 19px; line-height: 32px; }
  .c-work--large .c-work__body { padding-inline: 20px; }
  .c-cta { margin-top: 120px; padding-bottom: 120px; }
  .c-cta__ttl { font-size: 26px; line-height: 26px; }
  .c-cta__body { margin-top: 48px; }

  .l-footer__inner { flex-direction: column; gap: 32px; margin-right: var(--side); padding: 56px 0 40px; }
  .l-footer__copy, .l-footer__sns + .l-footer__copy { margin-top: 32px; }
  .l-footer__address { font-size: 12px; }

  .p-top-hero { height: 62vh; height: 62svh; }
  .p-top-hero__credit { left: 20px; right: 20px; bottom: 56px; max-width: none; }
  .p-top-hero__concept { font-size: 14px; line-height: 24px; }
  .p-top-hero__client { font-size: 11px; }
  .p-top-hero__ui { left: 20px; right: auto; bottom: 14px; gap: 14px; }
  .p-top-hero__dot { width: 28px; }
  .p-top-intro { padding-top: 48px; }
  .p-top-intro__logo img { width: 170px; }
  .p-top-intro__body { margin-top: 40px; }
  .p-top-intro__catch { position: static; width: fit-content; margin-left: auto; margin-right: auto; font-size: 32px; line-height: 56px; }
  .p-top-intro__txt { max-width: none; padding-top: 40px; }
  .p-top-intro__more { margin-top: 32px; }
  .p-top-can { margin-top: 72px; min-height: 0; }
  .p-top-can__txt { max-width: none; }
  .p-top-can__vttl { position: static; margin: 48px auto 0; display: block; width: fit-content; font-size: 26px; line-height: 26px; }
  .p-selected { margin-top: 96px; }
  .p-selected__heading { font-size: 12px; }
  .p-selected__list { margin-top: 24px; }
  .p-selected__media { height: auto; aspect-ratio: 4 / 5; max-height: 78svh; }
  .p-selected__list { gap: 48px; }
  .p-selected__credit { padding-top: 16px; }
  .p-selected__fields { font-size: 11.5px; }
  .p-selected__ttl { margin-top: 6px; font-size: 19px; }
  .p-selected__client { margin-top: 6px; font-size: 13px; }
  .p-selected__all { margin-top: 80px; }
  .page-top .c-cta { margin-top: 120px; }

  .p-works { padding-top: 112px; }
  .p-works__ttl { font-size: 36px; }
  .p-works__ttl span { margin-top: 10px; font-size: 13px; }
  .p-works-history .p-history__works { margin-top: 48px; }
  .p-works-history__back { margin-top: 48px; }
  .p-works__bar { margin-top: 48px; padding-bottom: 14px; }
  .p-works__count, .p-works__toggle, .p-works__float { font-size: 13px; }
  .p-works__tools { gap: 16px; }
  .p-works__plus { width: 32px; height: 32px; }
  .p-works__filter { padding: 16px 0; }
  .p-works__filter button { padding: 8px 14px; font-size: 13px; }
  .p-works__filter-en { display: none; }
  .p-works__float { bottom: 20px; }
  .p-works__lead { margin-top: 24px; font-size: 14.5px; line-height: 1.95; }
  /* スマホは1列。どの事例も、横いっぱいの同じ大きさ（PCで大きく見せる is-big と同じ見せ方）にそろえる */
  .p-works__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 32px; }
  .p-works__item.is-big, .p-works__item.is-big.is-right { grid-column: auto; grid-row: auto; }
  .is-big .c-work-card__media { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .c-work-card__media { border-radius: 4px; }
  .c-work-card__fields { display: none; }
  .c-work-card__body { align-items: flex-end; gap: 8px; margin-top: 12px; }
  .c-work-card__ttl, .c-work-card__concept { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .c-work-card__ttl, .is-big .c-work-card__ttl { font-size: 15px; line-height: 24px; -webkit-line-clamp: 1; }
  .c-work-card__concept { margin-top: 4px; font-size: 12px; line-height: 17px; -webkit-line-clamp: 1; }
  .c-work-card__arrow { width: 28px; height: 28px; background-size: 28px; }
  .p-works .c-cta { margin-top: 100px; }

  .p-about { padding-top: 110px; }
  .p-about__concept { margin-top: 56px; }
  .p-about__concept-body p + p { margin-top: 24px; }
  .p-about__heading { margin: 48px 0 20px; font-size: 22px; line-height: 32px; }
  .p-about__philosophy { margin-top: 100px; }
  .p-about__company { margin-top: 100px; }
  .p-about__pages { margin-top: 100px; padding-bottom: 100px; }
  .p-about__pages ul { gap: 14px 32px; }
  .p-about__pages a { font-size: 17px; line-height: 26px; }
  .p-about__pages span { margin-right: 8px; }
  .p-about__company-list { grid-template-columns: 6em 1fr; font-size: 15px; }
  .p-history__catch { margin-top: 24px; font-size: 24px; line-height: 40px; }
  .p-history__lead { margin-top: 32px; }
  .p-history__works { margin-top: 80px; }
  .p-history__age { padding: 36px 0 44px; }
  .p-history__age-ttl { font-size: 13px; line-height: 20px; }
  .p-history__age-body { margin-top: 24px; }
  .p-history__reel li { height: 180px; margin-right: 28px; }

  .p-news { padding: 120px 0 100px; }
  .p-news__years { flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
  .p-news__grid { margin-top: 48px; row-gap: 56px; }
  .c-prose h2 { margin-top: 56px; font-size: 19px; line-height: 30px; }
  .c-prose figure { margin-block: 32px; }
  .p-work { padding-top: 110px; }
  .p-work__ttl { font-size: 26px; line-height: 40px; }
  .p-work__main { margin-top: 40px; margin-inline: 0; }
  .p-work__body { grid-template-columns: 1fr; row-gap: 48px; margin-top: 40px; }
  .p-work__gallery { grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
  .c-zoom__img { width: 100vw; max-height: calc(100vh - 200px); }
  .c-zoom.is-pan[open] { display: block; overflow-x: auto; overflow-y: hidden; }
  .c-zoom.is-pan .c-zoom__img { display: block; width: auto; max-width: none; height: calc(100vh - 200px); max-height: none; margin-top: 100px; }
  .c-zoom.is-pan .c-zoom__close, .c-zoom.is-pan .c-zoom__nav, .c-zoom.is-pan .c-zoom__count { position: fixed; }
  .c-zoom__nav { top: auto; bottom: 8px; translate: none; }
  .c-zoom__count { bottom: 26px; }
  .p-project__hero-img { height: 100vw; }
  .p-project__hero-img.has-sp { object-position: 50% 50% !important; scale: none !important; } /* main-sp.jpg はスマホ用に作った画像なので、hero_pos・hero_zoom を使わない */
  .p-project__hero.is-plain { height: 220px; }
  .p-project__ttl { top: calc(100% - 150px); right: 22px; font-size: 28px; line-height: 52px; }
  .p-project .c-notice { margin-top: max(120px, calc(var(--ttl-n) * 28px - 134px)); }
  .p-project__client { width: calc(100% - 100px); margin-top: max(72px, calc(var(--ttl-n) * 28px - 134px)); font-size: 18px; line-height: 28px; }
  .p-project__hero.is-plain ~ .c-notice { margin-top: max(32px, calc(var(--ttl-n) * 28px - 134px)); }
  .p-project__hero.is-plain + .l-inner .p-project__client { margin-top: max(32px, calc(var(--ttl-n) * 28px - 134px)); }
  .p-project__intro { margin-top: 32px; columns: 1; }
  .p-project__parts { grid-template-columns: 1fr; row-gap: 56px; margin-top: 64px; }
  .p-project__parts > li { display: block; }
  .p-project__thumb { margin-top: 16px; }
  .p-project__part { margin-top: 80px; }
  .p-project__media p { font-size: 17px; }
  .p-project + .p-work__others { margin-top: 100px; }
  .c-reveal__q { padding: 72px 20px 84px; }
  .c-reveal__ttl { font-size: 24px; }
  .c-reveal__icon { top: 16px; right: 16px; }
  .c-reveal__hint { right: 20px; bottom: 20px; }
  /* ボックスは画像と同じ形のまま（横4:縦1のパネルなら高さ94pxほど）。開いても大きさが変わらず、パネル全体が見える
     そのため文字は小さくして1〜2行に収め、＋は右の真ん中に。「CLICK TO EXPLORE」は入らないので出さない */
  .c-reveal--cover .c-reveal__q { padding: 0 calc(var(--side) + 40px) 0 var(--side); }
  .c-reveal--cover .c-reveal__en { font-size: 9px; letter-spacing: .18em; line-height: 14px; }
  .c-reveal--cover .c-reveal__ttl { margin-top: 3px; font-size: 15px; line-height: 1.35; }
  .c-reveal--cover .c-reveal__icon { top: calc(50% - 14px); width: 28px; height: 28px; }
  .c-reveal--cover .c-reveal__icon::before, .c-reveal--cover .c-reveal__icon::after { width: 12px; }
  .c-reveal--cover .c-reveal__hint { display: none; }
  .c-reveal--cover.is-open .c-reveal__icon { top: 6px; right: 6px; width: 24px; height: 24px; }
  .p-project__media .c-reveal__note { display: block; margin-top: 12px; font-family: var(--sans); font-size: 11.5px; font-weight: 400; line-height: 20px; }
  .p-work__others { margin-top: 100px; }
  .p-work__others .c-grid3 { margin-top: 32px; }
  .p-work__related + .p-work__others { margin-top: 100px; }
  .p-work .c-cta { margin-top: 100px; }
  .p-article { padding: 110px 0 100px; }
  .p-article__head { margin-top: 32px; }
  .p-article__ttl { font-size: 22px; line-height: 36px; }
  .p-article__main, .p-article__body { margin-top: 32px; }
  .p-article__pager { grid-template-columns: 1fr; margin-top: 72px; }
  .p-article__pager .is-newer { grid-column: auto; text-align: left; }

  .p-contact { padding: 120px 0 120px; }
  .p-contact__lead { margin-top: 32px; font-size: 16px; line-height: 32px; letter-spacing: 0; }
  .p-form { margin-top: 56px; }
  .p-form__row + .p-form__row { margin-top: 32px; }
  .p-form__pair { grid-template-columns: 1fr; row-gap: 12px; }
  .p-form__single { width: 100%; }
  .p-form input { height: 56px; }
  .p-form textarea { height: 240px; }
  .p-form__submit { margin-top: 48px; }
  .p-form__confirm { grid-template-columns: 1fr; }
  .p-form__confirm dt { padding-bottom: 0; border-bottom: 0; }
}

/* =====================================================================
   経営理念〜バリュー（案B：縦書きで右から読む巻物）
   ===================================================================== */
.p-phil-b .c-label { color: var(--red); }
/* 狭い画面では右端（経営理念）から横にスクロールして読む */
.p-phil-b__scroll { overflow-x: auto; direction: rtl; }
.p-phil-b__row {
  direction: ltr;
  display: flex; flex-direction: row-reverse; align-items: stretch;
  min-width: 1000px; height: 840px;
}
.p-phil-b__col {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 36px;
  padding: 40px 20px; border-right: 1px solid var(--line);
  font-family: var(--serif); font-weight: 500;
}
.p-phil-b__col.is-main { flex: 0 0 auto; padding: 40px 32px 40px 24px; border-right: 0; }
.p-phil-b__col.is-credo { font-family: var(--sans); font-weight: 400; }
.p-phil-b__col .c-label { font-family: var(--sans); }
/* 縦書きは高さが決まっていないと列幅を正しく計算できないので固定する */
.p-phil-b .v-text, .p-phil-b__main { height: 680px; }
.p-phil-b__calligraphy { display: block; width: 620px; margin: 0 auto 24px; }
.p-phil-b__main { display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 28px; }
.p-phil-b__catch { font-size: 52px; line-height: 64px; letter-spacing: .12em; }
.p-phil-b__sub { font-size: 22px; line-height: 40px; color: var(--ink); }
.p-phil-b__text { font-size: 26px; line-height: 46px; }
.p-phil-b__text span { font-size: 19px; color: var(--ink); }
.p-phil-b__text.is-small { font-size: 22px; line-height: 44px; }
.p-phil-b__values li + li { margin-block-start: 16px; }
.p-phil-b__values { font-size: 19px; line-height: 40px; }
.p-phil-b__credo li + li { margin-block-start: 10px; }
.p-phil-b__credo { font-size: 16px; line-height: 32px; color: var(--ink); }
.p-phil-b__hint { display: none; margin-top: 12px; font-size: 12px; color: var(--gray); text-align: right; }

@media (max-width: 1180px) {
  .p-phil-b__hint { display: block; }
}
@media (max-width: 767px) {
  .p-phil-b__row { min-width: 900px; height: 640px; }
  .p-phil-b .v-text, .p-phil-b__main { height: 500px; }
  .p-phil-b__col { padding: 28px 20px; gap: 24px; }
  .p-phil-b__col.is-main { padding: 28px 28px 28px 20px; }
  .p-phil-b__catch { font-size: 38px; line-height: 50px; }
  .p-phil-b__calligraphy { width: 100%; }
  .p-phil-b__sub { font-size: 18px; line-height: 34px; }
  .p-phil-b__text { font-size: 21px; line-height: 38px; }
  .p-phil-b__text span { font-size: 16px; }
  .p-phil-b__text.is-small { font-size: 18px; line-height: 36px; }
  .p-phil-b__values { font-size: 16px; line-height: 34px; }
  .p-phil-b__values li + li { margin-block-start: 16px; }
  .p-phil-b__credo { font-size: 14px; line-height: 30px; }
  .p-phil-b__credo li + li { margin-block-start: 6px; }
}

/* =====================================================================
   私たちについて：できること
   ===================================================================== */
/* 番号と英字の小見出し（01 INTRODUCTION など） */
.p-can__no { display: flex; align-items: baseline; gap: 16px; font-size: 13px; font-weight: 300; line-height: 20px; letter-spacing: .14em; color: var(--gray); }
.p-can__no span { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--red); }
/* 「、」の後で改行する */

.p-can__catch { margin-top: 40px; font-size: 38px; font-weight: 900; line-height: 64px; font-feature-settings: "palt"; }
.p-can__intro-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 64px; margin-top: 72px; }
.p-can__lead { max-width: 600px; }
/* 仕事の流れ：右から左へ縦書きで読む */
.p-can__flow { flex: none; height: 420px; padding-right: 8px; font-size: 18px; font-weight: 700; line-height: 18px; color: var(--ink); }
.p-can__flow li { position: relative; padding-top: 40px; }
.p-can__flow li + li { margin-block-start: 30px; }
.p-can__flow li::before {
  content: ""; position: absolute; top: 24px; left: 50%;
  width: 16px; height: 1px; background: var(--black); transform: translateX(-50%);
}
.p-can__flow-no {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  text-combine-upright: all; font-family: var(--serif); font-size: 12px; font-weight: 500; color: var(--red);
}

.p-can__fields { margin-top: 200px; }
.p-can__field { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 48px; padding: 120px 0; border-top: 1px solid var(--line); }
.p-can__field:first-child { border-top-color: var(--black); }
.p-can__field-body { max-width: 720px; }
.p-can__field-ttl { font-size: 30px; font-weight: 700; line-height: 48px; font-feature-settings: "palt"; }
.p-can__field-txt { margin-top: 40px; font-size: 19px; line-height: 38px; }
.p-can__areas { margin-top: 48px; }
.p-can__areas-ttl { font-size: 12px; font-weight: 700; line-height: 20px; color: var(--gray); }
.p-can__areas ul { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--ink); }
.p-can__areas li:not(:last-child)::after { content: "／"; margin: 0 10px; color: var(--line); }
.p-can__works { margin-top: 40px; color: var(--black); font-weight: 700; }
.p-can__field-img { margin-top: 64px; }
.p-can__field-img img { width: 100%; }

/* できること一覧（文字の大きさは以前の一覧と同じ） */
.p-can__list { margin-top: 200px; }
.p-can__list-heading { font-size: 16px; font-weight: 700; line-height: 28px; }
/* 狭い画面では「、」の後で改行する */
.p-can__list-heading span { display: inline-block; }
.p-can__list-items { margin-top: 64px; font-size: 18px; line-height: 38px; }
.p-can__list-items li { display: flex; }
.p-can__list-items span { flex: 0 0 38px; }
/* 09 は一覧の外に置くように、間をあけて書体を変える */
.p-can__list-items .is-open { display: block; margin-top: 40px; padding-left: 38px; text-indent: -38px; font-family: var(--mincho); font-size: 22px; }
.p-can__list-items .is-open span { display: inline-block; width: 38px; text-indent: 0; font-family: var(--serif); font-size: 18px; }
.p-can__list-items .is-open em { display: inline-block; font-style: normal; text-indent: 0; }

/* お問合わせへの誘導（グレーの帯） */
.p-can__contact { margin-top: 200px; padding: 100px 0; background: var(--field); }
.p-can__contact-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 48px; font-size: 22px; font-weight: 700; line-height: 32px; }
.p-can__contact-icon { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid var(--red); border-radius: 50%; }
.p-can__contact-icon::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
  border-top: 1.5px solid var(--red); border-right: 1.5px solid var(--red);
  transform: translate(-70%, -50%) rotate(45deg);
}

@media (max-width: 1180px) {
  .p-can__field { grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; }
}
@media (max-width: 960px) {
  .p-can__intro-body { flex-direction: column; gap: 72px; }
  .p-can__flow { align-self: center; }
}
@media (max-width: 767px) {
  .p-can__catch { margin-top: 24px; font-size: 24px; line-height: 40px; }
  .p-can__intro-body { flex-direction: column; gap: 56px; margin-top: 40px; }
  .p-can__flow { align-self: center; height: 330px; padding-right: 0; font-size: 15px; line-height: 15px; }
  .p-can__flow li { padding-top: 34px; }
  .p-can__flow li + li { margin-block-start: 22px; }
  .p-can__flow li::before { top: 21px; }
  .p-can__fields { margin-top: 100px; }
  .p-can__field { grid-template-columns: 1fr; row-gap: 24px; padding: 64px 0; }
  .p-can__field-ttl { font-size: 20px; line-height: 34px; }
  .p-can__field-txt { margin-top: 24px; font-size: 16px; line-height: 31px; }
  .p-can__areas { margin-top: 32px; }
  .p-can__areas ul { font-size: 13px; }
  .p-can__works { margin-top: 28px; }
  .p-can__field-img { margin-top: 40px; }
  .p-can__list { margin-top: 100px; }
  .p-can__list-heading { font-size: 15px; line-height: 26px; }
  .p-can__list-items { margin-top: 32px; font-size: 16px; line-height: 28px; }
  .p-can__list-items li + li { margin-top: 10px; }
  .p-can__list-items span { flex-basis: 30px; }
  .p-can__list-items .is-open { margin-top: 28px; padding-left: 30px; text-indent: -30px; font-size: 19px; line-height: 32px; }
  .p-can__list-items .is-open span { width: 30px; font-size: 16px; }
  .p-can__contact { margin-top: 100px; padding: 64px 0; }
  .p-can__contact-link { gap: 12px; margin-top: 32px; font-size: 18px; line-height: 28px; }
  .p-can__contact-icon { width: 24px; height: 24px; }
  .p-can__contact-icon::before { width: 6px; height: 6px; }
}

/* =====================================================================
   進化論（仮ページ。内容が決まったら差し替える）
   ===================================================================== */
.p-evolution { padding: 160px 0 200px; }
.p-evolution__visual { margin-top: 48px; overflow: hidden; }
.p-evolution__stage { max-width: 1440px; margin: 0 auto; padding-bottom: 40px; }
.p-evolution__art { position: relative; color: var(--red); }
/* 背中のちりと、集まってくる途中の粒・言葉（evolution.js が描く） */
.p-evolution__art .evo-sky { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
/* 背中から風に舞う文字（evolution.js が art.svg の .evo-air から作る）。
   字が小さすぎて最小の文字サイズに引っかからないよう、10倍の大きさで並べて --k で縮める */
.p-evolution__art .evo-wind { position: absolute; left: 0; top: 0; width: 12000px; height: 4200px; transform: scale(var(--k, 0)); transform-origin: 0 0; pointer-events: none; font-family: "Evo Sans", "Noto Sans JP", sans-serif; font-weight: 900; line-height: 1; white-space: nowrap; }
.p-evolution__art .evo-wind > div { position: absolute; inset: 0; }
.p-evolution__art .evo-wind span { position: absolute; opacity: 0; translate: -50% -50%; }
/* ほどけ：ふっと現れ、左へ流れながら薄れて消える（一巡の 6 割だけ見えている） */
.p-evolution__art .evo-wind .s { animation: evo-spark var(--t) linear var(--delay) infinite; }
/* ただよい：ゆれながら左へ長く流れ、濃くなってまた薄れる */
.p-evolution__art .evo-wind .f { animation: evo-float var(--t) linear var(--delay) infinite, evo-sway 3.4s ease-in-out var(--delay) infinite alternate; }
.p-evolution__art .evo-wind.is-paused span { animation-play-state: paused; }
@keyframes evo-spark {
  0%   { opacity: 0; translate: -50% -50%; }
  3%   { opacity: var(--o); }
  60%, 100% { opacity: 0; translate: calc(-50% - var(--d)) calc(-50% - var(--dy)); }
}
@keyframes evo-float {
  0%   { opacity: 0; translate: -50% -50%; }
  10%  { opacity: calc(var(--o) * .31); }
  25%  { opacity: calc(var(--o) * .71); }
  50%  { opacity: var(--o); }
  75%  { opacity: calc(var(--o) * .71); }
  90%  { opacity: calc(var(--o) * .31); }
  100% { opacity: 0; translate: calc(-50% - var(--d)) calc(-50% - var(--dy)); }
}
@keyframes evo-sway {
  from { transform: translateY(calc(var(--w) * -1)); }
  to   { transform: translateY(var(--w)); }
}
.p-evolution__art svg { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 420; overflow: visible; user-select: none; }
/* 画面に入るまで隠しておく（集まってくる動きは evolution.js） */
.p-evolution__art.is-armed .evo-fig text,
.p-evolution__art.is-armed .evo-wind > div { opacity: 0; }
.p-evolution__txt { margin-top: 48px; font-size: 16px; line-height: 32px; }

/* トップページ（SunAd を手本にした見せ方）に合わせる：白地に細い罫線、文章は Noto Serif、
   見出しは字間を広げた小さな英字、補足は小さなグレーの英字。赤は矢印など、ほんの少しだけ */

/* 絵の人物ひとりずつが、その時代の記事への入口。乗せると人物の下に「〇〇の記事」が出る */
.p-evolution__stage { position: relative; }
.p-evolution__figs { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1200 / 420; }
.p-evolution__figs a { position: absolute; top: 8%; bottom: 0; width: 13.333%; }
.p-evolution__figs a > span {
  position: absolute; left: 50%; bottom: -18px; translate: -50% 4px; display: inline-flex; align-items: center; gap: 8px;
  padding: 2px 8px; background: #fff;
  font-size: 13px; font-weight: 700; line-height: 22px; white-space: nowrap; color: var(--black);
  opacity: 0; transition: opacity .25s, translate .25s;
}
.p-evolution__figs a:hover > span,
.p-evolution__figs a:focus-visible > span,
.p-evolution__figs a.is-active > span { opacity: 1; translate: -50% 0; } /* is-active：スマホで画面の真ん中にいる人（evolution.js） */
.p-evolution__figs a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* 新しい記事のタイトルの帯（3段が左右交互に流れる。動きは evolution-ticker.js）。
   細い罫線で区切った白地に、明朝のタイトル。乗せた記事は赤くなり、その段は止まる */
.p-evo-ticker { border-top: 1px solid var(--black); border-bottom: 1px solid var(--line); overflow: hidden; }
.p-evo-ticker__row { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.p-evo-ticker__row:first-child { border-top: 0; }
.p-evo-ticker__row::-webkit-scrollbar { display: none; }
.p-evo-ticker.is-moving .p-evo-ticker__row { overflow: hidden; }
.p-evo-ticker__track { display: flex; width: max-content; }
.p-evo-ticker.is-moving .p-evo-ticker__track { animation: evo-ticker var(--dur, 60s) linear infinite; }
.p-evo-ticker.is-moving .p-evo-ticker__row:nth-child(even) .p-evo-ticker__track { animation-direction: reverse; }
.p-evo-ticker__row:hover .p-evo-ticker__track,
.p-evo-ticker__row:focus-within .p-evo-ticker__track { animation-play-state: paused; }
.p-evo-ticker__set { display: flex; }
.p-evo-ticker__set li { border-right: 1px solid var(--line); }
.p-evo-ticker__item {
  position: relative; display: flex; align-items: baseline; gap: 16px; padding: 18px 52px 18px 32px;
  font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 30px; white-space: nowrap; font-feature-settings: "palt"; color: var(--black);
  transition: color .25s;
}
.p-evo-ticker__item:hover { opacity: 1; color: var(--red); }
.p-evo-ticker__cat { font-family: var(--sans); font-size: 10.5px; font-weight: 400; letter-spacing: .16em; color: #666; }
.p-evo-ticker__item .c-arrow { position: absolute; right: 24px; top: 50%; margin-top: -6px; opacity: 0; transition: opacity .25s; }
.p-evo-ticker__item:hover .c-arrow,
.p-evo-ticker__item:focus-visible .c-arrow { opacity: 1; }
.p-evo-ticker__item:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
@keyframes evo-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 記事一覧：一番上の1件を大きく（画像の右に見出し・要約）、あとは3列 */
.p-evo-articles { margin-top: 160px; scroll-margin-top: 100px; }
.p-evo-articles__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 20px 40px; flex-wrap: wrap; }
.p-evo-articles__ttl { font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: .24em; }
.p-evo-articles__ttl span { margin-left: 16px; font-size: 12px; font-weight: 400; letter-spacing: .04em; color: var(--gray); }
.p-evo-articles__filter { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.p-evo-articles__filter a {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 0;
  font-size: 13.5px; font-weight: 700; line-height: 22px; color: var(--gray); transition: color .2s;
}
.p-evo-articles__filter a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale .3s ease; }
.p-evo-articles__filter a:hover { opacity: 1; color: var(--black); }
.p-evo-articles__filter a[aria-current="true"] { color: var(--black); }
.p-evo-articles__filter a[aria-current="true"]::after { scale: 1 1; }
.p-evo-articles__filter a span { font-size: 10.5px; font-weight: 400; }
.p-evo-articles__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 44px; margin-top: 40px; padding-top: 48px; border-top: 1px solid var(--black); }
.p-evo-articles__item[hidden], .p-evo-articles__item.is-over { display: none; }
.p-evo-articles__item.is-lead { grid-column: 1 / -1; padding-bottom: 72px; border-bottom: 1px solid var(--line); }
.p-evo-articles__item.is-shown { animation: p-works-in .6s ease both; }
.p-evo-articles__empty { margin-top: 48px; font-family: var(--serif); font-size: 16px; line-height: 2; color: var(--gray); }
.p-evo-articles__more { display: flex; width: fit-content; margin: 80px auto 0; color: var(--black); font-weight: 700; }
.p-evo-articles__more .c-arrow { rotate: 90deg; }
.p-evo-articles__more[hidden] { display: none; }

/* 進化論の記事カード：写真（角は立てる）の下に、小さな英字のカテゴリと日付、見出し */
.c-evo-card { display: flex; flex-direction: column; gap: 20px; color: var(--black); }
.c-evo-card:hover { opacity: 1; }
.c-evo-card:focus-visible { outline-offset: 6px; }
.c-evo-card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--field); }
.c-evo-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.6s cubic-bezier(.2, .7, .2, 1); }
.c-evo-card:hover .c-evo-card__media img { scale: 1.03; }
.c-evo-card__media .c-draft-tag { position: absolute; top: 12px; left: 12px; z-index: 1; }
/* main.jpg が無い間の仮の絵 */
.c-evo-card__body { display: flex; flex-direction: column; gap: 10px; }
.c-evo-card__meta { display: flex; align-items: baseline; gap: 16px; font-size: 12px; font-weight: 300; line-height: 20px; color: #666; }
.c-evo-card__cat { font-size: 10.5px; font-weight: 400; letter-spacing: .16em; color: #666; }
.c-evo-card__ttl { font-size: 15px; font-weight: 700; line-height: 26px; letter-spacing: .04em; font-feature-settings: "palt"; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; transition: color .25s; }
.c-evo-card:hover .c-evo-card__ttl { color: var(--red); }
.c-evo-card__excerpt { display: none; }
.c-evo-card.is-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.is-lead .c-evo-card__body { gap: 20px; }
.is-lead .c-evo-card__ttl { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 38px; letter-spacing: 0; -webkit-line-clamp: 4; }
.is-lead .c-evo-card__excerpt { display: block; font-size: 13.5px; line-height: 26px; color: var(--ink); font-feature-settings: "palt"; }

/* 記事ページ：カテゴリと、下の「〇〇の記事」 */
.p-article__date .c-evo-card__cat { margin-right: 16px; }
.p-evo-related { margin-top: 160px; }
.p-evo-related__ttl { font-size: 14px; font-weight: 700; line-height: 20px; letter-spacing: .04em; }
.p-evo-related .p-evo-articles__list { margin-top: 24px; }
.p-evo-related__all { margin-top: 56px; color: var(--black); font-weight: 700; }

@media (max-width: 960px) {
  .p-evo-articles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
  .c-evo-card.is-lead { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 767px) {
  .p-evolution { padding: 120px 0 100px; }
  /* スマホは絵を約2.4倍にして横にスワイプで見る（最初の一度だけ、集まる動きに合わせて猿からAIへ流す。evolution.js） */
  .p-evolution__visual { margin-top: 32px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .p-evolution__visual::-webkit-scrollbar { display: none; }
  .p-evolution__stage { width: 240%; max-width: none; padding-bottom: 20px; }
  .p-evolution__txt { margin-top: 32px; }
  .p-evolution__figs a > span { font-size: 12px; }
  .p-evo-ticker__item { gap: 10px; padding: 13px 40px 13px 20px; font-size: 15px; line-height: 24px; }
  .p-evo-ticker__cat { font-size: 9.5px; }
  .p-evo-ticker__item .c-arrow { right: 16px; }
  .p-evo-articles { margin-top: 96px; }
  .p-evo-articles__filter { gap: 0 20px; }
  .p-evo-articles__filter a { font-size: 13px; }
  .p-evo-articles__list { grid-template-columns: 1fr; gap: 0; margin-top: 20px; padding-top: 28px; }
  .p-evo-articles__item { padding: 20px 0; border-bottom: 1px solid var(--line); }
  .p-evo-articles__item.is-lead { padding: 0 0 32px; }
  /* 2件目からは、左に小さな写真・右に見出しの1行ずつ */
  .p-evo-articles__item:not(.is-lead) .c-evo-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; }
  .p-evo-articles__item:not(.is-lead) .c-draft-tag { top: 4px; left: 4px; padding: 0 5px; font-size: 10px; line-height: 16px; }
  .p-evo-articles__item:not(.is-lead) .c-evo-card__body { gap: 4px; }
  .p-evo-articles__item:not(.is-lead) .c-evo-card__ttl { order: -1; font-size: 14px; line-height: 23px; }
  .c-evo-card__meta { font-size: 11px; gap: 12px; }
  .c-evo-card__cat { font-size: 9.5px; }
  .is-lead .c-evo-card__ttl { font-size: 20px; line-height: 32px; }
  .p-evo-articles__more { margin-top: 48px; }
  .p-evo-related { margin-top: 96px; }
  .p-evo-related .p-evo-articles__list { margin-top: 16px; }
}

/* =====================================================================
   めくって読む絵本（markdown の ![…](book/)。HTML は content.php の book_embed、動きは book.js）
   --pw は1ページの幅（book.js が画面に合わせて決める）
   ===================================================================== */
.c-book { --pw: 540px; --ratio: 1; --paper: #f4efc6; position: relative; } /* --ratio は1ページの 横÷縦（book_embed が絵から決める） */
/* JS が動かない時は、ページを2つずつ並べる */
.c-book__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c-book.is-ready .c-book__list { display: none; }

.c-book__stage {
  position: relative; width: calc(var(--pw) * 2); height: calc(var(--pw) / var(--ratio)); margin-inline: auto;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.c-book__stage:focus-visible { outline-offset: 10px; }
/* 1ページずつ：見ていない側を隠す（めくる紙が上下にはみ出す分は見せる）。
   clip-path は描くだけを切るので、左ページを見ている時に右へはみ出した分でページが横に広がり、スマホで全体が縮んでしまう。
   overflow-x: clip で、横にはみ出した分をページの幅に数えない（縦は visible のまま） */
.c-book.is-single .c-book__stage { width: var(--pw); clip-path: inset(-40% 0); overflow-x: clip; }
/* 本：ノドを中心に奥行きをつける。閉じた表紙・裏表紙は真ん中に寄せる（book.js が translateX） */
.c-book__book {
  position: absolute; top: 0; left: 0; width: calc(var(--pw) * 2); height: 100%;
  perspective: calc(var(--pw) * 4.5);
  transition: transform .9s cubic-bezier(.65, 0, .35, 1);
}
.c-book__leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.c-book__face { position: absolute; inset: 0; overflow: hidden; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.c-book__face--back { transform: rotateY(180deg); }
.c-book__face img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.c-book__face.is-paper { background: var(--paper); } /* 見返し */
/* ノドの陰（表紙・裏表紙は、背の側にうっすら） */
.c-book__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.c-book__face--front::after { background: linear-gradient(to right, rgba(0, 0, 0, .16), rgba(0, 0, 0, .05) 2.5%, transparent 8%); }
.c-book__face--back::after { background: linear-gradient(to left, rgba(0, 0, 0, .16), rgba(0, 0, 0, .05) 2.5%, transparent 8%); }
.c-book__face--front.is-cover::after { background: linear-gradient(to right, rgba(0, 0, 0, .1), transparent 3%); }
.c-book__face--back.is-back::after { background: linear-gradient(to left, rgba(0, 0, 0, .1), transparent 3%); }
/* めくっている途中の陰（濃さは book.js が角度から決める） */
.c-book__shade { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; }
.c-book__face--front .c-book__shade { background: linear-gradient(to right, rgba(40, 30, 20, .55), rgba(40, 30, 20, .2)); }
.c-book__face--back .c-book__shade { background: linear-gradient(to left, rgba(40, 30, 20, .55), rgba(40, 30, 20, .2)); }
/* 本の下の影と、紙の重なり（開いている側にだけ出す） */
.c-book__base { position: absolute; top: 0; width: 50%; height: 100%; background: #fff; opacity: 0; transition: opacity .35s ease; }
.c-book__base--l { left: 0; box-shadow: -1px 0 0 #e9e5dc, -2px 0 0 #fff, -3px 0 0 #e9e5dc, -8px 22px 40px -14px rgba(0, 0, 0, .35); }
.c-book__base--r { left: 50%; box-shadow: 1px 0 0 #e9e5dc, 2px 0 0 #fff, 3px 0 0 #e9e5dc, 8px 22px 40px -14px rgba(0, 0, 0, .35); }
.c-book__base.is-on { opacity: 1; }

/* 操作：前・何ページ目・次、画面いっぱい */
/*   格子の5列：左の余白・前・何ページ目・次・右の余白（画面いっぱいボタン）。左右の余白は同じ幅で、前〜次が真ん中に来る。
     狭い時は左の余白から縮み、画面いっぱいボタンが次のボタンに重ならない */
.c-book__ui { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto minmax(40px, 1fr); align-items: center; justify-items: center; column-gap: 20px; width: min(100%, calc(var(--pw) * 2)); margin: 32px auto 0; }
.c-book__ui > * { grid-row: 1; } /* 右綴じで前・次の列を入れ替えても、1行に並べる */
.c-book.is-single .c-book__ui { width: var(--pw); }
.c-book__nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; transition: opacity .3s ease, border-color .3s ease; }
.c-book__nav:hover:not(:disabled) { border-color: var(--gray-2); }
.c-book__nav--prev { grid-column: 2; }
.c-book__nav--next { grid-column: 4; }
/* ボタン自体が丸なので、中は三角だけ（丸矢印 .c-arrow だと丸が二重になる） */
.c-book__arrow { width: 14px; height: 14px; color: var(--red); }
.c-book__nav--prev .c-book__arrow { transform: rotate(180deg); }
.c-book__nav:disabled { opacity: .3; cursor: default; }
/* 裏表紙では、次のボタンが「表紙に戻る」（くるっと回る矢印）になる */
.c-book__again { display: none; width: 18px; height: 18px; color: var(--red); }
.c-book__nav.is-again .c-book__arrow { display: none; }
.c-book__nav.is-again .c-book__again { display: block; }
.c-book__count { grid-column: 3; min-width: 6.5em; font-size: 13px; line-height: 1; letter-spacing: .08em; text-align: center; color: var(--gray); font-variant-numeric: tabular-nums; }
.c-book__full { grid-column: 5; justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; color: var(--gray); transition: color .3s ease; }
.c-book__full:hover { color: var(--black); }
.c-book__full svg { width: 18px; height: 18px; }
/* 画面いっぱい */
.c-book.is-full { display: flex; flex-direction: column; justify-content: center; padding: 24px; background: #f7f5ef; }
.c-book.is-full .c-book__ui { margin-top: 20px; }

/* 右綴じ（data-rtl。縦書きの本）：舞台ごと左右を裏返して右から左へめくる。絵と文字だけ元の向きに戻す */
.c-book.is-rtl .c-book__stage { transform: scaleX(-1); }
.c-book.is-rtl .c-book__face > img,
.c-book.is-rtl .c-book-end { transform: scaleX(-1); }
.c-book.is-rtl .c-book__nav--prev { grid-column: 4; }
.c-book.is-rtl .c-book__nav--next { grid-column: 2; }
.c-book.is-rtl .c-book__arrow { scale: -1 1; }

/* 試し読みの終わりの見開き（content.php の book_end_faces。book.js が最後のページの後ろに入れる）
   --u は1ページの短い辺。文字の大きさはこれに合わせて、本の大きさと一緒に変わる */
.c-book__face.is-end { background: #f7f5ef; }
.c-book-end {
  --u: min(var(--pw), calc(var(--pw) / var(--ratio)));
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8%; text-align: center; font-feature-settings: "palt";
}
.c-book-end .c-book-end__kicker { font-family: var(--sans); font-weight: 500; line-height: 1.6; font-size: max(10px, calc(var(--u) * .03)); letter-spacing: .2em; color: var(--red); }
.c-book-end .c-book-end__head { margin-top: .9em; font-family: var(--serif); font-size: max(20px, calc(var(--u) * .1)); font-weight: 500; line-height: 1.45; letter-spacing: .04em; }
.c-book-end .c-book-end__txt { max-width: 20em; margin-top: 1.6em; font-family: var(--sans); font-weight: 400; word-break: auto-phrase; font-size: max(11px, calc(var(--u) * .034)); line-height: 1.95; color: var(--gray); }
.c-book-end .c-book-end__cover { display: block; object-fit: contain; max-width: 58%; max-height: 40%; width: auto; height: auto; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.c-book-end .c-book-end__ttl { margin-top: 1.1em; font-family: var(--serif); font-size: max(13px, calc(var(--u) * .048)); font-weight: 500; line-height: 1.5; }
.c-book-end .c-book-end__spec { font-family: var(--sans); font-weight: 400; line-height: 1.6; margin-top: .3em; font-size: max(10px, calc(var(--u) * .03)); color: var(--gray); }
.c-book-end .c-book-end__price { font-family: var(--sans); line-height: 1.5; margin-top: .5em; font-size: max(13px, calc(var(--u) * .045)); font-weight: 700; }

/* 本の下の購入の案内（content.php の book_buy）。事例ページの .p-project__media p・img に負けないよう、親のクラスを付けて書く */
.c-book-buy {
  display: flex; align-items: center; gap: 24px; width: min(100%, 760px); margin: 36px auto 0; padding: 20px 24px;
  border: 1px solid var(--line); background: #fff;
}
.c-book-buy .c-book-buy__cover { flex: none; width: auto; height: 96px; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .4); }
.c-book-buy .c-book-buy__body { flex: 1; min-width: 0; }
.c-book-buy .c-book-buy__ttl { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.5; font-feature-settings: "palt"; }
.c-book-buy .c-book-buy__spec { font-family: var(--sans); font-weight: 400; margin-top: 2px; font-size: 13px; line-height: 1.7; color: var(--gray); }
.c-book-buy .c-book-buy__note { font-family: var(--sans); font-weight: 500; margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--red); }
.c-book-buy .c-book-buy__action { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.c-book-buy .c-book-buy__price { font-family: var(--sans); font-size: 18px; font-weight: 700; line-height: 1.4; }
:is(.c-book-buy, .c-book-end) .c-book-buy__btn,
:is(.c-book-buy, .c-book-end) .c-book-buy__soon {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; height: 48px; padding: 0 26px;
  border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
}
:is(.c-book-buy, .c-book-end) .c-book-buy__btn { background: var(--red); color: #fff; transition: opacity .3s ease; }
:is(.c-book-buy, .c-book-end) .c-book-buy__btn:hover { opacity: .82; }
.c-book-buy__ext { flex: none; width: .5em; height: .5em; margin-left: .1em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); } /* ＞ の矢印 */
:is(.c-book-buy, .c-book-end) .c-book-buy__soon { border: 1px solid var(--line); font-weight: 500; color: var(--gray); }
/* 試し読みの終わりの見開きの中では、本の大きさに合わせる */
.c-book-end .c-book-buy__btn,
.c-book-end .c-book-buy__soon { height: auto; margin-top: 1.2em; padding: .95em 2em; font-size: max(11px, calc(var(--u) * .034)); }
@media (max-width: 767px) {
  .c-book-buy { flex-wrap: wrap; gap: 16px; margin-top: 24px; padding: 16px; }
  .c-book-buy .c-book-buy__cover { height: 80px; }
  .c-book-buy .c-book-buy__action { width: 100%; align-items: stretch; }
  .c-book-buy .c-book-buy__price { text-align: right; }
}
@media (max-width: 767px) {
  .c-book__ui { gap: 14px; margin-top: 20px; }
}
/* WordPress の「ファイル」ブロック（PDF など）：ファイル名の横にダウンロードのボタン */
.c-prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.c-prose .wp-block-file__button { padding: 2px 16px; border: 1px solid currentColor; font-size: 13px; line-height: 26px; text-decoration: none; }
