/* design.html 専用 */
.d-hero-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 40px; max-width: 820px; }
.d-hero-cards a { background: #fff; border: 1px solid #EAE3D8; border-radius: 16px; padding: 22px; color: #2B2E38; transition: all .2s; }
.d-hero-cards a:hover { border-color: #E4843C; transform: translateY(-3px); }
.d-hero-cards .v { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(24px, 3vw, 34px); line-height: 1; color: #C0691F; white-space: nowrap; }
.d-hero-cards .v small { font-size: .45em; }
.d-hero-cards .l { margin-top: 10px; font-size: 14px; font-weight: 700; }

.tpl-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-top: 40px; }
.tpl-btn { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: zoom-in; font: inherit; color: inherit; transition: transform .25s ease; }
.tpl-btn:hover { transform: translateY(-4px); }
.tpl-btn .frame { aspect-ratio: 788 / 1238; overflow: hidden; }
.tpl-btn .frame img { width: 100%; height: 100%; object-fit: contain; }
.tpl-btn .name { margin-top: 10px; font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chips span { font-size: 13px; background: #F3EFE8; border-radius: 999px; padding: 7px 14px; color: #4A463E; }

.layout-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; margin-top: 40px; }
.layout-card { background: #fff; border: 1px solid #EAE3D8; border-radius: 16px; overflow: hidden; }
.layout-card .wire { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.layout-card .cap { padding: 0 16px 18px; }
.layout-card .cap .t { font-size: 15px; font-weight: 900; }
.layout-card .cap .d { margin-top: 4px; font-size: 13px; color: #6A645A; }

.parts-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-top: 40px; }
.part-card { border: 1px solid #EAE3D8; border-radius: 16px; padding: 22px; transition: all .2s; }
.part-card:hover { border-color: #E4843C; transform: translateY(-3px); }
.part-card .top { display: flex; align-items: center; justify-content: space-between; }
.part-card .ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: #F1F3F8; }
.part-card .k { font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #948C80; }
.part-card .t { margin-top: 14px; font-size: 16px; font-weight: 900; }
.part-card .d { margin-top: 8px; font-size: 13.5px; color: #6A645A; line-height: 1.8; }
.extra-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.extra-card { background: #FBF7F1; border: 1px solid #EAE3D8; border-radius: 18px; padding: 26px; }
.extra-card .t { font-size: 16px; font-weight: 900; }
.extra-card p { margin-top: 10px; font-size: 13.5px; color: #6A645A; line-height: 1.85; }

/* CTAバンド（2カラム版） */
.cta-band2 { background: linear-gradient(120deg,#24262E 0%,#383C46 60%,#4B505C 100%); border-radius: 28px; padding: 56px; color: #fff; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 48px; align-items: center; }
.cta-band2 h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 900; line-height: 1.32; letter-spacing: -.02em; }
.cta-band2 p { margin-top: 16px; font-size: 15.5px; color: #C8C9CE; text-wrap: pretty; }
.cta-band2 .btns { display: flex; flex-direction: column; gap: 12px; }

/* ライトボックス */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(24,22,20,.86); backdrop-filter: blur(6px); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 28px 88px; cursor: zoom-out; }
.lb.open { display: flex; animation: tplFade .22s ease; }
.lb .inner { display: flex; flex-direction: column; align-items: center; max-height: 100%; cursor: default; }
.lb img { display: block; max-height: calc(100vh - 130px); max-width: min(760px, 100%); object-fit: contain; animation: tplPop .26s cubic-bezier(.2,.9,.3,1); }
.lb .meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; color: #fff; }
.lb .meta .n { font-size: 16px; font-weight: 800; }
.lb .meta .c { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.6); }
.lb button { position: absolute; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb button:hover { background: rgba(255,255,255,.2); }
.lb .prev, .lb .next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 20px; }
.lb .prev { left: 22px; } .lb .next { right: 22px; }
.lb .close { top: 20px; right: 22px; width: 44px; height: 44px; font-size: 17px; }
@keyframes tplFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes tplPop { from { opacity: 0; transform: scale(.965) } to { opacity: 1; transform: scale(1) } }

@media (max-width: 1024px) {
  .tpl-grid, .layout-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .parts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-band2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .d-hero-cards { grid-template-columns: 1fr; gap: 12px; }
  .tpl-grid, .layout-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .parts-grid { grid-template-columns: 1fr; gap: 12px; }
  .extra-grid { grid-template-columns: 1fr; gap: 12px; }
  .cta-band2 { padding: 36px 24px; border-radius: 20px; }
  .lb { padding: 20px 12px 76px; }
  .lb img { max-height: calc(100vh - 190px); }
  .lb .prev, .lb .next { top: auto; bottom: 16px; transform: none; }
  .lb .prev { left: calc(50% - 62px); } .lb .next { right: calc(50% - 62px); }
}
