/* 株式会社仙北谷 — static site stylesheet */
:root {
  --blue: #0f6fbf;
  --blue-dark: #0b3a6e;
  --navy: #12345e;
  --cyan: #5bc8f0;
  --text: #5b6b7c;
  --heading: #4a5d72;
  --line: #9fb7cf;
  --bg: #f5f5f5;
  --bg-light: #eaf2fc;
  --bg-mid: #d3e4f6;
  --bg-cell: #f2f8fe;
  --white: #fff;
  --maxw: 1200px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  letter-spacing: .03em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { opacity: .8; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.header-top { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.logo img { height: 56px; width: auto; }
.header-contact { display: flex; align-items: center; gap: 24px; }
.header-tel { color: var(--blue); font-size: 23px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.header-tel small { font-size: 12px; font-weight: 500; margin-left: 4px; }
.header-tel svg { width: 18px; height: 18px; vertical-align: -1px; margin-right: 4px; fill: currentColor; }
.btn-contact { display: inline-block; width: 220px; text-align: center; background: var(--cyan); color: var(--white); border-radius: 999px; padding: 7px 0; font-size: 14.5px; }
.global-nav { background: var(--bg-light); }
.global-nav > ul { display: flex; justify-content: center; list-style: none; gap: 4px; }
.global-nav > ul > li { position: relative; }
.global-nav > ul > li > a { display: block; padding: 8px 23px; font-size: 14px; color: var(--blue); }
.global-nav .sub { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 200px; background: var(--white); list-style: none; box-shadow: 0 6px 18px rgba(15,111,191,.15); padding: 6px 0; }
.global-nav li:hover > .sub, .global-nav li:focus-within > .sub { display: block; }
.global-nav .sub a { display: block; padding: 6px 18px; font-size: 13px; white-space: nowrap; }
.global-nav .sub a:hover { background: var(--bg-light); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--blue); margin: 5px 0; transition: .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- page heroes ---------- */
.page-hero { position: relative; height: 262px; background-size: cover; background-position: center; display: flex; align-items: center; }
.page-hero h1 { color: var(--white); font-size: 20px; font-weight: 500; letter-spacing: .06em; text-shadow: 0 1px 6px rgba(0,0,0,.35); width: 440px; max-width: 100%; text-align: center; }
.page-hero .container { max-width: 1100px; }
.page-hero.center .container { text-align: center; }
.page-hero.center h1 { width: auto; margin: 0 auto; }
.recruit-band { height: 87px; background: var(--bg); position: relative; }
.recruit-band::after { content: ""; position: absolute; left: 50%; top: 50%; width: 43px; height: 1px; background: var(--heading); transform: translateX(-50%); }
.page-title { text-align: center; color: var(--heading); font-size: 22px; font-weight: 400; padding: 56px 0 24px; }
.subnav { background: #e2e9f1; }
.subnav ul { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; gap: 0 8px; }
.subnav a { display: block; padding: 10px 18px; font-size: 13.5px; color: var(--text); }

/* ---------- top hero ---------- */
.hero { position: relative; min-height: 580px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); background: #2b3f63; overflow: hidden; }
.hero-slides span { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity 1.2s ease; }
.hero-slides span.is-active { opacity: 1; }
.hero-slides span:nth-child(3) { background-position: center 22%; }
@media (prefers-reduced-motion: reduce) { .hero-slides span { transition: none; } }
.hero::before { content: ""; z-index: 1; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,45,85,.35), rgba(20,45,85,.55)); }
.hero-inner { position: relative; z-index: 2; padding: 40px 20px; }
.hero h1 { font-size: clamp(26px, 4.2vw, 42px); font-weight: 400; letter-spacing: .04em; }
.hero .catch { font-size: clamp(16px, 2vw, 21px); margin-top: 2px; }
.hero .lead { font-size: 14px; font-weight: 500; margin-top: 34px; line-height: 1.75; }

.strengths { background: var(--bg-light); padding: 40px 0; }
.strengths ul { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; max-width: 1080px; margin: 0 auto; }
.strengths li { background: var(--white); padding: 9px 14px 9px 40px; font-size: 13px; color: var(--blue); position: relative; }
.strengths li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 13px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.strengths li.wide { grid-column: 1 / -1; text-align: center; padding-left: 14px; }
.strengths li.wide::before { display: none; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.light { background: var(--bg-light); }
.section.mid { background: var(--bg-mid); }
.section.white { background: var(--white); }
.sec-title { text-align: center; font-size: 22px; font-weight: 400; color: var(--heading); margin-bottom: 40px; }
.sec-title::after { content: ""; display: block; width: 36px; height: 1px; background: currentColor; margin: 12px auto 0; }
.sec-title.blue { color: var(--blue); }
.sec-title.italic { font-style: italic; }
.sec-title .en { display: block; font-size: 11px; font-style: normal; letter-spacing: .3em; margin-bottom: 2px; }
.sec-lead { text-align: center; max-width: 760px; margin: 0 auto; }

/* services */
.services { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }
.service { display: flex; gap: 16px; align-items: flex-start; min-width: 200px; }
.service img { width: 54px; }
.service h3 { color: var(--blue); font-size: 16px; }
.service ul { list-style: none; font-size: 13px; color: var(--blue); line-height: 1.7; }

/* tech grid */
.tech-grid { display: grid; gap: 6px; grid-template-columns: repeat(6, 1fr); }
.tech-grid a { display: block; color: var(--text); }
.tech-grid a.big { grid-column: span 3; }
.tech-grid a.small { grid-column: span 2; }
.tech-grid img { width: 100%; aspect-ratio: 2.67; object-fit: cover; }
.tech-grid a.small img { aspect-ratio: 2.67; }
.tech-grid span { display: block; background: #e2e9f1; text-align: center; padding: 3px; margin-top: 20px; margin-bottom: 14px; font-size: 14px; }
.samples-title { text-align: center; color: var(--heading); margin: 6px 0 8px; font-size: 14px; }
.samples { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.samples img { width: 70px; height: 70px; object-fit: cover; }
.samples.lg img { width: 74px; height: 74px; }
.samples-note { text-align: center; font-size: 12.5px; max-width: 700px; margin: 8px auto 0; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 8px 4px; text-align: left; font-weight: 400; vertical-align: top; }
.tbl-blue thead th { background: var(--bg-mid); color: var(--blue); font-size: 12px; }
.tbl-blue tbody td, .tbl-blue tbody th { background: var(--bg-light); color: var(--blue); border-bottom: 1px solid var(--white); }
.tbl-blue tbody tr:nth-child(odd) td, .tbl-blue tbody tr:nth-child(odd) th { background: #dfeaf7; }
.tbl-blue th:first-child, .tbl-blue td:first-child { padding-left: 14px; }
.tbl-blue .num { text-align: center; width: 60px; }
.tbl-lines { border-top: 1px solid var(--heading); }
.tbl-lines th, .tbl-lines td { border-bottom: 1px solid var(--heading); padding: 16px 8px; }
.tbl-lines th { width: 13%; min-width: 96px; color: var(--text); }
.tbl-lines.wide-th th { width: 16%; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .tbl { min-width: 640px; }

.btn-outline { display: inline-block; border: 2px solid var(--blue); border-radius: 999px; color: var(--blue); font-size: 13px; font-weight: 500; padding: 4px 26px; background: transparent; }
.btn-outline.block { display: block; text-align: center; padding: 6px; font-size: 14px; }
.btn-fill { display: block; text-align: center; background: var(--cyan); color: var(--white); border-radius: 999px; padding: 8px; font-size: 14px; }
.btn-pill { display: inline-block; background: #567fc2; color: var(--white); border-radius: 999px; padding: 6px 22px; font-size: 13px; }
.btn-row { text-align: center; margin-top: 24px; }

/* fields */
.fields { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px 60px; text-align: center; }
.field { width: 170px; color: var(--blue); font-size: 12.5px; line-height: 1.6; }
.field img { width: 60px; margin: 0 auto 18px; }

/* news */
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-list.head { border-top: 0; }
.news-head { padding: 0 20px 10px; font-size: 13px; color: var(--heading); border-bottom: 1px solid var(--line); }
.news-list li { display: flex; gap: 30px; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.news-list time { flex: none; width: 70px; color: var(--heading); }

/* about */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.access iframe { width: 100%; height: 280px; border: 0; }
.access .info { font-size: 13px; }
.access .btns { display: flex; gap: 40px; margin-top: 24px; flex-wrap: wrap; padding-left: 26px; }
.about-us { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: start; }
.about-us h3 { color: var(--blue); font-size: 17px; margin: 0 0 12px; }
.about-us .block { margin-bottom: 44px; font-size: 13px; }
.sdgs-list img { width: 140px; margin-top: 4px; }

/* capability */
.tech-sec { padding: 60px 0; }
.tech-sec:nth-of-type(odd) { background: var(--bg-cell); }
.tech-body { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; max-width: 1000px; margin: 0 auto; font-size: 13px; }
.tech-body h4 { color: var(--blue); font-size: 13.5px; font-weight: 700; margin: 24px 0 6px; }
.tech-body .photo img { width: 100%; aspect-ratio: 1.43; object-fit: cover; margin-bottom: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 66px); gap: 24px; }
.thumbs img { width: 66px; height: 66px; object-fit: cover; }
.guideline { max-width: 1000px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--blue); font-size: 12.5px; }
.guideline h3 { text-align: center; font-size: 16px; margin-bottom: 14px; }
.guideline .ask { text-align: center; margin-bottom: 6px; }
.box { background: var(--bg-cell); border: 1px solid #a9c8e6; padding: 4px 10px; margin-bottom: 4px; }
.box.center { text-align: center; padding: 6px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 4px; margin-top: 12px; }
.guide-grid .label { padding: 2px 6px; }
.mat-box { border: 1px solid #a9c8e6; background: var(--bg-cell); margin: 0; }
.mat-box dt { background: #dce9f7; padding: 0 6px; }
.mat-box dd { margin: 0; padding: 3px 6px; }
.mat-box a { color: var(--cyan); display: block; }
.guide-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; align-items: start; }
.guide-foot .btns { display: grid; gap: 8px; padding-top: 14px; }
.cta-band { background: linear-gradient(110deg, #a596ec 0%, #6e8fdc 45%, #3c8ad0 100%); color: var(--white); text-align: center; padding: 70px 20px; }
.cta-band h2 { font-size: 20px; margin-bottom: 16px; }
.cta-band p { margin: 0; font-size: 14px; line-height: 1.8; }
.cta-band .btn-outline { color: var(--white); border-color: var(--white); margin-top: 20px; }
.qc-sec { background: var(--white); }

/* feature */
.feature-wrap { max-width: 980px; margin: 0 auto; background: var(--white); }
.feature-wrap > .banner img { width: 100%; }
.feature-inner { padding: 30px 60px 40px; }
.feature-inner .ft-title { text-align: center; color: var(--blue); font-size: 18px; margin-bottom: 30px; }
.tag-title { text-align: center; color: var(--blue); font-size: 12.5px; margin: 20px 0 16px; }
.tag-title span { display: inline-block; border-bottom: 1px solid var(--blue); padding: 0 6px 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.check { position: relative; padding-left: 26px; font-size: 12.5px; }
.check::before { content: ""; position: absolute; left: 0; top: 50%; width: 13px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-50%) rotate(-45deg); }
.check h4 { color: var(--blue); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.check p { margin: 0; }
.guide-panel { background: var(--bg-light); padding: 30px 60px 40px; color: var(--blue); font-size: 12.5px; }
.guide-panel h3 { text-align: center; font-size: 16px; margin-bottom: 18px; }
.guide-panel .ask { text-align: center; margin: 20px 0 8px; }
.cmp th, .cmp td { text-align: center; padding: 5px; }
.cmp th:first-child, .cmp td:first-child { text-align: left; padding-left: 12px; }
.cmp tbody tr:first-child td { font-size: 15px; background: #dce9f7; }
.mark { font-size: 15px; }
.printer td { border: 1px solid #a9c8e6; background: var(--bg-cell); padding: 6px 8px; width: 50%; }
.adc-guide { max-width: 980px; margin: 60px auto 0; border: 1px solid #5ea5df; background: var(--white); padding: 30px 46px 40px; }
.adc-guide h2 { text-align: center; color: var(--blue); font-size: 18px; margin-bottom: 24px; }
.adc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; font-size: 13px; }
.adc-grid h3 { color: var(--blue); font-size: 15px; font-weight: 700; margin-top: 14px; }
.adc-grid p.blue { color: var(--blue); }
.adc-grid img { margin-top: 40px; }

/* facility */
.facility-wrap { max-width: 1000px; margin: 0 auto; background: var(--white); padding-bottom: 40px; }
.facility-wrap .inner { padding: 0 6% 0; }
.mat-table { margin: 0; border: 1px solid #a9c8e6; color: var(--blue); font-size: 12.5px; }
.mat-table dt { background: #dce9f7; padding: 0 14px; }
.mat-table dd { margin: 0; padding: 4px 14px; background: var(--bg-cell); }
.note { text-align: center; font-size: 12px; margin-top: 10px; }
.sub-title { text-align: center; color: var(--blue); font-size: 16px; margin: 40px 0 14px; }

/* recruit */
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto; font-size: 13px; }
.jobs h3 { text-align: center; color: #333; font-size: 15px; margin-bottom: 14px; }
.entry { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; margin: 0 auto; font-size: 13px; }
.entry .media img { width: 100%; }
.btn-white { display: block; width: 240px; margin-left: auto; text-align: center; background: var(--white); padding: 8px; color: var(--navy); }
.btn-navy { display: block; width: 240px; margin-left: auto; text-align: center; background: var(--navy); color: var(--white); padding: 8px; }

/* contact */
.form { max-width: 760px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid #dde6ef; align-items: start; }
.form-row label { font-size: 14px; color: var(--heading); padding-top: 8px; }
.req { display: inline-block; background: #e45a5a; color: var(--white); font-size: 11px; padding: 0 6px; margin-left: 8px; border-radius: 3px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #c4d3e2; border-radius: 4px; background: var(--white); }
.form textarea { min-height: 200px; }
.form .hint { font-size: 12px; margin-top: 4px; }
.form .agree { text-align: center; margin: 24px 0; font-size: 13px; }
.form button { display: block; margin: 0 auto; border: 0; cursor: pointer; background: var(--cyan); color: var(--white); font: inherit; padding: 10px 70px; border-radius: 999px; }
.hp { display: none; }
.prose { max-width: 820px; margin: 0 auto; font-size: 14px; }
.prose h2 { color: var(--heading); font-size: 15px; font-weight: 400; margin: 26px 0 4px; }
.prose h2.first { margin-top: 0; }
.prose p { font-size: 13.5px; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-mid); color: var(--blue); padding: 50px 0 30px; font-size: 12.5px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr .45fr .65fr 1fr .7fr; gap: 20px; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.footer-company .name { font-size: 18px; margin-bottom: 10px; }
.footer-company p { margin: 0; line-height: 1.8; }
.footer-company .sdgs { margin-top: 22px; }
.footer-company .sdgs img { width: 140px; }
.site-footer h4 { font-style: italic; font-size: 13.5px; margin-bottom: 8px; }
.site-footer h4 a { color: inherit; }
.site-footer ul { list-style: none; line-height: 1.95; margin-bottom: 16px; }
.site-footer a { color: var(--blue); }
.copyright { text-align: center; margin-top: 50px; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .header-top { height: 60px; }
  .logo img { height: 38px; }
  .header-contact { display: none; }
  .nav-toggle { display: block; }
  .global-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; max-height: calc(100vh - 60px); overflow-y: auto; box-shadow: 0 8px 18px rgba(0,0,0,.1); }
  .nav-open .global-nav { display: block; }
  .global-nav > ul { flex-direction: column; gap: 0; }
  .global-nav > ul > li > a { padding: 12px 20px; border-bottom: 1px solid #d8e4f1; font-size: 15px; }
  .global-nav .sub { display: block; position: static; transform: none; box-shadow: none; background: var(--white); }
  .global-nav .sub a { padding: 8px 36px; }
  .global-nav .mobile-only { display: block; }
  .strengths ul { grid-template-columns: 1fr 1fr; }
  .tech-body, .about-us, .access, .entry, .adc-grid, .guide-foot { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-company { grid-column: 1 / -1; }
  .feature-inner, .guide-panel { padding-left: 20px; padding-right: 20px; }
  .adc-guide { padding: 24px 20px; margin-left: 16px; margin-right: 16px; }
}
@media (min-width: 961px) { .global-nav .mobile-only { display: none; } }
@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero { min-height: 480px; }
  .hero .lead br { display: none; }
  .page-hero { height: 180px; }
  .page-hero h1 { text-align: left; width: auto; }
  .strengths ul { grid-template-columns: 1fr; }
  .tech-grid a.big, .tech-grid a.small { grid-column: 1 / -1; }
  .checks, .guide-grid, .jobs { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 4px; }
  .news-list li { flex-direction: column; gap: 0; }
  .tbl-lines th { width: auto; min-width: 84px; }
  .btn-white, .btn-navy { width: 100%; }
  .section { padding: 48px 0; }
}
@media (max-width: 640px) {
  .services { flex-direction: column; align-items: center; gap: 30px; }
  .service { width: 250px; }
}

/* contact form（由紀ホールディングスと同じ送信の仕組み） */
.form-label { font-size: 14px; color: var(--heading); margin: 0; padding-top: 4px; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.choice input, .agree-check input { width: auto; accent-color: var(--blue); }
.form-row[hidden] { display: none; }
.field-error { color: #c62828; font-size: 12.5px; margin: 4px 0 0; }
.field-error:empty { display: none; }
.form [aria-invalid="true"] { border-color: #c62828; background: #fff6f6; }
.agree-check { text-align: center; margin-bottom: 24px; font-size: 14px; }
.agree-check label { cursor: pointer; }
.form-notice { text-align: center; margin: 12px 0 0; font-size: 13px; color: var(--blue); }
.form-notice:empty { display: none; }
.form-recaptcha { text-align: center; font-size: 11.5px; margin-top: 16px; }
.form button:disabled { opacity: .6; cursor: default; }
@media (max-width: 640px) {
}
[hidden] { display: none !important; }
