@charset "UTF-8";

/* ── HERO SLIDER ── */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 550px; /* 全スライド高さ統一 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background: #e8ecf0 url('../images/top/mv-bg.jpg') no-repeat center right / cover;
  padding: 10px 20px 90px;
}

.hero-section.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 90px;
  background: #294257;
}

.hero-section--encourage {
  background: #e8ecf0 url('../images/top/mv-encourage-bg.png') no-repeat center right / cover;
}
.hero-section--encourage::after {
  background: #75C683;
}
.hero-section--encourage .hero-inner {
  flex-direction: row-reverse;
  align-items: stretch;
}
.hero-section--encourage .hero-visual {
  align-self: stretch;
}
.hero-section--encourage .hero-encourage-logo {
  display: block;
  margin: 0 auto 14px;
}
.hero-section--encourage .hero-title,
.hero-section--encourage .hero-sub {
  color: #fff;
}

/* PCのみ：スライド2 テキスト・ロゴを中央揃え（Frame 747） */
@media (min-width: 769px) {
  .hero-section--encourage .hero-content {
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0;
  }
  .hero-section--encourage .hero-title,
  .hero-section--encourage .hero-sub {
    text-align: center;
  }
}
.hero-section--encourage .hero-btn {
  color: #fff;
  border-color: #fff;
}
.hero-section--encourage .hero-btn:hover {
  background: #fff;
  color: #75C683;
}

.hero-section--about {
  background: #e0e0e0 url('../images/top/mv-about-bg.jpg') no-repeat center / cover !important;
}

.hero-section--about::after {
  background: #29425799;
}

.hero-section--about .hero-inner {
  position: static; 
}

.hero-section--about .hero-visual {
  display: none;
}

/* スライド3ボタン：hero-bar--about内でflex中央配置に変更（PC・SP共通） */
.hero-section--about .hero-btn {
  position: static;
  margin: 0;
  background: transparent;
  color: #fff;
  border-color: #fff;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .hero-section {
    padding: 0;
    height: 540px; /* 全スライド統一高さ。スライド3の画像が contain で全体表示 */
    display: flex;
    flex-direction: column;
  }
  .hero-section::after { display: none; }
}


/* ── HERO INNER ── */
.hero-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* 40px 20px 0 → 0 20px：上余白は.hero-sectionのpadding-top:80pxが担当。二重padding除去で垂直中央が正しく揃う */
  position: relative;
  z-index: 1;
  gap: 40px;
  min-height: 480px; /* MV 下のスキマ解消：650 - padding(80+90) = 480px に揃える */
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    padding: 0;
    gap: 0;
    min-height: auto;
  }
}


/* ── HERO VISUAL ── */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-visual img {
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* PCのみ：画像を下の帯に重ねる */
@media (min-width: 769px) {
  .hero-visual {
    overflow: visible;
    position: relative;
    z-index: 2;
  }
  .hero-visual img {
    max-height: 540px;
    margin-bottom: -60px;
    position: relative;
    z-index: 2;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    width: 100%;
    background: #d4dce6;
    padding: 30px 20px 10px;
    justify-content: center;
  }
  .hero-visual img {
    max-height: 220px;
    margin-bottom: 0; /* SPは重ねない */
  }
}


/* ── HERO CONTENT ── */
.hero-content {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* PCのみ：テキストを上部寄せ（Frame 747） */
@media (min-width: 769px) {
  .hero-content {
    justify-content: flex-start;
    padding-top: 30px;
  }
}

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: #294257;
  margin-bottom: 14px;
  display: block;
  white-space: nowrap;
}

.hero-title {
  font-family: 'Inria Sans', 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #294257;
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 18px;
  background: transparent;
  color: var(--blue-dark);
  border: 1px solid var(--blue-dark); /* デザイン：細枠 */
  font-weight: 550;
  font-size: 12px; /* デザイン：小さめ */
  letter-spacing: 0.03em;
  transition: 0.25s;
  height: 32px; /* デザイン：薄型 */
  min-width: 180px;
  box-sizing: border-box;
}
.hero-btn:hover {
  background: var(--blue-dark);
  color: #fff;
}
/* ヒーローボタン：ホバー時、矢印アイコンをテキスト色に追従させる
   通常: ダーク矢印(icon-arrow-dark) → ホバー: 白矢印（invert）
   通常: 白矢印(icon-arrow-white) → ホバー: ダーク矢印（invert） */
.hero-btn img,
.hero-btn--slide img,
.hero-bar .hero-btn img,
.hero-bar--about .hero-btn img {
  transition: filter 0.3s ease;
}
/* ホバー時：矢印の色をテキストカラーに合わせる
   ・slide 1 PC: ダーク矢印 → 白（テキスト白に合わせる）
   ・slide 2 PC encourage: 白矢印 → 黄緑（テキスト黄緑に合わせる）
   ・SP hero-bar: 白矢印 → ダーク（テキストダークに合わせる）
*/

/* PC slide 1 (.hero-btn--slide) ホバー時：矢印を白に */
.hero-btn--slide:hover img {
  filter: brightness(0) invert(1);
}
/* PC slide 1 hero-btn ホバー時 同様 */
.hero-btn:not(.hero-btn--slide):hover img {
  filter: brightness(0) invert(1);
}
/* ENCOURAGE スライドホバー時：矢印を黄緑 #75C683 に */
.hero-section--encourage .hero-btn--slide:hover img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(31%) saturate(641%) hue-rotate(74deg) brightness(91%) contrast(83%);
}
/* SP hero-bar・hero-bar--about ホバー時：矢印をダークに */
.hero-bar .hero-btn:hover img,
.hero-bar--about .hero-btn:hover img {
  filter: brightness(0);
}

@media (max-width: 768px) {
  .hero-content {
    width: 100%;
    padding: 30px 20px 40px;
    background: #e8ecf0;
    text-align: left;
  }
  .hero-sub { font-size: 28px; }
  .hero-title { font-size: 22px; margin-bottom: 28px; }
  .hero-btn {
    font-size: 13px;
    padding: 10px 20px;
    height: auto; /* SPでは固定高さ解除 */
    min-height: 40px;
  }
}


/* ── HERO DOTS WRAP ── */
.hero-dots-wrap {
  background: #fff;
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: center;
}

.hero-dots {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.hero-dots .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #D9D9D9;
  display: inline-block;
  cursor: pointer;
}

.hero-dots .dot.is-active {
  background: #8C8F90;
}


/* ── 製品情報セクション（TOPICSとコンテンツ幅統一） ── */
.top-products-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0;
}

@media (max-width: 768px) {
  .top-products-section { margin: 0; padding: 0; }
}


/* ── PRODUCTS CARD ── */
.products-card {
  background: #fff;
  border: none;
  padding: 20px 20px 40px 20px;
  text-align: center;
}

@media (max-width: 768px) {
  .products-card { padding: 24px 0; border-radius: 0; }
  .products-card .section-title-lined { padding-left: 16px; padding-right: 16px; }
}


/* ── PRODUCTS LIST ── */
.products-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 20px 0 10px;
  text-align: left;
}

@media (max-width: 768px) {
  .products-list { grid-template-columns: 1fr; }
}


/* ── PRODUCT ITEM ── */
.product-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-right: 2px solid #ddd;
}
.product-item:last-child { border-right: none; }
.product-item { transition: background 0.3s ease; }
.product-item:hover { background: #E9EBEC; } /* Frame 528/529通り：薄いグレー */

@media (max-width: 768px) {
  .product-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 16px;
    border-right: none;
    border-bottom: 2px solid #ddd;
  }
  .product-item:last-child { border-bottom: none; }
}


/* ── PRODUCT THUMB ── */
.product-thumb {
  flex: 0 0 110px;
  width: 110px;
  height: 200px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .product-thumb { flex: 0 0 90px; width: 90px; height: 90px; margin-bottom: 0; }
}


/* ── PRODUCT INFO ── */
.product-info { flex: 1; padding-left: 8px; }

.product-category {
  font-size: 15px;
  font-weight: 550;
  color: #3B4E59;
  text-decoration: underline;
  text-decoration-color: #0D518C;
  text-underline-offset: 4px;
  margin-bottom: 6px;
}
/* 商品ごとに下線色を変える（屋内型=濃青, パネル=中青, 水販売=明青） */
.product-item:nth-child(1) .product-category { text-decoration-color: #0D518C; }
.product-item:nth-child(2) .product-category { text-decoration-color: #368ABF; }
.product-item:nth-child(3) .product-category { text-decoration-color: #368ABF; }

.product-model {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.product-desc { list-style: none; padding: 0; }
.product-desc li {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
  padding-left: 12px;
  position: relative;
}
.product-desc li::before { content: '・'; position: absolute; left: 0; }

@media (max-width: 768px) {
  .product-category { font-size: 14px; }
}


/* ── PRODUCT ARROW ── */
.product-arrow {
  margin-top: auto;
  align-self: flex-end;
  color: var(--text-sub);
  font-size: 18px;
  font-weight: 550;
}
.product-arrow img { width: 14px; height: auto; }


/* ── ENCOURAGE BANNER ── */
.encourage-banner {
  display: block;
  margin: 20px auto 0;
  text-align: center;
  transition: opacity 0.2s;
}
.encourage-banner:hover { opacity: 0.85; }
.encourage-banner img {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .encourage-banner { margin: 30px 16px 0; }
}



/* ══════════════════════════════════════
   HERO BAR & SP OVERRIDES
   ※ このブロックが全スライドのSP挙動を制御
══════════════════════════════════════ */

/* PC：hero-barは非表示（::afterが帯を担当） */
.hero-bar { display: none; }

/* スライド3（About）のhero-barはPC・SP共通で使用 */
.hero-bar--about {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 90px;
  background: rgba(41, 66, 87, 0.6);
  z-index: 2;
}
.hero-bar--about .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 550;
  font-size: 14px;
  white-space: nowrap;
  transition: 0.25s;
  height: 44px;
  min-width: 220px;
  box-sizing: border-box;
}
.hero-bar--about .hero-btn:hover { background: #fff; color: #294257; }

/* PC専用ボタン（スライド1・2のhero-content内、テキスト左下に自然配置） */
.hero-btn--slide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: #294257;
  border: 2px solid #294257;
  font-weight: 550;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: 0.25s;
  white-space: nowrap;
  height: 44px;
  min-width: 220px;
  box-sizing: border-box;
  margin-top: 24px;
}
.hero-btn--slide:hover { background: #294257; color: #fff; }
.hero-section--encourage .hero-btn--slide { color: #fff; border-color: #fff; }
.hero-section--encourage .hero-btn--slide:hover { background: #fff; color: #75C683; }

/* スライド3：SPでのhero-visual（背景画像として表示） */
.hero-visual--about { display: none; }


/* ── SP（768px以下）── */
@media (max-width: 768px) {

  /* PC帯（::after）非表示 */
  .hero-section::after { display: none; }

  /* 全スライド：縦並び（テキスト上・画像下） */
  .hero-inner {
    flex-direction: column !important;
    padding: 0 !important;
    gap: 0 !important;
    height: auto !important;
    min-height: auto !important;
    align-items: stretch !important;
    flex: 1 !important;
  }

  /* テキストエリア（Frame 779: テキスト領域を確保して垂直中央配置） */
  .hero-content {
    order: 1;
    width: 100%;
    flex: 0 0 140px !important; /* テキスト領域 140px 確保 */
    height: 140px !important;
    min-height: 140px !important;
    padding: 20px 20px !important;
    justify-content: center !important; /* 垂直中央 */
    align-items: center !important;
    text-align: center;
    box-sizing: border-box;
  }
  /* SP専用：スライド全体に背景画像 */
  .hero-section:not(.hero-section--encourage):not(.hero-section--about) {
    background: url('../images/top/mv-thsk-sp.jpg') no-repeat center / cover !important;
  }
  .hero-section--encourage {
    background: url('../images/top/mv-encourage-sp.jpg') no-repeat center / cover !important;
  }
  .hero-section:not(.hero-section--encourage):not(.hero-section--about) .hero-content {
    background: transparent;
    text-align: center; /* SPデザイン Frame 779：中央揃え */
    align-items: center !important;
  }
  .hero-section--encourage .hero-content {
    background: transparent;
    text-align: center;
    align-items: center !important;
  }
  .hero-section--about .hero-content { display: none; }

  .hero-sub {
    font-size: 36px !important; /* Frame 779: 製品名を強調 */
    margin-bottom: 8px !important;
    font-weight: 300;
    letter-spacing: 0.08em;
    line-height: 1.1;
  }
  .hero-title {
    font-size: 16px !important; /* Frame 779: サブタイトル */
    margin-bottom: 0 !important;
    font-weight: 400;
    letter-spacing: 0.05em;
  }
  .hero-encourage-logo {
    max-width: 260px !important; /* Frame 779: ENCOURAGEロゴ大きく */
    height: auto !important;
    margin-bottom: 8px !important;
  }
  .hero-section--encourage .hero-title {
    font-size: 18px !important;
    letter-spacing: 0.1em;
  }

  /* PC専用ボタン非表示 */
  .hero-btn--slide { display: none !important; }

  /* 画像エリア */
  .hero-visual {
    order: 2;
    width: 100% !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    background: transparent;
    overflow: hidden;
  }
  .hero-section:not(.hero-section--encourage):not(.hero-section--about) .hero-visual,
  .hero-section--encourage .hero-visual {
    background: transparent;
  }
  .hero-visual img {
    max-height: 100% !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
  }

  /* スライド3：SP時は画像をフルで表示（barの分の高さを除いて確保） */
  .hero-visual--about {
    display: block !important;
    order: 1;
    width: 100% !important;
    flex: 1 1 0 !important;
    min-height: 0 !important; /* flex子の縮小を許可してbarを必ず表示 */
    height: auto !important;
    padding: 0 !important;
    background: #c8cdd2;
    overflow: hidden;
  }
  .hero-visual--about picture,
  .hero-visual--about img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* スライド3画像を全体表示（切れない） */
    object-position: center;
    max-height: none !important;
    display: block;
    background: #f5f5f5;
  }

  /* 帯＋ボタン（スライド1・2） */
  .hero-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 64px !important;
    background: #294257;
    order: 3;
  }
  .hero-bar--encourage { background: #75C683 !important; }
  .hero-bar .hero-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 10px 20px !important;
    font-size: 13px !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    background: transparent !important;
    font-weight: 550;
    transition: 0.25s;
  }

  /* スライド3帯：SP時はstatic、他スライドと同じ濃紺ソリッド */
  .hero-bar--about {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 64px !important;
    min-height: 64px;
    flex-shrink: 0;
    background: #294257 !important;
    order: 3;
    width: 100% !important;
    z-index: 3;
    visibility: visible !important;
  }
  .hero-bar--about .hero-btn,
  .hero-section--about .hero-btn {
    position: static !important;
    transform: none !important;
    bottom: auto !important;
    left: auto !important;
    font-size: 13px !important;
    padding: 10px 20px !important;
    white-space: normal !important;
    text-align: center !important;
    height: auto !important;
    min-height: 40px;
    visibility: visible !important;
    opacity: 1 !important;
  }
}
