/* =========================================================
   松浦住宅｜工事ページ共通CSS
   対象：work/ 配下の各工事ページ
   Bootstrap 5.3.3 対応
   ========================================================= */

/* =========================================================
   基本
   ========================================================= */
:root {
  --work-green: #1f5a43;
  --work-green-dark: #164432;
  --work-green-light: #eaf3ee;
  --work-orange: #d9793a;
  --work-orange-light: #fff3e9;
  --work-gold: #c99a3b;
  --work-text: #28332e;
  --work-muted: #69756f;
  --work-bg: #f7f8f6;
  --work-white: #fff;
  --work-border: #dfe7e2;
  --work-shadow: 0 10px 30px rgba(22, 68, 50, .08);
  --work-radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--work-text);
  background: #fff;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--work-green);
}

a:hover {
  color: var(--work-green-dark);
}


/* =========================================================
   共通コンテナ
   ========================================================= */
.work-section {
  padding: 4.5rem 0;
}

.work-section-soft {
  background: var(--work-bg);
}

.work-section-head {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.work-section-head h2 {
  margin: 0 0 .75rem;
  color: var(--work-green-dark);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.45;
  font-weight: 800;
}

.work-section-head p {
  margin: 0;
  color: var(--work-muted);
}


/* =========================================================
   パンくず
   ========================================================= */
.work-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,.8);
  font-size: .82rem;
}

.work-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.work-breadcrumb a:hover {
  text-decoration: underline;
}

.work-breadcrumb span {
  opacity: .75;
}


/* =========================================================
   ページ上部 HERO
   ========================================================= */
.work-hero {
  position: relative;
  padding: 4.5rem 1rem;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      var(--work-green-dark),
      var(--work-green)
    );
  color: #fff;
}

.work-hero .container {
  position: relative;
  z-index: 1;
}

.work-eyebrow {
  margin: 0 0 .45rem;
  color: #cfe4d9;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.work-hero h1 {
  margin: 0 0 .75rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.35;
  font-weight: 800;
}

.work-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: 1.05rem;
  line-height: 1.9;
}


/* =========================================================
   テキスト
   ========================================================= */
.work-section h2 {
  color: var(--work-green-dark);
  font-weight: 800;
}

.work-section h3 {
  color: var(--work-green-dark);
  font-weight: 800;
  line-height: 1.5;
}

.work-section p {
  color: var(--work-text);
}

.work-section strong {
  color: var(--work-green-dark);
}


/* =========================================================
   防犯ページ用：注意・強調エリア
   ========================================================= */
.security-alert {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--work-orange);
  border-radius: 10px;
  background: var(--work-orange-light);
}

.security-alert h3 {
  margin: 0 0 .6rem;
  color: #8b4b21;
  font-size: 1.25rem;
}

.security-alert p {
  margin: 0;
}

.security-stat {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: var(--work-green-light);
  color: var(--work-green-dark) !important;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
}

.security-stat span {
  color: var(--work-orange);
  font-size: 1.3em;
}


/* =========================================================
   防犯商品カード
   ========================================================= */
.security-product-card {
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--work-border);
  border-radius: var(--work-radius);
  background: #fff;
  box-shadow: var(--work-shadow);
}

.security-product-card h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.security-product-card p {
  margin-bottom: .7rem;
}

.security-product-card .security-price {
  margin-top: 1.25rem;
  color: var(--work-orange);
  font-size: 1.4rem;
  font-weight: 800;
}


/* =========================================================
   汎用カード
   ========================================================= */
.work-card {
  height: 100%;
  padding: 1.5rem;
  border: 1px solid var(--work-border);
  border-radius: var(--work-radius);
  background: #fff;
  box-shadow: var(--work-shadow);
}

.work-card h3 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

.work-card p:last-child {
  margin-bottom: 0;
}


/* =========================================================
   画像
   ========================================================= */
.work-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.work-image-box {
  overflow: hidden;
  border-radius: var(--work-radius);
  background: #fff;
  box-shadow: var(--work-shadow);
}

.work-image-box img {
  display: block;
  width: 100%;
  height: auto;
}


/* =========================================================
   CTA
   全体を中央配置
   ========================================================= */
.work-cta {
  padding: 3.2rem 0;
  background: var(--work-green-dark);
  color: #fff;
}

.work-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;

  max-width: 900px;
  margin: 0 auto;

  text-align: center;
}

/* CTA文字部分 */
.work-cta-content {
  width: 100%;
}

.work-cta-kicker {
  margin: 0 0 .4rem;
  color: #cfe4d9 !important;
  font-size: .82rem !important;
  font-weight: 800;
  letter-spacing: .08em;
}

.work-cta h2 {
  margin: 0 0 .65rem;
  color: #fff;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.5;
  font-weight: 800;
}

.work-cta-content > p:last-child {
  margin: 0;
  color: #e4eee9;
  line-height: 1.8;
}

/* CTAボタン */
.work-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;

  min-width: 230px;
  padding: .9rem 1.5rem;

  border: 1px solid rgba(255,255,255,.5);
  border-radius: 10px;

  background: #fff;
  color: var(--work-green-dark);

  text-decoration: none;
  font-weight: 800;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.work-cta-button:hover {
  color: var(--work-green-dark);
  background: #f7faf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.work-cta-button i {
  font-size: 1rem;
}


/* =========================================================
   リンク・ボタン
   ========================================================= */
.work-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.2rem;
  border-radius: 9px;
  background: var(--work-green);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: .2s ease;
}

.work-button:hover {
  color: #fff;
  background: var(--work-green-dark);
  transform: translateY(-1px);
}


/* =========================================================
   レスポンシブ：タブレット
   ========================================================= */
@media (max-width: 991.98px) {

  .work-section {
    padding: 3.75rem 0;
  }

  .work-hero {
    padding: 3.75rem 1rem;
  }

}


/* =========================================================
   レスポンシブ：スマートフォン
   ========================================================= */
@media (max-width: 767.98px) {

  .work-section {
    padding: 3rem 0;
  }

  .work-section-head {
    margin-bottom: 2rem;
  }

  .work-hero {
    padding: 3rem 1rem;
  }

  .work-hero h1 {
    font-size: 2rem;
  }

  .work-lead {
    font-size: .95rem;
  }

  .work-breadcrumb {
    font-size: .76rem;
  }

  .security-alert {
    padding: 1.25rem;
  }

  .security-stat {
    padding: 1rem;
    font-size: 1rem;
  }

  .security-product-card {
    padding: 1.35rem;
  }

  /* CTA */
  .work-cta {
    padding: 2.5rem 1rem;
  }

  .work-cta-inner {
    width: 100%;
    gap: 1.1rem;
  }

  .work-cta h2 {
    font-size: 1.35rem;
    line-height: 1.6;
  }

  .work-cta-content > p:last-child {
    font-size: .92rem;
  }

  .work-cta-button {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }

}


/* =========================================================
   小型スマートフォン
   ========================================================= */
@media (max-width: 575.98px) {

  .work-section {
    padding: 2.5rem 0;
  }

  .work-hero {
    padding: 2.5rem 1rem;
  }

  .work-hero h1 {
    font-size: 1.8rem;
  }

  .work-section-head h2 {
    font-size: 1.5rem;
  }

  .security-product-card {
    padding: 1.2rem;
  }

}


/* =========================================================
   アクセシビリティ
   ========================================================= */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}
