/* =========================================
   Reset & Premium Variables
========================================= */
:root {
  --color-bg: #FCFBF9; /* Warm elegant white */
  --color-bg-soft: #F4F2EC;
  --color-text: #1C1B1A;
  --color-text-light: #7A7875;
  --color-brass: #C2A366; 
  --color-brass-light: #E6D5B3;
  --color-border: #E8E5DF;
  
  --font-primary: 'Noto Sans JP', sans-serif;
  --font-accent: 'Playfair Display', 'Noto Serif JP', serif;

  --spacing-section: 80px;
  --container-width: 1200px;
}

/* 意味の塊での改行制御 */
span { display: inline-block; }
.pc-only { display: block; }

@media screen and (max-width: 768px) {
  .pc-only { display: none; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; }

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-size: 15px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  position: relative;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* Custom Cursor Removed */

/* Utilities */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 5%; }
.section { padding: var(--spacing-section) 0; }
.bg-soft { background-color: var(--color-bg-soft); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-80 { margin-top: 80px; }
.mt-120 { margin-top: 120px; }

/* Typography */
.section-title { font-family: var(--font-accent); font-size: 3rem; font-weight: 400; font-style: italic; letter-spacing: 0.05em; margin-bottom: 20px; }
.section-subtitle { font-size: 0.85rem; color: var(--color-text-light); letter-spacing: 0.2em; text-transform: uppercase; display: block; text-align: center; margin-top: 10px; }
.section-subtitle span { display: inline-block; text-align: left; }

/* =========================================
   Header
========================================= */
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; transition: transform 0.4s ease, background 0.4s ease, padding 0.4s ease, color 0.4s ease; padding: 25px 0; color: #fff; }
.header.scrolled { background-color: rgba(252, 251, 249, 0.95); backdrop-filter: blur(10px); padding: 15px 0; border-bottom: 1px solid rgba(0,0,0,0.03); color: var(--color-text); }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: var(--container-width); margin: 0 auto; padding: 0 5%; }
.logo { display: inline-flex; align-items: center; transition: filter 0.4s ease; }
.logo img { height: 2.4em; width: auto; filter: invert(1) brightness(2); transition: filter 0.4s ease, height 0.4s ease; } /* さらに大きく */
.scrolled .logo img { filter: none; }

.nav {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: var(--color-bg); display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 30px;
    z-index: 99; transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s;
    visibility: hidden; pointer-events: none;
}
.nav.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.nav a { color: var(--color-text); font-size: 1.5rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--font-accent); font-style: italic; }

@media(min-width: 768px) {
  .nav {
    position: static; width: auto; height: auto; background: none; flex-direction: row;
    gap: 40px; transform: none; z-index: auto;
    visibility: visible; pointer-events: auto;
  }
  .nav a { color: inherit; font-size: 0.85rem; letter-spacing: 0.15em; font-family: var(--font-primary); font-style: normal; font-weight: 500; }
  .nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: currentColor; transition: width 0.3s ease; }
  .nav a:hover::after { width: 100%; }
}

.menu-toggle {
    display: flex; flex-direction: column; justify-content: space-between;
    width: 30px; height: 14px; background: none; border: none; cursor: pointer;
    position: relative; z-index: 101;
}
.menu-toggle span { width: 100%; height: 1px; background: #FFFFFF; transition: all 0.4s ease; }
.scrolled .menu-toggle span,
.nav-open .menu-toggle span { background: var(--color-text) !important; }

@media(min-width: 768px) { .menu-toggle { display: none; } }

/* モバイルメニュー展開時のボタンアニメーション */
.nav-open .menu-toggle span:first-child { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
.nav-open .header { color: var(--color-text) !important; }
.nav-open .logo img { filter: none !important; }
.nav-open .header .btn-outline { border-color: var(--color-text) !important; color: var(--color-text) !important; }
.nav-open .header .btn-outline:hover { background: var(--color-text) !important; color: #fff !important; }

.btn-outline { border: 1px solid rgba(255,255,255,0.4); padding: 10px 24px; border-radius: 40px; text-transform: uppercase; font-size: 0.75rem !important; transition: all 0.3s; }
.scrolled .btn-outline { border-color: var(--color-border); }
.btn-outline:hover { background: #fff; color: var(--color-text); border-color: #fff; }
.scrolled .btn-outline:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }

/* =========================================
   Hero Section
========================================= */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; top: -2.5%; left: -2.5%; width: 105%; height: 105%; background-color: #E8E5E1; background-image: url('img/hero_desktop2.jpg'); background-size: cover; background-position: center; z-index: 0; filter: brightness(0.75); }
@media(max-width: 767px) {
  .hero-bg { background-image: url('img/hero_mobile2.jpg'); filter: brightness(0.7); }
}
.hero-container { position: relative; z-index: 10; width: 100%; text-align: center; }
.hero-title { font-family: var(--font-accent); font-size: 4.5rem; line-height: 1.1; font-weight: 400; color: #FFFFFF; text-shadow: 0 4px 60px rgba(0,0,0,0.2); margin-bottom: 30px; font-style: italic; letter-spacing: 0.01em; }
.hero-subtitle { font-family: 'Noto Serif JP', serif; font-size: 1rem; letter-spacing: 0.15em; text-transform: none; color: rgba(255, 255, 255, 0.95); text-shadow: 0 2px 10px rgba(0,0,0,0.3); margin-bottom: 50px; font-weight: 400; display: block; text-align: center; }
.hero-subtitle span { display: inline-block; text-align: center; }
.hero-description { color: rgba(255,255,255,0.7); font-size: 0.85rem; letter-spacing: 0.15em; line-height: 2.2; max-width: 500px; margin: 0 auto 60px; text-transform: uppercase; border-top: 1px solid rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.4); padding: 25px 0; display: block; text-align: center; font-weight: 500; }
.hero-description span { display: inline-block; text-align: center; }
.hero-scroll-indicator { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 20; opacity: 0.8; }
.hero-scroll-indicator span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #FFFFFF; }
.hero-scroll-indicator .line { width: 1px; height: 60px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.hero-scroll-indicator .line::after { content:''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #FFFFFF; animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* =========================================
   Concept
========================================= */
.concept-container { display: flex; flex-direction: column; gap: 60px; align-items: center; }
@media(min-width: 900px) {
  .concept-container { flex-direction: row; gap: 10%; align-items: flex-start; }
  .concept-text { flex: 1; padding-top: 40px; }
  .concept-image { flex: 1; margin-top: 100px; }
}
.series-lead { font-size: 1.8rem; line-height: 1.8; margin-bottom: 50px; color: var(--color-text); text-align: center; font-family: 'Noto Serif JP', serif; }
.block-lead { display: inline-block; text-align: center; }
.block-lead span { display: inline; }

@media screen and (max-width: 768px) {
  .series-lead { font-size: 1.1rem; line-height: 2.2; padding: 0 15px; }
  .block-lead { display: block; text-align: center; width: 100%; margin: 0 auto; }
  .block-lead .l1,
  .block-lead .l2,
  .block-lead .l3 { display: block; white-space: nowrap; transform: none; }
}

.series-desc { color: var(--color-text-light); font-size: 0.95rem; line-height: 2.2; max-width: 600px; margin: 0 auto; text-align: left; }
.concept-lead { font-size: 1.4rem; font-weight: 400; margin-bottom: 30px; letter-spacing: 0.1em; }
.concept-desc { color: var(--color-text-light); line-height: 2; font-size: 0.95rem; }

/* Image Reveal & Placeholder */
.reveal-image { position: relative; overflow: hidden; width: 100%; }
.reveal-image::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--color-bg); z-index: 1; transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1); transform-origin: top; }
.reveal-image.is-visible::after { transform: scaleY(0); }
.image-inner { width: 100%; height: 100%; transform: scale(1.1); transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal-image.is-visible .image-inner { transform: scale(1); }
.placeholder-img { width: 100%; aspect-ratio: 4/5; background: #e8e5e1; }
.placeholder-img img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================
   Products
========================================= */
.product-item { display: flex; flex-direction: column; gap: 40px; margin-bottom: 120px; align-items: center; }
@media(min-width: 900px) {
  .product-item { flex-direction: row; gap: 8%; align-items: stretch; justify-content: center; }
  .product-item.reverse { flex-direction: row-reverse; }
  .product-item .product-image { flex: 0 0 50%; max-width: 500px; }
  .product-item .product-info { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
  .placeholder-img { aspect-ratio: 4/3; }
}
.product-name { font-family: var(--font-accent); font-size: 2.2rem; margin-bottom: 15px; font-weight: 400; font-style: italic; margin-top: 0; }
.product-price { font-size: 1.2rem; border-bottom: 1px solid var(--color-border); padding-bottom: 20px; margin-bottom: 30px; }
.tax { font-size: 0.8rem; color: var(--color-text-light); }
.product-desc { color: var(--color-text-light); margin-bottom: 40px; font-size: 0.95rem; line-height: 1.9; }
.product-specs li { display: flex; padding: 12px 0; border-bottom: 1px dashed var(--color-border); font-size: 0.85rem; color: var(--color-text-light); }
.product-specs li span { flex: 0 0 100px; font-weight: 500; font-family: var(--font-accent); color: var(--color-text); letter-spacing: 0.05em; }

/* =========================================
   New Sections Styling
========================================= */

/* Series / Overview */
.series-content { max-width: 800px; margin: 0 auto; }
.series-lead { font-size: 1.5rem; margin-bottom: 30px; letter-spacing: 0.1em; display: block; text-align: center; }
.series-lead span { display: inline-block; text-align: center; }
.series-desc { color: var(--color-text-light); line-height: 2.2; font-size: 1rem; display: block; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; }
.series-desc span { display: inline-block; text-align: left; }

/* Type Comparison */
.type-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media(min-width: 768px) {
  .type-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.type-card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.02); transition: transform 0.4s ease; }
.type-card:hover { transform: translateY(-10px); }
.type-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.type-info { padding: 40px; }
.type-name { font-family: var(--font-accent); font-size: 1.8rem; margin-bottom: 5px; font-weight: 400; font-style: italic; }
.type-usage { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--color-brass); margin-bottom: 20px; text-transform: uppercase; }
.type-text { color: var(--color-text-light); font-size: 0.9rem; line-height: 1.9; }
.type-specs { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--color-border); }
.type-specs li { font-size: 0.85rem; color: var(--color-text); letter-spacing: 0.05em; line-height: 1.8; display: flex; align-items: flex-start; }
.type-specs li::before { content: ''; display: inline-block; width: 4px; height: 4px; background: var(--color-brass); border-radius: 50%; margin-right: 12px; margin-top: 10px; }
.type-docs { margin-top: 25px; }
.pdf-link { font-size: 0.8rem; color: var(--color-brass); letter-spacing: 0.1em; display: inline-flex; align-items: center; border-bottom: 1px solid var(--color-brass); padding-bottom: 2px; transition: opacity 0.3s; }
.pdf-link:hover { opacity: 0.6; }
.pdf-link::after { content: '→'; margin-left: 8px; font-family: sans-serif; font-size: 0.9em; }

/* Shapes / Edges */
.shape-item { display: flex; flex-direction: column; gap: 40px; align-items: center; margin-bottom: 120px; }
.shape-item:last-child { margin-bottom: 0; }
@media(min-width: 900px) {
  .shape-item { flex-direction: row; gap: 10%; align-items: center; }
  .shape-item.reverse { flex-direction: row-reverse; }
  .shape-text { flex: 1; }
  .shape-image { flex: 1.2; }
}
.shape-name { font-family: var(--font-accent); font-size: 2.2rem; font-weight: 400; font-style: italic; margin-bottom: 20px; position: relative; }
.shape-name span { display: block; font-family: var(--font-primary); font-size: 0.8rem; font-style: normal; color: var(--color-text-light); letter-spacing: 0.1em; margin-top: 5px; }
.shape-desc { color: var(--color-text-light); line-height: 2; font-size: 0.95rem; }

/* 5. Material Section (Full Background) */
.material { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-size: cover; 
    background-position: center; 
    background-attachment: fixed; 
    position: relative; 
    padding: 120px 0; 
    background-color: var(--color-text);
    overflow: hidden;
}

/* Default / Mobile Background */
.material { background-image: url('img/material_tate.jpg'); }

/* Desktop Background Override */
@media screen and (min-width: 992px) {
    .material { background-image: url('img/material_yoko.jpg'); }
}

.material::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.65); 
    z-index: 1; 
}

.material .container { 
    position: relative; 
    z-index: 2; 
    width: 100%; 
}

.material-content-full { 
    max-width: 800px; 
    margin: 0 auto; 
    text-align: center; 
}

.material .section-title { text-align: center !important; margin-bottom: 40px !important; color: #fff; }
.material .series-lead { color: #fff; margin-bottom: 30px; font-size: 1.7rem; text-align: center; line-height: 1.7; }
.material .series-desc { color: rgba(255,255,255,0.9); line-height: 2.2; font-size: 1.05rem; text-align: center; }

@media screen and (max-width: 768px) {
    .material { min-height: 80vh; background-attachment: scroll; }
    .material .series-lead { font-size: 1.2rem; }
    .material .series-desc { font-size: 0.95rem; }
}

/* Custom */
.custom-header { margin-bottom: 60px; }
.custom-header .section-title { margin-bottom: 0 !important; }

.custom-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media(min-width: 900px) {
  .custom-grid { grid-template-columns: 1fr 1fr; gap: 8%; align-items: start; }
}
.custom-lead { font-size: 1.15rem; margin-bottom: 20px; display: block; font-weight: 400; letter-spacing: 0.1em; color: var(--color-text); }
.custom-desc { color: var(--color-text-light); margin-bottom: 30px; font-size: 0.95rem; display: block; text-align: left; }
.custom-desc span { display: inline-block; text-align: left; }
.custom-list { margin-bottom: 20px; }
.custom-list li { padding: 25px 0; border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 10px; }
.custom-list li:last-child { border-bottom: none; }
.list-label { font-weight: 500; color: var(--color-brass); font-size: 1rem; letter-spacing: 0.05em; }
.list-text { color: var(--color-brass); font-size: 0.85rem; line-height: 1.8; opacity: 0.85; }

.custom-cta { margin-top: 60px; }
@media(max-width: 768px) {
    .custom-cta { margin-top: 40px; }
    .custom-cta .btn-outline { width: 100%; text-align: center; } /* スマホでは押しやすくワイドに */
}

/* Use Case (Gallery) */
.mb-60 { margin-bottom: 60px; }

/* ギャラリー: スライダーラッパー */
.gallery-slider-wrapper {
  position: relative;
  width: 100%;
}

/* ギャラリー: 横スワイプ・スクロール形式 */
.case-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 24px;
  padding: 0 0 40px;
  scrollbar-width: none; /* Firefox */
}
.case-grid::-webkit-scrollbar { display: none; } /* Chrome, Safari */

.gallery-nav {
  position: absolute;
  top: calc(50% - 40px); /* pタグの余白を考慮 */
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-nav:hover {
  background: var(--color-brass);
  color: #fff;
  border-color: var(--color-brass);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(194,163,102,0.2);
}

.gallery-nav.prev { left: -24px; }
.gallery-nav.next { right: -24px; }

@media screen and (max-width: 1300px) {
  .gallery-nav.prev { left: 10px; }
  .gallery-nav.next { right: 10px; }
}

@media screen and (max-width: 768px) {
  .gallery-nav { display: none; } /* モバイルではネイティブスクロールのみ */
  .case-grid { gap: 16px; padding: 0 20px 30px; margin: 0 -5%; width: 110%; }
}

.case-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
  transition: transform 0.4s ease;
  position: relative;
  cursor: zoom-in;
}

@media screen and (min-width: 768px) {
  .case-item {
    flex: 0 0 420px;
  }
}

@media screen and (max-width: 767px) {
  .case-item {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
}

.case-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
  cursor: pointer;
}
.case-item:hover img {
  transform: scale(1.02);
  filter: brightness(0.9);
}
.case-item p { margin-top: 15px; font-size: 0.7rem; color: var(--color-text-light); letter-spacing: 0.15em; text-align: center; text-transform: uppercase; font-family: var(--font-primary); font-weight: 400; opacity: 0.8; }

/* Buttons */
.btn-primary { 
    background: var(--color-brass); 
    color: #fff; 
    padding: 18px 40px; 
    border-radius: 4px; 
    display: inline-block; 
    font-size: 1rem; 
    letter-spacing: 0.1em; 
    transition: all 0.3s; 
    border: 1px solid var(--color-brass);
}
.btn-primary:hover { 
    background: #b08f52; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px rgba(194, 163, 102, 0.2); 
}

.btn-outline { 
    border: 1px solid var(--color-brass); 
    color: var(--color-brass); 
    padding: 16px 36px; 
    border-radius: 4px; 
    display: inline-block; 
    font-size: 0.95rem; 
    letter-spacing: 0.1em; 
    transition: all 0.4s ease; 
    background: transparent;
    font-weight: 500;
}
.btn-outline:hover { 
    background: var(--color-brass); 
    color: #fff; 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(194, 163, 102, 0.15); 
}

/* Header Specific Button Adjustment */
.header .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.header .btn-outline:hover { border-color: #fff; background: #fff; color: var(--color-text); }
.header.scrolled .btn-outline { border-color: var(--color-brass); color: var(--color-brass); }
.header.scrolled .btn-outline:hover { background: var(--color-brass); color: #fff; }

/* =========================================
   Gallery Masonry
========================================= */
.gallery-masonry { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 60px; }
@media(min-width: 768px) {
  .gallery-masonry { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.gallery-img { overflow: hidden; position: relative; }
.placeholder-img.box { aspect-ratio: 1/1; }
.placeholder-img.tall { aspect-ratio: 3/4; }

.mb-80 { margin-bottom: 80px; }
.mb-120 { margin-bottom: 120px; }

/* Section Subtitle Typography */
.section-subtitle { 
    font-size: 1.1rem; 
    color: var(--color-text-light); 
    display: block; 
    margin-top: 15px; 
    letter-spacing: 0.15em;
    font-weight: 300;
}

/* =========================================
   FAQ
========================================= */
.faq-container { max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-list { margin-top: 60px; border-top: 1px solid var(--color-border); }
.faq-row { border-bottom: 1px solid var(--color-border); padding: 40px 0; position: relative; cursor: pointer; }
.faq-q { font-size: 1rem; font-weight: 500; display: flex; align-items: center; transition: color 0.3s; line-height: 1.5; color: var(--color-text); padding-right: 40px; }
.faq-icon { position: absolute; right: 0; top: 40px; font-size: 1.5rem; color: var(--color-text-light); transition: transform 0.4s ease; font-weight: 300; }
.faq-a { max-height: 0; overflow: hidden; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); opacity: 0; color: var(--color-text-light); font-size: 0.95rem; line-height: 2.1; }
.faq-a span { display: block; }
.faq-row.is-open .faq-q { color: var(--color-brass-dark); }
.faq-row.is-open .faq-icon { transform: rotate(45deg); color: var(--color-brass); }
.faq-row.is-open .faq-a { max-height: 800px; padding-top: 30px; opacity: 1; }

@media screen and (max-width: 768px) {
    .faq-row { padding: 25px 0; }
    .faq-q { font-size: 0.95rem; line-height: 1.6; }
    .faq-icon { top: 22px; font-size: 1.3rem; }
    .faq-a { font-size: 0.9rem; line-height: 1.9; }
    .faq-row.is-open .faq-a { padding-top: 20px; }
}

/* =========================================
   Order Layout (Specs + Form)
========================================= */
.order { padding: 100px 0 150px; }
.mb-80 { margin-bottom: 80px; }
.order-grid { display: grid; gap: 60px; }
@media(min-width: 768px) {
  .order-grid { display: flex; gap: 8%; align-items: flex-start; }
  .order-summary { flex: 0 0 35%; }
  .order-form-wrapper { flex: 1; }
}

.order-summary { background: #fff; padding: 40px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); position: -webkit-sticky; position: sticky; top: 100px; height: auto; z-index: 99; }
.summary-title { font-family: var(--font-accent); font-size: 1.4rem; font-weight: 400; font-style: italic; margin-bottom: 15px; border-bottom: 1px solid var(--color-border); padding-bottom: 10px; }
.summary-desc { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 30px; }
.summary-item { margin-bottom: 25px; }
.summary-item h5 { font-size: 1rem; color: var(--color-brass-dark); margin-bottom: 10px; }
.summary-item ul li { font-size: 0.85rem; color: var(--color-text-light); padding: 5px 0; border-bottom: 1px dashed var(--color-border); }
.summary-note { font-size: 0.8rem; color: var(--color-text-light); margin-top: 30px; opacity: 0.8; }

.native-form { background: #fff; padding: 40px; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; font-size: 0.9rem; margin-bottom: 8px; font-weight: 500; }
.form-group .required { color: #d9534f; margin-left: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px; border: 1px solid var(--color-border); background: var(--color-bg-soft); border-radius: 4px; font-family: var(--font-primary); font-size: 1rem; color: var(--color-text); transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--color-brass); box-shadow: 0 0 0 3px rgba(194,163,102,0.1); }
.btn-submit { width: 100%; padding: 20px; background-color: var(--color-text); color: #fff; font-size: 1.1rem; letter-spacing: 0.1em; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s, transform 0.3s; margin-top: 10px; }
.btn-submit:hover { background-color: var(--color-brass); transform: translateY(-2px); }

/* =========================================
   Footer
========================================= */
.footer { padding: 80px 0 40px; }
.footer-logo { font-family: var(--font-accent); font-size: 2rem; font-weight: 400; margin-bottom: 10px; font-style: italic; display: inline-flex; align-items: center; justify-content: center; }
.footer-logo img { height: 1.2em; width: auto; }
.footer-copy { font-size: 0.75rem; color: var(--color-text-light); letter-spacing: 0.1em; }

/* =========================================
   Animations
========================================= */
/* Text Reveal (Line/Word) */
.has-reveal-text { position: relative; overflow: hidden; display: block; width: 100%; text-align: center; padding: 5px 0; }
.reveal-text { display: inline-block; transform: translateY(110%); transform-origin: left top; transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1); }
.is-visible .reveal-text { transform: translateY(0); }

/* Simple Fade/Up */
.reveal-fade { opacity: 0; transform: translateY(30px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0, 0.2, 1); }
.is-visible .reveal-fade, .is-visible.reveal-fade { opacity: 1; transform: none; }

/* 中央揃えを維持する必要がある要素（スクロール表示）の例外処理 */
.hero-scroll-indicator.reveal-fade { transform: translateX(-50%) translateY(30px); }
.is-visible.hero-scroll-indicator.reveal-fade { transform: translateX(-50%) translateY(0); opacity: 0.8; }

/* Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Header Reveal on Load */
.reveal-elem { opacity: 0; transform: translateY(-10px); animation: headerFade 1s cubic-bezier(0.77, 0, 0.175, 1) forwards; }
@keyframes headerFade { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   Mobile Sticky CTA (スマホ専用追従ボタン)
========================================= */
.mobile-sticky-cta { position: fixed; bottom: 0; left: 0; width: 100%; padding: 12px 15px; background: rgba(252, 251, 249, 0.95); backdrop-filter: blur(10px); z-index: 101; border-top: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); }
.mobile-sticky-cta.is-visible { transform: translateY(0); }
.btn-sticky { display: block; width: 100%; max-width: 400px; background: var(--color-text); color: #fff; text-align: center; padding: 16px 0; font-size: 1rem; font-weight: 500; letter-spacing: 0.1em; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: background 0.3s; }
.btn-sticky:active { background: var(--color-brass); }

/* Responsive Fixes & Desktop Overrides */
@media(max-width: 767px) {
  /* スマホの操作性優先：フォームのタップ領域拡大・入力時のズーム防止 */
  .form-group input, .form-group select, .form-group textarea { padding: 18px 15px; font-size: 16px; } 
  .btn-submit { padding: 22px; font-size: 1.1rem; }
  .footer { padding-bottom: 100px; } /* 固定CTAと重ならないように */
}

@media(min-width: 768px) {
  /* PCなどの大画面では大きく余白をとる */
  :root { --spacing-section: 180px; }
  .mobile-sticky-cta { display: none !important; }
}

@media(max-width: 900px) {
  .order-summary { position: static; margin-bottom: 40px; }
  .hero-title { font-size: 3.5rem; }
  .product-item { gap: 20px; margin-bottom: 80px; }
}

/* =========================================
   Order Form (Premium Integrated)
========================================= */
.order-form-wrapper {
  background: #fff;
  padding: clamp(20px, 5vw, 60px);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(194, 163, 102, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

@media(min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.order-form .form-group { margin-bottom: 30px; }

.form-label {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text);
}

.badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 10px;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.badge-required { background-color: #A34E4E; color: #fff; }
.badge-optional { background-color: var(--color-bg-soft); color: var(--color-text-light); border: 1px solid var(--color-border); }

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brass);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(194,163,102,0.08);
}

.select-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C2A366' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
  cursor: pointer;
}

.field-supplement {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Address Wrapper */
.address-wrapper {
  background: var(--color-bg-soft);
  padding: 20px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.address-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.address-row label {
  flex: 0 0 80px;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.address-row .form-control { flex: 1; padding: 10px 15px; background: #fff; }

@media(max-width: 500px) {
  .address-row { flex-direction: column; align-items: flex-start; gap: 5px; }
  .address-row label { flex: 0 0 auto; }
}

/* Agreement & Submit */
.agreement-box {
  background: var(--color-bg-soft);
  padding: 20px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  border: 1px dashed var(--color-border);
}

.agreement-box p { margin-bottom: 5px; }

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  user-select: none;
}

.checkbox-label input { width: 18px; height: 18px; margin-right: 12px; accent-color: var(--color-brass); }

.status-message {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 1.6em;
}

.btn-submit {
  width: 100%;
  padding: 22px;
  background-color: var(--color-text);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  margin-top: 10px;
  font-weight: 500;
}

.btn-submit:hover { background-color: var(--color-brass); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(194,163,102,0.2); }
.btn-submit:disabled { background-color: var(--color-border); color: var(--color-text-light); cursor: not-allowed; transform: none; box-shadow: none; }

/* Responsive adjustments for mobile cta */
@media(max-width: 767px) {
  .footer { padding-bottom: 120px; }
}

/* =========================================
   Lightbox
========================================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(28, 27, 26, 0.92); /* bodyのテキスト色をベースに */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(10px);
}

.lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.is-active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  border-radius: 2px;
}

.lightbox-caption {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  font-weight: 300;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 200;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2001;
}

.lightbox-close:hover {
  transform: rotate(90deg);
  opacity: 0.7;
}

/* ライトボックス・ナビゲーション */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 20px;
  transition: all 0.3s ease;
  z-index: 2002;
}

.lightbox-nav:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.2);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

@media screen and (max-width: 768px) {
  .lightbox-nav {
    top: auto;
    bottom: 20px;
    transform: none;
    padding: 15px;
  }
  .lightbox-nav:hover { transform: scale(1.1); }
  .lightbox-nav.prev { left: 20%; }
  .lightbox-nav.next { right: 20%; }
}

body.lightbox-open {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2rem;
  }
}

/* =========================================
   Collection (Related Products)
========================================= */
.collection.section {
  padding-top: 40px; /* ギャラリーとの過剰な余白を解消 */
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media(min-width: 768px) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.collection-item {
  position: relative;
  transition: transform 0.4s ease;
}

.collection-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.collection-image {
  position: relative;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 4px;
}

.collection-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.collection-item:hover .collection-image img {
  transform: scale(1.05);
}

/* Coming Soon Overlay */
.coming-soon-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(28, 27, 26, 0.45); /* 透過度をアップ */
  color: #fff;
  padding: 10px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.collection-info {
  text-align: center;
}

.collection-name {
  font-family: var(--font-accent);
  font-size: 1.5rem; /* 3列にするためサイズを少し調整 */
  font-weight: 400;
  font-style: italic;
  margin-bottom: 10px;
}

.collection-category {
  font-size: 0.7rem;
  color: var(--color-brass);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
}

.collection-desc {
  color: var(--color-text-light);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0 auto 25px;
  text-align: left; /* モバイル・デスクトップ共通で左揃え */
  max-width: 280px;  /* 文字が広がりすぎないよう制限し、中央に寄せる */
}

.collection-more {
  font-size: 0.75rem;
  color: var(--color-text);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
  transition: all 0.3s;
}

.collection-item:hover .collection-more {
  border-color: var(--color-brass);
  color: var(--color-brass);
}

.placeholder-img.bg-dark-brass {
    background: #c5a059;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: 1.5rem;
    height: 100%;
    width: 100%;
    aspect-ratio: 16/10;
    filter: brightness(0.8);
}

/* Mobile only line break */
@media(min-width: 768px) {
  .sp-br { display: none; }
}
/* =========================================
   reCAPTCHA Hiding
========================================= */
.grecaptcha-badge { 
    visibility: hidden; 
}
