/* ==========================================================================
   CLEAN MINIMALISM - STYLE.CSS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-text: #222222;
  --color-surface: #f5f5f5;
  --color-hairline: rgba(34, 34, 34, 0.04);
  --color-border: rgba(34, 34, 34, 0.08);
  --color-button: rgba(34, 34, 34, 0.35);
  --font-family: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-family-jp: "Noto Sans JP", "ヒラギノ角ゴ ProN", "Yu Gothic", sans-serif;
}

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

::selection {
  background-color: var(--color-text);
  color: var(--color-bg);
}

html {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-family);
}

body::before {
  display: none;
}

body::after {
  display: none;
}

/* Header */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(8px, 1vw, 12px) clamp(24px, 5vw, 80px);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  font-family: var(--font-family);
}

.header-brand {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-family);
  display: flex;
  align-items: center;
}

.header-nav {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  opacity: 0.45;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
  font-family: var(--font-family);
}

.nav-link:hover,
.nav-link:first-child {
  opacity: 1;
}

/* Main */
main {
  width: 100%;
  padding: 0 clamp(24px, 6vw, 100px);
  position: relative;
  z-index: 2;
  font-family: var(--font-family);
}

#works {
  padding-top: clamp(160px, 22vh, 260px);
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

/* Works Grid */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 8vw, 120px);
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}

.work-grid-item {
  width: 100%;
}

.work-item {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

/* Carousel Container */
.carousel-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  margin: 0 auto;
  justify-content: center;
}

.work-figure {
  margin: 0;
  padding: 0;
  background-color: transparent;
  line-height: 0;
  position: relative;
  aspect-ratio: auto;
  height: 380px;
  flex-shrink: 0;
  overflow: visible;
}

.work-01 .work-figure,
.work-02 .work-figure {
  width: 380px;
}

.work-03 .work-figure {
  width: calc(380px / 1.414);
  aspect-ratio: 1 / 1.414;
}

.work-image,
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
  height: 60px;
  flex-shrink: 0;
}

.carousel-prev,
.carousel-next {
  background: transparent;
  border: none;
  color: var(--color-button);
  width: 60px;
  height: 60px;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
  color: var(--color-text);
  opacity: 0.8;
}

.carousel-prev:active,
.carousel-next:active {
  opacity: 0.6;
}

/* Work Info */
.work-info {
  margin-top: 72px;
  width: 100%;
  padding-left: 0;
  flex-shrink: 0;
  text-align: center;
}

.work-title {
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  color: #606060;
  font-family: var(--font-family);
}

.work-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.55;
  font-family: var(--font-family);
}

.meta-separator {
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.35;
}

/* Layout */
.work-01,
.work-02,
.work-03 {
  align-items: center;
}

/* About Section */
.about-content {
  padding-top: clamp(240px, 38vh, 520px);
  padding-bottom: clamp(240px, 38vh, 480px);
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  font-family: var(--font-family-jp);
  color: #606060;
  text-align: center;
}

.brand-mark-inner {
  text-align: center;
  padding: clamp(67px, 10vh, 134px) 0 clamp(80px, 12vh, 160px) 0;
  opacity: 0.8;
}

.brand-mark-inner img {
  max-width: 150px;
  height: auto;
}

.philosophy-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.55;
  margin-bottom: clamp(60px, 10vh, 120px);
  text-align: center;
  font-family: "Avenir Next", "Avenir", -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.about-philosophy p {
  font-size: 16px;
  font-weight: 400;
  line-height: 2.4;
  color: #999999;
  margin-bottom: clamp(40px, 6vh, 80px);
  letter-spacing: 0.18em;
}

/* Contact */
#contact {
  padding-top: clamp(240px, 38vh, 520px);
  padding-bottom: clamp(120px, 19vh, 240px);
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-family);
  text-align: center;
}

.contact-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.5;
  margin-bottom: 28px;
  font-family: var(--font-family);
}

.contact-email {
  display: inline-block;
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--color-text);
  text-decoration: none;
  word-break: break-all;
  transition: opacity 0.2s ease;
  font-family: var(--font-family);
}

.contact-email:hover {
  opacity: 0.6;
}

/* Social Links */
#social {
  padding-top: clamp(120px, 18vh, 240px);
  padding-bottom: clamp(120px, 18vh, 240px);
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.social-links a {
  font-size: 28px;
  color: #606060;
  transition: opacity 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  opacity: 0.6;
}

/* Footer */
#site-footer {
  width: 100%;
  padding: 60px clamp(24px, 5vw, 80px);
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  font-family: var(--font-family);
}

.footer-copy {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text);
  opacity: 0.4;
  font-family: var(--font-family);
}

/* Responsive */
@media (max-width: 768px) {
  #site-header {
    height: auto;
    flex-direction: column;
    gap: 12px;
    padding: 15px clamp(20px, 4vw, 32px);
  }

  .header-brand {
    margin-right: 0;
  }

  .header-nav {
    gap: 12px;
  }

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

  .works-grid {
    grid-template-columns: 1fr;
    gap: clamp(250px, 40vh, 450px);
  }

  .work-01,
  .work-02,
  .work-03 {
    align-items: flex-start;
  }

  .work-figure {
    width: 100%;
  }

  .work-info {
    width: 100%;
    text-align: center;
  }

  .work-title {
    text-align: center;
  }

  .work-meta {
    justify-content: center;
  }

  .carousel-controls {
    gap: 16px;
    margin-top: 24px;
    height: 48px;
  }

  .carousel-prev,
  .carousel-next {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

 .about-philosophy p {
  word-spacing: 100vw;
  font-size: 14px;
  line-height: 2.2;
  letter-spacing: 0.15em;
}

  .contact-email {
    font-size: clamp(18px, 3.5vw, 30px);
  }
}