/* トップのコンセプト＝6番「回る写真の輪」（2026-10-12 社長「コンセプトはこれで OK・本番に組み込んで」）。見比べ用の concept-lab/c6.html から移した。
   左：一期生4人の一枚絵を少し傾いた大きな輪に並べてゆっくり回す（1人4枚＝16枚・どの絵が出るかは候補から毎回ランダム＝concept.js・art.js）。
   奥は写真の裏（金箔押しのロゴと金の縁）が見える。つまんで回せる・奥の絵を押すと手前へ・手前を押すと大きく。
   右：社長のコンセプトの文（文字の組み方は案5。「魔法」「一兆」は金の字）。
   色の名前はこの欄の中だけで決める（見比べ用のページと同じ値・サイトの色と同じ）。回るのは CSS の動き */
.section.concept.cx6 {
  --ink: #5a4a7a; --ink-strong: #3f3260; --ink-soft: #6b5c8f; --ink-mute: #8b80a6;
  --gold: #cdb98a; --gold-ink: #a8894f; --gold-deep: #8a6a33; --em: #a8487a; --paper: #fcfaf4; --bg: var(--scene-bg, #fff); --bg-2: #f6f1fb;
  --acc: #6fa8c6; --kaisei: 'Kaisei Tokumin', var(--mincho); --ease: cubic-bezier(.16, 1, .3, 1);
  --cx-h: clamp(600px, calc(100svh - var(--hdr, 80px)), 880px); --tx-left: 61%;
  position: relative; height: var(--cx-h); padding: 0; overflow: hidden; color: var(--ink);
}
body[data-scene="night"] .section.concept.cx6 {
  --ink: #ece6f7; --ink-strong: #fbf8ff; --ink-soft: #d6cbee; --ink-mute: #a99fc7;
  --gold: #e3cf9c; --gold-ink: #e8d3a2; --gold-deep: #f1dcaa; --em: #f2b6d2; --paper: #2a2450; --bg-2: #252045;
}
.is-top .section.concept.cx6 { padding-top: 0; }
.cx6 p { margin: 0; }
.cx6 ruby rt { font: 500 .3em/1 var(--jost); letter-spacing: .4em; color: var(--gold-ink); }

/* 輪 */
.cx6-stage { position: absolute; left: 0; top: 0; bottom: 0; width: 66%; perspective: 1500px; perspective-origin: 46% 30%; touch-action: pan-y; cursor: grab; overflow: hidden;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }   /* つかんで回す時に絵や文字が青く選択されないように（2026-10-12 社長） */
.cx6-stage img { -webkit-user-drag: none; user-drag: none; }
.cx6-stage.drag { cursor: grabbing; }
.cx6-ring { position: absolute; left: 46%; top: 45%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-6deg) rotateZ(-6deg); }
.cx6-drag { position: absolute; transform-style: preserve-3d; transform: rotateY(var(--drag, 0deg)); transition: transform var(--dragT, 0s) cubic-bezier(.16, 1, .3, 1); }
.cx6-spin { position: absolute; transform-style: preserve-3d; animation: cx6-spin 68s linear infinite; }
@keyframes cx6-spin { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
.cx6-stage.drag .cx6-spin { animation-play-state: paused; }   /* マウスを乗せただけでは止めない・つかんでいる間だけ止まる（2026-10-12 社長） */
.cx6-floor { position: absolute; left: 6%; right: 10%; bottom: 7%; height: 22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); transition: background 1s; }
.cx6-card { position: absolute; left: calc(var(--cw) / -2); top: calc(var(--cw) * -.625); width: var(--cw); height: calc(var(--cw) * 1.25); transform-style: preserve-3d; }
.cx6-card .f, .cx6-card .b { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.cx6-card .f { border: 6px solid #fff; background: var(--paper); box-shadow: 0 18px 34px rgba(60, 40, 100, .22); }
.cx6-card .f img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cx6-card .f b { position: absolute; z-index: 2; left: 10px; bottom: 8px; font: italic 600 15px/1 var(--serif); color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
body[data-scene="night"] .cx6-card .f, body[data-scene="night"] .cx6-card .b { border-color: #f4eefc; }
/* 背景のない絵：デザイナーさんの「その人の色の光る柱」と、パステルの庭の背景の上に（背景が一色の絵も抜いてここへ） */
.cx6-card .f.cut { background: url("card-bg.webp") center / cover; }
.cx6-card .f.cut::before { content: ''; position: absolute; left: 50%; top: -8%; width: 58%; height: 116%; transform: translateX(-50%); background: var(--bar) center / 100% 100% no-repeat; opacity: .92; }
.cx6-card .f.cut::after { content: ''; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, rgba(255, 255, 255, .55), transparent); pointer-events: none; }
.cx6-card .f.cut img { position: relative; z-index: 1; object-fit: contain; object-position: 50% 100%; transform: scale(1.04); transform-origin: 50% 100%; }
.cx6-card .f.cut:not(.cov) b { bottom: auto; top: 12px; }
.cx6-card .f.cut.cov img { object-fit: cover; transform: none; }
body[data-scene="night"] .cx6-card .f.cut { background-image: linear-gradient(rgba(30, 24, 70, .62), rgba(30, 24, 70, .62)), url("card-bg.webp"); }
body[data-scene="night"] .cx6-card .f.cut::before { background-image: var(--barn); }
body[data-scene="night"] .cx6-card .f.cut::after { background: linear-gradient(0deg, rgba(30, 24, 70, .55), transparent); }
/* 横長の絵：切らずに台紙に貼る（写真の白い縁と影） */
.cx6-card .f.mat { background: #fbf6ea; display: grid; place-items: center; }
.cx6-card .f.mat::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(176, 138, 69, .45); pointer-events: none; }
.cx6-card .f.mat img { position: relative; width: calc(100% - 22px); height: auto; aspect-ratio: var(--ar); object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 14px -6px rgba(60, 40, 90, .45); }
.cx6-card .f.mat b { color: #6b5432; text-shadow: none; left: 0; right: 0; bottom: 14px; text-align: center; }
body[data-scene="night"] .cx6-card .f.mat { background: #2c2652; }
body[data-scene="night"] .cx6-card .f.mat b { color: #e8d3a2; }
/* 写真の裏：金箔押しのロゴ・金の二重の縁・ひし形の格子・金の粒（夜は藍に金） */
.cx6-card .b { transform: rotateY(180deg); border: 6px solid #fff;
  background: radial-gradient(120% 85% at 50% 42%, #fffbf2 0%, #f6edd9 62%, #ead9b8 100%);
  box-shadow: inset 0 0 0 7px #fffaf0, inset 0 0 0 8px #c9a75f, inset 0 0 0 11px #fffaf0, inset 0 0 0 12px rgba(201, 167, 95, .55), 0 18px 34px rgba(60, 40, 100, .18); }
.cx6-card .b::before { content: ''; position: absolute; inset: 12px; pointer-events: none;
  background: url("../washi-gold.webp") center / 220% auto, repeating-linear-gradient(45deg, rgba(176, 138, 69, .16) 0 1px, transparent 1px 15px), repeating-linear-gradient(-45deg, rgba(176, 138, 69, .16) 0 1px, transparent 1px 15px);
  background-blend-mode: multiply, normal, normal; opacity: .55; }
.cx6-card .b .lg { position: absolute; left: 9%; right: 9%; top: 50%; height: 40%; transform: translateY(-50%);
  -webkit-mask: url("logo-mask.webp") center / contain no-repeat; mask: url("logo-mask.webp") center / contain no-repeat;
  background: linear-gradient(128deg, #6e4f1c 0%, #c89f52 24%, #f6dfa0 38%, #a87c36 52%, #e8c87e 68%, #7a5a22 100%); }
.cx6-card .b .lgs { position: absolute; left: 9%; right: 9%; top: 50%; height: 40%; transform: translate(.6px, calc(-50% + 1px)); opacity: .5;
  -webkit-mask: url("logo-mask.webp") center / contain no-repeat; mask: url("logo-mask.webp") center / contain no-repeat; background: #6a4c1c; }
.cx6-card .b i { position: absolute; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); background: linear-gradient(135deg, #f6e1a6, #b48b45); box-shadow: 0 0 0 2px #fffaf0, 0 0 0 3px rgba(201, 167, 95, .7); }
.cx6-card .b i:nth-of-type(1) { top: 22px; } .cx6-card .b i:nth-of-type(2) { bottom: 22px; }
body[data-scene="night"] .cx6-card .b { background: radial-gradient(120% 85% at 50% 42%, #3a3168 0%, #262049 62%, #1b1736 100%);
  box-shadow: inset 0 0 0 7px #241e46, inset 0 0 0 8px #d9bc78, inset 0 0 0 11px #241e46, inset 0 0 0 12px rgba(217, 188, 120, .5), 0 18px 34px rgba(6, 4, 20, .4); }
body[data-scene="night"] .cx6-card .b::before { background: radial-gradient(1.6px 1.6px at 18% 24%, #e9cf8e 50%, transparent 52%), radial-gradient(1.2px 1.2px at 74% 16%, #e9cf8e 50%, transparent 52%), radial-gradient(1.4px 1.4px at 82% 71%, #e9cf8e 50%, transparent 52%), radial-gradient(1px 1px at 27% 83%, #e9cf8e 50%, transparent 52%), radial-gradient(1.2px 1.2px at 58% 88%, #e9cf8e 50%, transparent 52%),
  repeating-linear-gradient(45deg, rgba(217, 188, 120, .2) 0 1px, transparent 1px 15px), repeating-linear-gradient(-45deg, rgba(217, 188, 120, .2) 0 1px, transparent 1px 15px); background-blend-mode: normal; opacity: .8; }
body[data-scene="night"] .cx6-card .b i { box-shadow: 0 0 0 2px #241e46, 0 0 0 3px rgba(217, 188, 120, .7); }
.cx6-who { position: absolute; z-index: 5; left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.6vw, 30px); display: flex; align-items: center; gap: 8px; font: italic 600 20px/1 var(--serif); color: var(--ink-strong); pointer-events: none; }
.cx6-who i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--acc); transition: background .8s; }

/* 文（案5の組み方） */
.cx6 .tx { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--tx-left); right: clamp(20px, 4.6vw, 80px); display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 24px clamp(16px, 2vw, 32px); pointer-events: none; }
.cx6 .tx > * { pointer-events: auto; }
.cx6 .tx-paper { position: absolute; z-index: 2; top: 0; bottom: 0; right: 0; left: calc(var(--tx-left) - 6vw); pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bg) 88%, transparent) 6vw, var(--bg) 14vw);
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 26%); mask: linear-gradient(180deg, transparent 0, #000 26%); }   /* 上の端は霧に溶かす（3Dが溶ける間に重なって上がってくるので、角のある白い四角に見えないように） */
.cx6 .cx-kick { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; font-weight: 400; }
.cx6 .cx-kick .en { font: italic 500 18px/1 var(--serif); letter-spacing: .08em; color: var(--gold-ink); }
.cx6 .cx-kick .jp { font: 500 11px/1 var(--jost); letter-spacing: .32em; color: var(--ink-mute); }
.cx6 .cx-kick::after { content: ''; flex: 0 0 64px; height: 1px; align-self: center; background: var(--gold); }
.cx6 .x1 { margin-bottom: .45em; color: var(--ink-strong); }
.cx6 .x1 .a { display: block; font: 500 clamp(20px, min(2vw, 3.5vh), 32px)/1.3 var(--kaisei); letter-spacing: .1em; color: var(--ink-soft); }
.cx6 .x1 .a .dash { color: var(--gold); letter-spacing: -.1em; margin-right: .1em; }
.cx6 .x1 .b { display: block; font: 800 clamp(38px, min(4.9vw, 8.6vh), 80px)/1.15 var(--kaisei); letter-spacing: -.01em; white-space: nowrap; }
.cx6 .foil { background: linear-gradient(115deg, #7a5a22 0%, #c9a45e 30%, #ecd394 46%, #a57b38 64%, #7a5a22 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx6 .x2 { font: 700 clamp(16px, min(1.5vw, 2.7vh), 22px)/1.8 var(--mincho); color: var(--ink-strong); margin-bottom: .85em; }
.cx6 .x2 .acc { color: var(--acc); transition: color .8s; }
.cx6 .x2 .l2 { color: var(--ink-soft); }
.cx6 .x3, .cx6 .x5, .cx6 .x8 { font: 500 clamp(14px, min(1.18vw, 2.15vh), 17px)/1.95 var(--mincho); }
.cx6 .x3 { margin-bottom: .75em; }
.cx6 .x3 .brand { font: 600 1.15em/1 var(--serif); letter-spacing: .28em; color: var(--gold-ink); margin-right: .1em; }
.cx6 .x4 { align-self: flex-start; font: 700 clamp(15px, min(1.35vw, 2.45vh), 20px)/1.7 var(--kaisei); color: var(--ink-soft); padding: .6em 1em; border: 3px double var(--gold);
  margin-bottom: .85em; background: color-mix(in srgb, var(--paper) 55%, transparent); }
.cx6 .x5 { margin-bottom: .7em; }
.cx6 .x5 .chip { display: inline-block; font: 800 1.3em/1.2 var(--kaisei); color: #fff; background: var(--em); padding: .06em .32em .1em; margin: 0 .08em; transform: skewX(-8deg); letter-spacing: .06em; }
body[data-scene="night"] .cx6 .x5 .chip { color: #2a2148; }
.cx6 .x6 { font: 500 clamp(13px, min(1.05vw, 1.95vh), 15px)/1.8 var(--maru, 'Zen Maru Gothic', sans-serif); color: var(--ink-mute); letter-spacing: .14em; margin-bottom: .55em; }
.cx6 .x7 { font: 700 clamp(16px, min(1.5vw, 2.7vh), 23px)/1.5 var(--kaisei); color: var(--gold-deep); letter-spacing: .03em; margin-bottom: .4em; white-space: nowrap; }
.cx6 .x8 .trillion { font: 800 3.1em/1.05 var(--kaisei); }
.cx6 .x8 .trillion rt { -webkit-text-fill-color: var(--gold-ink); -webkit-text-stroke: 0; font-family: var(--jost); font-size: max(11px, .19em); letter-spacing: .5em; }
/* 出てくる動き（見えた時に下から・知らせが来ない時も concept.js が数秒後に出す） */
.js .cx6 .rv { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .cx6 .rv.in { opacity: 1; transform: none; }

/* 押して大きく */
.cx6-lb { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 64px 16px 24px; background: rgba(18, 14, 36, .86); opacity: 0; pointer-events: none; transition: opacity .35s; }
.cx6-lb.on { opacity: 1; pointer-events: auto; }
.cx6-lb figure { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; max-width: 100%; }
.cx6-lb img { max-width: min(92vw, 1400px); max-height: calc(100svh - 176px); object-fit: contain; border: 6px solid #fff; border-radius: 4px; background: url("card-bg.webp") center / cover; }
.cx6-lb b { position: absolute; top: 18px; left: 20px; font: italic 600 22px/1 var(--serif); color: #fff; }
.cx6-lb button { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); background: none; color: #fff; font: 400 20px/1 var(--jost); cursor: pointer; }

@media (max-width: 760px) {
  .section.concept.cx6 { height: auto; }
  .cx6-stage { position: relative; width: 100%; height: clamp(320px, 56svh, 480px); perspective: 1100px; perspective-origin: 50% 40%; }
  .cx6-ring { left: 50%; top: 45%; }
  .cx6 .tx { position: relative; inset: auto; padding: 8px 22px 56px; pointer-events: auto; }
  .cx6 .tx-paper { display: none; }
  .cx6 .x1 .b { font-size: clamp(32px, 10vw, 44px); } .cx6 .x1 .a { font-size: 20px; }
  .cx6 .x2 { font-size: 16px; } .cx6 .x3, .cx6 .x5, .cx6 .x8 { font-size: 14.5px; } .cx6 .x4 { font-size: 15px; } .cx6 .x6 { font-size: 13px; } .cx6 .x7 { font-size: 17px; }
  .cx6-who { bottom: auto; top: calc(clamp(320px, 56svh, 480px) - 40px); }
}
@media (prefers-reduced-motion: reduce) { .cx6-spin { animation-duration: 400s; } .js .cx6 .rv { opacity: 1; transform: none; transition: none; } }

/* 大きく出した絵の右下の「〇〇の紹介へ」（2026-10-14） */
.cx6-go { display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 0 20px; border-radius: 100px; background: #fff; color: #3a2f5c; text-decoration: none;
  font: 700 14px/1 'Shippori Mincho B1', serif; letter-spacing: .06em; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s, background .2s; }
.cx6-go:hover, .cx6-go:focus-visible { background: #f4eefb; transform: translateY(-1px); }
.cx6-go i { font-style: normal; margin-left: .55em; transition: transform .2s; } .cx6-go:hover i { transform: translateX(3px); }
@media (max-width: 760px) { .cx6-lb figure { align-items: stretch; } .cx6-go { justify-content: center; } }
