@charset "UTF-8";
:root{font-family:Arial,"Helvetica Neue","Yu Gothic",Meiryo,sans-serif;color:#171713;background:#fff;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:#fff}
button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
button:focus-visible{outline:3px solid #315dcd;outline-offset:6px}
.intro{position:fixed;inset:0;display:grid;place-items:center;background:#fff;z-index:100;transition:opacity .5s ease-in-out}
.intro[hidden]{display:none}
.intro-sign{display:flex;align-items:center;gap:14px;font-size:clamp(19px,2vw,28px);line-height:1;font-weight:500;white-space:nowrap}
.intro-sign img{width:1em;height:1em;object-fit:cover}
.intro.leaving{opacity:0;pointer-events:none}
main{opacity:0;transition:opacity .35s}
body.ready main{opacity:1}
.table{position:relative;height:100svh;overflow:hidden;isolation:isolate;background:#fff}
/* 元画像の縦横比を保ち、狭い画面では構図を中央でトリミングします。 */
.composition{position:absolute;width:max(100vw,177.785235svh);height:max(100svh,56.24764vw);left:50%;top:50%;transform:translate(-50%,-50%)}
.dish{position:absolute;inset:0;pointer-events:none}
.label{position:absolute;opacity:0;transform:translateY(20px);transition:opacity .8s,transform .8s;z-index:1}
.label h1,.label h2{font-size:clamp(30px,4vw,76px);font-weight:900;letter-spacing:-.06em;line-height:1;margin:0}
body.lettering .label{opacity:1;transform:translateY(0)}
.food{position:absolute;inset:0;width:100%;height:100%;border:0;background:none;padding:0;z-index:2;transform:translateX(var(--enter));transition:transform 1.25s cubic-bezier(.22,1,.36,1);transition-delay:var(--delay);pointer-events:none}
.food svg{width:100%;height:100%;display:block;overflow:visible;pointer-events:none}
/* SVGの透明部分はクリックを通し、奥にあるチーズやバンズも選択可能にします。 */
body.served .food svg :is(path,circle,ellipse,rect,use){pointer-events:visiblePainted}
/* 固定した食材は背景として扱い、クリックとフォーカスの対象にしません。 */
.food:disabled{cursor:default}
body.served .food:disabled svg *{pointer-events:none}
body.served .food{transform:translateX(0)}

.dish-cheese{--enter:110vw;--delay:0s;--exit-x:100%;--exit-y:-35%;z-index:1}
.dish-bun{--enter:110vw;--delay:.06s;--exit-x:100%;--exit-y:50%;z-index:2}
.dish-work{--enter:-130vw;--delay:.12s;--exit-x:-100%;--exit-y:-35%;z-index:3}
.dish-contact{--enter:130vw;--delay:.18s;--exit-x:70%;--exit-y:90%;z-index:4}
.dish-note{--enter:-110vw;--delay:.24s;--exit-x:-100%;--exit-y:30%;z-index:5}
.dish-info{--enter:110vw;--delay:.3s;--exit-x:100%;--exit-y:-20%;z-index:6}
.dish-work .label{left:14%;top:16%}
.dish-info .label{left:64%;top:29%}
.dish-info .label h2{font-size:clamp(24px,3vw,58px)}
.dish-contact .label{left:37%;top:63%}
.dish-note .label{left:9%;top:65%}
.panel{position:absolute;z-index:20;width:max-content;max-width:calc(100% - 32px);padding:0;border:0;background:none;opacity:0;pointer-events:auto;outline:none;transition:opacity .35s}
.panel h2{font-size:clamp(20px,2.5vw,34px);letter-spacing:-.04em;margin:0 0 10px}
.panel p{font-size:16px;line-height:1.6;margin:0}
.panel .english-name{letter-spacing:1px}

.dish.open .label{opacity:0}
body.served .dish.open .food{transform:translate(var(--exit-x),var(--exit-y)) rotate(20deg);transition-delay:0s}
body.served .dish.open .food svg *{pointer-events:none}
/* 食材の前後関係を変えず、情報だけは全食材の手前に表示します。 */
.composition:has(.dish.open) .dish{z-index:auto}
.composition:has(.dish.open) .dish-cheese .food{z-index:1}
.composition:has(.dish.open) .dish-bun .food{z-index:2}
.composition:has(.dish.open) .dish-work .food{z-index:3}
.composition:has(.dish.open) .dish-contact .food{z-index:4}
.composition:has(.dish.open) .dish-note .food{z-index:5}
.composition:has(.dish.open) .dish-info .food{z-index:6}


/* 具材を分解せず構図全体を90度回転し、文字と情報パネルだけを逆回転します。 */
@media(max-width:700px) and (orientation:portrait){
  .composition{width:max(100svh,177.785235vw);height:max(100vw,56.24764svh);transform:translate(-50%,-50%) rotate(90deg)}
  .dish{z-index:auto;--enter:130vmax}
  .dish-work,.dish-note{--enter:-130vmax}
  .dish-cheese .food{z-index:1}
  .dish-bun .food{z-index:2}
  .dish-work .food{z-index:3}
  .dish-contact .food{z-index:4}
  .dish-note .food{z-index:5}
  .dish-info .food{z-index:6}
  .dish .label{z-index:0;transform-origin:0 0;transform:rotate(-90deg) translateY(12px)}
  body.lettering .dish .label{transform:rotate(-90deg)}
  .dish .label h1,.dish .label h2{font-size:clamp(18px,5vw,26px);line-height:1.1;letter-spacing:-.045em;white-space:nowrap}
  .dish-work .label{left:18%;top:30%}
  .dish-info .label{left:75%;top:65%}
  .dish-contact .label{left:50%;top:75%}
  .dish-note .label{left:12%;top:75%}

  .panel p{font-size:16px}
  
  

}
.panel.is-visible{opacity:1;transition-delay:.35s}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important;transition-delay:0ms!important}}




@media(max-width:700px) and (orientation:portrait){#panel-bun h2{font-size:16px;line-height:1;margin:0 0 6px}#panel-bun p{font-size:14px;line-height:1.2}}

/* 指定された本文とリンクだけを、食材が退いた領域に収めます。 */
.panel a{color:inherit;text-decoration:none;font-size:clamp(16px,2vw,26px)}
.panel a:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.work-links{display:flex;flex-direction:column;gap:18px}
.social-links{display:flex;align-items:center;gap:18px}
.social-links a{display:grid;place-items:center;width:44px;height:44px}
.social-links svg{width:32px;height:32px;display:block}
#panel-info h2{font-size:clamp(18px,2vw,30px);white-space:nowrap}
@media(max-width:700px) and (orientation:portrait){.social-links{gap:12px}#panel-info p{font-size:14px}}
/* 比較案04のRubikと日本語用のZen Maru Gothicを自前配信し、食材に合わせたパネル幅を文字の基準にします。 */
@font-face{font-family:Rubik;src:url('assets/fonts/Rubik-Variable.ttf') format('truetype');font-weight:300 900;font-style:normal;font-display:swap}
@font-face{font-family:"Zen Maru Gothic";src:url('assets/fonts/ZenMaruGothic-Bold.ttf') format('truetype');font-weight:700;font-style:normal;font-display:swap}
:root{font-family:Rubik,"Zen Maru Gothic","Yu Gothic",Meiryo,sans-serif;font-weight:650}
.intro-sign{font-size:clamp(26px,3vw,42px);font-weight:900;gap:.45em}
.label h1,.label h2{font-weight:650;letter-spacing:0}
.panel{container-type:inline-size;max-width:none;line-height:1.15}
.panel a{font-size:20cqw}
#panel-work a{font-size:8cqw;white-space:nowrap}
#panel-info h2{font-size:8cqw;font-weight:650;letter-spacing:-.025em;white-space:nowrap;line-height:1.3;margin-bottom:5cqw}
#panel-info p{font-size:7cqw;line-height:1.2;white-space:nowrap}
.work-links{gap:4cqw}
.work-links > :is(a,span){font-size:16cqw;line-height:1.1;white-space:nowrap}
.work-links a:first-child{font-size:20cqw}
.social-links{gap:8cqw}
.social-links a{width:28cqw;height:28cqw}
.social-links svg{width:25cqw;height:25cqw}
@media(max-width:700px) and (orientation:portrait){#panel-work{transform:rotate(90deg)}.intro-sign{font-size:clamp(24px,6.5vw,30px)}}
/* 導入の名前は従来のゴシック体に戻し、アイコンだけ少し大きくします。 */
.intro-sign{font-family:Arial,"Helvetica Neue","Yu Gothic",Meiryo,sans-serif;font-weight:500;font-size:clamp(24px,2.6vw,36px)}
.intro-sign img{width:1.18em;height:1.18em}
/* 食材の塗り色を各項目に引き継ぎ、導入の氏名は従来のままにします。 */
.dish-work .label,#panel-work{color:#eb6655}
.dish-info .label,#panel-info{color:#ffbf00}
.dish-contact .label,#panel-contact{color:#568237}
.dish-note .label,#panel-note{color:#ff9834}
/* 開いた項目の見出しと名前を分け、食材内に収まる階層を作ります。 */
.panel .panel-title,#panel-info .panel-title{font-size:8cqw;font-weight:650;line-height:1.2;letter-spacing:0;margin:0 0 5cqw}
#panel-work .panel-title{font-size:6cqw;margin-bottom:2cqw}
#panel-info .profile-name{font-size:9cqw;line-height:1.3;letter-spacing:-.025em;margin-bottom:5cqw}
.social-links{display:grid;grid-template-columns:repeat(2,28cqw);gap:8cqw}
/* ABOUTの漢字氏名だけを比較案01にし、英字と導入の書体は維持します。 */
@font-face{font-family:"Noto Sans JP";src:url('assets/fonts/NotoSansJP-Variable.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
#panel-info .name-kanji{font-family:"Noto Sans JP",sans-serif;font-weight:700}
