@charset "UTF-8";
/* 株式会社昇栄仮設 公式サイト 共通スタイル(配色:紺×青×白) */

:root {
  --navy: #0b2e5c;
  --navy-d: #072041;
  --blue: #1663b0;
  --sky: #3e8fd4;
  --pale: #eaf2fa;
  --paper: #ffffff;
  --ink: #1e2a38;
  --muted: #5b6b7c;
  --line: #d8e3ee;
  --shadow: 0 2px 14px rgba(11, 46, 92, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink); background: var(--paper); line-height: 1.9;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { font-family: "Noto Serif JP", serif; line-height: 1.45; font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; margin-left: auto; margin-right: auto; }
section { padding: 84px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

/* ---------- ヘッダー ---------- */
header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
}
.brand { text-decoration: none; color: inherit; }
.brand .txt {
  font-family: "Noto Serif JP", serif; font-size: 1.3rem;
  letter-spacing: .12em; color: var(--navy); display: block; white-space: nowrap;
}
.brand .txt small {
  display: block; font-family: "Noto Sans JP", sans-serif; font-size: .58rem;
  letter-spacing: .26em; color: var(--muted); font-weight: 500;
}
.header-right { display: flex; align-items: center; gap: 24px; }
nav.gnav { display: flex; gap: 20px; font-size: .88rem; }
nav.gnav a { color: var(--ink); text-decoration: none; position: relative; padding-bottom: 5px; }
nav.gnav a:hover { color: var(--blue); }

/* 今見ているセクションの項目に下線を出す(script.js が is-current を付ける) */
nav.gnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
nav.gnav a.is-current { color: var(--blue); font-weight: 700; }
nav.gnav a.is-current::after { transform: scaleX(1); }

/* スマホ用のメニューボタン(☰) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent;
  cursor: pointer; flex-direction: column; justify-content: space-between; flex: none;
}
.nav-toggle .bar {
  display: block; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .25s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.header-tel { text-align: right; line-height: 1.35; }
.header-tel a { color: var(--navy); text-decoration: none; font-size: 1.28rem; font-weight: 700; letter-spacing: .02em; }
.header-tel span { display: block; font-size: .66rem; color: var(--muted); letter-spacing: .04em; }
/* 狭い画面ではメニューを☰の中にたたむ(ヘッダーの下から降りてくるパネル) */
@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .header-right { gap: 12px; }
  nav.gnav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 90;
    display: block; gap: 0; padding: 6px 20px 16px; font-size: 1rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(11, 46, 92, .16);
    max-height: calc(100vh - 100%); overflow-y: auto;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: transform .26s ease, opacity .2s ease;
  }
  nav.gnav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  nav.gnav a { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); }
  nav.gnav a:last-child { border-bottom: 0; }
  nav.gnav a::after { display: none; }  /* 行の区切り線と重なるので下線は使わない */
  nav.gnav a.is-current { color: var(--blue); }
  nav.gnav a.is-current::before { content: "▶ "; font-size: .7em; vertical-align: .15em; }
}
/* スマホでは社名と電話番号を1行ずつに収める(注記は下部の固定CTAで代替) */
@media (max-width: 520px) {
  .header-inner { padding: 11px 12px; }
  .header-right { gap: 8px; }
  .brand .txt { font-size: .95rem; letter-spacing: .02em; }
  .brand .txt small { font-size: .46rem; letter-spacing: .16em; }
  .header-tel a { font-size: 1rem; }
  .header-tel span { display: none; }
  .nav-toggle { width: 40px; height: 40px; padding: 9px 8px; }
}

/* ---------- タイトル(看板) ---------- */
.hero-title {
  background: linear-gradient(158deg, var(--navy-d) 0%, var(--navy) 55%, #10457f 100%);
  padding: 0 0 58px; text-align: center;
}
/* 看板画像は画面の端まで使う。上端を基準に切り抜き、社名が必ず残るようにする */
.hero-title .sign-big {
  display: block; width: 100%; max-width: none;
  height: clamp(300px, 44vw, 620px); object-fit: cover; object-position: 50% 0;
}
.hero-title h1 {
  margin-top: 44px; padding: 0 20px; color: #fff; font-weight: 600;
  font-size: clamp(1.05rem, 3vw, 1.5rem); letter-spacing: .16em;
}
/* 語の途中で折り返さないよう、区切りたい位置だけで改行させる */
.hero-title h1 span { display: inline-block; }
.hero-title p.sub { margin-top: 14px; padding: 0 20px; color: #bcd2e8; font-size: .92rem; letter-spacing: .06em; }
@media (max-width: 700px) {
  /* スマホは切り抜かず、画像そのままの比率(4:3)で見せる */
  .hero-title { padding-bottom: 44px; }
  .hero-title .sign-big { height: auto; aspect-ratio: 4 / 3; }
  .hero-title h1 { margin-top: 30px; }
}

/* ページ見出し(下層) */
.page-head { position: relative; background: var(--navy-d); overflow: hidden; }
.page-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .38; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7, 32, 65, .9), rgba(22, 99, 176, .5)); }
.page-head .wrap { position: relative; z-index: 2; padding-top: 62px; padding-bottom: 62px; color: #fff; }
.page-head h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: .1em; }
.page-head p { margin-top: 10px; color: #cfe0f0; font-size: .92rem; }

/* ---------- 共通セクション見出し ---------- */
.sec-label { text-align: center; color: var(--sky); font-size: .74rem; letter-spacing: .34em; font-weight: 700; }
.sec-title { text-align: center; font-size: clamp(1.42rem, 3.2vw, 2rem); margin-top: 10px; letter-spacing: .08em; color: var(--navy); }
.sec-lead { text-align: center; color: var(--muted); margin-top: 16px; font-size: .95rem; }
.on-navy .sec-title { color: #fff; }
.on-navy .sec-lead { color: #c9d9ea; }

/* ---------- 代表あいさつ ---------- */
.greeting-body {
  background: #fff; border-radius: 14px; padding: 44px 46px; margin-top: 38px;
  box-shadow: var(--shadow); border-left: 5px solid var(--blue); border-top: 1px solid var(--line);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.greeting-body p + p { margin-top: 1.1em; }
.greeting-body .words {
  font-family: "Noto Serif JP", serif; font-size: clamp(1.15rem, 3.2vw, 1.62rem);
  line-height: 2.1; letter-spacing: .08em; color: var(--navy);
}
.greeting .sign { margin-top: 28px; text-align: right; font-family: "Noto Serif JP", serif; }
.greeting .sign small { display: block; font-family: "Noto Sans JP", sans-serif; font-size: .76rem; color: var(--muted); letter-spacing: .1em; }
.greeting .sign strong { font-size: 1.25rem; letter-spacing: .18em; color: var(--navy); }
@media (max-width: 640px) { .greeting-body { padding: 28px 22px; } }
/* 狭い画面では改行位置を固定せず、文字を少し詰めて自然に流す */
@media (max-width: 540px) {
  .greeting-body .words { font-size: 1.06rem; line-height: 2; }
  .greeting-body .words br { display: none; }
}

/* ---------- 理念 ---------- */
.philosophy { background: var(--navy); color: #fff; text-align: center; }
.creed-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  max-width: 960px; margin: 50px auto 0;
}
.creed-item {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 14px; padding: 36px 24px 32px;
}
.creed-item .mark {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%;
  border: 2px solid #ffd166; color: #ffd166;
  font-family: "Noto Serif JP", serif; font-size: 1.4rem; line-height: 1;
}
/* 見出しが1行の項目と2行の項目で説明文の高さが揃うように2行ぶん確保する */
.creed-item h3 {
  font-size: 1.26rem; letter-spacing: .06em; line-height: 1.65;
  min-height: 3.3em; display: flex; align-items: center; justify-content: center;
}
.creed-item p { margin-top: 16px; color: #dbe8f5; font-size: 1rem; line-height: 1.95; }
.creed-close {
  margin-top: 42px; font-family: "Noto Serif JP", serif;
  font-size: 1.14rem; letter-spacing: .14em;
}
@media (max-width: 860px) {
  /* スマホは横並びをやめ、番号を左に置いた1列に */
  .creed-list { grid-template-columns: 1fr; gap: 16px; max-width: 560px; }
  .creed-item { display: flex; align-items: flex-start; gap: 20px; text-align: left; padding: 24px 22px; }
  .creed-item .mark { flex: none; width: 44px; height: 44px; margin: 2px 0 0; font-size: 1.15rem; }
  .creed-item h3 { font-size: 1.14rem; min-height: 0; display: block; }
  .creed-item h3 br, .creed-item p br { display: none; }
  .creed-item p { margin-top: 8px; font-size: .95rem; }
}

/* ---------- 施工実績 ---------- */
.works { background: var(--pale); }
.works.works-plain { background: #fff; } /* 2ページ目は次の「お客様の声」が淡色なので白地に */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; margin-top: 46px; }
.work { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--pale); }
.work .cap { padding: 14px 16px 18px; }
.work .cap h3 { font-size: .98rem; color: var(--navy); }
.work .cap p { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---------- お客様の声 ---------- */
.voice { background: var(--pale); }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 22px; margin-top: 46px; }
.voice-card { background: #fff; border-radius: 12px; padding: 34px 28px 26px; position: relative; box-shadow: var(--shadow); }
.voice-card::before {
  content: "\201C"; font-family: Georgia, serif; font-size: 3.6rem; color: var(--sky);
  position: absolute; top: 2px; left: 16px; opacity: .45; line-height: 1;
}
.voice-card p { font-size: .95rem; position: relative; }
.voice-card .src { margin-top: 14px; font-size: .76rem; color: var(--muted); text-align: right; }
.voice-note { text-align: center; margin-top: 26px; font-size: .8rem; color: var(--muted); }

/* ---------- 求人 ---------- */
/* 人物が写真の下寄りにいるため、切り抜き位置を下げる */
.recruit-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 42px; }
.recruit-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 66%; border-radius: 12px; }
@media (max-width: 560px) { .recruit-photos { grid-template-columns: 1fr; } }
.recruit-photos + .cap-note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ---------- 表(会社情報/募集要項) ---------- */
dl.table { font-size: .93rem; border-top: 1px solid var(--line); }
dl.table > div { display: flex; border-bottom: 1px solid var(--line); padding: 13px 4px; gap: 14px; }
dl.table dt { flex: 0 0 8.5em; color: var(--muted); }
dl.table dd { flex: 1; }
dl.table dd a { color: var(--navy); text-decoration: none; font-weight: 700; }
@media (max-width: 560px) { dl.table > div { flex-direction: column; gap: 2px; } dl.table dt { flex: none; font-size: .8rem; } }

/* ---------- 地図 ---------- */
.map-address { text-align: center; margin-top: 34px; font-size: 1.02rem; letter-spacing: .04em; }
.map-address small { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 4px; }
.map-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 26px; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 640px) { .map-frame iframe { height: 300px; } }
.map-link { display: block; text-align: center; margin-top: 14px; font-size: .88rem; }

/* ---------- お問い合わせ(2ページ目で使用) ---------- */
.contact { background: var(--pale); }
.contact-card {
  background: linear-gradient(150deg, var(--navy-d), var(--blue)); color: #fff;
  border-radius: 16px; padding: 46px 36px; text-align: center; margin-top: 42px;
  box-shadow: 0 10px 34px rgba(11, 46, 92, .22);
}
.contact-card .label { font-size: .86rem; letter-spacing: .14em; color: #cfe0f0; }
.tel-set { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; margin-top: 22px; }
.tel-set .item small { display: block; font-size: .74rem; color: #cfe0f0; letter-spacing: .1em; }
.tel-set .item a { color: #fff; text-decoration: none; font-size: clamp(1.5rem, 4.4vw, 2rem); font-weight: 700; letter-spacing: .02em; }
.contact-card .hours { margin-top: 20px; font-size: .85rem; color: #cfe0f0; }
.contact-card .mail-line { margin-top: 14px; font-size: .88rem; color: #cfe0f0; word-break: break-all; }
.contact-card .mail-line a { color: #fff; text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.sns-row { margin-top: 26px; display: flex; justify-content: center; gap: 14px; }
.sns-btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .34);
  color: #fff; padding: 10px 22px; border-radius: 999px; font-size: .88rem;
}
.sns-btn:hover { background: rgba(255, 255, 255, .24); }

/* ---------- ボタン ---------- */
.btn-row { text-align: center; margin-top: 40px; }
.btn {
  display: inline-block; text-decoration: none; border-radius: 8px; padding: 14px 34px;
  font-weight: 700; font-size: .96rem; letter-spacing: .05em;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(22, 99, 176, .3); }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border: 1.5px solid var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--navy); box-shadow: 0 8px 26px rgba(0, 0, 0, .3); }
.btn-white:hover { background: var(--pale); }
.btn-lg { padding: 18px 46px; font-size: 1.06rem; }
@media (max-width: 560px) {
  .btn { display: block; padding: 15px 18px; font-size: .93rem; }
  .btn-lg { padding: 17px 18px; font-size: 1rem; }
}

/* ---------- 2ページ目への案内(1ページ目の最後) ---------- */
.next-page {
  background: linear-gradient(140deg, var(--navy-d) 0%, var(--blue) 100%);
  color: #fff; text-align: center; padding: 76px 0 80px;
}
.next-page .sec-label { color: #ffd166; }
.next-page h2 { font-size: clamp(1.32rem, 3.4vw, 1.95rem); letter-spacing: .08em; margin-top: 12px; }
.next-page p { margin-top: 20px; color: #dbe8f5; font-size: .96rem; }
@media (max-width: 640px) {
  .next-page { padding: 54px 0 58px; }
  .next-page p br { display: none; }
}

/* ---------- フッター(会社情報) ---------- */
footer { background: var(--navy-d); color: #9fb4cb; padding: 56px 20px 34px; font-size: .84rem; }
footer .brand-f {
  color: #fff; font-family: "Noto Serif JP", serif; letter-spacing: .2em;
  font-size: 1.32rem; text-align: center; margin-bottom: 32px;
}
footer a { color: #cfe0f0; }
dl.footer-table { max-width: 720px; margin: 0 auto; font-size: .87rem; border-top: 1px solid rgba(255, 255, 255, .16); }
dl.footer-table > div { display: flex; border-bottom: 1px solid rgba(255, 255, 255, .16); padding: 11px 4px; gap: 14px; }
dl.footer-table dt { flex: 0 0 8em; color: #8ba3bd; }
dl.footer-table dd { flex: 1; color: #e3ecf5; }
dl.footer-table dd a { color: #fff; text-decoration: none; font-weight: 700; }
@media (max-width: 560px) { dl.footer-table > div { flex-direction: column; gap: 2px; } dl.footer-table dt { flex: none; font-size: .76rem; } }
footer .fnav { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 30px 0 0; }
footer .fnav a { text-decoration: none; }
footer .copy {
  margin-top: 26px; font-size: .74rem; color: #6f8399; text-align: center;
  max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.8;
}

/* ---------- モバイル固定CTA ---------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--blue); text-align: center; }
.mobile-cta a { display: block; padding: 14px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
@media (max-width: 700px) { .mobile-cta { display: block; } body { padding-bottom: 58px; } }
