@charset "utf-8";

/* ===============================
   LEDページ：inviewアニメーション
=============================== */
.led-guide-page .up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.led-guide-page .upstyle {
  opacity: 1;
  transform: translateY(0);
}

/* SVGにもtransformが効くようにする */
.led-guide-page svg {
  display: block;
}

.led-guide-page .svg-wrapper {
  overflow: visible;
}

/* ============================================
   LED化の流れ（flow）専用：4カード横並び
   ※ 他セクションの .card と完全に分離
============================================ */

/* 親コンテナ：横並び＋折り返し */
.led-guide-page #flow .flow-steps {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 2rem !important;
  justify-content: space-between !important;
}

/* flow専用カード（共通.cardを完全に無効化） */
.led-guide-page #flow .flow-steps .flow-card {
  flex: 0 0 calc(25% - 1.5rem) !important;   /* PCで4つ横並び */
  max-width: calc(25% - 1.5rem) !important;  /* 幅を完全固定 */
  box-sizing: border-box !important;

  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px) saturate(180%);
  border-radius: 18px;
  padding: 2rem 1.6rem;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: left !important;

  box-shadow:
    0 0 0 1px rgba(255,255,255,0.5) inset,
    0 12px 35px rgba(0,0,0,0.08);

  transition: transform .3s ease, box-shadow .3s ease;
}

/* ホバー効果 */
.led-guide-page #flow .flow-steps .flow-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.7) inset,
    0 18px 45px rgba(0,0,0,0.12);
}

/* 番号（01〜04） */
.led-guide-page #flow .flow-steps .flow-card .no {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: .8rem;
  text-align: center;
}

/* アイコン */
.led-guide-page #flow .flow-steps .flow-card .image {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.led-guide-page #flow .flow-steps .flow-card .image svg {
  width: 48px;
  height: 48px;
  stroke: #003366;
  fill: none;
}

/* 見出し */
.led-guide-page #flow .flow-steps .flow-card .text h4 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: .6rem;
  color: #003366;
}

/* 本文 */
.led-guide-page #flow .flow-steps .flow-card .text p {
  text-align: left;
  font-size: .95rem;
  line-height: 1.7;
}

/* スマホは縦並び */
@media (max-width: 768px) {
  .led-guide-page #flow .flow-steps .flow-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* ===============================
   蛍光灯製造終了・LED提案など他セクション
=============================== */
.led-guide-page section .cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 2rem;
}

.led-guide-page section .card {
  flex: 1;
  min-width: calc(33.333% - 1.4rem);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px) saturate(180%);
  border-radius: 18px;
  padding: 2rem 1.6rem;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.5) inset,
    0 12px 35px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .3s ease, box-shadow .3s ease;
}

.led-guide-page section .card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.7) inset,
    0 18px 45px rgba(0,0,0,0.12);
}

/* アイコン中央 */
.led-guide-page section .card .icon,
.led-guide-page section .card .image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.led-guide-page section .card .icon svg,
.led-guide-page section .card .image svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

/* 見出し中央 */
.led-guide-page section .card h3 {
  text-align: center;
  color: #003366;
}

/* 本文左寄せ */
.led-guide-page section .card p {
  text-align: left;
  font-size: .95rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .led-guide-page section .cards {
    flex-direction: column;
  }
  .led-guide-page section .card {
    min-width: 100%;
  }
}

.led-guide-page section:not(#flow) .card .icon svg,
.led-guide-page section:not(#flow) .card .image svg {
  width: 48px;
  height: 48px;
  fill: #003366;
  margin: 0 auto;
}

.flex1 {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.flex1 .img,
.flex1 .text {
    flex: 1 1 50%;
}

.flex1 .img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
/* ▼ 初期状態：スクロール前は非表示（ふわっと表示の準備） */
.inview {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

/* ▼ スクロールで表示されたらふわっと出る */
.inview.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* ▼ 画像の角丸＋ホバーでふんわり浮き上がる */
.flex1 .img img {
    border-radius: 14px; /* 角を丸く */
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        filter 0.4s ease;
    display: block;
}

/* ▼ ホバー時のふんわり浮き上がり */
.flex1 .img img:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    filter: brightness(1.05);
}


/* ヘッダー下の余白をゼロに */
header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* contents の上余白をゼロに */
#contents {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 最初のセクションの余白をゼロに */
.led-guide-page .bg-hero {
    margin-top: 30px !important;
    padding-top: 0 !important;
}

/* 奇数セクション：白背景＋上下パディング統一 */
.led-guide-page section:nth-of-type(odd) {
    background-color: #ffffff;
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 0; /* 上下マージンは使わない（高さがズレる原因） */
}

/* 偶数セクション：背景色＋上下パディング統一 */
.led-guide-page section:nth-of-type(even) {
    background-color: #f1f4f1;
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 0; /* 上下マージンは使わない */
}
