:root{
  --bg:#fafafa;
  --blue:#0052bd;
  --ink:#000;
  --sans:"Helvetica Neue",Helvetica,Arial,"Zen Kaku Gothic New",sans-serif;
  --serif:"Libre Baskerville",Georgia,serif;
  --typewriter:"dico-typewriter","American Typewriter","Cutive Mono",monospace; /* letter text = Dico Typewriter (Adobe Fonts) */
  --credit:"Zen Kaku Gothic New","Helvetica Neue",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;}
html,body{background:var(--bg);}

/* ============================================================
   Scale strategy
   ------------------------------------------------------------
   All vertical gaps keep their ORIGINAL Figma values and are
   multiplied by a single factor so their RATIOS never change:
       --vk : vertical-gap scale   (1 = exactly the Figma spacing)
       --sk : logo / heading size scale
   Lower the numbers to make the whole thing more compact; the
   proportions between every gap stay identical.
   The frame itself is then scaled to the viewport width by JS,
   so the blue block always stays flush with the right edge.
   ============================================================ */
.frame-wrap{width:100%;overflow:hidden;}
.frame{
  --vk:0.60;                 /* PC: vertical gaps at 60% of Figma */
  --sk:0.80;                 /* PC: logo & heading at 80% */
  width:1440px;
  background:var(--bg);
  padding:calc(290px * var(--vk)) 0 60px;
  transform-origin:top left;
}

/* ---------- Logo (Figma 50:21 / 66:16) ----------
   Two real wordmark SVGs: PC = black, SP = blue. */
.logo{display:block;}
.logo-pc{margin-left:190px; width:636px; height:auto;}
.logo-sp{display:none;}

/* ---------- Heading (50:10 / 50:49) ---------- */
.heading{
  margin:calc(227px * var(--vk)) 0 0 200px; width:1040px;
  font-family:var(--sans); font-weight:700;
  font-size:calc(32px * var(--sk));
  line-height:1.15; color:var(--ink);
}
.heading span{display:inline;}

/* ---------- Letter block (blue 50:4 + text 50:8) ---------- */
.letter-block{
  position:relative;
  margin:calc(140px * var(--vk)) 0 0 200px;
  width:1240px;              /* 200 + 1240 = 1440 -> flush right */
  min-height:438px;
  background:var(--blue);
  padding-top:12px;
  padding-left:12px;
}
.letter{
  width:1040px;
  padding-bottom:100px;
  font-family:var(--typewriter); font-size:16px; line-height:1.3;
  color:#fff;
}
.letter p{min-height:1.3em;}

/* uB monogram (79:2 / 79:14) */
.ub-circle{
  position:absolute; right:180px; bottom:75px;
  width:90px; height:90px; display:block;
}

/* ---------- Newsletter (50:9,11,18,19) ---------- */
.nl-label{
  margin:calc(117px * var(--vk)) 0 0 200px;
  font-family:var(--sans); font-size:14px; color:var(--ink);
}
.nl-form{position:relative; margin:20px 0 0 200px; width:503px;}
.nl-input{
  width:100%; height:37px; background:#fff;
  border:1px solid rgba(0,0,0,.5); border-radius:3px;
  padding:0 60px 0 12px;
  font-family:var(--sans); font-size:14px; color:var(--ink);
}
.nl-input::placeholder{color:rgba(0,0,0,.3);}
.nl-send{
  position:absolute; right:0; top:0; height:37px; padding:0 12px;
  border:0; background:transparent; cursor:pointer;
  font-family:var(--sans); font-weight:700; font-size:14px; color:var(--ink);
}
.nl-send:disabled{opacity:.5; cursor:default;}
/* Feedback message — absolute so it never shifts the layout */
.nl-msg{
  position:absolute; left:0; top:calc(100% + 8px); margin:0;
  font-family:var(--sans); font-size:13px; color:var(--ink);
  opacity:0; transition:opacity .3s; pointer-events:none;
}
.nl-msg.show{opacity:1;}

/* ---------- Social icons (50:12/14/16) ---------- */
.socials{margin:25px 0 0 200px; display:flex; gap:10px;}
.socials a{display:block; width:24px; height:24px;}
.socials img{width:24px; height:24px; display:block;}

/* Mail icon: click-to-copy (anti-spam, no mailto in HTML) */
.mail-copy{position:relative;}
.copy-tip{
  position:absolute; left:50%; bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(4px);
  background:var(--ink); color:#fff;
  font-family:var(--sans); font-size:12px; line-height:1;
  padding:6px 10px; border-radius:3px; white-space:nowrap;
  opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s;
}
.copy-tip.show{opacity:1; transform:translateX(-50%) translateY(0);}

/* ---------- Footer (50:6 / 50:5) ---------- */
.site-footer{
  display:flex; justify-content:space-between; align-items:baseline;
  margin:calc(189px * var(--vk)) 60px 0 200px;
  font-family:var(--credit); font-size:12px; color:var(--ink);
}
.site-footer a{color:var(--ink);}

/* ============================================================
   SP layout (Figma frame 50:35). Same proportional system with
   its own (milder) factors so it only tightens a little.
   ============================================================ */
@media (max-width:1023px){
  .frame{
    --vk:0.82;               /* SP: gaps at 82% of Figma */
    --sk:0.95;               /* SP: logo & heading at 95% */
    width:402px; padding:calc(98px * var(--vk)) 0 36px;
  }

  .logo-pc{display:none;}
  .logo-sp{display:block; margin-left:40px; width:calc(322px * var(--sk)); height:auto;}

  .heading{
    margin:calc(77px * var(--vk)) 40px 0; width:322px;
    font-size:calc(18px * var(--sk)); color:var(--blue);
  }
  .heading span{display:block;}   /* "— Online Store Opening" drops to 2nd line */

  .letter-block{
    margin:calc(82px * var(--vk)) 0 0 40px;
    width:362px;                  /* 40 + 362 = 402 -> flush right */
    min-height:497px;
  }
  .letter{width:322px; font-size:14px; padding-bottom:120px;}

  .ub-circle{right:40px; bottom:40px; width:60px; height:60px;}

  .nl-label{margin:calc(100px * var(--vk)) 0 0 40px;}
  .nl-form{margin:20px 0 0 40px; width:322px;}
  .nl-input{padding-right:12px;}
  .nl-send{                        /* SP design has no Send button */
    position:absolute; width:1px; height:1px; overflow:hidden;
    clip:rect(0 0 0 0); white-space:nowrap;
  }

  .socials{margin:25px 0 0 41px;}

  .site-footer{
    flex-direction:column; gap:7px;
    margin:calc(100px * var(--vk)) 40px 0; font-size:11px;
  }

  .letter-block{ padding-top:6px; padding-left:6px; }
}

/* PC only (>=1024px): blue logo + blue heading, size via --sk */
@media (min-width: 1024px) {
  .logo-pc { display: none; }
  .logo-sp { display: block; margin-left: 190px; width: calc(636px * var(--sk)); height: auto; }
  .heading { color: var(--blue); }
}