/* Atelier (HP・3D制作) button: beveled octagon, metallic gold frame, deep teal face. */
.nav .nav-atelier {
  --cut: 10px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 176px;
  height: 46px;
  margin-left: 0.5rem;
  padding: 0 14px 0 0;
  color: #f4ecdc;
  text-decoration: none;
  white-space: nowrap;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background: linear-gradient(180deg, #f0d79a 0%, #b88a45 30%, #e9cb8a 55%, #9c7135 80%, #d9b56f 100%);
  filter: drop-shadow(0 1px 2px #3a2a1440);
  transition: filter .3s ease;
}
/* Thin dark line inside the gold, then the teal face. */
.nav .nav-atelier::before,
.nav .nav-atelier::after {
  content: '';
  position: absolute;
  z-index: -1;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.nav .nav-atelier::before { inset: 2.5px; --c: 9px; background: #6b5128; }
.nav .nav-atelier::after {
  inset: 3.2px; --c: 8.7px;
  background:
    linear-gradient(180deg, #ffffff14, transparent 45%),
    linear-gradient(180deg, #185a6c 0%, #134a5c 50%, #0f3d4c 100%);
}
.nav .nav-atelier:hover,
.nav .nav-atelier:focus-visible { filter: drop-shadow(0 0 6px #e8c98399) drop-shadow(0 1px 2px #3a2a1440); }
.nav .nav-atelier:focus-visible { outline: none; }
.nav-atelier-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 4px;
  line-height: 1;
}
.nav-atelier-title {
  font-family: 'Times New Roman', Times, 'Noto Serif', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #f4ecdc;
}
.nav-atelier-sub {
  margin-top: 4px;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #e9e1cf;
}
.nav-atelier-arrow { flex: none; width: 19px; height: 10px; color: #f4ecdc; transition: transform .3s ease; }
.nav .nav-atelier:hover .nav-atelier-arrow { transform: translateX(3px); }

/* Slide-out menu (tablet and phone): full-width card below the links. */
@media (max-width: 1023px) {
  .nav .nav-atelier { --cut: 12px; width: auto; height: 64px; margin: 1.25rem 1.5rem 0; padding-right: 20px; }
  .nav .nav-atelier::before { --c: 10.8px; }
  .nav .nav-atelier::after { --c: 10.3px; }
  .nav-atelier-title { font-size: 22px; }
  .nav-atelier-sub { font-size: 11.5px; margin-top: 5px; }
}
