/* ============================================================
   POINTYES CMS - フロントスタイル（モダン）
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-text: #1a1d23;
  --color-text-muted: #6b7280;
  --color-accent: #6366f1;
  --color-accent-hover: #4f46e5;
  --color-accent-soft: #eef2ff;
  --color-cta: #ec4899;
  --color-cta-hover: #db2777;
  --color-success: #10b981;
  --color-danger: #f43f5e;
  --color-warm: #f97316;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 6px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.1);
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
}

/* ホームの動的カラーバックグラウンド */
.home-page {
  position: relative;
  min-height: 60vh;
}
.home-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: linear-gradient(
    135deg,
    #fef3c7 0%,
    #e0e7ff 25%,
    #dbeafe 40%,
    #e0f2fe 55%,
    #fce7f3 70%,
    #f3e8ff 85%,
    #fef3c7 100%
  );
  background-size: 400% 400%;
  animation: homeBgShift 18s ease infinite;
  opacity: 0.85;
}
@keyframes homeBgShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.home-page .hero-banner,
.home-page .home-module {
  position: relative;
  z-index: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--transition), color var(--transition); }
a:hover { opacity: 0.85; }
ul, ol { list-style: none; }

/* ---- Layout ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.layout-with-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 48px; }
.layout-with-sidebar > .main-content { min-width: 0; }
.module-detail-gradient {
  background: linear-gradient(135deg, #f7f9ff 0%, #f0f7ff 45%, #f7fbf7 100%);
  padding: 26px 0 40px;
}
.module-list-spacing { margin-top: 24px; }
.service-detail-layout { margin-top: 24px; }
@media (max-width: 768px) { .layout-with-sidebar > .main-content { min-width: 0; } }
@media (max-width: 768px) { .layout-with-sidebar { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .service-detail-layout { margin-top: 16px; } }
@media (max-width: 768px) { .module-list-spacing { margin-top: 16px; } }
@media (max-width: 768px) { .service-sidebar-list li a { padding: 12px 6px; } .service-nav-title { font-size: .95rem; line-height: 1.6; } }
@media (max-width: 768px) { .module-detail-gradient { padding: 18px 0 28px; } }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { flex-shrink: 0; }
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.logo img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover { background: var(--color-accent-soft); color: var(--color-accent); opacity: 1; }
.btn-nav-login {
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 100%);
  color: #fff !important;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}
.btn-nav-login:hover { opacity: 1; box-shadow: var(--shadow-md); }
.btn-nav-user {
  border: 2px solid var(--color-accent);
  color: var(--color-accent) !important;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}
.btn-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-left: 4px;
}
.btn-cart-link:hover { background: var(--color-accent-soft); color: var(--color-accent); opacity: 1; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--color-cta);
  color: #fff;
  border-radius: var(--radius-sm);
}
.cart-count-zero { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  padding: 10px;
  z-index: 100;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.dropdown-menu a { display: block; padding: 0; font-size: 0.9rem; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--color-text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
}
.dropdown-item.has-sub { font-weight: 600; }
.arrow-right {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  opacity: .5;
}
.dropdown-sub { position: relative; }
.dropdown-sub > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 10px;
  border-radius: 6px;
}
.dropdown-sub:hover > .dropdown-menu { display: block; }

.noimage-placeholder {
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 4px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
}
.noimage-card {
  width: 100%;
  height: 220px;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.noimage-main {
  width: 100%;
  aspect-ratio: 1;
  font-size: 0.9rem;
}
.noimage-cart {
  width: 60px;
  height: 60px;
  font-size: 0.6rem;
  margin-right: 10px;
}

/* ---- Hero Banner ---- */
.hero-banner { position: relative; overflow: hidden; border-radius: 0; height: 500px; }
.banner-slider { display: flex; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); height: 100%; }
.banner-slide { flex: 0 0 100%; position: relative; height: 100%; }
.banner-slide > a { display: block; width: 100%; height: 100%; }
.banner-img,
.banner-video { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.banner-caption {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
  text-align: center;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.banner-caption h2 { font-size: 2.1rem; font-weight: 700; margin: 0 0 10px; }
.banner-caption p { font-size: 0.95rem; margin: 0; opacity: .92; }
.banner-caption-link { color: inherit; }
.banner-caption-link:hover { opacity: .9; }
.banner-cta{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:300px;max-width:100%;min-height:64px;margin-top:22px;padding:15px 34px;border:0;border-radius:14px;overflow:hidden;background-clip:padding-box;font-size:1.12rem;font-weight:700;line-height:1.2;text-decoration:none;text-shadow:none;box-shadow:none;transition:transform var(--transition),opacity var(--transition);}
.banner-cta:hover{transform:translateY(-2px);box-shadow:none;opacity:.96;}
.banner-cta--white{background:#fff;color:#17284d;}
.banner-cta--gradient-blue{background:linear-gradient(100deg,#2e62ff,#a33bea);color:#fff;}
.banner-cta--outline{background:rgba(20,39,78,.45);color:#fff;box-shadow:inset 0 0 0 2px #fff;}
.banner-cta--pill-white{background:#fff;color:#17284d;border-radius:999px;}
.banner-cta--blue{background:#147fe8;color:#fff;box-shadow:inset 0 0 0 2px #6ac7ff;}
.banner-cta--gradient-pink{background:linear-gradient(100deg,#913df1,#f22b98);color:#fff;border-radius:999px;}
@media(max-width:767px){.banner-cta{min-width:min(280px,100%);min-height:54px;margin-top:16px;padding:13px 24px;font-size:1rem;}}
.banner-prev, .banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  color: var(--color-text);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background var(--transition), transform var(--transition);
  box-shadow: var(--shadow-md);
}
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-prev:hover, .banner-next:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.banner-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.dot.active { background: #fff; transform: scale(1.2); }

/* ---- Sections ---- */
.home-module { padding: 64px 0; }
.home-module:nth-child(even) { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 36px;
  position: relative;
  padding-bottom: 14px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-cta));
  border-radius: 2px;
}

/* ---- Module Image / Text ---- */
.module-image-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}
.module-image-row .module-image-item {
  flex: 0 0 100%;
  max-width: 100%;
}
.module-image-row.count-2 .module-image-item {
  flex: 0 0 calc(50% - 10px);
  max-width: calc(50% - 10px);
}
.module-image-row.count-3 .module-image-item {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}
.module-image-row.count-4 .module-image-item {
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px);
}
.module-image-img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}
@media (max-width: 768px) {
  .module-image-row .module-image-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.module-text-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text);
}
.module-text-content p { margin-bottom: 1em; }
.module-text-content h2 { font-size: 1.35rem; margin: 1.5em 0 0.5em; }
.module-text-content h3 { font-size: 1.15rem; margin: 1.25em 0 0.5em; }
.module-text-content a { color: var(--color-accent); }
.module-text-content a:hover { text-decoration: underline; }
.module-text-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.module-text-content ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.module-text-content li { margin: 0.25em 0; }
.module-text-content blockquote {
  border-left: 4px solid var(--color-accent);
  background: #f8fafc;
  padding: 0.8em 1em;
  margin: 1.1em 0;
}
.module-text-content table { width: 100%; border-collapse: collapse; margin: 1.1em 0; }
.module-text-content table th,
.module-text-content table td { border: 1px solid #e5e7eb; padding: 8px 10px; vertical-align: top; }
.module-text-content table th { background: #f8fafc; font-weight: 700; }
.module-text-content figure.media { margin: 1.25em auto; }

/* ---- Text Modules (List/Grid/Banner) ---- */
.text-list { display: flex; flex-direction: column; gap: 16px; }
.text-list-item {
  padding: 16px 18px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.text-grid { display: grid; gap: 20px; }
.text-grid.grid-cols-1 { grid-template-columns: 1fr; }
.text-grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.text-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.text-grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .text-grid.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .text-grid.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .text-grid.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .text-grid.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .text-grid.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .text-grid.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.text-grid-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.text-grid-title { font-weight: 700; margin-bottom: 8px; }
.text-grid-body { color: var(--color-text); }
.text-banner { display: flex; flex-direction: column; gap: 16px; }
.text-banner-item {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  color: #fff;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* ---- Ad Modules (List/Grid/Banner) ---- */
.ad-grid { display: grid; gap: 20px; }
.ad-grid.grid-cols-1 { grid-template-columns: 1fr; }
.ad-grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ad-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ad-grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .ad-grid.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .ad-grid.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .ad-grid.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .ad-grid.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .ad-grid.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .ad-grid.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.ad-grid-item, .ad-list-item, .ad-banner-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.ad-list { display: flex; flex-direction: column; gap: 16px; }
.ad-banner { display: flex; flex-direction: column; gap: 18px; }
.ad-banner-item { padding: 14px; }

/* ---- Module Banners ---- */
.module-banners { display: grid; gap: 24px; }
.module-banners.grid-cols-1 { grid-template-columns: 1fr; }
.module-banners.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.module-banners.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.module-banners.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.module-banner-item img,
.module-banner-video { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-lg); }
@media (max-width: 768px) {
  .module-banners.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .module-banners.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .module-banners.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .module-banners.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .module-banners.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .module-banners.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 480px) {
  .module-banners.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .module-banners.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .module-banners.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .module-banners.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .module-banners.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .module-banners.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* ---- News Grid ---- */
.news-grid { display: grid; gap: 28px; }
.news-grid.grid-cols-1 { grid-template-columns: 1fr; }
.news-grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.news-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.news-grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .news-grid.grid-cols-3, .news-grid.grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .news-grid.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .news-grid.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .news-grid.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .news-grid.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .news-grid.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .news-grid.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 480px) {
  .news-grid.grid-cols-2, .news-grid.grid-cols-3, .news-grid.grid-cols-4 { grid-template-columns: 1fr; }
  .news-grid.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .news-grid.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .news-grid.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .news-grid.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .news-grid.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .news-grid.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.news-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.news-card img { width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; }
.news-body { padding: 20px; }
.news-category {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
}
.news-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.news-title a:hover { color: var(--color-accent); }
.news-date { font-size: 0.8rem; color: var(--color-text-muted); }
.news-summary { font-size: 0.875rem; color: var(--color-text-muted); margin-top: 10px; }

/* ---- Home Latest Cases ---- */
.home-latest-cases-panel {
  margin-top: 28px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 100%);
  box-shadow: var(--shadow-sm);
}
.home-latest-cases-heading {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.home-latest-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.home-case-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.home-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.home-case-thumb {
  display: block;
}
.home-case-thumb img {
  width: 100%;
  aspect-ratio: 4 / 2.5;
  height: auto;
  object-fit: cover;
  display: block;
}
.home-case-body {
  padding: 18px 18px 20px;
}
.home-case-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}
.home-case-title a:hover { color: var(--color-accent); }
.home-latest-cases-footer {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}
@media (max-width: 900px) {
  .home-latest-cases-panel { padding: 24px; }
  .home-latest-cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-latest-cases-panel { padding: 18px; border-radius: 18px; }
  .home-latest-cases-heading { font-size: 1.35rem; margin-bottom: 18px; }
  .home-latest-cases-grid { grid-template-columns: 1fr; }
}

/* ---- Content Grid/List ---- */
.content-grid { display: grid; gap: 24px; }
.content-grid.grid-cols-1 { grid-template-columns: 1fr; }
.content-grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.content-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.content-grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .content-grid.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .content-grid.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .content-grid.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .content-grid.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .content-grid.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .content-grid.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.content-grid-item {
  background: #f5f1ff;
  border: 2px solid #6c63ff;
  color: #6c63ff;
  font-weight: 700;
  text-align: center;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.content-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.content-summary { font-size: 0.85rem; color: var(--color-text-muted); }
.content-list { display: flex; flex-direction: column; gap: 22px; }
.content-list-item {
  display: flex;
  gap: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.content-list-thumb { flex-shrink: 0; display: flex; align-self: stretch; }
.content-list-thumb img { width: 220px; height: 100%; object-fit: cover; }
.content-list-body { padding: 18px; flex: 1; }
.content-list.is-banner .content-list-thumb img { width: 320px; height: 200px; }
@media (max-width: 700px) {
  .content-list-item { flex-direction: column; }
  .content-list-thumb { width: 100%; }
  .content-list-thumb img { width: 100%; height: 200px; }
  .content-list.is-banner .content-list-thumb img { width: 100%; height: 220px; }
}
.content-banner { display: flex; flex-direction: column; gap: 18px; }
.content-banner-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ---- Product Grid ---- */
.product-grid { display: grid; gap: 28px; }
.product-grid.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .product-grid.grid-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  .product-grid.grid-cols-3, .product-grid.grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
.product-grid.grid-cols-1 { grid-template-columns: 1fr; }
.product-grid.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 768px) {
  .product-grid.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .product-grid.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .product-grid.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .product-grid.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .product-grid.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 480px) {
  .product-grid.grid-mobile-cols-1 { grid-template-columns: 1fr; }
  .product-grid.grid-mobile-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .product-grid.grid-mobile-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid.grid-mobile-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .product-grid.grid-mobile-cols-5 { grid-template-columns: repeat(5, 1fr); }
  .product-grid.grid-mobile-cols-6 { grid-template-columns: repeat(6, 1fr); }
}
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-thumb { display: block; }
.product-thumb img, .product-card > a img { width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; }
.product-body { padding: 20px; }
.product-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--color-cta); margin-bottom: 14px; }
.product-price small { font-size: 0.76rem; color: var(--color-text-muted); font-weight: 500; margin-left: 4px; }
.btn-product {
  display: inline-block;
  background: var(--color-text);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-product:hover { background: var(--color-accent); opacity: 1; }
.badge-soldout { display: inline-block; background: #e5e7eb; color: var(--color-text-muted); padding: 6px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; }

/* ---- Product List ---- */
.product-list { display: flex; flex-direction: column; gap: 24px; }
.product-list-item {
  display: flex;
  gap: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.product-list-item:hover { box-shadow: var(--shadow-md); }
.product-list-thumb { flex-shrink: 0; display: flex; align-self: stretch; }
.product-list-thumb img { width: 320px; max-width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; }
.product-list-body { padding: 20px; flex: 1; }
.product-list.is-banner .product-list-thumb img { width: 320px; max-width: 100%; aspect-ratio: 1200 / 630; height: auto; }
@media (max-width: 700px) {
  .product-list-item { flex-direction: column; }
  .product-list-thumb img { width: 100%; aspect-ratio: 1200 / 630; height: auto; }
  .product-list.is-banner .product-list-thumb img { width: 100%; aspect-ratio: 1200 / 630; height: auto; }
}

/* ---- Embedded Product Card (news/content本文) ---- */
.embedded-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin: 20px 0;
}
.embedded-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  align-items: stretch;
  margin: 20px 0;
}
.article-body .embedded-product-card,
.description-body .embedded-product-card,
.module-text-content .embedded-product-card,
.job-rich-content .embedded-product-card,
.article-body .embedded-case-card,
.description-body .embedded-case-card,
.module-text-content .embedded-case-card,
.job-rich-content .embedded-case-card {
  text-decoration: none !important;
  color: inherit;
}
.article-body .embedded-product-card *,
.description-body .embedded-product-card *,
.module-text-content .embedded-product-card *,
.job-rich-content .embedded-product-card *,
.article-body .embedded-case-card *,
.description-body .embedded-case-card *,
.module-text-content .embedded-case-card *,
.job-rich-content .embedded-case-card * {
  text-decoration: none !important;
}
.embedded-product-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid #eef2f7;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  vertical-align: top;
}
.embedded-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #e5e7eb;
  opacity: 1;
}
.embedded-product-image-wrap { width: 100%; display: block; }
.embedded-product-image { width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; display: block; }
.article-body .embedded-product-image,
.description-body .embedded-product-image,
.module-text-content .embedded-product-image,
.job-rich-content .embedded-product-image,
.article-body .embedded-case-image,
.description-body .embedded-case-image,
.module-text-content .embedded-case-image,
.job-rich-content .embedded-case-image {
  margin: 0;
  border-radius: 0;
}
.embedded-product-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; min-width: 0; }
.embedded-product-name { font-size: 1.05rem; font-weight: 600; line-height: 1.45; color: var(--color-text); }
.embedded-product-desc { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.65; }
.embedded-product-price { color: var(--color-cta); font-weight: 700; font-size: 1.15rem; margin-top: 2px; }
.embedded-product-price small { font-size: 0.76rem; color: var(--color-text-muted); font-weight: 500; margin-left: 4px; }
.embedded-product-stock {
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  width: fit-content;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: #f3f4f6;
}
.embedded-product-stock.in-stock { color: #059669; }
.embedded-product-stock.no-stock { color: #6b7280; }
.embedded-product-btn {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.embedded-product-card:hover .embedded-product-btn { background: var(--color-accent); }
.embedded-product-card-compact {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.embedded-product-card-compact .embedded-product-image-wrap {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  align-self: stretch;
  overflow: hidden;
  background: #eef2f7;
}
.embedded-product-card-compact .embedded-product-image {
  width: 220px;
  height: 100%;
}
.embedded-product-card-compact .embedded-product-body {
  flex: 1;
  padding: 20px;
}
.embedded-product-card-compact .embedded-product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.embedded-case-card {
  display: block;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid #eef2f7;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  vertical-align: top;
}
.embedded-case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #e5e7eb;
  opacity: 1;
}
.embedded-case-image-wrap { width: 100%; display: block; }
.embedded-case-image { width: 100%; height: 220px; object-fit: cover; display: block; }
.embedded-case-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; min-width: 0; }
.embedded-case-name { font-size: 1.05rem; font-weight: 600; line-height: 1.45; color: var(--color-text); }
.embedded-case-btn {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.embedded-case-card:hover .embedded-case-btn { background: var(--color-accent); }
.embedded-case-card-compact {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.embedded-case-card-compact .embedded-case-image-wrap {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  align-self: stretch;
  overflow: hidden;
  background: #eef2f7;
}
.embedded-case-card-compact .embedded-case-image {
  width: 220px;
  height: 100%;
}
.embedded-case-card-compact .embedded-case-body {
  flex: 1;
  padding: 20px;
}
@media (max-width: 640px) {
  .embedded-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .embedded-case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .embedded-product-card-compact { display: block; }
  .embedded-product-card-compact .embedded-product-image-wrap,
  .embedded-product-card-compact .embedded-product-image {
    width: 100%;
    height: 200px;
  }
  .embedded-case-card-compact { display: block; }
  .embedded-case-card-compact .embedded-case-image-wrap,
  .embedded-case-card-compact .embedded-case-image {
    width: 100%;
    height: 200px;
  }
  .embedded-product-card {
    margin: 16px 0;
  }
  .embedded-product-body {
    padding: 16px;
    gap: 8px;
  }
  .embedded-case-card {
    margin: 16px 0;
  }
  .embedded-case-body {
    padding: 16px;
    gap: 8px;
  }
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: box-shadow var(--transition), transform var(--transition);
  border: none;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); opacity: 1; color: #fff; }
.btn-secondary {
  display: inline-block;
  background: var(--color-text-muted);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.btn-more {
  display: inline-block;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition);
}
.btn-more:hover { background: var(--color-accent); color: #fff; opacity: 1; }
.btn-full { width: 100%; display: block; }
.btn-apply {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: box-shadow var(--transition);
}
.btn-apply:hover { box-shadow: var(--shadow-md); opacity: 1; }

/* ---- Page Hero ---- */
.page-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  color: #fff;
  padding: 56px 0;
  margin-bottom: 48px;
  border-radius: 0;
}
.page-hero-mypage { padding: 44px 0 40px; margin-bottom: 36px; }
.page-hero-desc { font-size: 0.95rem; opacity: .9; margin: 8px 0 0; font-weight: 400; }
.page-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.page-title-sub { font-size: 0.75rem; letter-spacing: .2em; opacity: .85; display: block; margin-bottom: 6px; }
.mypage-container { padding-bottom: 80px; }

/* ---- Product Top Banner ---- */
.product-top-banner { margin: 18px 0 32px; }
.product-top-banner-inner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  color: #fff;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

/* ---- News List ---- */
.news-list {
  --news-list-title-lines: 2;
  --news-list-summary-lines: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.news-list-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.news-list-item:hover { box-shadow: var(--shadow-md); }
.news-list-thumb {
  flex-shrink: 0;
  display: block;
  align-self: flex-start;
  width: 320px;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #eef2f7;
}
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-list-body {
  padding: 18px 20px;
  flex: 1;
  min-width: 0;
}
.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.news-meta time { font-size: 0.8rem; color: var(--color-text-muted); }
.news-list-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--news-list-title-lines);
  overflow: hidden;
}
.news-list-summary {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--news-list-summary-lines);
  overflow: hidden;
}
.news-list.is-banner .news-list-thumb { width: 320px; aspect-ratio: 1200 / 630; }
@media (max-width: 600px) {
  .news-list {
    --news-list-title-lines: 3;
    --news-list-summary-lines: 2;
  }
  .news-list-item { flex-direction: column; }
  .news-list-thumb,
  .news-list.is-banner .news-list-thumb {
    width: 100%;
    aspect-ratio: 1200 / 630;
    align-self: auto;
  }
  .news-list-body {
    padding: 16px;
  }
}

/* ---- Case pages ---- */
.case-page .news-card img,
.case-page .news-list-thumb img {
  aspect-ratio: 4 / 2.5;
  height: auto;
}
.case-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.case-category-section {
  margin-bottom: 72px !important;
}
.case-category-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.case-category-all-link:hover {
  color: var(--color-accent-hover);
  opacity: 1;
}
.case-page .news-list-thumb img {
  width: 220px;
}
.case-page .news-list.is-banner .news-list-thumb img {
  width: 320px;
}
@media (max-width: 600px) {
  .case-category-section {
    margin-bottom: 48px !important;
  }
  .case-category-header {
    align-items: flex-end;
    gap: 12px;
  }
  .case-category-all-link {
    font-size: 0.85rem;
  }
  .case-page .news-list-thumb img,
  .case-page .news-list.is-banner .news-list-thumb img {
    width: 100%;
  }
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-lg);
}

/* ---- Category Tabs ---- */
.category-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.tab {
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  background: #f1f5f9;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.tab.active, .tab:hover { background: var(--color-accent); color: #fff; opacity: 1; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
  background: var(--color-surface);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.page-link.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.page-link:hover:not(.active) { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent); opacity: 1; }

/* ---- Sidebar ---- */
.sidebar { padding-top: 0; }
.sidebar-widget {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}
.widget-list li { border-bottom: 1px solid #f1f5f9; }
.widget-list a { display: block; padding: 12px 0; font-size: 0.9rem; }
.widget-list a.active { color: var(--color-accent); font-weight: 700; }
.sidebar-ad { margin-bottom: 20px; }
.service-sidebar-nav {
  border: 1px solid #e7eaf2;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}
.service-sidebar-nav .widget-title { margin-bottom: 16px; }
.service-sidebar-list li { border-bottom: 1px solid #eef2f8; }
.service-sidebar-list li a {
  display: block;
  padding: 14px 8px;
  border-radius: 0;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service-nav-title {
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.service-sidebar-list li a:hover {
  background: linear-gradient(135deg, #f3f6ff 0%, #ffffff 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(90, 100, 220, 0.12);
  opacity: 1;
}
.service-sidebar-list li a:focus-visible { outline: 2px solid #5b63e6; outline-offset: 2px; }

/* ---- Article ---- */
.news-article { margin-bottom: 48px; }
.article-header { margin-bottom: 28px; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.article-title { font-size: 1.85rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.article-thumbnail {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  max-height: 420px;
  object-fit: cover;
}
.article-top-video {
  max-height: none;
  overflow: hidden;
}
.article-top-video .rich-media-embed {
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding-top: 56.25%;
}
.article-body,
.description-body,
.module-text-content,
.job-rich-content { font-size: 12px; line-height: 1.9; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 28px 0 14px; }
.article-body p { margin-bottom: 18px; }
.article-body img,
.description-body img,
.module-text-content img,
.job-rich-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 20px 0;
}
/* CKEditor image layout support (news/case/product rich text) */
.article-body figure.image,
.description-body figure.image,
.module-text-content figure.image,
.job-rich-content figure.image {
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 1.25em auto;
}
.article-body figure.image.image_resized,
.description-body figure.image.image_resized,
.module-text-content figure.image.image_resized,
.job-rich-content figure.image.image_resized {
  display: block;
  max-width: 100%;
}
.article-body figure.image img,
.description-body figure.image img,
.module-text-content figure.image img,
.job-rich-content figure.image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}
.article-body figure.image.image_resized img,
.description-body figure.image.image_resized img,
.module-text-content figure.image.image_resized img,
.job-rich-content figure.image.image_resized img {
  width: 100%;
}
.article-body figure.image figcaption,
.description-body figure.image figcaption,
.module-text-content figure.image figcaption,
.job-rich-content figure.image figcaption {
  display: table-caption;
  caption-side: bottom;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 0.5em;
}
.article-body .image.image-style-align-left,
.article-body .image.image-style-side,
.description-body .image.image-style-align-left,
.description-body .image.image-style-side {
  float: left;
  margin: 0.4em 1.2em 0.8em 0;
}
.article-body .image.image-style-align-right,
.description-body .image.image-style-align-right {
  float: right;
  margin: 0.4em 0 0.8em 1.2em;
}
.article-body .image.image-style-align-center,
.description-body .image.image-style-align-center {
  margin-left: auto;
  margin-right: auto;
}
.article-body .image.image-style-inline,
.description-body .image.image-style-inline {
  display: inline-block;
  margin: 0 0.6em 0.6em 0;
  vertical-align: middle;
}
.article-body .image.image-style-block,
.description-body .image.image-style-block {
  width: 100%;
}
.article-body a,
.description-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body ul,
.description-body ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.article-body ol,
.description-body ol {
  list-style: decimal;
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.article-body li,
.description-body li {
  margin: 0.25em 0;
}
.article-body blockquote,
.description-body blockquote {
  border-left: 4px solid var(--color-accent);
  background: #f8fafc;
  padding: 0.8em 1em;
  margin: 1.1em 0;
}
.article-body .content-cta-block,
.description-body .content-cta-block,
.module-text-content .content-cta-block,
.job-rich-content .content-cta-block {
  margin: 20px 0;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.08));
}
.article-body .content-cta-title,
.description-body .content-cta-title,
.module-text-content .content-cta-title,
.job-rich-content .content-cta-title {
  font-weight: 800;
  margin-bottom: 8px;
}
.article-body .content-cta-text,
.description-body .content-cta-text,
.module-text-content .content-cta-text,
.job-rich-content .content-cta-text {
  margin: 0 0 12px;
}
.article-body .content-cta-link,
.description-body .content-cta-link,
.module-text-content .content-cta-link,
.job-rich-content .content-cta-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 4px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  text-decoration: none;
}
.article-body table,
.description-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1em 0;
}
.article-body figure.table,
.description-body figure.table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body figure.table table,
.description-body figure.table table {
  min-width: 560px;
}
.article-body table th,
.article-body table td,
.description-body table th,
.description-body table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.article-body table,
.description-body table {
  table-layout: fixed;
}
.article-body table th,
.description-body table th {
  background: #f8fafc;
  font-weight: 700;
}
.article-body figure.media,
.description-body figure.media {
  margin: 1.25em auto;
  max-width: 100%;
  overflow: hidden;
}
.rich-media-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 56.25%;
}
.rich-media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius-md);
}
.article-body iframe,
.description-body iframe,
.module-text-content iframe,
.job-rich-content iframe,
.article-body video,
.description-body video,
.module-text-content video,
.job-rich-content video,
.article-body embed,
.description-body embed,
.module-text-content embed,
.job-rich-content embed,
.article-body object,
.description-body object,
.module-text-content object,
.job-rich-content object {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}
.article-body::after,
.description-body::after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width: 768px) {
  .article-body .image.image-style-align-left,
  .article-body .image.image-style-align-right,
  .article-body .image.image-style-side,
  .description-body .image.image-style-align-left,
  .description-body .image.image-style-align-right,
  .description-body .image.image-style-side {
    float: none;
    margin: 1em auto;
  }
  .article-body figure.image.image_resized,
  .description-body figure.image.image_resized,
  .module-text-content figure.image.image_resized,
  .job-rich-content figure.image.image_resized {
    width: 100% !important;
    max-width: 100% !important;
  }
  .article-top-video {
    width: calc(100% - 16px);
    max-width: 100%;
    margin: 0 auto 28px;
    border-radius: var(--radius-lg);
  }
  .article-top-video .rich-media-embed iframe {
    border-radius: var(--radius-lg);
  }
}
.meta-divider { color: var(--color-text-muted); }
.article-author { font-weight: 600; color: var(--color-text); }
.ai-summary,
.page-summary {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 16px 0 24px;
  border: 1px solid #eef2f7;
}
.ai-summary-title,
.page-summary-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.faq-section { margin: 28px 0 10px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.faq-q { font-weight: 700; margin-bottom: 6px; }
.faq-a { color: var(--color-text); }

/* ---- Share Buttons ---- */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  margin-top: 36px;
}
.share-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform var(--transition), opacity var(--transition);
}
.share-btn:hover { transform: translateY(-2px); opacity: 1; }
.share-x   { background: #0f172a; color: #fff; }
.share-fb  { background: #1877f2; color: #fff; }
.share-threads { background: #101828; color: #fff; }
.share-line { background: #06c755; color: #fff; }

/* ---- Product Detail ---- */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; }
@media (max-width: 768px) { .product-detail-layout { grid-template-columns: 1fr; } }
.gallery-main {
  background: transparent;
}
.gallery-main img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  display: block;
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.thumb.active { border-color: var(--color-accent); }
.product-price-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-accent-soft);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.price-banner-category {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-hover);
  background: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}
.price-banner-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-cta);
}
.price-banner-price small { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 600; margin-left: 4px; }
.product-detail-name { font-size: 1.65rem; font-weight: 700; margin: 14px 0; line-height: 1.35; }
.product-detail-price { font-size: 1.9rem; font-weight: 800; color: var(--color-cta); margin-bottom: 18px; }
.stock-info { color: var(--color-success); font-size: 0.9rem; margin-bottom: 18px; }
.soldout-msg { color: var(--color-danger); font-weight: 600; }
.quantity-selector { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.quantity-selector label { font-weight: 600; }
.quantity-selector input {
  width: 64px;
  text-align: center;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
}
.quantity-selector button {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background var(--transition);
}
.btn-add-cart {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-hover) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow var(--transition);
}
.btn-add-cart:hover { box-shadow: var(--shadow-md); }
.btn-buy-now {
  padding: 20px 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-hover) 100%);
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.18);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.btn-buy-now:hover {
  box-shadow: 0 18px 34px rgba(236, 72, 153, 0.24);
  transform: translateY(-1px);
}

.asset-document-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.asset-document-actions > a,
.asset-document-actions > span {
  min-height: 50px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asset-document-disabled {
  border: 1px solid #d6d9de;
  border-radius: 6px;
  background: #eceef1;
  color: #9298a2;
  cursor: not-allowed;
  user-select: none;
}

@media (max-width: 640px) {
  .asset-document-actions {
    grid-template-columns: 1fr;
  }
}
.digital-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  background: #fff1f7;
  color: #be185d;
  font-weight: 800;
  font-size: 1.35rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.digital-download-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: rgba(239, 68, 68, 0.2);
  color: #fff;
}
.digital-download-btn:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.15);
}
.digital-external-btn {
  background: #fff1f7;
  border-color: rgba(236, 72, 153, 0.18);
  color: #be185d;
  margin-top: 12px;
}
.digital-external-btn:hover {
  background: #ffe4ef;
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.10);
}
.digital-link-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.digital-download-note {
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #69707a;
}
.digital-checkout-note {
  padding: 14px 16px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-md);
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.92rem;
}
.digital-download-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: var(--radius-lg);
  background: #f8fffd;
  text-align: left;
}
.digital-download-panel h2,
.digital-download-panel h3 {
  margin-bottom: 6px;
}
.digital-download-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.digital-download-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md);
  background: #fff;
}
.digital-download-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text);
}
.digital-download-meta span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.product-description { margin-bottom: 48px; }
.product-description h2, .related-products h2.section-title { font-size: 1.4rem; margin-bottom: 22px; }

/* ---- Cart ---- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.cart-table th, .cart-table td { padding: 14px 18px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.cart-table tfoot th { font-size: 1.1rem; }
.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { border-radius: var(--radius-sm); }
.cart-qty-control { display: inline-flex; align-items: center; gap: 6px; }
.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 3px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.cart-qty-input {
  width: 64px;
  height: 30px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  text-align: center;
  padding: 0 6px;
}
.cart-actions { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.btn-remove {
  background: none;
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.btn-remove:hover { background: #fef2f2; }
.empty-cart p { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 24px; }

/* ---- Checkout ---- */
.checkout-form { display: block; }
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
@media (max-width: 768px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-main h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.checkout-address-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.checkout-address-detail { margin-top: 12px; }
.checkout-address-row input,
.checkout-address-row select { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: var(--radius-sm); }
.checkout-address-detail input { width: 100%; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: var(--radius-sm); }
.checkout-side { display: flex; flex-direction: column; gap: 16px; }
.checkout-box {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
}
.checkout-box h3 { font-size: 0.95rem; font-weight: 700; margin: 0 0 12px 0; }
.checkout-options-compact { display: flex; flex-direction: column; gap: 8px; }
.checkout-options-compact .checkout-option { padding: 10px 12px; }
.checkout-option-paypay { align-items: center; }
.checkout-option-paypay .option-paypay-img { margin-left: auto; flex-shrink: 0; }
.checkout-option-paypay .option-paypay-img img { display: block; height: 28px; width: auto; object-fit: contain; }
.order-summary {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  border: 1px solid #e5e7eb;
}
.order-summary h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.summary-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; }
.summary-total { display: flex; justify-content: space-between; padding: 12px 0; font-size: 1.05rem; font-weight: 700; }
.checkout-payment-box { margin-bottom: 0; }
.btn-checkout-submit { margin-top: 4px; }
.checkout-options { display: flex; flex-direction: column; gap: 10px; }
.checkout-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
}
.checkout-option input { margin-top: 3px; }
.checkout-option .option-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.checkout-option .option-title { font-weight: 600; }
.checkout-option .option-desc { font-size: 0.85rem; color: var(--color-text-muted); }
.checkout-option .option-price { margin-left: auto; font-weight: 600; flex-shrink: 0; }

/* ---- Forms ---- */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: var(--color-text); }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition);
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.textarea-compact { min-height: 72px; }
.required { color: var(--color-danger); }
.form-select-custom {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.text-muted { color: var(--color-text-muted); }
.status-pending { color: #b45309; }
.status-paid { color: #059669; }
.status-shipped { color: #2563eb; }
.status-completed { color: #16a34a; }
.status-cancelled { color: #6b7280; }
.contact-form-wrap { max-width: 640px; margin: 0 auto; padding: 0 12px; }
.contact-inline-options {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.contact-inline-option {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  font-size: 0.95rem;
  color: var(--color-text);
  white-space: nowrap;
}
.contact-inline-option input[type="radio"],
.contact-inline-option input[type="checkbox"] {
  margin: 0;
}
@media (max-width: 768px) {
  .contact-form-wrap { padding: 0 16px; }
}

/* ---- Job Apply ---- */
.job-apply-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .job-apply-layout { grid-template-columns: 1fr; }
  .job-apply-side {
    position: static;
    top: auto;
  }
}
.job-apply-side {
  background: var(--color-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: static;
  top: auto;
}
@media (min-width: 901px) {
  .job-apply-side {
    position: sticky;
    top: 92px;
  }
}
.job-apply-side-inner { padding: 24px; }
.job-apply-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.job-apply-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.job-apply-card {
  background: var(--color-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .job-apply-card { padding: 22px 20px; }
}

/* ---- Jobs ---- */
.jobs-list { display: flex; flex-direction: column; gap: 28px; }
.job-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.job-card:hover { box-shadow: var(--shadow-md); }
.job-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.job-tag { background: var(--color-accent-soft); color: var(--color-accent); padding: 6px 16px; border-radius: var(--radius-lg); font-size: 0.85rem; font-weight: 500; }
.job-type { background: #fff7ed; color: var(--color-warm); }
.job-body, .job-requirements { margin-bottom: 22px; }
.job-body h3, .job-requirements h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--color-text-muted); }
.job-rich-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.job-rich-content ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.job-rich-content ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.job-rich-content li { margin: 0.25em 0; }
.job-rich-content blockquote {
  border-left: 4px solid var(--color-accent);
  background: #f8fafc;
  padding: 0.8em 1em;
  margin: 1.1em 0;
}
.job-rich-content table { width: 100%; border-collapse: collapse; margin: 1.1em 0; }
.job-rich-content table th,
.job-rich-content table td { border: 1px solid #e5e7eb; padding: 8px 10px; vertical-align: top; }
.job-rich-content table th { background: #f8fafc; font-weight: 700; }
.job-rich-content figure.media { margin: 1.25em auto; }
.job-rich-content .image.image-style-align-left,
.job-rich-content .image.image-style-side { float: left; margin: 0.4em 1.2em 0.8em 0; }
.job-rich-content .image.image-style-align-right { float: right; margin: 0.4em 0 0.8em 1.2em; }
.job-rich-content .image.image-style-align-center { margin-left: auto; margin-right: auto; }
.job-rich-content::after { content: ""; display: block; clear: both; }
.job-apply { text-align: right; }
@media (max-width: 768px) {
  .job-rich-content .image.image-style-align-left,
  .job-rich-content .image.image-style-align-right,
  .job-rich-content .image.image-style-side { float: none; margin: 1em auto; }
}

/* ---- AI Quote ---- */
.quote-widget {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.quote-widget-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.quote-result {
  margin-top: 16px;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}
.quote-progress {
  margin-top: 14px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
}
.quote-progress-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.quote-progress-bar {
  height: 8px;
  width: 100%;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.quote-progress-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #5f6cf2, #7f56d9);
  animation: quote-loading 1s ease-in-out infinite;
  transform: translateX(-100%);
}
@keyframes quote-loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}
.quote-range {
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.quote-summary {
  color: var(--color-text);
  margin-bottom: 8px;
}
.quote-breakdown,
.quote-assumptions {
  margin: 8px 0;
  padding-left: 18px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}
.btn-outline {
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.quote-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.quote-contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.quote-contact-dialog {
  position: relative;
  width: min(92vw, 520px);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.quote-close-modal {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* ---- Login Box ---- */
.login-box {
  max-width: 420px;
  margin: 0 auto;
  padding: 48px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid #e5e7eb;
}

/* ---- Footer ---- */
.contact-cta-wrap { margin-top: 56px; }
.contact-cta-main {
  background: transparent;
  color: var(--color-text);
  padding: 56px 0;
  text-align: center;
  border-top: none;
  border-bottom: none;
}
.contact-cta-main h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin: 0 0 14px; }
.contact-cta-main p { color: var(--color-text-muted); margin: 0 0 28px; font-size: 1.05rem; }
.contact-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.contact-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 56px;
  border-radius: 999px;
  padding: 0 28px;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.contact-cta-btn.line { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.contact-cta-btn.web { background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%); }
.contact-cta-btn.tel { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); }
@media (max-width: 768px) {
  .contact-cta-main { padding: 40px 0; }
  .contact-cta-main h2 { font-size: 1.6rem; }
  .contact-cta-main p { font-size: .96rem; }
  .contact-cta-btn { width: 100%; max-width: 420px; min-width: 0; }
}

.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
  color: #94a3b8;
  padding: 56px 0 28px;
  margin-top: 88px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.footer-logo a { font-size: 1.35rem; font-weight: 700; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; align-items: center; }
.footer-nav a { font-size: 0.9rem; color: #94a3b8; }
.footer-nav a:hover { color: #fff; opacity: 1; }
.footer-store-btn {
  display: inline-block;
  padding: 0;
  margin-left: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8;
  background: none;
  border: none;
  border-radius: 0;
  transition: color var(--transition);
}
.footer-store-btn:hover { color: #fff; opacity: 1; }
.footer-sns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.sns-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}
.sns-icon:hover { background: rgba(255,255,255,.22); transform: scale(1.08); opacity: 1; }
.sns-threads { font-style: italic; }
.footer-copy { font-size: 0.8rem; color: #64748b; }
.ad-footer { text-align: center; margin-bottom: 28px; }
.ad-block { margin: 20px 0; text-align: center; }
.ad-image { max-width: 100%; margin: 0 auto; border-radius: var(--radius-sm); }

/* ---- Alerts ---- */
.alert { padding: 18px 22px; border-radius: var(--radius-md); margin-bottom: 24px; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ---- Order Complete ---- */
.order-complete { padding: 72px 24px; text-align: center; }
.check-icon { font-size: 4.5rem; color: var(--color-success); margin-bottom: 24px; }

/* ---- Toast Notification ---- */
.toast-msg {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1e1b4b;
  color: #fff;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-size: 0.9rem;
  transform: translateY(24px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast-msg.show { transform: translateY(0); opacity: 1; }

/* ---- Mobile Nav ---- */
@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .section-title { font-size: 1.5rem; }
}

/* ---- Related Section ---- */
.related-news, .related-products { margin-top: 48px; padding-top: 48px; border-top: 1px solid #e5e7eb; }
.case-related-full { grid-column: 1 / -1; }
.case-related-full .news-grid { width: 100%; }
.related-case-grid .news-card:nth-child(n+3) { display: none; }
@media (min-width: 769px) {
  .related-case-grid .news-card:nth-child(n+3) { display: block; }
}
.empty-message { color: var(--color-text-muted); text-align: center; padding: 48px 0; font-size: 1.05rem; }

/* ---- My Page ---- */
.mypage-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .mypage-layout { grid-template-columns: 1fr; gap: 20px; }
  .mypage-sidebar {
    position: static;
    top: auto;
  }
  .mypage-user-card {
    padding: 20px 18px;
  }
  .mypage-avatar {
    width: 54px;
    height: 54px;
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .mypage-username {
    font-size: 1rem;
  }
  .mypage-nav-menu a,
  .mypage-nav-menu .mypage-logout-btn {
    padding: 12px 18px;
    gap: 10px;
  }
  .mypage-section-title,
  .mypage-section-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .profile-form-card { padding: 20px 18px 24px; }
}
.mypage-sidebar {
  position: sticky;
  top: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
@media (max-width: 768px) {
  .mypage-sidebar {
    position: static;
    top: auto;
    width: 100%;
    z-index: auto;
  }
}
.mypage-user-card {
  padding: 28px 24px;
  background: linear-gradient(160deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
}
.mypage-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 100%);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .35);
}
.mypage-username {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.mypage-email {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.mypage-nav-menu {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.mypage-nav-menu a,
.mypage-nav-menu .mypage-logout-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.mypage-nav-menu a:hover,
.mypage-nav-menu .mypage-logout-btn:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.mypage-nav-menu a.active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
  border-left: 3px solid var(--color-accent);
}
.mypage-nav-menu .nav-icon {
  font-size: 1.1rem;
  opacity: 0.9;
}
.mypage-logout-form { display: contents; }
.mypage-logout-btn {
  margin-top: 8px;
  padding-top: 16px !important;
  border-top: 1px solid #e5e7eb;
  color: var(--color-text-muted) !important;
}
.mypage-logout-btn:hover { color: var(--color-danger) !important; background: #fef2f2 !important; }
.mypage-content {
  min-width: 0;
}
.mypage-section {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}
.mypage-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding: 20px 24px;
  margin: 0;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  color: var(--color-text);
}
.profile-form-card {
  padding: 28px 40px 32px;
  max-width: 560px;
}
@media (max-width: 768px) {
  .profile-form-card { padding: 24px 24px 28px; }
}
.mypage-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 24px;
  margin: 0;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.mypage-section-header .mypage-section-title.mypage-section-title-inline,
.mypage-section-header .mypage-section-title { padding: 0; margin: 0; background: transparent; border: none; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-text:hover { text-decoration: underline; }
.btn-text-danger { color: #ef4444; }
.mypage-section .empty-message {
  padding: 48px 24px;
}
.mypage-section .empty-message .btn-primary {
  margin-top: 16px;
}
.order-card {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  transition: background var(--transition);
}
.order-card:last-child { border-bottom: none; }
.order-card:hover { background: #fafbfc; }
.order-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.order-no {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px 0;
}
.order-no a { color: var(--color-accent); }
.order-no a:hover { text-decoration: underline; }
.order-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}
.badge-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.badge-status.status-pending   { background: #fef3c7; color: #b45309; }
.badge-status.status-paid     { background: #d1fae5; color: #059669; }
.badge-status.status-shipped  { background: #dbeafe; color: #2563eb; }
.badge-status.status-completed { background: #dcfce7; color: #16a34a; }
.badge-status.status-cancelled { background: #f1f5f9; color: #64748b; }
.order-amount {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.order-detail-meta { border-bottom: 1px solid #e5e7eb; }
.order-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.92rem;
}
.order-detail-row:first-of-type { border-top: none; }
.order-detail-list .order-card { display: flex; justify-content: space-between; align-items: center; }
.order-detail-title {
  background: #f8fafc;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
}
.order-detail-item strong { font-size: 0.95rem; }
.order-detail-total strong { font-size: 1.05rem; }
.order-detail-note { align-items: flex-start; }
.order-detail-note span { color: var(--color-text); }

/* ---- MyPage Address Cards ---- */
.address-card {
  background: var(--color-surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.address-card + .address-card { margin-top: 14px; }
.address-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.address-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.address-label-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.address-label-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 120px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.75rem;
  font-weight: 600;
}
.address-default-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 120px;
  background: #111827;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.address-name { font-size: 1.05rem; font-weight: 700; margin: 6px 0; }
.address-phone { color: var(--color-text-muted); margin: 0 0 6px 0; }
.address-body {
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 12px 0;
}
.address-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.address-row .address-actions { margin-top: 8px; justify-content: flex-end; }
.address-row-header { align-items: flex-start; }
.btn-address-action {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--color-text);
  padding: 6px 12px;
  border-radius: 120px;
  font-size: 0.8rem;
  transition: background var(--transition), border-color var(--transition);
}
.btn-address-action:hover { background: #f8fafc; border-color: #d1d5db; }
.btn-address-default { border-color: #111827; }
.btn-address-delete { border-color: #ef4444; color: #ef4444; }

/* 郵便番号フォーム（〒 + 入力） */
.form-row-zip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: end;
}
@media (max-width: 480px) { .form-row-zip { grid-template-columns: 1fr; } }
.zip-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.zip-input-wrap:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.zip-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #f8fafc;
  border-right: 1px solid #e5e7eb;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.zip-input-wrap .form-control {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding-left: 12px;
}
.zip-input-wrap .form-control:focus { outline: none; box-shadow: none; }
.address-postal {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.address-postal-num { font-weight: 600; color: var(--color-text); }

/* ---- Misc ---- */
.text-center { text-align: center; }
.mt-4 { margin-top: 28px; }
.py-5 { padding: 64px 0; }
.img-placeholder { width: 60px; height: 40px; background: #f1f5f9; border-radius: var(--radius-sm); }
.cursor-grab { cursor: grab; }
