@charset "UTF-8";
/* ============================================
   C.L.LINK - common.css
   鐃緒申鐃准￥申鐃緒申鐃緒申鐃縮ワ申鐃緒申鐃緒申鐃緒申
============================================ */

/* --- Variables --- */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f5f4f0;
  --gray-100: #f0efeb;
  --gray-200: #e0deda;
  --gray-400: #999590;
  --gray-600: #666360;
  --gray-800: #333130;
  --accent: #f5c518;
  --accent-dark: #b89412;
  --olive: #4a5a3a;
  --sand: #c4b99a;
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-heading: 'Oswald', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-width: 1200px;
  --header-h: 70px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-weight: 400; color: var(--gray-800); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; }
select { font-family: inherit; }
input { font-family: inherit; }

/* --- Announcement Bar --- */
.cl-announcement {
  background: #f5c518; color: var(--black);
  text-align: center; padding: 8px 16px;
  font-size: 12px; letter-spacing: 0.08em;
  font-weight: 400;
}
.cl-announcement span { color: #f30000; font-weight: 700; }

/* --- Header --- */
.cl-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.cl-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.cl-header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: var(--header-h);
}
.cl-logo {
  font-family: var(--font-display); font-size: 32px;
  letter-spacing: 0.06em; color: var(--black);
  display: flex; align-items: center; gap: 8px;
}
.cl-logo-img { height: 55px; width: auto; filter: brightness(0); }
.cl-logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* --- Navigation --- */
.cl-nav { display: flex; align-items: center; gap: 0; height: 100%; position: relative; }
.cl-nav-dropdown { position: relative; height: 100%; }
.cl-nav-trigger {
  display: flex; align-items: center; justify-content: center;
  padding: 0 40px; height: 100%;
  font-family: var(--font-heading); font-size: 16px;
  font-weight: 600; letter-spacing: 0.12em; line-height: 1;
  text-transform: uppercase; color: var(--gray-800);
  cursor: pointer; transition: color var(--transition);
  position: relative; background: none; border: none;
  text-decoration: none;
}
.cl-nav-text { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.cl-nav-row { display: flex; align-items: center; gap: 6px; }
.cl-nav-ico { font-size: 18px !important; color: var(--gray-400); transition: color var(--transition); }
.cl-nav-sublabel {
  display: block; font-family: var(--font-body); font-size: 9px;
  font-weight: 400; letter-spacing: 0.04em;
  color: var(--gray-400); text-transform: none;
  padding-left: 24px;
}
.cl-nav-dropdown:hover .cl-nav-trigger { color: var(--accent); }
.cl-nav-dropdown:hover .cl-nav-ico { color: var(--accent); }
.cl-nav-dropdown:hover .cl-nav-sublabel { color: var(--accent); }
.cl-nav-trigger::after {
  content: ''; position: absolute;
  bottom: 0; left: 20px; right: 20px; height: 2px;
  background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.cl-nav-dropdown:hover .cl-nav-trigger::after { transform: scaleX(1); }

/* Dropdown Base */
.cl-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--gray-200);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease; z-index: 1000;
}
.cl-nav-dropdown:hover > .cl-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; }

/* === PRODUCTS Mega Menu (Dark Sidebar + R3 Content) === */
.cl-nav-dropdown:first-child { position: static; }
.cl-mega-menu { left: 0; transform: none; width: min(840px, calc(100vw - 48px)); display: flex; max-height: 480px; overflow: hidden; }
.cl-mega-sidebar-wrap {
  width: 200px; flex-shrink: 0; position: relative;
  background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
}
.cl-mega-sidebar-wrap::after {
  content: '\e5cf'; font-family: 'Material Icons Outlined'; font-size: 16px;
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
  background: linear-gradient(180deg, transparent 0%, #2a2a2a 60%);
  color: rgba(255,255,255,0.4); pointer-events: none; z-index: 2;
  transition: opacity 0.25s ease;
}
.cl-mega-sidebar-wrap.at-end::after { opacity: 0; }
.cl-mega-sidebar {
  width: 100%; height: 100%;
  padding: 16px 0 40px; overflow-y: auto;
}
.cl-mega-sidebar::-webkit-scrollbar { width: 4px; }
.cl-mega-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.cl-mega-scat {
  font-family: var(--font-heading); font-size: 9px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); padding: 6px 18px; margin-top: 12px;
}
.cl-mega-scat:first-child { margin-top: 0; }
.cl-mega-sitem {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.55);
  padding: 9px 18px; cursor: pointer; transition: all 0.15s ease;
  border-left: 3px solid transparent;
}
.cl-mega-sitem .material-icons-outlined { font-size: 16px; }
.cl-mega-sitem:hover, .cl-mega-sitem.active {
  color: #fff; background: rgba(255,255,255,0.08);
  border-left-color: var(--accent);
}
.cl-mega-content {
  flex: 1; padding: 24px 28px; position: relative; overflow-y: auto;
}
.cl-mega-content::-webkit-scrollbar { width: 5px; }
.cl-mega-content::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }
.cl-mega-content::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}
.cl-mega-panel { display: none; }
.cl-mega-panel.active { display: block; }
.cl-mega-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--gray-200);
}
.cl-mega-title {
  font-family: var(--font-heading); font-size: 22px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--black);
}
.cl-mega-sub { font-size: 11px; color: var(--gray-400); }
.cl-mega-viewall {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--accent); white-space: nowrap;
  transition: gap 0.2s;
}
.cl-mega-viewall:hover { gap: 8px; }
.cl-mega-viewall .material-icons-outlined { font-size: 14px; }
.cl-mega-list { list-style: none; margin: 0; padding: 0; }
.cl-mega-list li { border-bottom: 1px solid var(--gray-100); }
.cl-mega-list li:last-child { border-bottom: none; }
.cl-mega-list a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #555; padding: 10px 4px;
  transition: all 0.15s ease;
}
.cl-mega-list a .material-icons-outlined { font-size: 15px; color: var(--gray-400); opacity: 0; transition: all 0.15s ease; }
.cl-mega-list a:hover { color: var(--accent); padding-left: 10px; background: #fff8f2; }
.cl-mega-list a:hover .material-icons-outlined { opacity: 1; color: var(--accent); }

/* === NEWS / SUPPORT / GUIDE Unified Dropdown === */
.cl-dd-unified { min-width: 280px; overflow: hidden; }
.cl-dd-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 14px 24px; display: flex; align-items: center; gap: 10px;
}
.cl-dd-header .material-icons-outlined { font-size: 18px; color: var(--accent); }
.cl-dd-header-title {
  font-family: var(--font-heading); font-size: 16px; font-weight: 600;
  letter-spacing: 0.1em; color: #fff;
}
.cl-dd-header-sub {
  font-family: var(--font-body); font-size: 10px; color: rgba(255,255,255,0.45);
  margin-left: auto;
}
.cl-dd-body { padding: 16px 24px; position: relative; }
.cl-dd-body::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}
.cl-dd-list { list-style: none; margin: 0; padding: 0; }
.cl-dd-list li { border-bottom: 1px solid var(--gray-100); }
.cl-dd-list li:last-child { border-bottom: none; }
.cl-dd-list a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #555; padding: 11px 4px;
  transition: all 0.15s ease;
}
.cl-dd-ico { font-size: 17px !important; color: var(--gray-400); transition: color 0.15s ease; }
.cl-dd-arrow { font-size: 15px !important; color: var(--gray-400); opacity: 0; margin-left: auto; transition: all 0.15s ease; }
.cl-dd-list a:hover { color: var(--accent); padding-left: 10px; background: #fff8f2; }
.cl-dd-list a:hover .cl-dd-ico { color: var(--accent); }
.cl-dd-list a:hover .cl-dd-arrow { opacity: 1; color: var(--accent); }

/* Header Actions */
.cl-header-actions { display: flex; align-items: center; gap: 16px; }
.cl-header-actions button, .cl-header-actions a { background: none; border: none; cursor: pointer; color: var(--gray-600); display: flex; align-items: center; transition: color var(--transition); font-size: 24px; }
.cl-header-actions button:hover, .cl-header-actions a:hover { color: var(--black); }
.cl-logged-in { color: var(--accent) !important; }
.cl-cart-btn { position: relative; }
.cl-cart-count { position: absolute; top: -4px; right: -6px; background: var(--accent); color: var(--white); font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); }
.cl-header-actions .cl-mobile-btn { display: none; background: none; border: none; cursor: pointer; color: var(--gray-800); font-size: 28px; padding: 4px; }

/* Search Overlay */
.cl-search-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 3000; align-items: flex-start; justify-content: center; padding-top: 120px; }
.cl-search-overlay.open { display: flex; }
.cl-search-inner { width: 100%; max-width: 600px; padding: 0 24px; }
.cl-search-box { display: flex; align-items: center; gap: 12px; background: var(--white); padding: 16px 20px; border: none; }
.cl-search-box .material-icons-outlined { color: var(--gray-400); font-size: 24px; }
.cl-search-input { flex: 1; border: none; outline: none; font-size: 16px; font-family: var(--font-body); color: var(--black); background: transparent; }
.cl-search-close-btn { background: none; border: none; cursor: pointer; color: var(--gray-400); display: flex; font-size: 24px; }
/* Search submit button */
.cl-search-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 28px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}
.cl-search-submit:hover { background: var(--accent-dark); }
.cl-search-submit .material-icons-outlined { font-size: 18px; }


/* Mobile Menu */
.cl-mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 2000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.cl-mobile-overlay.open { opacity: 1; pointer-events: auto; }
.cl-mobile-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 300px; background: var(--white); z-index: 2001; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); overflow-y: auto; padding: 0; }
.cl-mobile-panel.open { transform: translateX(0); }
.cl-mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 5px 20px; border-bottom: 1px solid var(--gray-200); }
.cl-mobile-header .cl-logo { font-size: 22px; }
.cl-mobile-header .cl-logo-img { height: 35px; }
.cl-mobile-close { background: none; border: none; cursor: pointer; color: var(--gray-600); font-size: 24px; display: flex; }
.cl-mobile-nav-group { padding: 12px 0; border-bottom: 0px solid var(--gray-100); }
.cl-mobile-nav-title { font-family: var(--font-heading); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: #f1f1f1; background: #1a1a1a; padding: 12px 20px; }
.cl-mobile-nav-group > a { display: block; font-size: 12px; color: var(--gray-600); padding: 6px 20px 6px 28px; border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
.cl-mobile-nav-group > a:last-child { border-bottom: none; }
.cl-mobile-nav-group > a:hover { background: var(--gray-100); color: var(--black); }
.cl-accordion { border-bottom: 1px solid var(--gray-100); }
.cl-accordion-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 6px 20px 6px 28px; background: none; border: none; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--gray-600); cursor: pointer; text-align: left; transition: background var(--transition), color var(--transition); }
.cl-accordion-btn:hover { background: var(--gray-100); }
.cl-acc-icon { font-size: 18px !important; color: var(--gray-400); transition: transform 0.3s ease, color 0.3s ease; flex-shrink: 0; }
.cl-accordion.open .cl-acc-icon { transform: rotate(180deg); color: var(--accent); }
.cl-accordion.open .cl-accordion-btn { color: #666360; font-weight: bold; }
.cl-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); background: var(--gray-100); }
.cl-accordion.open .cl-accordion-body { max-height: 600px; }
.cl-accordion-body a { display: block; font-size: 12.5px; font-weight: 400; color: var(--gray-600); padding: 6px 20px 6px 42px; border-bottom: 1px solid rgba(255,255,255,0.6); transition: color var(--transition), padding-left var(--transition); position: relative; }
.cl-accordion-body a::before { content: ''; position: absolute; left: 32px; top: 50%; width: 4px; height: 4px; background: var(--gray-400); border-radius: 50%; transform: translateY(-50%); }
.cl-accordion-body a:first-child { font-weight: bold; color: #666360; }
.cl-accordion-body a:first-child::before { background: var(--accent); }
.cl-accordion-body a:last-child { border-bottom: none; }
.cl-accordion-body a:hover { color: var(--black); padding-left: 48px; }
.cl-mobile-link-single { display: block; font-size: 12px; font-weight: 500; color: var(--gray-600); padding: 6px 20px 6px 28px; border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
.cl-mobile-link-single:hover { background: var(--gray-100); color: var(--accent); }

/* SP Account dropdown - hidden on PC, visible on SP */
.cl-account-sp { display: none; position: relative; }
.cl-account-sp-btn { background: none; border: none; cursor: pointer; color: var(--gray-600); display: flex; align-items: center; transition: color var(--transition); padding: 0; }
.cl-account-sp-btn:hover { color: var(--black); }
.cl-account-sp-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1100;
}
.cl-account-sp-menu.open { display: block; }
.cl-account-sp-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--gray-800);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.2s ease;
}
.cl-account-sp-menu a:last-child { border-bottom: none; }
.cl-account-sp-menu a:hover { background: var(--gray-100); }
.cl-account-sp-menu a .material-icons-outlined { font-size: 18px; color: var(--gray-400); }

/* Mobile nav title icons */
.cl-mobile-nav-ico { font-size: 16px; margin-right: 6px; vertical-align: -3px; color: #f5c518; }


/* --- Section Common --- */
.cl-section { padding: 72px 24px; }
.cl-section-inner { max-width: var(--max-width); margin: 0 auto; }
.cl-section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 16px; }
.cl-section-label { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 0px; }
.cl-section-title { font-family: var(--font-display); font-size: clamp(32px, 4vw, 44px); color: var(--black); letter-spacing: 0.04em; line-height: 1; }
.cl-section-title-jp { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--gray-400); margin-top: 6px; letter-spacing: 0.04em; }
.cl-view-all { font-family: var(--font-heading); font-size: 12px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-600); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-bottom: 1px solid var(--gray-200); padding-bottom: 4px; transition: all var(--transition); }
.cl-view-all:hover { color: var(--accent); border-color: var(--accent); }

/* --- Product Card --- */
.cl-product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cl-product-grid--cat { grid-template-columns: repeat(4, 1fr); }
.cl-product-grid--sm { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cl-product-card {
  position: relative; cursor: pointer; display: flex;
  flex-direction: column;
}
.cl-product-badge { position: absolute; top: 10px; left: 10px; z-index: 5; padding: 3px 8px; font-family: var(--font-heading); font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.cl-badge-new { background: #f5c518; color: #0a0a0a; }
.cl-badge-sale { background: var(--black); color: var(--white); }
.cl-badge-soldout { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); color: var(--white); font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.15em; z-index: 4; }
.cl-product-card-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--gray-100); margin-bottom: 12px; }
.cl-product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cl-product-card:hover .cl-product-card-img img { transform: scale(1.05); }
.cl-product-card-title { font-size: 12px; font-weight: 500; color: var(--gray-800); line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cl-product-card-price { font-family: var(--font-heading); font-size: 15px; font-weight: 600; color: var(--black); }
.cl-product-card-price .tax { font-size: 9px; font-weight: 400; color: var(--gray-400); margin-left: 2px; }
.cl-sale-price { color: var(--accent) !important; }

/* --- News --- */
.cl-news-list { border-top: 1px solid var(--gray-200); }
.cl-news-item { display: flex; align-items: flex-start; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); transition: padding-left var(--transition); }
.cl-news-item:hover { padding-left: 8px; }
.cl-news-date { font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.08em; color: var(--gray-400); flex-shrink: 0; padding-top: 2px; }
.cl-news-tag { flex-shrink: 0; padding: 2px 10px; font-size: 10px; font-weight: 500; letter-spacing: 0.08em; border: 1px solid var(--gray-200); color: var(--gray-600); }
.cl-news-tag.tag-new { border-color: var(--accent); color: var(--accent); }
.cl-news-text { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* --- Footer --- */
.cl-footer { background: var(--black); color: var(--white); padding: 64px 24px 32px; }
.cl-footer-inner { max-width: var(--max-width); margin: 0 auto; }
.cl-footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.cl-footer-brand { font-family: var(--font-display); font-size: 32px; letter-spacing: 0.06em; margin-bottom: 16px; }
.cl-footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.cl-footer-desc { font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.8; margin-bottom: 20px; }
.cl-footer-social { display: flex; gap: 12px; }
.cl-footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 18px; color: rgba(255,255,255,0.5); transition: all var(--transition); }
.cl-footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.cl-footer-heading { font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; color: rgba(255,255,255,0.8); }
.cl-footer-links a { display: block; font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.45); padding: 5px 0; transition: color var(--transition); }
.cl-footer-links a:hover { color: var(--white); }
.cl-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-size: 11px; color: rgba(255,255,255,0.3); }

/* --- Back to Top --- */
.cl-back-top { position: fixed; bottom: 90px; right: 20px; width: 44px; height: 44px; background: var(--black); color: var(--white); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(12px); transition: all var(--transition); z-index: 900; font-size: 20px; }
.cl-back-top.visible { opacity: 1; transform: translateY(0); }
.cl-back-top:hover { background: var(--accent); }

/* --- Animations --- */
.cl-fade { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.cl-fade.in-view { opacity: 1; transform: translateY(0); }

/* --- Page Layout --- */
.cl-wrap { padding: 40px 24px 72px; }
.cl-content-narrow { max-width: 800px; }
.cl-body-wrap { display: flex; gap: 40px; }
.cl-side-contents { width: 240px; flex-shrink: 0; }
.cl-main-contents.cl-two-col { flex: 1; min-width: 0; }
.cl-breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--gray-400); margin-bottom: 5px; }
.cl-breadcrumb a { color: var(--gray-400); transition: color var(--transition); }
.cl-breadcrumb a:hover { color: var(--accent); }
.cl-breadcrumb span:last-child { color: var(--gray-800); }
.cl-page-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); color: var(--black); letter-spacing: 0.04em; line-height: 1; margin-bottom: 4px; }
.cl-page-subtitle { font-size: 13px; color: var(--gray-400); margin-bottom: 32px; }
.hide { display: none !important; }

/* --- Sidebar --- */
.cl-sidebar-heading { font-family: var(--font-heading); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--black); padding-bottom: 12px; border-bottom: 2px solid var(--black); margin-bottom: 12px; }
.cl-sidebar-list { margin-bottom: 24px; }
.cl-sidebar-item { border-bottom: 1px solid var(--gray-100); }
.cl-sidebar-link { display: block; padding: 10px 0; font-size: 13px; color: var(--gray-600); transition: color var(--transition), padding-left var(--transition); }
.cl-sidebar-link:hover { color: var(--accent); padding-left: 4px; }
.cl-sidebar-link.is-current { color: var(--accent); font-weight: 600; }
.cl-sidebar-count { font-size: 11px; color: var(--gray-400); }
.cl-sidebar-child { padding-left: 12px; border-left: 2px solid var(--gray-200); margin-bottom: 4px; }
.cl-sidebar-child a { display: block; padding: 6px 0 6px 10px; font-size: 12px; color: var(--gray-400); transition: color var(--transition); }
.cl-sidebar-child a:hover { color: var(--accent); }
.cl-sidebar-child a.is-current { color: var(--accent); font-weight: 500; }

/* --- Pager --- */
.cl-pager { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 40px; }
.cl-pager-num { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 13px; color: var(--gray-600); transition: all var(--transition); }
.cl-pager-num:hover { color: var(--accent); }
.cl-pager-num.is-current { background: var(--black); color: var(--white); }
.cl-pager-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--gray-400); transition: color var(--transition); }
.cl-pager-btn:hover { color: var(--accent); }

/* --- Content Body (Guide, Policy, Contract etc) --- */
.cl-content-body { font-size: 14px; line-height: 2; color: var(--gray-800); }
.cl-content-body h2, .cl-content-body h3, .cl-content-body h4 { font-weight: 700; color: var(--black); margin: 32px 0 12px; }
.cl-content-body h2 { font-size: 20px; padding-bottom: 8px; border-bottom: 2px solid var(--black); }
.cl-content-body h3 { font-size: 17px; padding-left: 12px; border-left: 3px solid var(--accent); }
.cl-content-body h4 { font-size: 15px; }
.cl-content-body p { margin-bottom: 16px; }
.cl-content-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cl-content-body table th, .cl-content-body table td { padding: 12px 16px; border: 1px solid var(--gray-200); font-size: 13px; text-align: left; }
.cl-content-body table th { background: var(--off-white); font-weight: 600; white-space: nowrap; }
.cl-content-body ul, .cl-content-body ol { margin: 12px 0 12px 24px; list-style: disc; }
.cl-content-body ol { list-style: decimal; }
.cl-content-body a { color: var(--accent); border-bottom: 1px solid transparent; }
.cl-content-body a:hover { border-bottom-color: var(--accent); }

/* --- List Nav / Sort --- */
.cl-list-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-200); }
.cl-list-count { font-size: 12px; color: var(--gray-400); }
.cl-sort-select { padding: 6px 12px; border: 1px solid var(--gray-200); font-size: 12px; color: var(--gray-600); background: var(--white); cursor: pointer; }

/* --- News Detail --- */
.cl-news-detail { margin-top: 8px; }
.cl-news-detail .cl-news-date { display: block; margin-bottom: 12px; }
.cl-news-detail-title { font-size: 22px; font-weight: 700; color: var(--black); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.cl-news-detail-body { font-size: 14px; line-height: 2; color: var(--gray-800); }
.cl-news-detail-body img { max-width: 100%; height: auto; margin: 16px 0; }

/* --- Review Common --- */

/* --- Buttons --- */
.cl-btn-primary { display: block; text-align: center; padding: 16px; background: var(--accent); color: var(--white); font-family: var(--font-heading); font-size: 16px; font-weight: 600; letter-spacing: 0.1em; transition: background var(--transition); }
.cl-btn-primary:hover { background: var(--accent-dark); }
.cl-btn-secondary { display: block; text-align: center; padding: 14px; border: 1px solid var(--gray-200); font-size: 13px; color: var(--gray-600); transition: all var(--transition); }
.cl-btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   Responsive (Common)
============================================ */
@media (max-width: 1024px) {
  .cl-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .cl-back-top { bottom: 72px; right: 16px; }
  .cl-nav { display: none; }
  .cl-header-actions .cl-mobile-btn { display: flex; }
  .cl-account-sp { display: block; }
  .cl-mobile-overlay { display: block; }
  .cl-logo-img { height: 40px; }
  .cl-product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cl-product-grid--cat { grid-template-columns: repeat(2, 1fr); }
  .cl-section { padding: 48px 16px; }
  .cl-section-header { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; }
  .cl-section-header .cl-view-all { flex-shrink: 0; }
  .cl-footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cl-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .cl-news-item { flex-direction: column; gap: 8px; }
  .cl-body-wrap { flex-direction: column; }
  .cl-side-contents { width: 100%; }
  .cl-wrap { padding: 24px 16px 48px; }

  .cl-review-product-info { flex-direction: column; gap: 16px; align-items: center; }
  .cl-review-product-img { width: 100px; }
  .cl-review-meta { flex-wrap: wrap; gap: 8px; }

  /* SP-friendly content body tables (company / contract / policy etc.) */
  .cl-content-body table, .cl-content-body tbody, .cl-content-body tr { display: block; width: 100%; }
  .cl-content-body table th, .cl-content-body table td { display: block; width: 100%; box-sizing: border-box; padding: 8px 12px; font-size: 12px; white-space: normal; }
  .cl-content-body table th { border-bottom: none; padding-bottom: 4px; }
  .cl-content-body table td { border-top: none; padding-top: 4px; padding-bottom: 12px; }

}
@media (max-width: 480px) {
  .cl-product-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-product-grid--cat { grid-template-columns: repeat(2, 1fr); }
}

/* --- Product Card - Links & Category --- */
.cl-product-card-link { display: block; text-decoration: none; color: inherit; }
.cl-product-card-cat {
  display: block; text-decoration: none;
  font-family: var(--font-heading); font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-400); margin-bottom: 4px; text-align: left;
  transition: color 0.25s ease;
}
.cl-product-card-cat:hover { color: var(--accent); }
.cl-product-card-hr {
  border: none; border-top: 1px solid var(--gray-200);
  margin: 8px 0; margin-top: auto;
}
a.cl-product-card-title {
  text-align: left; display: block; text-decoration: none;
  color: var(--gray-800); transition: color 0.25s ease;
  font-size: 12px; font-weight: 500; line-height: 1.5; margin-bottom: 6px;
}
a.cl-product-card-title:hover { color: var(--accent); }
.cl-product-card-price { text-align: left; }

/* --- Ranking: PC 5cols 10, SP 4cols 8 --- */
.cl-ranking-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 768px) {
  .cl-ranking-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .cl-ranking-card:nth-child(n+9) { display: none; }
}
@media (max-width: 480px) {
  .cl-ranking-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-ranking-card:nth-child(n+9) { display: none; }
}

/* --- Related Products: PC 5cols 10, SP 3cols 6 --- */
.cl-product-grid--related { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 768px) {
  .cl-product-grid--related { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cl-product-grid--related .cl-product-card:nth-child(n+7) { display: none; }
}
@media (max-width: 480px) {
  .cl-product-grid--related { grid-template-columns: repeat(2, 1fr); }
  .cl-product-grid--related .cl-product-card:nth-child(n+7) { display: none; }
}



/* ============================================================
   REVIEW SYSTEM - Complete styles for all pages
   ============================================================ */

/* Star rating containers
   MakeShop star_html outputs <span class="reviewRateStar starOn/starOff">
   Parent wrapper has class="material-icons" which provides the font.
   The ::before pseudo-elements render "star"/"star_border" as icon glyphs. */
.cl-review-stars,
.cl-review-stars-sm,
.cl-review-stars-inline {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1;
}
/* Override material-icons default font-size for our star wrappers */
.cl-review-stars.material-icons { font-size: inherit; display: inline-flex; }
.cl-review-stars-sm.material-icons { font-size: inherit; display: inline-flex; }
.cl-review-stars-inline.material-icons { font-size: inherit; display: inline-flex; }

/* MakeShop native star display classes */
.reviewRate {
  display: inline-flex;
  align-items: center;
}
.reviewRateStar {
  position: relative;
  width: 18px;
  font-size: 18px;
  text-indent: 30px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  display: inline-block;
}
.reviewRateStar::before {
  position: absolute;
  top: 0;
  left: 0;
  text-indent: 0;
}
.reviewRateStar.starOn {
  color: #f3d631;
}
.reviewRateStar.starOn::before {
  content: "star";
}
.reviewRateStar.starOff {
  color: #d2d2d2;
}
.reviewRateStar.starOff::before {
  content: "star_border";
}

/* Smaller stars for review list items */
.cl-review-stars-sm .reviewRateStar {
  width: 14px;
  font-size: 14px;
}
.cl-review-stars-inline .reviewRateStar {
  width: 14px;
  font-size: 14px;
}

/* Star select (clickable stars on review post form) */
.reviewRateStarSelect {
  position: relative;
  width: 24px;
  font-size: 24px;
  text-indent: 30px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1;
  display: inline-block;
  cursor: pointer;
}
.reviewRateStarSelect::before {
  position: absolute;
  top: 0;
  left: 0;
  text-indent: 0;
}
.reviewRateStarSelect.starOn { color: #f3d631; }
.reviewRateStarSelect.starOn::before { content: "star"; }
.reviewRateStarSelect.starOff { color: #d2d2d2; }
.reviewRateStarSelect.starOff::before { content: "star_border"; }

/* Review summary bar (stars + score + count) */
.cl-review-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}
.cl-review-avg {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
}
.cl-review-count {
  color: var(--gray-400);
  font-size: 13px;
}

/* Inline review (product page top area) */
.cl-item-review-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.cl-review-avg-inline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}
.cl-review-count-inline {
  color: var(--gray-400);
  font-size: 13px;
}
.cl-review-count-inline:hover { color: var(--accent); }

/* Review item header (stars + reviewer name) */
.cl-review-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

/* Review list */
.cl-review-list,
.cl-review-list-full {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.cl-review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cl-review-item:last-child { border-bottom: none; }

/* Review meta (reviewer, date) */
.cl-review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 10px;
}
.cl-review-name {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}
.cl-review-date {
  font-size: 12px;
  color: var(--gray-400);
}

/* Review title and content */
.cl-review-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.cl-review-content {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Post review button */
.cl-review-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 24px;
  border: 1px solid var(--black);
  font-size: 13px;
  color: var(--gray-800);
  background: var(--white);
  text-decoration: none;
  transition: all 0.25s ease;
}
.cl-review-post-btn:hover {
  background: var(--black);
  color: #ffffff;
}

/* Product info card (review-list / review-post pages) */
.cl-review-product-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}
.cl-review-product-img { width: 120px; flex-shrink: 0; }
.cl-review-product-img a { display: block; }
.cl-review-product-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--gray-100);
}
.cl-review-product-detail { flex: 1; min-width: 0; }
.cl-review-product-detail h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
}
.cl-review-product-detail h3 a { transition: color 0.25s ease; }
.cl-review-product-detail h3 a:hover { color: var(--accent); }

/* Review form */
.cl-review-form { margin-top: 24px; }

/* Empty state */
.cl-empty {
  text-align: center;
  padding: 60px 20px;
  font-size: 14px;
  color: var(--gray-400);
}

/* === End Review System === */

/* === Chat Widget === */
/* --- Trigger (PC: M1 / SP: M4) --- */
.cw-trigger {
  position: fixed; right: 16px; bottom: 16px; z-index: 950;
  display: flex; align-items: center;
  background: #0a0a0a; color: #fff;
  border: 1px solid #333;
  border-left: 3px solid var(--accent);
  border-radius: 28px;
  padding: 5px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}
.cw-trigger:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}
.cw-trigger.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.cw-trigger-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.cw-trigger-icon .material-icons { font-size: 22px; color: var(--black); }
.cw-trigger-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: #22c55e;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #0a0a0a;
  animation: cw-badge-bounce 2s ease-in-out infinite;
}
@keyframes cw-badge-bounce {
  0%,100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
}
.cw-trigger-body {
  padding: 0 10px 0 12px;
  flex: 1;
  min-width: 0;
}
.cw-trigger-msg {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cw-trigger-sub {
  font-size: 10px;
  color: var(--gray-400);
  white-space: nowrap;
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.cw-trigger-dot {
  width: 5px; height: 5px;
  background: #22c55e;
  border-radius: 50%;
  animation: cw-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes cw-dot-pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.cw-trigger-arrow {
  width: 30px; height: 30px;
  background: #222;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-right: 4px;
  transition: background 0.2s;
}
.cw-trigger:hover .cw-trigger-arrow { background: var(--accent); }
.cw-trigger-arrow .material-icons-outlined { font-size: 16px; color: #a8a29e; transition: color 0.2s; }
.cw-trigger:hover .cw-trigger-arrow .material-icons-outlined { color: #fff; }

/* --- Panel --- */
.cw-panel {
  position: fixed; right: 16px; bottom: 16px; z-index: 950;
  width: 400px; height: 500px; background: var(--white);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  border: 1px solid var(--gray-200);
  display: none; flex-direction: column;
}
.cw-panel.open {
  display: flex;
  animation: cw-slideUp 0.3s ease forwards;
}
@keyframes cw-slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cw-panel-head {
  padding: 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-200); flex-shrink: 0;
}
.cw-panel-head-left { display: flex; align-items: center; gap: 10px; }
.cw-panel-icon {
  width: 36px; height: 36px; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0;
}
.cw-panel-icon .material-icons-outlined { font-size: 18px; color: var(--black); }
.cw-panel-title { font-size: 13px; font-weight: 600; }
.cw-panel-sub { font-size: 10px; color: var(--gray-400); }
.cw-panel-close {
  background: none; border: none; color: var(--gray-400);
  cursor: pointer; transition: color 0.2s; display: flex; align-items: center;
}
.cw-panel-close:hover { color: var(--black); }
.cw-panel-close .material-icons-outlined { font-size: 20px; }
.cw-panel-body { flex: 1; background: #fafaf8; overflow: hidden; }
#clChatIframeWrap { width: 100%; height: 100%; }
#clChatIframeWrap iframe {
  width: 100%; height: 100%; border: none; display: block;
}

/* --- SP: M4 Compact --- */
@media screen and (max-width: 768px) {
  .cw-trigger {
    right: 12px; bottom: 16px;
    padding: 4px;
    border-radius: 24px;
    transition: all 0.3s ease, bottom 0.3s ease;
  }
  .cw-trigger.above-bar {
    bottom: calc(var(--bar-h, 80px) + 8px + env(safe-area-inset-bottom));
  }
  .cw-trigger-icon {
    width: 38px; height: 38px;
  }
  .cw-trigger-icon .material-icons { font-size: 20px; }
  .cw-trigger-badge {
    top: -3px; right: -3px;
    min-width: 16px; height: 16px;
    font-size: 9px;
    border-radius: 8px;
    padding: 0 3px;
  }
  .cw-trigger-body { padding: 0 6px 0 10px; }
  .cw-trigger-msg { font-size: 11px; }
  .cw-trigger-sub { font-size: 9px; gap: 3px; }
  .cw-trigger-dot { width: 4px; height: 4px; }
  .cw-trigger-arrow {
    width: 26px; height: 26px;
    margin-right: 3px;
  }
  .cw-trigger-arrow .material-icons-outlined { font-size: 14px; }

  .cw-panel {
    right: 0; left: 0; margin: 0 auto;
    bottom: 16px;
    width: calc(100% - 16px); max-width: 400px;
    height: 70vh; max-height: 500px;
  }
  .cw-panel.above-bar {
    bottom: calc(var(--bar-h, 80px) + 8px + env(safe-area-inset-bottom));
  }
}

.cl-chat-fallback { padding: 20px; text-align: center; font-size: 13px; color: var(--gray-800, #504e4e); }
.cl-chat-fallback p { margin: 0 0 14px; line-height: 1.6; }
.cl-chat-fallback a { display: inline-block; padding: 9px 22px; background: var(--black, #1a1a1a); color: var(--white, #fff); text-decoration: none; border-radius: 4px; font-size: 12.5px; font-weight: 600; }

/* top.css - トップページ専用 */

/* Main Visual (MakeShop "トップページイメージ設定" 表示枠) */
.cl-mainvisual { position: relative; width: 100%; aspect-ratio: 2.37 / 1; max-height: 560px; overflow: hidden; background: var(--black); }
@media (max-width: 768px) { .cl-mainvisual { max-height: none; } }

/* Hide only auto-controls (start/stop) and caption - keep arrows + pager visible for Option F */
.cl-mainvisual .bx-controls-auto,
.cl-mainvisual .bx-controls-auto-item,
.cl-mainvisual .bx-caption { display: none !important; }

/* Controls wrapper - overlay on slider */
.cl-mainvisual .bx-controls {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

/* ===== PAGER: 細長いバーが下中央に横並び ===== */
.cl-mainvisual .bx-pager,
.cl-mainvisual .bx-pager.bx-default-pager {
  display: flex !important;
  position: absolute !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  gap: 10px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: initial !important;
  pointer-events: auto !important;
}
.cl-mainvisual .bx-pager-item {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.cl-mainvisual .bx-pager-link,
.cl-mainvisual .bx-pager.bx-default-pager a {
  display: block !important;
  width: 30px !important;
  height: 3px !important;
  background: rgba(255,255,255,0.35) !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  border-radius: 0 !important;
  outline: none !important;
  margin: 0 !important;
}
.cl-mainvisual .bx-pager-link.active,
.cl-mainvisual .bx-pager.bx-default-pager a.active,
.cl-mainvisual .bx-pager-link:hover,
.cl-mainvisual .bx-pager.bx-default-pager a:hover {
  background: var(--accent, #f5c518) !important;
  height: 4px !important;
}

/* ===== ARROWS: 左右の丸ボタン + 透明背景 + chevron ===== */
.cl-mainvisual .bx-controls-direction {
  position: static !important;
  pointer-events: none !important;
}
.cl-mainvisual .bx-prev,
.cl-mainvisual .bx-next {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.4) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: all 0.25s !important;
  outline: none !important;
  z-index: 11 !important;
  margin: 0 !important;
}
.cl-mainvisual .bx-prev { left: 20px !important; right: auto !important; }
.cl-mainvisual .bx-next { right: 20px !important; left: auto !important; }

/* chevron アイコン (CSS で描画) */
.cl-mainvisual .bx-prev::before,
.cl-mainvisual .bx-next::before {
  content: '' !important;
  display: block !important;
  width: 10px !important;
  height: 10px !important;
  border-top: 2px solid currentColor;
  transition: border-color 0.25s !important;
  text-indent: 0 !important;
}
.cl-mainvisual .bx-prev::before {
  border-left: 2px solid currentColor;
  transform: rotate(-45deg) !important;
  margin-left: 4px !important;
}
.cl-mainvisual .bx-next::before {
  border-right: 2px solid currentColor;
  transform: rotate(45deg) !important;
  margin-right: 4px !important;
}
.cl-mainvisual .bx-prev:hover,
.cl-mainvisual .bx-next:hover {
  background: rgba(0,0,0,0.7) !important;
  border-color: var(--accent, #f5c518) !important;
  color: var(--accent, #f5c518) !important;
}

/* ===== SP 用 サイズ縮小 ===== */
@media (max-width: 768px) {
  .cl-mainvisual .bx-prev,
  .cl-mainvisual .bx-next { width: 36px !important; height: 36px !important; }
  .cl-mainvisual .bx-prev { left: 12px !important; }
  .cl-mainvisual .bx-next { right: 12px !important; }
  .cl-mainvisual .bx-prev::before,
  .cl-mainvisual .bx-next::before { width: 8px !important; height: 8px !important; }
  .cl-mainvisual .bx-pager-link { width: 22px !important; }
  .cl-mainvisual .bx-pager { bottom: 12px !important; gap: 6px !important; }
}

/* Strip bxSlider default wrapper styling */
.cl-mainvisual .bx-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: none !important;
}

/* viewport: 見える窓、幅も高さもコンテナに揃える */
.cl-mainvisual .bx-viewport { width: 100% !important; height: 100% !important; }

/* スライダー内部は高さだけ揃える。width は bxSlider/slick の JS がスライド毎に設定するため踏まない
   (踏むと width: 100% で 全スライドが重なり、先頭 1 枚しか見えない バグになる) */
.cl-mainvisual .bx-viewport > ul,
.cl-mainvisual .bx-viewport > ul > li,
.cl-mainvisual .slick-slider,
.cl-mainvisual .slick-list,
.cl-mainvisual .slick-track,
.cl-mainvisual .slick-slide,
.cl-mainvisual .slick-slide > div { height: 100% !important; }

.cl-mainvisual a { display: block !important; width: 100%; height: 100%; }
.cl-mainvisual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  max-width: none !important;
  max-height: none !important;
  border: none !important;
}

/* Category Grid */
.cl-section--cat { background: var(--off-white); }
.cl-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cl-cat-card { position: relative; aspect-ratio: 3 / 1; overflow: hidden; cursor: pointer; background: var(--gray-200); display: block; }
.cl-cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; filter: brightness(0.65); }
.cl-cat-card:hover img { transform: scale(1.08); filter: brightness(0.5); }
.cl-cat-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 20px; }
.cl-cat-name { font-family: var(--font-display); font-size: 22px; color: var(--white); letter-spacing: 0.04em; line-height: 1.1; }
.cl-cat-name-jp { font-family: var(--font-body); font-size: 11px; font-weight: 300; color: rgba(255,255,255,0.65); margin-top: 4px; letter-spacing: 0.06em; }
.cl-cat-line { position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: var(--accent); transition: width var(--transition); }
.cl-cat-card:hover .cl-cat-line { width: 100%; }

/* Ranking - Pattern D: Corner Triangle */
.cl-section--ranking { background: var(--off-white); }
.cl-ranking-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cl-ranking-card { position: relative; }

/* Ranking card uses cl-product-card styles from common.css.
   Only triangle corner number is ranking-specific. */

/* Triangle corner number */
.cl-ranking-num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cl-ranking-num::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  border-style: solid;
  border-width: 48px 48px 0 0;
  border-color: var(--black) transparent transparent transparent;
}
.cl-ranking-num-text {
  position: absolute;
  top: 6px;
  left: 7px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* 1st place - accent color, larger */
.cl-ranking-card:nth-child(1) .cl-ranking-num::before {
  border-width: 56px 56px 0 0;
  border-color: var(--accent) transparent transparent transparent;
}
.cl-ranking-card:nth-child(1) .cl-ranking-num-text {
  font-size: 22px;
  top: 7px;
  left: 8px;
}

/* 2nd-3rd place - dark black */
.cl-ranking-card:nth-child(2) .cl-ranking-num::before,
.cl-ranking-card:nth-child(3) .cl-ranking-num::before {
  border-color: var(--gray-800) transparent transparent transparent;
}

/* 4th+ place - smaller, gray */
.cl-ranking-card:nth-child(n+4) .cl-ranking-num::before {
  border-width: 40px 40px 0 0;
  border-color: var(--gray-400) transparent transparent transparent;
}
.cl-ranking-card:nth-child(n+4) .cl-ranking-num-text {
  font-size: 15px;
  top: 5px;
  left: 6px;
}

@media (max-width: 1024px) {
  .cl-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cl-ranking-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cl-ranking-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cl-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cl-ranking-grid { grid-template-columns: repeat(2, 1fr); }
}
