@charset "UTF-8";
/* ==========================================================
   守山ガス器具センター住設 トップページ
   配色：#2A7DE1（メイン青）#EAF4FF（淡い青）#222F3E（文字）
         #FFFFFF #FF8A00（オレンジ）#E94F37（赤オレンジ）
   フォント：見出し Zen Maru Gothic／本文 Noto Sans JP
   ========================================================== */

/* ----- 変数 ----- */
:root {
  --blue: #2A7DE1;
  --blue-dark: #1E66C4;
  --blue-light: #EAF4FF;
  --text: #222F3E;
  --gray: #6B7785;
  --line: #DDE6F0;
  --white: #FFFFFF;
  --orange: #FF8A00;
  --red-orange: #E94F37;
  --dummy: #A9B3BE;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --header-h: 72px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(34, 47, 62, .08);
}

/* ----- リセット・基本 ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 800px; }
.sp-only { display: none; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }
.dummy { color: var(--dummy); }

/* ----- ボタン ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.6em;
  border-radius: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  border: 2px solid transparent;
  transition: opacity .2s, background-color .2s, color .2s;
  cursor: pointer;
}
.btn:hover { opacity: .85; }
.btn .arrow { font-size: 1.3em; line-height: 1; margin-left: .2em; }
.btn--orange { background: var(--orange); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--outline { background: rgba(255,255,255,.92); color: var(--blue); border-color: var(--blue); }
.btn--sm { padding: .55em 1.1em; font-size: 14px; }
.btn--lg { padding: .85em 1.8em; font-size: 17px; min-width: 240px; }

/* ----- 見出し ----- */
.sec-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--blue);
  text-align: center;
  letter-spacing: .08em;
  line-height: 1.4;
  padding-bottom: 14px;
  margin-bottom: 32px;
  position: relative;
}
.sec-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 28px; height: 3px; background: var(--blue); transform: translateX(-50%); border-radius: 2px;
}
.sec-head { position: relative; }
.more-link {
  position: absolute; right: 0; top: 10px;
  color: var(--blue); font-size: 14px; font-weight: 700;
}
.more-link span { margin-left: .4em; }
.section { padding: 40px 0 8px; }

/* ==========================================================
   ヘッダー
   ========================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  max-width: 1280px; margin: 0 auto; height: var(--header-h);
  padding: 0 32px;
  display: flex; align-items: center; gap: 24px;
}
.header__logo {
  font-family: var(--font-head); font-weight: 700;
  font-size: 24px; letter-spacing: .02em; white-space: nowrap;
}
.gnav { margin-left: auto; }
.gnav__list { display: flex; gap: 28px; }
.gnav__list a { font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.gnav__list a:hover { color: var(--blue); }
.gnav__sp { display: none; }
.header__cta { display: flex; align-items: center; gap: 16px; }
.header__tel {
  display: flex; align-items: center; gap: 4px;
  color: var(--blue); font-family: var(--font-head); font-weight: 700; white-space: nowrap;
}
.header__tel .ico { width: 20px; height: 20px; }
.header__tel-label { font-size: 13px; margin-left: 2px; }
.header__tel-num { font-size: 22px; letter-spacing: .02em; }
.header__contact .ico { width: 18px; height: 18px; }
.hamburger { display: none; }

/* ==========================================================
   メインビジュアル
   ========================================================== */
.hero {
  position: relative;
  background: url("../images/hero.jpg") center 40% / cover no-repeat;
  padding: 72px 20px 88px;
  text-align: center;
}
.hero::before {
  /* 文字を読みやすくする白いグラデーション */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 70% at 50% 45%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.1) 100%);
}
.hero__inner { position: relative; max-width: 900px; margin: 0 auto; }
.hero__title {
  font-family: var(--font-head); font-weight: 900;
  font-size: 46px; line-height: 1.35; letter-spacing: .02em;
  text-shadow: 0 0 12px rgba(255,255,255,.9);
}
.hero__title .small { font-size: .78em; }
.hero__title .blue { color: var(--blue); }
.hero__lead { margin-top: 18px; font-weight: 700; font-size: 16px; }
.hero__sep { margin: 0 .5em; }
.hero__btns { margin-top: 24px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero__btns .ico { width: 20px; height: 20px; }

/* ==========================================================
   トラブル電話帯
   ========================================================== */
.trouble {
  position: relative; z-index: 1;
  max-width: 1120px; margin: -30px auto 0;
  display: flex; align-items: stretch;
  border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow);
}
.trouble__photo { width: 220px; flex-shrink: 0; }
.trouble__photo img { width: 100%; height: 100%; object-fit: cover; }
.trouble__body {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 32px;
  background: linear-gradient(90deg, var(--red-orange) 0%, var(--orange) 100%);
  color: var(--white);
}
.trouble__text {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.4;
}
.trouble__text small { font-size: .8em; }
.trouble__drop { width: 24px; height: 32px; fill: var(--white); flex-shrink: 0; }
.trouble__tel {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700;
}
.trouble__tel-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--white);
  display: grid; place-items: center;
}
.trouble__tel-icon svg { width: 20px; height: 20px; fill: var(--red-orange); }
.trouble__tel-label { font-size: 18px; }
.trouble__tel-num { font-size: 34px; letter-spacing: .02em; line-height: 1; }

/* ==========================================================
   選ばれる理由
   ========================================================== */
.reason__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.reason__item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px 20px;
  background: var(--blue-light);
  border-radius: 6px;
}
.reason__icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--white); flex-shrink: 0;
  display: grid; place-items: center; padding: 12px;
}
.reason__icon img { max-height: 56px; width: auto; }
.reason__title { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.5; margin-bottom: 8px; }
.reason__text { font-size: 13px; line-height: 1.7; }

/* ==========================================================
   カード（サービス・施工事例）
   ========================================================== */
.card-grid { display: grid; gap: 14px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow); overflow: hidden;
}
.card__link { display: flex; flex-direction: column; height: 100%; padding: 8px; transition: transform .2s; }
.card__link:hover { transform: translateY(-2px); }
.card__img { aspect-ratio: 2 / 1; overflow: hidden; border-radius: 3px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { position: relative; padding: 12px 6px 8px; flex: 1; }
.card__title { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.5; margin-bottom: 6px; }
.card__text { font-size: 13px; line-height: 1.7; color: var(--gray); padding-right: 32px; }
.card__arrow {
  position: absolute; right: 6px; bottom: 8px;
  width: 24px; height: 24px; border: 1.5px solid var(--blue); border-radius: 50%;
  color: var(--blue); display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.card--works { padding: 8px; }
.card--works .card__body { padding: 10px 4px 4px; }
.works__name { font-size: 14px; font-weight: 500; }
.works__detail { font-size: 12px; color: var(--gray); }

/* ==========================================================
   ご依頼の流れ
   ========================================================== */
.flow__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.flow__text { white-space: nowrap; }
.flow__item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 10px;
  background: var(--blue-light); border-radius: 6px;
}
.flow__item:not(:last-child)::after {
  content: "›"; position: absolute; right: -18px; top: 50%; transform: translateY(-55%);
  color: var(--blue); font-size: 24px; line-height: 1;
}
.flow__icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--white); flex-shrink: 0;
  display: grid; place-items: center;
}
.flow__icon img { max-width: 34px; max-height: 34px; }
.flow__text { font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.4; }
.flow__step { display: block; color: var(--blue); font-size: 12px; }

/* ==========================================================
   お知らせ
   ========================================================== */
.news__list { border-top: 1px solid var(--line); }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list a { display: flex; gap: 24px; padding: 10px 20px; font-size: 14px; transition: background-color .2s; }
.news__list a:hover { background: var(--blue-light); }
.news__list time { flex-shrink: 0; color: var(--text); }
.news__title { color: var(--dummy); }

/* ==========================================================
   採用バナー
   ========================================================== */
.recruit { padding: 24px 0 16px; }
.recruit__banner {
  display: flex; align-items: center; gap: 32px;
  background: linear-gradient(90deg, #DCEBFB 0%, var(--blue-light) 100%);
  border-radius: 4px; overflow: hidden; min-height: 116px;
}
.recruit__photo { width: 50%; align-self: stretch; }
.recruit__photo img { width: 100%; height: 100%; object-fit: cover; }
.recruit__body { flex: 1; padding: 16px 0; }
.recruit__title { font-family: var(--font-head); font-weight: 900; font-size: 30px; line-height: 1.3; }
.recruit__text { font-size: 13px; margin-top: 4px; }
.recruit__btn { margin-right: 12px; flex-shrink: 0; }

/* ==========================================================
   会社案内
   ========================================================== */
.company { padding: 16px 0 32px; }
.company__inner { display: grid; grid-template-columns: 1.4fr 1.4fr 1.1fr auto; align-items: center; }
.company__col { padding: 4px 24px; font-size: 13px; line-height: 1.8; }
.company__col:not(:last-child) { border-right: 1px solid var(--line); }
.company__col:first-child { padding-left: 0; }
.company__about { display: flex; align-items: center; gap: 16px; }
.company__building {
  width: 64px; height: 64px; flex-shrink: 0; background: var(--blue-light); border-radius: 4px;
  display: grid; place-items: center;
}
.company__building svg { width: 38px; height: 38px; fill: var(--blue); }
.company__title { font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: 18px; }
.company__tel {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; color: var(--blue); font-size: 22px; line-height: 1.4;
}
.company__tel-label { font-size: 14px; }
.company__contact p { padding-left: 26px; }
.company__hours { display: flex; align-items: center; gap: 6px; padding-left: 0 !important; }
.company__hours .ico { color: var(--blue); }
.company__sub { display: flex; align-items: center; gap: 6px; font-family: var(--font-head); color: var(--blue); font-size: 15px; }
.company__btn { padding-right: 0; }
.company__btn .btn--lg { min-width: 0; padding: .85em 1.4em; }
.company__col { white-space: nowrap; }

/* ==========================================================
   お問い合わせフォーム
   ========================================================== */
.contact { background: var(--blue-light); padding: 56px 0; }
.contact__lead { text-align: center; margin-bottom: 28px; }
.contact__lead a { color: var(--blue); font-weight: 700; }
.form { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; margin-bottom: 18px; }
.form__row label { font-weight: 700; font-size: 15px; padding-top: 8px; }
.req { display: inline-block; margin-left: 8px; padding: 0 6px; font-size: 11px; background: var(--red-orange); color: var(--white); border-radius: 3px; vertical-align: middle; line-height: 1.7; }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 16px;
  border: 1px solid #C7D3E0; border-radius: 6px; background: #FBFDFF;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form__submit { text-align: center; margin-top: 24px; }

/* ==========================================================
   フッター
   ========================================================== */
.footer { background: var(--blue); color: var(--white); padding: 20px 0 22px; font-size: 12px; }
.footer__top, .footer__bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; }
.footer__bottom { justify-content: space-between; margin-top: 10px; }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 15px; margin-right: 16px; }
.footer__info, .footer__nav { display: flex; flex-wrap: wrap; }
.footer__info li, .footer__nav li { padding: 0 14px; border-left: 1px solid rgba(255,255,255,.5); line-height: 1.2; }
.footer__nav li:first-child { padding-left: 0; border-left: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__copy small { font-size: 11px; }

/* スマホ固定ボタン（PCでは非表示） */
.fixed-cta { display: none; }

/* ==========================================================
   タブレット・スマホ（960px以下）
   ========================================================== */
@media (max-width: 960px) {
  :root { --header-h: 60px; }
  .pc-only { display: none; }
  .container { padding: 0 20px; }

  /* ヘッダー */
  .header__inner { padding: 0 0 0 16px; gap: 12px; }
  .header__logo { font-size: 18px; }
  .header__contact { display: none; }
  .header__cta { margin-left: auto; }
  .header__tel-num { font-size: 18px; }
  .header__tel-label { font-size: 11px; }
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: var(--header-h); height: var(--header-h); padding: 0 16px;
    background: none; border: none; border-left: 1px solid var(--line); cursor: pointer; flex-shrink: 0;
  }
  .hamburger span { display: block; height: 3px; background: var(--blue); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .is-menu-open .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .is-menu-open .hamburger span:nth-child(2) { opacity: 0; }
  .is-menu-open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .gnav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 16px 20px 120px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .is-menu-open .gnav { opacity: 1; visibility: visible; transform: none; }
  .gnav__list { flex-direction: column; gap: 0; }
  .gnav__list a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--line); }
  .gnav__sp { display: grid; gap: 12px; margin-top: 24px; }
  .gnav__sp .btn { padding: 14px; font-size: 17px; }

  /* セクション共通 */
  .section { padding: 40px 0 16px; }
  .sec-title { font-size: 26px; margin-bottom: 24px; }
  .more-link { position: static; display: block; text-align: right; margin: -12px 0 12px; }

  /* メインビジュアル */
  .hero { padding: 48px 16px 64px; background-position: 40% center; }
  .hero::before { background: rgba(255,255,255,.62); }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 14px; }
  .hero__sep { display: none; }
  .hero__btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero__btns .btn { width: 100%; max-width: 360px; }

  /* トラブル帯 */
  .trouble { margin: -24px 0 0; border-radius: 0; }
  .trouble__photo { width: 90px; }
  .trouble__body { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 16px; }
  .trouble__text { font-size: 17px; gap: 8px; }
  .trouble__drop { width: 18px; height: 24px; }
  .trouble__tel { align-self: flex-end; }
  .trouble__tel-icon { width: 28px; height: 28px; }
  .trouble__tel-icon svg { width: 16px; height: 16px; }
  .trouble__tel-num { font-size: 28px; }
  .trouble__tel-label { font-size: 15px; }

  /* 選ばれる理由 */
  .reason__list { grid-template-columns: 1fr; }
  .reason__item { align-items: center; padding: 16px; }
  .reason__icon { width: 68px; height: 68px; }
  .reason__icon img { max-height: 44px; }
  .reason__title { font-size: 17px; }

  /* カード */
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__title { font-size: 15px; }
  .card__text { font-size: 12px; padding-right: 26px; }
  .works__name { font-size: 13px; }

  /* 流れ */
  .flow__list { grid-template-columns: 1fr; gap: 18px; }
  .flow__item:not(:last-child)::after { content: "›"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%) rotate(90deg); font-size: 20px; }
  .flow__text { font-size: 16px; white-space: normal; }

  /* お知らせ */
  .news__list a { flex-direction: column; gap: 0; padding: 12px 4px; }

  /* 採用 */
  .recruit__banner { flex-direction: column; align-items: stretch; gap: 0; }
  .recruit__photo { width: 100%; aspect-ratio: 4 / 1; }
  .recruit__body { padding: 16px 20px 8px; }
  .recruit__title { font-size: 24px; }
  .recruit__btn { margin: 8px 20px 20px; }

  /* 会社案内 */
  .company__inner { grid-template-columns: 1fr; }
  .company__col { padding: 16px 0; border-right: none !important; white-space: normal; }
  .company__col:not(:last-child) { border-bottom: 1px solid var(--line); }
  .company__btn .btn { width: 100%; }

  /* フォーム */
  .form { padding: 20px 16px; }
  .form__row { grid-template-columns: 1fr; gap: 6px; }
  .form__row label { padding-top: 0; }
  .form__submit .btn { width: 100%; }

  /* フッター（固定ボタンの分だけ下に余白） */
  .footer { padding-bottom: 92px; }
  .footer__top, .footer__bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__info { flex-direction: column; gap: 4px; }
  .footer__info li { border-left: none; padding: 0; }
  .footer__nav li { padding: 0 10px; margin-bottom: 4px; }

  /* 画面下部の固定ボタン */
  .fixed-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95); box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  }
  .fixed-cta__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px; border-radius: 6px; color: var(--white);
    font-family: var(--font-head); font-weight: 700; font-size: 17px;
  }
  .fixed-cta__btn .ico { width: 22px; height: 22px; }
  .fixed-cta__btn--tel { background: var(--blue); }
  .fixed-cta__btn--mail { background: var(--orange); }
}

@media (max-width: 960px) {
  .sp-only { display: inline; }
}

/* 小さいスマホ */
@media (max-width: 400px) {
  .header__logo { font-size: 15px; }
  .header__inner { gap: 8px; padding-left: 12px; }
  .hamburger { width: 54px; padding: 0 14px; }
  .header__tel-label, .header__tel .ico { display: none; }
  .header__tel-num { font-size: 16px; }
  .hero__title { font-size: 30px; }
}
