@charset "UTF-8";

/* =========================
   1. Base
========================= */

:root {
  --color-bg: #FAF9F6;
  --color-white: #FFFFFF;
  --color-text: #33332F;
  --color-muted: #99978F;
  --color-line: #D8D5CE;
  --color-line-dark: #C9C6BE;
  --color-hover: #F3F1EC;
  --content-width: 1440px;
  --page-padding: 8.4%;
  --font-mincho: "Zen Old Mincho", serif;
  --font-cantarell: "Cantarell", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family:"Zen Old Mincho",  "Shippori Mincho", serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}


/* =========================
   2. Layout
========================= */

.container {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}


/* =========================
   3. Header
========================= */
.header {
  width: 100%;
  max-width: 1440px;
  min-height: 112px;
  margin-inline: auto;

  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 45px;
  padding-inline: var(--page-padding);

  background-color: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
/* .header {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  column-gap: 45px;
  padding-inline: var(--page-padding);

      background-color: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
} */

/* Logo */

.logo {
  display: block;
  width: 260px;
  line-height: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Header navigation */

.header-nav {
  display: flex;
  align-items: center;
  gap: 45px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: "Zen Old Mincho", serif;
  font-size: 16px;
  line-height: 1.5;
}

/* Underline animation */

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background-color: var(--color-muted);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-current::after {
  transform: scaleX(1);
}

/* Contact button */

.contact-button {
  display: inline-flex;
  min-width: 104px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border: 1px solid var(--color-line-dark);
  font-family: "Cantarell", sans-serif;
  font-size: 16px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.contact-button:hover {
  border-color: var(--color-text);
  background-color: var(--color-text);
  color: var(--color-bg);
}

.top-page .header {
    position: fixed;
    top: 0;
    left: 50%;
    /* left: 0; */
    width: 100%;
    max-width: 1440px;
    transform: translateX(-50%);
    z-index: 100;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.top-page .header.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Profileページは最初から表示 */
.profile-page .header {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    position: fixed;
    top: 0;
    /* left: 0; */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    z-index: 100;
}

.profile-page main {
    padding-top: 170px;
}

/* =========================
   Main Visual
========================= */

/* Main Visual */
.main-visual {
  position: relative;
  width: 100%;
  height: 180svh;
  margin: 0;
}

/* Sticky */
.main-visual-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

/* Image */
.main-visual-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.main-visual-image {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  transform-origin: center center;
  will-change: transform;
}

/* ロゴ */
.main-visual-logo {
  position: absolute;
  right: 8%;
  bottom: 16%;

  z-index: 2;
  width: 420px;

  transition: opacity 0.2s linear;
}

/* Scroll */
.scroll-indicator {
  position: absolute;
  left: 8%;
  bottom: 0;

  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  color: #fff;

  font-family: "Cantarell", sans-serif;
  font-size: 11px;
  letter-spacing: 0.5em;
}

.scroll-indicator span:first-child {
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 100px;
  background: #fff;
  animation: scroll-line 2s ease-in-out infinite;
} 

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 1;
  }
  80%, 100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 0;
  }
}

/* ==================
Main Visual
================== */
.main-visual {
      width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 80px;
}

/* =========================
   5. Page navigation
========================= */

.page-nav {
  width: 100%;
  padding-bottom: 64px;
}

.page-nav-item {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 12.5%;
  border-bottom: 1px solid var(--color-line);
  font-size: 20px;
  transition:
    padding 0.3s ease,
    background-color 0.3s ease;
      letter-spacing: 0.1em;
}

.page-nav-item:hover {
  padding-right: 11.8%;
  padding-left: 13.2%;
  background-color: var(--color-hover);
}

/* Arrow */

.arrow {
  color: var(--color-muted);
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.page-nav-item:hover .arrow {
  transform: translateX(6px);
}

/* Contact row */

.page-nav-item.contact-item {
  min-height: 112px;
  margin-top: 38px;
  border: 1px solid var(--color-line-dark);
  font-family: "Cantarell", sans-serif;
}

.page-nav-item.contact-item:hover {
  border-color: var(--color-muted);
}


/* =========================
   6. Footer
========================= */

.footer {
  display: flex;
  min-height: 124px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background-color: var(--color-white);
  text-align: center;
}



/* Instagram Menu */
.instagram-menu {
  display: inline-block;
}

.instagram-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.instagram-trigger img {
  display: block;
  width: 24px;
  height: 24px;
}


/* Overlay */
.instagram-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: block;
  background: transparent;
}

.instagram-overlay[hidden] {
  display: none !important;
}

/* Panel */

/* Overlay */
.instagram-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: block;
  background: transparent;
}

.instagram-overlay[hidden] {
  display: none !important;
}

/* Panel */
.instagram-panel {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);

  width: 100%;
  max-width: 440px;
  padding: 48px 36px 36px;

  background: #FAF9F6;
  border: 1px solid #E5E3DE;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);

  cursor: grab;
  user-select: none;
  touch-action: none;
}

/* Close Button */
.instagram-close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 0;
  border: none;
  background: none;
  font-family: "Cantarell", sans-serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

/* Account List */
.instagram-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 16px;
}

.instagram-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #333;
  font-family: "Cantarell", sans-serif;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.instagram-account:hover {
  opacity: 0.55;
}

.instagram-account-icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}
/* Instagram Menu：SP */
@media screen and (max-width: 768px) {
  .instagram-panel {
    width: 85%;
    max-width: 200px;
    padding: 42px 24px 28px;
  }

  .instagram-list {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
}

/* Copyright */

.copyright {
  margin: 0;
  color: #66645E;
  font-family: var(--font-cantarell);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}


/* =========================
   7. Responsive
========================= */

/* Tablet */

@media (max-width: 1100px) {
  :root {
    --page-padding: 5%;
  }

  .header {
    column-gap: 30px;
  }

  .logo {
    width: 240px;
  }

  .header-nav {
    gap: 30px;
  }

  .page-nav-item {
    padding-inline: 9%;
  }
}

/* Mobile */

@media (max-width: 768px) {
  :root {
    --page-padding: 6%;
  }

  .header {
    min-height: auto;
    grid-template-columns: 1fr auto;
    row-gap: 18px;
    padding-block: 24px;
  }

  .logo {
    width: 165px;
  }

  .header-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-link {
    font-size: 12px;
  }

  .contact-button {
    min-width: 84px;
    min-height: 32px;
    padding-inline: 12px;
  }

  .profile-page main {
    padding-top: 100px;
  }
.main-visual {
  height: 65svh;
  min-height: 420px;
  margin-bottom: 36px;
}

.main-visual-logo {
  right: 6%;
  bottom: 20%;
  width: 42%;
  max-width: 520px;
}
  /* Works */
  .profile-page.works-page main.works-main {
    padding-top: 100px;
  }

  .profile-page.works-page .works-heading {
    margin-bottom: 8px;
  }

  /* Projects */
  .profile-page.projects-page main.projects-main {
    padding-top: 80px;
  }

  .profile-page.projects-page .projects-heading {
    margin-bottom: 30px;
  }

  /* Category dropdown */
  .profile-page.works-page .works-category-dropdown {
    margin-bottom: 16px;
  }

  .works-dropdown-trigger {
    padding: 6px 18px;
    font-size: 12px;
  }

  /* Selected works */
  .selected-works {
    gap: 10px;
  }

.scroll-indicator {
  left: 6%;
      font-size: 9px;
    bottom: 50px;
}

  .page-nav {
    padding-bottom: 42px;
  }

  .page-nav-item {
    min-height: 76px;
    padding-inline: 5%;
    font-size: 17px;
  }

  .page-nav-item:hover {
    padding-inline: 5%;
  }

  .page-nav-item.contact-item {
    min-height: 78px;
    margin-top: 24px;
  }

  .footer {
    min-height: 110px;
  }

}

/* Reduce motion for accessibility */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Profile Page */
body.profile-page {
    margin: 0;
    padding: 0;
}

/* =========================
   SP TOP PAGE
========================= */
/* SP Menu：初期状態では非表示 */
.hamburger,
.sp-menu {
  display: none;
}

@media screen and (max-width: 768px) {

  /* Header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 58px;
    height: 58px;
    padding: 0 20px;

    background-color: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .top-page .header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity 0.6s ease,
      visibility 0.6s ease;
  }

  .top-page .header.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Logo */
  .header .logo {
  width: min(200px, 52vw);
  flex-shrink: 1;
  min-width: 0;
  }

  /* PC Navigation OFF */
  .header-nav {
    display: none;
  }

  /* Contact */
.contact-button {
    display: inline-flex;
    min-width: auto;
    min-height: auto;
    margin-left: auto;
    /* margin-right: 0; */
    padding: 3px 9px;

    border: 1px solid var(--color-line-dark);

    font-family: var(--font-cantarell);
    font-size: 16px;
  }

.top-page .contact-button:hover {
    background: transparent;
    color: var(--color-text);
  }

  /* Hamburger */
  .hamburger {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    gap: 7px;

    width: 26px;
    height: 28px;
    padding: 2px;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color-muted);
  }


  /* Main Visual */
  .top-page .main-visual {
    height: 180svh;
    min-height: 0;
    margin-bottom: 0;
  }

  .top-page .main-visual-sticky {
    height: 100svh;
  }

  .top-page .main-visual-image-wrap {
    inset: 0;
  }

  .top-page .main-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform-origin: center center;
  }

  /* Main Visual Logo */
  .top-page .main-visual-logo {
    right: 6%;
    bottom: 20%;
    width: 75%;
    max-width: 400px;
  }

  .top-page .scroll-indicator {
    left: 6%;
    bottom: -19px;
  }


  /* Page Navigation */
  .top-page .page-nav {
    padding: 70px 20px 100px;
  }

  .top-page .page-nav-item {
    min-height: 85px;
    padding: 0 12px;
    font-size: 20px;
  }

  .top-page .page-nav-item:hover {
    padding: 0 12px;
  }

  .top-page .page-nav-item.contact-item {
    min-height: 52px;
    margin-top: 32px;
  }


  /* SP Menu */
  .sp-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;

    display: flex;
    flex-direction: column;

    background: var(--color-bg);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity 0.4s ease,
      visibility 0.4s ease;
  }

  .sp-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Menu Header */
  .sp-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 58px;
    flex-shrink: 0;
    padding: 0 20px;
  }

  .sp-menu-logo {
    display: block;
    width: min(200px, 52vw);
  }

  .sp-menu-logo img {
    width: 100%;
  }

  /* Close Button */
  .sp-menu-close {
    position: relative;
    width: 26px;
    height: 28px;
  }

  .sp-menu-close span {
    position: absolute;
    top: 13px;
    left: 0;

    width: 26px;
    height: 1px;

    background: var(--color-muted);
  }

  .sp-menu-close span:first-child {
    transform: rotate(45deg);
  }

  .sp-menu-close span:last-child {
    transform: rotate(-45deg);
  }

  /* Menu Navigation */
  .sp-menu-nav {
    display: flex;
    flex-direction: column;

    width: 100%;
    padding: 0 20px;
    margin: auto 0;
  }

  .sp-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 85px;
    padding: 0 12px;

    border-bottom: 1px solid var(--color-line);

    font-family: var(--font-mincho);
    font-size: 19px;
    color: #555;
    letter-spacing: 0.1em;

    opacity: 0;
    transform: translateY(12px);

    transition:
      opacity 0.5s ease,
      transform 0.5s ease;
  }

  .sp-menu.is-open .sp-menu-item {
    opacity: 1;
    transform: translateY(0);
  }

  /* 順番に表示 */
  .sp-menu.is-open .sp-menu-item:nth-child(1) {
    transition-delay: 0.05s;
  }

  .sp-menu.is-open .sp-menu-item:nth-child(2) {
    transition-delay: 0.1s;
  }

  .sp-menu.is-open .sp-menu-item:nth-child(3) {
    transition-delay: 0.15s;
  }

  .sp-menu.is-open .sp-menu-item:nth-child(4) {
    transition-delay: 0.2s;
  }

  .sp-menu.is-open .sp-menu-item:nth-child(5) {
    transition-delay: 0.25s;
  }

  .sp-menu-arrow {
    color: var(--color-muted);
    font-family: Arial, sans-serif;
    font-size: 15px;
  }

  /* Contact */
  .sp-menu-contact {
    min-height: 60px;
    margin-top: 32px;
    border: 1px solid var(--color-line-dark);

    font-family: var(--font-cantarell);
    font-size: 19px;
  }

  /* メニュー表示中のスクロールを止める */
  body.menu-open {
    overflow: hidden;
  }
}
/* ========================================
   Text Link
======================================== */

/* 通常時 */
.text-link {
  text-decoration: none;
  border-bottom: 1.5px dotted rgba(100, 100, 100, 0.3);
  padding-bottom: 1.5px;
  transition: color 0.35s ease;
}

/* ホバー時 */
.text-link:hover {
  color: var(--color-line-dark);
}

.text-link:hover::after {
  transform: scaleX(0);
}
/* ========================================
   Top Page：横スクロール防止
======================================== */

body.top-page {
  overflow-x: clip;
}

/* ========================================
   Main Visual : Opening Animation
======================================== */

/* Opening Background */
.top-page .main-visual-sticky {
  background-color: var(--color-line);
}

/* Logo : First Appearance */
.top-page .main-visual-logo img {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(10px);

  animation: logoReveal 2.2s
    cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes logoReveal {
  from {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Photo : Second Appearance */
.top-page .main-visual-image-wrap {
  opacity: 0;
  filter: blur(5px) brightness(0.85);
  transform: scale(1.025);

  animation: photoReveal 4.5s
    cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

@keyframes photoReveal {
  from {
    opacity: 0;
    filter: blur(5px) brightness(0.85);
    transform: scale(1.025);
  }

  to {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .top-page .main-visual-logo img,
  .top-page .main-visual-image-wrap {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
/* =========================
   Accessibility
========================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}