/* ==========================================
   自社サーバーからのフォント読み込み（WOFF2最適化）
   ========================================== */
@font-face {
  font-family: "GenInterfaceJP-Local";
  src: url("./fonts/GenInterfaceJP-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GenInterfaceJPDisplay-Local";
  src: url("./fonts/GenInterfaceJPDisplay-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   CSS Custom Properties (Variables)
   ========================================== */
:root {
  --font-base: "GenInterfaceJP-Local", "Inter", sans-serif;
  --font-display: "GenInterfaceJPDisplay-Local", "Inter", sans-serif;
  --color-bg: #faf9f6;
  --color-text: #1a1a1a;
  --color-sub: #8c8c8c;
  --color-border: #eef0eb;
}

/* ==========================================
   Base Styles & Typography
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  background-color: var(--color-bg); 
  color: var(--color-text);
  font-weight: 300; 
  font-size: clamp(1.25rem, 2.2vw, 1.75rem); 
  line-height: 1.85; 
  font-feature-settings: "palt"; 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

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

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 4%;
}

/* ==========================================
   Header Navigation & MENU Button
   ========================================== */
header, .header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 4%;
  z-index: 1001;
  color: var(--color-text);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.logo {
  font-size: 1.1rem;
  font-weight: 300; 
  letter-spacing: 0.08em; 
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}

/* 常に表示する MENU ボタン */
.mobile-menu-btn {
  display: inline-block;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  outline: none;
  white-space: nowrap;
  vertical-align: middle;
}

.mobile-menu-btn .menu-text-close { display: none; }
.mobile-menu-btn.is-active .menu-text-open { display: none; }
.mobile-menu-btn.is-active .menu-text-close { display: inline; }

/* 全画面オーバーレイメニュー（PC/モバイル共通） */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 6.5rem 6% 4rem 6%;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-menu {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2rem;
  height: 100%;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.mobile-nav-link:hover {
  opacity: 0.5;
}

/* ==========================================
   Section Labels & Titles
   ========================================== */
section {
  padding: 4rem 0;
  border-bottom: none;
}

.section-label, .section-title {
  font-size: 1.15rem; 
  text-transform: uppercase;
  letter-spacing: 0.08em; 
  color: var(--color-sub);
  margin-bottom: 2rem;
  font-weight: 300;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.link-arrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 0.25rem;
  transition: opacity 0.3s ease;
}

.link-arrow:hover {
  opacity: 0.5;
}

.note {
  font-size: 0.85em;
  color: var(--color-sub);
  display: block;
  margin-top: 0.35rem;
}

/* ==========================================
   1. ファーストビュー
   ========================================== */
.hero-fv {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center; 
  padding: 10.5rem 6% 3.5rem 6%;
  position: relative;
}

.fv-wrapper {
  max-width: 1000px;
  width: 100%;
}

.fv-lead {
  text-align: center; 
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 6rem); 
  font-weight: 300; 
  line-height: 1.15;
  letter-spacing: -0.04em; 
  margin-bottom: 3.5rem;
  color: var(--color-text);
}

.fv-lead-line {
  display: block;
  overflow: hidden;
  animation: fvTextUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.fv-lead-line:nth-child(1) { animation-delay: 0.2s; }
.fv-lead-line:nth-child(2) { animation-delay: 0.35s; }

.fv-profile {
  max-width: 780px;   
  margin: 0 auto;     
  text-align: left;   
  font-weight: 300;
  font-size: inherit;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--color-text);
  animation: fvFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.65s;
  opacity: 0;
}

.fv-profile p { margin-bottom: 2rem; }
.fv-main-profile-text { font-weight: 300; }

@keyframes fvTextUp {
  0% { opacity: 0; transform: translateY(100%); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fvFadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   2. WORKS SLIDER Section
   ========================================== */
.works-slider-section {
  padding: 3rem 0; 
  width: 100%;
  overflow: hidden;
}

.section-title-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; 
  margin: 0 4% 2rem 4%; 
}

.works-slider-section .section-title,
.shop-solid-section .section-title,
.price-solid-section .section-title,
.about-solid-section .section-title,
.contact-solid-section .section-title {
  font-size: 1.15rem; 
  text-transform: uppercase;
  letter-spacing: 0.08em; 
  color: var(--color-sub);
  border-bottom: 1px solid var(--color-border); 
  padding-bottom: 0.75rem;
  font-weight: 300;
  margin-bottom: 0;
  width: 100%;
}

.slider-hint {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sub);
  padding-bottom: 0.75rem; 
  opacity: 0.8;
  white-space: nowrap;
}

.clean-slider-rail {
  width: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 4%;
  scroll-padding-left: 4%; 
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 3.5rem;
}

.clean-slider-rail::-webkit-scrollbar { display: none; }

.clean-card-item {
  flex: 0 0 540px;
  width: 540px;
  max-width: 85vw;
  scroll-snap-align: start;
  cursor: pointer;
}

.clean-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.5rem;
  transition: opacity 0.4s ease;
  display: block;
  overflow: hidden;
  background-color: #e0e4e6;
}

.clean-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clean-card-item:hover .clean-card-thumb { opacity: 0.8; }
.clean-card-caption { display: block; text-align: left; width: 100%; }

.clean-card-title { 
  font-weight: 300; 
  font-size: 1.5rem; 
  letter-spacing: -0.01em; 
  margin-bottom: 0.35rem; 
  color: var(--color-text); 
  line-height: 1.4; 
}
.clean-card-category { font-size: 0.85rem; color: var(--color-sub); letter-spacing: 0.02em; }

/* ==========================================
   3. PRODUCTS (SHOP) Section
   ========================================== */
.shop-solid-section {
  padding: 3rem 4%; 
  width: 100%;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 6rem 3.5rem; 
  width: 100%;
  margin-top: 2.5rem;
}

.shop-product-card {
  width: 100%;
  cursor: pointer;
  display: block;
}

.shop-product-image {
  width: 100%;
  aspect-ratio: 3 / 4; 
  margin-bottom: 1.5rem;
  transition: opacity 0.4s ease;
  display: block;
  overflow: hidden;
  background-color: #e5e5e0;
}

.shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-product-card:hover .shop-product-image { opacity: 0.8; }

.shop-product-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  width: 100%;
}

.shop-product-name {
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
  width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
  color: var(--color-text);
}

.shop-product-price {
  font-size: 1rem;
  color: #666;
  text-align: left;
  width: 100%;
  letter-spacing: 0.02em;
}

/* ==========================================
   4. Key-Value Grids (PRICE / ABOUT)
   ========================================== */
.price-solid-section,
.about-solid-section {
  padding: 3rem 4%;
  width: 100%;
}

.kv-grid,
.price-info-table,
.about-info-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-top: none;
  margin-top: 1.5rem;
}

.kv-row,
.price-table-row,
.about-table-row {
  display: flex;
  width: 100%;
  border-bottom: 1px solid var(--color-border); 
  padding: 2rem 0; 
  align-items: flex-start;
}

.kv-key,
.price-label,
.about-label {
  width: 280px; 
  flex-shrink: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-sub); 
}

.kv-val,
.price-value,
.about-value { 
  font-weight: 300; 
  font-size: inherit; 
  color: var(--color-text); 
  letter-spacing: 0.01em; 
  text-align: left; 
}

/* ==========================================
   5. CONTACT Section
   ========================================== */
.contact-solid-section {
  padding: 3rem 4% 6rem 4%;
  width: 100%;
}

.contact-content-area { 
  width: 100%; 
  text-align: left; 
  margin-top: 2.5rem;
}
.contact-lead-text { font-size: 1.25rem; color: var(--color-sub); margin-bottom: 2.5rem; letter-spacing: 0.02em; }

.contact-mail-link {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4.5rem); 
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--color-text); 
  padding-bottom: 0.5rem;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.contact-mail-link:hover { opacity: 0.5; }

/* ==========================================
   モーダル（ポップアップ）
   ========================================== */
.modal-overlay {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100vh; 
  background-color: rgba(250, 249, 246, 0.98); 
  z-index: 2000; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  padding: 4%;
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.modal-overlay.is-active { 
  opacity: 1; 
  pointer-events: auto; 
}

.modal-wrapper { 
  max-width: 1000px; 
  width: 100%; 
  position: relative; 
  margin: auto;
}

.modal-close-btn { 
  position: absolute; 
  top: -3.5rem; 
  right: 0; 
  background: none; 
  border: none; 
  font-size: 2.5rem; 
  font-weight: 300; 
  cursor: pointer; 
  color: var(--color-text); 
  opacity: 0.6; 
  transition: opacity 0.3s; 
}

.modal-close-btn:hover { opacity: 1; }

.modal-content-layout { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 3.5rem; 
  align-items: center; 
}

.modal-image-area { 
  aspect-ratio: 16 / 10; 
  width: 100%; 
  max-height: 55vh;
  overflow: hidden; 
  background-color: #e0e4e6; 
}

.modal-image-area.product-modal-image { 
  aspect-ratio: 3 / 4; 
  max-height: 50vh;
  margin: 0 auto;
}

.modal-image-area img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
}

.modal-text-area { 
  display: flex; 
  flex-direction: column; 
  text-align: left; 
}

.modal-meta { font-size: 0.85em; color: var(--color-sub); margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.modal-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 300; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.modal-description { font-size: 1.15rem; color: #4a4a4a; line-height: 1.85; margin-bottom: 2rem; }
.modal-link-btn { align-self: flex-start; font-size: 1rem; letter-spacing: 0.05em; border-bottom: 1px solid var(--color-text); padding-bottom: 0.25rem; opacity: 0.8; transition: opacity 0.3s; }
.modal-link-btn:hover { opacity: 1; }

/* ==========================================
   Footer
   ========================================== */
footer, .footer {
  padding: 6rem 4% 4rem 4%;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--color-sub);
}

/* ==========================================
   フェードインアニメーション
   ========================================== */
.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-fade.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-fade.delay-1 { transition-delay: 0.1s; }
.reveal-fade.delay-2 { transition-delay: 0.2s; }
.reveal-fade.delay-3 { transition-delay: 0.3s; }
.reveal-fade.delay-4 { transition-delay: 0.4s; }

/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 960px) {
  body { 
    font-size: 1.25rem; 
    line-height: 1.85; 
  }
  
  .hero-fv { 
    padding-top: 9.5rem; 
    padding-bottom: 3.5rem; 
    min-height: auto; 
  }
  
  .fv-lead { 
    margin-bottom: 3.5rem; 
  }

  .fv-profile {
    font-size: 1.25rem;
    line-height: 1.85;
  }

  .clean-card-title { font-size: 1.35rem; }
  .shop-product-name { font-size: 1.3rem; }

  .modal-overlay { 
    align-items: flex-start; 
    padding: 4.5rem 6% 4rem 6%; 
  }
  
  .modal-content-layout { 
    grid-template-columns: 1fr; 
    gap: 1.75rem; 
  }

  .clean-slider-rail { padding: 0 6%; scroll-padding-left: 6%; gap: 2rem; }
  .clean-card-item { flex: 0 0 82%; width: 82%; }
  
  .shop-product-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem 1.25rem; }

  .kv-row, .about-table-row, .price-table-row { flex-direction: column; gap: 0.5rem; padding: 1.5rem 0; }
  .kv-key, .about-label, .price-label { width: 100%; }
}

@media (max-width: 768px) {
  .section-title-container { 
    align-items: flex-start; 
    flex-direction: column; 
    gap: 0.75rem; 
  }
}