@charset "UTF-8";

/* ============================================================
   設備工事業向けホームページ B（CRAFTLY 自主制作サンプル）
   ============================================================ */

:root {
  --color-bg:          #FFFFFF;
  --color-surface:     #F4F7FA;
  --color-text:        #1A1A1A;
  --color-text-muted:  #5B6670;
  --color-accent:      #0068B7;
  --color-accent-dark: #00539A;
  --color-accent-tint: #E8F1F9;
  --color-border:      #DDE4EA;

  --container: 1120px;
  --pad-x: 32px;
  --section-y: 96px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 18px rgba(17, 58, 94, .07);

  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --font-script: "Klee One", "Noto Sans JP", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }
h1, h2, h3 { line-height: 1.5; font-weight: 700; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ============ ボタン ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-icon { width: 22px; height: 22px; flex: none; }
.btn-arrow { width: 20px; height: 20px; flex: none; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
  box-shadow: 0 6px 18px rgba(0, 104, 183, .22);
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }

.btn-outline {
  background: #fff;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent-tint); }

.btn-tel-body { display: flex; flex-direction: column; align-items: flex-start; }
.btn-label { font-size: 13px; font-weight: 400; letter-spacing: .04em; }
.btn-num { font-size: 23px; font-weight: 700; letter-spacing: .04em; }

/* ============ ヘッダー ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 80px;
}

.logo { display: flex; align-items: baseline; gap: 14px; text-decoration: none; color: inherit; }
.logo-name { font-size: 23px; font-weight: 700; letter-spacing: .26em; }
.logo-sub { font-size: 12px; color: var(--color-text-muted); letter-spacing: .02em; }

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.header-nav a { font-size: 14px; font-weight: 700; color: var(--color-text); text-decoration: none; }
.header-nav a:hover { color: var(--color-accent); }

.header-tel { display: block; text-decoration: none; color: inherit; text-align: left; }
.header-tel-label { display: block; font-size: 11px; line-height: 1.6; color: var(--color-text-muted); }
.header-tel-main { display: flex; align-items: center; gap: 10px; }
.header-tel-icon {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
}
.header-tel-icon svg { width: 17px; height: 17px; }
.header-tel-num { font-size: 26px; font-weight: 700; letter-spacing: .03em; color: var(--color-accent); line-height: 1.2; }

/* ============ ファーストビュー ============ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(115deg, #E9F4EC 0%, #F3F9FC 38%, #E9F2FA 100%);
}

.hero-leaf {
  position: absolute;
  inset: 0 auto 0 0;
  width: 190px;
  z-index: 0;
}
.hero-leaf img { width: 100%; height: 100%; object-fit: cover; }
.hero-leaf::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(243, 249, 252, 0) 0%, rgba(243, 249, 252, .65) 55%, rgba(243, 249, 252, 1) 100%);
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 53%;
  z-index: 0;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 88% center; }
.hero-photo::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 180px;
  background: linear-gradient(90deg, rgba(243, 249, 252, 1) 0%, rgba(243, 249, 252, 0) 100%);
}

.hero-inner { position: relative; z-index: 1; padding-block: 72px; }
.hero-body { max-width: 560px; }

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 4px 16px;
  border-radius: 3px;
  background: #DCE9F5;
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.hero-title { font-size: 46px; line-height: 1.42; letter-spacing: .01em; }
.hero-title .accent { color: var(--color-accent); }

.hero-lead { margin-top: 22px; font-size: 16px; color: #33414D; }

.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero-note { margin-top: 30px; font-size: 13px; color: var(--color-text-muted); }

/* ============ セクション共通 ============ */

.section { position: relative; padding-block: var(--section-y); overflow: hidden; }

.section-title {
  position: relative;
  padding-left: 22px;
  font-size: 33px;
  letter-spacing: .01em;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: .3em;
  width: 6px; height: 1em;
  border-radius: 3px;
  background: var(--color-accent);
}

.section-lead { margin-top: 12px; padding-left: 22px; color: #33414D; }

.section-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head-main { flex: 1 1 460px; }
.section-head-note { font-size: 14px; color: var(--color-text-muted); text-align: right; line-height: 1.9; }

.script-service {
  position: absolute;
  right: 150px;
  top: -34px;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 66px;
  line-height: 1;
  color: #BFDCF2;
  pointer-events: none;
  user-select: none;
}

/* ============ 2. 対応する工事内容 ============ */

.services {
  background:
    radial-gradient(1200px 600px at 8% 55%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(170deg, #EAF4FB 0%, #F4FAFD 45%, #E6F1FA 100%);
}
.services-wave {
  position: absolute;
  left: -6%; top: 12%;
  width: 118%; height: 74%;
  color: rgba(255, 255, 255, .55);
  pointer-events: none;
}

.cards {
  position: relative;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: visible;
}

.card-figure {
  position: relative;
  aspect-ratio: 16 / 6;
}
.card-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-badge {
  position: absolute;
  left: 22px; bottom: -28px;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 0 4px #fff;
  z-index: 2;
}
.card-badge svg { width: 26px; height: 26px; }

.card-body { padding: 16px 24px 30px; }

.card-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-left: 58px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.card-index { font-size: 13px; font-weight: 700; color: var(--color-accent); letter-spacing: .08em; }
.card-title { font-size: 20px; letter-spacing: 0; white-space: nowrap; }

.card-list { display: grid; gap: 8px; }
.card-list li { position: relative; padding-left: 20px; font-size: 14px; line-height: 1.8; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .62em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.card-text { margin-top: 20px; font-size: 14px; line-height: 1.85; color: var(--color-text-muted); }

/* ----- よくあるご相談（アイコン列） ----- */

.chips {
  position: relative;
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(6, auto);
  justify-content: space-between;
  gap: 10px;
}
.chip { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.chip-icon {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-accent);
  box-shadow: 0 1px 6px rgba(17, 58, 94, .08);
}
.chip-icon svg { width: 22px; height: 22px; }

.notice {
  position: relative;
  margin-top: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 34px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ============ 3. 施工事例 ============ */

.works {
  background: #fff;
  padding-block: 88px;
}

.works-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 28px 30px;
}

.work-title {
  font-size: 18px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.work-photos {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.work-photo { position: relative; margin: 0; }
.work-photo img {
  width: 100%;
  aspect-ratio: 540 / 984;
  object-fit: cover;
  border-radius: var(--radius);
}
.work-caption {
  position: absolute;
  top: 10px; left: -8px;
  padding: 3px 14px;
  border-radius: 999px;
  background: #4A4F55;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.work-photo--after .work-caption { background: var(--color-accent); }

.work-pending {
  width: 100%;
  aspect-ratio: 540 / 984;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px dashed #B9C6D2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-text-muted);
}
.work-pending .pending-icon { width: 30px; height: 30px; opacity: .65; }
.work-pending-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
}

.work-arrow { width: 20px; height: 20px; color: var(--color-accent); }

.work-text {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-text-muted);
}

/* ============ 4. 会社紹介・事業者情報 ============ */

.about {
  display: grid;
  grid-template-columns: 34% 1fr 20%;
  background: linear-gradient(120deg, #1479C4 0%, #0F66AC 60%, #0B5796 100%);
}

.about-figure { position: relative; overflow: hidden; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }

.about-script {
  position: absolute;
  left: 8%; top: 16%;
  font-family: var(--font-script);
  font-size: 25px;
  line-height: 2.1;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 40, 80, .35);
}
.about-script .indent { display: inline-block; margin-left: 1.6em; }

.about-body { background: #fff; padding: 50px 48px; }
.about-title { font-size: 25px; }
.about-text { margin-top: 20px; font-size: 15px; line-height: 1.95; color: #33414D; }

.info-caption {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
}
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td {
  border: 1px solid var(--color-border);
  padding: 9px 18px;
  text-align: left;
  line-height: 1.8;
}
.info-table th { width: 30%; background: #FAFCFD; font-weight: 700; white-space: nowrap; }

/* ============ 5. お問い合わせ ============ */

.contact {
  position: relative;
  overflow: hidden;
  padding-block: 44px;
  background:
    radial-gradient(60px 60px at 8% 30%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(40px 40px at 14% 72%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(90px 90px at 3% 85%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(50px 50px at 22% 14%, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(110deg, #0A5EA6 0%, #0B67B2 45%, #07487F 100%);
  color: #fff;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-main { flex: 1 1 400px; }
.contact-title { font-size: 23px; }
.contact-text { margin-top: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .9); }

.contact-tel-block { display: flex; align-items: center; gap: 14px; }
.contact-tel-icon {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  background: #fff;
  color: var(--color-accent);
}
.contact-tel-icon svg { width: 24px; height: 24px; }
.contact-tel-label { font-size: 13px; color: rgba(255, 255, 255, .9); line-height: 1.6; }
.contact-tel {
  display: block;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
}

/* ============ フッター ============ */

.site-footer { background: #0E2A42; color: #fff; padding-block: 40px; }
.footer-inner { display: grid; gap: 8px; }
.footer-name { font-size: 19px; font-weight: 700; letter-spacing: .24em; }
.footer-meta { font-size: 13px; color: rgba(255, 255, 255, .78); }
.footer-copy { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ============ スマホ固定バー ============ */

.fixed-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.fixed-bar.is-visible { transform: translateY(0); }
.fixed-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.fixed-bar-label { font-size: 14px; }
.fixed-bar-num { font-size: 20px; letter-spacing: .04em; }

/* ============ レスポンシブ（768px） ============ */

@media (max-width: 767px) {
  :root { --pad-x: 20px; --section-y: 60px; }

  body { padding-bottom: 72px; }

  .header-inner { min-height: 62px; gap: 10px; }
  .header-nav { display: none; }
  .logo-name { font-size: 19px; letter-spacing: .18em; }
  .logo-sub { display: none; }
  .header-tel { margin-left: auto; }
  .header-tel-label { display: none; }
  .header-tel-num { font-size: 21px; }
  .header-tel-icon { width: 30px; height: 30px; }

  .hero { display: block; min-height: 0; }
  .hero-leaf { display: none; }
  .hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 215px;
  }
  .hero-photo::before { display: none; }
  .hero-photo img { object-position: 35% bottom; }
  .hero-inner { padding-block: 36px 34px; }
  .hero-title { font-size: 28px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }

  .section-title { font-size: 24px; padding-left: 14px; }
  .section-title::before { width: 4px; }
  .section-lead { padding-left: 14px; font-size: 15px; }
  .section-head-note { display: none; }
  .script-service { right: 10px; top: -46px; font-size: 38px; }

  .cards { grid-template-columns: 1fr; gap: 40px; margin-top: 36px; }
  .card-figure { aspect-ratio: 16 / 7; }

  .chips { grid-template-columns: repeat(2, 1fr); justify-content: stretch; gap: 16px 8px; margin-top: 40px; }
  .chip { justify-content: flex-start; font-size: 12px; white-space: normal; }
  .chip-icon { width: 36px; height: 36px; }
  .chip-icon svg { width: 19px; height: 19px; }

  .notice { margin-top: 36px; padding: 22px 20px; font-size: 15px; }

  .works { padding-block: 56px; }
  .works-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .work { padding: 20px; }
  .work-photos { gap: 8px; }
  .work-caption { left: -4px; top: 8px; padding: 2px 11px; font-size: 11px; }
  .work-pending .pending-icon { width: 24px; height: 24px; }
  .work-pending-text { font-size: 11.5px; }

  .about { grid-template-columns: 1fr; }
  .about-figure { height: 220px; }
  .about-figure--worker { height: 180px; }
  .about-script { font-size: 20px; left: 6%; top: 14%; }
  .about-body { padding: 32px 20px 36px; }
  .about-title { font-size: 22px; }
  .info-table th { width: 36%; }
  .info-table th, .info-table td { padding: 8px 12px; }

  .contact { padding-block: 34px; }
  .contact-inner { display: block; }
  .contact-title { font-size: 21px; }
  .contact-tel-block { margin-top: 22px; }
  .contact-tel { font-size: 33px; }

  .fixed-bar { display: block; }
}

/* ============================================================
   サンプル告知（提案用）
   ※ 正式公開（納品）時は、このブロックと index.html の
     .sample-notice / .footer-sample を削除してください。
   ============================================================ */

.sample-notice {
  background: #2B3238;
  color: #FFFFFF;
  padding-block: 9px;
}

.sample-notice-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sample-notice-tag {
  flex-shrink: 0;
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.sample-notice-text {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.footer-sample {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .sample-notice { padding-block: 10px; }
  .sample-notice-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .sample-notice-text { font-size: 11.5px; }
}
