
:root{--ink:#28222e;--paper:#fcf8f1;--purple:#7950bb;--lav:#d3c0fa;--pink:#ffb5d6;--lime:#e5f178}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans','Noto Sans JP',sans-serif;overflow-x:hidden}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}::selection{background:#d3c0fa}a:focus-visible{outline:3px solid #e95b77;outline-offset:4px}
.site-header{min-height:132px;display:flex;align-items:center;justify-content:space-between;gap:26px;padding:15px 4%;position:relative;z-index:10;background:#fffaf1 url('assets/header-bg.svg') center center/cover no-repeat;border-bottom:2px solid #eee3ef}.logo{flex:0 0 auto;width:clamp(210px,26vw,355px)}.logo img{width:100%;max-height:108px;object-fit:contain;object-position:left center}.site-header nav{display:flex;align-items:center;gap:clamp(12px,1.8vw,28px);font-size:13px;font-weight:900}.site-header nav a:not(.nav-contact){white-space:nowrap;text-shadow:0 1px 1px #fff}.site-header nav a:hover{text-decoration:underline}.nav-contact,.mobile-contact{background:var(--purple);color:white;border-radius:60px;padding:16px 23px;white-space:nowrap;box-shadow:3px 4px 0 #3b2b5d}.mobile-contact{display:none}
.hero{height:clamp(660px,57vw,830px);position:relative;isolation:isolate;overflow:hidden;background:var(--paper)}.hero-photos{position:absolute;inset:0 0 32px;display:grid;grid-template-columns:1.8fr 1fr;gap:13px;background:#d5c2f5}.hero-main-photo,.hero-side-photo{overflow:hidden}.hero-photos img{width:100%;height:100%;object-fit:cover}.hero-main-photo img{object-position:center 52%}.hero-side-photo img{object-position:52% 45%}.hero-main-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(15,12,17,.12),transparent 85%);pointer-events:none}.hero-photo-label{position:absolute;left:5%;top:9%;padding:15px 19px;background:var(--lime);border:3px solid var(--ink);font-size:clamp(11px,1.15vw,15px);font-weight:900;letter-spacing:.07em;transform:rotate(-2deg);z-index:3}.hero-heading{position:absolute;z-index:5;left:5%;top:28%;width:min(860px,90%)}.hero-heading h1{font-weight:900;font-size:clamp(65px,9vw,143px);letter-spacing:-.095em;line-height:1.18;margin:0 0 18px;filter:drop-shadow(4px 5px 0 rgba(20,10,26,.3))}.hero-heading h1 span{display:block;width:max-content;max-width:none;white-space:nowrap;-webkit-text-stroke:clamp(6px,.9vw,13px) #fffdf5;paint-order:stroke fill}.hero-heading h1 .first{color:#29232e;transform:rotate(-3deg);transform-origin:left bottom}.hero-heading h1 .second{color:#7545bd;transform:rotate(-2deg);margin-left:5%;transform-origin:left bottom}.hero-description{display:table;background:#fffaf0;border:3px solid var(--ink);padding:13px 22px;font-weight:900;font-size:clamp(12px,1.3vw,18px);line-height:1.9;transform:rotate(-1deg);box-shadow:5px 5px 0 #d8c6f4}.hero-cta{display:inline-block;margin-top:19px;padding:15px 25px;background:var(--ink);color:#fff;border-radius:60px;font-weight:900;font-size:clamp(12px,1.25vw,17px);transition:transform .2s}.hero-cta:hover{transform:translateY(-3px)}.paint{position:absolute;pointer-events:none;user-select:none;max-width:none}.paint-star{z-index:3;width:clamp(260px,31vw,480px);right:-5%;top:37%;opacity:.92;transform:rotate(11deg)}.paint-pink{z-index:4;width:clamp(230px,29vw,420px);right:19%;bottom:12px;transform:rotate(-16deg)}.paint-blue{z-index:3;width:250px;left:-80px;bottom:40px;transform:rotate(-15deg)}.hero-mascot{position:absolute;right:5%;bottom:36px;width:clamp(80px,10vw,155px);z-index:6;filter:drop-shadow(4px 4px 0 #fff)}.ticker{position:relative;z-index:2;background:var(--purple);color:#fff;overflow:hidden;border-top:4px solid #f8eafa;border-bottom:4px solid #e9d6ff;transform:rotate(-1deg) scale(1.02);margin-top:-18px}.ticker div{white-space:nowrap;font-size:clamp(22px,3.7vw,54px);font-weight:900;line-height:1.35;padding:14px 0;animation:marquee 32s linear infinite;letter-spacing:.01em}@keyframes marquee{to{transform:translateX(-40%)}}
.section{padding:105px 6%;position:relative;overflow:hidden}.section>*:not(.paint){position:relative;z-index:2}.label-sticker{display:inline-block;background:var(--lime);border:2px solid var(--ink);padding:11px 17px;font-size:12px;font-weight:900;letter-spacing:.07em;transform:rotate(-2deg)}.about{display:grid;grid-template-columns:1fr .85fr;align-items:center;gap:7%;padding-top:145px;padding-bottom:145px}.about h2{font-size:clamp(44px,5.4vw,82px);line-height:1.3;letter-spacing:-.08em}.about h2 em,.display-heading em{font-style:normal;color:var(--purple)}.about p{font-size:15px;line-height:2.4}.about-photo{transform:rotate(4deg);background:white;padding:13px;border:3px solid var(--ink);box-shadow:13px 14px 0 var(--ink)}.about-photo img{width:100%;height:410px;object-fit:cover}.about-photo span{position:absolute;top:-30px;right:-25px;background:var(--pink);border:2px solid var(--ink);padding:14px;font-size:13px;font-weight:900;transform:rotate(8deg)}.deco-about{width:370px;left:-140px;bottom:-130px;opacity:.75}.display-heading{font-size:clamp(64px,10vw,160px);font-weight:900;letter-spacing:-.085em;line-height:.98;margin:34px 0 60px}.works{background:#eadffb;border-block:3px solid var(--ink)}.works-grid{display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:start}.works figure{margin:0}.works figure:nth-child(2){margin-top:100px;transform:rotate(4deg)}.works figure:first-child{transform:rotate(-3deg)}.works figure img{width:100%;height:400px;object-fit:cover;border:3px solid var(--ink);box-shadow:12px 12px 0 var(--ink)}.works figcaption{margin-top:26px;font-weight:900}.deco-works{width:410px;right:-150px;top:30px;opacity:.45}.footnote{font-size:12px!important;line-height:1.9!important;opacity:.76}.works>.footnote{margin-top:90px}.classes{background:var(--purple);color:#fff}.classes .label-sticker{color:var(--ink)}.classes .display-heading em{color:#e5f178}.class-content{display:grid;grid-template-columns:1fr 1fr;gap:9%;align-items:center}.overline{font-weight:900}.price{font-size:clamp(90px,12vw,180px);line-height:1.2;font-weight:900;letter-spacing:-.1em}.price span{font-size:30px;letter-spacing:0}.class-panel{background:#fffaf0;color:var(--ink);padding:40px;border:3px solid var(--ink);box-shadow:13px 13px 0 #3e286d;transform:rotate(2deg)}.class-panel h3{font-size:clamp(24px,3vw,40px);line-height:1.4}.days{display:flex;flex-wrap:wrap;gap:9px}.days span{border:2px solid var(--ink);border-radius:50%;width:55px;height:55px;display:grid;place-items:center;font-size:22px;font-weight:900}.news-entry{display:grid;grid-template-columns:160px 1fr;gap:30px;border-block:2px solid var(--ink);padding:30px 0}.news-entry h3{margin:0 0 15px;font-size:24px}.news-entry p{line-height:1.8}.access{background:#d2c0f2;border-top:3px solid var(--ink)}.access-content{display:grid;grid-template-columns:1fr 1fr;gap:9%;align-items:center}.access-content h3{font-size:clamp(32px,4.3vw,65px);letter-spacing:-.07em;line-height:1.3}.access-content p{line-height:2}.access-content>img{height:430px;width:100%;object-fit:cover;border:3px solid var(--ink);box-shadow:12px 12px 0 var(--ink);transform:rotate(3deg)}.contact{background:#f8c7dd;text-align:center}.contact h2{font-size:clamp(60px,10vw,145px);letter-spacing:-.09em;line-height:1.15;margin:25px 0}.contact-mascot{width:110px;margin:0 auto}.contact p{line-height:2}.contact-pending{display:inline-block;border:2px solid var(--ink);background:#fff8ee;padding:18px 30px;border-radius:60px;font-weight:900;margin:20px 0}.deco-contact{width:450px;left:-170px;top:-120px;opacity:.4}footer{padding:40px 6%;display:flex;justify-content:space-between;align-items:center;gap:25px;font-size:13px}footer img{width:150px}
@media(max-width:1100px){.site-header{min-height:106px}.logo{width:220px}.site-header nav{gap:12px;font-size:11px}.nav-contact{padding:13px 15px}.hero-heading{top:29%}.hero-heading h1{font-size:clamp(60px,9vw,100px)}}
@media(max-width:800px){.site-header{min-height:88px;padding:10px 4%}.logo{width:clamp(180px,43vw,245px)}.site-header nav{display:none}.mobile-contact{display:inline-block;padding:11px 13px;font-size:11px}.hero{height:680px}.hero-photos{grid-template-columns:1fr .3fr;gap:7px;bottom:20px}.hero-photo-label{top:8%;left:4%;font-size:10px;padding:11px}.hero-heading{top:30%;left:4%;width:96%}.hero-heading h1{font-size:clamp(46px,10.7vw,85px);line-height:1.28;margin-bottom:24px}.hero-heading h1 span{-webkit-text-stroke:clamp(5px,1.2vw,9px) #fffdf5}.hero-heading h1 .second{margin-left:3%}.hero-description{font-size:12px;padding:11px 14px;max-width:78%}.hero-cta{margin-top:16px;padding:12px 16px;font-size:12px}.paint-star{width:290px;right:-100px;top:47%}.paint-pink{width:230px;right:10%;bottom:18px}.paint-blue{width:160px}.hero-mascot{width:90px;right:4%;bottom:34px}.section{padding:80px 5%}.about{grid-template-columns:1fr;gap:70px;padding-top:110px}.about-photo{max-width:580px;margin:auto}.about-photo img{height:350px}.works-grid,.class-content,.access-content{grid-template-columns:1fr;gap:50px}.works figure:nth-child(2){margin-top:0}.works figure img{height:350px}.display-heading{font-size:clamp(56px,12vw,100px)}.price{font-size:110px}.access-content>img{height:340px}.contact h2{font-size:clamp(58px,12vw,100px)}footer{flex-wrap:wrap}}
@media(max-width:480px){.site-header{min-height:78px}.logo{width:170px}.mobile-contact{font-size:10px;padding:9px}.hero{height:590px}.hero-photos{grid-template-columns:1fr .2fr}.hero-heading{top:31%}.hero-heading h1{font-size:10.5vw;line-height:1.35;margin-bottom:20px}.hero-description{font-size:10px;max-width:84%;padding:9px 10px}.hero-cta{font-size:11px}.hero-photo-label{font-size:8px;padding:8px}.hero-mascot{width:65px;bottom:30px}.paint-star{width:200px;right:-75px;top:52%}.paint-pink{width:175px}.about h2{font-size:42px}.about p{font-size:13px}.about-photo img{height:260px}.works figure img{height:270px}.class-panel{padding:24px}.days span{width:46px;height:46px;font-size:18px}.news-entry{grid-template-columns:1fr;gap:10px}.price{font-size:86px}footer img{width:120px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}

/* V12: textured brush-cut photography + scattered individual paint marks */
.site-header{background:#fffaf1;isolation:isolate;overflow:hidden;border-bottom:0}
.site-header .logo,.site-header nav,.site-header .mobile-contact{position:relative;z-index:2}
.header-strokes{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.header-strokes i{position:absolute;display:block;background-repeat:no-repeat;background-position:center;background-size:contain;opacity:.78}
.header-strokes i:nth-child(1){background-image:url('assets/enogu_004.png');width:155px;height:75px;left:-25px;top:-23px;transform:rotate(-15deg)}
.header-strokes i:nth-child(2){background-image:url('assets/enogu_002.png');width:180px;height:62px;left:29%;top:-28px;transform:rotate(14deg)}
.header-strokes i:nth-child(3){background-image:url('assets/enogu_003.png');width:150px;height:70px;left:48%;bottom:-42px;transform:rotate(-19deg)}
.header-strokes i:nth-child(4){background-image:url('assets/enogu_005.png');width:190px;height:50px;right:8%;top:-19px;transform:rotate(-8deg)}
.header-strokes i:nth-child(5){background-image:url('assets/enogu_006.png');width:50px;height:50px;right:0;bottom:5px;transform:rotate(15deg)}
.header-strokes i:nth-child(6){background-image:url('assets/enogu_002.png');width:130px;height:55px;right:24%;bottom:-33px;transform:rotate(10deg)}
.header-strokes i:nth-child(7){background-image:url('assets/enogu_003.png');width:110px;height:50px;left:19%;bottom:-30px;transform:rotate(10deg)}
.header-strokes i:nth-child(8){background-image:url('assets/enogu_004.png');width:105px;height:48px;right:-30px;top:-25px;transform:rotate(-12deg)}
.hero{background:#fcf8f1}
.hero-photos{inset:0 0 10px;display:block;background:transparent;overflow:visible}
.hero-main-photo,.hero-side-photo{position:absolute;overflow:visible;filter:drop-shadow(0 3px 1px rgba(48,31,61,.10));-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-position:center;mask-position:center}
.hero-main-photo{left:-3%;top:-2%;width:76%;height:103%;-webkit-mask-image:url('assets/photo-brush-main.png');mask-image:url('assets/photo-brush-main.png')}
.hero-side-photo{right:-4%;top:4%;width:39%;height:94%;transform:rotate(4deg);-webkit-mask-image:url('assets/photo-brush-side.png');mask-image:url('assets/photo-brush-side.png')}
.hero-photos img{width:100%;height:100%;object-fit:cover}
.hero-main-photo:after{display:none}
.hero-heading{top:25%}
.hero-heading h1{filter:drop-shadow(2px 4px 0 rgba(40,20,50,.18))}
.hero-photo-label{top:10%}
.paint-star{right:-6%;top:44%;opacity:.72}
.paint-pink{bottom:0;right:18%}
.hero-mascot{bottom:46px}
.ticker{margin-top:-8px}
@media(max-width:800px){.header-strokes i:nth-child(2),.header-strokes i:nth-child(4){opacity:.3}.hero-main-photo{width:95%;left:-11%;height:100%}.hero-side-photo{width:44%;right:-17%;top:9%;height:75%}.hero-heading{top:28%}.hero-photo-label{top:10%}}
@media(max-width:480px){.hero-main-photo{width:116%;left:-24%}.hero-side-photo{width:50%;right:-24%;top:10%;height:72%}.hero-heading{top:29%}.hero-photo-label{top:11%}.header-strokes i{opacity:.38}}

/* V13: grayscale brush texture converted to alpha mask. */
.hero-main-photo,.hero-side-photo{-webkit-mask-mode:alpha;mask-mode:alpha;}

/* V14: precomposited transparent photos; no browser CSS masking required. */
.hero-main-photo,.hero-side-photo{ -webkit-mask-image:none !important;mask-image:none !important; filter:none; }
.hero-main-photo img,.hero-side-photo img{width:100%;height:100%;object-fit:fill;}

/* V15: decorative strokes extend seamlessly across the header/hero seam.
   The shared layer is a sibling of the header and hero, not clipped by either. */
:root { --header-seam: 132px; }
.site-header { overflow: visible; }
.site-header .header-strokes { overflow: visible; }
/* Remove the old header-only strokes that were clipped at the seam. */
.site-header .header-strokes i:nth-child(3),
.site-header .header-strokes i:nth-child(6),
.site-header .header-strokes i:nth-child(7) { display: none; }
.boundary-brushes {
  position: absolute;
  top: calc(var(--header-seam) - 78px);
  left: 0;
  width: 100%;
  height: 175px;
  z-index: 12;
  pointer-events: none;
  overflow: visible;
}
.boundary-brush { position: absolute; display: block; background-position: center;
  background-size: contain; background-repeat: no-repeat; opacity: .95; }
.boundary-brush--left { background-image: url('assets/enogu_008.png');
  width: 210px; height: 95px; left: -55px; top: 50px; transform: rotate(21deg); }
.boundary-brush--middle { background-image: url('assets/enogu_003.png');
  width: clamp(180px, 23vw, 360px); height: 105px; left: 39%; top: 30px;
  transform: rotate(-30deg); opacity: .82; }
.boundary-brush--right { background-image: url('assets/enogu_002.png');
  width: clamp(150px, 19vw, 280px); height: 110px; right: 8%; top: 11px;
  transform: rotate(12deg); opacity: .9; }
.boundary-brush--fleck { background-image: url('assets/enogu_006.png');
  width: 68px; height: 68px; right: 1%; top: -20px; transform: rotate(17deg); }
@media(max-width:1100px) { :root { --header-seam: 106px; } }
@media(max-width:800px) {
  :root { --header-seam: 88px; }
  .boundary-brushes { top: calc(var(--header-seam) - 60px); height: 135px; }
  .boundary-brush--middle { left: 38%; width: 190px; height: 90px; }
  .boundary-brush--right { right: 3%; width: 150px; height: 75px; }
}
@media(max-width:480px) {
  :root { --header-seam: 78px; }
  .boundary-brush--left { width: 120px; height: 65px; left: -30px; }
  .boundary-brush--middle { width: 125px; height: 70px; left: 40%; }
  .boundary-brush--right { width: 95px; height: 60px; right: 0; }
  .boundary-brush--fleck { width: 40px; height: 40px; }
}

/* Ver.16: playful, subtle mascot motion. */
@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  45% { transform: translateY(-13px) rotate(5deg); }
  65% { transform: translateY(-9px) rotate(2deg); }
}
@keyframes mascot-wave {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-5px); }
}
.hero-mascot {
  transform-origin: 50% 85%;
  animation: mascot-bob 3.8s ease-in-out infinite;
  will-change: transform;
}
.contact-mascot {
  transform-origin: 50% 85%;
  animation: mascot-wave 4.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-mascot, .contact-mascot { animation: none; }
}

/* V17: put seam decoration inside the header stacking context, below logo/nav. */
.site-header { isolation: isolate; overflow: visible; }
.site-header .header-strokes { z-index: 0; }
.site-header .boundary-brushes { z-index: 1; }
.site-header .logo, .site-header nav, .site-header .mobile-contact { position: relative; z-index: 3; }

/* Ver.18: gallery frames from the four original supplied SVG brush strokes. */
.works .brush-frame {
  position: relative; width:100%; height:400px; isolation:isolate;
  overflow:visible; filter:drop-shadow(9px 11px 0 rgba(55,34,78,.25));
}
.works .brush-frame .brush-frame-photo {
  display:block; width:100%; height:100%; object-fit:cover;
  border:0; box-shadow:none; border-radius:0;
}
.works .brush-edge {position:absolute; display:block; pointer-events:none; z-index:3; background-repeat:no-repeat;}
.works .edge-top {top:-12px;left:-9px;width:calc(100% + 18px);height:33px;background-image:url('assets/frame-ue.svg');background-size:100% 100%;}
.works .edge-bottom {bottom:-12px;left:-9px;width:calc(100% + 18px);height:33px;background-image:url('assets/frame-shita.svg');background-size:100% 100%;}
.works .edge-left {top:-10px;left:-13px;height:calc(100% + 20px);width:38px;background-image:url('assets/frame-hidari.svg');background-size:100% 100%;}
.works .edge-right {top:-10px;right:-13px;height:calc(100% + 20px);width:38px;background-image:url('assets/frame-migi.svg');background-size:100% 100%;}
@media(max-width:800px){.works .brush-frame{height:350px}}
@media(max-width:480px){.works .brush-frame{height:270px}.works .edge-top,.works .edge-bottom{height:24px}.works .edge-left,.works .edge-right{width:27px}}

/* V19: hand-painted border on the hero location label, using supplied SVGs. */
.hero-photo-label { border:0; padding:17px 23px; isolation:isolate; box-shadow:none; }
.hero-photo-label .hero-label-text { position:relative; z-index:2; display:block; }
.hero-photo-label .label-brush { position:absolute; z-index:1; display:block; pointer-events:none; background-repeat:no-repeat; background-size:100% 100%; }
.hero-photo-label .label-brush-top { top:-8px; left:-8px; width:calc(100% + 16px); height:19px; background-image:url('assets/frame-ue.svg'); }
.hero-photo-label .label-brush-bottom { bottom:-8px; left:-8px; width:calc(100% + 16px); height:19px; background-image:url('assets/frame-shita.svg'); }
.hero-photo-label .label-brush-left { top:-7px; left:-9px; width:22px; height:calc(100% + 14px); background-image:url('assets/frame-hidari.svg'); }
.hero-photo-label .label-brush-right { top:-7px; right:-9px; width:22px; height:calc(100% + 14px); background-image:url('assets/frame-migi.svg'); }
@media(max-width:800px) { .hero-photo-label {padding:14px 18px;} .hero-photo-label .label-brush-top,.hero-photo-label .label-brush-bottom{height:15px} .hero-photo-label .label-brush-left,.hero-photo-label .label-brush-right{width:18px} }
@media(max-width:480px) { .hero-photo-label {padding:12px 15px;} .hero-photo-label .label-brush-top,.hero-photo-label .label-brush-bottom{height:13px} .hero-photo-label .label-brush-left,.hero-photo-label .label-brush-right{width:15px} }

/* V20: preserve photo proportions at all viewport sizes. */
/* Hero uses proportional cover cropping rather than non-uniform stretching. */
.hero-main-photo img,
.hero-side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
}
/* Gallery frames and their photos grow proportionally as the viewport changes. */
.works .brush-frame {
  height: auto !important;
  aspect-ratio: 4 / 3;
}
.works .brush-frame .brush-frame-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Other photos: proportional boxes instead of fixed pixel heights. */
.about-photo img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.access-content > img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* V21: Consistent hand-painted borders on remaining framed elements.
   Hero location tag and gallery photo frames retain their V20 styling. */
.hero-description,.label-sticker,.about-photo,.about-photo > span,.class-panel,.access-photo-brush {
  position:relative;
  border:0;
  isolation:isolate;
}
.hero-description::after,.label-sticker::after,.about-photo::after,.about-photo > span::after,.class-panel::after,.access-photo-brush::after {
  content:"";
  position:absolute;
  inset:-3px;
  z-index:3;
  pointer-events:none;
  background-image:url('assets/frame-ue.svg'),url('assets/frame-shita.svg'),url('assets/frame-hidari.svg'),url('assets/frame-migi.svg');
  background-repeat:no-repeat;
  background-position:top center,bottom center,left center,right center;
  background-size:100% 11px,100% 11px,11px 100%,11px 100%;
}
.hero-description{padding:17px 25px;}
.label-sticker{padding:13px 19px;}
.about-photo{padding:16px;}
.about-photo > span{padding:16px;}
.class-panel{padding:43px;}
.class-panel::after{background-size:100% 16px,100% 16px,16px 100%,16px 100%;}
.about-photo::after{background-size:100% 16px,100% 16px,16px 100%,16px 100%;}
.access-photo-brush{transform:rotate(3deg);box-shadow:12px 12px 0 var(--ink);min-width:0;}
.access-photo-brush img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;border:0;box-shadow:none;transform:none;}
.access-photo-brush::after{background-size:100% 16px,100% 16px,16px 100%,16px 100%;}
@media(max-width:700px){
 .class-panel{padding:28px;}
 .class-panel::after,.about-photo::after,.access-photo-brush::after{background-size:100% 12px,100% 12px,12px 100%;}
}


/* V23: independent horizontal/vertical brush layers, extended at corners.
   Keep V21 photo placement and original brush assets. */
.hero-description::after,.label-sticker::after,.about-photo::after,.about-photo > span::after,.class-panel::after,.access-photo-brush::after {
  inset:-3px;
  background-image:url('assets/frame-ue.svg'),url('assets/frame-shita.svg');
  background-position:top center,bottom center;
  background-size:100% 11px,100% 11px;
  background-repeat:no-repeat;
}
.hero-description::before,.label-sticker::before,.about-photo::before,.about-photo > span::before,.class-panel::before,.access-photo-brush::before {
  content:"";
  position:absolute;
  top:-15px;
  bottom:-15px;
  left:-3px;
  right:-3px;
  z-index:4;
  pointer-events:none;
  background-image:url('assets/frame-hidari.svg'),url('assets/frame-migi.svg');
  background-position:left center,right center;
  background-size:11px 100%,11px 100%;
  background-repeat:no-repeat;
}
.class-panel::after,.about-photo::after,.access-photo-brush::after {background-size:100% 16px,100% 16px;}
.class-panel::before,.about-photo::before,.access-photo-brush::before {background-size:16px 100%,16px 100%;top:-20px;bottom:-20px;}
@media(max-width:700px){
 .class-panel::after,.about-photo::after,.access-photo-brush::after{background-size:100% 12px,100% 12px;}
 .class-panel::before,.about-photo::before,.access-photo-brush::before{background-size:12px 100%,12px 100%;top:-16px;bottom:-16px;}
}

/* V24: tightly cropped source SVG viewBoxes ensure the brush strokes reach each corner.
   Remove V23's overshoot and keep all edges joined. */
.hero-description::before,.label-sticker::before,.about-photo::before,.about-photo > span::before,.class-panel::before,.access-photo-brush::before {top:-3px;bottom:-3px;}
@media(max-width:700px){.class-panel::before,.about-photo::before,.access-photo-brush::before{top:-3px;bottom:-3px;}}
/* Preserve the entire transparent precomposed side image, rather than cropping its left edge. */
.hero-side-photo img {object-fit:contain !important;object-position:center center !important;}

/* V25: Keep original uncropped brush assets on previously correct gallery/hero label frames.
   Only pseudo-element box borders use tight-viewBox variants, with a finer stroke. */
.hero-description::after,.label-sticker::after,.about-photo::after,.about-photo > span::after,.class-panel::after,.access-photo-brush::after {
  background-image:url('assets/frame-tight-ue.svg'),url('assets/frame-tight-shita.svg');
  background-size:100% 7px,100% 7px;
}
.hero-description::before,.label-sticker::before,.about-photo::before,.about-photo > span::before,.class-panel::before,.access-photo-brush::before {
  background-image:url('assets/frame-tight-hidari.svg'),url('assets/frame-tight-migi.svg');
  background-size:7px 100%,7px 100%;
}
.class-panel::after,.about-photo::after,.access-photo-brush::after {background-size:100% 10px,100% 10px;}
.class-panel::before,.about-photo::before,.access-photo-brush::before {background-size:10px 100%,10px 100%;}
@media(max-width:700px){
  .class-panel::after,.about-photo::after,.access-photo-brush::after{background-size:100% 8px,100% 8px;}
  .class-panel::before,.about-photo::before,.access-photo-brush::before{background-size:8px 100%,8px 100%;}
}
/* Show complete precomposited hero images, avoiding left/right clipping at narrow widths.
   Preserve the V21 overlap/rotation while keeping photo containers inside viewport. */
.hero-main-photo {left:0; width:76%;}
.hero-side-photo {right:0; width:39%;}
.hero-main-photo img,.hero-side-photo img {object-fit:contain !important;object-position:center center !important;}
@media(max-width:800px){
 .hero-main-photo {left:0;width:84%;}
 .hero-side-photo {right:0;width:43%;}
}
@media(max-width:480px){
 .hero-main-photo {left:0;width:91%;}
 .hero-side-photo {right:0;width:47%;}
}

/* V26: user-edited baseline. Keep hero label above background paint and photos. */
.hero-photo-label { z-index: 20; }
.hero-photos { z-index: 0; }
.hero-heading { z-index: 6; }
.hero > .paint { z-index: 2; }
.hero > .hero-mascot { z-index: 7; }

/* Accessible collapsible navigation at tablet/mobile widths. */
.menu-toggle { display:none; }
@media (max-width:800px) {
 .site-header { flex-wrap:wrap; }
 .site-header .logo { margin-right:auto; }
 .site-header .mobile-contact { margin-left:0; }
 .menu-toggle { display:flex; position:relative; z-index:31; align-items:center; justify-content:center; flex-direction:column; gap:4px; width:72px; min-height:48px; padding:5px; background:#fffaf1; color:var(--ink); border:2px solid var(--ink); border-radius:12px; cursor:pointer; font:800 10px 'Noto Sans JP',sans-serif; }
 .menu-toggle span { width:22px; height:2px; background:var(--ink); border-radius:2px; }
 .menu-toggle b { line-height:1; margin-top:2px; }
 .site-header nav { display:none; position:absolute; top:calc(100% - 1px); left:3%; right:3%; z-index:30; padding:18px; background:#fffaf1; border:2px solid var(--ink); border-radius:12px; box-shadow:6px 7px 0 rgba(54,35,71,.2); flex-direction:column; align-items:stretch; gap:0; font-size:14px; }
 .site-header nav.is-open { display:flex; }
 .site-header nav a { display:block; padding:13px 9px; }
 .site-header nav a:not(:last-child) { border-bottom:1px solid #e6dbe9; }
 .site-header nav .nav-contact { margin-top:10px; text-align:center; }
}
@media(max-width:480px){
 .site-header { gap:8px; }
 .site-header .logo { width:clamp(135px,38vw,170px); }
 .menu-toggle { width:62px; min-height:43px; }
 .site-header .mobile-contact { font-size:9px; padding:9px 8px; }
}

/* Stack hero photos vertically at narrower viewports without distorting/cropping source PNGs. */
@media(max-width:800px){
 .hero { height:clamp(740px,115vw,900px); }
 .hero-photos { inset:0; }
 .hero-main-photo { left:-2%; top:1%; width:92%; height:58%; }
 .hero-side-photo { right:-2%; top:43%; width:72%; height:52%; transform:rotate(4deg); }
 .hero-main-photo img,.hero-side-photo img { object-fit:contain !important; }
 .hero-photo-label { top:7%; }
 .hero-heading { top:29%; }
}
@media(max-width:480px){
 .hero { height:760px; }
 .hero-main-photo { left:-2%; top:3%; width:102%; height:51%; }
 .hero-side-photo { right:-1%; top:47%; width:88%; height:48%; transform:rotate(4deg); }
 .hero-photo-label { top:8%; }
 .hero-heading { top:28%; }
}

/* V27: the location label must not be trapped under the header's stacking context.
   It is a direct body child; JS tracks the hero's actual position/height. */
body { position:relative; }
body > .hero-photo-label { position:absolute; z-index:50; top:calc(var(--header-seam) + 70px); left:5%; }
@media(max-width:800px) { body > .hero-photo-label { left:4%; } }
/* Open navigation must always appear above the floating label. */
.site-header:has(nav.is-open) { z-index:60; }

/* V28: educational philosophy and activity content from historical brochure. */
.philosophy{background:#fff9ec;isolation:isolate;}
.philosophy-paint{width:240px;right:-60px;top:30px;opacity:.5;}
.philosophy-heading{font-size:clamp(36px,5.5vw,76px);letter-spacing:-.065em;line-height:1.35;margin:30px 0 22px;}
.philosophy-heading em{font-style:normal;color:var(--purple);}
.philosophy-lead{max-width:850px;font-size:clamp(15px,1.6vw,20px);line-height:2;font-weight:800;}
.philosophy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;margin-top:55px;}
.philosophy-card{background:#fff;border:0;position:relative;padding:35px 28px;box-shadow:8px 9px 0 #e4d5f5;min-width:0;}
.philosophy-card::after{content:"";position:absolute;inset:-4px;pointer-events:none;background:url('assets/frame-tight-ue.svg') top center/100% 8px no-repeat,url('assets/frame-tight-shita.svg') bottom center/100% 8px no-repeat,url('assets/frame-tight-hidari.svg') left center/8px 100% no-repeat,url('assets/frame-tight-migi.svg') right center/8px 100% no-repeat;}
.philosophy-number{font-weight:900;color:var(--purple);font-size:14px;}
.philosophy-card h3{font-size:clamp(21px,2.2vw,30px);line-height:1.45;margin:12px 0;}
.philosophy-card p{line-height:1.95;font-size:14px;margin-bottom:0;}
.philosophy-closing{font-weight:800;line-height:2;margin-top:45px;}
.exhibition-note{max-width:760px;font-weight:700;line-height:2;margin-top:65px;}
.curriculum{margin-top:85px;border-top:2px dashed rgba(255,255,255,.55);padding-top:55px;}
.curriculum-heading{max-width:750px;}
.curriculum-heading .label-sticker{color:var(--ink);}
.curriculum h3{font-size:clamp(34px,4.3vw,65px);line-height:1.3;letter-spacing:-.055em;margin:25px 0 20px;}
.curriculum-heading p{font-size:16px;line-height:2;}
.curriculum-tags{display:flex;flex-wrap:wrap;gap:13px;margin-top:28px;}
.curriculum-tags span{border-radius:50px;background:#fffaf0;color:var(--ink);padding:12px 21px;font-weight:900;}
.curriculum-note{font-size:12px;opacity:.85;margin-top:18px;}
@media(max-width:800px){.philosophy-grid{grid-template-columns:1fr;gap:18px;}.philosophy-card{padding:28px 24px;}.philosophy-lead br{display:none;}.philosophy-closing br{display:none;}}

/* V29: seven clearly numbered homepage sections + CMS-ready journal visual */
html{scroll-padding-top:20px}
.site-header nav{gap:clamp(8px,1vw,18px);font-size:clamp(10px,.85vw,13px)}
@media(max-width:1250px){.site-header nav{gap:9px;font-size:10px}.site-header .logo{width:clamp(175px,21vw,270px)}}
@media(max-width:1000px){.site-header nav{display:none}.site-header nav.is-open{display:flex}.site-header .mobile-contact{display:inline-block}.site-header .menu-toggle{display:flex;position:relative;z-index:31;align-items:center;justify-content:center;flex-direction:column;gap:4px;width:72px;min-height:48px;padding:5px;background:#fffaf1;color:var(--ink);border:2px solid var(--ink);border-radius:12px;cursor:pointer;font:800 10px 'Noto Sans JP',sans-serif}.site-header .menu-toggle span{width:22px;height:2px;background:var(--ink)}.site-header .menu-toggle b{line-height:1}.site-header nav{position:absolute;top:calc(100% - 1px);left:3%;right:3%;z-index:30;padding:18px;background:#fffaf1;border:2px solid var(--ink);border-radius:12px;box-shadow:6px 7px 0 rgba(54,35,71,.2);flex-direction:column;align-items:stretch;gap:0;font-size:14px}.site-header nav a{display:block;padding:13px 9px}.site-header nav a:not(:last-child){border-bottom:1px solid #e6dbe9}}
.about-founder{margin-top:22px;padding-top:15px;border-top:1px dashed #bda3d7;font-weight:800}.about-founder small{font-weight:600;font-size:12px}
.philosophy-exhibition{max-width:820px;margin-top:16px;line-height:2;font-size:14px}
.activities{background:#f9dbe9;isolation:isolate}.activities-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.activities-top>div{max-width:850px}.activities-display{font-size:clamp(48px,6.5vw,100px);letter-spacing:-.075em;line-height:1.23;margin:35px 0 20px}.activities-display em{font-style:normal;color:var(--purple)}.activities-lead{font-size:clamp(15px,1.5vw,19px);font-weight:800;line-height:2;max-width:800px}.activities-paint{width:clamp(130px,23vw,330px);transform:rotate(12deg);flex-shrink:0;opacity:.8}.activities-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:45px}.activities-grid article{background:#fffaf1;padding:28px 22px 30px;box-shadow:6px 7px 0 #b993d9;position:relative}.activities-grid article:after{content:'';position:absolute;inset:-3px;pointer-events:none;background:url('assets/frame-tight-ue.svg') top/100% 8px no-repeat,url('assets/frame-tight-shita.svg') bottom/100% 8px no-repeat,url('assets/frame-tight-hidari.svg') left/8px 100% no-repeat,url('assets/frame-tight-migi.svg') right/8px 100% no-repeat}.activities-icon{font-size:33px;color:var(--purple);font-weight:900}.activities-grid h3{font-size:clamp(18px,1.7vw,24px);line-height:1.4;margin:12px 0}.activities-grid p{font-size:13px;line-height:1.9;margin-bottom:0}.activities-note{font-size:12px;margin-top:27px;opacity:.75}.fee-details{font-size:15px;font-weight:800}.class-time{font-size:15px;font-weight:800;line-height:1.8}.class-small{font-size:12px;line-height:1.8;opacity:.8}.journal-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.journal-heading .display-heading{margin-bottom:28px}.journal-heading p{line-height:2;font-weight:700}.journal-doodle{font-size:clamp(70px,12vw,170px);color:#dfb0f4;transform:rotate(18deg)}.journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:50px}.journal-card{background:#fffaf0;min-width:0;box-shadow:7px 8px 0 #d6c4ef;position:relative}.journal-card:after{content:'';position:absolute;inset:-4px;pointer-events:none;background:url('assets/frame-tight-ue.svg') top/100% 8px no-repeat,url('assets/frame-tight-shita.svg') bottom/100% 8px no-repeat,url('assets/frame-tight-hidari.svg') left/8px 100% no-repeat,url('assets/frame-tight-migi.svg') right/8px 100% no-repeat}.journal-thumb{aspect-ratio:4/3;overflow:hidden}.journal-thumb img{width:100%;height:100%;object-fit:cover}.journal-body{padding:22px 22px 28px}.journal-category{display:inline-block;background:var(--lime);padding:6px 11px;font-size:11px;font-weight:900}.journal-body h3{font-size:20px;line-height:1.5;margin:13px 0}.journal-body p{font-size:13px;line-height:1.8}.journal-demo{margin-top:32px;font-size:12px;opacity:.75}.journal-footer{margin-top:30px;text-align:right}.journal-more{display:inline-block;background:var(--ink);color:white;border-radius:30px;padding:14px 22px;font-weight:900}.journal-more small{font-size:10px;font-weight:600}
@media(max-width:950px){.activities-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.journal-grid{gap:16px}.journal-body{padding:18px}.journal-body h3{font-size:17px}}
@media(max-width:700px){.activities-paint{width:115px}.activities-grid{gap:14px}.journal-grid{grid-template-columns:1fr;gap:24px}.journal-card{display:grid;grid-template-columns:42% 1fr}.journal-thumb{height:100%;aspect-ratio:auto}.journal-heading .display-heading{font-size:clamp(50px,12vw,86px)}}
@media(max-width:480px){.activities-top{display:block}.activities-paint{position:absolute;right:-30px;top:55px;opacity:.28}.activities-grid{grid-template-columns:1fr}.activities-grid article{padding:22px}.journal-card{grid-template-columns:1fr}.journal-thumb{aspect-ratio:16/9}.journal-doodle{display:none}.journal-more small{display:block}.about-founder small{line-height:1.7;display:inline-block}}

/* V30: intentional visual transition between ABOUT US and OUR PHILOSOPHY.
   A lavender-tinted panel and ink divider echo the existing ATELIER DAYS boundary. */
.philosophy.section {
  background: #eee4fa;
  border-top: 3px solid var(--ink);
}

/* v31: ACCESS map and entrance photo */
.access-content{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6%;align-items:center}
.access-content>div{min-width:0}
.access-entrance-photo{max-width:390px;margin:30px 18px 22px 5px}
.access-entrance-photo img{aspect-ratio:4/2.6;object-fit:cover}
.access-map-wrap{min-width:0}
.access-map-wrap iframe{display:block;width:100%;height:490px;border:3px solid var(--ink);border-radius:4px;box-shadow:10px 10px 0 var(--ink);background:#fff}
.access-map-caption{font-size:12px;line-height:1.8;margin:24px 0 0}
@media(max-width:800px){.access-content{grid-template-columns:1fr;gap:42px}.access-entrance-photo{max-width:460px}.access-map-wrap iframe{height:390px}}
@media(max-width:480px){.access-map-wrap iframe{height:340px;box-shadow:7px 7px 0 var(--ink)}.access-entrance-photo{margin-right:12px}}

/* v32: linked journal cards */
.journal-grid>.journal-card-link{display:block;min-width:0;color:inherit;text-decoration:none}.journal-grid>.journal-card-link .journal-card{height:100%}.journal-grid>.journal-card-link:hover .journal-thumb img{transform:scale(1.04)}.journal-grid>.journal-card-link .journal-thumb img{transition:transform .3s}.journal-grid>.journal-card-link:focus-visible{outline:4px solid var(--purple);outline-offset:5px}

/* v35: Keep JOURNAL article excerpts visible at every viewport width. */
.journal-card-link{min-width:0;}
.journal-body{min-width:0;}
.journal-body p{display:block!important;visibility:visible!important;opacity:1!important;overflow:visible!important;max-height:none!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;white-space:normal;overflow-wrap:anywhere;}
@media(max-width:700px){
  .journal-card{display:block;}
  .journal-thumb{height:auto;aspect-ratio:16/10;}
  .journal-body{padding:20px 22px 26px;}
}
@media(min-width:481px) and (max-width:700px){
  .journal-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:480px){
  .journal-grid{grid-template-columns:1fr;}
  .journal-thumb{aspect-ratio:16/9;}
}

/* v36: prevent page-level horizontal panning on narrow viewports.
   The root scroll container must be clipped as well as body: rotated
   decorations can otherwise expand the document's scrollable width. */
html { max-width:100%; overflow-x:hidden; overflow-x:clip; }
body { max-width:100%; overflow-x:hidden; overflow-x:clip; }

/* Ver.38: published contact details */
.access-directions a{display:inline-block;margin-top:4px;color:inherit;font-weight:800;text-decoration:underline;text-underline-offset:5px}
.contact-links{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:30px auto 0;max-width:780px;position:relative;z-index:2}
.contact-link{box-sizing:border-box;display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 12px;min-width:0;flex:1 1 300px;max-width:380px;padding:18px 22px;background:#fffaf1;border:3px solid var(--ink);box-shadow:7px 7px 0 var(--ink);color:var(--ink);text-align:left;text-decoration:none;transform:rotate(-1deg);transition:transform .18s ease,box-shadow .18s ease}
.contact-link:nth-child(2){transform:rotate(1deg)}
.contact-link:hover,.contact-link:focus-visible{transform:translateY(-3px);box-shadow:9px 10px 0 var(--ink)}
.contact-link-label{grid-column:1 / -1;font-size:12px;font-weight:800;letter-spacing:.03em}
.contact-link strong{font-family:'DM Sans','Noto Sans JP',sans-serif;font-size:clamp(17px,2.5vw,24px);overflow-wrap:anywhere}
.contact-link > span:last-child{font-size:24px;font-weight:900}
@media(max-width:480px){.contact-links{gap:18px;margin-top:24px}.contact-link{flex-basis:100%;padding:15px 17px}.contact-link strong{font-size:19px}}


/* Ver.39: hand-painted brush borders for the two CONTACT links. */
.contact-link {
  position:relative;
  isolation:isolate;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.contact-link::before,
.contact-link::after {
  content:"";
  position:absolute;
  inset:-3px;
  pointer-events:none;
  z-index:3;
  background-repeat:no-repeat;
}
.contact-link::after {
  background-image:url('assets/frame-tight-ue.svg'),url('assets/frame-tight-shita.svg');
  background-position:top center,bottom center;
  background-size:100% 10px,100% 10px;
}
.contact-link::before {
  background-image:url('assets/frame-tight-hidari.svg'),url('assets/frame-tight-migi.svg');
  background-position:left center,right center;
  background-size:10px 100%,10px 100%;
}
.contact-link:hover,.contact-link:focus-visible { box-shadow:none; }
@media(max-width:700px) {
  .contact-link::after { background-size:100% 8px,100% 8px; }
  .contact-link::before { background-size:8px 100%,8px 100%; }
}
