*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1a1a;
  --muted: rgba(26,26,26,0.35);
  --border: rgba(26,26,26,0.1);
}

html, body {
  height: 100%;
  font-family: 'Josefin Sans', sans-serif;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
}

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 28fr 72fr;
  height: 100vh;
}

/* ── LEFT ── */

.layout-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 32px 48px 48px;
  border-right: none;
}

.brand-name {
  font-size: clamp(1.6rem, 2.4vw, 3.2rem);
  font-weight: 200;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--ink);
}


.main-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main-nav a {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
  width: fit-content;
}

.main-nav a:hover {
  border-bottom-color: var(--ink);
}

.nav-disabled {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(26,26,26,0.3);
  padding: 6px 0;
  cursor: default;
  display: block;
}

.nav-disabled small {
  font-size: 0.72rem;
  color: rgba(26,26,26,0.2);
}

.nav-instagram {
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
  color: var(--ink);
  opacity: 0.35;
  transition: opacity 0.25s;
}

.nav-instagram:hover {
  opacity: 1;
}

.brand-link {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 3.2rem);
  font-weight: 200;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 0.92;
}

.nav-current {
  border-bottom-color: var(--ink) !important;
}

.nav-home-mobile {
  display: none;
}

.brand-copy {
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  color: rgba(26,26,26,0.22);
}

/* ── RIGHT ── */
.layout-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 80px 48px 80px 56px;
}

.photo-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 80vh;
  height: 68vh;
  overflow: visible;
  clip-path: inset(0 -48px 0 0);
  cursor: grab;
  user-select: none;
}

.photo-wrap.is-dragging { cursor: grabbing; }

.photo-track {
  display: flex;
  height: 100%;
  gap: 16px;
  will-change: transform;
}

.photo-slide {
  flex: 0 0 80vh;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
}


/* ── ABOUT ── */
body.page-about {
  overflow: auto;
}

html:has(body.page-about) {
  overflow: auto;
}

body.page-about .layout {
  height: auto;
  min-height: 100vh;
}

@media (min-width: 769px) {
  body.page-about .layout-left {
    position: sticky;
    top: 0;
    height: 100vh;
  }
}

@media (max-width: 768px) {
  body.page-about .layout-right {
    height: auto;
    padding-bottom: 56px;
  }

  body.page-about .layout-left .brand-copy {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 28px;
    background: #fff;
    border-top: 1px solid var(--border);
  }
}
.about-right {
  justify-content: flex-start;
  align-items: flex-start;
  padding-right: 80px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 48px;
  text-align: left;
  width: 100%;
}

.about-title {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: -24px;
}

.about-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: var(--ink);
}

.about-group--ja {
  color: var(--ink);
}

/* ── CONTACT ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 50%;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  outline: none;
  resize: none;
  transition: border-color 0.25s;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--ink);
}

.form-submit {
  align-self: flex-start;
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink);
  cursor: pointer;
  transition: opacity 0.25s;
}

.form-submit:hover { opacity: 0.4; }

/* ── SLIDES ── */
.slide-1 { background-image: url('./images/top01.webp'); }
.slide-2 { background-image: url('./images/top02.webp'); }
.slide-3 { background-image: url('./images/top03.webp'); }
.slide-4 { background-image: url('./images/top04.webp'); }
.slide-5 { background-image: url('./images/top05.webp'); }
.slide-6 { background-image: url('./images/top06.webp'); }
.slide-7 { background-image: url('./images/top07.webp'); }
.slide-8 { background-image: url('./images/top08.webp'); }

/* hamburger — desktop では非表示 */
.hamburger { display: none; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  html, body { overflow: hidden; }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* X 変形 */
  body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
  body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .layout {
    grid-template-columns: 1fr;
    height: 100dvh;
    padding-top: 60px;
  }

  /* 固定ヘッダー（閉じた状態） */
  .layout-left {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 60px;
    background: #fff;
    border-right: none;
    gap: 0;
  }

  .brand-name {
    font-size: clamp(1rem, 4vw, 1.4rem);
    line-height: 60px;
    transform: translateY(2px);
  }

  .layout-left .main-nav { display: none; }

  /* コピーライトは常時表示 — 画面下部に固定 */
  .layout-left .brand-copy {
    position: fixed;
    bottom: 24px;
    left: 28px;
    z-index: 150;
  }

  /* フルスクリーンオーバーレイ（開いた状態） */
  body.menu-open .layout-left {
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    height: auto;
    padding: 0 28px 40px;
  }

  /* ロゴを閉じた状態と同じ高さ・位置に固定 */
  body.menu-open .brand-name {
    height: 60px;
    line-height: 60px;
    display: block;
  }

  /* 閉じるボタン（X）をヘッダーと同じ右上に配置 */
  body.menu-open .hamburger {
    position: absolute;
    top: 24px;
    right: 28px;
  }

  body.menu-open .layout-left .main-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .nav-home-mobile {
    display: block;
  }

  .layout-right {
    padding: 24px 20px 80px;
    height: calc(100dvh - 60px);
    justify-content: center;
  }

  .photo-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    clip-path: none;
    cursor: default;
    touch-action: pan-x;
  }

  .photo-track {
    height: 100%;
  }

  .photo-slide {
    flex: 0 0 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .slide-1 { background-image: url('./images/top01_sp.webp'); }
  .slide-2 { background-image: url('./images/top02_sp.webp'); }
  .slide-3 { background-image: url('./images/top03_sp.webp'); }
  .slide-4 { background-image: url('./images/top04_sp.webp'); }
  .slide-5 { background-image: url('./images/top05_sp.webp'); }
  .slide-6 { background-image: url('./images/top06_sp.webp'); }
  .slide-7 { background-image: url('./images/top07_sp.webp'); }
  .slide-8 { background-image: url('./images/top08_sp.webp'); }

  .contact-form { width: 100%; }
}
