/* =========================================================
   SHOMIKAのしくみ（見本 shomika-mechanism-section-concept に合わせた版）
   ========================================================= */
#system { overflow: hidden; }
#system::before, #system::after { content: ""; position: absolute; pointer-events: none; background: url(../img/generated/ink-wash.webp) center / contain no-repeat; opacity: .28; }
#system::before { left: -8%; bottom: -4%; width: 42%; aspect-ratio: 792 / 344; transform: scaleX(-1); }
#system::after { right: -6%; top: 2%; width: 34%; aspect-ratio: 792 / 344; transform: rotate(180deg); opacity: .22; }
#system .container { position: relative; z-index: 1; }
.rule-head .sub { display: block; }

.hub2 { position: relative; display: grid; gap: 26px; }
@media (min-width: 1080px) { .hub2 { grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: stretch; } }
.hub2-vert { position: absolute; left: -54px; top: 38%; font-family: var(--en); font-weight: 500; font-size: 13px; line-height: 2.2; letter-spacing: .32em; color: rgba(74, 116, 70, .45); display: none; }
@media (min-width: 1360px) { .hub2-vert { display: block; } }

/* 図 */
.hub2-map { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; grid-template-rows: auto auto; gap: 34px 0; align-items: center; }
.hub2-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hub2-lines path { fill: none; stroke: var(--green); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.6s var(--ease) .5s; }
.hub2.is-in .hub2-lines path { stroke-dashoffset: 0; }
.hub-card { position: relative; margin-top: 54px; padding: 64px 16px 22px; text-align: center; background: rgba(251, 249, 244, .92); border: 1px solid rgba(28, 31, 27, .08); border-radius: 16px; box-shadow: 0 14px 30px -22px rgba(28, 31, 27, .45); transition: transform .4s var(--ease), box-shadow .4s; }
.hub-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -24px rgba(28, 31, 27, .5); }
.hub-card.n1 { grid-column: 1; grid-row: 1; } .hub-card.n2 { grid-column: 3; grid-row: 1; }
.hub-card.n3 { grid-column: 1; grid-row: 2; } .hub-card.n4 { grid-column: 3; grid-row: 2; }
.hub-card .hub-ic { position: absolute; left: 50%; top: -54px; transform: translateX(-50%); display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  background: radial-gradient(circle, #e8ede0 0 56%, var(--paper) 57%); border: 1.5px solid #c9b88f; box-shadow: 0 10px 22px -14px rgba(28, 31, 27, .45); }
.hub-card .hub-ic svg { width: 44px; height: 44px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hub-card h3 { font-family: var(--serif); font-weight: 800; font-size: clamp(16px, 1.5vw, 20px); letter-spacing: .06em; color: var(--sumi); line-height: 1.45; }
.hub-card p { margin-top: 8px; font-family: var(--serif); font-size: 13px; line-height: 1.8; color: var(--muted); }
.hub-pin { position: absolute; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(46, 77, 56, .15); }
.n1 .hub-pin, .n3 .hub-pin { right: -5px; } .n2 .hub-pin, .n4 .hub-pin { left: -5px; }

/* 中央 */
.hub2-core { grid-column: 2; grid-row: 1 / span 2; position: relative; justify-self: center; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; }
.hub2-ink { position: absolute; inset: -6%; background: url(../img/generated/ink-ring.webp) center / contain no-repeat; opacity: .5; animation: spin 90s linear infinite; }
.hub2-disc { position: relative; display: grid; place-items: center; align-content: center; gap: 10px; width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--paper);
  box-shadow: 0 0 0 7px rgba(251, 249, 244, .9), 0 0 0 8.5px #c9b88f, 0 0 0 16px rgba(74, 116, 70, .12), 0 0 0 17.5px rgba(46, 77, 56, .5), 0 26px 50px -24px rgba(28, 31, 27, .5); }
.hub2-disc img { width: 70%; }
.hub2-disc i { width: 34px; height: 1px; background: #c9b88f; }
.hub2-disc span { font-family: var(--serif); font-weight: 700; font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .14em; color: var(--sumi); }

/* 生まれるもの */
.hub2-out { position: relative; display: grid; align-content: center; gap: 14px; padding: 30px 26px; color: #fff; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(123, 163, 90, .25), transparent 60%), linear-gradient(160deg, #2f4d39, #1f3528); box-shadow: 0 0 0 1px rgba(201, 184, 143, .5) inset, 0 24px 50px -28px rgba(28, 31, 27, .7); }
.hub2-out::after { content: ""; position: absolute; inset: 0; background: url(../img/generated/ink-wash.webp) right bottom / 100% no-repeat; filter: invert(1); opacity: .12; pointer-events: none; }
.hub2-out h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: .16em; padding-bottom: 14px; border-bottom: 1px solid rgba(201, 184, 143, .5); }
.hub2-out > p { font-family: var(--serif); font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .85); }
.hub2-out ul { display: grid; gap: 10px; margin-top: 4px; position: relative; z-index: 1; }
.hub2-out li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; background: rgba(255, 255, 255, .05);
  font-family: var(--serif); font-weight: 700; font-size: 15.5px; letter-spacing: .12em; transition: background .3s, transform .3s var(--ease); }
.hub2-out li:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.hub2-out li svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hub2-out li b { font-weight: 400; font-size: 20px; color: rgba(255, 255, 255, .7); }
.hub2-out-en { margin-top: 6px; padding-top: 14px; text-align: center; font-family: var(--en) !important; font-size: 11px !important; letter-spacing: .3em; color: rgba(255, 255, 255, .7) !important; position: relative; }
.hub2-out-en::before { content: ""; position: absolute; left: 50%; top: 0; width: 36px; height: 1px; background: #c9b88f; transform: translateX(-50%); }
.hub2-tag { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; font-family: var(--serif); font-size: 15px; line-height: 1.9; letter-spacing: .14em; color: var(--sumi); }
.hub2-tag::after { content: ""; width: 150px; height: 1px; background: var(--line); }

/* 出現 */
.js .hub2 .hub-card, .js .hub2 .hub2-core, .js .hub2 .hub2-out { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s cubic-bezier(.25, 1.25, .4, 1); }
.js .hub2.is-in .hub-card, .js .hub2.is-in .hub2-core, .js .hub2.is-in .hub2-out { opacity: 1; transform: none; }
.hub2.is-in .hub2-core { transition-delay: 0s; } .hub2.is-in .n1 { transition-delay: .15s; } .hub2.is-in .n2 { transition-delay: .25s; }
.hub2.is-in .n3 { transition-delay: .35s; } .hub2.is-in .n4 { transition-delay: .45s; } .hub2.is-in .hub2-out { transition-delay: .6s; }

/* スマホ・タブレット */
@media (max-width: 760px) {
  .hub2-map { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .hub2-lines { display: none; }
  .hub2-core { grid-column: 1 / -1; grid-row: 1; width: min(78%, 300px); margin-bottom: 30px; }
  .hub-card { margin-top: 44px; padding: 50px 10px 16px; }
  .hub-card.n1 { grid-column: 1; grid-row: 2; } .hub-card.n2 { grid-column: 2; grid-row: 2; }
  .hub-card.n3 { grid-column: 1; grid-row: 3; } .hub-card.n4 { grid-column: 2; grid-row: 3; }
  .hub-card .hub-ic { width: 84px; height: 84px; top: -42px; }
  .hub-card .hub-ic svg { width: 34px; height: 34px; }
  .hub-card h3 { font-size: 15px; }
  .hub-card p { font-size: 12px; }
  .hub-card p br { display: none; }
  .hub-pin { display: none; }
  .hub2-tag::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hub2-ink { animation: none; } }

.rule-sub { display: block; margin-top: 8px; font-family: var(--serif); font-weight: 500; font-size: 13px; letter-spacing: .3em; color: var(--muted); }

.hub-card p, .hub-card h3 { word-break: auto-phrase; text-wrap: balance; }
@media (max-width: 760px) { .hub2-map { align-items: stretch; } .hub-card { display: flex; flex-direction: column; justify-content: flex-start; } }
