/* 元ページの /pages/silkt_m/style.css の後に読み込むFF30G専用スタイル。
   共通のリセット等は元CSSから引き継ぎ、以下はFF30G内に適用する。
   フォントはHTMLのheadで読み込む。 */
#ff30g-feature {
  --ff30g-space: clamp(56px, 6.1vw, 88px);
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flow-root;
  padding: clamp(0, 14.2vw, 205px) 0 0;
  background: #fff;
  color: #222;
  font-family: 'Zen Old Mincho', 'Yu Mincho', serif;
  font-weight: 400;
  text-align: left;
  isolation: isolate;
}
#ff30g-feature *,
#ff30g-feature *::before,
#ff30g-feature *::after { box-sizing: border-box; }
#ff30g-feature .ff30g-photo { margin: 0; padding: 0; border: 0; }
#ff30g-feature .ff30g-photo-link {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
}
#ff30g-feature .ff30g-photo-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  transition: opacity .3s ease;
}
#ff30g-feature .ff30g-photo-link:focus-visible {
  outline: 2px solid #333;
  outline-offset: 5px;
}
@media (hover: hover) and (pointer: fine) {
  #ff30g-feature .ff30g-photo-link:hover img { opacity: .6; }
}
#ff30g-feature .ff30g-photo--hero,
#ff30g-feature .ff30g-photo--wide,
#ff30g-feature .ff30g-photo--closing {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}
#ff30g-feature .ff30g-title {
  position: relative;
  width: 81%;
  margin: clamp(48px, 9.4vw, 135px) auto clamp(48px, 8.2vw, 118px);
  padding: 14px 0;
  font-family: 'Jost', sans-serif;
  font-size: clamp(32px, 3.5vw, 74px);
  font-weight: 200;
  line-height: 1.3;
  letter-spacing: .4em;
  text-align: center;
  color: #181818;
  border: 0;
  background: none;
}
#ff30g-feature .ff30g-title span { display: block; padding-left: .4em; }
#ff30g-feature .ff30g-title::before,
#ff30g-feature .ff30g-title::after {
  content: '';
  position: absolute;
  width: 67%;
  height: 1px;
  background: #a5a5a5;
}
#ff30g-feature .ff30g-title::before { top: 0; left: 0; }
#ff30g-feature .ff30g-title::after { bottom: 0; right: 0; }
#ff30g-feature .ff30g-copy { min-width: 0; }
#ff30g-feature .ff30g-copy p {
  font-family: 'Zen Old Mincho', 'Yu Mincho', serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: .12em;
  color: #333;
  text-align: left;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
/* pで区切った本文の段落間だけに余白を入れる。 */
#ff30g-feature .ff30g-copy p + p {
  margin-top: 20px;
}
#ff30g-feature .ff30g-story--intro {
  position: relative;
  display: grid;
  grid-template-columns: 46% 46%;
  grid-template-rows: auto 1fr;
  column-gap: 8%;
  width: 81.5%;
  margin: 0 auto var(--ff30g-space);
}
#ff30g-feature .ff30g-photo--intro-left { grid-column: 1; grid-row: 1 / 3; align-self: start; }
#ff30g-feature .ff30g-copy--intro {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 116%;
  margin-left: -22%;
  padding-top: 14px;
}
#ff30g-feature .ff30g-photo--intro-right {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin-top: clamp(72px, 12vw, 173px);
}
#ff30g-feature .ff30g-story--stagger {
  display: grid;
  grid-template-columns: 46% 46%;
  gap: 8%;
  align-items: start;
  width: 81.5%;
  margin: var(--ff30g-space) auto;
}
#ff30g-feature .ff30g-photo--stagger-left { margin-top: 74%; }
#ff30g-feature .ff30g-photo--panorama { width: 92.7%; margin: var(--ff30g-space) auto; }
#ff30g-feature .ff30g-photo--detail { width: 47.4%; margin: var(--ff30g-space) 0 var(--ff30g-space) 9.2%; }
#ff30g-feature .ff30g-story--overlap {
  position: relative;
  width: 100%;
  margin: var(--ff30g-space) auto;
}
#ff30g-feature .ff30g-photo--overlap { width: 71.1%; margin-left: 28.7%; }
#ff30g-feature .ff30g-copy--overlap {
  position: absolute;
  z-index: 1;
  top: 28px;
  left: 8.7%;
  width: 44%;
}
/* JSが使用できない環境でも写真は表示する。 */
#ff30g-feature.ff30g-motion-enabled .ff30g-reveal {
  opacity: 0;
  transition: opacity 1.4s ease-out;
}
#ff30g-feature.ff30g-motion-enabled .ff30g-reveal.ff30g-is-visible { opacity: 1; }
#ff30g-feature.ff30g-motion-enabled .ff30g-reveal:focus-visible { opacity: 1; }

/* 元ページのfooter-btns / btnの指定をFF30G内にも適用する。 */
#ff30g-feature .ff30g-footer-btns {
  margin: 100px auto 120px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#ff30g-feature .ff30g-btn {
  display: block;
  width: 100%;
  max-width: 500px;
  padding: 20px 20px;
  text-align: center;
  font-family: 'EB Garamond', 'Zen Old Mincho', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: .2em;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
  border: 1px solid #333;
  background: transparent;
  color: #333;
  text-decoration: none;
}
#ff30g-feature .ff30g-btn:hover {
  background: #333;
  color: #fff;
  text-decoration: none;
}
#ff30g-feature .ff30g-btn:focus-visible { outline: 2px solid #333; outline-offset: 5px; }

/* 写真の拡大表示。dialogのトップレイヤーでCMSの重なり順から独立させる。 */
#ff30g-feature .ff30g-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#ff30g-feature .ff30g-gallery {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #333;
  font-family: 'EB Garamond', 'Zen Old Mincho', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  overscroll-behavior: contain;
  overflow: auto;
}
#ff30g-feature .ff30g-gallery:not([open]) { display: none; }
#ff30g-feature .ff30g-gallery::backdrop { background: rgba(0, 0, 0, .2); }
#ff30g-feature .ff30g-gallery-stage {
  position: absolute;
  inset: 0 7% 0 10.9%;
  display: grid;
  grid-template-columns: min(40.5vw, 66.6667dvh) minmax(0, 1fr);
  gap: 4vw;
  align-items: center;
  opacity: 1;
  transition: opacity .22s ease;
}
#ff30g-feature .ff30g-gallery-stage.ff30g-is-changing { opacity: 0; }
#ff30g-feature .ff30g-gallery-figure { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; }
#ff30g-feature .ff30g-gallery-image-link { display: block; width: 100%; height: 100%; }
#ff30g-feature .ff30g-gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}
#ff30g-feature .ff30g-gallery-products { min-width: 0; max-height: calc(100dvh - 120px); overflow: auto; }
#ff30g-feature .ff30g-gallery-product {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0;
  color: inherit;
  font: inherit;
  letter-spacing: .1em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: opacity .2s ease;
}
#ff30g-feature .ff30g-gallery-product:hover { opacity: .6; }
#ff30g-feature .ff30g-gallery-product:focus-visible,
#ff30g-feature .ff30g-gallery-image-link:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
#ff30g-feature .ff30g-gallery-control {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #333;
  /*! font: inherit; */
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .3s ease;
  font-family: 'Jost', sans-serif;
  font-weight: 200;
}
#ff30g-feature .ff30g-gallery-control:hover { opacity: .6; }
#ff30g-feature .ff30g-gallery-control:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
#ff30g-feature .ff30g-gallery-close { top: max(16px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); }

#ff30g-feature .ff30g-gallery-prev { top: 50%; transform: translateY(-50%); left: max(8px, env(safe-area-inset-left)); }
#ff30g-feature .ff30g-gallery-next { top: 50%; transform: translateY(-50%); right: max(8px, env(safe-area-inset-right)); }



@media (max-width: 768px) {
  #ff30g-feature .ff30g-gallery-stage {
    inset: 64px 48px 24px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 16px;
  }
  #ff30g-feature .ff30g-gallery-products { max-height: 22dvh; font-size: 16px; }
  #ff30g-feature .ff30g-gallery-product { margin: 4px 0; }
  #ff30g-feature .ff30g-gallery-close { right: max(12px, env(safe-area-inset-right)); }
  #ff30g-feature .ff30g-gallery-prev { left: max(12px, env(safe-area-inset-left)); }
  #ff30g-feature .ff30g-gallery-next { right: max(12px, env(safe-area-inset-right)); }
  #ff30g-feature .ff30g-title {
    width: 92%;
    margin-top: 48px;
    margin-bottom: 48px;
    padding: 12px 0;
    font-size: clamp(23px, 6.6vw, 44px);
    letter-spacing: .25em;
  }
  #ff30g-feature .ff30g-title span { padding-left: .25em; }
  #ff30g-feature .ff30g-copy p { font-size: 14px; }
  #ff30g-feature .ff30g-btn { width: 90%; }
  #ff30g-feature .ff30g-footer-btns { margin-bottom: 80px; }
  #ff30g-feature .ff30g-story--intro,
  #ff30g-feature .ff30g-story--stagger {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  #ff30g-feature .ff30g-photo--intro-left,
  #ff30g-feature .ff30g-photo--stagger-left { width: 72%; margin: 0 auto 0 0; }
  #ff30g-feature .ff30g-photo--intro-right,
  #ff30g-feature .ff30g-photo--stagger-right { width: 72%; margin: 0 0 0 auto; }
  #ff30g-feature .ff30g-copy--intro {
    width: 100%;
    margin: 32px 0;
    padding: 0;
  }
  #ff30g-feature .ff30g-photo--stagger-left { margin-bottom: 40px; }
  #ff30g-feature .ff30g-copy--overlap {
    position: relative;
    top: auto;
    left: auto;
    width: 81.5%;
    margin: 0 auto 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ff30g-feature.ff30g-motion-enabled .ff30g-reveal { opacity: 1; transition: none; }
  #ff30g-feature .ff30g-photo-link img,
  #ff30g-feature .ff30g-btn,
  #ff30g-feature .ff30g-gallery-control,
  #ff30g-feature .ff30g-gallery-stage,
  #ff30g-feature .ff30g-gallery-product { transition: none; }
}

/* タイトル直下の紹介文・製造工程写真・説明文 */
#ff30g-feature .ff30g-introduction { margin: 0 auto var(--ff30g-space); }
#ff30g-feature .ff30g-copy--lead {
  width: 82%;
  max-width: 1120px;
  margin: 0 auto var(--ff30g-space);
}
#ff30g-feature .ff30g-copy--lead p { text-align: center; }
#ff30g-feature .ff30g-material-pair {
  display: grid;
  grid-template-columns: 46% 46%;
  gap: 8%;
  align-items: start;
  width: 81.5%;
  margin: 0 auto;
}
#ff30g-feature .ff30g-photo--material { width: 100%; margin: 0; }
#ff30g-feature .ff30g-photo--material-left { margin-top: 74%; }
#ff30g-feature .ff30g-material-right { min-width: 0; }
#ff30g-feature .ff30g-photo--material img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}
/* 素材写真2枚の下と、最後の写真の下で共通の本文幅・余白を使用。 */
#ff30g-feature .ff30g-copy--narrative {
  width: 50%;
  max-width: 900px;
  margin: var(--ff30g-space) auto 0;
}
@media (max-width: 768px) {
  #ff30g-feature .ff30g-material-pair { display: flex; flex-direction: column; gap: 32px; }
  #ff30g-feature .ff30g-material-right { display: contents; }
  #ff30g-feature .ff30g-photo--material-right { order: 1; width: 60%; margin-left: auto; }
  #ff30g-feature .ff30g-photo--material-left { order: 2; width: 75%; margin: 0 auto 0 0; }
  #ff30g-feature .ff30g-copy--lead p { text-align: left; }
  #ff30g-feature .ff30g-introduction .ff30g-pc-break { display: none; }
}

/* 追加されたff30g-11.jpgだけを一回り狭くし、後続コンテンツとの余白を確保。 */
#ff30g-feature .ff30g-photo--bridge {
  width: 70%;
  margin: 0 auto var(--ff30g-space);
}
/* 字形の太さに依存しない1pxの線で、細い矢印と閉じるアイコンを描く。 */
#ff30g-feature .ff30g-gallery-control span {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}
#ff30g-feature .ff30g-gallery-control span::before,
#ff30g-feature .ff30g-gallery-close span::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
}
#ff30g-feature .ff30g-gallery-close span::before,
#ff30g-feature .ff30g-gallery-close span::after {
  width: 34px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
#ff30g-feature .ff30g-gallery-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
#ff30g-feature .ff30g-gallery-prev span::before,
#ff30g-feature .ff30g-gallery-next span::before {
  width: 16px;
  height: 16px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translate(-25%, -50%) rotate(45deg);
}
#ff30g-feature .ff30g-gallery-next span::before { transform: translate(-75%, -50%) rotate(225deg); }

/* SPでは、対になる写真を先に並べてから本文を表示する。 */
@media (max-width: 768px) {
  #ff30g-feature .ff30g-photo--intro-left { order: 1; }
  #ff30g-feature .ff30g-photo--intro-right { order: 2; margin-top: 32px; }
  #ff30g-feature .ff30g-copy--intro { order: 3; margin: 32px 0 0; }
  #ff30g-feature .ff30g-story--overlap { display: flex; flex-direction: column; }
  #ff30g-feature .ff30g-photo--overlap { order: 1; }
  #ff30g-feature .ff30g-copy--overlap { order: 2; margin: 32px auto 0; }
}

/* SPの本文は広い側（ページ幅の82%）に統一する。PCの本文幅は維持。 */
@media (max-width: 768px) {
  #ff30g-feature .ff30g-copy {
    width: 82%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  /* この本文だけは幅82%の親要素の中にあるため、親幅いっぱいにする。 */
  #ff30g-feature .ff30g-story--intro { width: 82%; }
  #ff30g-feature .ff30g-copy--intro { width: 100%; }
}

/* PCのヘッダーは元の本文内サイズ。全幅表示はSPのみ。 */
#ff30g-feature .ff30g-photo--hero {
  width: 82%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  #ff30g-feature .ff30g-photo--hero {
    width: var(--ff30g-viewport-width, 100vw);
    margin-left: var(--ff30g-viewport-offset, calc(50% - 50vw));
    margin-right: 0;
  }
}
/* CMS側のspanへの文字指定があっても、見出しのサイズ・書体を引き継ぐ。 */
#ff30g-feature .ff30g-title span {
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}
@media (max-width: 768px) {
  #ff30g-feature .ff30g-title {
    font-size: clamp(30px, 8vw, 44px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* 工場パート：全景 → 右上・左下の縦写真 → 右寄せの仕上げ工程。 */
#ff30g-feature .ff30g-photo--factory-overview {
  width: 82%;
  margin: 0 auto var(--ff30g-space);
}
#ff30g-feature .ff30g-photo--factory-finishing {
  width: 65%;
  margin: var(--ff30g-space) 9.25% 0 auto;
}
#ff30g-feature .ff30g-photo--factory-overview img,
#ff30g-feature .ff30g-photo--factory-finishing img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  border: 0;
}
@media (max-width: 768px) {
  #ff30g-feature .ff30g-photo--factory-finishing { width: 72%; margin-right: 9%; }
}

/* 工場写真のサイズ・横並びを画面幅別に調整。 */
@media (min-width: 769px) {
  #ff30g-feature .ff30g-material-pair { width: 72%; }
  #ff30g-feature .ff30g-photo--factory-finishing { width: 58%; }
}
@media (max-width: 768px) {
  #ff30g-feature .ff30g-photo--factory-overview {
    width: var(--ff30g-viewport-width, 100vw);
    max-width: none;
    margin-left: var(--ff30g-viewport-offset, calc(50% - 50vw));
    margin-right: 0;
  }
  #ff30g-feature .ff30g-material-pair {
    display: grid;
    grid-template-columns: 46% 46%;
    gap: 8%;
    width: 82%;
    align-items: start;
  }
  #ff30g-feature .ff30g-photo--material-left {
    grid-column: 1;
    grid-row: 1;
    order: initial;
    width: 100%;
    margin: 74% 0 0;
  }
  #ff30g-feature .ff30g-material-right {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }
  #ff30g-feature .ff30g-photo--material-right { width: 100%; margin: 0; }
}

/* SPの矢印は画像左右の余白の中央、商品情報は画像下の余白の中央へ。 */
@media (max-width: 768px) {
  #ff30g-feature .ff30g-gallery-stage {
    grid-template-rows: minmax(0, 1fr) var(--ff30g-products-reserve, 120px);
  }
  #ff30g-feature .ff30g-gallery-products {
    position: absolute;
    top: var(--ff30g-products-top, calc(100% - 120px));
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: flex-start;
    max-height: none;
    padding: 16px 0;
    overflow: auto;
  }
  #ff30g-feature .ff30g-gallery-prev,
  #ff30g-feature .ff30g-gallery-next {
    top: var(--ff30g-arrow-top, 50%);
    width: 44px;
    padding: 0;
  }
  #ff30g-feature .ff30g-gallery-prev {
    left: var(--ff30g-prev-center, 24px);
    right: auto;
    transform: translate(-50%, -50%);
  }
  #ff30g-feature .ff30g-gallery-next {
    right: var(--ff30g-next-center, 24px);
    left: auto;
    transform: translate(50%, -50%);
  }
  #ff30g-feature .ff30g-gallery-prev span::before { left: calc(50% + 5.66px); transform: translate(-50%, -50%) rotate(45deg); }
  #ff30g-feature .ff30g-gallery-next span::before { left: calc(50% - 5.66px); transform: translate(-50%, -50%) rotate(225deg); }
}

@media (max-width: 768px) {
  #ff30g-feature .ff30g-gallery-products .ff30g-gallery-product { flex-shrink: 0; }
}

/* SPのタップ操作では閉じるボタンの枠を非表示。キーボード操作のフォーカスは残す。 */
@media (max-width: 768px) {
  #ff30g-feature .ff30g-gallery-close {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
  }
  #ff30g-feature .ff30g-gallery.ff30g-gallery-pointer .ff30g-gallery-close {
    outline: none;
  }
}
