@charset "utf-8";

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

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

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

.weak-page .svg-wrapper {
  overflow: visible;
}

/* ============================================
   空調設備：flow専用（4カード横並び）
============================================ */

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

/* flow専用カード（共通.cardを完全に無効化） */
.weak-page #flow .flow-steps .flow-card {
  flex: 0 0 calc(25% - 1.5rem) !important;
  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;
}

/* ホバー効果 */
.weak-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） */
.weak-page #flow .flow-steps .flow-card .no {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: .8rem;
  text-align: center;
}

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

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

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

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

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

/* ===============================
   他セクション（カード3列）
=============================== */
.weak-page section .cards {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: stretch;
  margin-top: 2rem;
}

.weak-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;
}

.weak-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);
}

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

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

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

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

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

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

/* ===============================
   HEROセクション（画像＋テキスト）
=============================== */

.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;
}

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

/* 奇数セクション：白背景 */
.weak-page section:nth-of-type(odd) {
    background-color: #ffffff;
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 0;
}

/* 偶数セクション：淡色背景 */
.weak-page section:nth-of-type(even) {
    background-color: #f1f4f1;
    padding-top: 40px;
    padding-bottom: 40px;
    margin: 0;
}
