/* =========================
   Base
========================= */
:root{
  --nav-h:64px;
}

html{
  height: 100%;
  scroll-behavior:smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body{
  height: 100%;
  margin: 0;

  overflow-y: auto;
  overflow-x: hidden;

  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
  color:#2e2e2e;
  background:#f7f7f5;
}

section{
  padding:120px 16px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

h2{
  text-align:center;
  font-size:24px;
  letter-spacing:.08em;
  margin-bottom:64px;
}

h3{
  font-size:18px;
  letter-spacing:.06em;
  margin-bottom:32px;
}

body{
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

html{ scrollbar-gutter: auto; }


/* =========================
   Navigation
========================= */
.site-nav{
  position:sticky;
  top:0;
  z-index:1000;
  height:var(--nav-h);
  backdrop-filter: blur(8px);
  background: rgba(247,247,245,.8);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.site-nav__inner{
  width:min(1100px,92vw);
  height:100%;
  margin:0 auto;
  display:flex;
  align-items:center;
}

.site-nav__brand{
  font-size:14px;
  letter-spacing:.08em;
  text-decoration:none;
  color:rgba(30,30,30,.85);
  white-space:nowrap;
}

.site-nav__menu{
  list-style:none;
  display:flex;
  align-items:center;
  gap:18px;
  margin:0 0 0 auto;
  padding:0;
}

.nav-link{
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  text-decoration:none;
  font-size:13px;
  letter-spacing:.08em;
  color:rgba(30,30,30,.65);
  padding:8px 6px;
  border-radius:8px;
  white-space:nowrap;
}

.nav-link:hover{
  color:rgba(30,30,30,.95);
}

.nav-link--cta{
  margin-left:8px;
  padding:8px 14px;
  border:1px solid rgba(0,0,0,.15);
  border-radius:12px;
}

.nav-link::after{
  content: "＞";
  font-size: 11px;
  line-height: 1;
  transform: rotate(90deg);
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}

.nav-link:hover::after{
  opacity: .75;
  transform: rotate(90deg) translateY(1px);
}

.nav-link--cta::after{
  content:none;
}


/* =========================
   Page Top (2nd image style)
========================= */
.page-top{
position: fixed;
right: clamp(22px, 3vw, 38px);
bottom: 22px;
z-index: 1200;

width: 44px;
height: 80px;

display: block;
text-decoration: none;
color: rgba(30,30,30,.55);

--line-h: 110px;

opacity: 0;
pointer-events: none;
transform: translateY(8px);
transition: opacity .25s ease, transform .25s ease, color .2s ease;
}

.page-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.page-top::before{
  content:"";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: var(--line-h);
  background: rgba(30,30,30,.35);
}

.page-top::after{
  content:"";
  position: absolute;
  right: -5px;

  bottom: calc(var(--line-h) - 13px);

  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(30,30,30,.55);
  border-bottom:0;
  transform: rotate(45deg);
}

.page-top__text{
  position: absolute;
  right: 17px;
  bottom: 0;
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
  transform-origin: right bottom;
  transform: rotate(90deg);
}

.page-top:hover{
  color: rgba(30,30,30,.9);
}

.page-top:hover::after{
  border-color: rgba(30,30,30,.9);
}

@media (max-width: 720px){
  .page-top{
    right: 14px;
    bottom: 14px;
    height: 120px;
    width: 44px;
    --line-h: 92px;
  }
}

/* =========================
   Works（共通パーツのみ）
========================= */
.work-card{ text-decoration: none; color: inherit; display:block; }
.work-thumb{
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,.06);
}
.work-thumb img{ width: 100%; height: 100%; object-fit: cover; display:block; }

.work-meta{ margin-top: 16px; }
.work-title{
  margin: 0;
  font-size: 16px;
  letter-spacing: .06em;
}
.work-sub{
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(30,30,30,.55);
}

/* =========================
   Mobile
========================= */
@media(max-width:720px){
  .site-nav__brand{ display:none; }
}

  html, body{ overflow-x: hidden; }

.no-save{
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
