/* ============================================================
   style-gallery.css
   左に固定サイドバー（ロゴ・縦書きの屋号・糸のカテゴリー）＋
   右いっぱいに大きな写真、のギャラリーレイアウト
   目次
     1. 変数・ベース
     2. 共通パーツ（見出し・ボタン・カード）
     3. PC：サイドバー（高さ・日本語2段・シリーズ切り替え）
     4. PC：本文レイアウト・ヒーロー
     5. スマホ：上部バー・フッター
     6. ヒーローの装飾（糸の交差）
     7. オーダーページ（吊るす写真・ボード）
     8. トップの作品（うさぎ段・ねこ段）
     9. 戻るボタン・小さな部品
   ============================================================ */


/* ============================================================
   1. 変数・ベース
   ============================================================ */
:root,
:root[class] {
  --cream:      #EFE5D1;     
  --cream-dark: #E3D4B8;
  --ink:        #33261B;     
  --ink-mid:    #5B4A39;
  --muted:      #8F7C63;
  --border:     #C9B491;
  --gold:       #A9822F;     
  --gold-soft:  rgba(169,130,47,.35);
  --rust:       #7A4229;     
  --rust-light: #B07A5A;
  --rose:       #7A4229;
  --teal:       #4F6A5E;     
  --teal-light: #9DB3A6;
  --sage:       #7C7A52;
  --glow:       rgba(0,0,0,0);
  --navy:       #2B1E15;    
  --side-w:     183px;       
  --gap-r:      43px;       
}

body {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .34  0 0 0 0 .2  0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 45% 30% at 85% 12%, rgba(176,140,80,.22), transparent 70%),
    radial-gradient(ellipse 50% 30% at 20% 88%, rgba(176,140,80,.2), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  letter-spacing: .04em;
}
body::before { display: none; }


/* ============================================================
   2. 共通パーツ
   ============================================================ */
.section-header {
  display: block;
  margin-bottom: 3rem;
}
.section-header::before { display: none; }
.section-title {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: .06em;
  color: var(--ink);
  white-space: normal;
}
.section-title::before, .section-line { display: none; }
.section-sub {
  display: block;
  margin-top: .3rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: none;
  color: var(--ink-mid);
}
.journal-title, .article-title, .hero-title, .concept-title, .product-name {
  font-family: 'Noto Serif JP', serif;
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
}

#works, #process, .concept, .blog-section, .journal-header, .contact-section { background: transparent; }
.hero-scrim, .hero-emblem-bg, .hero-corner-flourish, .hero::before { display: none; }

.blog-more-btn, .hero-btn, .contact-btn, .product-buy-btn, .filter-chip {
  border-radius: 0;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: .12em;
  text-transform: none;
  box-shadow: none;
  backdrop-filter: none;
}
.blog-more-btn, .hero-btn { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.blog-more-btn:hover, .hero-btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); box-shadow: none; }
.contact-btn, .product-buy-btn { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.contact-btn:hover, .product-buy-btn:hover { background: var(--gold); border-color: var(--gold); box-shadow: none; transform: none; }
.filter-chip.active { background: var(--ink); border-color: var(--ink); }

/* ---------- 作品カード ---------- */
.items-grid { gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.item-card, .item-card:nth-child(odd), .item-card:nth-child(even) {
  background: transparent; border-radius: 0; padding: 0; box-shadow: none; transform: none;
}
.item-card:hover { transform: none; box-shadow: none; }
.item-card::after { display: none; }
.item-photo { border-radius: 0; padding: 0; aspect-ratio: 4/3; background-origin: padding-box; background-clip: border-box; background-color: var(--cream-dark); transition: filter .3s; }
.item-card:hover .item-photo { filter: brightness(1.07); }
.item-badge { top: 0; left: 0; border-radius: 0; background: var(--ink); font-size: 11px; letter-spacing: .1em; backdrop-filter: none; }
.item-badge::before { display: none; }
.item-info { padding: .8rem 0 0; }
.item-name { font-family: 'Noto Serif JP', serif; font-style: normal; font-weight: 500; font-size: 14px; }
.item-sub { text-transform: none; font-size: 11px; letter-spacing: .08em; margin-bottom: 4px; }
.item-price { font-family: 'Noto Serif JP', serif; font-size: 13px; font-weight: 500; color: var(--gold); }

/* ---------- ブログ・コンセプト・工程・その他 ---------- */
.blog-card { background: transparent; border: none; border-radius: 0; box-shadow: none; overflow: visible; }
.blog-card::before { display: none; }
.blog-card:hover { transform: none; box-shadow: none; }
.blog-photo { border: none; }
.blog-info { padding: .8rem 0 0; }
.blog-tag-label { background: transparent; color: var(--gold); border: none; padding: 0; font-size: 11px; letter-spacing: .1em; }
.blog-title { font-family: 'Noto Serif JP', serif; font-weight: 500; font-size: 14px; }
.value-item, .process-step { background: rgba(255,255,255,.3); border: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.value-item:hover { transform: none; box-shadow: none; border-color: var(--ink-mid); }
.value-icon { border-radius: 0; box-shadow: none; border-color: var(--ink-mid) !important; color: var(--ink-mid) !important; }
.process-step::before { height: 2px; background: var(--gold); }
.process-num { color: var(--border); }
.insta-tile { border-radius: 0; box-shadow: none; background: var(--cream-dark); }
.form-field input, .form-field textarea { border-radius: 0; font-family: 'Noto Serif JP', serif; }
.product-photo-frame { background: transparent; padding: 0; box-shadow: none; border-radius: 0; transform: none; }
.product-photo { border-radius: 0; background-origin: padding-box; background-clip: border-box; background-color: var(--cream-dark); }

/* ---------- フッター（共通） ---------- */
.footer { background: var(--navy); }
.footer::before { display: none; }
.footer-brand::before { display: none; }
.footer-brand .nav-logo-img { filter: none; }
.footer-links a small { display: none; }  

/* ---------- ヒーローの文字 ---------- */
.hero-tag {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: none;
  color: var(--gold);
  text-shadow: none;
}
.hero-title { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .08em; line-height: 1.6; text-shadow: none; }
.hero-title em { font-family: inherit; font-weight: 500; color: var(--gold); text-shadow: none; }
.hero-desc { color: var(--ink-mid); text-shadow: none; margin-left: 0; font-size: 13px; }


/* ============================================================
   3. PC：サイドバー
   ============================================================ */
@media (min-width: 769px) {

  /* --- 固定サイドバー --- */
  .nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--side-w);
    padding: clamp(14px, 3vh, 40px) 0 clamp(12px, 3vh, 32px) 33px;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background: transparent;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .nav::before, .nav::after { display: none; }

  .nav-logo { flex-direction: column; align-items: center; gap: clamp(6px, 1.6vh, 18px); width: fit-content; }
  .nav-logo-img { width: clamp(70px, 10vh, 110px); }
  .nav-logo span {
    writing-mode: vertical-rl;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(11px, 1.8vh, 15px);
    font-weight: 400;
    letter-spacing: .18em;
    color: var(--ink);
    order: 0;
  }

  .nav-links {
    position: relative;
    flex-direction: column;
    --link-gap: clamp(.35rem, 1.4vh, 1rem);
    gap: var(--link-gap);
    margin: clamp(.8rem, 2.5vh, 2rem) 0 0 -8px;
    padding-left: 0;
  }

  .nav-links > li:nth-child(1) { --thread: var(--stripe-1); }
  .nav-links > li:nth-child(2) { --thread: var(--stripe-2); }
  .nav-links > li:nth-child(3) { --thread: var(--stripe-3); }
  .nav-links > li:nth-child(4) { --thread: var(--stripe-4); }
  .nav-links > li:nth-child(5) { --thread: var(--stripe-5); }
  .nav-links > li:nth-child(6) { --thread: var(--stripe-1); }
  .nav-links > li:nth-child(7) { --thread: var(--stripe-2); }

  .nav-links > li { position: relative; padding-left: 20px; }

  .nav-links > li:not(.nav-series)::after {
    content: '';
    position: absolute;
    left: 3px;
    top: calc(.35em + 9px);
    height: calc(100% + var(--link-gap) - 9px);
    width: 3px;
    border-radius: 2px;
    background: repeating-linear-gradient(180deg, var(--thread) 0 4px, transparent 4px 6px);
  }
  .nav-links > li:nth-last-child(2)::after { display: none; }   

  .nav-links > li::before {
    content: '';
    position: absolute;
    left: 0; top: .35em;
    width: 9px; height: 9px;
    box-sizing: border-box;
    border: 2px solid var(--thread, var(--muted));
    border-radius: 2px;
    background: var(--cream);
    transition: background .2s, transform .2s;
  }
  .nav-links > li:hover::before { background: var(--thread, var(--ink)); transform: rotate(45deg); }
  .nav-links a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: none;
    color: var(--muted);
    border-bottom: none;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a small {
    display: block;
    margin-top: 0;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 400;
    letter-spacing: .08em;
    color: var(--muted);
    opacity: .85;
  }
  .nav-links a:hover small { color: var(--ink-mid); }
  .nav-links > li.nav-series {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: calc(var(--side-w) - 33px - 12px);  
    margin: clamp(.8rem, 2.5vh, 2rem) 0 0 -8px;
    padding: 0;
    border: none;
  }
  .nav-links > li.nav-series::before { display: none; }
  .nav-links > li.nav-series .series-chip {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .series-chip { border-radius: 0; font-size: 10px; letter-spacing: .08em; text-transform: none; }
  .series-chip.active { background: var(--ink); border-color: var(--ink); }
}

.series-chip.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .02em;
}


/* ============================================================
   4. PC
   ============================================================ */
@media (min-width: 769px) {

  .site { margin-left: var(--side-w); }
  .site .section,
  .site .concept,
  .site .product-section,
  .site .article-section { padding-left: 80px; padding-right: var(--gap-r); }
  .site .article-section, .site .product-section { max-width: none; }

  .site .journal-header { padding-left: var(--gap-r); padding-right: var(--gap-r); text-align: center; }
  .journal-lead { margin-left: auto; margin-right: auto; }

  .site .contact-section { padding-left: var(--gap-r); padding-right: var(--gap-r); text-align: center; }
  .contact-section .section-header { text-align: center; }
  .contact-lead { margin-left: auto; margin-right: auto; }
  .contact-form { margin: 0 auto; max-width: 620px; }
  .journal-filters { justify-content: center; }
  .footer { padding-left: 80px; padding-right: var(--gap-r); }

  .hero {
    display: block;
    min-height: 0;
    border: none;
    border-image: none;
    box-shadow: none;
    overflow: visible;
    text-align: left;
    padding: 50px var(--gap-r) 0 0;
  }
  .hero-frame {
    position: relative;
    inset: auto;
    height: calc(100vh - 100px);
    min-height: 420px;
    background: var(--cream-dark);
  }
  .hero-frame-slide { filter: saturate(.92) contrast(1.03); }

  .hero-content {
    max-width: 640px;
    padding: 5.5rem 0 5.5rem 80px;
  }
}


/* ============================================================
   5. スマホ
   ============================================================ */
@media (max-width: 768px) {
  .nav { padding: .8rem 1.2rem; min-height: 72px; background: var(--cream); }
  .nav-logo { flex-direction: row; align-items: center; gap: 12px; }
  .nav-logo-img { width: 56px; }
  .nav-logo span { font-size: 11px; letter-spacing: .15em; color: var(--ink); }
  .nav-drawer { background: var(--cream); }
  .nav-drawer a small {
    display: block;
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--muted);
  }

  .hero { border: none; border-image: none; box-shadow: none; overflow: visible; min-height: 0; display: block; padding: 0; text-align: left; }
  .hero-frame { position: relative; inset: auto; height: 68vw; min-height: 240px; background: var(--cream-dark); }
  .hero-content { padding: 2.5rem 1.5rem; }

  .footer { flex-direction: column; align-items: center; text-align: center; padding: 1.8rem 1.2rem; }
  .footer-copy { width: 100%; text-align: center; margin: 0; }
  .footer-links { padding: 0; margin: 0; justify-content: center; flex-wrap: wrap; gap: .6rem 1.2rem; }
}


/* ============================================================
   6. ヒーローの装飾
   ============================================================ */
@media (min-width: 769px) {
  .hero:not(.order-hero) .hero-content { position: relative; z-index: 1; }
  .hero:not(.order-hero)::after {
    content: '';
    position: absolute;
    left: 0;
    right: var(--gap-r);
    bottom: 0;
    height: min(430px, 100%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1500 420' preserveAspectRatio='xMaxYMax slice'%3E%3Cstyle%3E.st{animation:flow 7s linear infinite}@keyframes flow{to{stroke-dashoffset:-30}}@media (prefers-reduced-motion:reduce){.st{animation:none}}%3C/style%3E%3Cpath d='M987 50H993M990 47V53 M1031 50H1037M1034 47V53 M1317 50H1323M1320 47V53 M1251 74H1257M1254 71V77 M1273 74H1279M1276 71V77 M1295 74H1301M1298 71V77 M1185 98H1191M1188 95V101 M1207 98H1213M1210 95V101 M1229 98H1235M1232 95V101 M1141 122H1147M1144 119V125 M1075 146H1081M1078 143V149 M1009 170H1015M1012 167V173 M1317 170H1323M1320 167V173 M1251 194H1257M1254 191V197 M1273 194H1279M1276 191V197 M1295 194H1301M1298 191V197 M1185 218H1191M1188 215V221 M1207 218H1213M1210 215V221 M1229 218H1235M1232 215V221 M1119 242H1125M1122 239V245 M1163 242H1169M1166 239V245 M1053 266H1059M1056 263V269 M1097 266H1103M1100 263V269 M987 290H993M990 287V293 M1031 290H1037M1034 287V293 M1317 290H1323M1320 287V293 M1251 314H1257M1254 311V317 M1273 314H1279M1276 311V317 M1295 314H1301M1298 311V317 M67 214H73M70 211V217 M111 214H117M114 211V217 M199 286H205M202 283V289 M221 286H227M224 283V289 M243 286H249M246 283V289 M155 310H161M158 307V313 M177 310H183M180 307V313 M89 334H95M92 331V337' stroke='%23D8ACA8' stroke-width='1.6' stroke-linecap='round' fill='none' opacity='.8'/%3E%3Cpath d='M1075 50H1081M1078 47V53 M1009 74H1015M1012 71V77 M1317 74H1323M1320 71V77 M1251 98H1257M1254 95V101 M1273 98H1279M1276 95V101 M1295 98H1301M1298 95V101 M1185 122H1191M1188 119V125 M1207 122H1213M1210 119V125 M1229 122H1235M1232 119V125 M1119 146H1125M1122 143V149 M1163 146H1169M1166 143V149 M1053 170H1059M1056 167V173 M1097 170H1103M1100 167V173 M987 194H993M990 191V197 M1031 194H1037M1034 191V197 M1317 194H1323M1320 191V197 M1251 218H1257M1254 215V221 M1273 218H1279M1276 215V221 M1295 218H1301M1298 215V221 M1185 242H1191M1188 239V245 M1207 242H1213M1210 239V245 M1229 242H1235M1232 239V245 M1141 266H1147M1144 263V269 M1075 290H1081M1078 287V293 M1009 314H1015M1012 311V317 M1317 314H1323M1320 311V317 M155 214H161M158 211V217 M177 214H183M180 211V217 M89 238H95M92 235V241 M199 310H205M202 307V313 M221 310H227M224 307V313 M243 310H249M246 307V313 M133 334H139M136 331V337 M177 334H183M180 331V337 M67 358H73M70 355V361 M111 358H117M114 355V361' stroke='%23D4BC7C' stroke-width='1.6' stroke-linecap='round' fill='none' opacity='.8'/%3E%3Cpath d='M1119 50H1125M1122 47V53 M1163 50H1169M1166 47V53 M1053 74H1059M1056 71V77 M1097 74H1103M1100 71V77 M987 98H993M990 95V101 M1031 98H1037M1034 95V101 M1317 98H1323M1320 95V101 M1251 122H1257M1254 119V125 M1273 122H1279M1276 119V125 M1295 122H1301M1298 119V125 M1185 146H1191M1188 143V149 M1207 146H1213M1210 143V149 M1229 146H1235M1232 143V149 M1141 170H1147M1144 167V173 M1075 194H1081M1078 191V197 M1009 218H1015M1012 215V221 M1317 218H1323M1320 215V221 M1251 242H1257M1254 239V245 M1273 242H1279M1276 239V245 M1295 242H1301M1298 239V245 M1185 266H1191M1188 263V269 M1207 266H1213M1210 263V269 M1229 266H1235M1232 263V269 M1119 290H1125M1122 287V293 M1163 290H1169M1166 287V293 M1053 314H1059M1056 311V317 M1097 314H1103M1100 311V317 M199 214H205M202 211V217 M221 214H227M224 211V217 M243 214H249M246 211V217 M133 238H139M136 235V241 M177 238H183M180 235V241 M67 262H73M70 259V265 M111 262H117M114 259V265 M199 334H205M202 331V337 M221 334H227M224 331V337 M243 334H249M246 331V337 M155 358H161M158 355V361 M177 358H183M180 355V361 M89 382H95M92 379V385' stroke='%23A9B4C4' stroke-width='1.6' stroke-linecap='round' fill='none' opacity='.8'/%3E%3Cpath d='M1185 50H1191M1188 47V53 M1207 50H1213M1210 47V53 M1229 50H1235M1232 47V53 M1141 74H1147M1144 71V77 M1075 98H1081M1078 95V101 M1009 122H1015M1012 119V125 M1317 122H1323M1320 119V125 M1251 146H1257M1254 143V149 M1273 146H1279M1276 143V149 M1295 146H1301M1298 143V149 M1185 170H1191M1188 167V173 M1207 170H1213M1210 167V173 M1229 170H1235M1232 167V173 M1119 194H1125M1122 191V197 M1163 194H1169M1166 191V197 M1053 218H1059M1056 215V221 M1097 218H1103M1100 215V221 M987 242H993M990 239V245 M1031 242H1037M1034 239V245 M1317 242H1323M1320 239V245 M1251 266H1257M1254 263V269 M1273 266H1279M1276 263V269 M1295 266H1301M1298 263V269 M1185 290H1191M1188 287V293 M1207 290H1213M1210 287V293 M1229 290H1235M1232 287V293 M1141 314H1147M1144 311V317 M199 238H205M202 235V241 M221 238H227M224 235V241 M243 238H249M246 235V241 M155 262H161M158 259V265 M177 262H183M180 259V265 M89 286H95M92 283V289 M199 358H205M202 355V361 M221 358H227M224 355V361 M243 358H249M246 355V361 M133 382H139M136 379V385 M177 382H183M180 379V385' stroke='%2397A79E' stroke-width='1.6' stroke-linecap='round' fill='none' opacity='.8'/%3E%3Cpath d='M1251 50H1257M1254 47V53 M1273 50H1279M1276 47V53 M1295 50H1301M1298 47V53 M1185 74H1191M1188 71V77 M1207 74H1213M1210 71V77 M1229 74H1235M1232 71V77 M1119 98H1125M1122 95V101 M1163 98H1169M1166 95V101 M1053 122H1059M1056 119V125 M1097 122H1103M1100 119V125 M987 146H993M990 143V149 M1031 146H1037M1034 143V149 M1317 146H1323M1320 143V149 M1251 170H1257M1254 167V173 M1273 170H1279M1276 167V173 M1295 170H1301M1298 167V173 M1185 194H1191M1188 191V197 M1207 194H1213M1210 191V197 M1229 194H1235M1232 191V197 M1141 218H1147M1144 215V221 M1075 242H1081M1078 239V245 M1009 266H1015M1012 263V269 M1317 266H1323M1320 263V269 M1251 290H1257M1254 287V293 M1273 290H1279M1276 287V293 M1295 290H1301M1298 287V293 M1185 314H1191M1188 311V317 M1207 314H1213M1210 311V317 M1229 314H1235M1232 311V317 M199 262H205M202 259V265 M221 262H227M224 259V265 M243 262H249M246 259V265 M133 286H139M136 283V289 M177 286H183M180 283V289 M67 310H73M70 307V313 M111 310H117M114 307V313 M199 382H205M202 379V385 M221 382H227M224 379V385 M243 382H249M246 379V385' stroke='%23B7A8C2' stroke-width='1.6' stroke-linecap='round' fill='none' opacity='.8'/%3E%3Cpath d='M-30 330 C 260 380 520 90 800 170 S 1300 330 1530 150' stroke='%23000' stroke-opacity='.10' stroke-width='6' fill='none' transform='translate(1.5 2.5)' stroke-linecap='round'/%3E%3Cpath d='M-30 330 C 260 380 520 90 800 170 S 1300 330 1530 150' stroke='%23D8ACA8' stroke-width='5.5' fill='none' stroke-linecap='round'/%3E%3Cpath class='st' d='M-30 330 C 260 380 520 90 800 170 S 1300 330 1530 150' stroke='%23fff' stroke-opacity='.7' stroke-width='1.5' fill='none' stroke-dasharray='6 9' stroke-linecap='round'/%3E%3Cpath d='M-30 90 C 300 40 560 340 860 270 S 1330 80 1530 230' stroke='%23000' stroke-opacity='.10' stroke-width='6' fill='none' transform='translate(1.5 2.5)' stroke-linecap='round'/%3E%3Cpath d='M-30 90 C 300 40 560 340 860 270 S 1330 80 1530 230' stroke='%23D4BC7C' stroke-width='5.5' fill='none' stroke-linecap='round'/%3E%3Cpath class='st' d='M-30 90 C 300 40 560 340 860 270 S 1330 80 1530 230' stroke='%23fff' stroke-opacity='.7' stroke-width='1.5' fill='none' stroke-dasharray='6 9' stroke-linecap='round'/%3E%3Cpath d='M-30 220 C 280 300 560 40 880 100 S 1320 300 1530 330' stroke='%23000' stroke-opacity='.10' stroke-width='6' fill='none' transform='translate(1.5 2.5)' stroke-linecap='round'/%3E%3Cpath d='M-30 220 C 280 300 560 40 880 100 S 1320 300 1530 330' stroke='%23A9B4C4' stroke-width='5.5' fill='none' stroke-linecap='round'/%3E%3Cpath class='st' d='M-30 220 C 280 300 560 40 880 100 S 1320 300 1530 330' stroke='%23fff' stroke-opacity='.7' stroke-width='1.5' fill='none' stroke-dasharray='6 9' stroke-linecap='round'/%3E%3Cpath d='M-30 380 C 340 240 620 370 900 320 S 1350 200 1530 60' stroke='%23000' stroke-opacity='.10' stroke-width='6' fill='none' transform='translate(1.5 2.5)' stroke-linecap='round'/%3E%3Cpath d='M-30 380 C 340 240 620 370 900 320 S 1350 200 1530 60' stroke='%23B7A8C2' stroke-width='5.5' fill='none' stroke-linecap='round'/%3E%3Cpath class='st' d='M-30 380 C 340 240 620 370 900 320 S 1350 200 1530 60' stroke='%23fff' stroke-opacity='.7' stroke-width='1.5' fill='none' stroke-dasharray='6 9' stroke-linecap='round'/%3E%3Cpath d='M-30 30 C 320 190 600 130 900 220 S 1380 380 1530 290' stroke='%23000' stroke-opacity='.10' stroke-width='6' fill='none' transform='translate(1.5 2.5)' stroke-linecap='round'/%3E%3Cpath d='M-30 30 C 320 190 600 130 900 220 S 1380 380 1530 290' stroke='%2397A79E' stroke-width='5.5' fill='none' stroke-linecap='round'/%3E%3Cpath class='st' d='M-30 30 C 320 190 600 130 900 220 S 1380 380 1530 290' stroke='%23fff' stroke-opacity='.7' stroke-width='1.5' fill='none' stroke-dasharray='6 9' stroke-linecap='round'/%3E%3C/svg%3E") right bottom / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 38%, #000 66%);
            mask-image: linear-gradient(90deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 38%, #000 66%);
    pointer-events: none;
    z-index: 0;
  }
}


/* ============================================================
   7. オーダーページ
   ============================================================ */

/* ヒーロー*/
.order-hero .hero-frame {
  background: var(--cream-dark) url('images/wyrl-symbol-mark.png') center / cover no-repeat;
}
@media (min-width: 769px) {
  .order-hero .hero-frame { height: clamp(220px, 38vh, 360px); min-height: 0; }
  .order-hero .hero-content { padding-top: 3.5rem; padding-bottom: 2rem; }  
  .order-hero + .section { padding-top: 4rem; }
}
@media (min-width: 769px) {
  .order-hero .hero-content { position: relative; z-index: 1; }
  .hang {
    position: absolute; left: 40%; right: var(--gap-r); top: 0;
    height: 430px;
    pointer-events: none; z-index: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%);
            mask-image: linear-gradient(90deg, transparent 0, #000 12%);
  }
  .hang svg { position: absolute; inset: 0; overflow: visible; }
  .hang-item {
    position: absolute; margin: 0;
    transform-origin: 50% 0;
    transform: rotate(var(--r, 0deg));
    animation: hang-sway var(--dur, 6s) ease-in-out infinite alternate;
    animation-delay: var(--delay, 0s);
  }
  @keyframes hang-sway {
    from { transform: rotate(calc(var(--r, 0deg) - 2.2deg)); }
    to   { transform: rotate(calc(var(--r, 0deg) + 2.2deg)); }
  }
  .hang-card {
    background: #fffdf7; padding: 6px 6px 0;
    box-shadow: 0 8px 16px rgba(40,30,20,.25), 0 1px 0 rgba(255,255,255,.85) inset;
  }
  .hang-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e9e1d1; }
  .hang-card figcaption {
    padding: 5px 0 7px; text-align: center;
    font-family: 'Noto Serif JP', serif; font-size: 10.5px; letter-spacing: .06em; color: var(--ink-mid);
  }
  .hang-pin {  
    position: absolute; top: -10px; left: 50%; z-index: 2;
    width: 9px; height: 22px; margin-left: -4.5px; border-radius: 2px;
    background: var(--pin, #D8ACA8);
    box-shadow: 0 1px 3px rgba(0,0,0,.4);
  }
  .hang-pin::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 6px; width: 1px; background: rgba(0,0,0,.25); }
  .hang-item.no-img .hang-card img { display: none; }
}
@media (max-width: 768px) { .hang { display: none; } }
@media (prefers-reduced-motion: reduce) { .hang-item { animation: none; } }

/* 見本写真のボード */
@media (min-width: 769px) {
  .board {
    position: absolute; left: 42%; right: var(--gap-r); top: 0; z-index: 0;
    height: 420px;
    pointer-events: none;
    border: 8px solid #d9c49b; border-radius: 4px;
    background:
      radial-gradient(circle at 18% 22%, rgba(120,80,40,.20) 0 1.2px, transparent 1.7px) 0 0 / 26px 26px,
      radial-gradient(circle at 70% 60%, rgba(255,255,255,.24) 0 1px, transparent 1.5px) 0 0 / 19px 19px,
      radial-gradient(circle at 30% 80%, rgba(90,55,25,.16) 0 1.5px, transparent 2px) 0 0 / 33px 33px,
      linear-gradient(135deg, #efe0bf, #e4cfa2);
    box-shadow:
      inset 0 0 0 2px rgba(255,255,255,.25),
      inset 0 6px 14px rgba(110,80,40,.22),
      0 16px 28px rgba(60,45,30,.18);
  }
  .board-item {
    position: absolute; margin: 0;
    transform: rotate(var(--r, 0deg));
    opacity: 0;
    animation: board-pop .55s cubic-bezier(.2,.9,.3,1.2) var(--d, 0s) forwards;
    filter: drop-shadow(0 6px 8px rgba(40,25,10,.35));
  }
  @keyframes board-pop {
    from { opacity: 0; transform: translateY(-16px) scale(1.12) rotate(var(--r, 0deg)); }
    to   { opacity: 1; transform: rotate(var(--r, 0deg)); }
  }
  .board-tack {   
    position: absolute; top: -7px; left: 50%; z-index: 2;
    width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 45%), var(--pin, #D8ACA8);
    box-shadow: 0 3px 4px rgba(0,0,0,.4);
  }
  .board-tape {   
    position: absolute; top: -9px; left: 50%; z-index: 2;
    width: 58px; height: 18px; margin-left: -29px;
    transform: rotate(var(--tr, 0deg));
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 4px, transparent 4px 8px), var(--pin, #D8ACA8);
    opacity: .78;
  }
  .board-item .hang-card {
    background: #fffdf7; padding: 6px 6px 0;
    box-shadow: 0 1px 0 rgba(255,255,255,.85) inset;
  }
  .board-item .hang-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e9e1d1; }
  .board-item .hang-card figcaption {
    padding: 5px 0 7px; text-align: center;
    font-family: 'Noto Serif JP', serif; font-size: 10.5px; letter-spacing: .06em; color: var(--ink-mid);
  }
  .board-item.no-img .hang-card img { display: none; }
}
@media (max-width: 768px) { .board { display: none; } }
@media (prefers-reduced-motion: reduce) { .board-item { animation: none; opacity: 1; } }
.hang-item.no-img .hang-card, .board-item.no-img .hang-card { position: relative; }
.hang-item.no-img .hang-card::before, .board-item.no-img .hang-card::before {
  content: ''; display: block; aspect-ratio: 4 / 5;
  background: #f4ecda;
}
.hang-item.no-img .hang-card::after, .board-item.no-img .hang-card::after {
  content: ''; position: absolute; left: 6px; right: 6px; top: 6px; aspect-ratio: 4 / 5;
  background: var(--pin, #D8ACA8); opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 3.5v7M3.5 7h7' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 14px 14px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 3.5v7M3.5 7h7' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 14px 14px;
}


/* ============================================================
   8. トップの作品
   ============================================================ */
#itemsGrid {
  display: block !important;
  grid-template-columns: none !important;
}
#itemsGrid .items-row {
  display: grid;
  grid-auto-flow: column;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: .8rem .2rem 1.4rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--stripe-2) transparent;
}
#itemsGrid .item-card { min-width: 0; scroll-snap-align: start; }

@media (min-width: 769px) {
  #itemsGrid .items-row {
    grid-auto-columns: calc((100% - 3rem) / 4);
    cursor: grab;
  }
  #itemsGrid .items-row.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }
  #itemsGrid .items-row.is-dragging .item-card { pointer-events: none; }
  #itemsGrid .items-row::-webkit-scrollbar { height: 6px; }
  #itemsGrid .items-row::-webkit-scrollbar-track {
    background: rgba(51,38,27,.08);
    border-radius: 3px;
  }
  #itemsGrid .items-row::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: linear-gradient(90deg,
      var(--stripe-1) 0 20%, var(--stripe-2) 20% 40%,
      var(--stripe-3) 40% 60%, var(--stripe-4) 60% 80%,
      var(--stripe-5) 80% 100%);
  }
}

@media (max-width: 768px) {
  #itemsGrid .items-row {
    grid-auto-columns: calc((100% - 1rem) / 2);
    scrollbar-width: none;
  }
  #itemsGrid .items-row::-webkit-scrollbar { display: none; }
  #itemsGrid .item-card--pc-only { display: none; }

  #itemsGrid .item-name  { font-size: 12px; line-height: 1.5; }
  #itemsGrid .item-sub   { font-size: 10px; letter-spacing: .04em; }
  #itemsGrid .item-price { font-size: 12px; }
  #itemsGrid .item-badge { font-size: 9px; letter-spacing: .04em; padding: 3px 6px; }
}


/* ============================================================
   9. 戻るボタン
   ============================================================ */
.page-back {
  text-align: center;
  padding-top: 0;
  padding-bottom: 5rem;
}
.page-back--works {
  padding-top: 3rem;
  padding-bottom: 3rem;   
}

/* ============================================================
   10. サイドバーを、画面の高さいっぱいに使う
   ============================================================ */

@media (min-width: 769px) {
  .nav-links { flex: 1 1 auto; min-height: 0; }
  .nav-links > li.nav-series {
    margin-top: auto;
    margin-bottom: clamp(.8rem, 3vh, 2rem);
    padding-top: clamp(.8rem, 2.5vh, 2rem);  
  }
}
@media (min-width: 769px) and (min-height: 800px) {
  .nav { padding-top: clamp(18px, 4vh, 56px); }
  .nav-logo { gap: clamp(8px, 2.4vh, 30px); }
  .nav-logo-img { width: clamp(80px, 12vh, 150px); }
  .nav-logo span { font-size: clamp(12px, 2vh, 18px); }
  .nav-links {
    --link-gap: clamp(.5rem, 2.4vh, 1.7rem);
    margin-top: clamp(1rem, 4vh, 3.2rem);
  }
  .nav-links a { font-size: clamp(13px, 1.55vh, 16px); }
  .nav-links a small { font-size: clamp(9px, 1.1vh, 11px); }
}