/* 祖父江工業株式会社 ホームページ 共通スタイル */
:root {
  --sky: #c8dbef;        /* 背景の水色 */
  --sky-light: #e6eff9;
  --blue: #4f7fc0;       /* メインの青 */
  --blue-dark: #24578f;
  --navy: #1d1d1f;       /* 文字色 */
  --yellow: #ecb44c;     /* ボタン */
  --yellow-dark: #dc9f2c;
  --white: #ffffff;
  --gray: #5b6876;
  --line: #a9c6e2;
  --en: "Jost", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--ja);
  color: var(--navy);
  background: var(--sky);
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.inner { width: min(1100px, 100% - 32px); margin-inline: auto; }

/* 未確定の部分（公開前に必ず直す） */
.todo {
  background: #fff3a8;
  outline: 1px dashed #d39b00;
  padding: 0 .3em;
  border-radius: 3px;
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(28,43,58,.08);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__ja { font-weight: 700; font-size: 18px; letter-spacing: .08em; line-height: 1.2; }
.logo__en { display: block; font-family: var(--en); font-size: 10px; letter-spacing: .2em; color: var(--blue); }

.nav ul { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--blue); }
.nav .btn { color: var(--navy); }

.menu-btn {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--navy);
  transition: .25s;
}
.menu-btn::before { top: 14px; }
.menu-btn span { top: 21px; }
.menu-btn::after { top: 28px; }
.menu-open .menu-btn::before { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span { opacity: 0; }
.menu-open .menu-btn::after { top: 21px; transform: rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--navy);
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 22px; border-radius: 999px;
  transition: background .2s;
}
.btn:hover { background: var(--yellow-dark); }
.more {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 700; font-size: 14px;
}
.more::after {
  content: "→"; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--yellow); font-size: 14px; transition: transform .2s;
}
.more:hover::after { transform: translateX(4px); }

/* ---------- 見出し ---------- */
.ttl { margin-bottom: 40px; }
.ttl__ja { font-size: 14px; font-weight: 700; color: var(--blue-dark); }
.ttl__en {
  font-family: var(--en); font-weight: 400;
  font-size: clamp(40px, 8vw, 72px); line-height: 1.1; letter-spacing: .06em;
  color: var(--white);
}
.ttl--dark .ttl__en { color: var(--blue); }

section { padding: 96px 0; }

/* ---------- ヒーロー ---------- */
.hero { padding: 48px 0 0; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 32px;
}
.hero__lead { font-size: 14px; font-weight: 700; color: var(--blue-dark); margin-bottom: 16px; }
.hero__catch {
  font-size: clamp(30px, 5vw, 52px); font-weight: 900; line-height: 1.45; letter-spacing: .08em;
}
.hero__catch em { font-style: normal; color: var(--blue); }
.hero__text { margin: 24px 0 32px; font-size: 15px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero__badges li {
  background: var(--white); border-radius: 999px; padding: 4px 14px;
  font-size: 13px; font-weight: 700; color: var(--blue-dark);
}
.hero__art img { width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 8px; font-size: 12px; font-weight: 500; }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 22px; height: 7px; border-radius: 4px; outline: 2px solid #1d1d1f; }
.wave { display: block; width: 100%; height: 80px; margin-top: 48px; }

/* ---------- お知らせ ---------- */
.news { background: var(--white); padding: 64px 0; }
.news__inner { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.news .ttl { margin: 0; }
.news .ttl__en { font-size: 40px; color: var(--blue); }
.news__list li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.news__list time { font-family: var(--en); font-weight: 500; color: var(--gray); }

/* ---------- 私たちについて ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__catch { font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; line-height: 1.6; margin-bottom: 24px; }
.about__text p + p { margin-top: 1em; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.point {
  background: var(--white); border-radius: 20px; padding: 32px 24px; text-align: center;
}
.point .point__num { font-family: var(--en); font-size: 44px; color: var(--blue); line-height: 1; text-align: center; height: 56px; display: flex; align-items: center; justify-content: center; }
.point__num small { font-size: 16px; font-family: var(--ja); font-weight: 700; margin-left: 4px; }
.point h3 { font-size: 17px; margin: 12px 0 8px; }
.point p { font-size: 14px; color: var(--gray); text-align: left; }
.point__icon { width: 56px; height: 56px; margin: 0 auto; }
.illust { width: 100%; height: auto; }

/* ---------- 事業内容 ---------- */
.service { background: var(--sky-light); }
.service__main {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--white); border-radius: 24px; padding: 40px; margin-bottom: 32px;
}
.tag {
  display: inline-block; background: var(--blue); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 2px 12px; border-radius: 999px; margin-bottom: 12px;
}
.service__main h3 { font-size: 24px; margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--white); border-radius: 20px; padding: 28px 24px; }
.card > img { width: 56px; height: 56px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gray); }

/* ---------- 施主さまへ ---------- */
.owner__box {
  background: var(--white); border-radius: 24px; padding: 56px 48px;
}
.owner__lead { font-size: clamp(20px, 3vw, 26px); font-weight: 700; line-height: 1.7; margin-bottom: 16px; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.promise { border-top: 3px solid var(--blue); padding-top: 16px; }
.promise h3 { font-size: 17px; margin-bottom: 8px; }
.promise h3 span { font-family: var(--en); color: var(--blue); margin-right: 8px; }
.promise p { font-size: 14px; color: var(--gray); }

/* ---------- 代表あいさつ ---------- */
.message__grid { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start; }
.photo-box {
  aspect-ratio: 4 / 5; background: var(--white); border-radius: 24px;
  display: grid; place-items: center; text-align: center; color: var(--gray); font-size: 14px;
  border: 2px dashed var(--line);
}
.message__catch { font-size: clamp(20px, 3vw, 28px); font-weight: 700; line-height: 1.6; margin-bottom: 24px; }
.message__text p + p { margin-top: 1em; }
.sign { margin-top: 32px; text-align: right; font-size: 14px; }
.sign strong { font-size: 22px; margin-left: 12px; letter-spacing: .15em; }

/* ---------- 会社概要 ---------- */
.company { background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { width: 200px; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
.table tr:first-child th, .table tr:first-child td { border-top: 1px solid var(--line); }
.map-link { margin-top: 8px; }

/* ---------- 採用バナー ---------- */
.recruit-bnr { padding: 96px 0; }
.recruit-bnr__box {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--blue); color: var(--white); border-radius: 32px; padding: 56px;
  overflow: hidden;
}
.recruit-bnr .ttl__ja { color: var(--white); opacity: .85; }
.recruit-bnr__catch { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; line-height: 1.6; margin-bottom: 16px; }
.recruit-bnr p { margin-bottom: 28px; }

/* ---------- お問い合わせ ---------- */
.contact { padding: 96px 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact__note { font-size: 15px; margin-bottom: 24px; }
.contact__tel {
  font-family: var(--en); font-size: clamp(32px, 5vw, 44px); font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 12px; line-height: 1.2;
}
.contact__tel svg { width: 32px; height: 32px; }
.contact__sub { font-size: 14px; color: var(--gray); margin-top: 4px; }
.contact__list { margin-top: 20px; font-size: 15px; }
.contact__list li { display: flex; gap: 16px; }
.contact__list b { font-family: var(--en); min-width: 48px; }
.contact__card { background: var(--white); border-radius: 24px; padding: 32px; }
.contact__card h3 { font-size: 16px; margin-bottom: 12px; }
.contact__card ul li { padding-left: 1.2em; position: relative; font-size: 14px; }
.contact__card ul li::before { content: "●"; color: var(--blue); position: absolute; left: 0; font-size: 10px; top: .45em; }

/* ---------- フッター ---------- */
.footer { background: var(--navy); color: #dfe8f1; padding: 64px 0 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer .logo__ja { color: var(--white); }
.footer address { font-style: normal; margin-top: 16px; }
.footer h4 { font-size: 13px; color: var(--white); margin-bottom: 8px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.copy { margin-top: 48px; font-family: var(--en); font-size: 12px; opacity: .7; }

/* ---------- 下層ページ（採用情報） ---------- */
.page-head { padding: 72px 0 0; }
.page-head .ttl { margin-bottom: 16px; }
.page-head p { font-size: 15px; }
.breadcrumb { font-size: 12px; color: var(--gray); margin-bottom: 24px; }
.breadcrumb a { text-decoration: none; }
.white { background: var(--white); }
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flow { display: grid; gap: 12px; }
.flow li {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline;
  background: var(--white); border-radius: 16px; padding: 16px 24px;
}
.flow time { font-family: var(--en); font-size: 20px; color: var(--blue); font-weight: 500; }

/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .header__inner { height: 60px; }
  .logo__ja { font-size: 15px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 60px 0 auto 0; background: var(--white);
    padding: 16px 24px 32px; box-shadow: 0 8px 16px rgba(0,0,0,.08);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .menu-open .nav { transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--sky); font-size: 15px; }
  .nav li:last-child { margin-top: 20px; }
  .nav .btn { justify-content: center; width: 100%; }

  .hero { padding-top: 32px; }
  .hero__inner, .about__grid, .service__main, .message__grid,
  .recruit-bnr__box, .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: 100%; max-width: 480px; margin-inline: auto; }
  .wave { height: 40px; margin-top: 24px; }
  .news__inner { grid-template-columns: 1fr; gap: 16px; }
  .news__list li { grid-template-columns: 1fr; gap: 0; }
  .points, .cards, .promises, .jobs { grid-template-columns: 1fr; }
  .points { margin-top: 40px; }
  .service__main, .owner__box, .recruit-bnr__box { padding: 32px 20px; border-radius: 20px; }
  .message__grid .photo-box { max-width: 260px; margin-inline: auto; width: 100%; }
  .table th, .table td { display: block; width: 100%; }
  .table th { padding: 16px 0 0; border-bottom: 0; }
  .table td { padding: 4px 0 16px; }
  .table tr:first-child td { border-top: 0; }
  .flow li { grid-template-columns: 64px 1fr; padding: 14px 16px; }
}
