/* 下層4ページ専用。トップページのCG・スクロール制御には影響させない。 */
.subpage { --sub-paper: #f0f0ed; }
.sub-wrap { width: min(1144px, calc(100% - 96px)); margin-inline: auto; }
.subpage .site-header { background: #101010; border-bottom: 1px solid #ffffff20; }
.sub-hero { position: relative; min-height: 580px; overflow: hidden; background: #101010; }
.sub-hero > .sub-wrap { position: relative; z-index: 1; padding-top: 142px; }
.sub-hero h1 { font: 500 clamp(52px, 6.5vw, 88px)/1.07 var(--font-display); letter-spacing: -.055em; margin-top: 48px; }
.sub-back { display: inline-flex; gap: 14px; align-items: center; font-family: var(--font-display); }
.sub-back::first-letter { font-size: 24px; }
.sub-hero__ja { font-weight: 700; font-size: 20px; margin-top: 18px; }
.sub-crumb { display: flex; justify-content: flex-end; gap: 24px; font: 14px var(--font-display); color: #bdbdbd; margin-top: 170px; padding-bottom: 40px; }
.sub-crumb li + li::before { content: '•'; margin-right: 24px; }
.sub-kicker { font: 500 13px/1.6 var(--font-display); letter-spacing: .12em; }
.contour-art { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: .23; }
.contour-art i { position: absolute; width: 650px; aspect-ratio: 1; background: url("../img/contour-lines.svg") center / contain no-repeat; }
.contour-art i:nth-child(1) { top: -490px; left: -160px; }
.contour-art i:nth-child(2) { top: 240px; left: 32%; width: 340px; }
.contour-art i:nth-child(3) { right: -370px; top: 20px; }
.motion-enabled .contour-art i { animation: contour-drift 24s ease-in-out infinite alternate; }
@keyframes contour-drift { to { transform: translate3d(28px,-22px,0) rotate(32deg); } }
.sub-paper { background: var(--sub-paper); padding-top: 120px; border-radius: 0; position: relative; }
.subpage .block { grid-template-columns: 240px minmax(0,1fr); gap: 50px; padding-block: 90px; }
.subpage .block__label h2 { font-size: 24px; }
.subpage .block__body { min-width: 0; }
.subpage .info-table th, .subpage .info-table td { padding-block: 29px; }
.subpage .info-table th { width: 140px; }
.subpage .block__body p { line-height: 2.2; }
.company-wordmark { height: 500px; background: #e2e2df; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 30px; position: relative; overflow: hidden; margin-bottom: 70px; }
.company-wordmark > span:nth-child(2) { font: 500 clamp(48px,7vw,90px)/1 var(--font-display); letter-spacing: -.06em; }
.company-wordmark small { display: block; font: 500 15px/1.8 var(--font-body); letter-spacing: .08em; margin-top: 26px; }
.company-wordmark__symbol { width: 95px; height: 95px; border: 23px solid #161616; border-radius: 50%; }
.company-wordmark__caption { position: absolute; bottom: 28px; right: 32px; font: 12px var(--font-display); letter-spacing: .1em; }
.sub-related { padding-block: 90px 140px; }
.sub-related h2 { margin-top: 18px; font-size: 32px; }
.sub-related__links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 46px; }
.sub-related__links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #bcbcb9; padding: 30px 0; font: 400 clamp(23px,3vw,40px)/1.3 var(--font-display); }
.sub-related small, .sub-contact small { display: block; font: 500 15px/1.7 var(--font-body); margin-top: 14px; }
.sub-related b { font-weight: 400; transition: transform .3s; }
.sub-related a:hover b { transform: translate(5px,-5px); }
.sub-contact { padding-block: 100px 120px; background: #151515; }
.sub-contact a { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; font: 400 clamp(60px,10vw,132px)/1 var(--font-display); letter-spacing: -.05em; }
.sub-contact b { font-weight: 400; border: 1px solid #ffffff50; border-radius: 50%; width: 110px; aspect-ratio: 1; display: grid; place-items: center; font-size: 56px; transition: background .3s,color .3s; }
.sub-contact a:hover b { background: #eee; color: #111; }
.portrait-placeholder { min-height: 500px; border-radius: 8px; background: #dededb; overflow: hidden; position: relative; display: flex; align-items: center; padding: 65px; }
.portrait-placeholder figcaption { z-index: 1; }
.portrait-placeholder figcaption > span { font: 400 clamp(36px,6vw,74px)/1.1 var(--font-display); letter-spacing: -.05em; }
.portrait-placeholder p { margin-top: 26px; font-size: 18px; }
.portrait-placeholder small { display: block; margin-top: 12px; font: 11px var(--font-display); letter-spacing: .12em; }
.portrait-placeholder__lines { position: absolute; width: 550px; height: 550px; border: 1px solid #aaa; border-radius: 50%; right: -90px; top: 50px; box-shadow: 0 0 0 40px #ffffff18,0 0 0 41px #bbb,0 0 0 80px #ffffff18,0 0 0 81px #bbb; }
.message-article { max-width: 740px; margin: 110px auto; }
.message-article h2 { font-size: 42px; margin-top: 24px; }
.message-pending { margin-top: 52px; padding-block: 42px; border-block: 1px solid #cdcdca; }
.message-pending p { line-height: 2.3; margin-block: 12px; }
.message-sign { text-align: right; margin-top: 65px; }
.message-sign strong { display: block; font-size: 29px; letter-spacing: .12em; margin-top: 18px; }
.sub-hero--service { min-height: 760px; }
.sub-hero--service h1 { font-size: clamp(65px,9vw,120px); margin-top: 52px; }
.sub-hero__bottom { display: flex; justify-content: space-between; gap: 60px; }
.sub-hero--service .sub-hero__ja { font-size: 27px; }
.sub-hero__description { width: 330px; flex-shrink: 0; line-height: 2.1; margin-top: 20px; }
.sub-hero--service .sub-crumb { margin-top: 72px; }
.service-manifesto { text-align: center; padding-block: 140px; }
.service-manifesto h2 { font-size: clamp(34px,4.2vw,56px); line-height: 1.6; margin-top: 32px; }
.service-manifesto > p:last-of-type { margin-top: 34px; line-height: 2.2; }
.service-orbits { display: flex; justify-content: center; margin-top: 80px; }
.service-orbits span { display: flex; flex-direction: column; justify-content: center; width: 240px; aspect-ratio: 1; border: 1px solid #777; border-radius: 50%; font: 400 clamp(18px,2.2vw,30px)/1.3 var(--font-display); margin-left: -14px; }
.service-orbits small { font: 14px var(--font-body); margin-top: 12px; }
.service-index { padding-bottom: 100px; }
.service-index h2 { font-size: clamp(34px,4vw,52px); line-height: 1.5; margin-block: 24px 48px; }
.service-index nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.service-index a { border-bottom: 1px solid #ccc; padding: 24px 0; display: flex; justify-content: space-between; font-weight: 700; }
.service-detail { scroll-margin-top: 90px; }
.sub-service-art { height: 310px; background: #e0e0dc; border-radius: 8px; position: relative; overflow: hidden; margin-bottom: 40px; display: grid; place-items: center; }
.sub-service-art > span { position: absolute; bottom: 24px; left: 26px; font: 500 12px var(--font-display); letter-spacing: .1em; }
.sub-service-art > small { position: absolute; top: 22px; right: 24px; font: 11px var(--font-display); }
.sub-service-art__shape { width: 180px; height: 180px; position: relative; }
.sub-service-art i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg,#676767,#111 64%,#292929); box-shadow: 12px 18px 24px #0002; }
.sub-service-art--1 i:nth-child(2) { inset: 28px; background: #e0e0dc; box-shadow: inset 5px 6px 9px #0003; }
.sub-service-art--1 i:nth-child(3) { display: none; }
.sub-service-art--2 i { width: 116px; height: 116px; }
.sub-service-art--2 i:nth-child(2) { transform: translate(85px,40px); }
.sub-service-art--2 i:nth-child(3) { transform: translate(12px,90px); }
.sub-service-art--3 i { border-radius: 12px; height: 48px; transform: skewY(-12deg); }
.sub-service-art--3 i:nth-child(2) { top: 58px; }
.sub-service-art--3 i:nth-child(3) { top: 116px; }
.sub-service-art--4 i { border-radius: 12px; width: 120px; height: 120px; transform: rotate(30deg); }
.sub-service-art--4 i:nth-child(2) { transform: translate(55px,55px) rotate(30deg); background: linear-gradient(135deg,#999,#333); }
.sub-service-art--4 i:nth-child(3) { display: none; }
.sub-hero--recruit { min-height: 840px; text-align: center; }
.sub-hero--recruit h1 { font-size: clamp(64px,10vw,135px); margin-top: 22px; line-height: 1.04; }
.career-spark { display: inline-block; font-weight: 400; color: #c8c8c3; }
.motion-enabled .career-spark { animation: spark-turn 20s linear infinite; }
@keyframes spark-turn { to { transform: rotate(360deg); } }
.career-disciplines { display: flex; justify-content: space-between; font: 14px var(--font-display); margin-top: 28px; }
.career-tagline { font-size: clamp(25px,3.5vw,44px); font-weight: 700; margin-top: 90px; }
.sub-scroll { display: inline-flex; align-items: center; gap: 50px; margin-top: 48px; font: 14px var(--font-display); }
.sub-scroll span { width: 36px; height: 36px; border: 1px solid #777; border-radius: 50%; display: grid; place-items: center; }
.career-intro { position: relative; padding-block: 130px 180px; overflow: hidden; }
.career-intro h2 { font-size: clamp(36px,4.8vw,64px); line-height: 1.6; margin-block: 28px; }
.career-intro > p { position: relative; z-index: 1; line-height: 2.3; }
.career-orb { width: 310px; height: 310px; border-radius: 50%; border: 65px solid #888; position: absolute; right: 20px; top: 180px; transform: rotate(-30deg) scaleY(.8); background: transparent; box-shadow: inset 12px 12px 16px #000,12px 22px 40px #0009; border-color: #aaa #555 #222 #888; }
.career-values { padding-bottom: 110px; }
.career-values h2 { font-size: clamp(30px,3.5vw,44px); margin: 20px 0 55px; }
.career-values__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; }
.career-values article { border-top: 1px solid #bbb; padding-top: 18px; }
.career-values article > span { font: 14px var(--font-display); }
.career-values h3 { font-size: 23px; margin: 28px 0 20px; }
.career-values article p { line-height: 2; font-size: 15px; }
.value-symbol { width: 90px; height: 90px; background: #181818; border-radius: 50%; margin: 40px auto; }
.value-symbol--01 { background: transparent; border: 23px solid #181818; }
.value-symbol--02 { border-radius: 50% 50% 8% 50%; transform: rotate(-45deg); }
.value-symbol--03 { border-radius: 10px; transform: rotate(45deg); }
/* 初期表示は読める状態。JS初期化成功時だけスクロールに追従する。 */
.sub-motion-ready.motion-enabled .sub-reveal { opacity: var(--sub-visible, 1); transform: translateY(calc((1 - var(--sub-visible, 1)) * 40px)); }
.sub-motion-ready.motion-enabled .sub-hero h1 { animation: sub-title-in 1s cubic-bezier(.22,1,.36,1) both; }
@keyframes sub-title-in { from { opacity: 0; transform: translateY(40px); clip-path: inset(100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@media (max-width: 900px) {
 .sub-wrap { width: calc(100% - 48px); }
 .subpage .block { grid-template-columns: 1fr; gap: 30px; padding-block: 65px; }
 .sub-hero__bottom { display: block; }
 .sub-hero__description { width: min(100%,540px); }
 .sub-hero--service { min-height: 720px; }
 .career-orb { opacity: .3; right: -120px; }
 .career-values__grid { gap: 24px; }
 .career-values h3 { font-size: 20px; }
}
@media (max-width: 600px) {
 .sub-wrap { width: calc(100% - 40px); }
 .sub-hero { min-height: 440px; }
 .sub-hero > .sub-wrap { padding-top: 114px; }
 .sub-hero h1 { font-size: 49px; margin-top: 40px; overflow-wrap: normal; }
 .sub-hero__ja { font-size: 17px; }
 .sub-crumb { margin-top: 84px; font-size: 11px; gap: 15px; }
 .sub-crumb li + li::before { margin-right: 15px; }
 .sub-paper { padding-top: 60px; }
 .company-wordmark { height: 290px; gap: 16px; margin-bottom: 36px; }
 .company-wordmark > span:nth-child(2) { font-size: 43px; }
 .company-wordmark__symbol { width: 52px; height: 52px; border-width: 13px; }
 .company-wordmark small { font-size: 10px; margin-top: 15px; }
 .company-wordmark__caption { font-size: 10px; right: 20px; bottom: 20px; }
 .subpage .info-table th { width: 90px; }
 .subpage .info-table th, .subpage .info-table td { font-size: 14px; padding-block: 24px; }
 .sub-related { padding-block: 65px 80px; }
 .sub-related__links { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
 .sub-contact { padding-block: 70px; }
 .sub-contact b { width: 64px; font-size: 32px; }
 .portrait-placeholder { min-height: 340px; padding: 28px; }
 .portrait-placeholder__lines { right: -390px; }
 .message-article { margin-block: 64px; }
 .message-article h2 { font-size: 32px; }
 .message-pending { font-size: 15px; margin-top: 35px; }
 .sub-hero--service h1 { font-size: clamp(44px,11.5vw,68px); }
 .sub-hero--service .sub-hero__ja { font-size: 22px; }
 .sub-hero--service { min-height: 690px; }
 .sub-hero--service .sub-crumb { margin-top: 48px; }
 .sub-hero__description { font-size: 14px; margin-top: 28px; }
 .service-manifesto { padding-block: 85px; }
 .service-manifesto > p:last-of-type { font-size: 14px; }
 .service-manifesto br { display: initial; }
 .service-orbits { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; }
 .service-orbits span { width: 100%; margin: -6px 0 0; font-size: 22px; }
 .service-index { padding-bottom: 55px; }
 .service-index nav { grid-template-columns: 1fr; }
 .service-index a { font-size: 14px; }
 .sub-service-art { height: 260px; }
 .sub-hero--recruit { min-height: 690px; }
 .sub-hero--recruit h1 { font-size: clamp(43px,10.8vw,62px); margin-top: 48px; line-height: 1.15; }
 .career-disciplines { gap: 12px; font-size: 10px; margin-top: 24px; }
 .career-tagline { font-size: 23px; margin-top: 60px; text-wrap: balance; }
 .career-intro { padding-block: 80px 100px; }
 .career-intro h2 { font-size: 34px; position: relative; z-index: 1; }
 .career-intro > p { font-size: 14px; }
 .career-orb { top: 140px; right: -200px; }
 .career-values { padding-bottom: 50px; }
 .career-values__grid { grid-template-columns: 1fr; gap: 42px; }
 .career-values h3 { font-size: 24px; }
 .value-symbol { margin-block: 28px; }
}
@media (prefers-reduced-motion: reduce) {
 .subpage *, .subpage *::before, .subpage *::after { animation: none !important; transition: none !important; }
 .sub-reveal { opacity: 1 !important; transform: none !important; }
}
