/* ============================================
   長崎べっ甲店  style.css
   色・フォントは :root の変数だけ変えれば全体に反映されます
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-gothic);
  color: var(--text);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 1100'%3E%3Cg fill='%23f0bf95' opacity='.55'%3E%3Cpath d='M352 120c8-18 50-16 58 4s-8 36-34 34-32-20-24-38z'/%3E%3Cpath d='M-30 470c8-18 50-16 58 4s-8 36-34 34-32-20-24-38z'/%3E%3Cpath d='M356 760c8-16 44-14 52 4s-8 32-30 30-30-18-22-34z'/%3E%3Cpath d='M-26 980c8-16 44-14 52 4s-8 32-30 30-30-18-22-34z'/%3E%3C/g%3E%3C/svg%3E") top center / 100% auto repeat-y, var(--peach);
  line-height: 1.9;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { max-width: 520px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header / Menu ---------- */
.menu-btn {
  position: fixed; top: 14px; right: 14px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 0; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  display: grid; place-items: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 20px; height: 2px;
  background: var(--orange); border-radius: 2px; position: relative;
  transition: transform .25s, opacity .25s;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after  { position: absolute; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after  { transform: translateY(-6px) rotate(-45deg); }

.nav {
  position: fixed; inset: 0; z-index: 40;
  background: var(--green); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.menu-open .nav { opacity: 1; pointer-events: auto; }
.nav ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.nav li { margin: 14px 0; }
.nav a { text-decoration: none; font-family: var(--font-mincho); font-size: 18px; letter-spacing: .1em; }
.nav .nav-sub { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.4); }
.nav .nav-sub a { font-size: 14px; font-family: var(--font-gothic); }

.lang {
  position: fixed; top: 22px; right: 72px; z-index: 50;
  background: var(--white); color: var(--green-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

/* ---------- Hero ---------- */
.hero {
  /* 植物の装飾(湯浅さん背景データ・2倍) */
  background: url("../images/hero-bg.png") center top / 100% auto no-repeat, var(--green);
  background-image: image-set(url("../images/hero-bg.webp") type("image/webp"), url("../images/hero-bg.png") type("image/png"));
  color: var(--white);
  padding: 165px var(--gutter) 266px;
  position: relative; overflow: hidden; text-align: center;
}
.hero-inner { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.logo { width: 62%; max-width: 280px; }
.hero-catch {
  writing-mode: vertical-rl;
  font-family: var(--font-mincho); font-weight: 700;
  font-size: 19px; letter-spacing: .3em; line-height: 2.2;
  margin: 0; text-align: left;
}

/* ---------- Lead ---------- */
.lead {
  position: relative;
  margin-top: -56px;
  border-radius: 50% 50% 0 0 / 56px 56px 0 0;
  padding: 190px var(--gutter) 72px;
  text-align: center; color: var(--white);
  font-family: var(--font-mincho); font-weight: 700;
  font-size: 14px; line-height: 2.5; letter-spacing: .05em;
  background:
    url("../images/lead-top.png") center top / 100% auto no-repeat,
    url("../images/lead-bottom.png") center bottom / 100% auto no-repeat,
    var(--peach);
}
.lead p { margin: 0 0 1.8em; }

/* ---------- Product ---------- */
.product { padding: 32px 0 64px; position: relative; color: var(--white); overflow-x: clip; }
.product-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.product-photo {
  width: 86%; aspect-ratio: 1 / .8; overflow: hidden; flex: none;
  border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
  background: rgba(255,255,255,.35);
  margin-left: -12%;
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.product.reverse .product-head { flex-direction: row-reverse; }
.product.reverse .product-photo { margin-left: 0; margin-right: -12%; border-radius: 56% 44% 46% 54% / 46% 56% 44% 54%; }
.product-catch {
  writing-mode: vertical-rl;
  font-family: var(--font-mincho); font-weight: 700;
  font-size: 19px; letter-spacing: .3em; color: var(--white);
  margin: 0; padding: 0 var(--gutter) 0 0;
}
.product.reverse .product-catch { padding: 16px 0 0 var(--gutter); }
.label {
  display: block; width: 78%; color: var(--white);
  font-family: var(--font-mincho); font-weight: 700; font-size: 19px; letter-spacing: .25em;
  padding: 8px var(--gutter); margin: 20px 0 22px;
  background: var(--orange);
}
.product.hasami .label { background: var(--teal); }
.product.reverse .label { margin-left: auto; width: 76%; }
.product-body { padding: 0 var(--gutter); max-width: 520px; margin: 0 auto; }
.product.reverse .product-body { padding-left: 24%; }
.product-body p { margin: 0 0 18px; font-size: 13px; font-weight: 700; line-height: 2.1; letter-spacing: .06em; }
.shop-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .15em;
  color: var(--white); text-decoration: none; margin-top: 4px;
}
.shop-link::before {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 9V7a4 4 0 0 1 8 0v2h3l-1 12H6L5 9zm2 0h4V7a2 2 0 0 0-4 0z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.product.hasami .shop-link::before { background-color: var(--teal); }
.product.koga .label { background: var(--orange); }

/* ---------- 選びかた ---------- */
.choose { background: var(--peach); padding: 24px var(--gutter) 80px; }
.choose-card { background: var(--cream); max-width: 520px; margin: 0 auto; border-radius: 50% 50% 0 0 / 170px 170px 0 0; padding: 72px 20px 56px; }
.choose-head { text-align: center; margin-bottom: 44px; }
.choose-head small { font-family: var(--font-en); display: block; color: var(--orange); font-size: 11px; letter-spacing: .25em; font-weight: 700; }
.choose-head h2 { font-family: var(--font-maru); font-weight: 900; font-size: 46px; margin: 2px 0 12px; letter-spacing: .06em; line-height: 1.2; }
.choose-head h2 .o { color: var(--orange); } .choose-head h2 .t { color: var(--teal); }
.choose-head p { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.8; }
.case { position: relative; margin: 0 auto 52px; text-align: center; }
.case:last-child { margin-bottom: 0; }
.case-bubble {
  position: relative; display: block; margin: 0 6px;
  background: var(--orange); color: var(--white);
  border-radius: 46% 54% 50% 50% / 60% 56% 44% 40%;
  padding: 22px 24px 24px;
  font-family: var(--font-gothic); font-weight: 700; font-size: 17px; line-height: 1.6; letter-spacing: .08em;
}
.case-bubble::after {
  content: ""; position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  border: 12px solid transparent; border-top-color: var(--orange); border-bottom: 0;
}
.case-num {
  position: absolute; top: -22px; z-index: 1; width: 50px; height: 50px; border-radius: 50%;
  background: var(--scene); color: var(--white);
}
.case:nth-of-type(odd) .case-num { left: 34px; }
.case:nth-of-type(even) .case-num { right: 34px; }
.case-num svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.case-num text { fill: var(--white); font-family: var(--font-en); font-weight: 700; font-size: 7.5px; letter-spacing: .14em; }
.case-num b { position: absolute; left: 0; right: 0; top: 21px; text-align: center; font-size: 19px; line-height: 1; font-weight: 700; }
.case-img { width: 190px; height: 190px; margin: 30px auto 18px; border-radius: 50%; background: #f6dfc9; overflow: hidden; }
.case-img { display: grid; place-items: center; }
.case-img img { width: 82%; height: 82%; object-fit: contain; }
.case p { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.9; }
.case .note { color: var(--orange); font-size: 13px; margin-top: 2px; }

/* ---------- Visit ---------- */
.visit { background: var(--green); color: var(--white); padding: 88px 0 72px; }
.visit h2 {
  position: relative; display: table; margin: 0 auto 28px;
  background: var(--orange); color: var(--white);
  font-family: var(--font-mincho); font-weight: 500; font-size: 20px; letter-spacing: .3em;
  padding: 10px 40px 10px 46px;
  clip-path: polygon(0 8%, 6% 0, 50% 6%, 94% 0, 100% 10%, 97% 50%, 100% 92%, 94% 100%, 50% 94%, 6% 100%, 0 90%, 3% 50%);
}
.visit-lead { text-align: center; font-family: var(--font-mincho); font-weight: 500; line-height: 2.2; letter-spacing: .12em; margin: 0 0 36px; }
.visit-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; background: rgba(255,255,255,.25); margin-bottom: 28px; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.info { list-style: none; padding: 0; margin: 0 0 56px; }
.info li { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.info .tag {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); display: grid; place-items: center;
  font-size: 10px; font-weight: 700; line-height: 1.3; text-align: center;
}
.info .big { font-size: 22px; font-weight: 500; letter-spacing: .1em; text-decoration: none; }
.info .addr { display: block; font-size: 13px; font-weight: 700; line-height: 1.8; letter-spacing: .06em; margin-top: 4px; }

.access { color: var(--white); }
.access h3 {
  background: var(--orange);
  text-align: center; font-size: 13px; letter-spacing: .3em;
  font-weight: 700; padding: 8px; margin: 0 0 32px;
}
.access dl { margin: 0; }
.access dt {
  display: block; width: 78%; max-width: 300px; margin: 0 auto 12px; text-align: center;
  background: var(--white); color: var(--orange);
  font-size: 13px; font-weight: 700; padding: 6px 18px; border-radius: 999px; letter-spacing: .08em;
}
.access dd { margin: 0 0 34px; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.75; letter-spacing: .06em; }
.map-btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--white); color: var(--green-dark); font-weight: 700; letter-spacing: .1em;
  padding: 14px; border-radius: 999px; margin-top: 8px;
}

/* ---------- Footer ---------- */
.footer { background: var(--green-dark); color: var(--white); padding: 40px var(--gutter) 28px; text-align: center; font-size: 13px; }
.footer .f-name { font-family: var(--font-mincho); font-size: 20px; letter-spacing: .15em; margin: 0 0 8px; }
.footer address { font-style: normal; line-height: 1.8; margin-bottom: 20px; }
.footer a { text-decoration: none; }
.sns { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.sns a { border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 6px 18px; font-size: 12px; }
.copy { font-size: 11px; opacity: .75; margin: 0; }

/* ---------- Page top (猫) ---------- */
.pagetop {
  position: fixed; right: 10px; bottom: 12px; z-index: 30;
  width: 58px; height: 92px; display: block;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  transform: translateY(10px);
  -webkit-tap-highlight-color: transparent;
}
.pagetop.show { opacity: 1; pointer-events: auto; transform: none; }
.pagetop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; transition: opacity .15s; }
.pagetop .jump { opacity: 0; }
.pagetop:hover .sit, .pagetop:active .sit, .pagetop.jumping .sit { opacity: 0; }
.pagetop:hover .jump, .pagetop:active .jump, .pagetop.jumping .jump { opacity: 1; }

/* ---------- 画像差し替え前の仮表示 ---------- */
.ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 12px; color: rgba(0,0,0,.4); background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 10px, rgba(255,255,255,.15) 10px 20px); }

/* ---------- Article (下層ページ) ---------- */
.page-hero { background: var(--green); color: var(--white); padding: 88px var(--gutter) 48px; text-align: center; }
.page-hero small { display: block; font-size: 11px; letter-spacing: .3em; opacity: .9; }
.page-hero h1 { font-family: var(--font-mincho); font-weight: 500; font-size: 26px; letter-spacing: .15em; margin: 8px 0 0; }
.article { background: var(--cream); padding: 48px 0 64px; }
.article h2 { font-family: var(--font-mincho); font-weight: 500; font-size: 20px; color: var(--orange); letter-spacing: .1em; border-left: 4px solid var(--orange); padding-left: 12px; margin: 48px 0 16px; }
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 1.4em; }
.article figure { margin: 24px 0; }
.article figure .ph, .article figure img { aspect-ratio: 4/3; border-radius: 6px; }
.article figcaption { font-size: 12px; color: #777; margin-top: 6px; }
.quote { font-family: var(--font-mincho); font-size: 15px; line-height: 2; color: var(--text); background: var(--white); border-radius: 8px; padding: 24px; margin: 28px 0; position: relative; }
.quote::before { content: "“"; position: absolute; top: -8px; left: 14px; font-size: 48px; color: var(--orange); line-height: 1; }
.care { background: var(--white); border-radius: 8px; padding: 20px 24px; }
.care ul { margin: 0; padding-left: 1.2em; }
.back { display: inline-block; margin-top: 32px; color: var(--orange); font-weight: 700; text-decoration: none; }


/* ---------- 紙のざらざら質感（デザイナー素材 texture_zarazara） ---------- */
body { position: relative; }
body::after {
  content: ""; position: absolute; inset: 0; z-index: 35; pointer-events: none;
  /* 湯浅さん指定：texture（sssize_texture_zarazara）焼き込みカラー・不透明度7%。デザイン幅375pxに1枚の幅で縦に敷き詰め */
  background: url("../images/tex-zarazara-sm.jpg") 0 0 / 375px auto repeat;
  mix-blend-mode: color-burn; opacity: .07;
}

/* ---------- ワンポイント猫 ---------- */
.footer { position: relative; }
.footer-cat { position: absolute; top: -66px; right: 28px; width: 52px; }
.choose-card { position: relative; }
.choose-cat { position: absolute; right: 18px; bottom: -20px; width: 58px; }
/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px var(--gutter); background: url("../images/tex-green.jpg") center / cover, var(--green); color: var(--white); }
.notfound img.cat { width: 110px; margin-bottom: 24px; }
.notfound h1 { font-family: var(--font-mincho); font-weight: 500; font-size: 22px; letter-spacing: .15em; margin: 0 0 12px; }
.notfound p { margin: 0 0 28px; font-size: 14px; line-height: 2; }
.notfound a.btn { display: inline-block; background: var(--white); color: var(--green-dark); font-weight: 700; letter-spacing: .1em; padding: 12px 32px; border-radius: 999px; text-decoration: none; }

.choose-arc { display: block; width: 200px; height: 46px; margin: 0 auto -6px; overflow: visible; }
.choose-arc text { font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: .25em; fill: var(--orange); }
.case-bubble, .choose-head p, .case p { font-family: var(--font-gothic); }  /* デザインどおりゴシック */
.visit h2 { font-weight: 700; }

/* ============================================
   PC表示:スマホ版を中央に置き、左右にロゴ・メニュー・店舗情報
   （SPデザインは一切変えない）
   ============================================ */
.pc-left, .pc-right { display: none; }
@media (min-width: 1100px) {
  html { background: var(--pc-bg); }
  body { background: none; }
  .sp-frame {
    width: 390px; margin: 0 auto; position: relative;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 1100'%3E%3Cg fill='%23f0bf95' opacity='.55'%3E%3Cpath d='M352 120c8-18 50-16 58 4s-8 36-34 34-32-20-24-38z'/%3E%3Cpath d='M-30 470c8-18 50-16 58 4s-8 36-34 34-32-20-24-38z'/%3E%3Cpath d='M356 760c8-16 44-14 52 4s-8 32-30 30-30-18-22-34z'/%3E%3Cpath d='M-26 980c8-16 44-14 52 4s-8 32-30 30-30-18-22-34z'/%3E%3C/g%3E%3C/svg%3E") top center / 100% auto repeat-y, var(--peach);
    border-left: 1px solid rgba(58,58,58,.25); border-right: 1px solid rgba(58,58,58,.25);
    overflow-x: clip;
  }
  body::after { display: none; }
  .menu-btn, .lang, .nav { display: none; }
  .pagetop { right: calc(50% - 195px + 12px); }

  .pc-left, .pc-right {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: fixed; top: 0; bottom: 0; width: calc(50% - 195px);
  }
  .pc-left { left: 0; }
  .pc-right { right: 0; }
  .pc-logo { width: 300px; max-width: 70%; }
  .pc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 48px; margin-top: 56px; padding: 0; list-style: none; text-align: center; }
  .pc-nav a { font-family: var(--font-mincho); font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--orange); text-decoration: none; }
  .pc-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
  .pc-lang { margin-top: 32px; font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; color: var(--green-dark); }
  .pc-lang a { color: inherit; text-decoration: none; padding: 4px 10px; }
  .pc-lang a[aria-current] { border-bottom: 2px solid var(--green); }

  .pc-card {
    position: relative; width: 340px; max-width: 80%;
    background: var(--white); border: 1px solid rgba(58,58,58,.25); border-radius: 16px;
    padding: 44px 32px 36px; text-align: center;
  }
  .pc-card .cat { position: absolute; top: -75px; right: 28px; width: 56px; }
  .pc-card h2 { font-family: var(--font-mincho); font-weight: 700; color: var(--green-dark); font-size: 20px; letter-spacing: .2em; margin: 0 0 24px; }
  .pc-card dl { margin: 0 0 28px; font-size: 14px; line-height: 1.9; }
  .pc-card dt { color: var(--orange); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
  .pc-card dd { margin: 0 0 12px; font-weight: 700; }
  .pc-btn { display: block; background: var(--orange); color: var(--white); text-decoration: none; font-weight: 700; letter-spacing: .1em; padding: 16px; border-radius: 999px; }
  .pc-btn + .pc-btn { margin-top: 12px; background: var(--white); color: var(--orange); border: 2px solid var(--orange); padding: 14px; }
}

.article .note-small { font-size: 12px; color: #777; line-height: 1.8; }
.article .quote { white-space: normal; }

.article .history { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px 12px; margin: 0; font-size: 13px; line-height: 1.7; background: var(--white); border-radius: 8px; padding: 20px; }
.article .history dt { font-weight: 700; color: var(--orange); }
.article .history dd { margin: 0; }

/* ---------- べっ甲ページ:商品紹介 ---------- */
.page-hero-catch { font-family: var(--font-mincho); font-weight: 700; font-size: 15px; letter-spacing: .2em; margin: 14px 0 0; opacity: .95; }
.items { margin-bottom: 56px; }
.item-cards { display: grid; gap: 20px; margin: 24px 0 12px; }
.item-card { margin: 0; background: var(--white); border-radius: 12px; overflow: hidden; }
.item-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0 !important; }
.item-card figcaption { padding: 14px 18px 18px; font-size: 13px; line-height: 1.9; color: var(--text); margin: 0; }
.item-card figcaption strong { display: block; font-family: var(--font-mincho); font-size: 16px; color: var(--orange); letter-spacing: .1em; margin-bottom: 4px; }
.sec-kicker { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--green-dark); margin: 0 0 10px; }

/* ============================================
   モーション(デザインにない追加要素。控えめに)
   ============================================ */
/* 1. ふわっと表示 */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* 2. 商品写真の輪郭がゆらぐ */
@keyframes blob-a {
  0%   { border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%; }
  50%  { border-radius: 54% 46% 44% 56% / 44% 56% 46% 54%; }
  100% { border-radius: 42% 58% 52% 48% / 56% 42% 58% 44%; }
}
@keyframes blob-b {
  0%   { border-radius: 56% 44% 46% 54% / 46% 56% 44% 54%; }
  50%  { border-radius: 46% 54% 56% 44% / 56% 44% 54% 46%; }
  100% { border-radius: 52% 48% 42% 58% / 44% 58% 46% 54%; }
}
.product-photo { animation: blob-a 9s ease-in-out infinite alternate; }
.product.reverse .product-photo { animation-name: blob-b; animation-duration: 11s; }

/* 3. キャッチが1行ずつ出る(縦書きなので右の行から) */
.hero-catch .line { display: block; }
.js .hero-catch .line { opacity: 0; transform: translateY(-14px); animation: line-in 1s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.5s + var(--d) * .45s); }
@keyframes line-in { to { opacity: 1; transform: none; } }

/* 4. 吹き出しがポンと出る */
.js .case .case-bubble { transform: scale(.6); opacity: 0; }
.js .case.is-in .case-bubble { animation: pop .6s cubic-bezier(.3,1.6,.5,1) .15s forwards; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* 動きを減らす設定の人には止める */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero-catch .line, .js .case .case-bubble { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .product-photo { animation: none !important; }
}
.article .item-card { margin: 0; }

/* 5. TOPに戻る猫がゆらゆら揺れる(座っている猫だけ。少し揺れて、少し休む) */
@keyframes cat-sway {
  0%, 55%, 100% { transform: rotate(0deg); }
  64% { transform: rotate(-6deg); }
  73% { transform: rotate(5deg); }
  82% { transform: rotate(-3deg); }
  91% { transform: rotate(1.5deg); }
}
.pagetop .sit { transform-origin: 50% 100%; animation: cat-sway 3.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pagetop .sit { animation: none !important; } }

/* ---------- 取扱商品 ---------- */
.lead-text { font-size: 14px; line-height: 2; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 40px; }
.cat-nav a { font-size: 12px; font-weight: 700; color: var(--orange); background: var(--white); border: 1px solid var(--orange); border-radius: 999px; padding: 5px 14px; text-decoration: none; }
.cat { margin-bottom: 56px; scroll-margin-top: 24px; }
.cat figure { margin: 0 0 18px; }
.cat figure img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%; }
.cat .cat-illust { background: #f6dfc9; border-radius: 50%; width: 220px; height: 220px; margin: 0 auto 18px; display: grid; place-items: center; }
.cat .cat-illust img { width: 78%; height: 78%; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.cat h2 { margin-top: 0; }
.cat-catch { font-family: var(--font-mincho); font-weight: 700; font-size: 16px; letter-spacing: .12em; color: var(--green-dark); margin: -4px 0 12px !important; }
.cat p { font-size: 14px; line-height: 2; }
.cat-note { color: var(--orange); font-size: 13px !important; font-weight: 700; }
.cat-link { display: inline-block; color: var(--white); background: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-decoration: none; padding: 10px 22px; border-radius: 999px; }

/* ---------- お知らせ ---------- */
.news-top { background: var(--cream); padding: 56px 0 48px; }
.news-top-title { text-align: center; font-family: var(--font-mincho); font-weight: 700; font-size: 20px; letter-spacing: .2em; color: var(--green-dark); margin: 0 0 20px; }
.news-top-title small { display: block; font-family: var(--font-en); font-size: 11px; letter-spacing: .3em; color: var(--orange); margin-bottom: 2px; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(58,58,58,.15); }
.news-list li { border-bottom: 1px solid rgba(58,58,58,.15); }
.news-list li > a { display: block; padding: 14px 4px; text-decoration: none; color: var(--text); }
.news-list--full li { padding: 20px 4px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #777; margin-bottom: 4px; }
.news-cat { background: var(--green); color: var(--white); font-size: 11px; font-weight: 700; padding: 1px 10px; border-radius: 999px; }
.news-title { display: block; font-size: 14px; font-weight: 700; line-height: 1.7; }
.news-list--full .news-title { font-size: 16px; }
.news-body { font-size: 14px; line-height: 2; margin: 8px 0 0 !important; }
.news-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--orange); }
.news-empty { padding: 18px 4px; font-size: 13px; color: #777; }
.news-more { display: block; width: fit-content; margin: 20px auto 0; font-size: 13px; font-weight: 700; color: var(--orange); }
.news-list li > a.news-link { display: inline-block; padding: 0; margin-top: 8px; color: var(--orange); text-decoration: underline; font-size: 13px; font-weight: 700; }

/* ---------- 石の飾り(湯浅さん背景データ) ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; height: auto; }
.product-body, .choose { position: relative; }
.product-body > :not(.deco) { position: relative; z-index: 1; }
.deco-a { right: 0; top: -4px; width: 66px; }
.deco-b { left: 0; top: 18px; width: 66px; }
.deco-c1 { right: 0; bottom: -40px; width: 114px; }
.deco-c2 { left: 0; top: 24px; width: 64px; }
.deco-d { left: 0; bottom: 29px; width: 161px; }
.choose-card { z-index: 1; }
.shop-help { text-align: center; font-weight: 700; line-height: 1.9; margin: 8px 0 20px; padding: 18px 12px; border-radius: 14px; background: rgba(255,255,255,.55); }

/* ===== デザイン2倍データに合わせた調整（10/21） ===== */
.hero { padding-bottom: 184px; }
.hero-inner { gap: 78px; }
.logo { width: 66.7%; max-width: 300px; }
.lead { padding-top: 144px; font-size: 14px; font-weight: 800; letter-spacing: .1em; line-height: 2.55; padding-left: 12px; padding-right: 12px; }
.product-photo { width: 76%; aspect-ratio: 1 / .93; margin-left: -1%; }
.product.reverse .product-photo { margin-right: -4%; }
.label { margin-top: 0; }
.product.reverse .product-body { padding-left: 29%; }
.choose { padding-top: 0; }
.choose-card { border-radius: 50% 50% 6px 6px / 170px 170px 6px 6px; }
.case-bubble {
  max-width: 252px; margin: 0 auto; border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 104' preserveAspectRatio='none'%3E%3Cpath fill='%23de6532' d='M22 16C58 0 196 -2 230 14c22 11 24 48 4 62-12 8-30 10-52 11l-14 17-6-16C118 90 46 92 20 78 0 67-2 28 22 16z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  padding: 20px 24px 34px; font-size: 16px;
}
.case-bubble::after { display: none; }
.case:nth-of-type(odd) .case-num { left: 28px; }
.case:nth-of-type(even) .case-num { right: 25px; }
.case-img { margin-top: 16px; }
.case p { font-size: 14px; line-height: 1.95; }
.visit-lead { font-family: var(--font-gothic); font-weight: 700; font-size: 15px; letter-spacing: .15em; line-height: 2; }
.info .big { font-weight: 700; }
.access dd { font-size: 14px; font-weight: 700; line-height: 1.75; }
.access dt { width: 58%; font-size: 15px; padding: 4px 12px; }

/* ===== 下層ページ（取扱商品・長崎べっ甲・お知らせ・英語・404）は全て明朝（10/27 指示） ===== */
.page-mincho, .page-mincho *, .page-mincho svg text { font-family: var(--font-mincho) !important; }

/* ===== 10/29 デザイナー支給パーツ（@2x PNG・表示は半分の大きさ） =====
   文字入りの画像は、英語版では同名の _en（例: band-bekko_en.png）に差し替える想定。
   見出しの文字は .sr-only で見た目だけ隠し、読み上げ用に残している。 */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 商品の見出しの帯 */
.label.label--img { background: none; padding: 0; width: auto; line-height: 0; margin: 0 0 22px; }
.label--img img { display: block; width: 294px; max-width: 78.4%; height: auto; }
.product.reverse .label--img img { width: 289px; max-width: 77%; margin-left: auto; }

/* 商品写真（切り抜き済み・背景透明） */
.product-photo.product-photo--cut {
  width: 78%; aspect-ratio: auto; border-radius: 0; overflow: visible; background: none;
  margin-left: 0; animation: none;
}
.product.reverse .product-photo.product-photo--cut { width: 79.5%; margin-right: 0; animation: none; }
.product-photo--cut picture { display: block; }
.product-photo--cut img {
  display: block; width: 100%; height: auto; object-fit: initial;
  transform-origin: 50% 70%; animation: photo-sway 7s ease-in-out infinite alternate;
}
.product.reverse .product-photo--cut img { animation-duration: 8.5s; animation-direction: alternate-reverse; }
@keyframes photo-sway {
  from { transform: rotate(-1.2deg) translateY(0); }
  to   { transform: rotate(1.2deg) translateY(-5px); }
}

/* 選びかた */
.choose-howto { display: block; width: 151px; height: auto; margin: 0 auto 4px; }
.choose-head h2.choose-title { margin: 0 0 12px; line-height: 0; }
.choose-title img { display: block; width: 192px; height: auto; margin: 0 auto; }
.case-bubble.case-bubble--img { background: none; padding: 0; width: 248px; max-width: 100%; margin: 0 auto; }
.case-bubble--img img { display: block; width: 100%; height: auto; }

/* ご来店案内・ACCESS・アクセス方法 */
.visit h2.visit-title { background: none; clip-path: none; padding: 0; display: block; line-height: 0; margin: 0 auto 28px; }
.visit-title img { display: block; width: 240px; height: auto; margin: 0 auto; }
.access h3.access-title { background: none; padding: 0; line-height: 0; margin: 0 0 32px; }
.access-title img { display: block; width: 100%; max-width: 328px; height: auto; margin: 0 auto; }
.access dt.access-pill { background: none; padding: 0; width: auto; max-width: none; border-radius: 0; line-height: 0; margin: 0 auto 12px; }
.access-pill img { display: block; width: 218px; height: auto; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) { .product-photo--cut img { animation: none !important; } }

/* 取扱商品：見出し → サブタイトル → イラスト(透過) → 写真 の順（10/29） */
.cat .cat-illust-free { margin: 4px auto 14px; width: 170px; }
.cat .cat-illust-free img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; }

/* 取扱商品：写真は角丸の四角（長崎べっ甲ページと同じ形）10/29 */
.cat figure:not(.cat-illust):not(.cat-illust-free) img { aspect-ratio: 4 / 3; border-radius: 12px; }

/* 取扱商品：写真ギャラリー（1枚目は大きく、2枚目以降は2列）10/29 */
.cat .cat-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 18px; }
.cat .cat-gallery figure { margin: 0; }
.cat .cat-gallery figure:first-child { grid-column: 1 / -1; }
.cat .cat-gallery figure:nth-child(n+2) img { aspect-ratio: 1 / 1; border-radius: 10px; }
.cat .cat-gallery--grid figure:first-child { grid-column: auto; }
.cat .cat-gallery.cat-gallery--grid figure img { aspect-ratio: 1 / 1; border-radius: 10px; }
.cat .cat-illust-free.cat-illust-free--small { width: 96px; }
.cat .cat-gallery.cat-gallery--stack { grid-template-columns: 1fr; gap: 14px; }
.cat .cat-gallery.cat-gallery--stack figure img { aspect-ratio: 4 / 3; border-radius: 12px; }

/* PC左右：明朝体にそろえる（10/29 デザイナー指示） */
@media (min-width: 1100px) {
  .pc-left, .pc-left *, .pc-right, .pc-right * { font-family: var(--font-mincho) !important; }
  .pc-nav a { font-weight: 500; font-size: 15px; letter-spacing: .14em; }
  .pc-card h2 { font-weight: 700; color: var(--green); font-size: 22px; letter-spacing: .24em; }
  .pc-card dt { font-weight: 500; }
  .pc-card dd { font-weight: 500; font-size: 15px; letter-spacing: .06em; }
  .pc-btn { font-weight: 500; letter-spacing: .14em; }
  .pc-lang { letter-spacing: .14em; }
}

/* PC左：ロゴ・メニュー・言語切替を同じ中心線にそろえる（10/29） */
@media (min-width: 1100px) {
  .pc-left > a:first-child { display: block; width: min(205px, 70%); }  /* 以前の表示サイズ(約205px)に戻す */
  .pc-left .pc-logo { display: block; width: 100%; max-width: none; height: auto; }
  .pc-nav { grid-template-columns: repeat(2, 7.5em); justify-content: center; column-gap: 32px; row-gap: 22px; width: auto; }
  .pc-nav li { text-align: center; }
  .pc-lang { text-align: center; }
}

/* ===== 石畳：足元から一段ずつ浮かび上がる（10/29 試作・案A） ===== */
.lead { background: var(--peach); overflow: hidden; }
.lead > :not(.stones) { position: relative; z-index: 1; }
.stones { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.stones-layer { position: absolute; left: 0; width: 100%; }
.stones-top { top: 0; }
.stones-bottom { bottom: 0; }
.stones-layer img { position: absolute; height: auto; display: block; }
.js .stones-layer img {
  opacity: 0; transform: translateY(14px) scale(.92);
  transition: opacity .7s ease-out, transform .9s cubic-bezier(.2,.8,.3,1.15);
  transition-delay: calc(var(--i) * 90ms);
}
.js .stones-layer.is-in img { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .stones-layer img { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* 軽量版画像(WebP)用の <picture> はレイアウトに影響させない */
picture { display: contents; }
.product-photo--cut picture { display: block; }

/* 英語ページ（10/29） */
.cat-nav-label { font-size: 13px; letter-spacing: .08em; margin: 18px 0 8px; color: var(--green-dark); }
.choose-en-kicker { font-family: var(--font-en); color: var(--orange); font-size: 12px; letter-spacing: .25em; font-weight: 700; margin: 0 0 6px !important; }
.choose-head h2.choose-en-title { font-family: var(--font-mincho); font-weight: 700; font-size: 26px; color: var(--orange); letter-spacing: .02em; margin: 0 0 10px; }
.case-bubble small { display: block; font-family: var(--font-en); font-size: 10px; letter-spacing: .2em; opacity: .9; margin-bottom: 2px; }

/* 英語ページ：PC左のメニューは縦1列（10/29） */
@media (min-width: 1100px) {
  html[lang="en"] .pc-nav { grid-template-columns: max-content; row-gap: 18px; }
}

/* 取扱商品(英語)：べっ甲の注意書き */
.cat-caution { font-size: 13px; line-height: 1.9; padding: 12px 14px; border-left: 3px solid var(--orange); background: rgba(222,101,50,.07); border-radius: 0 8px 8px 0; }
/* 切り抜き写真を左右反転して反対側に置く（英語トップのべっ甲） */
.product-photo--mirror picture { transform: scaleX(-1); }

/* ===== 商品：写真と縦書きキャッチの位置関係を、どの機種でもデザイン(375px)と同じ比率に（10/29） =====
   cqw = 商品エリアの幅の1%。375px幅のデザインの数値 ÷ 3.75 で指定 */
.product { container-type: inline-size; }
.product-catch { font-size: 5.07cqw; padding-right: 6.4cqw; padding-top: 0; }
.product.reverse .product-catch { padding: 4.27cqw 0 0 6.4cqw; }
.product-head { gap: 2.13cqw; }
.label.label--img { margin-top: 0; margin-bottom: 5.87cqw; }

/* 選びかた：挿絵は丸の背景ごと画像（10/29 支給） */
.case-img { background: none; border-radius: 0; overflow: visible; }
.case-img img { width: 100%; height: 100%; }

/* ===== PC左右：長崎べっ甲店らしい見せ方に（10/29） =====
   メニューは縦1列／ご来店案内はリボン見出しの案内板／右下に石畳の坂道と猫 */
@media (min-width: 1100px) {
  .pc-nav { grid-template-columns: max-content; row-gap: 18px; }
  .pc-right { justify-content: center; }
  .pc-card {
    border: 0; border-radius: 6px; background: var(--white);
    box-shadow: 0 10px 30px rgba(120, 90, 60, .08);
    padding: 52px 32px 34px; margin-top: 30px;
  }
  .pc-card h2.pc-ribbon { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); margin: 0; width: 220px; line-height: 0; }
  .pc-ribbon img { display: block; width: 100%; height: auto; }
  .pc-card h2.pc-ribbon--text {
    width: auto; line-height: 1; white-space: nowrap;
    background: var(--orange); color: var(--white); font-size: 18px; letter-spacing: .2em; padding: 12px 34px 12px 40px;
    clip-path: polygon(0 8%, 6% 0, 50% 6%, 94% 0, 100% 10%, 97% 50%, 100% 92%, 94% 100%, 50% 94%, 6% 100%, 0 90%, 3% 50%);
  }
  .pc-path { position: absolute; left: 0; right: 0; bottom: 0; height: 28vh; pointer-events: none; }
  .pc-path-stones { position: absolute; left: 4%; bottom: -10px; height: 100%; width: auto; max-width: 70%; object-fit: contain; object-position: left bottom; }
  .pc-path-cat { position: absolute; left: 46%; bottom: 46%; width: 44px; transform: rotate(-4deg); }
}
@media (min-width: 1100px) and (max-height: 760px) { .pc-path { height: 20vh; } }
@media (min-width: 1100px) {
  .pc-card { z-index: 1; }
  .pc-path { height: 22vh; }
  .pc-path-cat { left: 36%; bottom: 40%; width: 40px; }
}

/* PC右下：石畳のハートをひとつ、そっと（10/29） */
@media (min-width: 1100px) {
  .pc-path { display: none; }
  .pc-heart { position: absolute; right: 9%; bottom: 7vh; width: 46px; pointer-events: none; transform: rotate(-8deg); }
  .pc-heart img { display: block; width: 100%; height: auto; }
}
/* PC：中央画面の左右の線をなくす（10/29） */
@media (min-width: 1100px) { .sp-frame { border-left: 0; border-right: 0; } }

/* ===== 開いたときのロゴ画面（10/29）：緑の画面にロゴ → ふわっと消える。同じタブでは最初の1回だけ ===== */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--green); display: grid; place-items: center; pointer-events: none;
  animation: splash-out .7s ease 1.55s forwards; }
.splash img { width: 200px; max-width: 55vw; height: auto; opacity: 0; animation: splash-logo 1s ease .1s forwards, splash-logo-out .35s ease 1.25s forwards; }
@keyframes splash-logo-out { to { opacity: 0; } }
@keyframes splash-logo { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
html.no-splash .splash, html:not(.js) .splash { display: none; }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } }
html:not(.no-splash) .js .hero-catch .line, html.js:not(.no-splash) .hero-catch .line { animation-delay: calc(1.9s + var(--d) * .45s); }
/* べっ甲ページ：縦長写真（かんざし）も他と同じ横長枠でトリミング */
.item-card img[src*="bekko-kanzashi"] { object-position: 50% 50%; }

/* トップ：べっ甲 → 長崎べっ甲ページへの MORE ボタン（10/29 デザインの SHOP を置き換え） */
.more-link { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 14px; margin-top: 6px; color: var(--white); text-decoration: none; }
.more-link img { width: 42px; height: 42px; display: block; transition: transform .25s ease; }
.more-link span:not(.sr-only) { font-family: "Jost", "Futura", "Century Gothic", sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .22em; }
.more-link:hover img, .more-link:focus-visible img { transform: translateX(4px); }

/* ---------- 着物と布の手しごと（kimono.html） ---------- */
.kimono-catch { font-family: var(--font-mincho); font-weight: 700; font-size: 16px; letter-spacing: .08em; color: var(--green-dark); line-height: 1.8; }
.item-card-body { padding: 16px 18px 6px; font-size: 13px; line-height: 1.9; }
.item-card-body h3 { font-family: var(--font-mincho); font-weight: 700; font-size: 17px; color: var(--orange); letter-spacing: .1em; margin: 0 0 4px; }
.item-card-body .kimono-catch { font-size: 14px; margin: 0 0 10px; }
.item-card-body p { margin: 0 0 1em; }
.item-card-body strong { color: var(--orange); font-family: var(--font-mincho); }
.item-card-illust { display: flex; justify-content: center; align-items: center; aspect-ratio: 4/3; background: var(--cream); }
.item-card .item-card-illust img { width: 46%; aspect-ratio: auto; object-fit: contain; }
.maker { background: var(--white); border-radius: 12px; padding: 22px 22px 8px; margin: 48px 0 12px; }
.maker h3 { font-family: var(--font-mincho); font-weight: 700; font-size: 18px; color: var(--orange); letter-spacing: .12em; margin: 0 0 12px; }
.maker p:not(.sec-kicker) { font-size: 14px; line-height: 1.9; }
.item-card-body--noimg { padding-top: 22px; border-top: 4px solid var(--peach); }

/* TOP：布の手しごと（波佐見と同じ「写真右・青帯」の並び） */
.product.nuno .label { background: var(--teal); }
html[lang="en"] .product.nuno .label { white-space: nowrap; letter-spacing: .12em; }
.article .fig-natural img { aspect-ratio: auto; width: 100%; height: auto; }
.item-card img.item-card-img--tall { aspect-ratio: 5/6; }
