Build a full-width CMS canvas and restore featured home products

This commit is contained in:
2026-11-21 21:33:15 +09:00
parent 00d7d6f9ad
commit e7c7a8928e
16 changed files with 590 additions and 122 deletions
+69 -1
View File
@@ -395,7 +395,7 @@ progress { width: 100%; height: .8rem; accent-color: var(--accent); }
.hero-shnu-sc ~ #benefits .rich > ul li + li { margin-top: .35rem; }
.hero-shnu-sc ~ #benefits .rich > ul li::marker { color: var(--accent); }
.hero-shnu-sc ~ #benefits .rich > img {
width: 100%;
width: var(--studio-media-width, 100%);
max-width: 100%;
border-radius: var(--radius);
box-shadow: 0 .75rem 2.25rem #101c341a;
@@ -486,3 +486,71 @@ progress { width: 100%; height: .8rem; accent-color: var(--accent); }
color: var(--muted);
font: 400 1rem / 1.5 var(--sans);
}
.home-cursor {
display: inline-block;
width: .52em;
margin-inline-start: .08em;
font-family: var(--mono);
font-size: .7em;
animation: home-cursor-blink 1.1s steps(1, end) 5;
}
@keyframes home-cursor-blink { 50% { opacity: 0; } }
.home-pipe-flow {
position: absolute;
inset: clamp(.45rem, 1.8vw, 1.7rem);
pointer-events: none;
}
.home-pipe-flow span {
position: absolute;
width: clamp(.3rem, .68vw, .63rem);
aspect-ratio: 1;
border-radius: 50%;
background: #e3fbff;
box-shadow: 0 0 .4rem .1rem #78d7ff, 0 0 .8rem .16rem #3882ff;
translate: -50% -50%;
animation: home-pipe-pulse 2.8s linear 2 both;
}
.home-pipe-flow span:nth-child(1) {
--pipe-start: 72% auto auto 27.4%; --pipe-turn: 64% auto auto 38.3%; --pipe-end: 59.1% auto auto 42.1%;
}
.home-pipe-flow span:nth-child(2) {
--pipe-start: 59.2% auto auto 64%; --pipe-turn: 64.2% auto auto 67.1%; --pipe-end: 70% auto auto 78.2%;
animation-delay: .35s;
}
.home-pipe-flow span:nth-child(3) {
--pipe-start: 42% auto auto 18.7%; --pipe-turn: 46.9% auto auto 23.4%; --pipe-end: 51% auto auto 29.8%;
animation-delay: .65s;
}
.home-pipe-flow span:nth-child(4) {
--pipe-start: 37% auto auto 77%; --pipe-turn: 42.5% auto auto 77%; --pipe-end: 47.7% auto auto 68.3%;
animation-delay: .9s;
}
@keyframes home-pipe-pulse {
0%, 16% { inset: var(--pipe-start); opacity: 0; }
21%, 67% { opacity: 1; }
40% { inset: var(--pipe-turn); }
72%, 100% { inset: var(--pipe-end); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
.home-cursor { animation: none; }
.home-pipe-flow { display: none; }
}
.studio-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: center; }
.studio-split > img { width: 100%; }
.studio-banner { padding: clamp(1.25rem, 4vw, 3.25rem); border-radius: var(--radius); background: var(--accent-light); }
@media (max-width: 44rem) { .studio-split { grid-template-columns: 1fr; } }
:where(img, video, audio, .hero-visual)[class*="studio-media-"] { max-width: 100%; }
:is(.rich, .hero-inner, .editor-preview) .studio-media-25 { --studio-media-width: 25%; width: var(--studio-media-width); }
:is(.rich, .hero-inner, .editor-preview) .studio-media-40 { --studio-media-width: 40%; width: var(--studio-media-width); }
:is(.rich, .hero-inner, .editor-preview) .studio-media-50 { --studio-media-width: 50%; width: var(--studio-media-width); }
:is(.rich, .hero-inner, .editor-preview) .studio-media-60 { --studio-media-width: 60%; width: var(--studio-media-width); }
:is(.rich, .hero-inner, .editor-preview) .studio-media-75 { --studio-media-width: 75%; width: var(--studio-media-width); }
:is(.rich, .hero-inner, .editor-preview) .studio-media-85 { --studio-media-width: 85%; width: var(--studio-media-width); }
:is(.rich, .hero-inner, .editor-preview) .studio-media-100 { --studio-media-width: 100%; width: var(--studio-media-width); }
.rich :is(img, video)[class*="studio-media-"] { height: auto; max-width: 100%; }
.hero-visual[class*="studio-media-"] { justify-self: center; }
[data-studio-editing] [data-studio-selected] { outline: 2px solid #4477f9; outline-offset: 3px; }