/* 一覧ページだけの工房の装い。詳細ページの共有CSSは変更しない。 */
body.ag-atelier-index{
 --ag-wood:#503723;--ag-wood-edge:#916a43;--ag-paper:#f3ebdc;--ag-paper-ink:#f9efd8;
}
/* b03は .ag-atelier-index をdivで埋め込むため、色変数は要素側にも持たせる（2026-12-04 コントラスト改善） */
.ag-atelier-index{
 --ag-wood:#503723;--ag-wood-edge:#916a43;--ag-paper:#f3ebdc;--ag-paper-ink:#f9efd8;
 background-color:var(--ag-paper);
 background-image:radial-gradient(ellipse at 15% 0,#fff9ed 0,transparent 55%),linear-gradient(90deg,#dac9ab12,transparent 50%,#dac9ab12);
}
.ag-atelier-index .ag-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.ag-atelier-index .ag-hero.ag-workshop-hero{
 display:block;min-height:0;padding:7px;margin:8px 0 0;
 border:2px solid #4b3323;border-radius:3px;background:linear-gradient(135deg,#9d764d,#503522 50%,#87623f);
 box-shadow:inset 0 0 0 1px #c29a67,0 7px 18px #49321d26;
}
.ag-atelier-index .ag-hero-picture,.ag-atelier-index .ag-hero-picture img{display:block;width:100%}
.ag-atelier-index .ag-hero-picture img{height:auto;object-fit:contain;border:1px solid #352b20}
.ag-atelier-index .ag-hero-welcome{text-align:center;padding:22px 0 30px}
.ag-atelier-index .ag-hero-welcome>p{font-size:15px;color:#67543e;margin:0 0 18px;letter-spacing:.05em}
.ag-atelier-index .ag-hero-actions{display:flex;justify-content:center;align-items:stretch;flex-wrap:wrap;gap:12px}
.ag-atelier-index .ag-hero-actions .ag-upcoming-jump{margin:0;padding:12px 20px;justify-content:center;border:1px solid #a99170;background:#fff9ee;color:#54432f;border-radius:2px;font-size:14px;text-decoration:none}
.ag-atelier-index .ag-hero-actions .ag-upcoming-jump:hover{background:#e9dcc5}
.ag-atelier-index .ag-shelf-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:25px 0 12px}
.ag-atelier-index .ag-hanging-sign{
 position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
 color:var(--ag-paper-ink);background:repeating-linear-gradient(0deg,transparent 0 5px,#1f110c14 6px,transparent 7px 11px),linear-gradient(105deg,#6d4b2f,#493121 54%,#60432d);
 border:3px solid var(--ag-wood-edge);border-radius:3px;padding:17px 12px 15px;
 box-shadow:inset 0 0 0 1px #2e1e16,0 4px 7px #49321d26;text-decoration:none;text-align:center;
}
.ag-atelier-index .ag-hanging-sign::before,.ag-atelier-index .ag-hanging-sign::after{content:'';position:absolute;top:-25px;width:3px;height:25px;background:repeating-linear-gradient(150deg,#aa9170 0 3px,#715b40 3px 5px);box-shadow:1px 0 1px #44302033}
.ag-atelier-index .ag-hanging-sign::before{left:19%}
.ag-atelier-index .ag-hanging-sign::after{right:19%}
.ag-atelier-index .ag-sign-ja{font-size:clamp(16px,1.8vw,21px);line-height:1.6;letter-spacing:.03em}
.ag-atelier-index .ag-sign-en{font:12px/1.6 Georgia,"Times New Roman",serif;letter-spacing:.025em;color:#e8d7b6}
.ag-atelier-index .ag-sign-count{font:11px/1.8 sans-serif;color:#eee0c7;margin-top:7px;border-top:1px solid #b79a6c66;padding:5px 12px 0}
.ag-atelier-index .ag-shelf-nav a:hover{background-color:#765435;border-color:#bb9460;box-shadow:inset 0 0 0 1px #b79360,0 6px 12px #49321d33}
.ag-atelier-index .ag-upcoming{display:flex;align-items:center;gap:20px;padding:16px 24px;background:#ece2d3;border-color:#c7b28f;scroll-margin-top:24px}
.ag-atelier-index .ag-upcoming-maho{display:block;flex:none;width:92px;height:auto;align-self:flex-end}
.ag-atelier-index .ag-upcoming>div{min-width:0}
.ag-atelier-index .ag-upcoming p{font-size:14px;color:#65503a;margin:0 0 8px}
.ag-atelier-index .ag-upcoming a{color:#4e422f;font-size:14px}
.ag-atelier-index [data-mahoroba-atelier] .atw-shelf{border:0;padding:38px 0 36px}
.ag-atelier-index [data-mahoroba-atelier] .atw-shelf>h2.ag-hanging-sign{width:fit-content;max-width:100%;min-width:250px;margin:0 auto 14px;padding:18px 30px;color:var(--ag-paper-ink);font-weight:500}
.ag-atelier-index .atw-shelf .ag-sign-ja{font-size:clamp(23px,2.5vw,29px)}
.ag-atelier-index .atw-shelf .ag-sign-en{font-size:14px}
.ag-atelier-index .ag-shelf-purpose{text-align:center;font-size:15px;color:#725f45;margin:0}
.ag-atelier-index [data-mahoroba-atelier] .atw-shelf-count{text-align:center;font-size:12px;color:#786c57;margin:4px 0 0}
.ag-atelier-index [data-mahoroba-atelier] .atw-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.ag-atelier-index [data-mahoroba-atelier] .atw-shelf>.atw-grid{position:relative;padding-bottom:25px;margin-bottom:22px}
.ag-atelier-index .atw-shelf>.atw-grid::after{content:'';position:absolute;bottom:0;left:0;right:0;height:11px;background:linear-gradient(#a37b50 0 25%,#735031 30% 75%,#4d3422 80%);border-radius:2px;box-shadow:0 5px 7px #49321d26}
.ag-atelier-index [data-mahoroba-atelier] .atw-grid>.atw-featured{grid-column:auto;display:flex;flex-direction:column;align-items:stretch}
.ag-atelier-index [data-mahoroba-atelier] .atw-art{height:250px;border-bottom:1px solid #d7ceba;background:#eee6d6}
.ag-atelier-index [data-mahoroba-atelier] .atw-featured .ag-card-crop{height:250px;width:147px;margin:0 auto;padding:0;background:transparent}
.ag-atelier-index [data-mahoroba-atelier] .atw-copy{padding:22px}
.ag-atelier-index [data-mahoroba-atelier] .atw-featured h2{font-size:23px;line-height:1.65;margin-bottom:12px}
.ag-atelier-index [data-mahoroba-atelier] .atw-featured .atw-copy>p{font-size:14px;line-height:1.95}
.ag-atelier-index [data-mahoroba-atelier] .atw-shelf>button{display:block;margin:0 auto;border-color:#977b52;background:#fffaef;color:#57432c}
.ag-atelier-index [data-mahoroba-atelier] .atw-shelf>button[hidden]{display:none}
@media(min-width:601px) and (max-width:1023px){
 .ag-atelier-index [data-mahoroba-atelier] .atw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767px){
 .ag-atelier-index .ag-shelf-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 16px;padding-top:24px}
 .ag-atelier-index .ag-sign-ja{font-size:16px;letter-spacing:0}
 .ag-atelier-index .ag-sign-en{font-size:11px;letter-spacing:0}
}
@media(max-width:600px){
 .ag-atelier-index .ag-hero.ag-workshop-hero{padding:3px;margin-top:0}
 .ag-atelier-index .ag-hero-welcome{padding:20px 0 24px}
 .ag-atelier-index .ag-hero-welcome>p{font-size:13px;letter-spacing:0}
 .ag-atelier-index .ag-hero-actions{gap:10px}
 .ag-atelier-index .ag-hero-actions>a{width:100%;justify-content:center}
 .ag-atelier-index .ag-hero-actions .ag-upcoming-jump{font-size:13px;padding:10px 12px}
 .ag-atelier-index .ag-hanging-sign{padding:14px 7px 12px;border-width:2px}
 .ag-atelier-index .ag-upcoming{gap:12px;padding:14px 12px}
 .ag-atelier-index .ag-upcoming-maho{width:65px}
 .ag-atelier-index .ag-upcoming p,.ag-atelier-index .ag-upcoming a{font-size:13px}
 .ag-atelier-index [data-mahoroba-atelier] .atw-grid{grid-template-columns:minmax(0,1fr);gap:22px}
 .ag-atelier-index [data-mahoroba-atelier] .atw-shelf{padding:38px 0 24px}
 .ag-atelier-index [data-mahoroba-atelier] .atw-shelf>h2.ag-hanging-sign{min-width:0;width:fit-content;padding:16px 24px}
}

/* === easel: cards leaned like canvases (2026-11-25) === */
[data-mahoroba-atelier] .atw-card{position:relative;--tilt:-1.1deg;transform:rotate(var(--tilt));box-shadow:0 16px 30px rgba(38,60,51,.16),0 3px 8px rgba(38,60,51,.1);transition:transform .45s ease,box-shadow .45s ease,opacity .6s ease}
[data-mahoroba-atelier] .atw-grid .atw-card:nth-child(even){--tilt:1deg}
[data-mahoroba-atelier] .atw-carousel .atw-card:nth-child(even){--tilt:.9deg}
[data-mahoroba-atelier] .atw-card::before{content:"";position:absolute;top:10px;left:50%;width:96px;height:26px;margin-left:-48px;background:rgba(243,234,205,.85);border-left:1px dashed rgba(120,110,80,.4);border-right:1px dashed rgba(120,110,80,.4);transform:rotate(-3deg);z-index:3;box-shadow:0 1px 3px rgba(38,60,51,.18);pointer-events:none}
[data-mahoroba-atelier] .atw-card.ag-reveal{opacity:0;transform:rotate(var(--tilt)) translateY(34px)}
[data-mahoroba-atelier] .atw-card.ag-in{opacity:1;transform:rotate(var(--tilt)) translateY(0)}
[data-mahoroba-atelier] .atw-card:hover{transform:rotate(0deg) translateY(-5px);box-shadow:0 24px 40px rgba(38,60,51,.22),0 4px 10px rgba(38,60,51,.12)}
@media (prefers-reduced-motion: reduce){[data-mahoroba-atelier] .atw-card{transform:none;transition:none}[data-mahoroba-atelier] .atw-card.ag-reveal{opacity:1}}

.ag-atelier-index [data-mahoroba-atelier] .atw-shelf:nth-of-type(odd)>h2.ag-hanging-sign{transform:rotate(-1.1deg)}
.ag-atelier-index [data-mahoroba-atelier] .atw-shelf:nth-of-type(even)>h2.ag-hanging-sign{transform:rotate(.9deg)}

/* === drawers: 作品の引き出し（2026-12-04、棚から作り替え） === */
.ag-atelier-index .atw-drawers{display:flex;flex-direction:column;gap:20px}
.ag-atelier-index .atw-drawer{
 border:3px solid var(--ag-wood-edge);border-radius:8px;overflow:hidden;background:#57402a;
 background-image:repeating-linear-gradient(0deg,transparent 0 5px,#1f110c14 6px,transparent 7px 11px),linear-gradient(105deg,#6d4b2f,#493121 54%,#60432d);
 box-shadow:inset 0 0 0 1px #2e1e16,0 6px 14px #49321d26;scroll-margin-top:24px;
}
.ag-atelier-index .atw-drawer-heading{margin:0;font-weight:500}
.ag-atelier-index .atw-drawer-front{
 position:relative;display:flex;align-items:center;gap:16px;width:100%;margin:0;
 padding:18px 20px 30px;background:transparent;border:0;color:var(--ag-paper-ink);
 font:inherit;text-align:left;cursor:pointer;
}
.ag-atelier-index .atw-drawer-front:hover{background:#ffffff10}
.ag-atelier-index .atw-drawer-front:focus-visible{outline:3px solid #e8c97a;outline-offset:-3px}
.ag-atelier-index .atw-drawer-tag{
 flex:none;background:linear-gradient(180deg,#ecdcae,#cdb27e);color:#4c3a20;
 font:700 12px/1 Georgia,"Times New Roman",serif;letter-spacing:.08em;padding:7px 8px;border-radius:3px;
 box-shadow:inset 0 0 0 1px #8a6f42,0 2px 3px #2e1e1655;transform:rotate(-2deg);
}
.ag-atelier-index .atw-drawer-plate{
 flex:none;display:flex;flex-direction:column;gap:2px;background:var(--ag-paper);color:#4e3a26;
 padding:10px 16px 9px;border-radius:2px;transform:rotate(-.5deg);
 box-shadow:0 2px 5px #2e1e1640,inset 0 0 0 1px #c9b28a;
}
.ag-atelier-index .atw-drawer-name{font-size:clamp(19px,2.2vw,24px);font-weight:600;letter-spacing:.04em;line-height:1.35}
.ag-atelier-index .atw-drawer-sub{font-size:12px;color:#7a6448;line-height:1.5}
.ag-atelier-index .atw-drawer-count{font-size:11px;color:#977b52;letter-spacing:.12em}
.ag-atelier-index .atw-drawer-rep{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0}
.ag-atelier-index .atw-drawer-rep-label{flex:none;font-size:11px;color:#e8d7b6;letter-spacing:.14em}
.ag-atelier-index .atw-drawer-rep img{flex:none;width:74px;height:52px;object-fit:cover;border-radius:3px;border:1px solid #2e1e16;box-shadow:0 2px 4px #2e1e1640}
.ag-atelier-index .atw-drawer-rep-title{font-size:13px;line-height:1.55;color:#f3e9d2;max-width:290px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ag-atelier-index .atw-drawer-handle{
 position:absolute;left:50%;bottom:9px;transform:translateX(-50%);width:112px;height:10px;border-radius:5px;
 background:linear-gradient(180deg,#dec98f,#a5854f);box-shadow:inset 0 0 0 1px #6e5626,0 2px 3px #2e1e1666;pointer-events:none;
}
.ag-atelier-index .atw-drawer-handle::before{content:'';position:absolute;left:-16px;top:2px;width:7px;height:7px;border-radius:50%;background:#8a6f42;box-shadow:inset 0 0 0 1px #5e4a24}
.ag-atelier-index .atw-drawer-handle::after{content:'';position:absolute;right:-16px;top:2px;width:7px;height:7px;border-radius:50%;background:#8a6f42;box-shadow:inset 0 0 0 1px #5e4a24}
.ag-atelier-index .atw-drawer-toggle{
 flex:none;font-size:12px;color:#f3e9d2;border:1px solid #b79a6c99;border-radius:999px;padding:6px 13px;letter-spacing:.08em;white-space:nowrap;
}
.ag-atelier-index .atw-drawer-toggle::after{content:'▾';margin-left:6px;display:inline-block;transition:transform .35s ease}
.ag-atelier-index .atw-drawer-open .atw-drawer-toggle::after{transform:rotate(180deg)}
.ag-atelier-index .atw-drawer-slide{display:grid;grid-template-rows:0fr;transition:grid-template-rows .5s ease}
.ag-atelier-index .atw-drawer-open .atw-drawer-slide{grid-template-rows:1fr}
.ag-atelier-index .atw-drawer-inner{overflow:hidden;visibility:hidden;transition:visibility 0s linear .5s;min-height:0}
.ag-atelier-index .atw-drawer-open .atw-drawer-inner{visibility:visible;transition-delay:0s}
.ag-atelier-index .atw-drawer-inner .atw-grid{
 position:relative;background:linear-gradient(#dcc9a2,#eadbb8);padding:24px;
 box-shadow:inset 0 16px 18px -10px #4d342273,inset 0 -8px 14px -10px #4d34224d;
}
.ag-atelier-index .atw-drawer-inner .atw-grid::before{
 content:'';position:absolute;top:0;left:0;right:0;height:5px;
 background:linear-gradient(90deg,#8a6f42,#d3b578 30%,#8a6f42 55%,#d3b578 80%,#8a6f42);
 box-shadow:0 1px 2px #4d342255;
}
@media(max-width:600px){
 .ag-atelier-index .atw-drawer-front{flex-wrap:wrap;gap:12px;padding:16px 14px 30px}
 .ag-atelier-index .atw-drawer-plate{padding:9px 13px 8px}
 .ag-atelier-index .atw-drawer-rep{margin-left:0;width:100%}
 .ag-atelier-index .atw-drawer-rep-title{max-width:none}
 .ag-atelier-index .atw-drawer-inner .atw-grid{padding:20px 14px}
}
@media (prefers-reduced-motion: reduce){
 .ag-atelier-index .atw-drawer-slide{transition:none}
 .ag-atelier-index .atw-drawer-inner{transition:none}
 .ag-atelier-index .atw-drawer-toggle::after{transition:none}
}

/* === drawer front contrast (2026-12-04 今西の実機フィードバック) ===
   木目の地を濃くし、前面テキストは生成り〜クリーム／プレート上は濃色で固定する */
.ag-atelier-index .atw-drawer{
 background-color:#3c2716;
 background-image:repeating-linear-gradient(0deg,transparent 0 5px,#160b051f 6px,transparent 7px 11px),linear-gradient(105deg,#5b3a22,#38220f 54%,#4c3018);
}
.ag-atelier-index .atw-drawer-front{color:#fff6e0}
.ag-atelier-index .atw-drawer-plate{background:#f8f0da;color:#3a2812;box-shadow:0 2px 6px #160b0566,inset 0 0 0 1px #b89b62}
.ag-atelier-index .atw-drawer-name{color:#3a2812}
.ag-atelier-index .atw-drawer-sub{color:#5d4630}
.ag-atelier-index .atw-drawer-count{color:#6e5326;font-weight:700}
.ag-atelier-index .atw-drawer-tag{color:#3d2c12}
.ag-atelier-index .atw-drawer-rep-label{color:#f0dcb2;font-weight:600;text-shadow:0 1px 2px #160b05cc}
.ag-atelier-index .atw-drawer-rep-title{color:#fff6e0;font-weight:500;text-shadow:0 1px 3px #160b05cc}
.ag-atelier-index .atw-drawer-toggle{color:#fff6e0;border-color:#d9bc7f;background:#2e1e12a6}
.ag-atelier-index .ag-sign-ja{color:#fff6e0;text-shadow:0 1px 2px #160b0599}
.ag-atelier-index .ag-sign-en{color:#f0dcb2}
.ag-atelier-index .ag-sign-count{color:#f5e7c8}
