/* PLUM PROJECT — shared brand tokens and site shell */
:root{
  --color-canvas:#0c1410;
  --color-text:#f4efe9;
  --color-text-muted:#c3b9ac;
  --color-accent:#c78a9a;
  --color-accent-rgb:199,138,154;
  --color-accent-strong:#8f4e62;
  --color-label:#e4c078;
  --color-label-rgb:228,192,120;
  --color-material-gold:#c98a3f;
  --color-paper:#f4ead4;
  --color-paper-text:#332f27;
  --surface-ink:rgba(9,14,11,.82);
  --surface-ink-strong:rgba(8,13,10,.92);
  --surface-glass:rgba(12,16,13,.68);
  --line-on-dark:rgba(244,239,233,.14);
  --line-label:rgba(var(--color-label-rgb),.32);
  --shadow-sheet:0 18px 48px rgba(0,0,0,.42);
  --shadow-card:0 9px 24px rgba(0,0,0,.28);
  --radius-sheet:14px;
  --radius-card:10px;
  --nav-width:230px;
  --stage-max:62rem;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ min-height:100%; }
body{
  font-family:"Noto Sans JP",sans-serif;
  color:var(--color-text);
  background:var(--color-canvas);
  line-height:1.75;
  letter-spacing:.03em;
  overflow-x:hidden;
  position:relative;
  isolation:isolate;
}

/* Cork-board section labels: a shared cream field-note label. */
.cork .ttl.light.cork-label{
  position:relative;
  display:inline-block;
  color:var(--color-paper-text);
  background:linear-gradient(145deg,#f7eedc,#eadabe);
  border:1px solid rgba(51,47,39,.14);
  border-radius:3px;
  padding:.68rem 1rem .78rem;
  box-shadow:0 5px 12px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.6);
  transform:rotate(-.25deg);
  text-shadow:none;
}
.cork .ttl.light.cork-label::before{
  content:"";
  position:absolute;
  top:-8px;
  left:50%;
  width:56px;
  height:15px;
  transform:translateX(-50%) rotate(-2deg);
  background:rgba(226,214,180,.72);
  box-shadow:0 2px 4px rgba(0,0,0,.12);
}
.cork .ttl.light.cork-label .en{
  color:var(--color-accent-strong);
  opacity:1;
  text-shadow:none;
}

.contact-cta-icon{
  display:block;
  width:18px;
  height:18px;
  flex:0 0 auto;
}

/* Page artwork is supplied through page-level custom properties. */
.bg-fixed{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background-image:var(--page-background-image);
  background-position:var(--page-background-position, center);
  background-size:cover;
  background-repeat:no-repeat;
}
.bg-overlay{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:var(--page-overlay);
}

/* Shared sidebar and global navigation */
.sidebar{
  position:fixed;
  top:0;
  left:0;
  width:var(--nav-width);
  height:100vh;
  padding:2.6rem 1.8rem;
  background:linear-gradient(180deg,rgba(7,12,9,.96),rgba(9,14,11,.88));
  border-right:1px solid rgba(var(--color-label-rgb),.16);
  backdrop-filter:blur(10px);
  z-index:20;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
}
.nav-logo a{ display:block; }
.nav-logo img{ width:118px; height:auto; display:block; }
.nav-links{ display:flex; flex-direction:column; align-items:flex-start; gap:.2rem; width:100%; }
.nav-links a,
.nav-links button.has-sub{
  display:flex;
  align-items:center;
  width:100%;
  min-height:44px;
  color:var(--color-text-muted);
  text-decoration:none;
  font-size:1rem;
  font-weight:500;
  letter-spacing:.05em;
  padding:.42rem 0;
  position:relative;
  transition:color .22s,padding .22s;
}
.nav-links button.has-sub{
  appearance:none;
  border:0;
  background:transparent;
  font-family:inherit;
  text-align:left;
  cursor:pointer;
}
.nav-links a::before,
.nav-links button.has-sub::before{
  content:"";
  position:absolute;
  left:-1.8rem;
  top:50%;
  transform:translateY(-50%);
  width:0;
  height:1.5px;
  background:var(--color-accent);
  transition:width .25s;
}
.nav-links a:hover,.nav-links a.active,
.nav-links button.has-sub:hover,
.nav-links button.has-sub[aria-expanded="true"]{ color:var(--color-text); padding-left:.9rem; }
.nav-links a:hover::before,.nav-links a.active::before,
.nav-links button.has-sub:hover::before,
.nav-links button.has-sub[aria-expanded="true"]::before{ width:1.3rem; }
.nav-links a.active{ color:var(--color-accent); font-weight:700; }
.nav-links button.has-sub.active{ color:var(--color-accent); font-weight:700; }
.nav-links a.soon::after{
  content:"soon";
  font-family:"Special Elite",monospace;
  font-size:.5rem;
  color:var(--color-accent);
  margin-left:.5rem;
  vertical-align:middle;
  letter-spacing:.1em;
}
.nav-foot{ display:flex; flex-direction:column; align-items:flex-start; gap:.9rem; }
.nav-sns{ display:flex; gap:.9rem; }
.nav-sns a{
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  color:var(--color-text-muted); border-radius:50%; transition:color .22s,background .22s;
}
.nav-sns a:hover{ color:var(--color-accent); }
.nav-sns svg{ width:18px; height:18px; display:block; }
.nav-sns a.note-mark{ color:#fff; opacity:.68; transition:opacity .22s; }
.nav-sns a.note-mark:hover{ color:#fff; opacity:1; }

/* Keyboard users should always be able to see the current control. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible{
  outline:2px solid var(--color-accent);
  outline-offset:4px;
}
.foot-copy{
  font-family:"Special Elite",monospace;
  font-size:.6rem;
  color:var(--color-text-muted);
  letter-spacing:.08em;
}

.main,.main-content{
  margin-left:var(--nav-width);
  position:relative;
  z-index:2;
}

/* Shared Services submenu */
.nav-item{ width:100%; }
.nav-item > .has-sub::after{
  content:"▾";
  font-size:.7rem;
  margin-left:.45rem;
  opacity:.7;
  display:inline-block;
  transition:transform .3s;
}
.nav-item > .has-sub[aria-expanded="true"]::after{ transform:rotate(180deg); }
.submenu{
  overflow:hidden;
  max-height:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:max-height .32s ease,opacity .22s ease,visibility 0s linear .32s;
  padding-left:1rem;
}
.nav-item.submenu-open .submenu{
  max-height:280px;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:max-height .32s ease,opacity .22s ease,visibility 0s;
}
.submenu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.34rem 0;
  color:var(--color-text-muted);
  font-size:.92rem;
  letter-spacing:.04em;
  text-decoration:none;
  position:relative;
  transition:color .2s,padding .2s;
}
.submenu a::before{ display:none !important; }
.submenu a:hover{ color:var(--color-accent); padding-left:.5rem; }

.burger{ display:none; }

@media (max-width:860px){
  .sidebar{
    transform:translateX(-100%);
    width:74%;
    max-width:300px;
    transition:transform .35s ease;
    justify-content:center;
    gap:2.6rem;
    overflow-y:auto;
  }
  .sidebar.open{ transform:translateX(0); }
  .main,.main-content{ margin-left:0; }
  .burger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    position:fixed;
    top:18px;
    right:18px;
    z-index:40;
    width:44px;
    height:44px;
    padding:11px;
    background:rgba(7,12,9,.9);
    border:1px solid rgba(var(--color-label-rgb),.28);
    border-radius:10px;
    cursor:pointer;
  }
  .burger span{ display:block; height:2px; background:var(--color-accent); border-radius:2px; transition:.3s; }
  .burger.cross span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .burger.cross span:nth-child(2){ opacity:0; }
  .burger.cross span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  .submenu{ padding-left:1.2rem; }
}

/* Respect the operating system's reduced-motion preference. */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
  .reveal{
    opacity:1 !important;
    transform:none !important;
  }
}
