:root{--ink:#203a35;--muted:#667772;--green:#116b50;--green-dark:#0d533e;--mint:#eaf3ed;--yellow:#f5cb59;--cream:#faf8f1;--line:#dce5df;--white:#fff;--red:#a82e33;font-family:"Yu Gothic UI","Meiryo",sans-serif;color:var(--ink);background:var(--cream);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:11px 15px;min-height:44px;font-weight:700}button:hover{border-color:var(--green);background:#f2f8f3}button:disabled{cursor:default;opacity:.52}a{color:var(--green)}button.primary{color:white;background:var(--green);border-color:var(--green)}button.primary:hover{background:var(--green-dark)}button.quiet{border:0;background:transparent;padding:8px}input,select{border:1px solid #b9c9c0;border-radius:8px;padding:11px;background:white;color:var(--ink);min-height:44px;max-width:100%}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:3px solid #d7a92e;outline-offset:3px}.demo-banner{background:#fff1c6;color:#63501c;text-align:center;padding:9px 14px;font-size:12px;line-height:1.7}.demo-banner b{border:1px solid #9d802c;border-radius:4px;padding:1px 7px;margin-right:8px}.site-header{background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:17px max(24px,calc((100vw - 1320px)/2));gap:20px}.brand{display:flex;gap:22px;align-items:center;text-decoration:none;color:var(--ink);font-weight:700}.brand img{width:210px;height:50px;object-fit:contain}.brand span{border-left:1px solid var(--line);padding-left:22px;font-size:14px}.site-header nav{display:flex;gap:6px}.site-header nav button{border:0;background:transparent;padding:12px 22px}.site-header nav button.active{background:var(--mint);color:var(--green)}.preview-bar{max-width:1320px;margin:18px auto 0;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.preview-bar>div{display:flex;gap:4px}.preview-bar button{min-height:34px;padding:7px 12px;font-size:12px;font-weight:500}.preview-bar button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}#app{max-width:1320px;margin:0 auto;padding:30px 24px 50px;transition:max-width .15s}h1{font-size:32px;line-height:1.4;letter-spacing:.03em;margin:4px 0 10px}h2{font-size:20px;line-height:1.5;margin:0 0 16px}h3{font-size:15px;line-height:1.7;margin:0}p{line-height:1.8;margin:8px 0}.eyebrow{font-size:11px;letter-spacing:.16em;color:var(--green);font-weight:800}.hero{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:26px;gap:20px}.hero p{color:var(--muted);font-size:14px}.steps{display:flex;gap:22px;color:var(--muted);font-size:12px;white-space:nowrap;padding-bottom:10px}.steps b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--mint);color:var(--green);margin-right:5px}.school-card{display:flex;gap:18px;align-items:center;background:var(--green);color:white;border-radius:15px;padding:22px 27px;margin-bottom:28px;box-shadow:0 4px 0 #d4e1d6}.school-symbol{display:grid;place-items:center;border:1px solid #609985;border-radius:12px;width:52px;height:52px;font-size:27px;flex-shrink:0}.school-card strong{font-size:21px}.school-card small{display:block;font-size:12px;opacity:.8;margin-bottom:5px}.school-card .teacher{margin-left:auto;text-align:right;font-size:13px}.badge{display:inline-block;border-radius:5px;padding:4px 8px;font-size:11px;line-height:1.4;background:var(--mint);color:var(--green);font-weight:700}.badge.yellow{background:#fff1c6;color:#776021}.badge.gray{background:#f1f2f0;color:#65716a}.teacher-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:28px;align-items:start}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:14px}.section-head h2{margin:0}.section-head small{color:var(--muted);font-size:12px}.search{display:flex;gap:8px;margin-bottom:19px}.search input{width:100%;background:white}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.product-card{border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden;display:flex;flex-direction:column}.product-picture{width:100%;height:170px;background:#f5f7f2;display:flex;align-items:center;justify-content:center;border:0;border-radius:0;padding:16px}.product-picture img{height:100%;width:100%;object-fit:contain}.no-image{display:flex;flex-direction:column;gap:8px;align-items:center;color:#7b8a7e;font-size:11px}.no-image>span{font-size:32px;color:#9daea0}.product-content{padding:17px;flex:1;display:flex;flex-direction:column;gap:8px}.product-content h3{font-size:15px}.product-content .code{font-size:11px;color:var(--muted);margin:0}.product-content button{margin-top:auto;width:100%;color:var(--green);border-color:#a9c8b8;background:#f6faf7}.product-content select{width:100%;font-size:13px}.tagrow{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.cart-panel{position:sticky;top:18px;background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.cart-title{padding:21px 21px 18px;background:#f0f5ef;border-bottom:1px solid var(--line)}.cart-title h2{margin-bottom:5px}.cart-title p{font-size:12px;color:var(--muted);margin:0}.cart-body{padding:20px}.class-list{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 20px}.class-chip{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:7px;padding:8px;min-height:44px;font-size:12px}.class-chip:has(input:checked){background:var(--mint);border-color:#81ad98}.class-chip input{width:16px;min-height:16px;accent-color:var(--green);padding:0}.class-chip small{font-size:10px;color:var(--green)}.cart-entry{border-top:1px solid var(--line);padding:15px 0}.cart-entry-head{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:12px;font-size:13px;font-weight:700}.remove{padding:0 8px;min-height:28px;font-size:18px;border:0;color:var(--muted)}.quantity-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;font-size:12px}.quantity-row>div{display:flex;align-items:center;gap:8px}.quantity-row input{width:80px;min-height:38px;padding:7px;text-align:right}.cart-foot{border-top:1px solid var(--line);padding-top:17px}.cart-foot .primary{width:100%;margin-top:14px}.cart-summary{font-size:13px}.empty{color:var(--muted);font-size:13px;padding:22px 4px;text-align:center}.subsection{margin-top:35px}.note{font-size:12px;color:var(--muted)}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gallery-card{background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.gallery-card .product-picture{height:150px;background:white}.gallery-card h3{font-size:12px;padding:0 12px}.gallery-card p{font-size:11px;color:var(--muted);padding:0 12px}.gallery-card .badge{margin:0 12px 12px}.history-card{border:1px solid var(--line);border-radius:10px;padding:17px;background:white;margin-top:12px;font-size:13px}.history-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.history-card ul{padding-left:20px;line-height:1.9}.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:20px 24px}.stat small{color:var(--muted);font-size:12px}.stat strong{font-size:29px;display:block;margin-top:8px}.stat strong em{font-size:13px;font-weight:400;font-style:normal;margin-left:5px}.admin-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:25px}.admin-tabs button.active{background:var(--green);color:white;border-color:var(--green)}.admin-section{background:white;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:20px}.admin-section p{font-size:13px}.order-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.order-actions a{display:inline-flex;align-items:center;text-decoration:none;border:1px solid var(--line);padding:10px 13px;border-radius:8px;font-size:12px;min-height:44px}.result{padding:15px;background:var(--mint);border-radius:9px;font-size:13px;margin-top:13px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{background:#f1f5ef;white-space:nowrap;padding:13px 11px;border-bottom:1px solid var(--line)}td{padding:13px 11px;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.8}td code{white-space:nowrap;font-size:12px}.table-scroll button{padding:5px 10px;font-size:11px;min-height:34px}.alias-card{border:1px solid var(--line);border-radius:9px;padding:18px;margin-top:12px}.alias-title{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap}.alias-title strong{font-size:17px}.alias-card summary{cursor:pointer;font-size:12px;color:var(--green);padding:11px 0}.timeline{padding-left:24px;border-left:2px solid var(--line);margin:20px 0 20px 8px}.timeline>div{position:relative;padding:0 0 20px 10px}.timeline>div:before{content:"";position:absolute;left:-31px;top:4px;width:12px;height:12px;border-radius:50%;background:#d1dbd3}.timeline>div.ready:before{background:var(--green)}.timeline small{color:var(--muted);display:block;margin-top:5px}.error{font-size:13px;color:var(--red);line-height:1.8}.success-title{font-size:23px;color:var(--green)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}.dialog-head h2{margin:0;font-size:18px}dialog{max-width:650px;width:calc(100% - 24px);border:1px solid var(--line);border-radius:16px;padding:24px;color:var(--ink);max-height:90vh;overflow:auto}dialog::backdrop{background:#17332ccc}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}#viewer-body img{display:block;width:100%;max-height:63vh;object-fit:contain}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;box-shadow:0 4px 25px #0003;padding:14px 22px;border-radius:10px;z-index:5;font-size:13px;max-width:90vw;min-width:240px}footer{text-align:center;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding:26px 16px 35px;line-height:1.9}.loading{text-align:center;padding:80px 0}.line-preview #app{max-width:460px;background:var(--cream);border:1px solid var(--line);border-top:5px solid #06c755;border-radius:15px;margin:24px auto;padding:25px 16px}.line-preview .teacher-layout{grid-template-columns:1fr}.line-preview .cart-panel{position:static}.line-preview .steps{display:none}.line-preview .hero h1{font-size:25px}.line-preview .school-card{padding:16px;gap:10px;flex-wrap:wrap}.line-preview .school-symbol{display:none}.line-preview .school-card .teacher{margin-left:0;text-align:left;width:100%;font-size:12px}.line-preview .school-card strong{font-size:19px}.line-preview .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.line-preview .dashboard-stats{gap:8px}.line-preview .stat{padding:12px}.line-preview .stat strong{font-size:21px}.line-preview .admin-section{padding:15px}
@media(min-width:1350px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-picture{height:160px}}
@media(max-width:900px){.teacher-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}.steps{display:none}.brand span{display:none}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-content{padding:13px}}
@media(max-width:720px){.site-header{padding:12px 16px;gap:8px}.brand img{width:155px;height:36px}.site-header nav button{font-size:12px;padding:10px 12px}.preview-bar{align-items:flex-start;flex-direction:column;margin-top:14px;padding:0 16px;gap:7px}#app{padding:25px 16px 35px}.hero{margin-bottom:20px}h1{font-size:26px}.hero p{font-size:12px}.school-card{padding:17px;gap:12px;flex-wrap:wrap}.school-card strong{font-size:19px}.school-symbol{width:40px;height:40px;font-size:22px}.school-card .teacher{margin-left:0;text-align:left;width:100%;font-size:12px}.teacher-layout{grid-template-columns:1fr;gap:25px}.cart-panel{position:static}.product-grid{gap:12px}.product-picture{height:150px}.product-content h3{font-size:13px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-head small{font-size:10px}.dashboard-stats{gap:8px}.stat{padding:14px 12px}.stat strong{font-size:23px}.stat small{font-size:10px}.admin-section{padding:17px}.admin-tabs{gap:6px}.admin-tabs button{font-size:12px;padding:9px 12px}.dialog-actions{flex-direction:column-reverse}.dialog-actions button{width:100%}.tagrow{gap:4px}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.materials-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.material-card{border:1px solid var(--line);border-radius:10px;overflow:hidden;padding:12px}.material-card>button{width:100%;padding:0;border:0;display:block}.material-card img{width:100%;height:230px;object-fit:contain;background:#f5f5f2}.material-card h3{font-size:12px;margin-top:12px;overflow-wrap:anywhere}.line-preview .materials-grid{grid-template-columns:1fr}@media(max-width:720px){.materials-grid{grid-template-columns:1fr}}
@media(max-width:360px){.site-header{padding:12px;gap:6px}.brand img{width:128px}.site-header nav button{padding:9px 8px;white-space:nowrap}.site-header nav{gap:3px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.browse-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 12px}.browse-tabs button{font-size:12px;padding:10px}.browse-tabs button[aria-pressed=true]{background:var(--green);color:white}.breadcrumbs{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:8px 0}.breadcrumbs button{font-size:12px;padding:7px;border:0;background:transparent;text-decoration:underline}.browse-prompt{font-size:14px;font-weight:700}.category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 20px}.category-grid button{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:80px;padding:18px;background:white;border-color:#afcaba}.category-grid button span{color:var(--green);font-size:24px}.has-colors{grid-column:1/-1}.color-picker{border:0;padding:0;margin:10px 0;min-width:0}.color-picker legend{font-weight:700;font-size:14px;margin-bottom:12px}.color-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.color-list label{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:7px;min-height:44px;padding:8px;font-size:13px;cursor:pointer}.color-list label:has(input:checked){background:var(--mint);border-color:var(--green)}.color-list input{min-height:16px;width:16px;height:16px;accent-color:var(--green);flex-shrink:0;padding:0}.line-preview .color-list{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:720px){.color-list{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid button{padding:12px;font-size:14px}}

.shopping-status{background:#eaf3ed;border:1px solid #a9c8b8;padding:16px;border-radius:12px;margin:0 0 20px}.shopping-status strong{font-size:18px}.shopping-status p,.shopping-status li{font-size:13px}.shopping-status ul{padding-left:20px;max-height:150px;overflow:auto}.shopping-status button{width:100%}#shopping-status{scroll-margin-top:18px}#shopping-status:focus{outline:0}

/* 先生用：大きい文字と、一度に一つの作業。 */
.teacher-view{font-size:18px}.teacher-view #app{max-width:1000px}.teacher-view .hero h1{font-size:32px}.teacher-view .hero p{font-size:18px;color:#344c45}.order-progress{list-style:none;display:flex;padding:0;gap:8px;margin:0 0 24px;flex-wrap:wrap}.order-progress li{padding:12px 16px;background:#edf1ec;border:2px solid transparent;border-radius:9px;font-size:17px;color:#344c45}.order-progress [aria-current=step]{border-color:var(--green);background:var(--green);color:white;font-weight:700}.teacher-view .teacher-layout{display:block}.teacher-view [hidden]{display:none!important}.teacher-view .cart-panel{position:static;max-width:900px;margin:auto}.teacher-view button,.teacher-view input,.teacher-view select{min-height:52px;font-size:18px}.teacher-view h2{font-size:24px}.teacher-view h3,.teacher-view .product-content h3{font-size:21px}.teacher-view .search{display:flex;flex-direction:column;gap:8px}.teacher-view .search label{font-weight:700}.teacher-view .school-card small,.teacher-view .school-card .teacher{font-size:16px}.teacher-view .school-card strong{font-size:22px}.teacher-view .note,.teacher-view .code,.teacher-view .empty,.teacher-view .quantity-help,.teacher-view .cart-title p{font-size:16px;color:#40534b}.teacher-view .badge{font-size:15px}.teacher-view .breadcrumbs button,.teacher-view .browse-tabs button{font-size:17px}.teacher-view .browse-prompt{font-size:20px}.teacher-view .category-grid button{min-height:80px;font-size:23px}.teacher-view .color-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.teacher-view .color-list label{font-size:19px;min-height:56px;padding:12px}.teacher-view .color-list input,.teacher-view .class-chip input{min-height:24px;width:24px;height:24px;flex-shrink:0}.teacher-view .color-picker legend{font-size:20px}.teacher-view .class-list{gap:12px}.teacher-view .class-chip{font-size:20px;min-height:56px;padding:12px}.teacher-view .class-chip small{font-size:15px}.teacher-view .cart-entry-head{font-size:21px}.teacher-view .quantity-row{font-size:20px;gap:16px;padding:8px 0}.teacher-view .quantity-row input{width:110px;min-height:56px;font-size:24px;text-align:center}.teacher-view .remove{font-size:16px;min-height:48px;border:1px solid #9caea4;padding:8px 12px;white-space:nowrap}.teacher-view .cart-summary{font-size:20px;margin:22px 0}.teacher-view .cart-foot button{width:100%}.teacher-view .shopping-status strong{font-size:22px}.teacher-view .shopping-status p,.teacher-view .shopping-status li{font-size:18px}.optional-content{border-top:1px solid var(--line);margin-top:28px;padding-top:16px}.optional-content summary{cursor:pointer;min-height:52px;font-size:17px;line-height:1.8}.teacher-view dialog{font-size:20px}.teacher-view #confirmation-body h3{font-size:22px}.teacher-view #confirmation-body ul{line-height:2}.teacher-view .dialog-head h2{font-size:23px}.teacher-view #notice{font-size:18px}.teacher-view .quantity-help{margin-bottom:24px}#quantity-heading{scroll-margin-top:20px}.teacher-view .line-preview .color-list{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-view.line-preview .color-list{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:720px){.teacher-view #app{padding:22px 16px}.teacher-view .hero h1{font-size:28px}.order-progress{gap:6px}.order-progress li{font-size:15px;padding:9px 8px}.teacher-view .color-list{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-view .product-grid{grid-template-columns:1fr}.teacher-view .site-header nav button{font-size:15px;padding:8px}.teacher-view .brand img{width:132px}.teacher-view .quantity-row{flex-wrap:wrap}.teacher-view .quantity-row>div{margin-left:auto}.teacher-view .cart-body{padding:16px}.teacher-view .school-card strong{font-size:21px}.teacher-view .color-list label{font-size:18px;padding:8px}.teacher-view .color-list input{width:22px;height:22px;min-height:22px}.teacher-view .shopping-status button{font-size:18px}}
.teacher-view .preview-bar{display:none}.teacher-view .order-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-view .order-progress li{text-align:center;line-height:1.6}@media(max-width:720px){.teacher-view .order-progress li{padding:8px 4px;font-size:16px}}
.order-progress li>span{display:block;font-size:20px;font-weight:700}
.product-spec{font-size:16px;line-height:1.8;margin:4px 0;color:#344c45}.teacher-view .product-spec{font-size:18px}

.product-photo{margin:0;background:white}.product-photo .product-picture{background:white}.product-photo figcaption{padding:8px 14px;font-size:13px;line-height:1.7;color:#40534b;border-bottom:1px solid var(--line)}.teacher-view .product-photo figcaption{font-size:16px}.teacher-view .product-photo .product-picture{height:200px}.product-photo img{max-height:100%}#viewer-body .note{font-size:16px}
.teacher-view .quantity-row .quantity-class{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-left:0;min-width:0}.class-option-label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:17px}.teacher-view .quantity-class select{min-width:150px;max-width:100%;font-size:20px}.quantity-value{display:flex;align-items:center;gap:8px;margin-left:auto}.teacher-view .quantity-row:has(select){border-top:1px solid var(--line);padding:18px 0}

.teacher-view .pattern-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.teacher-view .pattern-list label{flex-wrap:wrap;align-content:start;padding:8px 6px;gap:6px;min-width:0}.pattern-list img{width:100%;height:120px;object-fit:contain;order:0}.pattern-list input{order:1}.pattern-list span{order:2;width:100%;font-size:16px;overflow-wrap:anywhere}

.pattern-list .maker-picker{grid-column:1/-1;display:flex;gap:12px;align-items:center}.maker-picker select{width:100%;max-width:100%}.quantity-class{max-width:100%}

/* 商品・分類・色の一覧を3列で共通化。選択肢は広いダイアログで操作する。 */
.teacher-view .product-grid,.teacher-view .category-grid,.teacher-view .gallery-grid,.teacher-view .color-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.teacher-view .category-grid button{font-size:17px;padding:10px 6px;overflow-wrap:anywhere;gap:3px}
.teacher-view .product-card{min-width:0}.teacher-view .product-content{padding:8px 6px;gap:6px}.teacher-view .product-content h3{font-size:16px;overflow-wrap:anywhere}
.teacher-view .product-content>button{font-size:16px;padding:8px 4px;overflow-wrap:anywhere}.teacher-view .product-content .product-spec,.teacher-view .product-content .code{font-size:14px;overflow-wrap:anywhere}
.teacher-view .product-grid .product-picture{height:120px;padding:6px}.teacher-view .product-grid figcaption{font-size:13px;padding:6px;overflow-wrap:anywhere}
.teacher-view .product-grid .no-image{font-size:13px;text-align:center}.teacher-view .color-list label{min-width:0;padding:8px 6px;gap:6px;font-size:16px;overflow-wrap:anywhere}
.teacher-view .color-list:not(.pattern-list) label{flex-wrap:wrap}.teacher-view .color-list:not(.pattern-list) label span{flex:1;min-width:0}
#product-options .product-content{padding:12px}#product-options .product-content h3{font-size:21px}#product-options .product-spec{font-size:18px}#product-options .product-content>button{font-size:18px}
.teacher-view.line-preview .color-list{grid-template-columns:repeat(3,minmax(0,1fr))}
.seal-search-label,.seal-catalog .maker-picker{display:flex;flex-direction:column;gap:8px;font-size:18px}.seal-catalog input[type=search]{width:100%;font-size:18px}.seal-book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.seal-book-grid button{min-width:0;padding:6px;font-size:15px;overflow-wrap:anywhere}.seal-book-grid img{width:100%;height:150px;object-fit:contain}.seal-book-section summary{cursor:pointer;padding:16px 0;font-size:18px}.seal-selected-preview{background:#edf6ee;border:2px solid #116b50;border-radius:10px;padding:12px}.seal-selected-thumb{padding:8px;max-width:100%;width:100%;min-width:0}.seal-selected-thumb img{display:block;width:100%;height:230px;object-fit:contain}.quantity-class .seal-selected-thumb{width:120px}.quantity-class .seal-selected-thumb img{height:90px}.seal-page-view{position:relative;overflow:auto;max-height:65vh}#viewer-body .seal-page-view img{width:100%;max-height:none;margin:0}.seal-code-marker{position:absolute;border:3px solid #c73322;box-shadow:0 0 0 2px white;pointer-events:none}.seal-catalog h3{overflow-wrap:anywhere}

/* 一覧は2列。端数の1件は全幅にして空の列を残さない。 */
.teacher-view .product-grid,.teacher-view .category-grid,.teacher-view .gallery-grid,.teacher-view .color-list,.teacher-view .seal-book-grid,.teacher-view.line-preview .color-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.teacher-view .product-grid>.product-card:last-child:nth-child(odd),.teacher-view .category-grid>button:last-child:nth-child(odd),.teacher-view .gallery-grid>article:last-child:nth-child(odd),.teacher-view .pattern-list>label:last-child:nth-child(odd),.teacher-view .seal-book-grid>button:last-child:nth-child(odd){grid-column:1/-1}
.teacher-view .seal-book-grid button{margin:0;padding:6px;display:flex;flex-direction:column;justify-content:flex-start;gap:6px}
.teacher-view .seal-book-grid img,.teacher-view .pattern-list img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.teacher-view .seal-selected-preview{padding:8px}.teacher-view .seal-selected-preview .seal-selected-thumb{padding:0;margin:0}
.teacher-view .seal-selected-preview img{width:100%;height:auto;max-height:none}
.teacher-view .seal-book-section summary{padding:10px 0}.teacher-view .seal-catalog .product-content{gap:6px}
.teacher-view .category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-view .category-grid>button:last-child:nth-child(odd){grid-column:auto}

.teacher-view .category-grid.seal-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

.teacher-view .other-classes{margin:16px 0 24px;border:1px solid var(--line);border-radius:9px;padding:0 14px;background:#f7faf7}.teacher-view .other-classes summary{cursor:pointer;padding:14px 0;min-height:56px;font-size:18px;font-weight:700;color:var(--green);line-height:1.7}.teacher-view .other-classes .class-list{margin:12px 0 18px}.teacher-view #other-class-count{display:inline-block;margin-left:8px;font-size:16px}

/* 色の選択はスマホ3列、広い画面4列。シールの柄一覧は従来の2列。 */
.teacher-view .color-list.color-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.teacher-view .color-list.color-options label{display:grid;grid-template-columns:24px minmax(0,1fr);gap:6px;align-content:start;align-items:center;min-height:80px;padding:10px 8px}
.teacher-view .color-list.color-options label>span:last-child{grid-column:1/-1;font-size:16px;line-height:1.5}
.teacher-view .color-list.color-options .color-swatch{display:block;width:32px;height:25px;min-width:0;border:1px solid #89958c;border-radius:4px;box-shadow:inset 0 0 0 1px #ffffff55;justify-self:start}
.teacher-view .color-sample-note{margin:4px 0 12px;font-size:15px;line-height:1.7;color:#40534b}
@media(min-width:600px){.teacher-view .color-list.color-options{grid-template-columns:repeat(4,minmax(0,1fr))}}

.teacher-view .product-price{font-size:17px;font-weight:700;color:var(--green);margin:4px 0 8px}.teacher-view .cart-amount{font-size:24px;font-weight:700;margin:18px 0 4px}.teacher-view .quantity-row{flex-wrap:wrap}.teacher-view .quantity-amount{margin-left:auto;text-align:right;min-width:80px;font-size:18px;font-weight:700}.teacher-view .order-total{font-size:19px;font-weight:700}

.teacher-view .order-progress li{padding:0;overflow:hidden;border:0}.teacher-view .order-progress button{display:block;width:100%;height:100%;padding:9px 4px;min-height:72px;border:2px solid transparent;border-radius:9px;background:transparent;color:inherit;font-size:16px;font-weight:500;line-height:1.6}.teacher-view .order-progress button>span{display:block;font-size:20px;font-weight:700}.teacher-view .order-progress button[aria-current=step]{background:var(--green);border-color:var(--green);color:white;font-weight:700}.teacher-view .order-progress button:hover{border-color:var(--green)}

/* 4つの探し方はスマホでも横1行。文言はボタンの中で読みやすく改行する。 */
.teacher-view .browse-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch;width:100%;max-width:100%;gap:6px}.teacher-view .browse-tabs button{min-width:0;max-width:100%;width:100%;padding:10px 6px;line-height:1.45;white-space:normal}
@media(max-width:599px){.teacher-view .browse-tabs button{font-size:15px;padding:10px 3px;min-height:84px}.teacher-view .browse-tab-line{display:block;white-space:nowrap}}
@media(max-width:350px){.teacher-view .browse-tabs button{font-size:13px;padding:8px 2px;min-height:78px}}

.teacher-view :is(.community-grade-filter,.price-sort-options){display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 8px}.teacher-view :is(.community-grade-filter,.price-sort-options) button{font-size:17px;min-height:52px}.teacher-view :is(.community-grade-filter,.price-sort-options) button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:white}

#company-settings-link{display:block;margin-top:18px;font-size:16px}
.part-number-label{display:grid;gap:10px;font-weight:700;margin:20px 0 12px}.part-number-label input,.class-option-label input{box-sizing:border-box;width:100%;min-width:0;font-size:20px;padding:14px;border:1px solid #a9c2b8;border-radius:8px;background:white;color:#203a35}.required-label{font-size:15px;color:#9a3c25}.notebook-card .product-content{width:100%;box-sizing:border-box}

/* 教材を探す画面 */
:root { background: #fff; }
.teacher-view {
  --catalog-mint: #e9f6ef;
  --catalog-blue: #eaf2fc;
  --catalog-lilac: #f3ecfa;
  --catalog-apricot: #fcf0e2;
  --catalog-border: #cfe4d9;
  background: #fff;
}
.teacher-view .demo-banner {
  background: #fff0c3;
  color: #5b420e;
}
.teacher-view .site-header {
  background: #edf7f3;
  border-color: var(--catalog-border);
}
.teacher-view .school-card {
  background: linear-gradient(125deg, #0a5446, #187d63);
  border: 1px solid #0e6452;
  box-shadow: 0 5px 16px #0c624526;
}
.teacher-view #product-search {
  border-color: #b0cdbe;
  border-radius: 12px;
  background: #f1f9f5;
}
.teacher-view #product-search:focus {
  background: var(--catalog-mint);
}
.teacher-view .browse-tabs {
  padding: 5px;
  gap: 5px;
  background: #f3f8f5;
  border: 1px solid var(--catalog-border);
  border-radius: 14px;
}
.teacher-view .browse-tabs button {
  --browse-tint: var(--catalog-mint);
  background: var(--browse-tint);
  border-color: #cdded5;
  border-color: color-mix(in srgb, var(--browse-tint), #203a35 18%);
  border-radius: 10px;
}
.teacher-view .browse-tabs button[data-browse="price"] { --browse-tint: var(--catalog-blue); }
.teacher-view .browse-tabs button[data-browse="recent"] { --browse-tint: var(--catalog-lilac); }
.teacher-view .browse-tabs button[data-browse="community"] { --browse-tint: var(--catalog-apricot); }
.teacher-view .browse-tabs button[aria-pressed="true"] {
  background: #116b50;
  border-color: #116b50;
  color: #fff;
}
.teacher-view .breadcrumbs {
  gap: 6px;
  margin-block: 18px 12px;
}
.teacher-view .breadcrumbs button {
  min-height: 36px;
  padding: 5px 8px;
  border-radius: 8px;
}
.teacher-view .breadcrumbs button[aria-current="page"] {
  background: #dfefe6;
  color: #134b39;
  text-decoration: none;
}
.teacher-view .category-grid {
  gap: 9px;
}
.teacher-view .category-grid button {
  --tile-tint: #eaf5f0;
  --tile-accent: #62978a;
  border: 1px solid #cdded5;
  border-color: color-mix(in srgb, var(--tile-tint), var(--tile-accent) 42%);
  border-inline-start: 4px solid var(--tile-accent);
  border-radius: 14px;
  background: var(--tile-tint);
  background-image: linear-gradient(145deg, color-mix(in srgb, var(--tile-tint), #fff 32%), var(--tile-tint));
  box-shadow: 0 2px 0 #294a3c0d, 0 4px 8px #294a3c08;
  min-height: 75px;
  min-width: 0;
  font-size: clamp(.94rem, 4vw, 1.1rem);
  padding: .58rem .5rem;
  gap: .25rem;
}
.teacher-view .category-grid .category-label,
.teacher-view .category-grid .category-word {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.teacher-view .category-grid .category-label {
  flex: 1;
}
.teacher-view .category-grid .spec-label {
  display: grid;
  gap: .18em;
}
.teacher-view .category-grid .spec-label > span {
  color: inherit;
  font: inherit;
}
.teacher-view .category-grid .spec-label small {
  color: #41564e;
  font-size: .875rem;
  line-height: 1.35;
}
@media (max-width: 460px) {
  .teacher-view #catalog-navigation .category-grid:not(.category-entry-grid):has(> button[data-wide-label]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .teacher-view .category-grid button:not(.drawing-paper-option) {
    font-size: clamp(.9rem, 3.9vw, 1.05rem);
    padding-inline: .375rem;
  }
}
.teacher-view .category-grid .category-word {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}

.teacher-view .dialog-head > h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.teacher-view .dialog-head > [data-close] {
  flex: none;
  white-space: nowrap;
}
#product-options .has-colors .product-content > h3 {
  display: none;
}
@media (max-width: 460px) {
  .teacher-view :is(#product-options, #confirmation) {
    padding: 14px;
  }
  :is(#product-options, #confirmation) .dialog-head {
    position: sticky;
    top: 0;
    z-index: 1;
    gap: 8px;
    background: #fff;
  }
  #confirmation .dialog-head {
    top: -14px;
    margin: -14px -14px .75rem;
    padding: 14px 14px 10px;
  }
  :is(#product-options, #confirmation) .dialog-head h2 {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }
  :is(#product-options, #confirmation) .dialog-head > [data-close] {
    min-height: 44px;
    padding: 6px 8px;
    font-size: .95rem;
  }
  #product-options .product-content {
    padding: 8px;
  }
  #product-options .has-colors .product-picture {
    height: 100px;
    padding: 6px;
  }
  #product-options .color-list.color-options label {
    min-height: 64px;
    padding: 8px 6px;
  }
  #product-options .color-list.color-options label > span:last-child {
    font-size: .95rem;
    line-height: 1.45;
    text-wrap: balance;
  }
}
@media (max-width: 400px) {
  .teacher-view #product-options .color-list.color-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.teacher-view .cart-entry-name {
  font-size: 1.25rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.teacher-view .cart-entry-head {
  align-items: center;
  flex-wrap: wrap;
  margin: 4px 0 0;
}
.teacher-view .cart-entry-head .remove {
  flex: none;
  min-height: 44px;
  margin-inline-start: auto;
}
.teacher-view .quantity-row {
  gap: .4rem .65rem;
}
.teacher-view .quantity-row .quantity-class {
  flex: 1 1 10rem;
  align-items: stretch;
  gap: .35rem;
}
.teacher-view .quantity-row .class-option-label {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .45rem;
  width: 100%;
  min-width: 0;
  font-size: 1rem;
}
.teacher-view .quantity-row .class-option-label :is(select, input) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: .5rem;
  font-size: 1.05rem;
}
.teacher-view .quantity-row .quantity-value {
  margin-inline: 0;
  gap: .4rem;
  white-space: nowrap;
}
.teacher-view .quantity-value input {
  width: clamp(68px, 25vw, 105px);
  min-height: 48px;
  font-size: 1.25rem;
}
.teacher-view .quantity-amount {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  min-width: 0;
  margin-inline-start: auto;
  white-space: nowrap;
}
.quantity-amount small {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
}
.quantity-error {
  flex-basis: 100%;
  margin: 0;
  color: var(--red);
  font-size: .9rem;
}
.quantity-value input[aria-invalid="true"] {
  border-color: var(--red);
}
@media (max-width: 599px) {
  .teacher-view .quantity-row .quantity-class {
    flex-basis: 100%;
  }
  .teacher-view .quantity-row:has(select) {
    padding: .65rem 0;
  }
}

.review-school {
  display: grid;
  gap: .15rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.review-school span,
.review-item-option,
.review-unit-price {
  font-size: .95rem;
}
.review-class {
  margin-top: .9rem;
}
.teacher-view #confirmation-body .review-class > h3 {
  padding: .35rem .55rem;
  border-radius: 6px;
  background: var(--mint);
  font-size: 1.1rem;
  line-height: 1.45;
}
.teacher-view #confirmation-body .review-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  line-height: 1.45;
}
.review-item {
  display: grid;
  gap: .2rem;
  padding: .55rem .15rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}
.review-item-name,
.review-item-option {
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.review-item-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .55rem;
  font-variant-numeric: tabular-nums;
}
.review-item-values span,
.review-item-total {
  white-space: nowrap;
}
.review-item-quantity {
  font-weight: 700;
}
.review-unit-price,
.review-item-option {
  color: #40534b;
}
.review-item-total {
  margin-inline-start: auto;
}
.teacher-view .category-grid button:hover {
  border-color: var(--tile-accent);
  background: var(--tile-tint);
  box-shadow: 0 4px 11px #294a3c19;
}
.teacher-view .category-grid .category-arrow {
  flex: 0 0 1em;
  font-size: .9em;
  text-align: center;
  color: color-mix(in srgb, var(--tile-accent), var(--ink) 55%);
}
.teacher-view .category-grid button.drawing-paper-option {
  font-size: .95rem;
  padding-inline: .4rem;
}
.teacher-view .category-grid .drawing-paper-option-label {
  display: grid;
  gap: .16em;
  flex: 1;
  min-width: 0;
  container-type: inline-size;
}
.teacher-view .category-grid .drawing-paper-option-label,
.teacher-view .category-grid .drawing-paper-option-label > span {
  color: inherit;
  font-size: inherit;
  line-height: 1.3;
}
.teacher-view .category-grid .drawing-paper-option-label > span:not(:only-child) {
  font-size: min(1em, 17cqi);
  white-space: nowrap;
}
.teacher-view .category-grid .drawing-paper-option-label > span + span {
  font-size: min(.925em, 17cqi);
}
.teacher-view .category-grid button[data-category-tone="paper"] { --tile-accent:#5f88c5; --tile-tint:#edf4fb; }
.teacher-view .category-grid button[data-category-tone="notebooks"] { --tile-accent:#7b93b7; --tile-tint:#edf1f7; }
.teacher-view .category-grid button[data-category-tone="posting"] { --tile-accent:#64948b; --tile-tint:#edf6f1; }
.teacher-view .category-grid button[data-category-tone="hygiene"] { --tile-accent:#699e99; --tile-tint:#edf6f5; }
.teacher-view .category-grid button[data-category-tone="writing"] { --tile-accent:#987bc1; --tile-tint:#f5eefb; }
.teacher-view .category-grid button[data-category-tone="fixing"] { --tile-accent:#be8444; --tile-tint:#fff3e5; }
.teacher-view .category-grid button[data-category-tone="tape"] { --tile-accent:#bc9760; --tile-tint:#faf2e6; }
.teacher-view .category-grid button[data-category-tone="paint"] { --tile-accent:#a178ac; --tile-tint:#f7edf7; }
.teacher-view .category-grid button[data-category-tone="print"] { --tile-accent:#8676a4; --tile-tint:#f1edf8; }
.teacher-view .category-grid button[data-category-tone="finish"] { --tile-accent:#ac7664; --tile-tint:#f9eee8; }
.teacher-view .category-grid button[data-category-tone="display"] { --tile-accent:#588d9d; --tile-tint:#eaf5f8; }
.teacher-view .category-grid button[data-category-tone="art"] { --tile-accent:#c46d89; --tile-tint:#fceef1; }
.teacher-view .category-grid button[data-category-tone="office"] { --tile-accent:#46978e; --tile-tint:#ebf6f4; }
.teacher-view .category-grid button[data-category-tone="storage"] { --tile-accent:#677eb5; --tile-tint:#eff2fb; }
.teacher-view .category-grid button[data-category-tone="life"] { --tile-accent:#6a9a62; --tile-tint:#eef6e9; }
.teacher-view .category-grid button[data-category-tone="play"] { --tile-accent:#ab8d39; --tile-tint:#fbf3d9; }
.teacher-view .category-grid button[data-category-tone="seals"] { --tile-accent:#c07462; --tile-tint:#fcedea; }
.teacher-view .product-card {
  border-color: var(--catalog-border);
  border-radius: 14px;
  background: #f1f9f5;
  box-shadow: 0 3px 10px #214d3b0d;
}
.teacher-view .product-card :is(.product-photo, .product-picture) {
  background: #eaf3f8;
}
.teacher-view .product-photo figcaption {
  background: #edf6fa;
}
.teacher-view .product-content > button[data-choose-options] {
  background: #ddf0e6;
  border-color: #9cc8b5;
  color: #164b3a;
  border-radius: 10px;
}
.teacher-view .product-content > button[data-choose-options]:hover {
  background: #cfe9dc;
}
.teacher-view .product-content > button[data-add] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  border-radius: 10px;
}
.teacher-view .product-content > button[data-add]:hover { background: var(--green-dark); }
.teacher-view .color-list label {
  background: #f0f8f5;
}
.teacher-view .color-list label:has(input:checked) {
  background: #daefe4;
  border-color: #629d88;
}
@media (max-width:599px) {
  .teacher-view .category-grid { gap: 7px; }
  .teacher-view .category-grid button { min-height: 64px; }
  .teacher-view .category-grid.category-entry-grid { gap: 8px; }
  .teacher-view .category-grid .category-arrow { display: none; }
  .teacher-view[data-category-mobile="2"] .category-entry-grid .major-category-button {
    padding-inline: 12px;
  }
}

.teacher-view .school-card {
  --board-mascot-width: clamp(42px, 12vw, 82px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max(var(--board-mascot-width), 68px);
  align-items: end;
  gap: 0 10px;
  margin: 0 0 20px;
  padding: 22px 20px 34px;
  border: 7px solid #ad8056;
  border-top-color: #c39b72;
  border-bottom-color: #86613e;
  border-radius: 12px;
  color: #fffbee;
  background:
    radial-gradient(ellipse at 24% 20%, #ffffff0e, transparent 52%),
    radial-gradient(ellipse at 84% 45%, #d1ead00e, transparent 55%),
    linear-gradient(125deg, #214f3f, #14392f);
  box-shadow: inset 0 1px 5px #091e1a90, 0 5px 14px #19352924;
}
.teacher-view .school-card small {
  grid-column: 1 / -1;
  color: #d9eadf;
  opacity: 1;
  margin-bottom: 6px;
  font-size: clamp(12px, 3.45vw, 15px);
}
.teacher-view .school-card h1 {
  color: inherit;
  margin: 0;
  font-size: clamp(20px, 5.5vw, 27px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .025em;
}
.teacher-view .school-card h1 span { white-space: nowrap; }
.teacher-view .school-card .teacher {
  margin: 7px 0 0;
  text-align: left;
  color: #e3efe9;
  font-size: clamp(14px, 3.85vw, 16px);
  line-height: 1.45;
}
.board-mascot {
  display: block;
  width: var(--board-mascot-width);
  height: auto;
  justify-self: end;
  margin-block-end: -15px;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px #0b271e70);
}
.invite-required {
  max-width: 600px;
  margin-inline: auto;
  padding: clamp(16px, 5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.invite-required h1 { font-size: clamp(20px, 5vw, 26px); }
.invite-required a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.invite-required a:hover { background: var(--green-dark); }
.blackboard-tray {
  position: absolute;
  inset: auto -3px -5px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(#c79d6d, #88603c);
  box-shadow: 0 2px 3px #0a201998;
  pointer-events: none;
}
.board-eraser {
  position: absolute;
  right: calc(18px + var(--board-mascot-width));
  bottom: 5px;
  width: 45px;
  height: 12px;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(#dfb162 0 28%, #962e39 30% 67%, #b37866 68% 75%, #2c2730 78%);
  box-shadow: 0 2px 3px #00160dab;
}
.board-chalk {
  position: absolute;
  height: 4px;
  border-radius: 2px;
  bottom: 6px;
  box-shadow: 0 1px 2px #071911a0;
}
.board-chalk.white { right: calc(70px + var(--board-mascot-width)); width: 19px; background: #f7efdc; }
.board-chalk.yellow { right: calc(94px + var(--board-mascot-width)); width: 15px; background: #edd483; }
@media(max-width:350px) {
  .teacher-view .school-card { padding-inline: 14px; }
}

.mobile-test-label{font-size:15px;color:#116b50;white-space:nowrap}.teacher-view .site-header{gap:8px}.teacher-view footer{font-size:15px;line-height:1.8}
