.theme-coffee {
  --paper:#fbf6ef;--ink:#34241d;--muted:#63534b;--line:#d9cab9;--blue:#844126;--blue-deep:#63321e;--wash:#f1e4d4;
  --feature-bg:#38251f;--feature-ink:#fff2dc;--feature-accent:#eeb988;--photo-name:"HARIOのドリップスケールを楽天市場で見る";
}
.theme-shelf {
  --paper:#f6f8f1;--ink:#192f26;--muted:#4e6154;--line:#c8d4bf;--blue:#2d5d44;--blue-deep:#1e4933;--wash:#e4efdb;
  --feature-bg:#dbe8ca;--feature-ink:#193c2b;--feature-accent:#315e42;--photo-name:"テプラ Liteを楽天市場で見る";
}
.theme-frame {
  --paper:#f9f7ff;--ink:#241c48;--muted:#57516a;--line:#d5d0e6;--blue:#42338b;--blue-deep:#32276e;--wash:#eae5fb;
  --feature-bg:#e7e0fb;--feature-ink:#272050;--feature-accent:#533bab;--photo-name:"LEDリングライトを楽天市場で見る";
}
:where(.theme-coffee,.theme-shelf,.theme-frame) .brand-icon {width:26px;height:25px}
.theme-coffee .brand-icon::before {inset:3px auto auto 2px;width:17px;height:14px;background:var(--blue);border:0;border-radius:1px 1px 9px 9px;transform:none}
.theme-coffee .brand-icon::after {inset:5px auto auto 15px;width:9px;height:9px;border:2px solid var(--blue);border-radius:50%;background:transparent;box-shadow:-8px 11px 0 -3px var(--blue)}
.theme-shelf .brand-icon::before {inset:2px;width:auto;height:auto;border:2px solid var(--blue);border-radius:1px;transform:none;background:transparent}
.theme-shelf .brand-icon::after {inset:3px 7px 3px 9px;width:auto;height:auto;border:0;border-left:2px solid var(--blue);border-bottom:7px solid var(--blue);border-radius:0;background:none}
.theme-frame .brand-icon::before {inset:2px;width:auto;height:auto;border:2px solid var(--blue);border-radius:0;transform:none;background:none}
.theme-frame .brand-icon::after {inset:6px;width:auto;height:auto;border:0;background:var(--blue);border-radius:50%}
.feature {background:var(--feature-bg);color:var(--feature-ink)}
.feature-inner {width:min(1440px,100%);margin:auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);min-height:380px}
.feature-text {align-self:center;padding:clamp(32px,4.8vw,75px) 28px clamp(32px,4.8vw,75px) max(32px,calc((100vw - 1152px)/2));min-width:0}
.feature h1 {font-size:clamp(2.45rem,4.85vw,4.65rem);line-height:1.23;margin:0 0 18px;font-weight:750;letter-spacing:-.07em;color:inherit;word-break:keep-all;overflow-wrap:break-word}
.feature h1 em {font-style:normal;color:var(--feature-accent)}
.theme-coffee .feature h1,.theme-coffee .tool-intro h2 {font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif CJK JP",serif}
.feature-text>p {font-size:1rem;line-height:1.85;max-width:28em;margin:0 0 22px;color:inherit}
.feature-link,.download {border:0;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 21px;background:var(--feature-ink);color:var(--feature-bg);font-size:1rem;font-family:var(--sans);font-weight:720;line-height:1.5;text-decoration:none;border-radius:2px;cursor:pointer}
.feature-link:hover,.download:hover {filter:brightness(.9)}
.feature-photo {position:relative;min-width:0;min-height:310px;overflow:hidden;isolation:isolate}
.feature-photo .cover {display:block;position:absolute;inset:0;border-radius:0;width:100%;height:100%;overflow:hidden}
.feature-photo .cover img {width:100%;height:100%;display:block;object-fit:cover}
.theme-coffee .feature-photo img {object-position:68% 53%}
.theme-shelf .feature-inner {grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
.theme-shelf .feature-text {order:2;padding-left:clamp(30px,5.1vw,82px);padding-right:max(28px,calc((100vw - 1235px)/2))}
.theme-shelf .feature-photo {order:1}
.theme-shelf .feature-photo img {object-position:52% 55%}
.theme-frame .feature h1 {font-weight:850;letter-spacing:-.075em}
.theme-frame .feature-photo img {object-position:50% 61%}
.theme-frame .feature-photo::after {content:"";position:absolute;inset:10% 20%;pointer-events:none;border:1px solid #fff9;background:linear-gradient(white,white) left top/22px 3px no-repeat,linear-gradient(white,white) left top/3px 22px no-repeat,linear-gradient(white,white) right bottom/22px 3px no-repeat,linear-gradient(white,white) right bottom/3px 22px no-repeat}
.studio-tool {padding-block:clamp(34px,4.8vw,66px) 8px;scroll-margin-top:12px}
.tool-intro {display:flex;justify-content:space-between;align-items:baseline;gap:22px;margin-bottom:15px}
.tool-intro h2 {font-size:clamp(1.65rem,2.7vw,2.65rem);letter-spacing:-.055em;line-height:1.3;margin:0}
.tool-intro p {margin:0;max-width:35em;color:var(--muted);font-size:.94rem;line-height:1.7}
.tool-desk {display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);border-block:2px solid var(--ink);background:var(--paper)}
.settings,.result {min-width:0;padding:clamp(18px,2.5vw,35px)}
.settings {display:flex;flex-direction:column;gap:18px;padding-left:0}
.result {background:var(--wash);border-left:1px solid var(--line);display:flex;flex-direction:column;justify-content:center}
.choice,.dimset {border:0;margin:0;padding:0;min-width:0}
.settings :is(legend,.number>span:first-child,.upload>span:first-child,.position>span:first-child) {font-size:.9375rem;line-height:1.5;font-weight:680;padding:0;color:var(--ink)}
.settings legend {margin:0 0 7px}
.choice-row {display:flex;flex-wrap:wrap;gap:6px}
.choice-row label {flex:1;position:relative;min-width:fit-content;cursor:pointer}
.choice-row input {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.choice-row span {display:block;text-align:center;border:1px solid var(--line);background:var(--paper);padding:8px 7px;min-height:42px;font-weight:630;font-size:.9375rem;line-height:1.65;border-radius:2px;color:var(--ink)}
.choice-row input:checked+span {color:var(--paper);background:var(--blue);border-color:var(--blue)}
.choice-row input:focus-visible+span {outline:3px solid var(--ink);outline-offset:2px}
.number {display:flex;align-items:center;justify-content:space-between;gap:12px}
.quantity {position:relative;display:flex;align-items:center;min-width:0}
.quantity input {width:6.4rem;max-width:100%;min-height:42px;padding:6px 1.85rem 6px 9px;border:1px solid var(--line);border-radius:2px;background:#fffefc;color:var(--ink);font:620 1.1rem/1.45 var(--figures);font-variant-numeric:tabular-nums}
.quantity>span {position:absolute;right:8px;pointer-events:none;font-size:.875rem;color:var(--muted)}
.quantity input[aria-invalid="true"] {border:2px solid #b8322d}
.dimensions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dimensions .number {display:grid;min-width:0;gap:3px}
.dimensions .number>span:first-child {font-weight:480;font-size:.875rem;color:var(--muted)}
.dimensions input {width:100%}
.result-label {color:var(--ink);margin:0 0 4px;font-size:1rem;font-weight:660}
.readout output {display:block;color:var(--blue-deep);font:660 clamp(2.3rem,4.2vw,3.8rem)/1.12 var(--figures);letter-spacing:-.055em;overflow-wrap:anywhere}
.readout>p:last-child:not(:first-child) {font-size:.95rem;color:var(--muted);margin:8px 0 0;line-height:1.6}
.pour,.plan-figure,.viewfinder {margin:19px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.pour h3,.plan-figure figcaption {margin:0 0 10px;font-size:1rem;font-weight:700}
.pour ol {list-style:none;padding:0;margin:0;display:grid;gap:5px}
.pour li {display:grid;grid-template-columns:3.7rem 1fr 4.9rem;gap:9px;align-items:center;font-size:.94rem}
.pour li b {text-align:right;font-variant-numeric:tabular-nums}
.pour-track {height:7px;background:#dac3ab;border-radius:4px;overflow:hidden}
.pour-track i {display:block;height:100%;background:var(--blue);border-radius:inherit}
.pour>p,.viewfinder figcaption,.plan-key,.file-hint {font-size:.875rem;line-height:1.6;color:var(--muted);margin:9px 0 0}
.plan-figure figcaption {display:flex;justify-content:space-between;gap:6px}
.plan-figure figcaption span {font-weight:450;color:var(--muted)}
.plan-field {min-height:138px;display:grid;align-items:center;justify-items:center;background:repeating-linear-gradient(0deg,transparent 0 15px,#d9e2d3 15px 16px),repeating-linear-gradient(90deg,transparent 0 15px,#d9e2d3 15px 16px),#f3f6ef;border:1px solid var(--line);padding:17px;overflow:hidden}
.plan-board {width:min(100%,calc(156px * var(--aspect)));aspect-ratio:var(--aspect);position:relative;outline:2px solid #304d3d;background:#fffbf2;overflow:hidden}
.plan-box,.plan-dense {position:absolute;display:block;background:#a1b69a;border:1px solid #4e6c51;box-sizing:border-box}
.plan-box::after {content:"";position:absolute;bottom:7%;left:35%;width:30%;height:3px;background:#42664c}
.plan-box.turned::after {left:89%;bottom:35%;height:30%;width:3px}
.plan-dense {inset:0 auto auto 0;background-color:#a1b69a;background-image:linear-gradient(to right,#4e6c51 1px,transparent 1px),linear-gradient(to bottom,#4e6c51 1px,transparent 1px)}
.plan-key {display:flex;align-items:center;gap:6px}
.plan-key i {width:12px;height:12px;background:#a1b69a;border:1px solid #4e6c51}
.plan-key span {margin-left:auto}
.upload,.position {display:grid;gap:7px}
.upload input {color:var(--muted);font:inherit;max-width:100%;font-size:.875rem;line-height:1.6}
.upload input::file-selector-button {border:1px solid var(--blue);color:var(--blue);font:650 .94rem var(--sans);background:var(--paper);padding:10px 11px;margin-right:7px;border-radius:2px;cursor:pointer}
.file-hint {margin:0}.quiet {align-self:start;border:0;padding:3px 0;text-decoration:underline;color:var(--blue);font:inherit;background:transparent;cursor:pointer}
.position>span:first-child {display:flex;justify-content:space-between;align-items:center}.position strong {font-size:.875rem;color:var(--muted);font-weight:480}
.position input {width:100%;min-height:28px;accent-color:var(--blue);margin:0}
.slider-ends {display:flex;justify-content:space-between;font-size:.875rem;line-height:1.35;color:var(--muted)}
.download {background:var(--blue);color:white;align-self:start}.download[aria-disabled="true"] {opacity:.65;cursor:default}
.readout.compact output {font-size:clamp(1.6rem,3.05vw,2.75rem)}
.preview-bound {display:grid;place-items:center;background:#322b47;border:1px solid #4b4261;min-height:145px;padding:6px}
.sample {position:relative;overflow:hidden;width:min(100%,calc(230px * var(--aspect)));aspect-ratio:var(--aspect)}
.sample img {display:block;width:100%;height:100%;object-fit:contain}
.crop {position:absolute;border:2px solid #fff;box-shadow:0 0 0 200vmax #211733a8;pointer-events:none;box-sizing:border-box}
.crop::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 33.1%,#fff6 33.1% 33.6%,transparent 33.6% 66.3%,#fff6 66.3% 66.8%,transparent 66.8%),linear-gradient(0deg,transparent 33.1%,#fff6 33.1% 33.6%,transparent 33.6% 66.3%,#fff6 66.3% 66.8%,transparent 66.8%)}
.tool-error {margin:0;font-size:.94rem;color:#a52026}.tool-error:empty {display:none}
.article-photo {margin:20px 0}.article-photo img {display:block;max-width:100%;height:auto}
.article-photo figcaption,.ratio-strip figcaption {font-size:.9rem;color:var(--muted)}
.ratio-strip {display:flex;gap:16px;align-items:flex-end;margin:20px 0}
.ratio-strip figure {margin:0;flex:1;min-width:0}.mini-crop {width:100%;overflow:hidden}.mini-crop img {width:100%;height:100%;object-fit:cover;display:block}
.mini-crop.square {aspect-ratio:1}.mini-crop.portrait {aspect-ratio:4/5}.mini-crop.wide {aspect-ratio:16/9}
.theme-hub .hub-list {grid-template-rows:repeat(3,minmax(104px,auto));grid-auto-rows:minmax(100px,auto)}
.theme-hub .hub-title h1 {max-width:none;word-break:keep-all}.theme-hub .hub-title .hub-break {display:inline}.theme-hub .hub-title p {font-size:1rem}
.theme-hub .hub-card.theme-coffee .card-kicker {color:#834125}.theme-hub .hub-card.theme-shelf .card-kicker {color:#2d5d44}.theme-hub .hub-card.theme-frame .card-kicker {color:#503d93}
.theme-hub .hub-card:first-child .card-kicker {color:#ffe5cc}
:where(.theme-coffee,.theme-shelf,.theme-frame) .article-head .intro {font-size:1rem}
:where(.theme-coffee,.theme-shelf,.theme-frame) .product-image a::after {content:var(--photo-name)}
[hidden] {display:none!important}
@media(min-width:1500px){.feature-text{padding-left:100px}.theme-shelf .feature-text{padding-right:80px}}
@media(max-width:830px){
 .feature-text{padding:32px 23px}.theme-shelf .feature-text{padding:32px 24px}
 .feature-inner,.theme-shelf .feature-inner{min-height:325px}.feature h1{font-size:clamp(2.2rem,5.6vw,3.2rem)}.feature-text>p{font-size:.95rem}
 .tool-intro{align-items:flex-start;flex-direction:column;gap:5px}.dimensions{gap:6px}
}
@media(max-width:650px){
 .feature-inner,.theme-shelf .feature-inner{grid-template-columns:1fr;min-height:0}
 .feature-text,.theme-shelf .feature-text{order:1;padding:24px 20px 21px}
 .feature-photo,.theme-shelf .feature-photo{order:2;min-height:0;height:clamp(165px,53vw,255px)}
 .feature h1{font-size:clamp(2.1rem,9.3vw,3.7rem);margin-bottom:10px;line-height:1.15}
 .feature-text>p{margin-bottom:13px;max-width:38em;line-height:1.65;font-size:1rem}
 .feature-link{min-height:42px;padding:8px 15px;font-size:.94rem}
 .tool-desk{grid-template-columns:1fr}.settings{padding:18px 0;gap:15px}.result{padding:17px 14px;border-left:0;border-top:1px solid var(--line)}
 .studio-tool{padding-top:30px}.readout output{font-size:2.5rem}.choice-row{gap:4px}
 .choice-row span{font-size:.9rem;padding-inline:5px}.plan-field{min-height:95px}
 .theme-hub .hub-list{grid-template-rows:none;grid-auto-rows:auto}
 :where(.theme-coffee,.theme-shelf,.theme-frame) .mast-inner{height:auto;min-height:48px;gap:8px;flex-wrap:wrap;align-content:center;padding-block:8px}
 :where(.theme-coffee,.theme-shelf,.theme-frame) .mastnav{gap:10px;margin:0;flex-wrap:wrap}
 :where(.theme-coffee,.theme-shelf,.theme-frame) .mastnav a{font-size:.875rem}
}
@media(max-width:360px){.feature-text,.theme-shelf .feature-text{padding-inline:16px}.ratio-strip{gap:7px}.plan-figure figcaption{flex-wrap:wrap}}
