/* 垂れ幕ページ固有スタイル。共通レイアウトは style.css / category.css を使用します。 */

.taremaku-page {
  --taremaku-line: rgba(78, 179, 216, .2);
  --taremaku-shadow: 0 12px 34px rgba(18, 79, 105, .1);
}

.taremaku-skip {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 300;
  padding: 9px 16px;
  color: #fff;
  background: #0b506d;
  border-radius: 6px;
  transform: translateY(-160%);
}

.taremaku-skip:focus { transform: translateY(0); }

.taremaku-page :focus-visible {
  outline: 3px solid #35a6cf;
  outline-offset: 4px;
}

.taremaku-page .taremaku-hero {
  position: relative;
  overflow: hidden;
  background: #071d2b;
}

.taremaku-page .taremaku-hero .ct-hero-inner {
  position: relative;
  display: flex;
  min-height: 480px;
  align-items: center;
}

.taremaku-page .taremaku-hero-copy {
  position: relative;
  z-index: 2;
  width: min(48%, 570px);
  min-width: 0;
}

.taremaku-page .taremaku-hero-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
}

.taremaku-page .taremaku-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.taremaku-page .ct-features { padding: 54px 32px; }
.taremaku-page .ct-features-grid { margin-top: 0; }

.taremaku-page .ct-main {
  width: min(1264px, calc(100% - 64px));
  max-width: 1264px;
  padding-top: 60px;
  padding-bottom: 88px;
}

.taremaku-page .ct-main > .ct-section {
  padding: 0;
  margin-bottom: 68px;
}

.taremaku-page .ct-main > .ct-section:last-child { margin-bottom: 0; }
.taremaku-page .ct-section-header { margin-bottom: 28px; }

.taremaku-page .ct-stock-note {
  margin: -8px 0 28px;
  padding: 14px 17px;
  border-left: 3px solid #4eb3d8;
  color: #4f6977;
  background: rgba(78, 179, 216, .07);
  font-size: 13px;
  line-height: 1.8;
}

.taremaku-page .ct-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.taremaku-page #cat-order .ct-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.taremaku-page .ct-card {
  min-width: 0;
  border-color: var(--taremaku-line);
  box-shadow: var(--taremaku-shadow);
}

.taremaku-page .ct-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #f4f9fb;
}

.taremaku-page .ct-card-img img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.taremaku-page #cat-order .ct-card-img {
  aspect-ratio: 16 / 9;
}

.taremaku-page #cat-order .ct-card-img img {
  padding: 0;
  object-fit: cover;
}

.taremaku-page .ct-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.taremaku-page .ct-card-name { font-size: 17px; line-height: 1.55; }
.taremaku-page .ct-card-size { font-size: 12px; line-height: 1.7; }
.taremaku-page .ct-card-desc { line-height: 1.85; }

.taremaku-page .ct-card-price-original {
  margin-top: 12px;
  color: #687d88;
  font-size: 12px;
  text-decoration: line-through;
}

.taremaku-page .ct-card-price-sale {
  margin-top: 4px;
  color: #1b7598;
  font-size: 23px;
  font-weight: 700;
}

.taremaku-page .ct-card-price-sale small { font-size: 11px; font-weight: 400; }

.taremaku-page .ct-card-badge-sale {
  align-self: flex-start;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #9c3f2c;
  background: #fff0eb;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .taremaku-page .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .taremaku-page .taremaku-hero .ct-hero-inner {
    min-height: 480px;
    align-items: flex-end;
  }

  .taremaku-page .taremaku-hero-copy { width: 100%; }
  .taremaku-page .taremaku-hero-visual img { object-position: 62% center; }
  .taremaku-page .taremaku-hero::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,29,43,.18) 0%, rgba(7,29,43,.72) 58%, rgba(7,29,43,.96) 100%);
    pointer-events: none;
  }
  .taremaku-page .ct-features { padding: 38px 18px; }

  .taremaku-page .ct-main {
    width: calc(100% - 36px);
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .taremaku-page .ct-main > .ct-section { margin-bottom: 50px; }
  .taremaku-page .ct-section-header { margin-bottom: 22px; }
  .taremaku-page .ct-stock-note { margin-bottom: 22px; font-size: 12px; }
  .taremaku-page .ct-grid { gap: 14px; }
  .taremaku-page .ct-card-body { padding: 14px 12px 16px; }
  .taremaku-page .ct-card-img img { padding: 8px; }
  .taremaku-page .ct-card-name { font-size: 14px; }
  .taremaku-page .ct-card-size { font-size: 10px; }
  .taremaku-page .ct-card-price-original { font-size: 10px; }
  .taremaku-page .ct-card-price-sale { font-size: 18px; }
}

@media (max-width: 480px) {
  .taremaku-page .ct-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .taremaku-page .ct-feature-card { padding: 16px 10px; }
  .taremaku-page .ct-feature-title { font-size: 12px; }
  .taremaku-page .ct-feature-text { font-size: 10px; }
  .taremaku-page .ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .taremaku-page #cat-order .ct-grid { grid-template-columns: 1fr; }
  .taremaku-page .ct-card-body { padding: 12px 10px 14px; }
  .taremaku-page .ct-card-name { font-size: 13px; }
  .taremaku-page .ct-card-price-sale { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .taremaku-page *,
  .taremaku-page *::before,
  .taremaku-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Custom-order gallery: scoped to the taremaku page. */
.taremaku-page .tm-order-panel{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:32px;align-items:center;padding:24px;border:1px solid #dbe7ed;border-radius:16px;background:#fff;box-shadow:0 6px 28px #17394e06}
.taremaku-page .tm-gallery{min-width:0}
.taremaku-page .tm-gallery-stage{position:relative;overflow:hidden;border-radius:10px;background:#eef3f5}
.taremaku-page .tm-gallery-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.taremaku-page #tm-gallery-main{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;padding:0}
.taremaku-page .tm-gallery-zoom{position:absolute;right:12px;bottom:12px;padding:6px 11px;border-radius:5px;color:#fff;background:#102b3de6;font-size:11px;line-height:1.6}
.taremaku-page .tm-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:44px;border:1px solid #ffffffb3;border-radius:6px;background:#102b3dd9;color:#fff;font-size:30px;line-height:1;cursor:pointer}
.taremaku-page .tm-gallery-prev{left:10px}.taremaku-page .tm-gallery-next{right:10px}
.taremaku-page .tm-gallery-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 0 12px;color:#24465c;font-size:13px;font-weight:600}
.taremaku-page #tm-gallery-count{color:#557383;font-size:12px;letter-spacing:.08em;font-variant-numeric:tabular-nums}
.taremaku-page .tm-gallery-thumbs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.taremaku-page .tm-gallery-thumb{display:block;min-width:0;padding:3px;border:2px solid transparent;border-radius:7px;background:#f2f6f8;color:#4d6878;cursor:pointer;font:inherit}
.taremaku-page .tm-gallery-thumb img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:3px}
.taremaku-page .tm-gallery-thumb span{display:block;padding:5px 0 2px;font-size:10px;line-height:1.5;white-space:nowrap}
.taremaku-page .tm-gallery-thumb[aria-pressed="true"]{border-color:#2184a8;background:#edf8fc;color:#176789}
.taremaku-page .tm-gallery-thumb:hover{background:#e4f0f5}
.taremaku-page .tm-gallery-note{margin:10px 0 0;color:#6b7e89;font-size:11px;line-height:1.7}
.taremaku-page .tm-order-eyebrow{margin:0 0 12px;color:#297d9b;font-size:11px;font-weight:700;letter-spacing:.15em}
.taremaku-page .tm-order-copy h3{margin:0 0 18px;color:#173b50;font-size:clamp(24px,2.4vw,32px);font-weight:700;line-height:1.65;letter-spacing:.04em}
.taremaku-page .tm-order-copy>p:not(.tm-order-eyebrow){margin:0 0 14px;font-size:13px;line-height:1.95;color:#526b7b}
.taremaku-page .tm-order-copy>.tm-order-lead{font-weight:700;color:#21485e!important}
.taremaku-page .tm-order-spec{margin:20px 0 24px;font-size:12px;line-height:1.8}
.taremaku-page .tm-order-spec div{display:grid;grid-template-columns:70px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #e2ebef}
.taremaku-page .tm-order-spec dt{font-weight:700;color:#274e63}.taremaku-page .tm-order-spec dd{margin:0;color:#597383}
.taremaku-page .tm-order-copy .ct-card-btn{margin:0;display:flex;justify-content:center;align-items:center;min-height:48px}
.taremaku-page .tm-gallery-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(1100px,94vw);max-width:94vw;max-height:94dvh;padding:42px 14px 12px;border:0;border-radius:12px;background:#102b3d;color:#fff;overflow:auto}
.taremaku-page .tm-gallery-dialog::backdrop{background:#061621df}
.taremaku-page .tm-gallery-dialog>img{display:block;width:100%;height:auto;max-height:calc(94dvh - 112px);object-fit:contain}
.taremaku-page .tm-gallery-close{position:absolute;right:8px;top:2px;min-width:40px;min-height:40px;padding:0;border:0;background:transparent;color:#fff;font-size:30px;cursor:pointer}
.taremaku-page .tm-gallery-dialog-nav{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:8px}
.taremaku-page .tm-gallery-dialog-nav p{margin:0;font-size:12px}
.taremaku-page .tm-gallery-dialog-nav button{min-width:40px;min-height:40px;border:1px solid #ffffff55;border-radius:6px;background:transparent;color:#fff;font-size:25px;cursor:pointer}
.taremaku-page .tm-gallery button:focus-visible,.taremaku-page .tm-gallery-dialog button:focus-visible{outline:3px solid #2ca1d0;outline-offset:3px}
@media(max-width:960px){.taremaku-page .tm-order-panel{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);gap:24px;padding:20px}.taremaku-page .tm-order-copy h3{font-size:25px}}
@media(max-width:700px){.taremaku-page .tm-order-panel{grid-template-columns:1fr;gap:24px;padding:16px}.taremaku-page .tm-order-copy h3{font-size:26px;line-height:1.5;margin-bottom:12px}.taremaku-page .tm-gallery-thumbs{gap:4px}.taremaku-page .tm-gallery-thumb{padding:2px}.taremaku-page .tm-gallery-thumb span{font-size:9px;letter-spacing:-.04em}.taremaku-page .tm-gallery-zoom{right:8px;bottom:8px;font-size:10px}.taremaku-page .tm-order-spec{margin:14px 0 20px}}
