/* ============================================================
   style.css — 布施建設株式会社 Webサイト
   Base: CSS Variables / Reset / Typography / Utilities
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  /* Brand Colors */
  --clr-primary:        #4a9e3a;
  --clr-primary-dark:   #3a7e2d;
  --clr-primary-light:  #eaf5e6;
  --clr-accent:         #e07b10;
  --clr-accent-light:   #fef3e7;

  /* Neutral */
  --clr-text:           #333333;
  --clr-text-sub:       #666666;
  --clr-text-white:     #ffffff;
  --clr-bg:             #ffffff;
  --clr-bg-gray:        #f6f6f6;
  --clr-border:         #e0e0e0;

  /* Typography */
  --font:               'Noto Sans JP', sans-serif;
  --lh:                 1.8;

  /* Spacing */
  --gap-sm:             12px;
  --gap-md:             24px;
  --gap-lg:             40px;
  --section-py:         56px;
  --container-max:      1100px;
  --container-px:       20px;

  /* Misc */
  --radius:             6px;
  --radius-lg:          12px;
  --shadow:             0 2px 12px rgba(0,0,0,0.10);
  --transition:         0.2s ease;
}

@media (min-width: 1024px) {
  :root {
    --section-py:       96px;
    --container-px:     40px;
  }
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: var(--lh);
  color: var(--clr-text);
  background: var(--clr-bg);
}

@media (min-width: 768px) {
  body { font-size: 16px; }
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.4;
  font-weight: 700;
}

h1 { font-size: clamp(24px, 5vw, 40px); }
h2 { font-size: clamp(20px, 4vw, 30px); }
h3 { font-size: clamp(16px, 2.5vw, 20px); }
h4 { font-size: clamp(15px, 2vw, 17px); }

p + p { margin-top: 1em; }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ── Section ────────────────────────────────────────────── */
.section {
  padding: var(--section-py) 0;
}

.section--gray {
  background: var(--clr-bg-gray);
}

/* ── Section Heading ────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .section-head { margin-bottom: 56px; }
}

.section-head__title {
  position: relative;
  display: inline-block;
  font-size: clamp(20px, 3.5vw, 28px);
  color: var(--clr-text);
  padding-bottom: 14px;
}

.section-head__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--clr-primary);
  border-radius: 2px;
}

.section-head__sub {
  margin-top: 8px;
  color: var(--clr-text-sub);
  font-size: 14px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-text-white);
  border-color: var(--clr-primary);
}

.btn--primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn--outline:hover {
  background: var(--clr-primary);
  color: var(--clr-text-white);
}

.btn--white {
  background: var(--clr-text-white);
  color: var(--clr-primary);
  border-color: var(--clr-text-white);
}

.btn--white:hover {
  background: transparent;
  color: var(--clr-text-white);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 16px;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  padding: 10px 0 0;
  font-size: 13px;
  color: var(--clr-text-sub);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin-right: 4px;
  color: var(--clr-border);
}

.breadcrumb__item a:hover {
  color: var(--clr-primary);
  text-decoration: underline;
}

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  position: relative;
  padding: 48px 0;
  background: url('/assets/images/common/page-header-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 60, 30, 0.52);
}

.page-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-header__title {
  color: #fff;
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: 0.06em;
}

.page-header .breadcrumb {
  padding: 0;
  font-size: 13px;
  color: #fff;
  text-align: right;
  flex-shrink: 0;
}

.page-header .breadcrumb__item a {
  color: #fff;
}

.page-header .breadcrumb__item a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-header .breadcrumb__item + .breadcrumb__item::before {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Badge / Category Label ─────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  line-height: 1.6;
}

.badge--green  { background: var(--clr-primary); color: #fff; }
.badge--orange { background: var(--clr-accent);  color: #fff; }
.badge--gray   { background: #888; color: #fff; }

/* ── Utility ────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--gap-sm); }
.mt-md { margin-top: var(--gap-md); }
.mt-lg { margin-top: var(--gap-lg); }

/* ── CTA Banner（全ページ共通） ─────────────────────────── */
.cta-banner {
  padding: 72px 0;
  text-align: center;
  background: var(--clr-primary-light);
  border-top: 4px solid var(--clr-primary);
}

.cta-banner__title {
  color: var(--clr-primary);
  font-size: clamp(18px, 3vw, 26px);
  margin-bottom: 8px;
}

.cta-banner__text {
  color: var(--clr-text-sub);
  margin-bottom: 32px;
  font-size: 15px;
}
