/* 株式会社宥嬉 ホームページ */
:root {
  /* 宥嬉の色＝きれいな少し濃いめのブルー（ネイビーまではいかない） */
  --brand-900: #0d4183;
  --brand-700: #1763b8;
  --brand-500: #3d86d6;
  --brand-200: #a9cdf2;
  --tint-100: #e8f1fb;
  --tint-50: #f4f8fd;
  --ink: #1b2633;
  --muted: #566273;
  --line: #d6e3f2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 65, 131, 0.08);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-900); }
h1, h2, h3 { line-height: 1.4; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 48px; height: 48px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: 0.06em; color: var(--brand-900); }
.brand-name small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500;
}
.site-nav a:hover { background: var(--tint-100); color: var(--brand-900); }
.site-nav a.nav-cta { background: var(--brand-700); color: var(--white); margin-left: 8px; padding: 8px 20px; }
.site-nav a.nav-cta:hover { background: var(--brand-900); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle-bar { display: block; height: 2px; background: var(--brand-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- トップ ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 36%, rgba(255,255,255,0.1) 62%, rgba(255,255,255,0) 100%);
}
.hero-body { position: relative; padding-top: 72px; padding-bottom: 72px; }
.hero-kicker {
  display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand-700);
  background: var(--tint-100); padding: 4px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 700; color: var(--brand-900); letter-spacing: 0.04em; }
.hero-lead { max-width: 520px; margin-top: 20px; font-size: 17px; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-size: 16px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--brand-700); color: var(--white); }
.btn-primary:hover { background: var(--brand-900); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--brand-700); border-color: var(--brand-700); }
.btn-ghost:hover { background: var(--tint-100); }
.btn-block { width: 100%; }

.hero-iso {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: 14px; font-weight: 500; color: var(--brand-900);
  background: rgba(255,255,255,0.9); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 8px 8px;
}
.hero-iso-mark {
  background: var(--brand-700); color: var(--white); font-weight: 700; letter-spacing: 0.04em;
  border-radius: 6px; padding: 2px 10px; white-space: nowrap; flex: none;
}

/* ---------- 品質と衛生 ---------- */
.quality {
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-top: 40px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
}
.quality-badge {
  width: 180px; height: 180px; border-radius: 50%; border: 6px solid var(--brand-700);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  color: var(--brand-900); background: var(--tint-50);
}
.quality-badge-main { font-size: 26px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
.quality-badge-sub { font-size: 15px; font-weight: 700; color: var(--brand-700); margin-top: 4px; }
.quality-body h3 { font-size: 20px; color: var(--brand-900); margin-bottom: 12px; }
.quality-body p { color: var(--ink); }
.quality-reg { margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.quality-reg div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; }
.quality-reg dt { color: var(--muted); font-weight: 700; }
.quality-reg dd { margin: 0; color: var(--ink); }
.quality-body p.quality-note { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- 共通の段 ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint-50); }
.section-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.24em; color: var(--brand-500); }
.section-title { font-size: clamp(26px, 3.4vw, 34px); color: var(--brand-900); margin-top: 4px; letter-spacing: 0.04em; }
.section-lead { margin-top: 12px; color: var(--muted); }
.sub-title { font-size: 18px; color: var(--brand-900); margin-top: 56px; }

/* 事業内容 */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 40px; }
.cards .card { grid-column: span 2; }
.cards .card.card-wide { grid-column: span 3; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--tint-100); color: var(--brand-700);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 34px; height: 34px; }
.card h3 { font-size: 18px; color: var(--brand-900); margin-bottom: 10px; white-space: nowrap; }
.card p { color: var(--muted); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.chips li {
  padding: 8px 18px; border-radius: 999px; background: var(--tint-100); color: var(--brand-900);
  font-weight: 500; font-size: 15px;
}

/* 工場の仕事 */
.flow-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; align-items: start; }
.flow-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 24px); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.flow li {
  display: flex; gap: 16px; align-items: flex-start; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
}
.flow-num {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-700); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.flow h3 { font-size: 17px; color: var(--brand-900); }
.flow p { color: var(--muted); font-size: 15px; }

/* 会社概要 */
.company-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; background: var(--white); }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.info-table th { width: 8.5em; color: var(--brand-900); font-weight: 700; white-space: nowrap; }
.info-table tr:first-child th, .info-table tr:first-child td { border-top: 2px solid var(--brand-700); }
.map iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--tint-100); }
.map-note { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* 採用 */
.recruit-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 40px; align-items: start; }
.recruit-intro img { border-radius: var(--radius); box-shadow: var(--shadow); }
.recruit-lead { margin-top: 20px; font-size: 17px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.badges li { border: 2px solid var(--brand-500); color: var(--brand-700); font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 999px; background: var(--white); }
.recruit-detail .info-table { border-radius: var(--radius); }
.recruit-apply { margin-top: 24px; }
.tel-big { font-size: 24px; font-weight: 700; color: var(--brand-700); text-decoration: none; letter-spacing: 0.04em; }

/* お問い合わせ */
.tel-box {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--tint-100);
}
.tel-label { font-weight: 700; color: var(--brand-900); }
.tel-box .tel-big { font-size: 28px; }
.contact-form { margin-top: 32px; display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-weight: 700; font-size: 15px; }
.req { display: inline-block; font-size: 11px; font-weight: 700; color: var(--white); background: #c0504d; border-radius: 4px; padding: 0 6px; margin-left: 6px; vertical-align: 2px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid #b8cbe0; border-radius: 10px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(23, 99, 184, 0.3); border-color: var(--brand-500); }
.field-check label { font-weight: 500; display: flex; align-items: center; gap: 10px; }
.field-check input { width: 20px; height: 20px; accent-color: var(--brand-700); }

/* ---------- フッター ---------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,0.86); padding: 48px 0 32px; font-size: 14px; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-mark { width: 56px; height: 56px; flex: none; display: block; }
.footer-name { color: var(--white); font-weight: 700; font-size: 16px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.footer-links a { color: rgba(255,255,255,0.86); text-decoration: none; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.copyright { color: rgba(255,255,255,0.6); font-size: 12px; }

/* ---------- 下のページ（個人情報・送信後） ---------- */
.page { padding: 72px 0 96px; }
.page h1 { font-size: clamp(24px, 3.2vw, 32px); color: var(--brand-900); }
.page h2 { font-size: 18px; color: var(--brand-900); margin-top: 36px; margin-bottom: 8px; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 1.4em; margin: 8px 0 0; }
.page .meta { margin-top: 40px; color: var(--muted); font-size: 14px; }
.page .policy { margin-top: 28px; display: grid; gap: 14px; }
.page ul.policy-items { list-style: none; padding-left: 1em; margin: 0; display: grid; gap: 6px; }
.page .policy-sign { margin-top: 32px; text-align: right; display: grid; gap: 2px; }
.page .back { margin-top: 40px; }

/* ---------- タブレット・スマートフォン ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card, .cards .card.card-wide { grid-column: auto; }
  .card h3 { white-space: normal; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 2px; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }

  .flow-wrap, .company-wrap, .recruit-wrap, .cards { grid-template-columns: 1fr; }
  .quality { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 32px 24px; gap: 24px; }
  .flow-photo { position: static; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 17px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; height: 220px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,1) 100%); }
  .hero-body { padding-top: 8px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(20px, 6vw, 24px); }
  .hero-lead { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-iso { font-size: 13px; }
  .section { padding: 64px 0; }
  .card { padding: 24px; }
  .quality-badge { width: 150px; height: 150px; }
  .quality-badge-main { font-size: 22px; }
  .quality-body { text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .info-table th, .info-table td { display: block; width: auto; padding: 0 4px; border: 0; }
  .info-table th { padding-top: 14px; font-size: 14px; }
  .info-table td { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .info-table tr:first-child th { border-top: 2px solid var(--brand-700); }
  .info-table tr:first-child td { border-top: 0; }
  .map iframe { height: 260px; }
}
