/*
Theme Name: Ienaga Giken Renewal
Theme URI: https://ienagagiken.co.jp/
Author: Ienaga Giken
Description: 株式会社家永技建のコーポレートサイト専用テーマ。
Version: 4.6.1
Text Domain: ienaga-renewal
*/
:root {
  --color-navy: #082a3c;
  --color-navy-soft: #123f55;
  --color-heading: #102b3a;
  --color-text: #526873;
  --color-blue: #078fc4;
  --color-blue-strong: #067daf;
  --color-blue-light: #ddf3fa;
  --color-bg-soft: #f7fafb;
  --color-border: #dce7eb;
  --color-white: #fff;
  --navy: var(--color-navy);
  --navy-soft: var(--color-navy-soft);
  --blue: var(--color-blue);
  --blue-bright: #22a9db;
  --sky: var(--color-blue-light);
  --ink: var(--color-heading);
  --muted: var(--color-text);
  --line: var(--color-border);
  --white: var(--color-white);
  --off-white: var(--color-bg-soft);
  --shadow: 0 12px 36px rgba(8, 42, 60, .08);
  --radius: 12px;
  --container: 1180px;
  --section-space: clamp(78px, 8vw, 112px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { width: auto; height: auto; clip: auto; margin: 12px; padding: 10px 16px; z-index: 9999; background: #fff; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: 86px; color: var(--white);
  background: linear-gradient(180deg, rgba(4, 18, 31, .86), rgba(4, 18, 31, .48));
  transition: background .25s ease, box-shadow .25s ease, height .25s ease;
}
.site-header.is-scrolled, body:not(.home) .site-header {
  height: 76px; background: rgba(7, 26, 43, .97); box-shadow: 0 8px 30px rgba(0, 0, 0, .13);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-branding { display: flex; align-items: center; min-width: 220px; }
.brand-logo { display: block; width: 245px; max-height: 50px; object-fit: contain; object-position: left center; }
.site-title { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.primary-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.primary-menu a { position: relative; display: block; padding: 10px 0; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.primary-menu a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 2px; background: var(--blue-bright); transition: right .2s ease; }
.primary-menu a:hover::after, .primary-menu .current-menu-item > a::after { right: 0; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 26px; height: 2px; margin: auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -8px; }
.menu-toggle-lines::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.hero { position: relative; min-height: 740px; height: 92vh; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.hero-media, .hero-media video, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media video { object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(4, 17, 29, .88) 0%, rgba(4, 17, 29, .60) 47%, rgba(4, 17, 29, .22) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 110px; background: linear-gradient(to bottom right, transparent 49%, #fff 50%); }
.hero-content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 70px; }
.eyebrow { margin: 0 0 18px; color: var(--blue-bright); font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(38px, 5.2vw, 70px); line-height: 1.28; letter-spacing: .04em; text-wrap: balance; }
.hero-lead { max-width: 670px; margin: 26px 0 0; color: rgba(255,255,255,.86); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; min-height: 54px; padding: 12px 26px; border: 1px solid transparent; border-radius: 999px; font-size: 14px; font-weight: 800; letter-spacing: .08em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 12px 30px rgba(11,117,185,.3); }
.button-primary:hover { background: #08669f; }
.button-outline { color: #fff; border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.06); }
.button-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.button-dark { color: #fff; background: var(--navy); }
.button-white { color: var(--navy); background: #fff; }
.hero-scroll { position: absolute; z-index: 3; right: 4vw; bottom: 105px; display: flex; align-items: center; gap: 12px; transform: rotate(90deg); transform-origin: right bottom; color: rgba(255,255,255,.62); font-size: 11px; letter-spacing: .2em; }
.hero-scroll::after { content: ""; display: block; width: 60px; height: 1px; background: rgba(255,255,255,.55); }

.section { padding: 110px 0; }
.section-soft { background: var(--off-white); }
.section-dark { color: #fff; background: var(--navy); }
.section-heading { display: grid; grid-template-columns: 1fr 1.25fr; align-items: end; gap: 70px; margin-bottom: 54px; }
.section-kicker { display: block; margin-bottom: 12px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.35; letter-spacing: .04em; }
.section-description { margin: 0; color: var(--muted); font-size: 16px; }
.section-dark .section-description { color: rgba(255,255,255,.7); }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 400px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--navy); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(3,18,30,.9) 100%); }
.service-card-content { position: absolute; z-index: 2; inset: auto 26px 26px; color: #fff; }
.service-number { display: block; margin-bottom: 8px; color: var(--blue-bright); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.service-card h3 { margin: 0 0 8px; font-size: 24px; letter-spacing: .06em; }
.service-card p { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.7; }
.service-arrow { display: grid; place-items: center; width: 42px; height: 42px; margin-top: 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 18px; transition: background .2s ease, color .2s ease; }
.service-card:hover img { transform: scale(1.05); }
.service-card:hover .service-arrow { color: var(--navy); background: #fff; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.about-copy h2 { margin: 0 0 24px; font-size: clamp(30px, 4vw, 48px); line-height: 1.42; }
.about-copy p { color: var(--muted); }
.about-visual { position: relative; min-height: 480px; }
.about-photo { width: 88%; height: 410px; margin-left: auto; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.quality-card { position: absolute; left: 0; bottom: 0; width: 280px; padding: 28px; border-radius: 14px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
.quality-card strong { display: block; font-size: 24px; letter-spacing: .04em; }
.quality-card span { display: block; margin-top: 6px; color: rgba(255,255,255,.66); font-size: 12px; }
.quality-badges { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.quality-badges img { max-width: 210px; max-height: 90px; object-fit: contain; }

.recruit { position: relative; overflow: hidden; }
.recruit-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; }
.recruit-image { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.recruit-image img { width: 100%; min-height: 350px; object-fit: cover; }
.recruit-copy h2 { margin: 0 0 22px; font-size: clamp(30px, 4vw, 48px); line-height: 1.42; }
.recruit-copy p { color: var(--muted); }

.news-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 80px; }
.news-list { border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 24px 6px; border-bottom: 1px solid var(--line); }
.news-date { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.news-title { margin: 0; font-weight: 700; }

.contact-band { position: relative; overflow: hidden; padding: 86px 0; color: #fff; background: linear-gradient(120deg, #075a8c, #0b75b9 58%, #27a7df); }
.contact-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -100px; top: -180px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.contact-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-band h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.contact-band p { margin: 10px 0 0; color: rgba(255,255,255,.8); }

.page-hero { position: relative; min-height: 370px; display: flex; align-items: flex-end; padding: 150px 0 70px; overflow: hidden; color: #fff; background: var(--navy); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,23,38,.92), rgba(5,23,38,.54)), var(--page-image, none) center/cover; }
.page-hero .container { position: relative; }
.page-hero h1 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.3; letter-spacing: .05em; }
.breadcrumbs { color: rgba(255,255,255,.64); font-size: 12px; letter-spacing: .05em; }
.breadcrumbs a:hover { color: #fff; }
.page-main { padding: 90px 0 120px; }
.page-content { width: min(100%, 960px); margin-inline: auto; }
.page-content > :first-child { margin-top: 0; }
.page-content h2 { margin: 2.2em 0 .8em; padding-left: 20px; border-left: 4px solid var(--blue); font-size: clamp(25px, 3vw, 34px); line-height: 1.45; }
.page-content h3 { margin: 2em 0 .7em; color: var(--navy); font-size: 22px; }
.page-content p { margin: 0 0 1.45em; }
.page-content a:not(.elementor-button) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.page-content table { width: 100%; border-collapse: collapse; margin: 30px 0; }
.page-content th, .page-content td { padding: 16px 18px; border: 1px solid var(--line); text-align: left; }
.page-content th { width: 28%; background: var(--off-white); }
.page-content .elementor-section.elementor-section-boxed > .elementor-container { max-width: 960px; }

.site-footer { padding: 72px 0 28px; color: rgba(255,255,255,.75); background: #051522; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 60px; padding-bottom: 55px; }
.footer-logo { width: 260px; margin-bottom: 22px; }
.footer-address { margin: 0; font-size: 14px; }
.footer-phone { margin: 18px 0 0; color: #fff; font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.footer-heading { margin: 0 0 18px; color: #fff; font-size: 13px; letter-spacing: .12em; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }

@media (max-width: 1024px) {
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .primary-navigation { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; visibility: hidden; opacity: 0; background: rgba(5,21,34,.98); transition: opacity .2s, visibility .2s; }
  .primary-navigation.is-open { visibility: visible; opacity: 1; }
  .primary-menu { flex-direction: column; gap: 12px; text-align: center; }
  .primary-menu a { padding: 12px 24px; font-size: 18px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 380px; }
  .about-grid, .recruit-grid { gap: 50px; }
  .footer-grid { grid-template-columns: 1.2fr .8fr; }
  .footer-grid > :last-child { display: none; }
}

@media (max-width: 767px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header { height: 70px; }
  .site-header.is-scrolled, body:not(.home) .site-header { height: 66px; }
  .brand-logo { width: 205px; max-height: 42px; }
  .hero { min-height: 680px; height: 92svh; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,17,29,.88), rgba(4,17,29,.54)); }
  .hero::after { height: 54px; }
  .hero-content { padding-top: 70px; }
  .hero h1 { font-size: clamp(34px, 10.7vw, 48px); }
  .hero-lead { margin-top: 20px; font-size: 15px; }
  .hero-actions { margin-top: 28px; }
  .button { min-width: 155px; min-height: 50px; padding: 10px 20px; }
  .hero-scroll { display: none; }
  .section { padding: 76px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
  .section-title { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 335px; }
  .about-grid, .recruit-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-visual { min-height: 390px; order: -1; }
  .about-photo { width: 92%; height: 330px; }
  .quality-card { width: 245px; padding: 22px; }
  .quality-card strong { font-size: 20px; }
  .recruit-image img { min-height: 260px; }
  .news-grid { grid-template-columns: 1fr; gap: 34px; }
  .news-item { grid-template-columns: 1fr; gap: 5px; padding: 20px 4px; }
  .contact-band { padding: 65px 0; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .page-hero { min-height: 300px; padding: 125px 0 50px; }
  .page-main { padding: 62px 0 85px; }
  .page-content th, .page-content td { display: block; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid > :nth-child(2) { display: none; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero video { display: none; }
}
