@charset "UTF-8";
/* =========================================================
   株式会社第一技研 トップページ
   配色：ウォーターブルー #1E6FB8 / ライトブルー #E8F3FB / 濃紺 #1F2D3D / 白 #FFFFFF / オレンジ #F28C28
   ========================================================= */

/* ===== 変数・リセット ===== */
:root {
  --blue: #1E6FB8;
  --blue-dark: #155A99;
  --light: #E8F3FB;
  --navy: #1F2D3D;
  --white: #FFFFFF;
  --orange: #F28C28;
  --orange-dark: #DB7714;
  --dummy: #9AA6B2;
  --line: #DCE6EF;
  --header-h: 72px;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--navy);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}
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, dl, dd { margin: 0; }
address { font-style: normal; }
.sp-br, .sp-inline { display: none; }
.icon-tel, .icon-mail { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ===== 共通パーツ ===== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.container--form { max-width: 860px; }
.section { padding: 56px 0 60px; }
.section--tight { padding-top: 24px; }
.section--blue { background: var(--light); }
.section--white { background: var(--white); }
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .06em;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 12px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--blue);
  transform: translateX(-50%);
}
.section__title--sm { font-size: 22px; margin-bottom: 24px; }
.section__head { position: relative; }
.section__head .more-link { position: absolute; right: 0; top: 8px; }
.more-link { font-size: 13px; color: var(--blue); font-weight: 500; border-bottom: 1px solid var(--blue); line-height: 1.6; }
.more-link span { margin-left: 8px; }
.dummy { color: var(--dummy); font-size: 13px; line-height: 1.7; }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  line-height: 1.4;
  border: 2px solid transparent;
  transition: background .2s, color .2s;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn--orange { background: var(--orange); color: var(--white); }
.btn--orange:hover { background: var(--orange-dark); }
.btn--outline { background: var(--white); border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--light); }
.btn--lg { padding: 15px 32px; font-size: 18px; }
.chev { font-size: 1.3em; line-height: 1; margin-left: 4px; font-weight: 400; }

/* ===== ヘッダー ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(31,45,61,.08);
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 32px 0 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: .04em;
  white-space: nowrap;
}
.gnav { margin-left: auto; }
.gnav__list { display: flex; gap: 34px; }
.gnav__list a { font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.gnav__list a:hover { color: var(--blue); }
.gnav__sp-only { display: none; }
.header__tel {
  margin-left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--blue);
  white-space: nowrap;
}
.header__tel-label { font-size: 14px; margin: 0 4px 0 2px; }
.header__btn { padding: 10px 18px; font-size: 14px; }
.hamburger { display: none; }

/* ===== メインビジュアル ===== */
.hero {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__photo {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center 40% / cover no-repeat;
}
/* 文字を読みやすくするための白いぼかし */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 48% 70% at 40% 55%, rgba(255,255,255,.88) 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,0) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 40px 50px 285px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.3;
  letter-spacing: .03em;
  color: var(--navy);
}
.hero__title small { font-size: .7em; }
.hero__lead { margin-top: 10px; font-size: 16px; font-weight: 500; letter-spacing: .03em; }
.hero__sep { margin: 0 .4em; color: #7A8794; }
.hero__btns { margin-top: 24px; display: flex; gap: 20px; flex-wrap: wrap; }
.hero__btns .btn { min-width: 236px; }

/* ===== 第一技研の強み ===== */
.strength-sec { padding: 26px 0 32px; }
.strength { display: grid; grid-template-columns: repeat(3, 1fr); }
.strength__item { display: flex; align-items: center; gap: 18px; padding: 4px 32px; }
.strength__item + .strength__item { border-left: 1px solid #BFD3E6; }
.strength__item:first-child { padding-left: 0; }
.strength__icon {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(30,111,184,.08);
}
.strength__icon img { width: 48px; }
.strength__title { font-family: var(--font-head); font-size: 18px; letter-spacing: .02em; margin-bottom: 4px; white-space: nowrap; }
.strength .dummy { font-size: 12px; }

/* ===== カード（事業内容・施工事例） ===== */
.cards { display: grid; gap: 16px; }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; transition: box-shadow .2s; }
.card:hover { box-shadow: 0 4px 14px rgba(30,111,184,.15); }
.card a { display: block; height: 100%; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--works img { aspect-ratio: 2.2 / 1; }
.card__body { position: relative; padding: 12px 40px 14px 12px; }
.card__title { font-size: 16px; letter-spacing: .02em; line-height: 1.5; margin-bottom: 4px; }
.card__meta { font-size: 12px; color: var(--dummy); }
.card__arrow {
  position: absolute;
  right: 12px;
  bottom: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 16px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
}

/* ===== ご依頼の流れ ===== */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.flow__item {
  position: relative;
  text-align: center;
  background: var(--white);
  border: 6px solid var(--light);
  padding: 18px 14px 16px;
}
.flow__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 50%;
  border-style: solid;
  border-width: 9px 0 9px 12px;
  border-color: transparent transparent transparent #7FB2DE;
  transform: translateY(-50%);
}
.flow__num {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 30px;
}
.flow__icon { height: 38px; width: auto; margin: 4px auto 8px; }
.flow__title { font-size: 15px; letter-spacing: .04em; margin-bottom: 4px; }
.flow .dummy { font-size: 12px; }

/* ===== お知らせ／採用バナー ===== */
.section--news { padding: 20px 0 24px; }
.news-recruit { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: stretch; }
.news__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 6px; }
.news__title {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: .06em;
  padding-bottom: 8px;
  position: relative;
}
.news__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; max-width: 70px; height: 2px; background: var(--blue); }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list a { display: flex; gap: 22px; padding: 12px 0; font-size: 14px; }
.news__list a:hover .dummy { color: var(--blue); }
.news__list time { flex-shrink: 0; }
.news__list .dummy { font-size: 14px; }
.recruit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 30px;
  min-height: 170px;
  background:
    linear-gradient(90deg, rgba(232,243,251,1) 0%, rgba(232,243,251,.95) 52%, rgba(232,243,251,0) 78%),
    url("../images/recruit.jpg") right top / auto 100% no-repeat,
    var(--light);
}
.recruit__title { font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 1.45; letter-spacing: .03em; }
.recruit__title small { font-size: .78em; }
.recruit .btn { min-width: 220px; }

/* ===== お問い合わせ帯 ===== */
.cta {
  background:
    radial-gradient(ellipse at 10% 120%, rgba(30,111,184,.25), transparent 50%),
    radial-gradient(ellipse at 90% -20%, rgba(30,111,184,.2), transparent 50%),
    linear-gradient(180deg, #DDEEFA 0%, #CFE6F7 100%);
  padding: 30px 0;
}
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta__title {
  font-family: var(--font-head);
  font-size: 27px;
  line-height: 1.4;
  color: var(--blue);
  letter-spacing: .03em;
  padding-right: 36px;
  border-right: 1px solid #9CC1E2;
}
.cta__title small { font-size: .75em; }
.cta__tel { text-align: center; }
.cta__tel-num {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 36px;
  color: var(--blue);
  line-height: 1.2;
}
.cta__tel-label { font-size: 22px; margin-right: 4px; }
.cta__hours { font-size: 15px; font-weight: 500; }
.cta__btn { min-width: 300px; }

/* ===== お問い合わせフォーム（見た目のみ） ===== */
.form { background: var(--white); padding: 36px 40px; border-radius: 6px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.form__row { display: block; margin-bottom: 20px; }
.form__label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form__label em { font-style: normal; font-size: 11px; background: var(--orange); color: var(--white); padding: 2px 6px; border-radius: 2px; margin-left: 8px; vertical-align: 2px; }
.form input, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  font-size: 16px;
  background: #FAFCFE;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.form__submit { text-align: center; margin-top: 28px; }

/* ===== フッター ===== */
.footer { background: var(--navy); color: var(--white); padding: 30px 0 24px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; }
.footer__info { font-size: 13px; line-height: 1.8; }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 21px; margin-bottom: 8px; }
.footer__gap { display: inline-block; width: 1.2em; }
.footer__right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer__nav { display: flex; flex-wrap: wrap; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.35); }
.footer__nav li { font-size: 13px; }
.footer__nav a { padding: 0 12px; }
.footer__nav a:hover { color: #9CC9F0; }
.footer__copy { font-size: 12px; }

/* ===== スマホ固定ボタン ===== */
.fixed-cta { display: none; }

/* =========================================================
   レスポンシブ：タブレット
   ========================================================= */
@media (max-width: 1200px) {
  .header__inner { padding: 0 24px; }
  .gnav__list { gap: 20px; }
  .header__tel { margin-left: 4px; font-size: 20px; }
  .hero__inner { padding-left: 120px; }
}
@media (max-width: 1100px) {
  .hero__inner { padding: 48px 40px; }
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .flow__item:nth-child(3)::after { display: none; }
  .strength__item { padding: 4px 16px; }
  .strength__title { white-space: normal; font-size: 16px; }
  .cta__inner { flex-wrap: wrap; justify-content: center; }
  .cta__title { border-right: none; padding-right: 0; text-align: center; width: 100%; }
}

/* =========================================================
   レスポンシブ：スマホ（ハンバーガーメニュー）
   ========================================================= */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__inner { padding: 0 16px; }
  .header__logo { font-size: 23px; }
  .header__tel, .header__btn { display: none; }

  /* ハンバーガー */
  .hamburger {
    display: block;
    margin-left: auto;
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
  }
  .hamburger span {
    position: absolute;
    left: 4px;
    width: 32px;
    height: 3px;
    background: var(--blue);
    transition: transform .3s, opacity .3s, top .3s;
  }
  .hamburger span:nth-child(1) { top: 10px; }
  .hamburger span:nth-child(2) { top: 19px; }
  .hamburger span:nth-child(3) { top: 28px; }
  .is-menu-open .hamburger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  .is-menu-open .hamburger span:nth-child(2) { opacity: 0; }
  .is-menu-open .hamburger span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

  .gnav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
    overflow-y: auto;
  }
  .is-menu-open .gnav { opacity: 1; visibility: visible; }
  .gnav__list { flex-direction: column; gap: 0; padding: 8px 24px 100px; }
  .gnav__list li { border-bottom: 1px solid var(--line); }
  .gnav__list a { display: block; padding: 18px 8px; font-size: 17px; }
  .gnav__sp-only { display: block; }
  .gnav__sp-only a { color: var(--blue); font-weight: 700; }
}

@media (max-width: 600px) {
  .sp-br, .sp-inline { display: inline; }
  .pc-inline, .hero__sep--pc { display: none; }
  body { font-size: 15px; padding-bottom: 60px; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0 44px; }
  .section__title { font-size: 24px; margin-bottom: 24px; }
  .section__head .more-link { position: static; display: table; margin: -10px auto 20px; }

  /* メインビジュアル：写真を上、文字を下に */
  .hero { display: block; min-height: 0; background: linear-gradient(180deg, #F4F9FD 0%, #E3F0FA 100%); }
  .hero__photo { position: relative; inset: auto; height: 220px; background-position: center 30%; }
  .hero__photo::after { background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(244,249,253,1) 100%); }
  .hero__inner { padding: 4px 16px 32px; margin-top: -24px; }
  .hero__title { font-size: 29px; letter-spacing: 0; }
  .hero__lead { font-size: 14px; line-height: 1.7; }
  .hero__sep { margin: 0 .3em; }
  .hero__btns { flex-direction: column; gap: 12px; }
  .hero__btns .btn { width: 100%; min-width: 0; padding: 14px 16px; font-size: 19px; }

  /* 強み：モックアップどおり3列・アイコン上 */
  .strength-sec { padding: 32px 0 36px; }
  .strength__item { flex-direction: column; text-align: center; gap: 10px; padding: 0 6px; }
  .strength__item:first-child { padding-left: 6px; }
  .strength__icon { width: 72px; height: 72px; }
  .strength__icon img { width: 38px; }
  .strength__title { font-size: 14px; line-height: 1.5; white-space: normal; }
  .strength .dummy { font-size: 11px; text-align: left; }

  /* 事業内容・施工事例：2列 */
  .cards--5, .cards--4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__body { padding: 10px 30px 12px 10px; }
  .card__title { font-size: 14px; }
  .card__arrow { right: 8px; bottom: 12px; }

  /* ご依頼の流れ：縦並び */
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow__item { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left; align-items: center; padding: 14px 14px 14px 46px; }
  .flow__icon { grid-row: 1 / 3; margin: 0 auto; height: 34px; }
  .flow__title { margin: 0; }
  .flow__num { top: 50%; transform: translateY(-50%); }
  .flow__item:not(:last-child)::after,
  .flow__item:nth-child(3)::after {
    display: block;
    right: auto;
    left: 50%;
    top: auto;
    bottom: -22px;
    border-width: 12px 9px 0 9px;
    border-color: #7FB2DE transparent transparent transparent;
    transform: translateX(-50%);
  }

  /* お知らせ・採用 */
  .news-recruit { grid-template-columns: 1fr; gap: 24px; }
  .news__list a { flex-direction: column; gap: 0; }
  .recruit { padding: 22px 18px; min-height: 150px; }
  .recruit__title { font-size: 18px; }
  .recruit .btn { min-width: 0; }

  /* お問い合わせ帯 */
  .cta__inner { flex-direction: column; gap: 14px; text-align: center; }
  .cta__title { font-size: 21px; }
  .cta__tel-num { font-size: 30px; }
  .cta__tel-label { font-size: 18px; }
  .cta__btn { min-width: 0; width: 100%; font-size: 17px; }

  .form { padding: 24px 18px; }
  .form__grid { grid-template-columns: 1fr; }

  /* フッター */
  .footer__inner { flex-direction: column; gap: 20px; }
  .footer__gap { display: none; }
  .footer__right { align-items: flex-start; }
  .footer__nav { border-left: none; padding-left: 0; }
  .footer__nav a { padding: 0 16px 0 0; }

  /* 固定ボタン */
  .fixed-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    height: 60px;
    box-shadow: 0 -2px 8px rgba(0,0,0,.12);
  }
  .fixed-cta a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .08em;
  }
  .fixed-cta svg { width: 24px; height: 24px; }
  .fixed-cta__tel { background: var(--blue); }
  .fixed-cta__mail { background: var(--orange); }
}

@media (max-width: 370px) {
  .header__logo { font-size: 20px; }
  .hero__title { font-size: 25px; }
  .strength__title { font-size: 13px; }
}
