@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Jost:wght@200;300;400&display=swap');

/* html, bodyの指定を削除し、#fresco-tie-wrapperのスコープ内にのみスタイルを適用 */

/* ==============================================================
   リセット＆スコープ化（ネクタイページ用）
   ============================================================== */
#fresco-tie-wrapper {
  background: #fff;
  color: #111;
  overflow-x: hidden;
  width: 100%; /* 横スクロール問題を防ぐため100vwから100%に変更 */
  margin: 0;
  padding: 0;
  font-family: sans-serif; /* サイト全体のフォントを上書きしないよう指定がある場合はここに */
}

/* ==============================================================
   PC / SP 表示切り替え
   ============================================================== */
#fresco-tie-wrapper .sp_only {
  display: none !important;
}

@media (max-width: 768px) {
  #fresco-tie-wrapper .pc_only {
    display: none !important;
  }
  #fresco-tie-wrapper .sp_only {
    display: block !important;
  }
  #fresco-tie-wrapper br.sp_only,
  #fresco-tie-wrapper span.sp_only {
    display: inline !important;
  }
}

/* =====================
   HEADER BANNER
   ===================== */
#fresco-tie-wrapper .header-banner {
  width: 100%;
  position: relative;
  height: 90vh; 
  height: 90svh; 
  overflow: hidden;
}

#fresco-tie-wrapper .hero-img-wrap {
  width: 100%;
  height: 100%;
}

#fresco-tie-wrapper .hero-img-wrap picture,
#fresco-tie-wrapper .hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

#fresco-tie-wrapper .header-title {
  position: absolute;
  top: 50%;
  left: 50%; 
  transform: translate(-50%, -50%); 
  text-align: center; 
  width: 100%; 
  z-index: 10;
  color: #fff;
  pointer-events: none;
}

#fresco-tie-wrapper .header-title .en-title {
  font-family: 'EB Garamond', serif;
  font-size: 60px;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1.3;
  display: block;
}

/* =====================
   TEXT BLOCK
   ===================== */
#fresco-tie-wrapper .text-block {
  margin: 80px auto;
  padding: 0 20px;
  max-width: 700px;
  text-align: left;
}

#fresco-tie-wrapper .text-block.center {
  text-align: center;
}

#fresco-tie-wrapper .text-block.center p,
#fresco-tie-wrapper .text-block.center .sub-heading {
  text-align: center;
}

#fresco-tie-wrapper .text-block.intro-block {
  margin-top: 100px;
  margin-bottom: 100px;
}
#fresco-tie-wrapper .text-block.message-block {
  margin-bottom: 0;
}

#fresco-tie-wrapper .text-block p {
  font-family: 'Jost', "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.12em;
  color: #333;
  margin-bottom: 20px;
}

#fresco-tie-wrapper .text-block p:last-child {
  margin-bottom: 0;
}

#fresco-tie-wrapper .text-block .sub-heading {
  font-family: 'EB Garamond', "Zen Old Mincho", serif;
  font-size: 30px;
  font-weight: 400;
  color: #111;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* =====================
   CONTENT SECTIONS
   ===================== */
#fresco-tie-wrapper .content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#fresco-tie-wrapper .section {
  margin: 80px 0;
}

/* ==============================================
   FEATURE HEADER
   ============================================== */
#fresco-tie-wrapper .feature-header {
  text-align: center;
  margin: 0 auto 5%;
}
#fresco-tie-wrapper .feature-header .title-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
#fresco-tie-wrapper .feature-header .main-title {
  display: flex;
  align-items: baseline;
}
#fresco-tie-wrapper .feature-header .title {
  font-family: 'EB Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #333;
  margin: 0;
}
#fresco-tie-wrapper .feature-header .sub-title {
  font-family: 'EB Garamond', "Zen Old Mincho", serif;
  font-size: 16px;
  color: #555;
  margin-top: 16px;
  letter-spacing: 0.15em;
  font-weight: 400;
}

/* ==============================================
   FACTORY GALLERY
   ============================================== */
#fresco-tie-wrapper .factory-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr; 
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  max-width: 1200px; 
  margin: 0 auto 60px;
  aspect-ratio: 2 / 1; 
  height: auto; 
}

#fresco-tie-wrapper .factory-gallery .fg-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#fresco-tie-wrapper .factory-gallery .fg-item:nth-child(1) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
#fresco-tie-wrapper .factory-gallery .fg-item:nth-child(2) {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
#fresco-tie-wrapper .factory-gallery .fg-item:nth-child(3) {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* ==============================================
   PRODUCT VERTICAL
   ============================================== */
#fresco-tie-wrapper .product-vertical {
  max-width: 1200px;
  margin: 0 auto;
}

#fresco-tie-wrapper .pv-block {
  margin-bottom: 20px;
}

#fresco-tie-wrapper .pv-block picture {
  display: block;
}

#fresco-tie-wrapper .pv-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto 40px;
}

/* =====================
   DIVIDER & BUTTONS
   ===================== */
#fresco-tie-wrapper .feature-divider {
  width: 10%;
  height: 1px;
  background-color: #ccc;
  border: none;
  margin: 80px auto;
}

#fresco-tie-wrapper .footer-btns {
  margin: 80px auto -30px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#fresco-tie-wrapper .btn {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 16px 20px;
  text-align: center;
  font-family: 'EB Garamond', "Zen Old Mincho", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.15em;
  transition: background 0.3s, color 0.3s;
  border: 1px solid #333;
  background: transparent;
  color: #333;
  text-decoration: none; 
}

#fresco-tie-wrapper .btn:hover {
  background: #333;
  color: #fff;
  text-decoration: none; 
}

/* =====================
   SCROLL FADE-IN ANIMATION
   ===================== */
#fresco-tie-wrapper .fade-in {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

#fresco-tie-wrapper .fade-in.is-visible {
  opacity: 1;
}

/* =====================
   RESPONSIVE — MOBILE
   ===================== */
@media (max-width: 768px) {
  #fresco-tie-wrapper .header-title .en-title {
    font-size: 32px;
    line-height: 1.5;
  }

  /* 序文（intro-block）も他のtext-blockと同じ幅になるようpaddingを統一 */
  #fresco-tie-wrapper .text-block {
    margin: 50px auto; 
    padding: 0 40px; 
  }
  #fresco-tie-wrapper .text-block.intro-block {
    margin-top: 70px;
    margin-bottom: 70px;
  }

  #fresco-tie-wrapper .text-block .sub-heading {
    font-size: 18px;
    margin-bottom: 30px;
  }
  #fresco-tie-wrapper .text-block p {
    font-size: 14px;
  }

  #fresco-tie-wrapper .text-block.center {
    text-align: left;
    padding: 0 40px;
  }
  #fresco-tie-wrapper .text-block.center p,
  #fresco-tie-wrapper .text-block.center .sub-heading {
    text-align: left;
  }

  #fresco-tie-wrapper .feature-header {
    margin: 0 auto 10%;
  }
  #fresco-tie-wrapper .feature-header .title {
    font-size: 24px;
  }
  #fresco-tie-wrapper .feature-header .sub-title {
    font-size: 14px;
    margin-top: 10px;
  }

  #fresco-tie-wrapper .factory-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    aspect-ratio: auto;
    gap: 10px;
    height: auto;
  }
  
  #fresco-tie-wrapper .factory-gallery .fg-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    aspect-ratio: 3 / 2;
  }
  #fresco-tie-wrapper .factory-gallery .fg-item:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    aspect-ratio: 1 / 1;
  }
  #fresco-tie-wrapper .factory-gallery .fg-item:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    aspect-ratio: 1 / 1;
  }

  #fresco-tie-wrapper .pv-img {
    margin: 0 auto 30px;
  }

  #fresco-tie-wrapper .feature-divider {
    margin: 50px auto; 
    width: 20%;
  }

  #fresco-tie-wrapper .btn {
    width: 90%;
  }
    
  footer {
    background: #062A43;
  }
}
