:root {
  --school-orange: #F58220;
  --line-green: #06C755;
  --ink: #29323a;
  --muted: #5b6268;
  --paper: #fff;
  --gallery-surface: #f2f5f8;
  --orange-ink: #ed7415;
  --orange-display: var(--school-orange);
  --line-ink: #fff;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --font-heading: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  --school-rail-width: 100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fcfdfb; color: var(--ink); font-family: var(--font-body); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.gallery-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--school-rail-width);
  background-color: #fcfdfb;
  background-image:
    radial-gradient(ellipse 480px 360px at -6% 24%, #ffe5c9a6, transparent 75%),
    radial-gradient(ellipse 440px 400px at 101% 72%, #dcefe7b3, transparent 75%),
    radial-gradient(ellipse 360px 260px at 75% 8%, #fff0d280, transparent 78%),
    radial-gradient(#bf997329 1px, transparent 1px);
  background-size: auto, auto, auto, 36px 36px;
}
.gallery-body .collection { width: 100%; min-width: 0; }
.school-rail { padding-top: 12px; }
.school-links { position: fixed; right: 0; bottom: 104px; z-index: 10; width: 88px; border-radius: 22px 0 0 22px; overflow: hidden; border: 1px solid #f5d4af; border-right: 0; box-shadow: -4px 6px 20px #80512614; background: white; }
.school-links.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.school-links .school-link { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 126px; padding: 20px 8px; border-radius: 0; font-size: 12px; font-weight: 700; line-height: 1.65; text-align: center; }
.school-links .school-link-event { background: linear-gradient(150deg,#ff9c39,var(--school-orange)); color: white; }
.school-links .school-link-home { background: white; color: #a64500; min-height: 112px; }
.school-link-icon { width: 24px; height: 24px; flex-shrink: 0; }
.school-link-break { display: block; }
.school-link-arrow { font-size: 18px; line-height: 1; }
.school-links .school-link-event:hover { background: #ed7415; }
.school-links .school-link-home:hover { background: #fff0df; }
.school-links .school-link:focus-visible { outline: 3px solid #255b9a; outline-offset: -5px; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #255b9a; outline-offset: 5px; }
.skip-link { position: fixed; left: 12px; top: -80px; padding: 12px 20px; background: white; z-index: 20; }
.skip-link:focus { top: 12px; }
.header { background: #fff; border-top: 3px solid var(--school-orange); border-bottom: 1px solid #f0ebe3; }
.header-inner { max-width: 1248px; margin: auto; padding: 21px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 17px; flex-shrink: 0; line-height: 1.5; }
.brand img { width: 62px; height: auto; display: block; }
.brand strong { font-weight: 700; font-size: 18px; letter-spacing: .06em; }
.department { display: block; color: var(--orange-ink); font-weight: 700; font-size: 16px; letter-spacing: .07em; margin-top: 2px; }
nav ul { display: flex; list-style: none; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
nav a { display: flex; min-height: 44px; padding: 8px 21px; align-items: center; justify-content: center; border-radius: 99px; font-weight: 700; font-size: 14px; }
nav li:first-child a { background: var(--school-orange); color: #fff; box-shadow: 0 4px 12px #f5822028; }
nav a:hover { background: #fff0dc; }
nav li:first-child a:hover { background: #ed7415; }
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 95% 25%,#e9f6ed 0,transparent 35%),radial-gradient(ellipse at 8% 15%,#fff0df 0,transparent 52%),#fff; }
.hero::before { content: ""; position: absolute; inset: 20px 0 100px 53%; background-image: radial-gradient(#f5822033 1.4px,transparent 1.4px); background-size: 22px 22px; mask-image: radial-gradient(ellipse,#000 25%,transparent 70%); pointer-events: none; }
.hero-typography { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%) rotate(-5deg); width: max-content; font-family: "Arial Black", "Arial", sans-serif; font-weight: 900; font-size: clamp(120px,15.5vw,300px); line-height: .9; letter-spacing: -.065em; white-space: nowrap; color: #f582201a; pointer-events: none; user-select: none; }
.hero-typography span { display: block; }
.hero-typography span:first-child { transform: translateX(-6%); }
.hero-typography span:last-child { padding-left: 12%; font-size: .88em; letter-spacing: -.055em; }
.hero-inner { max-width: 1248px; min-height: 490px; padding: 40px 36px 74px; margin: auto; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); align-items: center; gap: 26px; }
.hero-copy { position: relative; z-index: 2; }
.site-name { font-family: var(--font-heading); font-size: 25px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 24px; line-height: 1.5; }
.site-name span { color: var(--line-green); margin-right: 6px; }
h1 { font-family: var(--font-heading); font-weight: 900; line-height: 1.28; letter-spacing: -.055em; margin: 0 0 28px; }
.headline-line { display: block; white-space: nowrap; }
.headline-key { color: var(--orange-display); font-size: clamp(48px,5.1vw,72px); }
.headline-key-main { font-size: clamp(54px,5.8vw,82px); }
.headline-tail { color: var(--ink); font-size: clamp(25px,2.65vw,38px); font-weight: 800; letter-spacing: -.045em; }
.phrase { display: inline-block; }
.hero-label { display: inline-block; max-width: 100%; background: #fff; border: 1px solid #f5c68e; box-shadow: 0 3px 12px #f582200c; margin: 0; padding: 9px 22px; border-radius: 99px; font-size: 15px; font-weight: 500; letter-spacing: .035em; }
.mobile-break { display: none; }
.hero-art { position: relative; align-self: center; }
.hero-art::before { content: ""; position: absolute; inset: 13% -1% 6% -4%; background: linear-gradient(140deg,#ffe0b7,#ffc986); border: 1px solid #ffc98666; border-radius: 56% 44% 60% 40% / 52% 58% 42% 48%; transform: rotate(-9deg); }
.hero-art img { display: block; width: 100%; max-width: none; height: auto; position: relative; filter: drop-shadow(0 12px 14px #8d633210); animation: hello-allstars .75s ease-out both; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 82px; }
.bubble { --tilt: -12deg; position: absolute; width: 120px; height: 79px; border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 10px; transform: rotate(var(--tilt)); animation: bubble-float 2.4s ease-in-out 2; }
.bubble::after { content: ""; position: absolute; bottom: -9px; right: 24px; width: 22px; height: 23px; background: inherit; clip-path: polygon(0 0,100% 0,100% 100%); }
.bubble i { width: 8px; height: 8px; background: white; border-radius: 50%; }
.hero { --bubble-orange-right: max(4%,calc((100% - 1170px)/2)); }
.bubble-orange { --tilt: 8deg; right: var(--bubble-orange-right); top: 30px; width: 88px; height: 55px; background: var(--school-orange); }
.bubble-orange::after { left: 18px; right: auto; bottom: -11px; width: 24px; height: 26px; clip-path: polygon(0 0,100% 0,0 100%); }
.bubble-green { --tilt: 9deg; left: 7%; right: auto; top: 0; background: #bde8ac; width: 13%; height: auto; aspect-ratio: 65 / 43; gap: 12%; animation-duration: 2.2s; animation-delay: .2s; }
.bubble-green::after { width: 28%; height: 40%; right: 22%; bottom: -12%; }
.bubble-green i { width: 12%; height: auto; aspect-ratio: 1; }
.star { position: absolute; color: var(--school-orange); font-size: 31px; animation: star-wink 2s ease-in-out 2; }
/* Keep a fixed gap from the orange bubble at every desktop/tablet width. */
.star-one { right: calc(var(--bubble-orange-right) + 116px); top: 14px; }.star-two { right: 5%; bottom: 108px; font-size: 21px; }
.collection { max-width: 1248px; margin: auto; padding: 30px 36px 72px; }
.introduction { font-size: 15px; max-width: 820px; margin: 0 0 46px; line-height: 2.15; letter-spacing: .025em; }
.work-section { scroll-margin-top: 24px; margin-top: 46px; }
.work-section:not(.sample-section) { background: var(--gallery-surface); margin-inline: -24px; padding: 32px 24px 28px; border: 1px solid #e9edf2; border-radius: 30px; }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.section-head::after { content: ""; height: 1px; background: #dde3e9; flex: 1; }
h2 { font-family: var(--font-body); font-weight: 700; font-size: 23px; letter-spacing: .035em; line-height: 1.5; margin: 0; padding-left: 17px; position: relative; }
h2::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 5px; background: var(--school-orange); border-radius: 5px; }
.work-count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.work-section.cohort-section { position: relative; margin-top: 64px; padding-top: 32px; padding-bottom: 28px; scroll-margin-top: 32px; }
.cohort-section h2 { padding: 0 0 0 16px; font-family: var(--font-heading); font-size: clamp(25px,2.5vw,32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.4; color: var(--ink); }
.cohort-section h2::before { top: 7px; bottom: 7px; width: 4px; }
.cohort-section .section-head { gap: 16px; margin-bottom: 24px; }
.work-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.work-card { background: white; border: 1px solid #e6e9ed; border-radius: 20px; padding: 12px; box-shadow: 0 3px 8px #24364904, 0 10px 30px #24364909; min-width: 0; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.work-card:focus-within { box-shadow: 0 8px 24px #805b2418; }
.thumbnail { --thumb-tint: #ccebea; --thumb-light: #effaf9; position: relative; overflow: hidden; background: linear-gradient(145deg,var(--thumb-tint),var(--thumb-light)); border-radius: 15px; min-height: 190px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1.15; }
.thumbnail::before { content: ""; position: absolute; width: 76%; aspect-ratio: 1; right: -16%; top: -22%; border-radius: 50%; background: #ffffff55; pointer-events: none; }
.thumbnail::after { content: ""; position: absolute; width: 40%; aspect-ratio: 1; left: -12%; bottom: -20%; border-radius: 50%; border: 1px solid #ffffffa0; pointer-events: none; }
.sample-section .thumbnail { --thumb-tint: #cddff8; --thumb-light: #f1f6ff; }
.thumbnail img { position: relative; z-index: 1; width: 100%; height: 100%; padding: 12px; object-fit: contain; display: block; }
.work-card:nth-child(2) .thumbnail { --thumb-tint: #ffd0da; --thumb-light: #fff0f2; }
.work-card:nth-child(3) .thumbnail { --thumb-tint: #ffdfa3; --thumb-light: #fff5df; }
.work-card:nth-child(4) .thumbnail { --thumb-tint: #d5cefb; --thumb-light: #f0edff; }
.card-content { padding: 19px 6px 7px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
h3 { margin: 0; font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.65; letter-spacing: .015em; overflow-wrap: anywhere; }
.product-name { display: block; min-height: 44px; padding-bottom: 7px; }
.product-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.creator { margin: 0 0 10px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.comment { margin: 0 0 23px; font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.store-button { margin-top: auto; min-height: 46px; display: flex; justify-content: center; align-items: center; gap: 8px; border-radius: 99px; background: var(--line-green); color: var(--line-ink); font-size: 14px; font-weight: 700; padding: 10px 12px; box-shadow: 0 3px 9px #06c75520; text-shadow: 0 1px 2px #007c3426; transition: box-shadow .15s; }
.store-button:hover { box-shadow: 0 0 0 3px #c1f1d3; }
.external-icon { font-size: 17px; }
.sample-section .work-grid { max-width: 650px; grid-template-columns: 1fr; }
.sample-section .work-card { flex-direction: row; gap: 24px; padding: 16px; }
.sample-section .thumbnail { width: 182px; height: 182px; min-height: 182px; flex-shrink: 0; aspect-ratio: 1; align-self: center; }
.sample-section .card-content { padding: 5px 8px 5px 0; }
.sample-section .comment { margin-bottom: 14px; }
.sample-section .store-button { align-self: flex-start; padding-inline: 22px; }
.image-placeholder { color: var(--muted); padding: 12px; }
footer { position: relative; margin-top: 45px; background: #fff0df; text-align: center; padding: 26px calc(20px + var(--school-rail-width)) 32px 20px; font-size: 13px; }
.footer-wave { position: absolute; width: 100%; height: 65px; left: 0; top: -64px; }
footer strong { font-weight: 500; letter-spacing: .055em; }
footer .copyright { color: var(--muted); margin: 14px 0 0; font-size: 12px; letter-spacing: .06em; }
footer small { font-size: inherit; }
@media (max-width: 1050px) {
  :root { --school-rail-width: 76px; }
  .school-links { width: 66px; border-radius: 17px 0 0 17px; }
  .school-links .school-link { font-size: 11px; padding-inline: 4px; }
  .work-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bubble { opacity: .8; }
  .hero-inner { padding-block: 44px 70px; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); min-height: 420px; }.hero-inner h1 { max-width: none; }
  .site-name { font-size: 22px; }
  .headline-key { font-size: clamp(40px,5.7vw,60px); }
  .headline-key-main { font-size: clamp(45px,6.2vw,66px); }
  .headline-tail { font-size: clamp(21px,2.9vw,30px); }
  .thumbnail { aspect-ratio: 1.35; }
}
@media (max-width: 700px) {
  .bubble-green { display: none; }
}
@media (max-width: 600px) {
  :root { --school-rail-width: 44px; }
  .school-links { width: 44px; border-radius: 14px 0 0 14px; }
  .school-links .school-link { flex-direction: row; min-height: 155px; padding: 12px 0; gap: 0; }
  .school-links .school-link-home { min-height: 95px; }
  .school-link-label { writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .08em; font-size: 12px; }
  .school-link-break { display: inline; }
  .school-link-icon, .school-link-arrow { display: none; }
  .header-inner { padding: 15px 20px 12px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand { gap: 12px; }.brand img { width: 52px; }.brand strong { font-size: 16px; }.department { font-size: 15px; }
  nav { width: 100%; } nav ul { gap: 5px; } nav a { padding: 8px 16px; font-size: 13px; }
  .hero-inner { padding: 28px 22px 30px; display: block; min-height: 0; }
  .site-name { font-size: 21px; margin-bottom: 20px; }
  .hero-inner h1 { max-width: none; line-height: 1.3; margin-bottom: 22px; }
  .headline-key { font-size: clamp(46px,13.5vw,65px); }
  .headline-key-main { font-size: clamp(49px,14.4vw,70px); }
  .headline-tail { font-size: clamp(20px,5.7vw,27px); }
  .mobile-break { display: block; }
  .hero-label { font-size: 13px; padding: 8px 14px; }
  .hero-art { width: min(100%,340px); margin: 17px auto -7px; }.hero-art img { width: 100%; margin: 0; }.hero-art::before { inset: 13% 0 4% 0; }
  .hero-wave { height: 50px; }
  .hero::before { inset: 45% 0 35px 0; }
  .hero-typography { font-size: 130px; bottom: 65px; transform: translateX(-50%) rotate(-7deg); }
  .bubble-orange { display: none; }.bubble-green { display: none; }
  .bubble i { width: 5px; height: 5px; }.star-one { top: auto; bottom: 190px; left: 42px; right: auto; font-size: 19px; }.star-two { display: none; }
  .collection { padding: 25px 20px 40px; }.introduction { font-size: 14px; margin-bottom: 35px; }
  .work-section { margin-top: 38px; } h2 { font-size: 20px; }
  .work-section:not(.sample-section) { margin-inline: -10px; padding: 24px 10px 14px; border-radius: 23px; }
  .work-section.cohort-section { margin-top: 44px; padding-top: 24px; padding-bottom: 18px; scroll-margin-top: 24px; }
  .cohort-section h2 { font-size: 22px; padding-left: 12px; }
  .cohort-section .section-head { gap: 10px; margin-bottom: 20px; }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .thumbnail { aspect-ratio: 1.35; min-height: 180px; }.thumbnail img { padding: 18px; }
  .card-content { padding: 15px 8px 8px; } h3 { font-size: 19px; }.comment { font-size: 15px; }
  .sample-section .work-card { flex-direction: column; gap: 0; }
  .sample-section .work-card { padding: 12px; }
  .sample-section .thumbnail { width: 100%; height: auto; aspect-ratio: 1.35; }
  .sample-section .card-content { padding: 15px 8px 8px; }
  .sample-section .store-button { align-self: stretch; }
  footer strong span { display: block; }
}
@keyframes hello-allstars {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes bubble-float {
  0%, 100% { transform: translateY(0) rotate(var(--tilt)); }
  50% { transform: translateY(-7px) rotate(calc(var(--tilt) + 3deg)); }
}
@keyframes star-wink {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.8) rotate(12deg); opacity: .65; }
}
@media (hover: hover) and (pointer: fine) {
  .work-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px #24364915; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-button, .work-card { transition: none; }
  .hero-art img, .bubble, .star { animation: none; }
  .work-card:hover { transform: none; }
}




