/* =========================================================
   図：SHOMIKAのしくみ（ハブ）
   ========================================================= */
.hub-wrap { display: grid; gap: 22px; }
@media (min-width: 1000px) { .hub-wrap { grid-template-columns: 1fr 240px; align-items: center; gap: 36px; } }
.hub { position: relative; aspect-ratio: 3 / 2; width: 100%; max-width: 760px; margin: 0 auto; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines path { fill: none; stroke: var(--leaf); stroke-width: 2; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; animation: dash 6s linear infinite; }
.hub-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; width: 30%; text-align: center;
  font-family: var(--serif); font-weight: 700; font-size: clamp(13px, 1.4vw, 16px); line-height: 1.45; color: var(--sumi); }
.hub-ic { display: grid; place-items: center; width: clamp(58px, 7vw, 78px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-s); transition: transform .35s var(--ease), background .3s; }
.hub-ic svg { width: 46%; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hub-node:hover .hub-ic { transform: scale(1.08); background: var(--green-bg); }
.hub-node.n1 { left: 16%; top: 17%; } .hub-node.n2 { left: 84%; top: 17%; } .hub-node.n3 { left: 16%; top: 83%; } .hub-node.n4 { left: 84%; top: 83%; }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; align-content: center; gap: 6px;
  width: clamp(130px, 22vw, 190px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 2px solid var(--green-2);
  box-shadow: 0 0 0 10px rgba(123, 163, 90, .15), var(--shadow); }
.hub-core::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(74, 116, 70, .45); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub-core img { width: 62%; }
.hub-core span { font-family: var(--serif); font-weight: 700; font-size: clamp(11px, 1.1vw, 13px); letter-spacing: .1em; color: var(--green); }
.js .hub .hub-node, .js .hub .hub-core { opacity: 0; transition: opacity .6s var(--ease), transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.js .hub .hub-node { transform: translate(-50%, -30%) scale(.8); }
.js .hub.is-in .hub-node { opacity: 1; transform: translate(-50%, -50%); }
.js .hub.is-in .hub-core { opacity: 1; }
.hub.is-in .n1 { transition-delay: .25s; } .hub.is-in .n2 { transition-delay: .35s; } .hub.is-in .n3 { transition-delay: .45s; } .hub.is-in .n4 { transition-delay: .55s; }
.hub-out { position: relative; padding: 22px; background: var(--green); color: #fff; border-radius: var(--radius); }
.hub-out::before { content: ""; position: absolute; left: -12px; top: 50%; border: 12px solid transparent; border-right-color: var(--green); border-left: 0; transform: translateY(-50%); }
@media (max-width: 999px) { .hub-out::before { left: 50%; top: -12px; border: 12px solid transparent; border-bottom-color: var(--green); border-top: 0; transform: translateX(-50%); } }
.hub-out-label { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .14em; margin-bottom: 12px; color: var(--green-l); }
.hub-out ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 1000px) { .hub-out ul { grid-template-columns: 1fr; } }
.hub-out li { padding: 10px 12px; font-size: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; text-align: center; }
@media (max-width: 600px) {
  .hub { aspect-ratio: 1 / 1.05; }
  .hub-node { width: 40%; }
  .hub-node.n1, .hub-node.n3 { left: 20%; } .hub-node.n2, .hub-node.n4 { left: 80%; }
  .hub-node.n1, .hub-node.n2 { top: 14%; } .hub-node.n3, .hub-node.n4 { top: 86%; }
}

/* =========================================================
   図：価値創出モデル（回る円）
   ========================================================= */
.model-wrap { display: grid; gap: 30px; align-items: center; }
@media (min-width: 1000px) { .model-wrap { grid-template-columns: 1fr 1fr; gap: 60px; } }
.cycle { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin: 0 auto; }
.cy-ring { position: absolute; inset: 8%; border-radius: 50%; border: 1.5px solid rgba(74, 116, 70, .35);
  background: conic-gradient(from 0deg, rgba(123, 163, 90, .35), rgba(123, 163, 90, 0) 16%, rgba(123, 163, 90, 0));
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%); mask: radial-gradient(circle, transparent 62%, #000 63%);
  animation: spin 7s linear infinite; }
.cy-dot { display: none; }
.cycle ol { position: absolute; inset: 0; }
.cy-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; align-content: center; gap: 2px;
  width: clamp(66px, 17%, 94px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-s); text-align: center;
  animation: cyon 7s infinite both; animation-delay: calc(var(--k) * 1s); }
.cy-node b { font-family: var(--en); font-weight: 600; font-size: 16px; line-height: 1; color: var(--green-2); }
.cy-node span { font-family: var(--serif); font-weight: 700; font-size: clamp(10.5px, 1.2vw, 13px); line-height: 1.35; }
@keyframes cyon {
  0%, 12% { background: var(--green); color: #fff; border-color: var(--green); transform: translate(-50%, -50%) scale(1.1); }
  18%, 100% { background: var(--paper); color: var(--text); border-color: var(--line); transform: translate(-50%, -50%) scale(1); }
}
.cy-core { position: absolute; inset: 29%; display: grid; place-items: center; align-content: center; text-align: center; gap: 6px; border-radius: 50%; background: var(--green-bg); }
.cy-core .eyebrow::before { display: none; }
.cy-core-t { font-family: var(--serif); font-weight: 800; font-size: clamp(15px, 2.1vw, 23px); line-height: 1.5; letter-spacing: .06em; color: var(--green); }

/* =========================================================
   図：年表・地域グラフ
   ========================================================= */
.works-overview { display: grid; gap: 22px; margin-top: 10px; }
@media (min-width: 1000px) { .works-overview { grid-template-columns: 1.7fr 1fr; align-items: stretch; } }
.tl { position: relative; padding: 30px 7% 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.tl-axis { position: relative; height: 4px; border-radius: 2px; background: var(--washi-2); }
.tl-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--leaf), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform 2s var(--ease) .2s; }
.tl.is-in .tl-fill { transform: scaleX(1); }
.tl-months { display: flex; justify-content: space-between; margin: 10px -3% 0; font-family: var(--en); font-weight: 600; font-size: 13px; color: var(--muted); }
.tl-evs { position: relative; height: 120px; margin-top: 14px; }
.tl-ev { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; width: 128px; text-align: center; text-decoration: none; opacity: 0; transition: opacity .5s; transition-delay: calc(var(--k) * .3s + .5s); }
.tl-ev:nth-child(even) { top: 56px; }
.tl.is-in .tl-ev { opacity: 1; }
.tl-ev::before { content: ""; position: absolute; top: -73px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green-2); }
.tl-ev:nth-child(even)::before { top: -129px; }
.tl-ev b { font-family: var(--serif); font-size: 14px; line-height: 1.4; color: var(--sumi); }
.tl-ev small { font-size: 11.5px; color: #fff; background: var(--green-2); padding: 0 8px; border-radius: 999px; }
.tl-ev:hover b { color: var(--green-2); text-decoration: underline; }
@media (max-width: 700px) {
  .tl { padding: 20px 18px 20px 50px; }
  .tl-axis { position: absolute; left: 26px; top: 26px; bottom: 26px; width: 4px; height: auto; }
  .tl-fill { transform: scaleY(0); transform-origin: top; }
  .tl.is-in .tl-fill { transform: scaleY(1); }
  .tl-months { display: none; }
  .tl-evs { height: auto; display: grid; gap: 16px; margin: 0; }
  .tl-ev, .tl-ev:nth-child(even) { position: relative; left: 0; top: 0; transform: none; width: auto; justify-items: start; text-align: left; }
  .tl-ev::before, .tl-ev:nth-child(even)::before { top: 4px; left: -31px; }
}
.rbars { display: grid; align-content: center; gap: 14px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.rbars-title { font-family: var(--serif); font-weight: 700; font-size: 15px; letter-spacing: .1em; }
.rbars li:not(.rbars-title) { display: grid; grid-template-columns: 58px 1fr 40px; align-items: center; gap: 2px 12px; }
.rb-l { font-family: var(--serif); font-weight: 700; font-size: 14px; }
.rb-bar { height: 14px; border-radius: 7px; background: var(--washi-2); overflow: hidden; }
.rb-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--leaf), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.rbars.is-in .rb-bar i { transform: scaleX(1); }
.rbars b { font-family: var(--en); font-size: 18px; color: var(--green); text-align: right; }
.rbars small { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }

/* 事業の要点チップ（文章の代わり） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 7px 14px; font-size: 13.5px; line-height: 1.5; background: var(--paper); border: 1px solid rgba(74, 116, 70, .3); border-radius: 999px; }
.chips li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--leaf); vertical-align: 1px; }

@media (prefers-reduced-motion: reduce) {
  .cy-ring, .hub-core::before, .hub-lines path { animation: none; }
  .cy-node { animation-duration: 14s; }
}

/* =========================================================
   作品②：半透明の動画を背景にしたヒーロー（コンパクト版）
   ========================================================= */
.v2 .hero2 { position: relative; min-height: min(88svh, 820px); display: grid; place-items: center; overflow: hidden; background: var(--washi); text-align: center; }
.v2 .hero2-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.85) contrast(1.05); }
.v2 .hero2::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(245, 242, 234, .82), rgba(245, 242, 234, .45) 70%, rgba(245, 242, 234, .2)),
              linear-gradient(180deg, rgba(245, 242, 234, .5), transparent 25%, transparent 75%, var(--washi)); }
.v2 .hero2-inner { position: relative; z-index: 2; padding: 60px var(--gutter); }
.v2 .hero2 .hero-title { font-size: clamp(38px, 6.4vw, 88px); }
.v2 .hero2 .hero-lead { margin-left: auto; margin-right: auto; }
.v2 .hero2 .hero-btns { justify-content: center; }
.v2 .hero2-seal { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px; writing-mode: vertical-rl; font-family: var(--serif); font-weight: 800; font-size: 14px; line-height: 1.05; color: #fff; background: var(--shu); border-radius: 6px; transform: rotate(-6deg); }
.v2 .hero2-cap { position: absolute; left: var(--gutter); bottom: 22px; z-index: 2; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.v2 .hero2-cap b { font-family: var(--en); color: var(--green-2); margin-right: 8px; }
.v2 .sec { padding: clamp(44px, 5vw, 72px) 0; }
.v2 .sec.tight { padding-top: 0; }
.v2 .v2-grid { display: grid; gap: 28px; }
@media (min-width: 1000px) { .v2 .v2-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 700px) { .v2 .hero2 { min-height: 78svh; } .v2 .hero2-video { opacity: .45; } }

.v2 .v2-grid { grid-template-columns: 1fr !important; gap: clamp(36px,4vw,56px); }
.hub-node span:last-child { text-shadow: 0 0 6px var(--washi), 0 0 12px var(--washi); }

/* 修正：円の図は常に1つだけ光る */
.cy-node { animation: cyon 7s infinite; animation-delay: calc(var(--k) * 1s - 7s); animation-fill-mode: none; }
/* 年表の文字 */
.tl { padding-left: 9%; padding-right: 9%; }
.tl-ev b { white-space: nowrap; font-size: 13.5px; }
.tl-months { margin: 10px 0 0; }
.tl-months span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
/* 図のラベルは線の上に背景を敷く */
.hub-node > span:last-child { background: var(--washi); padding: 2px 6px; border-radius: 4px; }

.tl-ev em { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.3; }
.tl-evs { height: 150px; }
.tl-ev:nth-child(even) { top: 70px; }

.tl { --dot-top: -58px; }
.tl-ev::before { top: -58px; }
.tl-ev:nth-child(even)::before { top: -128px; }

/* 年表・地域グラフ：作品①②共通の最終レイアウト */
.works-overview { align-items: stretch; margin-top: 0; }
.works-overview > * { display: flex; }
.works-overview .tl, .works-overview .rbars { flex: 1; }
.tl { display: flex; flex-direction: column; justify-content: center; padding: 24px 13%; --dot-top: -74px; }
.tl-months { margin: 14px 0 0; font-size: 16px; }
.tl-months span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.tl-evs { height: 214px; margin-top: 18px; }
.tl-ev { width: 170px; gap: 8px; }
.tl-ev:nth-child(even) { top: 142px; }
.tl-ev b { font-size: 19px; letter-spacing: .06em; white-space: nowrap; }
.tl-ev em { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.3; margin-top: -4px; }
.tl-ev small { font-size: 13.5px; padding: 2px 12px; }
.tl-ev::before { width: 18px; height: 18px; top: var(--dot-top); }
.tl-ev:nth-child(even)::before { top: calc(var(--dot-top) - 142px); }
.rbars { gap: 10px; padding: 20px 22px; }
.rbars-title { font-size: 17px !important; }
.rbars li:not(.rbars-title) { grid-template-columns: 66px 1fr 48px; gap: 0 12px; }
.rb-l { font-size: 16px; }
.rb-bar { height: 16px; }
.rbars b { font-size: 20px; }
.rbars small { font-size: 13px; margin-top: 2px; }
@media (max-width: 700px) {
  .tl { padding: 22px 18px 22px 50px; }
  .tl-evs { height: auto; margin: 0; }
  .tl-ev, .tl-ev:nth-child(even) { top: 0; }
  .tl-ev::before, .tl-ev:nth-child(even)::before { top: 6px; }
  .tl-ev b { font-size: 16px; }
}
