/*
 Theme Name:   YUI Inc.
 Description:  YUI Inc.
 Author:       YUI Inc.
 Template:     cocoon-master
 Version:      1.0.0
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --yui-text:      #2a3a52;
  --yui-sub:       #6a7f9a;
  --yui-mute:      #9ab0c8;
  --yui-accent:    #4fa8d8;
  --yui-border:    rgba(100,160,220,0.15);
  --yui-glass:     rgba(255,255,255,0.55);
  --yui-font-en:   'Jost', sans-serif;
  --yui-font-ja:   'Noto Sans JP', sans-serif;
  --yui-nav-h:     72px;
  --yui-ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --yui-container: 1240px;
}

.entry-content > * {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

p{
  letter-spacing:20%;
}
a:hover{
	color: currentColor;
	opacity:0.8;
}
/* ============================================================
   Cocoon デフォルト要素リセット
   ============================================================ */
.yui-top .entry-title,
.yui-top .breadcrumb,
.yui-top .ad-area { display: none !important; }
.yui-top__content { overflow: hidden; }
#navi-footer, .navi-footer, #navi-footer-in { display: none !important; }
#header, .header { display: none !important; }
#container, #content, .content-area, #main, .main-area, #wrapper { background: transparent !important; }
#footer-widget-area, .footer-top, .footer-bottom, #copyright, #copyright-area { display: none !important; }

/* ============================================================
   全ページ共通: BODY 背景・フォント
   ============================================================ */
html, body {
  min-height: 100svh;
  overscroll-behavior: none !important;
  overflow-x: clip;
  background-color: #c2d4e8;
}

body {
  background: transparent;
  background-color: #c2d4e8;
  font-family: 'Noto Sans JP', sans-serif;
}
/* 背景固定レイヤー（iOS Safari の fixed background バグ回避） */
.yui-bg-layer {
  position: fixed !important;
  inset: 0;
  top: 0; left: 0;
  width: 100%;
  z-index: -2;
  background: url('/wp-content/themes/yui-knot/img/yui-bg.webp') center center / cover no-repeat;
  pointer-events: none !important;
  transform: translateZ(0) !important;
  -webkit-transform: translateZ(0) !important;
 overscroll-behavior: none !important;
}

@media (min-width: 769px) {
  .yui-bg-layer {
    background-image: url('/wp-content/themes/yui-knot/img/yui-bg-pc.webp');
  }
}

.yui-bg-layer,
.yui-bg-canvas,
.yui-prism-layer{
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: auto !important;
  width: 100vw !important;
  height: 100lvh !important;   /* アドレスバーが消えた最大高さで固定 */
}
/* Aurora canvas: 背景画像をWebGLで歪ませる */
.yui-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ============================================================
   PRISM LAYER（背景にプリズム光を重ねる）
   ============================================================ */
@property --pos-x { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --pos-y { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --angle { syntax: "<angle>";  inherits: true; initial-value: 0deg; }

.yui-prism-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  overflow: hidden;
}

.yui-prism-layer > div {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(((100vmin + 100vmax) / 2) * 0.04);
  height: calc(((100vmin + 100vmax) / 2) * 0.04);
  background-image: linear-gradient(
    to bottom in oklch decreasing hue,
    oklch(0.8 0.3 300deg / var(--opacity, 0.4)) 24%,
    oklch(0.8 0.2 300deg / var(--opacity, 0.4)),
    oklch(0.95 0.2 270deg / var(--opacity, 0.4)),
    oklch(0.95 0.2 240deg / var(--opacity, 0.4)),
    oklch(0.95 0.1 210deg / var(--opacity, 0.4)),
    oklch(0.95 0.1 180deg / var(--opacity, 0.4)),
    oklch(0.95 0.1 150deg / var(--opacity, 0.4)),
    oklch(0.95 0.1 120deg / var(--opacity, 0.4)),
    oklch(0.95 0.2 90deg / var(--opacity, 0.4)),
    oklch(0.95 0.2 60deg / var(--opacity, 0.4)),
    oklch(0.95 0.2 30deg / var(--opacity, 0.4)),
    oklch(0.8 0.2 0deg / var(--opacity, 0.4)) 78%
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;

  -webkit-mask-image: radial-gradient(closest-side circle at center, white 30%, transparent);
  mask-image: radial-gradient(closest-side circle at center, white 30%, transparent);

  transform:
    skew(calc(var(--angle) / 2), var(--angle))
    rotate(calc(var(--angle) * -2))
    translate3d(var(--pos-x), var(--pos-y), 0)
    scale3d(calc(var(--scale, 2) / 1.8), var(--scale, 2), 1);
  transform-origin: center top;
  will-change: transform;

  animation-name: yuiPrismAnim;
  animation-duration: var(--duration, 8s);
  animation-delay: var(--delay, 0s);
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}
.yui-prism-layer > div:nth-child(even) { animation-direction: alternate-reverse; }

/* 20個分の個別パラメータ */
.yui-prism-layer > div:nth-child(1)  { --pos-x-s:12vw; --pos-y-s:18vh; --angle-s:7deg;   --pos-x-e:20vw; --pos-y-e:26vh; --angle-e:18deg;   --scale:2.1; --duration:9s;  --delay:-3s;  --opacity:0.45; }
.yui-prism-layer > div:nth-child(2)  { --pos-x-s:78vw; --pos-y-s:8vh;  --angle-s:-8deg;  --pos-x-e:85vw; --pos-y-e:15vh; --angle-e:-22deg;  --scale:1.6; --duration:11s; --delay:-8s;  --opacity:0.5; }
.yui-prism-layer > div:nth-child(3)  { --pos-x-s:42vw; --pos-y-s:35vh; --angle-s:9deg;   --pos-x-e:51vw; --pos-y-e:42vh; --angle-e:24deg;   --scale:2.5; --duration:7s;  --delay:-1s;  --opacity:0.55; }
.yui-prism-layer > div:nth-child(4)  { --pos-x-s:22vw; --pos-y-s:68vh; --angle-s:-6deg;  --pos-x-e:29vw; --pos-y-e:74vh; --angle-e:-19deg;  --scale:1.8; --duration:13s; --delay:-12s; --opacity:0.35; }
.yui-prism-layer > div:nth-child(5)  { --pos-x-s:65vw; --pos-y-s:50vh; --angle-s:10deg;  --pos-x-e:73vw; --pos-y-e:57vh; --angle-e:25deg;   --scale:2.3; --duration:8s;  --delay:-5s;  --opacity:0.5; }
.yui-prism-layer > div:nth-child(6)  { --pos-x-s:5vw;  --pos-y-s:45vh; --angle-s:-7deg;  --pos-x-e:14vw; --pos-y-e:52vh; --angle-e:-21deg;  --scale:1.5; --duration:10s; --delay:-15s; --opacity:0.45; }
.yui-prism-layer > div:nth-child(7)  { --pos-x-s:88vw; --pos-y-s:72vh; --angle-s:6deg;   --pos-x-e:92vw; --pos-y-e:80vh; --angle-e:17deg;   --scale:2.8; --duration:12s; --delay:-2s;  --opacity:0.6; }
.yui-prism-layer > div:nth-child(8)  { --pos-x-s:33vw; --pos-y-s:12vh; --angle-s:-9deg;  --pos-x-e:40vw; --pos-y-e:20vh; --angle-e:-23deg;  --scale:2.0; --duration:6s;  --delay:-9s;  --opacity:0.4; }
.yui-prism-layer > div:nth-child(9)  { --pos-x-s:56vw; --pos-y-s:88vh; --angle-s:8deg;   --pos-x-e:63vw; --pos-y-e:93vh; --angle-e:20deg;   --scale:1.7; --duration:14s; --delay:-4s;  --opacity:0.5; }
.yui-prism-layer > div:nth-child(10) { --pos-x-s:15vw; --pos-y-s:82vh; --angle-s:-5deg;  --pos-x-e:24vw; --pos-y-e:88vh; --angle-e:-18deg;  --scale:2.4; --duration:9s;  --delay:-11s; --opacity:0.55; }
.yui-prism-layer > div:nth-child(11) { --pos-x-s:72vw; --pos-y-s:28vh; --angle-s:7deg;   --pos-x-e:80vw; --pos-y-e:33vh; --angle-e:19deg;   --scale:1.9; --duration:11s; --delay:-6s;  --opacity:0.35; }
.yui-prism-layer > div:nth-child(12) { --pos-x-s:48vw; --pos-y-s:62vh; --angle-s:-10deg; --pos-x-e:55vw; --pos-y-e:70vh; --angle-e:-25deg;  --scale:2.2; --duration:8s;  --delay:-13s; --opacity:0.45; }
.yui-prism-layer > div:nth-child(13) { --pos-x-s:3vw;  --pos-y-s:25vh; --angle-s:9deg;   --pos-x-e:12vw; --pos-y-e:31vh; --angle-e:23deg;   --scale:2.6; --duration:10s; --delay:-7s;  --opacity:0.5; }
.yui-prism-layer > div:nth-child(14) { --pos-x-s:82vw; --pos-y-s:58vh; --angle-s:-6deg;  --pos-x-e:88vw; --pos-y-e:65vh; --angle-e:-17deg;  --scale:1.8; --duration:13s; --delay:-10s; --opacity:0.4; }
.yui-prism-layer > div:nth-child(15) { --pos-x-s:38vw; --pos-y-s:78vh; --angle-s:8deg;   --pos-x-e:45vw; --pos-y-e:85vh; --angle-e:22deg;   --scale:2.1; --duration:7s;  --delay:-3s;  --opacity:0.55; }
.yui-prism-layer > div:nth-child(16) { --pos-x-s:60vw; --pos-y-s:18vh; --angle-s:-7deg;  --pos-x-e:66vw; --pos-y-e:24vh; --angle-e:-20deg;  --scale:2.5; --duration:12s; --delay:-14s; --opacity:0.5; }
.yui-prism-layer > div:nth-child(17) { --pos-x-s:10vw; --pos-y-s:55vh; --angle-s:10deg;  --pos-x-e:18vw; --pos-y-e:63vh; --angle-e:24deg;   --scale:1.6; --duration:9s;  --delay:-8s;  --opacity:0.45; }
.yui-prism-layer > div:nth-child(18) { --pos-x-s:92vw; --pos-y-s:40vh; --angle-s:-8deg;  --pos-x-e:95vw; --pos-y-e:47vh; --angle-e:-21deg;  --scale:2.3; --duration:11s; --delay:-2s;  --opacity:0.4; }
.yui-prism-layer > div:nth-child(19) { --pos-x-s:28vw; --pos-y-s:92vh; --angle-s:6deg;   --pos-x-e:37vw; --pos-y-e:97vh; --angle-e:18deg;   --scale:2.0; --duration:8s;  --delay:-16s; --opacity:0.5; }
.yui-prism-layer > div:nth-child(20) { --pos-x-s:52vw; --pos-y-s:5vh;  --angle-s:-9deg;  --pos-x-e:59vw; --pos-y-e:12vh; --angle-e:-23deg;  --scale:2.7; --duration:14s; --delay:-5s;  --opacity:0.55; }

@keyframes yuiPrismAnim {
  0%   { --pos-x: var(--pos-x-s); --pos-y: var(--pos-y-s); --angle: var(--angle-s); }
  100% { --pos-x: var(--pos-x-e); --pos-y: var(--pos-y-e); --angle: var(--angle-e); }
}
/* ============================================================
   フォント適用
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.wp-block-heading, .wp-block-heading *,
.yui-label, .yui-heading, .yui-btn,
.yui-header__nav-list li a, .yui-drawer__list li a,
.yui-service-card__title, .yui-service-card__num,
.yui-work-card__title, .yui-work-card__cat {
  font-family: 'Jost', 'Noto Sans JP', sans-serif !important;
}

/* ============================================================
   WRAPPER
   ============================================================ */
.yui-top {
  position: relative;
  font-family: var(--yui-font-ja); color: var(--yui-text); background: transparent;
}
.yui-page {
  position: relative; z-index: 4;
  font-family: var(--yui-font-ja); color: var(--yui-text);
}
.entry-content .wp-block-group {
  position: relative; z-index: 4;
}

/* TOP: 初回ロード時の白フェード */
.yui-top-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.2s var(--yui-ease);
}
.yui-top-veil.is-hidden {
  opacity: 0;
}

/* ============================================================
   CRYSTAL（滲みフェードイン・3秒）
   ============================================================ */
.yui-crystal-wrap {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;   
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
  /* will-change: transform;
  backface-visibility: hidden; */
  -webkit-backface-visibility: hidden;
  opacity: 0;
  width: 100vw !important;
  height: 100lvh !important;   /* アドレスバーが消えた最大高さで固定 */
  padding-bottom: 6vh;
}

.yui-crystal-wrap.is-revealed {
  transition: opacity 2s ease, filter 2s ease !important;
  opacity: 1;
}
.yui-crystal {
  width: 500px; height: 500px;
  will-change: transform;
  display: block; object-fit: contain;
}

/* ============================================================
   CRYSTAL 登場: フォーカスイン + シャイン一閃
   ============================================================ */
/* シャインの光を切り抜くためラッパーを基準に */
.yui-crystal-wrap.is-shine-ready { overflow: hidden; }

/* 初期状態: 控えめなぼかし＋ごくわずかな拡大（ふわっと用） */
.yui-crystal.is-reveal-init {
  opacity: 0;
  filter: blur(12px) brightness(1.1);
  transform: scale(1.04);
}

/* フォーカスイン発火: ゆっくり穏やかに */
.yui-crystal.is-revealing {
  opacity: 1;
  filter: blur(0) brightness(1);
  transform: scale(1);
  transition:
    opacity 3s cubic-bezier(0.33, 0, 0.2, 1),
    filter 3s cubic-bezier(0.33, 0, 0.2, 1),
    transform 3s cubic-bezier(0.33, 0, 0.2, 1);
}

/* クリスタル登場: 先に光が生まれる（背後フラッシュ） */
.yui-crystal-flash {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 60%);
  opacity: 0;
  transform: scale(0);        /* 完全に潰しておく */
  pointer-events: none;
  z-index: 2;
  visibility: hidden;
}
.yui-crystal-flash.is-active {
  visibility: visible;
  animation: yuiCrystalFlash 1.8s var(--yui-ease) forwards;
}
@keyframes yuiCrystalFlash {
  0%   { opacity: 0; transform: scale(1); }
  40%  { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@media (max-width: 768px) {
  .yui-crystal-flash { width: 350px; height: 350px; }
}

/* クリスタル ふわふわ浮遊 */
@keyframes yuiCrystalFloat {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-16px) rotate(1.5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.yui-crystal-wrap.is-floating {
  animation: yuiCrystalFloat 6s ease-in-out infinite;
}

/* ============================================================
   構造式ロゴ（円形に広がって表示）
   ============================================================ */
.yui-logo-layer {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: opacity 0.5s ease-out;
  will-change: transform;
  transform: translateZ(0);
  /* backface-visibility: hidden; */
  -webkit-backface-visibility: hidden;
  width: 100vw !important;
  height: 100lvh !important;   /* アドレスバーが消えた最大高さで固定 */
 padding-bottom: 6vh;
}
.yui-logo-layer.is-hidden { opacity: 0 !important; pointer-events: none; }

.yui-logo-struct {
  width: 500px; height: 500px;
  display: block; object-fit: contain;
  /* mix-blend-mode: lighten;　*/
  opacity: 0;
  transform-origin: center;
}

/* SP */
@media (max-width: 768px) {
  .yui-crystal { width: 350px; height: 350px; max-width: 350px; }
  .yui-logo-struct { width: 350px; height: 350px; }
}

/* 構造式ロゴ: 中心からはっきり広がって現れる */
@keyframes yuiLogoExpand {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    -webkit-mask-size: 0% 0%;
            mask-size: 0% 0%;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    -webkit-mask-size: 320% 320%;
            mask-size: 320% 320%;
  }
}
.yui-logo-struct.is-expanding {
  animation: yuiLogoExpand 20s var(--yui-ease) forwards;
  /* 縁のぼかしを最小に → くっきりした円が広がる */
  -webkit-mask-image: radial-gradient(circle, #000 75%, transparent 75%);
          mask-image: radial-gradient(circle, #000 75%, transparent 75%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

/* ============================================================
   HERO
   ============================================================ */
.yui-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex; align-items: center; justify-content: center; z-index: 3;
}
.yui-hero__scroll { 
  width:100vw;
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 5; pointer-events: none; white-space: nowrap;
  opacity: 0;                                    /* 初期は隠す */
  transition: opacity 0.8s var(--yui-ease);      /* ふわっと出し入れ */
}
 
.yui-hero__scroll span {
  font-family: var(--yui-font-en); font-size: 9px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--yui-mute);
}
.yui-hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(80,140,200,0.5), transparent);
  animation: yuiScrollPulse 2s ease-in-out infinite 3.5s;
}
@keyframes yuiScrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1);    }
  50%      { opacity: 1;   transform: scaleY(1.15); }
}
@keyframes yuiFadeUpScroll {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}
@keyframes yuiFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ============================================================
   TOP MOVIE: PC/SP 動画切り替え
   ============================================================ */
.yui-top-movie {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  line-height: 0;
}
.yui-top-movie__video {
  width: 100%;
  height: auto;
  display: block;
}
.yui-top-movie__video--sp { display: none; }

@media (max-width: 768px) {
  .yui-top-movie__video--pc { display: none; }
  .yui-top-movie__video--sp {
    display: block;
    width: 100vw;
    height: 100svh;
    object-fit: cover;
	min-height:100svh;
  }
}
/* ============================================================
   SECTION COMMONS
   ============================================================ */
.yui-section { position: relative; z-index: 4; padding: 100px 0; }

.movie { position: relative; z-index: 4; }
.vision_top {
  padding-top: 50px;
  position: relative; z-index: 10;
  font-size: 0.8rem; margin: 100px 0 100px 0;
}
.wwd_top{
  padding-top: 100px;
  position: relative; z-index: 10;
  font-size: 0.8rem; margin: 100px 0 80px 0;
}
.works_top {
  position: relative; z-index: 10;
  font-size: 0.8rem; margin: 100px 0 80px 0;
}
.vision_top h2 { color: #7b879d; font-size: 2rem; letter-spacing:0.05em; }
.wwd_top h2, .works_top h2 { color: #7b879d; font-size: 2rem; letter-spacing:0.05em; }
.wwd_top h2.wp-block-heading { margin-bottom: 20px !important; }
/* ============================================================
   斜め台形シェイプ
   ============================================================ */
.yui-section--trapezoid {
  position: relative; isolation: isolate; overflow: visible !important;
}
.wp-block-group.yui-section--trapezoid,
.yui-section--trapezoid.wp-block-group { overflow: visible !important; }

/* ===== TOP ページ用 ===== */
/* 小さい台形（クリエイター登録について） - TOP */
.yui-top .yui-section--trapezoid:not(.yui-section--trapezoid-large)::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw; top: calc(-5% + 40px) !important; height: 105% !important;
  background: rgba(255,255,255,0.50);
  clip-path: polygon(0 15%, 100% 0%, 100% 100%, 0 85%);
  z-index: 0; pointer-events: none;
}
.yui-top .yui-section--trapezoid:not(.yui-section--trapezoid-large)::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw; top: calc(-5% + 40px) !important; height: 105% !important;
  background: rgba(255,255,255,0.28);
  clip-path: polygon(0 0%, 100% 15%, 100% 85%, 0 100%);
  z-index: 0; pointer-events: none;
}

/* ===== Join Us ページ用 ===== */
/* 小さい台形（クリエイター登録について） - Join Us */
.joinus-page .yui-section--trapezoid:not(.yui-section--trapezoid-large)::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw; top: -45% !important; height: 300% !important;
  background: rgba(255,255,255,0.50);
  clip-path: polygon(0 15%, 100% 0%, 100% 100%, 0 85%);
  z-index: 0; pointer-events: none;
}
.joinus-page .yui-section--trapezoid:not(.yui-section--trapezoid-large)::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw; top: -45% !important; height: 300% !important;
  background: rgba(255,255,255,0.28);
  clip-path: polygon(0 0%, 100% 15%, 100% 85%, 0 100%);
  z-index: 0; pointer-events: none;
}

/* 大きい台形（Contact CTA） - Join Us */
.joinus-page .yui-section--trapezoid-large::before {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw; top: -15% !important; height: 135% !important;
  background: rgba(255,255,255,0.50);
  clip-path: polygon(0 20%, 100% 0%, 100% 100%, 0 80%);
  z-index: 0; pointer-events: none;
}
.joinus-page .yui-section--trapezoid-large::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw; top: -15% !important; height: 135% !important;
  background: rgba(255,255,255,0.28);
  clip-path: polygon(0 0%, 100% 20%, 100% 80%, 0 100%);
  z-index: 0; pointer-events: none;
}

.yui-section--trapezoid > * { position: relative; z-index: 1; }
.wp-block-group.yui-section--trapezoid.is-layout-constrained,
.yui-section--trapezoid.wp-block-group.is-layout-constrained { overflow: visible !important; contain: none !important; }
.wp-block-group-is-layout-constrained.yui-section--trapezoid { overflow: visible !important; }

/* 台形シェイプ SP: 角度を緩やかに、高さを縮小 */
@media (max-width: 768px) {
  /* TOP: 小さい台形 SP */
  .yui-top .yui-section--trapezoid:not(.yui-section--trapezoid-large)::before {
    top: calc(-5% + 120px) !important;
    height: 102% !important;
    clip-path: polygon(0 4%, 100% 0%, 100% 100%, 0 96%);
  }
  .yui-top .yui-section--trapezoid:not(.yui-section--trapezoid-large)::after {
    top: calc(-5% + 120px) !important;
    height: 102% !important;
    clip-path: polygon(0 0%, 100% 4%, 100% 96%, 0 100%);
  }

  /* Join Us: 小さい台形 SP */
  .joinus-page .yui-section--trapezoid:not(.yui-section--trapezoid-large)::before {
    top: -10% !important;
    height: 225% !important;
    clip-path: polygon(0 6%, 100% 0%, 100% 100%, 0 94%);
  }
  .joinus-page .yui-section--trapezoid:not(.yui-section--trapezoid-large)::after {
    top: -10% !important;
    height: 225% !important;
    clip-path: polygon(0 0%, 100% 6%, 100% 94%, 0 100%);
  }

  /* Join Us: 大きい台形 SP */
  .joinus-page .yui-section--trapezoid-large::before {
    top: -10% !important;
    height: 110% !important;
    clip-path: polygon(0 10%, 100% 0%, 100% 100%, 0 90%);
  }
  .joinus-page .yui-section--trapezoid-large::after {
    top: -10% !important;
    height: 110% !important;
    clip-path: polygon(0 0%, 100% 10%, 100% 90%, 0 100%);
  }
}
/* ============================================================
   CONTAINER / LABEL / HEADING / FADE-UP
   ============================================================ */
.yui-container { max-width: var(--yui-container); margin: 0 auto; padding: 0 48px; }
.yui-label {
  display: block; font-family: var(--yui-font-en);
  font-size: 10px; font-weight: 400; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--yui-accent); margin-bottom: 14px;
}
.yui-heading {
  font-family: var(--yui-font-en);
  font-size: clamp(26px, 3.5vw, 44px); font-weight: 300;
  letter-spacing: 0.04em; color: var(--yui-text); margin-bottom: 16px; line-height: 1.25;
}
.yui-section-hd {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 44px; flex-wrap: wrap; gap: 16px;
}
.yui-fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--yui-ease), transform 0.8s var(--yui-ease); }
.yui-fade-up.is-visible { opacity: 1; transform: none; }
.yui-fade-up[data-delay="2"] { transition-delay: 0.2s; }
.yui-fade-up[data-delay="3"] { transition-delay: 0.3s; }

/* ============================================================
   BUTTON
   ============================================================ */
.yui-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--yui-font-en); font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 15px;
  color: #999999; background: none;
  border-radius: 50px; transition: background .25s, border-color .25s, box-shadow .25s;
  cursor: pointer; text-decoration: none;
}
.yui-btn:hover { color: var(--yui-accent); background: rgba(255,255,255,0.9); border-color: var(--yui-accent); box-shadow: 0 4px 16px rgba(80,140,200,0.15); }
.yui-btn--accent { background: var(--yui-accent); border-color: var(--yui-accent); color: #fff; }
.yui-btn--accent:hover { background: #3a96cc; border-color: #3a96cc; }
.yui-btn--outline { border: 2px solid #999999;}
.yui-btn--outline:hover { background: rgba(255,255,255,0.9) !important; border-color: var(--yui-accent) !important; }
.yui-btn svg { width: 14px; height: 14px; transition: transform .25s; flex-shrink: 0; }
.yui-btn:hover svg { transform: translateX(3px); }

/* ============================================================
   Hero サークルセクション
   ============================================================ */
.yui-hero-circle {
  display: flex !important; align-items: center !important; justify-content: center !important;
  min-height: 100svh; position: relative; z-index: 4; padding: 40px 20px !important;
 isolation: isolate;
 transform: translateZ(0);
}
.yui-circle-inner {
  width: 480px !important; height: 480px !important;
  max-width: 90vw !important; max-height: 90vw !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.55) !important;
  backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  text-align: center !important; padding: 48px !important;
  border: 4px solid #f7ff7f !important;
  box-shadow: 0 4px 40px rgba(100,180,255,0.15), inset 0 1px 0 rgba(255,255,255,0.8) !important;
  position: relative !important;
  z-index: 1 !important;
}
.yui-circle-inner h1.wp-block-heading,
.yui-circle-inner h2.wp-block-heading,
.yui-circle-inner .wp-block-heading {
  font-family: var(--yui-font-en) !important;
  font-size: clamp(20px, 3.5vw, 28px) !important; font-weight: 700 !important;
  letter-spacing: 0.08em !important; line-height: 1.35 !important;
  color: #7b879d !important; margin-bottom: 20px !important;
}
.yui-circle-inner p {
  font-family: var(--yui-font-ja) !important; font-size: 13px !important;
  font-weight: 700 !important; letter-spacing: 0.05em !important;
  line-height: 1.9 !important; color: var(--yui-sub) !important; margin: 0 !important;
}

/* ============================================================
   SERVICES ショートコード（.yui-svc-card）
   ============================================================ */
.yui-svc-wrap{
	margin-top:120px;
}
h3.top-title-services { font-size: 25px; color: #7b879d; margin: 30px 0 10px 0; padding-left: 30px; }
.yui-svc-btn-wrap { text-align: center; margin-top: 32px; }

.yui-svc-card {
  position: relative; border-radius: 6px; overflow: visible !important;
  min-height: 400px; display: flex; flex-direction: column;
  justify-content: center; padding: 0; transition: transform 0.3s ease;
 text-decoration: none; color: inherit;
}
.yui-svc-card:hover { transform: translateY(-4px); }
.yui-svc-card__bg {
  position: absolute; inset: 0;
  background-size: contain; background-position: top; background-repeat: no-repeat;
  z-index: 0; transition: transform 0.6s ease; border-radius: 6px;
}
@media (max-width: 768px) {
  .yui-svc-card--brand .yui-svc-card__bg,
  .yui-svc-card--social .yui-svc-card__bg{
    background-position-x: 50%;
  } 
}
.yui-svc-card:hover .yui-svc-card__bg { transform: scale(1.04); }
.yui-svc-card--event .yui-svc-card__bg    { background-image: url("/wp-content/themes/yui-knot/img/bk_event.png"); }
.yui-svc-card--brand .yui-svc-card__bg    { background-image: url("/wp-content/themes/yui-knot/img/bk_brandv.png"); }
.yui-svc-card--social .yui-svc-card__bg   { background-image: url("/wp-content/themes/yui-knot/img/bk_socialv.png"); }
.yui-svc-card--ceremony .yui-svc-card__bg { background-image: url("/wp-content/themes/yui-knot/img/bk_ceremony.png"); }
/* .yui-svc-card__body {
  position: absolute !important; top: 50% !important; left: 0 !important;
  right: 0 !important; bottom: auto !important; transform: translateY(-50%) !important;
  width: 70% !important; margin: 0 auto !important; z-index: 1; text-align: center;
} */
.yui-svc-card__body {
  position: absolute !important; top: 20% !important; left: 0 !important;
  right: 0 !important; bottom: auto !important; transform: translateY(-20%) !important;
  width: 70% !important; margin: 0 auto !important; z-index: 1; text-align: center;
}
.yui-svc-card__title {
  font-family: 'Jost', sans-serif !important; font-size: 25px !important;
  font-weight: 700 !important; line-height: 1.1; color: #7b879d !important;
  margin-bottom: 12px !important; text-align: center; word-break: keep-all !important; height:2em;
}
.yui-svc-card__text {
  font-size: 0.8rem !important; line-height: 1.8 !important; 
  color: var(--yui-text) !important; margin: 0 !important; text-align: center !important;
}
@media (max-width: 768px) {
h3.top-title-services{
	font-size:25px;
}
}

/* ============================================================
   WORKS カード共通
   ============================================================ */
.yui-works { background: transparent; }
.yui-works-sc { position: relative; z-index: 4; padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
.yui-works__empty { font-size: 14px; color: var(--yui-mute); text-align: center; padding: 48px 0; }
.yui-works-swiper { overflow: hidden; padding-bottom: 40px !important; }
.yui-works-swiper .swiper-wrapper { transition-timing-function: linear !important; }
.yui-works-swiper .swiper-slide { height: auto; }
.yui-works-swiper .yui-work-card { height: 100%; }
.yui-works-swiper .yui-work-card__thumb { aspect-ratio: 2/3; }

.yui-work-card { cursor: default; /* border-radius: 6px; */ overflow: hidden; }
.yui-work-card.has-video { cursor: pointer; }
.yui-work-card__link { display: block; text-decoration: none; color: inherit; }
.yui-work-card__link:hover .yui-work-card__thumb img { transform: scale(1.05); }
.yui-work-card__thumb {
  aspect-ratio: 3/4; overflow: hidden; position: relative;
  background: rgba(200,228,255,0.3); /* border-radius: 8px; */
  border: 1px solid rgba(255,255,255,0.75); box-shadow: 0 4px 20px rgba(100,160,220,0.12);
}
.yui-work-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--yui-ease); display: block; }
.yui-work-card__no-thumb { width: 100%; height: 100%; background: rgba(200,228,255,0.2); }
.yui-work-card.has-video:hover .yui-work-card__thumb img { transform: scale(1.05); }
.yui-work-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(200,230,255,0); transition: background .3s ease; }
.yui-work-card.has-video:hover .yui-work-card__play { background: rgba(170,210,255,0.35); }
.yui-work-card__play-icon { width: 52px; height: 52px; border: 1.5px solid rgba(70,130,195,0.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.6); color: var(--yui-accent); opacity: 0; transform: scale(0.8); transition: opacity .3s ease, transform .3s ease; }
.yui-work-card.has-video:hover .yui-work-card__play-icon { opacity: 1; transform: scale(1); }
.yui-work-card__play-icon svg { width: 16px; height: 16px; margin-left: 3px; }
.yui-work-card__meta { padding: 14px 4px 4px; }
.yui-work-card__title  { font-family: var(--yui-font-en); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--yui-text); margin-bottom: 4px; }
.yui-work-card__client { font-size: 12px; color: var(--yui-sub); margin-bottom: 2px; }
.yui-work-card__cat    { font-size: 10px; color: var(--yui-mute); letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--yui-font-en); }

.yui-swiper-btn { width: 40px !important; height: 40px !important; border-radius: 50% !important; border: 1px solid rgba(100,160,220,0.3) !important; background: rgba(255,255,255,0.7) !important; display: flex !important; align-items: center !important; justify-content: center !important; top: 38% !important; }
.yui-swiper-btn::after { font-size: 13px !important; color: var(--yui-text) !important; }
.yui-swiper-btn:hover  { border-color: var(--yui-accent) !important; background: rgba(255,255,255,0.95) !important; }
.yui-swiper-pagination .swiper-pagination-bullet        { width: 5px; height: 5px; background: var(--yui-mute); opacity: 1; }
.yui-swiper-pagination .swiper-pagination-bullet-active { background: var(--yui-accent); transform: scale(1.5); }

/* Works Swiper: 画面幅いっぱいに */
.yui-works-swiper-outer { width: 100vw; margin-left: calc(50% - 50vw); margin-top: 20px !important; overflow: hidden; }
.yui-works-swiper-outer .yui-works-swiper { padding: 0 0 40px; overflow: hidden; }
.yui-works-sc .yui-container { max-width: 100%; padding: 0 24px; }
.works_top { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.works_top h2 { margin-bottom: 20px !important; }
.yui-works-btn-wrap { text-align: right; padding: 24px 40px 0; }

/* Works TOPマーキー */
.yui-works-marquee-wrap { overflow: hidden; width: 100%; padding: 20px 0 52px; cursor: grab; }
.yui-works-marquee-wrap:active { cursor: grabbing; }
.yui-works-marquee__track { display: flex; gap: 20px; width: max-content; animation: yuiMarquee 30s linear infinite; }
.yui-works-marquee-wrap:hover .yui-works-marquee__track { animation-play-state: paused; }
@keyframes yuiMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.yui-works-marquee__item { flex-shrink: 0; width: 200px; }

/* ============================================================
   JOIN US
   ============================================================ */
.yui-join__inner   { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.yui-join__collage { position: relative; height: 500px; }
.yui-join__photo   { position: absolute; overflow: hidden; border-radius: 6px; border: 1px solid rgba(255,255,255,0.85); box-shadow: 0 8px 32px rgba(100,160,220,0.15); }
.yui-join__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yui-join__photo--1 { width: 58%; height: 52%; top: 0;     right: 2%; }
.yui-join__photo--2 { width: 44%; height: 48%; top: 6%;    left: 0;   }
.yui-join__photo--3 { width: 52%; height: 46%; bottom: 2%; right: 0;  }
.yui-join__photo--4 { width: 44%; height: 42%; bottom: 6%; left: 4%;  }
.yui-join__body { font-size: 14px; color: var(--yui-sub); line-height: 2.2; margin-bottom: 32px; }

.joinus_top, .yui-joinus {
  position: relative !important; z-index: 10 !important; isolation: isolate;
}
.joinus_top h2,
.joinus_top .wp-block-heading {
  font-family: 'Jost', 'Noto Sans JP', sans-serif !important;
  font-size: 2rem !important; color: #7b879d !important; font-weight: 600 !important; letter-spacing:0.05em;
}
.joinus_top p,
.joinus_top .wp-block-paragraph {
  font-size: 0.8rem !important; color: var(--yui-text) !important; line-height: 2 !important;
}
.joinus_top .wp-block-buttons { margin-top: 44px !important; }
.joinus_top .wp-block-button .wp-block-button__link,
.joinus_top .wp-block-button__link {
  font-family: 'Jost', sans-serif !important; font-size: 13px !important;
  font-weight: 600 !important; letter-spacing: 0.12em !important;
  border-radius: 40px !important;
  border-top-left-radius: 40px !important; border-top-right-radius: 40px !important;
  border-bottom-left-radius: 40px !important; border-bottom-right-radius: 40px !important;
  padding: 12px 48px !important; padding-top: 12px !important; padding-bottom: 12px !important;
  border: none !important; background: #f7ff7f !important; background-color: #f7ff7f !important;
  color: #2a3a52 !important;
  text-decoration: none !important; transition: transform 0.2s, box-shadow 0.2s !important;
}
.joinus_top .wp-block-button .wp-block-button__link:hover,
.joinus_top .wp-block-button__link:hover {
  transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(200,220,0,0.35) !important;
}

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.yui-video-modal { position: fixed; inset: 0; z-index: 200; background: rgba(210,232,255,0.92); backdrop-filter: blur(24px); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s ease; }
.yui-video-modal:not([hidden]) { opacity: 1; }
.yui-video-modal[hidden] { display: none; }
.yui-video-modal__inner { width: min(90vw, 960px); aspect-ratio: 16/9; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 80px rgba(80,140,200,0.3); transform: scale(0.94); transition: transform .4s var(--yui-ease); }
.yui-video-modal:not([hidden]) .yui-video-modal__inner { transform: scale(1); }
.yui-video-modal__body { width: 100%; height: 100%; }
.yui-video-modal__body video, .yui-video-modal__body iframe { width: 100%; height: 100%; border: none; display: block; }
.yui-video-modal__close { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--yui-sub); background: none; border: none; cursor: pointer; transition: color .2s; }
.yui-video-modal__close:hover { color: var(--yui-text); }
.yui-video-modal__close svg { width: 24px; height: 24px; }

/* ============================================================
   Contact セクション（TOPページ）
   ============================================================ */
/* Contactのタイトルだけセンター寄せ */
.page-id-100 .yui-subpage__title{
	text-align:center;
}
.yui-contact-section { position: relative; z-index: 4; padding: 140px 0 80px 0; display: flex; justify-content: center; }
.yui-contact-card {
  position: relative; background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 0px;
  box-shadow: 0 8px 40px rgba(100,160,220,0.12);
  padding: 30px 64px; text-align: center; width: min(500px, 90vw);
}
.yui-contact-card__title {
  font-family: var(--yui-font-en) !important; font-size: clamp(36px, 5vw, 56px) !important;
  font-weight: 600 !important; color: #7b879d !important;
  letter-spacing: 0.04em !important; margin-bottom: 12px !important;
  line-height:1 !important;
}
/* トップページContactタイトルの色 */
.yui-top__content .yui-contact-card__title {
  color: #7b879d !important;
}
.yui-contact-card__text {
  font-size: 14px !important; line-height: 2 !important;
  color: var(--yui-sub) !important; margin-bottom: 10px !important;
}
.joinus-job__card .wp-block-buttons,
.yui-contact-card .wp-block-buttons{
  display: flex !important;
  justify-content: center !important;
  margin-bottom:0 !important;	
}
.joinus-job__card .wp-block-button .wp-block-button__link,
.yui-contact-card .wp-block-button .wp-block-button__link {
  background: #f7ff7f !important; color: #2a3a52 !important;
  border-radius: 40px !important; padding: 14px 40px !important;
  font-family: var(--yui-font-en) !important; font-size: 13px !important;
  font-weight: 600 !important; letter-spacing: 0.12em !important;
  border: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.joinus-job__card .wp-block-button .wp-block-button__link:hover,
.yui-contact-card .wp-block-button .wp-block-button__link:hover {
  transform: translateY(-2px) !important; box-shadow: 0 8px 28px rgba(180,220,0,0.4) !important;
}

/* Join Us ページ: Contact セクション カラー反転 */
.joinus-page .yui-contact-section {
  padding: 160px 0 80px;
}
.joinus-page .yui-contact-card {
  background: rgba(255, 255, 255, 0.75) !important;
  border: none !important;
  box-shadow: 0 8px 40px rgba(92,196,228,0.2) !important;
}
.joinus-page .yui-contact-card__title {
  color: #7b879d !important;
}
.joinus-page .yui-contact-card__text {
  color: var(--yui-sub) !important;
}

.yui-contact-circle {
  position: absolute; top: -40px; right: -40px; width: 100px; height: 100px;
  pointer-events: none; animation: yuiContactSpin 20s linear infinite;
}
.yui-contact-circle img { width: 100%; height: 100%; object-fit: contain; display: block; }
@keyframes yuiContactSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* SP対応 */
@media (max-width: 768px) {
  .yui-contact-card {
    padding: 24px 18px !important;
    width: min(80vw, 400px) !important;
  }
  .yui-contact-card__title {
    font-size: clamp(32px, 4.5vw, 44px) !important;
    margin-bottom: 8px !important;
  }
  .yui-contact-card__text {
    font-size: 12px !important;
    margin-bottom: 8px !important;
    line-height:130%;
  }
.yui-contact-circle {
  position: absolute; top: -30px; right: -30px; width: 80px; height: 80px;
}
	
  /* Join Us SP */
  .joinus-page .yui-contact-section {
    padding: 80px 0 60px;
  }

}

/* ============================================================
   自作ヘッダー
   ============================================================ */
.yui-header {
  position: sticky; top: 0; z-index: 9999; width: 100%;
  background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: none; transition: background 0.3s ease, box-shadow 0.3s ease;
}
.yui-header.is-scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.yui-header__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; padding: 20px 40px 0 40px; height: 72px; }
.yui-header__logo  { display: flex; align-items: center; flex-shrink: 0; z-index: 2; }
.yui-header__logo-img { margin-top:40px; height: 52px; width: auto; display: block; }
.yui-header__nav   { display: flex; align-items: center; }
.yui-header__nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.yui-header__nav-list li a { font-family: var(--yui-font-en); font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yui-sub); padding: 8px 14px; display: block; white-space: nowrap; text-decoration: none; transition: color 0.25s ease; }
.yui-header__nav-list li a:hover { color: var(--yui-text); }
.yui-header__nav-list .sub-menu { display: none !important; }
.yui-hamburger { display: none; flex-direction: column; gap: 6px; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; z-index: 2; }
.yui-hamburger__bar { display: block; width: 24px; height: 1px; background: var(--yui-text); transition: transform 0.35s ease, opacity 0.35s ease; transform-origin: center; }
.yui-hamburger.is-open .yui-hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.yui-hamburger.is-open .yui-hamburger__bar:nth-child(2) { opacity: 0; }
.yui-hamburger.is-open .yui-hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.is-scrolled .yui-header__nav { display: none; }
.is-scrolled .yui-hamburger   { display: flex; }
body.yui-is-subpage .yui-header__nav { display: none; }
body.yui-is-subpage .yui-hamburger   { display: flex; }

/* ×ボタン（開いている状態）を常に画面右上に固定 */
.yui-hamburger.is-open {
  position: fixed !important;
  top: 20px;
  right: 24px;
  z-index: 10000 !important;
}

/* ドロワー */
.yui-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 300px;
  z-index: 9998;
  background: rgba(220,240,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  pointer-events: none;
}
.yui-drawer.is-open { transform: translateX(0); pointer-events: auto; }
.yui-drawer__inner { text-align: left; padding: 100px 24px 40px; width: 100%; }
.yui-drawer__list { list-style: none; margin: 0; padding: 0; }
.yui-drawer__list li { overflow: hidden; margin-bottom: 4px; }
.yui-drawer__list li a {
  font-family: var(--yui-font-en);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yui-sub);
  display: block;
  padding: 10px 0;
  text-decoration: none;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), color 0.25s ease;
}
.yui-drawer.is-open .yui-drawer__list li a { transform: translateY(0); }
.yui-drawer.is-open .yui-drawer__list li:nth-child(1) a { transition-delay: 0.05s; }
.yui-drawer.is-open .yui-drawer__list li:nth-child(2) a { transition-delay: 0.10s; }
.yui-drawer.is-open .yui-drawer__list li:nth-child(3) a { transition-delay: 0.15s; }
.yui-drawer.is-open .yui-drawer__list li:nth-child(4) a { transition-delay: 0.20s; }
.yui-drawer.is-open .yui-drawer__list li:nth-child(5) a { transition-delay: 0.25s; }
.yui-drawer__list li a:hover { color: var(--yui-text); }
.yui-drawer__list .sub-menu { display: none !important; }
.yui-drawer__overlay { position: fixed; inset: 0; z-index: 9997; background: transparent; display: none; }
.yui-drawer__overlay.is-active { display: block; }

/* ============================================================
   フッター
   ============================================================ */
.yui-footer { position: relative; z-index: 4; padding: 32px 0 24px; text-align: center; }
.yui-footer__sns { display: flex; justify-content: center; margin-bottom: 20px; }
.yui-footer__sns a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgb(255,255,255); display: flex; align-items: center; justify-content: center; color: rgb(255,255,255); text-decoration: none; transition: border-color 0.2s, color 0.2s; }
.yui-footer__sns a:hover { border-color: #fff; color: #fff; }
.yui-footer__sns svg { width: 20px; height: 20px; }
.yui-footer__links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.yui-footer__links a { font-family: var(--yui-font-en); font-size: 11px; letter-spacing: 0.12em; color: rgb(255,255,255); text-decoration: none; transition: color 0.2s; }
.yui-footer__links a:hover { color: rgba(255,255,255,0.9); }
.yui-footer__copy { font-family: var(--yui-font-en); font-size: 10px; letter-spacing: 0.12em; color: rgb(255,255,255); }

/* ============================================================
   下層ページ共通
   ============================================================ */
.yui-subpage { min-height: 100svh; padding-bottom: 80px; }
.yui-subpage__header { padding: 80px 0 48px; position: relative; z-index: 4; }
.yui-subpage__header-inner { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.yui-subpage__breadcrumb { font-family: var(--yui-font-en); font-size: 11px; letter-spacing: 0.15em; color: var(--yui-mute); display: flex; align-items: center; gap: 10px; margin-bottom: 20px; text-transform: uppercase; }
.yui-subpage__breadcrumb a { color: var(--yui-accent); text-decoration: none; transition: opacity 0.2s; }
.yui-subpage__breadcrumb a:hover { opacity: 0.7; }
.yui-subpage__title { font-family: var(--yui-font-en) !important; font-size: clamp(32px, 5vw, 60px) !important; font-weight: bold !important; letter-spacing: 0.04em !important; color: #7b879d !important; margin: 0 !important; line-height: 1.2 !important; }
.yui-subpage__body { position: relative; z-index: 4; }
.yui-subpage__container { max-width: 1000px; margin: 0 auto; padding: 0 48px; }
.yui-subpage__container p { font-size: 12px; line-height: 2.2; color: var(--yui-text); margin-bottom: 1.8em; }
.yui-subpage__container h2 { font-family: var(--yui-font-en) !important; font-size: clamp(20px, 2.5vw, 28px) !important; font-weight: 300 !important; color: var(--yui-text) !important; letter-spacing: 0.05em !important; margin: 48px 0 20px !important; padding-bottom: 12px !important; border-bottom: 1px solid var(--yui-border) !important; }
.yui-subpage__container h3 { font-family: var(--yui-font-en) !important; font-size: clamp(16px, 2vw, 20px) !important; font-weight: 400 !important; color: #7b879d !important; letter-spacing: 0.08em !important; margin: 36px 0 16px !important; }
.yui-subpage__container .wp-block-group { background: rgba(255,255,255,0.5); backdrop-filter: blur(12px); border-radius: 12px; padding: 40px !important; border: 1px solid rgba(255,255,255,0.8); margin-bottom: 24px; }

/* ============================================================
   Works 一覧ページ
   ============================================================ */
.yui-works-archive { position: relative; z-index: 4; min-height: 100svh; padding-bottom: 80px; }
.yui-works-archive__header { padding: 80px 0 48px; }
.yui-works-archive__header-inner { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.yui-works-archive__header-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 0 48px; }
.yui-works-archive__title { font-family: 'Jost', sans-serif !important; font-size: clamp(40px, 6vw, 72px) !important; font-weight: 600 !important; color: #7b879d !important; letter-spacing: 0.01em !important; line-height: 1 !important; margin: 0 !important; flex-shrink: 0; }
.yui-works-filter { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; }
.yui-works-filter__btn { font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 300; letter-spacing: 0.10em; color: rgba(42,58,82,0.55); background: none !important; border: none !important; border-radius: 0 !important; padding: 4px 0 !important; cursor: pointer; transition: color 0.2s; backdrop-filter: none !important; text-decoration: none; }
.yui-works-filter__btn:hover { color: rgba(42,58,82,0.8) !important; background: none !important; }
.yui-works-filter__btn.is-active { color: #ffff6c !important; background: none !important; border: none !important; font-weight: 400; text-decoration: none; }
.yui-works-archive__container { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.yui-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.yui-works-grid__item { transition: opacity 0.3s ease; }
@media (max-width: 768px) {
	.yui-works-grid__item{
		margin-bottom:30px;
	}
}
.yui-works-grid__link { display: block; text-decoration: none; color: inherit; }
.yui-works-grid__thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; /* border-radius: 6px; */ background: rgba(200,228,255,0.2); margin-bottom: 14px; }
.yui-works-grid__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--yui-ease); }
.yui-works-grid__link:hover .yui-works-grid__thumb img { transform: scale(1.05); }
.yui-works-grid__overlay { position: absolute; inset: 0; background: rgba(100,180,255,0); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.yui-works-grid__link:hover .yui-works-grid__overlay { background: rgba(100,180,255,0.25); }
.yui-works-grid__overlay-text { font-family: var(--yui-font-en); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.yui-works-grid__link:hover .yui-works-grid__overlay-text { opacity: 1; transform: none; }
.yui-works-grid__client { font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 0.06em; color: var(--yui-text); margin-bottom: 4px; }
.yui-works-grid__name   { font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--yui-text); margin-bottom: 6px; }
.yui-works-grid__tags   { display: flex; gap: 8px; flex-wrap: wrap; }
.yui-works-grid__cat    { font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--yui-mute); }
.yui-works-grid__date   { font-size: 10px; font-family: var(--yui-font-en); letter-spacing: 0.12em; text-transform: uppercase; color: var(--yui-mute); }
.yui-works-grid__empty  { grid-column: 1 / -1; text-align: center; padding: 80px 0; color: var(--yui-mute); }

/* ============================================================
   ページネーション
   ============================================================ */
.yui-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 60px 0 20px; }
.yui-pagination__pages { display: flex; align-items: center; gap: 6px; }
.yui-pagination__page { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--yui-font-en); font-size: 13px; letter-spacing: 0.05em; color: var(--yui-sub); text-decoration: none; background: rgba(255,255,255,0.5); border: 1px solid rgba(100,160,220,0.2); transition: all 0.2s ease; backdrop-filter: blur(4px); }
.yui-pagination__page:hover { background: rgba(255,255,255,0.9); border-color: var(--yui-accent); color: var(--yui-accent); }
.yui-pagination__page.is-active { background: var(--yui-accent); border-color: var(--yui-accent); color: #fff; font-weight: 500; }
.yui-pagination__ellipsis { width: 32px; text-align: center; color: var(--yui-mute); font-size: 13px; }
.yui-pagination__btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(100,160,220,0.3); background: rgba(255,255,255,0.5); color: var(--yui-sub); text-decoration: none; transition: all 0.2s ease; backdrop-filter: blur(4px); }
.yui-pagination__btn:hover { background: rgba(255,255,255,0.9); border-color: var(--yui-accent); color: var(--yui-accent); }
.yui-pagination__btn svg { width: 16px; height: 16px; }

/* ============================================================
   Works 個別ページ
   ============================================================ */
.yui-work-single { position: relative; z-index: 4; min-height: 100svh; }
.yui-work-single__header { padding: 80px 0 48px; }
.yui-work-single__header-inner { max-width: 1240px; margin: 0 auto; padding: 0 48px; }
.yui-work-single__header-row { display: flex; align-items: center; flex-wrap: nowrap; gap: 0 48px; }
.yui-work-single__page-title { font-family: 'Jost', sans-serif !important; font-size: clamp(40px, 6vw, 72px) !important; font-weight: 600 !important; color:#7b879d !important; letter-spacing: 0.01em !important; line-height: 1 !important; margin: 0 !important; flex-shrink: 0; }
.yui-work-single__cat-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.yui-work-single__cat-link { font-family: 'Jost', sans-serif; font-size: 12px; font-weight: 300; letter-spacing: 0.10em; color: rgba(42,58,82,0.55); text-decoration: none; padding: 4px 0; border: none; transition: color 0.2s; }
.yui-work-single__cat-link:hover { color: rgba(42,58,82,0.8); }
.yui-work-single__cat-link.is-active { color: #ffff6c; font-weight: 400; }

.yui-work-single__body { padding-bottom: 40px; }
.yui-work-single__container { max-width: 1000px; margin: 0 auto; padding: 0 48px; }

/* タイトル（ブルーグレー） */
.yui-work-single__title {
  font-family: 'Jost','Noto Sans JP',sans-serif !important;
  font-size: clamp(24px, 2.6vw, 28px) !important;
  font-weight: 600 !important;
  color: #7b879d !important;
  letter-spacing: 0.05em !important;
  margin: 0 0 32px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

/* メイン動画 */
.yui-work-single__visual { margin-bottom: 48px; }
.yui-work-single__video-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; /* border-radius: 10px; */ background: rgba(200,228,255,0.2); box-shadow: 0 8px 48px rgba(100,160,220,0.15); }
.yui-work-single__video-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* 縦型動画 */
.yui-work-single__video-wrap.is-vertical {
  aspect-ratio: 9/16;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .yui-work-single__video-wrap.is-vertical {
    max-width: 280px;
  }
}

/* 動画がない場合の代替画像（最大3枚） */
.yui-work-single__alt-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.yui-work-single__alt-img {
/* border-radius: 10px; */
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(200,228,255,0.2);
}
.yui-work-single__alt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* クレジット */
.yui-work-single__credit {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:2px solid #ffff6c;
/* border-radius: 6px; */
  padding: 36px 40px;
  margin-bottom: 56px;
}
.yui-work-single__credit-block { margin-bottom: 18px; }
.yui-work-single__credit-block:last-child { margin-bottom: 0; }
.yui-work-single__credit-label {
  font-family: 'Jost', sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2a3a52 !important;
  letter-spacing: 0.05em !important;
  margin: 0 0 6px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.yui-work-single__credit-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  color: var(--yui-text);
  line-height: 1.8;
  margin: 0;
  letter-spacing: 0.05em;
}
.yui-work-single__credit-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.yui-work-single__credit-item {
  display: flex;
  gap: 16px;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}
.yui-work-single__credit-item dt {
  color: var(--yui-text);
  white-space: nowrap;
  min-width: 220px;
}
.yui-work-single__credit-item dd {
  color: var(--yui-text);
  margin: 0;
}

/* LINK */
.yui-work-single__credit-value a {
  color: var(--yui-accent);
  text-decoration: underline;
  word-break: break-all;
}
.yui-work-single__credit-value a:hover {
  opacity: 0.75;
}

/* 本文セクション */
.yui-work-single__section { margin-bottom: 48px; }
.yui-work-single__section-title {
  font-family: 'Jost', sans-serif !important;
  font-size: clamp(20px, 2.5vw, 28px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
  color: #ffffff !important;
  margin-bottom: 1em !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.yui-work-single__section-body {
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--yui-text);
  padding: 0 10px;
}
.yui-work-single__section-body p {
  color: var(--yui-text);
  margin-bottom: 1em;
}

/* About the Client画像（最大3枚） */
.yui-work-single__about-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.yui-work-single__about-img {
/* border-radius: 8px; */
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(200,228,255,0.2);
}
.yui-work-single__about-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Related Works */
.yui-work-single__related {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0 60px;
}
.yui-work-single__related .yui-work-single__container { padding: 0 48px; }
.yui-work-single__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* 前後ナビ */
.yui-work-single__nav { max-width: 1000px; margin: 0 auto; padding: 32px 48px 80px; border-top: 1px solid var(--yui-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.yui-work-single__nav-back { font-family: var(--yui-font-en); font-size: 11px; letter-spacing: 0.15em; color: var(--yui-accent); text-decoration: none; transition: opacity 0.2s; }
.yui-work-single__nav-back:hover { opacity: 0.7; }
.yui-work-single__nav-prev-next { display: flex; gap: 20px; }
.yui-work-single__nav-btn { font-family: var(--yui-font-en); font-size: 11px; letter-spacing: 0.1em; color: var(--yui-sub); text-decoration: none; transition: color 0.2s; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yui-work-single__nav-btn:hover { color: var(--yui-text); }

/* SP対応 */
@media (max-width: 768px) {
  .yui-work-single__credit { padding: 24px 20px; }
  .yui-work-single__credit-item { flex-direction: column; gap: 2px; }
  .yui-work-single__credit-item dt { min-width: auto; font-size: 12px; }
  .yui-work-single__related-grid { grid-template-columns: 1fr; }
  .yui-work-single__alt-imgs { grid-template-columns: 1fr; }
  .yui-work-single__about-imgs { grid-template-columns: 1fr; }
}
/* ============================================================
   Snow Monkey Forms（Contactフォーム）
   ============================================================ */
.snow-monkey-form { 
	max-width: 800px; 
	margin: 0 auto; 
	padding: 0 0 80px;
  background: rgba(255,255,255,0.78) !important; backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

@media (max-width: 768px) {
.snow-monkey-form {
   padding:20px;
}
}
/* フォームカード */
.smf-form {
  border-radius: 0 !important;
  box-shadow: none !important; padding: 80px 88px 30px !important;
}
.smf-action {
  border-radius: 0 !important;
  padding: 28px 68px 0px !important; display: flex !important; justify-content: center !important;
}

/* フォーム項目レイアウト */
.smf-item {
  display: grid !important; grid-template-columns: 100px 1fr !important;
  gap: 0 16px !important; align-items: start !important; margin-bottom: 16px !important;
  max-width: 560px !important; margin-left: auto !important; margin-right: auto !important;
}
.smf-item__col--label { text-align: right !important; white-space: nowrap !important; padding-top: 8px !important; }
.smf-item__label { font-family: 'Noto Sans JP', sans-serif !important; font-size: 11px !important; font-weight: 400 !important; color: #4a4f52 !important; letter-spacing: 0.05em !important; }

/* 入力欄 */
.smf-text-control__control,
.smf-textarea-control__control {
  width: 100% !important; background: rgba(200,195,188,0.25) !important;
  border: none !important; border-radius: 0px !important; padding: 10px 12px !important;
  font-size: 13px !important; color: #4a4f52 !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  outline: none !important; box-shadow: none !important;
  box-sizing: border-box !important; transition: background 0.2s !important;
}
.smf-text-control__control:focus,
.smf-textarea-control__control:focus { background: rgba(200,195,188,0.4) !important; }
.smf-textarea-control__control { min-height: 110px !important; resize: vertical !important; }

/* ラジオボタン: 2列グリッドで整列 */
.smf-radio-buttons-control__control {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px 16px !important;
  margin-bottom:20px;
}
.smf-radio-button-control {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.smf-form .smf-radio-button-control__control{
	margin-top:0;
}
.smf-radio-button-control__label {
  font-size: 12px;
}

/* チェックボックス */
.smf-checkbox-control__control,
input[type="checkbox"].smf-checkbox-control__control {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  width: 16px !important; height: 16px !important; min-width: 16px !important;
  border-radius: 0px !important; border: 1.5px solid rgba(150,170,190,0.6) !important;
  background: rgba(255,255,255,0.9) !important; cursor: pointer !important;
  position: relative !important; display: inline-block !important;
  vertical-align: middle !important; margin-right: 8px !important;
  flex-shrink: 0 !important; box-shadow: none !important; outline: none !important;
}
.smf-form .smf-checkbox-control{
  gap: 0 !important;
}
.smf-checkbox-control__control:checked,
input[type="checkbox"].smf-checkbox-control__control:checked {
  background: var(--yui-accent) !important; border-color: var(--yui-accent) !important;
}
.smf-checkbox-control__control::before,
input[type="checkbox"].smf-checkbox-control__control::before { display: none !important; content: none !important; }
.smf-checkbox-control__control::after,
input[type="checkbox"].smf-checkbox-control__control::after { content: none !important; display: none !important; }
.smf-checkbox-control__control:checked::after,
input[type="checkbox"].smf-checkbox-control__control:checked::after {
  content: '' !important; display: block !important; position: absolute !important;
  top: 1px !important; left: 4px !important; width: 5px !important; height: 9px !important;
  border: 2px solid #fff !important; border-top: none !important; border-left: none !important;
  transform: rotate(45deg) !important;
}
.smf-checkbox-control__label { font-family: 'Noto Sans JP', sans-serif !important; font-size: 12px !important; color: #4a4f52 !important; vertical-align: middle !important; }

/* チェックボックス横並び */
.smf-checkboxes-control__control {
  display: flex !important; flex-direction: row !important;
  flex-wrap: wrap !important; gap: 8px 24px !important; align-items: center !important;
}
.smf-label { display: inline-flex !important; align-items: center !important; }
.smf-label label { display: inline-flex !important; align-items: center !important; cursor: pointer !important; white-space: nowrap !important; }

/* プライバシーポリシーリンク */
.smf-checkbox-control__label a,
.smf-label label a {
  color: var(--yui-accent) !important; text-decoration: underline !important;
  pointer-events: auto !important; position: relative !important; z-index: 10 !important; cursor: pointer !important;
}
.smf-checkbox-control__label a:hover,
.smf-label label a:hover { opacity: 0.75 !important; }

/* 送信ボタン */
.smf-button-control__control {
  font-family: 'Jost', sans-serif !important; font-size: 13px !important;
  font-weight: 500 !important; letter-spacing: 0.12em !important;
  border-radius: 40px !important; padding: 12px 48px !important;
  cursor: pointer !important; transition: transform 0.2s, box-shadow 0.2s !important;
  border: none !important; background: #f7ff7f !important; color: #2a3a52 !important;
  box-shadow: 0 4px 16px rgba(200,220,0,0.25) !important;
}
.smf-button-control__control:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(200,220,0,0.35) !important; }
.smf-button-control__control[data-action="back"] { background: rgba(255,255,255,0.5) !important; color: var(--yui-sub) !important; box-shadow: none !important; border: 1px solid rgba(100,160,220,0.3) !important; margin-right: 12px !important; }
.smf-sending { display: none !important; }
.smf-item__error-messages { font-size: 11px; color: #e05; grid-column: 2; margin-top: 4px; }

/* SPのとき、項目名を上に */
@media (max-width: 768px) {
  .smf-item {
    display: block !important;
  }
  .smf-item__col--label {
    text-align: left !important;
    padding-top: 0 !important;
    margin-bottom: 6px !important;
  }
}
/* ============================================================
   What We Do ページ (/whatwedo/)
   ============================================================ */
.wwd-page { position: relative; z-index: 4; padding-bottom: 80px; }
.wwd-page h1, .wwd-page h2, .wwd-page h3 {
  font-style: normal !important; border-bottom: none !important; padding-bottom: 0 !important;
}

/* Philosophy */
.wwd-philosophy {
  max-width: 1000px;
  margin: 0 auto 56px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.wwd-philosophy__catch {
  font-family: 'Jost', sans-serif !important;
  font-size: clamp(22px, 3vw, 32px) !important;
  font-weight: 600 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.04em !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
@media (max-width: 768px) {
.wwd-philosophy__catch{
  display:inline-grid;
}
}
.wwd-philosophy__tagline {
  display: inline-block;
  background: #ffff6c;
  color: #2a3a52;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 6px 20px;
  margin-bottom: 28px;
}
.wwd-philosophy__text p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  line-height: 2.2;
  color: var(--yui-text);
  margin-bottom: 1em;
  text-align:left;
}
.wwd-philosophy__struct {
  width: 360px;
  margin:60px auto;
}
.wwd-philosophy__struct img {
  width: 100%; height: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Services */
.wwd-services { max-width: 900px; margin: 40px auto 0; padding: 0 48px; }
.wwd-services__label {
  font-family: 'Jost', sans-serif !important; font-size: 28px !important;
  font-weight: 600 !important; font-style: normal !important; letter-spacing: 0.04em !important;
  color: #FFFFFF !important; margin-bottom: 16px !important;
  border-bottom: none !important; padding-bottom: 0 !important;
}
.wwd-service-item {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* border-radius: 4px; */
  border: 1px solid rgba(255,255,255,0.9); padding: 28px 32px; margin-bottom: 10px;
}
.wwd-service-item:last-child { margin-bottom: 0; }
.wwd-service-item__content { flex: 1; }
.wwd-service-item__image {
  flex-shrink: 0;
  width: 300px; height: auto;
 /* border-radius: 6px; */
  overflow: hidden;
}
.wwd-service-item__image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
h2.wwd-service-item__title {
  font-family: 'Jost', sans-serif !important; font-size: 28px !important;
  font-weight: 700 !important; font-style: normal !important; color: #7b879d !important;
  letter-spacing: 0.04em !important; margin-bottom: 6px !important;
  border-bottom: none !important; padding-bottom: 0 !important; margin-top: 0 !important;
}
.wwd-service-item__desc { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; line-height: 1.8; color: #6a7f9a; margin-bottom: 12px; }
.wwd-service-item__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.wwd-tag { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; color: var(--yui-text); padding: 3px 12px 3px 0px; white-space: nowrap; letter-spacing: 0.12em; line-height:100%; }
.wwd-service-item__btn {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #fff;
  background: #5cc4e4;
  border-radius: 20px;
  padding: 6px 20px;
  text-decoration: none;
  transition: background 0.2s;
}
.wwd-service-item__btn:hover { background: #3a96cc; color:#FFFFFF; }


/* Founder's Message */
.wwd-founder { 
  max-width: 760px; 
  margin: 0 auto; 
  padding: 56px 48px 0 48px;
  scroll-margin-top: 120px;
}
h2.wwd-founder__title {
  font-family: 'Jost', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #7b879d !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 24px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}
.wwd-founder__inner { display: flex; flex-direction: column; gap: 32px; align-items: center; }
.wwd-founder__photo { flex-shrink: 0; width: 300px; overflow: hidden; }
.wwd-founder__photo img { width: 100%; height: auto; display: block; }
.wwd-founder__body { flex: 1; width: 100%; }
.wwd-founder__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; line-height: 2;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.wwd-founder__name {
  font-family: 'Jost', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-align: right;
}

/* Company Profile */
.wwd-profile { 
  max-width: 760px; 
  margin: 56px auto 0; 
  padding: 0 48px;
  scroll-margin-top: 100px;
}
h2.wwd-profile__title {
  font-family: 'Jost', sans-serif !important; 
  font-size: 24px !important;
  font-weight: 700 !important; 
  font-style: normal !important; 
  color: #7b879d !important;
  letter-spacing: 0.06em !important; 
  margin-bottom: 0 !important;
  padding-bottom: 0 !important; 
  border-bottom: none !important;
}
.wwd-profile__table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.wwd-profile__table,
.wwd-profile__table tbody,
.wwd-profile__table tr,
.wwd-profile__table th,
.wwd-profile__table td {
  background: transparent !important; background-color: transparent !important;
  border-left: none !important; border-right: none !important;
}
.wwd-profile__table tr { border-bottom: 2px solid rgba(255,255,255,0.6) !important; }
.wwd-profile__table tr:first-child { border-top: 2px solid rgba(255,255,255,0.6) !important; }
.wwd-profile__table th {
  font-family: 'Noto Sans JP', sans-serif !important; 
  font-size: 12px !important;
  font-weight: 400 !important; 
  color: var(--yui-text) !important; 
  text-align: left !important;
  padding: 14px 24px 14px 0 !important; 
  width: 90px !important;
  white-space: nowrap !important; 
  vertical-align: top !important; 
  border-top: none !important;
}
.wwd-profile__table td {
  font-family: 'Noto Sans JP', sans-serif !important; 
  font-size: 13px !important;
  color: var(--yui-text) !important; 
  padding: 14px 0 !important;
  vertical-align: top !important; 
  border-top: none !important;
}

/* ============================================================
   What We Do レスポンシブ
   ============================================================ */
/* What We Do: Philosophy PC時のみ横並び（画像左・テキスト右） */
@media (min-width: 769px) {
  .wwd-philosophy {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 50px;
  }
  .wwd-philosophy__struct {
    order: 1;
    width: 400px;
    margin: 0 !important;
    flex-shrink: 0;
  }
  .wwd-philosophy__text {
    order: 2;
    flex: 1;
  }
}
/* SPは縦並び */
@media (max-width: 768px) {
  .wwd-philosophy { padding: 0 20px; }
  .wwd-philosophy__struct { width: 300px; }
  .wwd-services { padding: 0 20px; }
  .wwd-service-item { flex-direction: column; gap: 16px; }
  .wwd-service-item__image { width: 100%; height: auto; }
  .wwd-contact { padding: 0 20px; margin-top: 44px; }
  .wwd-contact__card { padding: 32px 24px; }
  .wwd-founder { 
    padding: 0 20px; 
    margin-top: 44px;
    scroll-margin-top: 80px;
  }
  .wwd-founder__inner { flex-direction: column; }
  .wwd-founder__photo { width: 100%; max-width: 100%; }
  .wwd-profile { 
    padding: 0 20px; 
    margin-top: 44px;
    scroll-margin-top: 80px;
  }
  .wwd-profile__table th { width: 72px; font-size: 11px; padding-right: 16px; }
  .wwd-profile__table td { font-size: 12px; }
  .wwd-tag { font-size: 10px; padding: 3px 10px; }
}

/* ============================================================
   Join Us ページ
   ============================================================ */
.joinus-page { 
	position: relative;
	z-index: 4;
	padding-bottom: 0px;
}

/* ヒーロー */
.joinus-hero {
  text-align: center;
  padding: 20px 20px 60px;
  position: relative;
}
.joinus-hero__crystal {
  width: 300px;
  margin: 0 auto 32px;
}
.joinus-hero__crystal img {
  width: 100%; height: auto; display: block;
}
.joinus-hero__catch {
  font-family: 'Jost', sans-serif;
  font-size: clamp(24px, 4vw, 40px) !important;
  font-weight: 500;
  line-height: 1 !important;
  color: #FFFFFF !important;
  letter-spacing: 0.06em;
}
.joinus-hero__catch--yellow { color: #f7ff7f; }

/* クリエイター登録について */
.joinus-about {
  max-width: 760px;
  margin: 0 auto 56px;
  padding: 80px 48px;
  text-align: center;
}

.joinus-about__text p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 2.2;
  color: var(--yui-text);
  margin-bottom: 1.4em;
}
.joinus-about__text p:last-child { margin-bottom: 0; }
.joinus-about__text strong {
  font-weight: 500;
  color: var(--yui-text);
  line-height:120%;
}
.joinus-about__text strong{
	font-size:16px;
}
/* 求人カード */
.joinus-job {
  max-width: 600px;
  margin: 0 auto 48px;
  padding: 0 48px;
  position: relative;
  color:#4a4f52;
}
.joinus-job__badge {
  position: absolute;
  top: -54px;
  left: 48%;
  transform: translateX(-280%) rotateZ(-20deg);
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #7b879d;
  color: #FFFFFF;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgb(123 135 157 / 29%);
  text-align: center;
  line-height: 1.2;
  z-index: 10;
}
.joinus-job__card {
/* border-radius: 40px; */
  border: 2px solid #c8d4e5;
  padding: 52px 52px;
  margin-top: 16px;
}
h3.joinus-job__title {
  font-family: 'Jost', 'Noto Sans JP', sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  margin-bottom: 12px !important;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  text-align:center;
  color:#4a4f52 !important;
  margin-top:0 !important;
}
.joinus-job__desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  line-height: 1.9;
  color:#4a4f52 !important;
  margin-bottom: 16px;
  text-align:center;
}
.joinus-job__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.joinus-job__detail-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 12px;
  align-items: baseline;
}
.joinus-job__detail-item dt{
  background: #7b879d;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 10px;
  font-weight: 400;
  padding: 3px 8px;
/* border-radius: 10px; */
  text-align: center;
  letter-spacing:15%;
}
.joinus-job__detail-item dd {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color:#4a4f52 !important;
  margin: 0;
  letter-spacing:20%;
}
.joinus-job__url {
  font-size: 11px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 12px;
  align-items: baseline;
  letter-spacing:20%;
}
.joinus-job__url a {
  font-size: 11px;
  color: var(--yui-accent);
  word-break: break-all;
}
.joinus-job__contact {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color:#4a4f52 !important;
  margin-top: 16px;
  margin-bottom: 0;
  cursor: pointer;
}

/* SP */
@media (max-width: 768px) {
  .joinus-hero__crystal { width: 220px; }
  .joinus-about { padding: 60px 20px; margin: 0 !important; }
  .joinus-job { padding: 0 20px; margin: 0 auto 48px !important; }
  .joinus-job__card { padding: 20px 20px; }
  
  /* 求人バッジ位置調整 */
  .joinus-job__badge {
    top: -40px;
    left: 10%;
    transform: translateX(-50%) rotateZ(-20deg);
    width: 80px;
    height: 80px;
    font-size: 12px;
  }
  
  /* URL折り返し対応 */
  .joinus-job__detail-item {
    grid-template-columns: 4rem 1fr;
    gap: 8px;
  }
  .joinus-job__detail-item dt {
    font-size: 9px;
    padding: 2px 6px;
  }
  .joinus-job__detail-item dd {
    font-size: 11px;
    word-break: break-word;
  }
}

/* ============================================================
   Join Us ギャラリー
   ============================================================ */
.joinus-gallery {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 250px;
  margin-bottom: 80px;
  padding: 0 40px;
  box-sizing: border-box;
}
.joinus-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PC: 4列×2段 staggered グリッド */
@media (min-width: 769px) {
  .joinus-gallery__track {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    grid-auto-rows: clamp(280px, 22vw, 420px);
    gap: 10px;
  }
  .joinus-gallery__item {
    overflow: hidden;
  /* border-radius: 4px; */
  }
/* Row 1: 5+6+6+7 = 24 */
.joinus-gallery__item:nth-child(1) { grid-column: span 7; }  /* ダンス */
.joinus-gallery__item:nth-child(2) { grid-column: span 5; }  /* 虫眼鏡 */
.joinus-gallery__item:nth-child(3) { grid-column: span 7; }  /* 黄色消防士 */
.joinus-gallery__item:nth-child(4) { grid-column: span 5; }  /* お面 */
/* Row 2: 6+4+8+6 = 24 */
.joinus-gallery__item:nth-child(5) { grid-column: span 5; }  /* 警察バイク */
.joinus-gallery__item:nth-child(6) { grid-column: span 5; }  /* ヘッドホン */
.joinus-gallery__item:nth-child(7) { grid-column: span 8; }  /* カメラ */
.joinus-gallery__item:nth-child(8) { grid-column: span 6; }  /* 白ヘルメット */
  
  .joinus-gallery__item--clone {
    display: none;
  }
}
/* SP: 横スクロール マーキー（ゆっくり、シームレス） */
@media (max-width: 768px) {
  .joinus-gallery {
    max-width: 100%;
    padding: 0;
    margin: 40px 0;
    overflow: hidden;
  }
  .joinus-gallery__track {
    display: flex;
    width: max-content;
    animation: joinusGalleryScroll 60s linear infinite;
  }
  .joinus-gallery__item {
    flex-shrink: 0;
    width: 180px;
    aspect-ratio: 3/4;
 /* border-radius: 4px; */
    overflow: hidden;
    margin-right: 10px;
  }
  @keyframes joinusGalleryScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
}

/* ============================================================
   プライバシーポリシーページ
   ============================================================ */
.page-id-3 h1{
	display:none;
}
  .pp-title{
  font-size:1.3rem;
  margin-bottom:20px;
  font-weight:500;
}
  .pp-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    color: var(--yui-text);
    line-height: 1.85;
    font-size: 0.975rem;
  }
  .pp-wrap h2 {
    color: var(--yui-accent);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid currentColor;
    letter-spacing: 0.04em;
  }
  .pp-wrap p {
    margin: 0 0 1rem;
    color: var(--yui-text);
  }
  .pp-wrap ul {
    margin: 0 0 1rem 1.5rem;
    padding: 0;
    color: var(--yui-text);
  }
  .pp-wrap ul li {
    margin-bottom: 0.4rem;
  }
  .pp-wrap .pp-meta {
    margin-top: 3rem;
    font-size: 0.875rem;
    opacity: 0.7;
  }
  .pp-wrap a {
    color: var(--yui-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .pp-wrap a:hover {
    opacity: 0.75;
  }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .yui-join__inner { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 834px) {
  .yui-header__inner { padding: 10px 20px 0px 20px; height: 60px; }
  .yui-header__nav   { display: none !important; }
  .yui-hamburger     { display: flex !important; }
  .yui-header__logo-img { height: 40px; }
}

@media (max-width: 768px) {
  /* 基本 */
  .yui-container { padding: 0 20px; }
  .yui-section   { padding: 72px 0; }
  .yui-section-hd { flex-direction: column; align-items: flex-start; gap: 16px; }
  .yui-join__collage { height: 300px; }

  /* サークル */
  .yui-circle-inner { width: min(85vw, 340px) !important; height: min(85vw, 340px) !important; padding: 32px !important; }
  .yui-circle-inner h1.wp-block-heading,
  .yui-circle-inner h2.wp-block-heading,
  .yui-circle-inner .wp-block-heading { font-size: 18px !important; }

  /* ヘッダー */
  .yui-header__inner { padding: 10px 20px 0px 20px; height: 60px; }
  .yui-header__nav   { display: none !important; }
  .yui-hamburger     { display: flex !important; }
  .yui-header__logo-img { height: 40px; }


  /* Services */
  .yui-svc-wrap { margin-top: 40px; margin-left: calc(-50vw + 50%) !important; margin-right: calc(-50vw + 50%) !important; width: 100vw !important; }
  .yui-svc-grid { width: 100vw !important; padding-bottom: 44px; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
  .yui-svc-card { min-height: 330px; border-radius: 0 !important; }
  .yui-svc-card__body { width: 56% !important; padding: 0 8px !important; top:30% !important; }
  .yui-svc-card__title { font-size: 25px !important; line-height:110% !important;}
  .yui-svc-card__text  { font-size: 0.8rem !important; }
  .yui-svc-grid .swiper-pagination-bullet        { background: #9ab0c8; opacity: 1; width: 5px; height: 5px; }
  .yui-svc-grid .swiper-pagination-bullet-active { background: #4fa8d8; transform: scale(1.5); }

  /* Works */
  .yui-works-marquee__item { width: 240px; }
  .yui-works-archive__header { padding: 60px 0 32px; }
  .yui-works-archive__header-inner { padding: 0 20px; }
  .yui-works-archive__header-row { flex-direction: column; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .yui-works-archive__container { padding: 0 20px; }
  .yui-works-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .yui-works-btn-wrap { padding: 20px 20px 0; }

  /* Works 個別 */
  .yui-work-single__header { padding: 60px 0 32px; }
  .yui-work-single__header-inner { padding: 0 20px; }
  .yui-work-single__container { padding: 0 20px; }
  .yui-work-single__header-row { flex-direction: column; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
  .yui-work-single__gallery { grid-template-columns: 1fr; }
  .yui-work-single__nav { padding: 24px 20px 60px; flex-direction: column; align-items: flex-start; }

  /* ページネーション */
  .yui-pagination { gap: 6px; }
  .yui-pagination__page { width: 36px; height: 36px; font-size: 12px; }
  .yui-pagination__btn  { width: 36px; height: 36px; }

  /* 下層ページ */
  .yui-subpage__header { padding: 60px 0 32px; }
  .yui-subpage:has(.joinus-page){ padding-bottom:0; }
  .yui-subpage__header-inner { padding: 0 20px; }
  .yui-subpage__container { padding: 0 20px; }
  .yui-subpage__container .wp-block-group { padding: 24px !important; }

  /* フォーム */
  .smf-form   { padding: 40px 0 28px !important; }
  .smf-action { padding: 16px 32px 40px !important; }
  .smf-item   { grid-template-columns: 80px 1fr !important; max-width: 100% !important; }
  .smf-checkboxes-control__control { flex-direction: column !important; gap: 6px !important; align-items: flex-start !important; }

  /* フッター */
  .yui-footer__bottom { flex-direction: column; align-items: flex-start; }

  /* TOP: Vision / What We Do / Works / Join Us 端余白 */
  .vision_top { margin-top:0 !important; padding-right: 18px !important; padding-left: 18px !important; text-align: right; }
  .wwd_top    { padding-left: 18px !important; padding-right: 18px !important; text-align: left; }
  .works_top  { padding-right: 18px !important; padding-left: 18px !important; text-align: right; }
  .joinus_top { padding-top: 100px; padding-left: 18px !important; padding-right: 18px !important; text-align: left; }

  /* What We Do ページ */
  .wwd-philosophy { padding: 40px 20px; }
  .wwd-philosophy__card { padding: 28px 20px 24px; }
  .wwd-services { padding: 0 20px; }
  .wwd-service-item { padding: 20px 26px; }
  .wwd-contact { padding: 0 20px; margin-top: 44px; }
  .wwd-contact__card { padding: 32px 24px; }
  .wwd-profile { padding: 0 20px; margin-top: 44px; }
  .wwd-profile__table th { width: 72px; font-size: 11px; padding-right: 16px; }
  .wwd-profile__table td { font-size: 12px; }
  .wwd-tag { font-size: 10px; padding: 3px 10px; }
}

@media (min-width: 769px) {
  .yui-svc-grid .swiper-wrapper { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; transform: none !important; width: 100% !important; }
  .yui-svc-grid .swiper-slide   { width: auto !important; height: auto !important; }
  .yui-svc-grid .swiper-pagination { display: none !important; }
}

@media (min-width: 768px) {
  .yui-works-marquee__item { width: 240px; }
  .yui-works-sc .yui-container { max-width: 100%; padding: 0 40px; }
}

@media (min-width: 1024px) {
  .yui-works-marquee__item { width: 260px; }
}

@media (max-width: 480px) {
  .yui-works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .yui-svc-grid {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ============================================================
   スクロール フェードイン
   ============================================================ */
.yui-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 2s var(--yui-ease), transform 2s var(--yui-ease);
}
.yui-reveal.is-in {
  opacity: 1;
  transform: none;
}
/* タイトル→本文を順番に出す */
.yui-reveal--stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--yui-ease), transform 0.6s var(--yui-ease);
}
.yui-reveal--stagger.is-in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s;    }
.yui-reveal--stagger.is-in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.14s; }
.yui-reveal--stagger.is-in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.26s; }
.yui-reveal--stagger.is-in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.38s; }
.yui-reveal--stagger.is-in > *:nth-child(n+5) { opacity: 1; transform: none; transition-delay: 0.47s; }

/* 下層ページ: bodyごとフェードイン */
body.yui-is-subpage {
  animation: yuiSubpageFade 3s var(--yui-ease) both;
}
@keyframes yuiSubpageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   404
   ============================================================ */
.error404 .sidebar{
    display: none;
}
.page-404{
    top:50%;
    position: absolute;
    left: 50%;
    color: var(--yui-sub) !important;
    transform: translateX(-50%);
}
.error404 footer{
    display: none;
}