/* ============================================================
   HILX 眼鏡商城 - メインスタイルシート
   デザイン: Figma 1:5280 ノードより1:1再現
   ============================================================ */

/* ---- CSS リセット & 基本設定 ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  color: #171a20;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.phone{
  display: none;
}
img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ---- CSS 変数 ---- */
:root {
  --font-jp: 'Noto Sans JP', sans-serif;
  --black: #171a20;
  --white: #ffffff;
  --gray-text: #5c5e62;
  --gray-sub: #8e8e8e;
  --gray-bg: #f4f4f4;
  --card-bg: #f8fafb;
  --card-border: #b5b5b5;
  --red-price: #b80000;
  --red-sale: #ff3a3a;
  --header-height: 95px; /* 36px ann + 59px nav */
}

.tips_tc{
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 9999;
  transform: translate(-50%,-50%);
  border-radius: 8px;
  overflow: hidden;
  width: 80%;
  max-width: 690px;
  box-shadow: 0px 4px 21.100000381469727px 0px rgba(0, 0, 0, 0.1);
}
.cancle_tc{
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 8px;
  overflow: hidden;
  width: 80%;
  max-width: 690px;
  box-shadow: 0px 4px 21.100000381469727px 0px rgba(0, 0, 0, 0.1);
}
.tips_tc1{
  height: 56px;
  background-color: #000;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  line-height: 56px;
  color: #ffffff;
}
.tips_tc2{
  background-color: #ffffff;
  padding: 26px 25px 23px;
}
.tips_tc3{
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
  color: #333333;
  min-height: 58px;
}
.tips_tc4{
  margin-top: 19px;
  text-align: center;
}
.tips_tc4a{
  margin: 0 20px;
  display: inline-block;
  width: 132px;
  height: 30px;
  border-radius: 5px;
  background-color: #3851A6;
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  line-height: 30px;
}
.tips_tc4b{
  margin: 0 20px;
  display: inline-block;
  width: 132px;
  height: 30px;
  border-radius: 5px;
  background-color: #E30043;
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
  text-align: center;
  line-height: 30px;
}
/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
}

/* Announcement Bar */
.announcement-bar {
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 8px 10px;
  height: 36px;
}

.ann-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.ann-btn:hover { opacity: 1; }

.ann-text {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.icon-flip {
  transform: rotate(180deg);
}

/* Main Nav */
.main-nav {
  background: #ffffff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 48px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: relative;
  overflow: visible;
}

/* ── 商品一覧 メガドロップダウン ── */
.nav-has-dropdown {
  position: static;
}

.nav-products-link {
  position: relative;
}

.nav-mega-dropdown {
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1001;
  pointer-events: none;
}

.nav-mega-dropdown.dropdown-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* 内部レイアウト */
.nd-inner {
  display: flex;
  align-items: flex-start;
  padding: 32px 48px 36px;
  max-width: 1440px;
  margin: 0 auto;
}

/* 左：コンテンツパネル */
.nd-panels {
  flex: 1;
  min-width: 0;
}

.nd-panel {
  display: none;
}

.nd-panel.nd-active {
  display: block;
  animation: ndFadeIn 0.18s ease;
}

@keyframes ndFadeIn {
  from { opacity: 0; transform: translateX(4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* カラムレイアウト（サングラス/ゴーグル） */
.nd-cols {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.nd-col {
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-width: 120px;
}

/* カラムタイトル（Figma: 14px bold, no border） */
.nd-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

/* カラムリンク（Figma: 16px medium） */
.nd-col a {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  transition: opacity 0.15s;
  letter-spacing: .01em;
  line-height: 1.3;
}

.nd-col a:hover {
  opacity: 0.45;
}

/* コレクションパネル（ヘッダーなし） */
.nd-cols-2 .nd-col {
  min-width: 140px;
}

/* スポーツ別パネル */
.nd-sports-grid {
  display: grid;
  /*grid-template-columns: repeat(3, 170px);*/
  grid-template-columns: repeat(4, 240px);
  gap: 20px 18px;
}

.nd-sport-card {
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nd-sport-img {
  /*width: 170px;*/
  width: 100%;
  height: 100px;
  overflow: hidden;
  border-radius: 4px;
  background: #f0f0f0;
}

.nd-sport-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.nd-sport-card:hover .nd-sport-img img {
  transform: scale(1.07);
}

.nd-sport-card p {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
}

/* 区切り線 */
.nd-divider {
  width: 1px;
  background: #e0e0e0;
  margin: 0 40px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 140px;
}

/* 右：タブリスト（Figma: 16px medium、左から右端） */
.nd-tabs {
  display: flex;
  flex-direction: column;
  gap: 17px;
  flex-shrink: 0;
  /*width: 192px;*/
  width: 210px;
}

.nd-tab {
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  letter-spacing: .02em;
  transition: opacity 0.15s;
  line-height: 1.4;
  white-space: nowrap;
}

.nd-tab:hover {
  opacity: 0.45;
}

.nd-tab.nd-tab-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  opacity: 1;
}

/* 商品一覧リンク ホバー時の背景 */
.nav-has-dropdown > a.nav-products-link {
  border-radius: 10px;
  transition: background 0.15s;
}

.nav-has-dropdown.dropdown-active > a.nav-products-link,
.nav-has-dropdown:hover > a.nav-products-link {
  background: #e9e9e9;
  border-radius: 10px;
}

.nav-logo a {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
     margin-left: 10%;
}

.nav-menu li a {
  display: block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #171a20;
  border-radius: 4px;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-menu li a:hover {
  background: rgba(0,0,0,0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.search-wrapper {
    width: 195px;
    height: 30px;
    background: #F3F3F3;
    padding: 0 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.search-input{
    border: none;
    outline: none;
    width: calc(100% - 21px);
    height: 100%;
    background: transparent;
}
.searchii {
  width: 21px;

	background: url(../img/search_1.png) center no-repeat;
	background-size: 25px;
	border: none;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  padding: 0;
  text-decoration: none;
  color: inherit;
}

.cart-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #ff3a3a;
  color: #ffffff;
  font-size: 6px;
  font-weight: 700;
  border-radius: 99px;
  width: 9px;
  height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #171a20;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  height: 660px;
  overflow: hidden;
  background: #000;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* Figma: logo at top-[386px] out of hero height 660px ≈ 58.5% from hero top */
.hero-logo-wrap {
  position: absolute;
  top: 58.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.hero-logo-img {
  width: 320px;
  height: auto;
  display: block;
}


/* ============================================================
   PRODUCTS SECTION
   ============================================================ */
.products-section {
  /* Figma: title at 57px below hero, cards at 114px below hero */
  padding: 28px 0 36px;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* ---- Swiper 商品カルーセル ---- */
.products-swiper-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 56px;
}

/* Swiper コンテナ */
.products-swiper {
  flex: 1;
  overflow: hidden;
  /* 上下に hover shadow が見えるよう余白を確保 */
  padding: 6px 2px 10px;
}

/* Swiper スライド — 内部カードに幅を委ねる */
.products-swiper .swiper-slide {
  width: auto;
  height: auto;
}

/* Product Card */
.product-card {
  /*flex: 0 0 297px;
  width: 297px;*/
width:100%;
  height: 339px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.card-tags {
  position: absolute;
  top: 9px;
  left: 8px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.card-badge-wrap {
  position: absolute;
  top: 9px;
  right: 8px;
  z-index: 2;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  margin-right: 3px;
}

.tag-outline {
  background: #ffffff;
  border: 1px solid #000000;
  color: #000000;
}

.tag-black {
  background: #000000;
  color: #ffffff;
  border: none;
}

.tag-sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 99px;
  background: var(--red-sale);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.card-image {
  position: absolute;
  top: 59px;
  left: 0;
  width: 100%;
  height: 139px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  /* contain shows full glasses without cropping */
  object-fit: contain;
  object-position: center center;
  display: block;
  padding: 8px;
}

/* card-info is used only as a visual grouping in HTML - no special positioning */
.card-info {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card-name {
  position: absolute;
  top: 213px;
  left: 21px;
  font-size: 20px;
  font-weight: 500;
  color: #000000;
  white-space: nowrap;
  pointer-events: auto;
}

.card-price-row {
  position: absolute;
  top: 243px;
  left: 21px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.price-strike {
  font-size: 20px;
  font-weight: 400;
  color: #000000;
  text-decoration: line-through;
  text-decoration-skip-ink: none;
}

.price-sale {
  font-size: 20px;
  font-weight: 700;
  color: var(--red-price);
}

.card-subname {
  position: absolute;
  top: 268px;
  left: 21px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-sub);
  white-space: nowrap;
  pointer-events: auto;
}

.card-swatches {
  position: absolute;
  top: 298px;
  left: 21px;
  display: flex;
  align-items: center;
  gap: 17px;
  pointer-events: auto;
}

.card-swatches img {
  display: block;
  border-radius: 50%;
}

/* ---- 商品カルーセル ナビゲーションボタン ---- */
.products-nav-btn {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2;
  border-radius: 50%;
}
.products-nav-btn:hover {
  opacity: 0.65;
  transform: scale(1.1);
}
.products-nav-btn.swiper-button-disabled {
  opacity: 0.25;
  pointer-events: none;
}
.products-nav-btn img { display: block; }
.products-nav-prev { margin-right: 10px; }
.products-nav-next { margin-left: 10px; }


/* ============================================================
   SEPARATOR LINE
   ============================================================ */
.separator-line {
  margin: 8px 48px 0;
  height: 1px;
  background: #e0e0e0;
}


/* ============================================================
   BANNER SLIDER SECTION
   ============================================================ */
.banner-section {
  padding: 47px 0 0;
  position: relative;
}

.banner-viewport {
  /* overflow hidden: only shows current + peek of next */
  overflow: hidden;
  padding-left: 48px;
}

.banner-track {
  display: flex;
  gap: 21px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.banner-slide {
  flex: 0 0 1024px;
  width: 1024px;
}

.banner-slide-inner {
  position: relative;
  width: 1024px;
  height: 580px;
  border-radius: 10px;
  overflow: hidden;
}

.banner-slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  /* Slight zoom-in on hover */
  transition: transform 0.5s ease;
}
.banner-slide:hover .banner-slide-inner img {
  transform: scale(1.015);
}

.slide-footer {
  position: absolute;
  bottom: 40px;
  left: 55px;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 182px;
  height: 50px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.2s;
}
.slide-btn:hover { opacity: 0.85; }

.slide-btn-black {
  background: #000000;
  color: #ffffff;
  border: none;
}

.slide-btn-white {
  background: #ffffff;
  color: #000000;
  border: none;
}

/* Pagination Dots */
.banner-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 0 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c8c8c8;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.dot.active {
  background: #000000;
  width: 24px;
  border-radius: 4px;
}


/* ============================================================
   INFO CARDS SECTION
   ============================================================ */
.info-cards-section {
  display: flex;
  gap: 24px;
  padding: 32px 48px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.info-card {
  flex: 1;
  background: var(--gray-bg);
  border-radius: 10px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  height: 220px;
  transition: box-shadow 0.25s ease;
}
.info-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.info-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px 32px 48px;
  min-width: 0;
}

.info-card-title {
  font-size: 34px;
  font-weight: 500;
  color: #171a20;
  line-height: 1.29;
  white-space: nowrap;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.info-card-desc {
  font-size: 16px;
  font-weight: 300; /* DemiLight → 300 */
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 0;
}

.info-card-btn-wrap {
  margin-top: 16px;
}

.btn-outline-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 182px;
  height: 50px;
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  color: #393c41;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.btn-outline-card:hover {
  border-color: #171a20;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card-image {
  width: 220px;
  flex: 0 0 220px;
  overflow: hidden;
  border-radius: 0 10px 10px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.info-card-image img {
  width: 220px;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease;
}
.info-card:hover .info-card-image img {
  transform: scale(1.04);
}


/* ============================================================
   FEATURED (SAMURAI) SECTION
   ============================================================ */
.featured-section {
  display: flex;
  gap: 24px;
  padding: 24px 48px 24px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Samurai Left Panel */
.samurai-panel {
  /* Figma: 888px out of 1344px inner ≈ 66% */
  flex: 0 0 calc(66% - 12px);
  height: 581px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.samurai-image-wrap {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
}

.samurai-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.play-btn-bg {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: rgba(128, 128, 128, 0.65);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.play-btn:hover .play-btn-bg {
  background: rgba(128, 128, 128, 0.85);
}

.samurai-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 386px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  z-index: 1;
}

.samurai-title {
  font-size: 48px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.17;
  margin-bottom: 24px;
}

.btn-white-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 183px;
  height: 50px;
  background: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-white-solid:hover { opacity: 0.9; }

/* Side Panels (Right) */
.side-panels {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 21px;
  /* Figma: side panels are each 280px tall, 2 panels + 21px gap = 581px */
}

.side-panel {
  border-radius: 10px;
  overflow: hidden;
  flex: 1;
}

.side-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}
.side-panel:hover img { transform: scale(1.03); }


/* ============================================================
   GUIDE / TOPICS SECTION
   ============================================================ */
.guide-topics-section {
  display: flex;
  gap: 23px;
  padding: 24px 48px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
/*.topics-card*/
.guide-card
 {
  flex: 1;
  height: 389px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
/*.topics-card img */
.guide-card img
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 10px;
  transition: transform 0.45s ease;
}
.guide-card:hover img,
.topics-card:hover img { transform: scale(1.025); }

/* Dark gradient overlay at bottom for readability .topics-card::after*/
.guide-card::after
 {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 0 0 10px 10px;
}

/* Figma: button at bottom=90px, height=50px → top ≈ 249px from top of 389px card */
.card-overlay-btn {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 182px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #ffffff;
  border-radius: 5px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  z-index: 1;
  letter-spacing: 0.02em;
}
.card-overlay-btn:hover {
  background: rgba(0, 0, 0, 0.82);
  transform: translateX(-50%) translateY(-1px);
}


/* ============================================================
   FOOTER
   Figma 精確座標 (フッター 1440×528px):
     ロゴ    left=253px  top=71px
     navMain left=253px  top=179px
     navSub  left=253px  top=231px
     address left=253px  top=309px
     social  left=671px  top=362px  (content-left から +418px)
     copyright left=253px bottom≈38px
   ============================================================ */
.site-footer {
  background: #000000;
  position: relative;
  height: 528px;
  overflow: hidden;
}

/* 右側 HILX デコレーション X パターン */
.footer-deco {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 63.33%;     /* Figma: inset-[0_0_0_63.33%] */
  z-index: 0;
  pointer-events: none;
}
.footer-deco-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  opacity: 0.78;
}

/* フッターコンテンツエリア */
.footer-inner {
  position: relative;
  z-index: 1;
  /* left=253px は padding-left で再現 */
  padding: 0 48px 0 253px;
  height: 100%;
}

/* ───────────────────────────────
   ロゴ: top=71px
─────────────────────────────── */
.footer-logo {
  position: absolute;
  top: 71px;
  left: 253px;
}
.footer-logo-img {
  display: block;
  width: 108px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 153 / 39;
  object-fit: contain;
  object-position: left center;
}

/* ───────────────────────────────
   メインナビ: top=179px, gap=79px
─────────────────────────────── */
.footer-nav-main {
  position: absolute;
  top: 179px;
  left: 253px;
  display: flex;
  align-items: center;
  gap: 79px;
  flex-wrap: nowrap;
}
.footer-nav-main a {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1.05;
  transition: opacity 0.2s;
}
.footer-nav-main a:hover { opacity: 0.5; }

/* ───────────────────────────────
   サブナビ: top=231px, gap=79px
─────────────────────────────── */
.footer-nav-sub {
  position: absolute;
  top: 231px;
  left: 253px;
  display: flex;
  align-items: center;
  gap: 79px;
  flex-wrap: nowrap;
}
.footer-nav-sub a {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1.05;
  transition: opacity 0.2s;
}
.footer-nav-sub a:hover { opacity: 0.5; }

/* ───────────────────────────────
   ボトム行: 住所 + SNS アイコン
─────────────────────────────── */
.footer-bottom-row {
  position: absolute;
  top: 309px;
  left: 253px;
  display: flex;
  align-items: flex-start;
}

/* 住所: top=309px, left=253px */
.footer-address {
  font-style: normal;
  flex: 0 0 auto;
}
.footer-address p {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.785;
  letter-spacing: 0.05em;
}

/* SNS: left=671px → content-left(253px) から +418px
        top=362 → bottom-row top(309) から +53px */
.footer-social {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: 218px;  /* ~418px - address width(~200px) */
  padding-top: 50px;   /* 362 - 309 = 53px ≈ 2行目の住所テキストに合わせ調整 */
  flex-shrink: 0;
}
.footer-social a {
  display: flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.2s, transform 0.25s;
}
.footer-social a:hover {
  opacity: 0.6;
  transform: scale(1.15);
}
.footer-social img {
  display: block;
}

/* ───────────────────────────────
   コピーライト: bottom≈38px
─────────────────────────────── */
.footer-copyright {
  position: absolute;
  bottom: 36px;
  left: 253px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.05em;
  white-space: nowrap;
}


/* ============================================================
   RESPONSIVE - TABLET (max 1200px)
   ============================================================ */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 2px;
  }
  .nav-menu li a {
    padding: 6px 10px;
    font-size: 13px;
  }

  /*.search-img {*/
  /*  width: 140px;*/
  /*}*/

  .info-card-title {
    font-size: 26px;
  }

  .featured-section {
    padding: 24px 32px;
  }

  .samurai-panel {
    flex: 0 0 calc(65% - 12px);
    width: auto;
  }

  .guide-topics-section {
    padding: 24px 32px;
  }

  .banner-viewport {
    padding-left: 32px;
  }

  .banner-slide {
    flex: 0 0 880px;
    width: 880px;
  }
  .banner-slide-inner {
    width: 880px;
  }

  /* フッター: 1200px以下では左offset を縮小 */
  .footer-logo   { left: 48px; }
  .footer-nav-main { left: 48px; gap: 40px; flex-wrap: wrap; }
  .footer-nav-main a { font-size: 14px; }
  .footer-nav-sub  { left: 48px; gap: 40px; flex-wrap: wrap; }
  .footer-nav-sub a  { font-size: 14px; }
  .footer-bottom-row { left: 48px; }
  .footer-copyright  { left: 48px; }
  .footer-social { margin-left: 120px; }
}

@media (max-width: 1024px) {
  .samurai-panel {
    flex: 0 0 calc(66% - 12px);
    height: 480px;
  }

  .featured-section {
    padding: 20px 32px 20px;
  }

  .products-swiper-wrap {
    padding: 0 32px;
  }

  .info-cards-section {
    padding: 24px 32px 20px;
  }

  .info-card {
    height: auto;
    min-height: 180px;
  }

  .info-card-title {
    font-size: 22px;
  }

  .info-card-image {
    width: 160px;
    flex: 0 0 160px;
  }

  .banner-slide {
    flex: 0 0 700px;
    width: 700px;
  }
  .banner-slide-inner {
    width: 700px;
    height: 460px;
  }

  .guide-topics-section {
    padding: 20px 32px 28px;
  }
}


/* ============================================================
   RESPONSIVE - TABLET PORTRAIT (max 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Header */
  .main-nav {
    padding: 0 16px;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 999;
  }
  .nav-menu.open {
    display: flex;
margin-left: 0;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }

  /* モバイル用ドロップダウン */
  .nav-mega-dropdown {
    position: static;
    box-shadow: none;
    border-top: 1px solid #f0f0f0;
    border-bottom: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: none;
    pointer-events: auto;
  }

  .nav-mega-dropdown.dropdown-open {
    display: block;
  }

  .nd-inner {
    flex-direction: column;
    padding: 14px 24px 18px;
    gap: 14px;
  }

  .nd-panel {
    animation: none;
  }

  .nd-divider {
    display: none;
  }

  .nd-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
  }

  .nd-tab {
    font-size: 13px;
  }

  .nd-cols {
    flex-direction: column;
    gap: 16px;
  }

  .nd-col {
    gap: 12px;
  }

  .nd-col a {
    font-size: 14px;
  }

  .nd-sports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .nd-sport-img {
    width: 100%;
    height: 78px;
  }

  .search-wrapper {
    display: none;
  }

  /* ヘッダー右アイコン：タッチターゲット約 44px（WCAG 目安） */
  .nav-actions {
    gap: 4px;
    align-items: center;
  }

  .icon-btn {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
  }

  .cart-btn {
    min-width: 44px;
    min-height: 44px;
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 8px;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 5px;
  }

  /* Announcement */
  .ann-text {
    font-size: 13px;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    max-width: min(100%, 280px);
  }

  /* Hero */
  .hero-section {
    height: 420px;
  }

  .hero-logo-img {
    width: 200px;
  }

  /* Products */
  .products-section {
    padding: 32px 0 24px;
  }

  .products-swiper-wrap {
    padding: 0 12px;
  }

  .product-card {
    flex: 0 0 240px;
    width: 240px;
    height: 290px;
  }

  .card-image {
    height: 110px;
    top: 48px;
  }

  .card-name {
    top: 170px;
    font-size: 16px;
  }
  .card-price-row {
    top: 196px;
  }
  .price-strike, .price-sale {
    font-size: 16px;
  }
  .card-subname {
    top: 222px;
    font-size: 12px;
  }
  .card-swatches {
    top: 250px;
    gap: 10px;
  }

  /* Separator */
  .separator-line {
    margin: 0 16px;
  }

  /* Banner */
  .banner-section {
    padding: 32px 0 0;
  }

  .banner-viewport {
    padding-left: 16px;
  }

  .banner-slide {
    flex: 0 0 90vw;
    width: 90vw;
  }
  .banner-slide-inner {
    width: 90vw;
    height: 340px;
  }

  /* Info cards */
  .info-cards-section {
    flex-direction: column;
    padding: 24px 16px;
    gap: 16px;
  }

  .info-card {
    height: auto;
    min-height: 160px;
  }

  .info-card-content {
    padding: 24px 16px 24px 24px;
  }

  .info-card-title {
    font-size: 20px;
  }
  .info-card-desc {
    font-size: 14px;
  }
  .btn-outline-card {
    width: 140px;
    height: 42px;
    font-size: 14px;
  }

  .info-card-image {
    width: 140px;
    flex: 0 0 140px;
  }

  /* Featured */
  .featured-section {
    flex-direction: column;
    padding: 24px 16px;
    gap: 16px;
  }

  .samurai-panel {
    flex: none;
    width: 100%;
    height: 380px;
  }

  .side-panels {
    /*flex-direction: row;*/
    gap: 12px;
  }

  .side-panel {
    height: 180px;
  }

  .samurai-title {
    font-size: 32px;
  }

  /* Guide/Topics */
  .guide-topics-section {
    flex-direction: column;
    padding: 24px 16px;
    gap: 16px;
  }
/*.topics-card*/
  .guide-card
   {
    height: 260px;
  }

  .card-overlay-btn {
    bottom: 50px;
    width: 150px;
    height: 44px;
    font-size: 14px;
  }

  /* Footer: 768px以下では絶対配置をやめてフロー配置に切替 */
  .site-footer {
    height: auto;
    min-height: 0;
    padding: 48px 24px 40px;
  }

  .footer-deco {
    display: none;
  }

  .footer-inner {
    position: static;
    padding: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* ロゴ */
  .footer-logo {
    position: static;
    margin-bottom: 28px;
  }
  .footer-logo-img {
    width: 96px;
  }

  /* メインナビ */
  .footer-nav-main {
    position: static;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
  }
  .footer-nav-main a { font-size: 13px; }

  /* サブナビ */
  .footer-nav-sub {
    position: static;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
  }
  .footer-nav-sub a { font-size: 13px; }

  /* ボトム行: 住所とSNSを縦並びに */
  .footer-bottom-row {
    position: static;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 0;
  }

  /* SNS */
  .footer-social {
    margin-left: 0;
    padding-top: 0;
  }

  /* 住所 */
  .footer-address p { font-size: 13px; }

  /* コピーライト */
  .footer-copyright {
    position: static;
    margin-top: 24px;
  }
}


/* ============================================================
   RESPONSIVE - MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  .ann-text {
    font-size: 11px;
    max-width: min(100%, 240px);
  }
  .pc{
    display: none;
  }
  .phone{
    display: block;
  }
  .announcement-bar {
    gap: 12px;
    padding: 6px 8px;
  }

  .hero-section {
    height: 320px;
  }

  .hero-logo-img {
    width: 160px;
  }

  .banner-slide {
    flex: 0 0 calc(100vw - 32px);
    width: calc(100vw - 32px);
  }
  .banner-slide-inner {
    width: 100%;
    height: 280px;
  }

  .product-card {
    flex: 0 0 200px;
    width: 200px;
    height: 260px;
  }

  .card-image {
    height: 95px;
    top: 44px;
  }
  .card-name {
    top: 150px;
    font-size: 14px;
  }
  .card-price-row {
    top: 174px;
  }
  .price-strike, .price-sale {
    font-size: 14px;
  }
  .card-subname {
    top: 198px;
    font-size: 11px;
  }
  .card-swatches {
    top: 222px;
    gap: 8px;
  }
  .card-swatches img {
    width: 18px;
    height: 18px;
  }

  .samurai-panel {
    height: 300px;
  }

  .samurai-title {
    font-size: 26px;
  }

  .footer-nav-main,
  .footer-nav-sub {
    gap: 12px;
  }
  .footer-nav-main a,
  .footer-nav-sub a {
    font-size: 12px;
  }
}
