/* =====================================================
   色・幅の基本設定
   色を変えたいときは、まずこの部分を変更してください
===================================================== */
:root {
  --navy: #07182c;
  --navy-2: #0d2946;
  --blue: #1261a6;
  --cyan: #00a6c8;
  --orange: #f15a2a;
  --white: #ffffff;
  --light: #f2f5f7;
  --gray: #647180;
  --line: #d7dee4;
  --text: #172231;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--text); background: var(--white); font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.75; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.sp-only { display: none; }

.demo-bar { min-height: 34px; padding: 7px 20px; display: flex; justify-content: center; align-items: center; gap: 12px; color: #435164; background: #e9eef2; border-bottom: 1px solid #d7dee4; font-size: .74rem; line-height: 1.45; text-align: center; }
.demo-bar strong { color: var(--blue); font: 800 .68rem Arial, sans-serif; letter-spacing: .14em; white-space: nowrap; }
.demo-bar span { font-weight: 700; letter-spacing: .01em; }

.site-header { position: sticky; top: 0; z-index: 50; height: 76px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 8px 30px rgba(7,24,44,.1); }
.header-inner { max-width: 1360px; height: 100%; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--navy); border-left: 5px solid var(--orange); font-family: Arial, sans-serif; font-size: .88rem; font-weight: 900; letter-spacing: -.03em; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text strong { font-size: .89rem; }
.logo-text small { margin-top: 4px; color: var(--gray); font-family: Arial, sans-serif; font-size: .56rem; letter-spacing: .08em; }
.global-nav { height: 100%; display: flex; align-items: center; gap: 24px; }
.global-nav a { position: relative; font-size: .84rem; font-weight: 700; }
.global-nav a:not(.nav-contact)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--blue); transition: width .2s; }
.global-nav a:hover::after, .global-nav a:focus-visible::after { width: 100%; }
.nav-contact { height: 100%; padding: 0 24px; display: flex; align-items: center; color: white; background: var(--blue); }
.menu-button { display: none; }

.hero { position: relative; overflow: hidden; color: white; background: var(--navy); }
.hero-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.17) 1px, transparent 1px); background-size: 48px 48px; }
.hero::after { content: ""; position: absolute; top: 0; left: calc(50% + 350px); width: 70px; height: 100%; background: repeating-linear-gradient(-45deg, var(--orange) 0 12px, transparent 12px 24px); opacity: .8; }
.hero-content { position: relative; z-index: 1; min-height: 650px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 58px; padding-top: 60px; padding-bottom: 70px; }
.eyebrow { margin: 0 0 20px; color: #70d7ea; font: 800 .75rem/1.4 Arial, sans-serif; letter-spacing: .18em; }
.eyebrow.dark { color: var(--blue); }
.hero h1 { margin: 0; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.15; letter-spacing: -.06em; }
.hero h1 em { color: white; font-style: normal; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 8px; text-underline-offset: 8px; }
.hero-lead { margin: 32px 0; color: #d7e2ec; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 58px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid transparent; border-radius: 0; font-weight: 800; transition: transform .2s, background .2s, color .2s; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--orange); }
.button-primary:hover { background: #d84417; }
.button-outline { color: white; border-color: rgba(255,255,255,.5); }
.button-outline:hover { color: var(--navy); background: white; }
.hero-points { margin: 36px 0 0; padding: 24px 0 0; display: flex; gap: 28px; border-top: 1px solid rgba(255,255,255,.2); list-style: none; }
.hero-points li { font-size: .88rem; font-weight: 700; }
.hero-points span { margin-right: 8px; color: #70d7ea; font: 700 .7rem Arial, sans-serif; }
.image-placeholder { position: relative; overflow: hidden; background-color: #18334f; background-image: linear-gradient(135deg, rgba(255,255,255,.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.05) 50%, rgba(255,255,255,.05) 75%, transparent 75%, transparent); background-size: 36px 36px; border: 1px solid rgba(255,255,255,.24); }
.hero-visual { min-height: 470px; border-left: 5px solid var(--cyan); box-shadow: 22px 22px 0 rgba(255,255,255,.07); }
.placeholder-label { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; color: #b9cad9; text-align: center; font-weight: 700; }
.placeholder-label span { color: #70d7ea; font: 800 .72rem Arial, sans-serif; letter-spacing: .2em; }
.status-card { position: absolute; right: 0; bottom: 30px; min-width: 265px; padding: 18px; display: flex; align-items: center; gap: 14px; color: var(--text); background: white; }
.status-icon { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--orange); font-size: 1.35rem; font-weight: 900; }
.status-card div { display: flex; flex-direction: column; }
.status-card small { color: var(--gray); font-size: .72rem; }
.status-card strong { font-size: .98rem; }
.service-strip { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16); background: rgba(7,24,44,.93); }
.service-strip .container { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.service-strip span { color: #dbe5ee; font-size: .84rem; font-weight: 700; }
.service-strip span::before { content: "/"; margin-right: 14px; color: var(--cyan); }

.section { padding: 110px 0; }
.section-heading { margin-bottom: 54px; }
.section-heading h2, .company-title h2, .recruit-copy h2, .contact-copy h2 { margin: 0; font-size: clamp(2.05rem, 4vw, 3.45rem); line-height: 1.3; letter-spacing: -.045em; }
.section-heading > p:last-child { color: var(--gray); }
.split-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; }
.split-heading > p { margin: 0; padding-left: 28px; border-left: 3px solid var(--orange); }

.problem-section { background: var(--light); }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.problem-card { min-height: 220px; padding: 34px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.problem-card:hover { z-index: 1; transform: translateY(-5px); box-shadow: 0 16px 35px rgba(7,24,44,.11); }
.problem-card > span { color: var(--blue); font: 800 .75rem Arial, sans-serif; letter-spacing: .14em; }
.problem-card h3 { margin: 28px 0 9px; font-size: 1.25rem; }
.problem-card p { margin: 0; color: var(--gray); font-size: .92rem; }
.problem-cta { min-height: 86px; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; background: var(--blue); }
.problem-cta a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.5); font-weight: 800; }

.services-section { color: white; background: var(--navy); }
.light-heading { max-width: 760px; }
.light-heading > p:last-child { color: #afbecc; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #30445a; border: 1px solid #30445a; }
.service-card { position: relative; min-height: 390px; padding: 34px; background: #0d2238; transition: background .25s; }
.service-card:hover { background: #12304e; }
.service-card.service-featured { background: var(--blue); }
.service-number { color: #7790a6; font: 700 .74rem Arial, sans-serif; letter-spacing: .15em; }
.service-icon { width: 66px; height: 66px; margin: 46px 0 25px; display: grid; place-items: center; border: 1px solid rgba(112,215,234,.5); color: #70d7ea; font: 800 .68rem Arial, sans-serif; letter-spacing: .08em; transform: rotate(-3deg); }
.service-featured .service-icon { color: white; border-color: rgba(255,255,255,.6); }
.service-card h3 { margin: 0 0 12px; font-size: 1.35rem; }
.service-card p { margin: 0 0 22px; color: #b9c7d3; font-size: .9rem; }
.service-featured p { color: #dfedf7; }
.service-card ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; }
.service-card li { color: #dce5ec; font-size: .78rem; }
.service-card li::before { content: "—"; margin-right: 7px; color: var(--cyan); }

.equipment-section { background: white; }
.equipment-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.equipment-copy { position: sticky; top: 130px; }
.equipment-copy h2 { margin: 0 0 24px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.35; letter-spacing: -.05em; }
.equipment-copy > p:not(.eyebrow) { color: var(--gray); }
.text-link { display: inline-block; margin-top: 20px; padding-bottom: 5px; color: var(--blue); border-bottom: 2px solid var(--blue); font-weight: 800; }
.equipment-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.equipment-list div { min-height: 145px; padding: 28px; display: grid; grid-template-columns: 45px 1fr; align-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.equipment-list span { grid-row: span 2; color: var(--blue); font: 700 .72rem Arial, sans-serif; }
.equipment-list strong { font-size: 1.18rem; }
.equipment-list small { color: #89949e; font: 700 .68rem Arial, sans-serif; letter-spacing: .12em; }

.works-section { background: var(--light); }
.works-notice { margin-bottom: 18px; padding: 10px 16px; color: #624400; background: #fff0b5; border-left: 4px solid #e6ac00; font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.works-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.work-card { background: white; border: 1px solid var(--line); }
.work-image { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #b9cad9; }
.work-image span { color: #70d7ea; font: 800 .72rem Arial, sans-serif; letter-spacing: .18em; }
.work-image small { margin-top: 6px; }
.work-content { padding: 32px; }
.work-meta { display: flex; justify-content: space-between; gap: 16px; }
.work-meta span { padding: 4px 10px; color: white; background: var(--blue); font-size: .72rem; font-weight: 800; }
.work-meta time { color: var(--gray); font-size: .78rem; }
.work-card h3 { margin: 19px 0 23px; font-size: 1.38rem; line-height: 1.45; }
.work-card dl { margin: 0; }
.work-card dl > div { padding: 11px 0; display: grid; grid-template-columns: 52px 1fr; gap: 10px; border-top: 1px solid var(--line); }
.work-card dt { color: var(--blue); font-size: .78rem; font-weight: 800; }
.work-card dd { margin: 0; color: var(--gray); font-size: .86rem; }
.compact-work .work-content { min-height: 100%; }

.reasons-section { color: white; background: var(--navy-2); }
.centered-heading { text-align: center; }
.reasons-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #40556a; border-left: 1px solid #40556a; }
.reasons-grid article { min-height: 295px; padding: 34px 28px; border-right: 1px solid #40556a; border-bottom: 1px solid #40556a; }
.reasons-grid span { color: #70d7ea; font: 800 .75rem Arial, sans-serif; }
.reasons-grid h3 { margin: 55px 0 14px; font-size: 1.22rem; }
.reasons-grid p { margin: 0; color: #b9c7d3; font-size: .88rem; }

.flow-section { background: white; }
.flow-list { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); list-style: none; counter-reset: flow; }
.flow-list li { position: relative; min-height: 185px; padding: 24px 18px; border-top: 4px solid var(--blue); border-right: 1px solid var(--line); }
.flow-list li:first-child { border-left: 1px solid var(--line); }
.flow-list li:not(:last-child)::after { content: "›"; position: absolute; z-index: 1; top: 17px; right: -11px; width: 22px; height: 22px; display: grid; place-items: center; color: white; background: var(--blue); border-radius: 50%; font-size: 1.2rem; }
.flow-list li > span { color: var(--blue); font: 800 .72rem Arial, sans-serif; }
.flow-list div { margin-top: 42px; }
.flow-list strong, .flow-list small { display: block; }
.flow-list strong { font-size: 1rem; }
.flow-list small { margin-top: 7px; color: var(--gray); line-height: 1.5; }

.recruit-section { position: relative; overflow: hidden; padding: 100px 0; color: white; background: var(--blue); }
.recruit-section::before { content: "JOIN OUR TEAM"; position: absolute; right: -20px; bottom: -40px; color: rgba(255,255,255,.06); font: 900 8rem Arial, sans-serif; white-space: nowrap; }
.recruit-layout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.recruit-copy .recruit-lead { margin: 20px 0 8px; font-size: 1.2rem; font-weight: 800; }
.recruit-copy > p:not(.eyebrow):not(.recruit-lead) { color: #dbeafa; }
.button-white { margin-top: 25px; color: var(--blue); background: white; }
.recruit-points { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.35); border-left: 1px solid rgba(255,255,255,.35); }
.recruit-points div { min-height: 165px; padding: 25px; border-right: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); }
.recruit-points span { color: #a8e9f4; font: 800 .7rem Arial, sans-serif; }
.recruit-points strong { margin: 20px 0 5px; display: block; font-size: 1.04rem; }
.recruit-points p { margin: 0; color: #dbeafa; font-size: .84rem; }

.company-section { background: var(--light); }
.company-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.company-title > p:last-child { margin-top: 25px; color: var(--gray); }
.company-table { margin: 0; border-top: 2px solid var(--navy); }
.company-table > div { padding: 22px 10px; display: grid; grid-template-columns: 140px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 800; }
.company-table dd { margin: 0; color: var(--gray); }

.contact-section { padding: 110px 0; color: white; background: var(--navy); }
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: #b9c7d3; }
.contact-tel { margin-top: 44px; padding: 25px 0; display: flex; flex-direction: column; border-top: 1px solid #40556a; border-bottom: 1px solid #40556a; }
.contact-tel small { color: #8ea2b3; }
.contact-tel a { color: #70d7ea; font: 800 2rem Arial, sans-serif; letter-spacing: .03em; }
.contact-tel span { color: #b9c7d3; font-size: .8rem; }
.demo-note { margin-top: 24px; padding: 17px; display: grid; grid-template-columns: 64px 1fr; gap: 10px; color: #2b2300; background: #ffdf69; }
.demo-note p { margin: 0; font-size: .8rem; }
.contact-form { padding: 40px; color: var(--text); background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { margin-bottom: 20px; display: block; font-size: .88rem; font-weight: 800; }
.contact-form label > span:first-of-type:not(.privacy-check span) { margin-left: 7px; padding: 2px 6px; color: white; background: var(--orange); font-size: .66rem; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; margin-top: 7px; padding: 14px 15px; color: var(--text); background: #f6f8fa; border: 1px solid #cbd4db; border-radius: 0; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,97,166,.12); }
.privacy-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; }
.privacy-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--blue); }
.button-submit { width: 100%; color: white; background: var(--blue); border: 0; }
.form-message { margin: 14px 0 0; color: #08724e; font-weight: 800; text-align: center; }

.site-footer { padding: 62px 0 24px; color: white; background: #04101f; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-logo .logo-mark { background: #102a46; }
.footer-logo .logo-text small { color: #8092a2; }
.footer-links { max-width: 520px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 34px; }
.footer-links a { color: #b9c7d3; font-size: .82rem; }
.footer-links a:hover { color: white; }
.footer-bottom { margin-top: 50px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: #778a9b; border-top: 1px solid #26384a; font-size: .72rem; }
.footer-bottom p { margin: 0; }
.mobile-contact { display: none; }

@media (max-width: 980px) {
  .global-nav { position: fixed; inset: 106px 0 0; padding: 32px 24px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); }
  .global-nav.open { display: flex; }
  .global-nav a { padding: 18px 6px; color: white; border-bottom: 1px solid #31465b; font-size: 1rem; }
  .nav-contact { height: auto; margin-top: 20px; justify-content: center; border: 0 !important; background: var(--orange); }
  .menu-button { width: 48px; height: 48px; padding: 11px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background: var(--navy); border: 0; }
  .menu-button span { width: 100%; height: 2px; background: white; transition: transform .2s, opacity .2s; }
  .menu-button.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-button.active span:nth-child(2) { opacity: 0; }
  .menu-button.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .hero-content { min-height: auto; grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { padding-top: 20px; }
  .hero-visual { min-height: 380px; }
  .hero::after { left: auto; right: 0; width: 26px; }
  .problem-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .equipment-layout, .contact-layout, .company-layout { grid-template-columns: 1fr; gap: 50px; }
  .equipment-copy { position: static; }
  .reasons-grid { grid-template-columns: 1fr 1fr; }
  .flow-list { grid-template-columns: repeat(3, 1fr); gap: 20px 0; }
  .recruit-layout { grid-template-columns: 1fr; gap: 50px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 36px), var(--max-width)); }
  .demo-bar { min-height: 48px; padding: 6px 12px; gap: 2px; flex-direction: column; line-height: 1.35; }
  .demo-bar span { font-size: .66rem; }
  .site-header { height: 68px; }
  .header-inner { padding: 0 18px; }
  .logo { gap: 8px; }
  .logo-mark { width: 41px; height: 41px; }
  .logo-text strong { font-size: .7rem; }
  .logo-text small { font-size: .46rem; }
  .sp-only { display: block; }
  .global-nav { top: 104px; }
  .hero-content { padding-top: 62px; padding-bottom: 50px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .hero h1 em { text-decoration-thickness: 5px; text-underline-offset: 6px; }
  .hero-lead br { display: none; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-points { flex-direction: column; gap: 10px; }
  .hero-visual { min-height: 290px; box-shadow: 12px 12px 0 rgba(255,255,255,.07); }
  .status-card { right: -1px; bottom: 18px; min-width: 245px; padding: 13px; }
  .service-strip .container { padding: 16px 0; flex-wrap: wrap; justify-content: flex-start; }
  .service-strip span { width: calc(50% - 12px); }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 38px; }
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .split-heading > p { padding-left: 18px; }
  .problem-grid, .services-grid, .works-list, .reasons-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: auto; padding: 27px; }
  .problem-card h3 { margin-top: 18px; }
  .problem-cta { align-items: flex-start; flex-direction: column; }
  .service-card { min-height: auto; padding: 28px; }
  .service-icon { margin: 30px 0 20px; }
  .equipment-list { grid-template-columns: 1fr; }
  .equipment-list div { min-height: 112px; }
  .work-image { min-height: 210px; }
  .work-content { padding: 25px 21px; }
  .work-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
  .reasons-grid article { min-height: auto; }
  .reasons-grid h3 { margin-top: 28px; }
  .flow-list { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .flow-list li { min-height: 165px; }
  .flow-list li:nth-child(odd) { border-left: 1px solid var(--line); }
  .flow-list li:nth-child(2n)::after { display: none; }
  .flow-list div { margin-top: 26px; }
  .recruit-section { padding: 78px 0; }
  .recruit-section::before { font-size: 4rem; }
  .recruit-points { grid-template-columns: 1fr; }
  .company-table > div { grid-template-columns: 1fr; gap: 6px; }
  .contact-section { padding: 78px 0 110px; }
  .contact-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main, .footer-bottom { flex-direction: column; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .mobile-contact { position: fixed; z-index: 45; right: 12px; bottom: 12px; left: 12px; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; color: white; background: var(--orange); box-shadow: 0 8px 24px rgba(7,24,44,.35); font-size: .9rem; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* =====================================================
   企業ポータル型ナビゲーション
   各ボタンとパネルは同じ data-menu 名で連動します
===================================================== */
html { scroll-padding-top: 94px; }

.site-header {
  z-index: 60;
  height: 84px;
  isolation: isolate;
}

.header-inner {
  position: relative;
  z-index: 4;
  max-width: 1500px;
  padding: 0 24px;
  background: rgba(255,255,255,.98);
}

.logo { flex: 0 0 auto; }
.logo-mark { width: 52px; height: 52px; }
.logo-text strong { font-size: .82rem; line-height: 1.3; }
.logo-text small { font-size: .51rem; }

.global-nav {
  height: 100%;
  margin-left: auto;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.nav-trigger {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: .79rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.nav-trigger::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.nav-trigger > span {
  color: var(--blue);
  font: 800 1rem/1 Arial, sans-serif;
  transition: transform .25s ease;
}

.nav-trigger:hover::after,
.nav-trigger:focus-visible::after,
.nav-trigger.is-active::after { transform: scaleX(1); }
.nav-trigger.is-active > span { transform: rotate(45deg); }

.nav-trigger:focus-visible,
.mega-close:focus-visible,
.mega-panel a:focus-visible,
.menu-button:focus-visible {
  outline: 3px solid #00a6c8;
  outline-offset: -3px;
}

.nav-contact {
  height: 54px;
  margin: auto 0 auto 10px;
  padding: 0 20px;
  color: white;
  background: var(--blue);
}

.nav-contact::after { display: none; }
.nav-contact > span { color: white; }
.nav-contact:hover,
.nav-contact:focus-visible,
.nav-contact.is-active { background: var(--navy-2); }
.nav-contact.is-active > span { transform: none; }

.mega-menu {
  position: absolute;
  z-index: 3;
  top: 100%;
  right: 0;
  left: 0;
  pointer-events: none;
}

.mega-panel {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  color: var(--text);
  background: #f8fafc;
  border-top: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(3,11,21,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}

.mega-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background: linear-gradient(var(--blue), var(--cyan));
}

.mega-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-panel-inner {
  width: min(calc(100% - 48px), 1360px);
  margin-inline: auto;
  padding: 34px 0 42px;
}

.mega-panel-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.mega-panel-heading p {
  margin: 0 0 4px;
  color: var(--blue);
  font: 800 .67rem/1.4 Arial, sans-serif;
  letter-spacing: .2em;
}

.mega-panel-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.35;
  letter-spacing: -.04em;
}

.mega-panel-heading div > span {
  margin-top: 6px;
  display: block;
  color: var(--gray);
  font-size: .84rem;
}

.mega-close {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-content: center;
  color: white;
  background: var(--navy);
  border: 0;
  cursor: pointer;
  transition: background .2s ease;
}

.mega-close:hover { background: var(--blue); }
.mega-close span { font: 300 2rem/1 Arial, sans-serif; }
.mega-close small { margin-top: 2px; font: 700 .48rem/1 Arial, sans-serif; letter-spacing: .12em; }

.mega-link-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mega-link {
  min-height: 130px;
  padding: 20px;
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 15px;
  background: white;
  transition: color .2s ease, background .2s ease;
}
.mega-link:hover { color: white; background: var(--navy-2); }
.mega-icon {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--blue);
  background: #eaf3fa;
  font: 900 .57rem/1 Arial, sans-serif;
  letter-spacing: .04em;
}
.mega-link:hover .mega-icon { color: white; background: var(--blue); }
.mega-link strong { align-self: end; font-size: .98rem; }
.mega-link small { color: var(--gray); font-size: .72rem; }
.mega-link:hover small { color: #c7d5e1; }

.estimate-box {
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 34px;
  color: white;
  background: var(--navy-2);
  border-left: 7px solid var(--cyan);
}
.estimate-lead { margin: 0; font-size: 1.12rem; font-weight: 800; line-height: 1.65; }
.estimate-factors { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid #456078; }
.estimate-factors span { padding: 5px 18px; display: flex; flex-direction: column; border-right: 1px solid #456078; font-size: .85rem; font-weight: 800; }
.estimate-factors small { color: #70d7ea; font: 800 .62rem/1.5 Arial, sans-serif; letter-spacing: .12em; }
.mega-button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: white;
  background: var(--blue);
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.estimate-box .mega-button { background: var(--orange); }
.mega-button:hover { background: #0b4d87; transform: translateY(-2px); }
.estimate-box .mega-button:hover { background: #d84417; }

.mega-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mega-case { min-width: 0; display: grid; grid-template-columns: 42% 58%; background: white; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.mega-case:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(7,24,44,.1); }
.mega-thumb { min-height: 142px; display: grid; place-content: center; color: #b9cad9; text-align: center; }
.mega-thumb b { color: #70d7ea; font: 800 .62rem/1.5 Arial, sans-serif; letter-spacing: .14em; }
.mega-thumb small { font: 700 .48rem/1.5 Arial, sans-serif; letter-spacing: .08em; }
.mega-case > span:last-child { min-width: 0; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
.mega-case > span:last-child > small { color: var(--blue); font-size: .66rem; font-weight: 800; }
.mega-case strong { margin: 5px 0 10px; font-size: .91rem; line-height: 1.5; }
.mega-case time { color: var(--gray); font-size: .7rem; }
.mega-text-link { margin-top: 20px; margin-left: auto; padding-bottom: 4px; display: flex; width: max-content; gap: 28px; color: var(--blue); border-bottom: 2px solid var(--blue); font-size: .82rem; font-weight: 800; }

.mega-info-layout { display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 24px; }
.mega-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mega-info-grid a { min-height: 116px; padding: 20px; display: flex; flex-direction: column; justify-content: center; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mega-info-grid a:hover { background: #edf5fb; }
.mega-info-grid small { color: var(--blue); font: 800 .63rem/1.5 Arial, sans-serif; letter-spacing: .12em; }
.mega-info-grid strong { margin: 6px 0 2px; }
.mega-info-grid span { color: var(--gray); font-size: .74rem; }
.mega-info-layout > .mega-button { min-width: 210px; }

.company-menu-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.company-menu-grid a { min-height: 135px; padding: 21px; display: flex; flex-direction: column; justify-content: center; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color .2s ease, background .2s ease; }
.company-menu-grid a:hover { color: white; background: var(--navy-2); }
.company-menu-grid span { color: var(--blue); font: 800 .63rem/1.5 Arial, sans-serif; letter-spacing: .12em; }
.company-menu-grid a:hover span { color: #70d7ea; }
.company-menu-grid strong { margin: 14px 0 2px; }
.company-menu-grid small { color: var(--gray); font-size: .72rem; }
.company-menu-grid a:hover small { color: #c7d5e1; }

.mega-panel-contact { color: white; background: var(--navy-2); }
.mega-panel-contact .mega-panel-heading p { color: #70d7ea; }
.mega-panel-contact .mega-panel-heading div > span { color: #c5d2de; }
.mega-panel-contact .mega-close { border: 1px solid #4c6277; }
.contact-menu-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; }
.contact-category-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #496077; border-left: 1px solid #496077; }
.contact-category-grid a { min-height: 78px; padding: 16px 20px; display: flex; align-items: center; gap: 15px; border-right: 1px solid #496077; border-bottom: 1px solid #496077; transition: background .2s ease; }
.contact-category-grid a:hover { background: #183957; }
.contact-category-grid span { color: #70d7ea; font: 800 .62rem/1 Arial, sans-serif; }
.contact-category-grid strong { font-size: .88rem; }
.mega-phone { padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; background: white; color: var(--text); border-left: 6px solid var(--orange); }
.mega-phone > small { color: var(--gray); font-size: .7rem; }
.mega-phone > a:first-of-type { margin: 3px 0; color: var(--blue); font: 800 clamp(1.45rem, 2.4vw, 2rem)/1.4 Arial, sans-serif; letter-spacing: .02em; }
.mega-phone > span { color: var(--gray); font-size: .73rem; }
.mega-phone .mega-button { margin-top: 14px; font: 800 .78rem/1.5 "Noto Sans JP", "Yu Gothic", sans-serif; }

.menu-backdrop {
  position: fixed;
  z-index: 55;
  inset: 0;
  background: rgba(3,11,21,.72);
  opacity: 0;
  cursor: pointer;
  transition: opacity .28s ease;
}
.menu-backdrop.is-visible { opacity: 1; }

body.menu-open .mobile-contact { opacity: 0; pointer-events: none; }

@media (max-width: 1320px) and (min-width: 1181px) {
  .header-inner { padding-inline: 18px; }
  .logo { gap: 8px; }
  .logo-mark { width: 46px; height: 46px; font-size: .78rem; }
  .logo-text strong { font-size: .71rem; }
  .logo-text small { font-size: .45rem; }
  .nav-trigger { padding-inline: 9px; font-size: .72rem; }
  .nav-contact { margin-left: 5px; padding-inline: 15px; }
}

@media (max-width: 1180px) {
  html { scroll-padding-top: 82px; }
  .site-header { height: 74px; }
  .header-inner { padding: 0 20px; }
  .logo-mark { width: 46px; height: 46px; }
  .logo-text strong { font-size: .76rem; }

  .menu-button {
    position: relative;
    z-index: 6;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    color: white;
    background: var(--navy);
    border: 0;
    cursor: pointer;
  }
  .menu-button span { width: 100%; height: 2px; background: white; transition: transform .25s ease, opacity .2s ease; }
  .menu-button.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-button.active span:nth-child(2) { opacity: 0; }
  .menu-button.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .global-nav {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    left: 0;
    height: calc(100dvh - 74px);
    margin: 0;
    padding: 24px max(22px, calc((100vw - 760px) / 2));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    color: white;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
  }
  .global-nav.open { display: flex; opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .nav-trigger {
    width: 100%;
    min-height: 68px;
    height: auto;
    padding: 15px 8px;
    justify-content: space-between;
    color: white;
    border-bottom: 1px solid #34495e;
    font-size: 1rem;
    text-align: left;
  }
  .nav-trigger::after { display: none; }
  .nav-trigger > span { color: #70d7ea; font-size: 1.2rem; }
  .nav-trigger.is-active { color: #70d7ea; background: transparent; }
  .nav-contact { min-height: 62px; margin: 20px 0 0; padding: 0 20px; color: white; background: var(--blue); border-bottom: 0; }
  .nav-contact > span { color: white; }

  .mega-menu { z-index: 5; }
  .mega-panel {
    max-height: calc(100dvh - 74px);
    min-height: calc(100dvh - 74px);
    background: #f8fafc;
  }
  .mega-panel-inner { width: min(calc(100% - 40px), 760px); padding: 26px 0 70px; }
  .mega-panel-heading { margin-bottom: 23px; }
  .mega-panel-heading h2 { font-size: 2rem; }
  .mega-close { flex-basis: 54px; width: 54px; height: 54px; }
  .mega-link-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-case-grid { grid-template-columns: 1fr; }
  .mega-case { grid-template-columns: 180px 1fr; }
  .mega-thumb { min-height: 128px; }
  .estimate-box { grid-template-columns: 1fr; gap: 24px; }
  .estimate-factors { border-top: 1px solid #456078; border-left: 0; padding-top: 18px; }
  .mega-info-layout { grid-template-columns: 1fr; }
  .mega-info-grid { grid-template-columns: 1fr 1fr; }
  .company-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-menu-layout { grid-template-columns: 1fr; }
  .mega-panel-contact { background: var(--navy-2); }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 74px; }
  .site-header { height: 68px; }
  .header-inner { padding: 0 14px 0 16px; }
  .logo { gap: 8px; }
  .logo-mark { width: 42px; height: 42px; }
  .logo-text strong { font-size: .67rem; }
  .logo-text small { display: none; }
  .menu-button { flex-basis: 46px; width: 46px; height: 46px; }
  .global-nav { top: 100%; height: calc(100dvh - 68px); padding: 18px; }
  .nav-trigger { min-height: 62px; font-size: .94rem; }
  .nav-contact { min-height: 58px; }

  .mega-panel { max-height: calc(100dvh - 68px); min-height: calc(100dvh - 68px); }
  .mega-panel::before { width: 4px; }
  .mega-panel-inner { width: calc(100% - 32px); padding: 21px 0 58px; }
  .mega-panel-heading { gap: 18px; }
  .mega-panel-heading p { font-size: .58rem; }
  .mega-panel-heading h2 { font-size: 1.55rem; }
  .mega-panel-heading div > span { font-size: .75rem; line-height: 1.55; }
  .mega-close { flex-basis: 48px; width: 48px; height: 48px; }
  .mega-close span { font-size: 1.65rem; }

  .mega-link-grid { grid-template-columns: 1fr; }
  .mega-link { min-height: 92px; padding: 14px; }
  .estimate-box { padding: 23px 20px; }
  .estimate-lead br { display: none; }
  .estimate-factors span { padding-inline: 10px; font-size: .74rem; }
  .mega-button { width: 100%; }
  .mega-case { grid-template-columns: 112px 1fr; }
  .mega-thumb { min-height: 112px; }
  .mega-case > span:last-child { padding: 13px; }
  .mega-case strong { font-size: .82rem; }
  .mega-info-grid { grid-template-columns: 1fr; }
  .mega-info-grid a { min-height: 92px; }
  .company-menu-grid { grid-template-columns: 1fr; }
  .company-menu-grid a { min-height: 93px; padding: 16px 18px; }
  .company-menu-grid strong { margin-top: 6px; }
  .contact-category-grid { grid-template-columns: 1fr; }
  .contact-category-grid a { min-height: 65px; }
  .mega-phone { padding: 20px; }
  .mega-phone > a:first-of-type { font-size: 1.55rem; }
  .menu-backdrop { z-index: 55; }
}

/* =====================================================
   日本語の文字組み
   HTMLの <wbr> は「必要なときだけ改行する位置」です。
   heading-line＝常に改行、mobile-line＝スマホだけ改行。
   長い文字列の緊急折り返しを残し、画面外にはみ出させません。
===================================================== */
body {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}

p, dd, .privacy-check { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.heading-line { display: block; }
.mobile-line { display: inline; }

/* Grid/Flexの中でも、文字が親の幅を押し広げないようにします。 */
.hero-copy, .equipment-copy, .recruit-copy, .contact-copy,
.split-heading > *, .company-table dd, .work-card dd,
.form-row > *, .recruit-points > *, .reasons-grid > *,
.mega-panel-heading > div, .mega-info-layout > *,
.contact-menu-layout > *, .estimate-box > * { min-width: 0; }

.hero h1 {
  font-size: clamp(2.75rem, 4.3vw, 4.125rem);
  line-height: 1.3;
  letter-spacing: -.035em;
}

.section-heading h2, .company-title h2 {
  font-size: clamp(1.875rem, 3.55vw, 3.125rem);
  line-height: 1.45;
  letter-spacing: -.035em;
}

.equipment-copy h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.45;
  letter-spacing: -.035em;
}

.recruit-copy h2 {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  line-height: 1.45;
  letter-spacing: -.035em;
}

/* お問い合わせは細い左カラムに合わせて3つの意味のまとまりに。 */
.contact-copy h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.25rem);
  line-height: 1.5;
  letter-spacing: -.035em;
}

.problem-card p, .service-card p, .work-card dd,
.reasons-grid p, .recruit-points p { font-size: 1rem; line-height: 1.9; }
.service-card li, .flow-list small { font-size: .875rem; }
.hero-lead { max-width: 36em; line-height: 1.9; }
.hero-points { flex-wrap: wrap; gap: 10px 20px; }
.hero-points li { flex: 0 0 auto; }
.split-heading { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.work-card dl > div { grid-template-columns: 40px minmax(0, 1fr); }
.work-card h3 { line-height: 1.6; }
.work-meta { flex-wrap: wrap; }
.work-meta time, .mega-case time { flex-shrink: 0; }
.placeholder-label { padding-inline: 16px; }
.status-icon, .privacy-check input { flex-shrink: 0; }
.demo-note p { font-size: .875rem; }

/* 文字と矢印を別要素に。長いラベルも意味の区切りで折り返します。 */
.button, .mega-button, .mega-text-link, .text-link,
.problem-cta a, .mobile-contact { max-width: 100%; }
.button-label { display: block; min-width: 0; }
.button-arrow { flex: 0 0 auto; }
.mega-button { white-space: normal; }
.text-link, .problem-cta a { display: inline-flex; align-items: center; gap: 12px; }
.mega-text-link { align-items: center; }
.button, .mega-button { padding-block: 12px; height: auto; }

/* 会社名は名称の構成単位で折り返し、ロゴやメニューを押し出しません。 */
.header-inner { gap: 16px; }
.logo { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.logo-mark { flex-shrink: 0; }
.logo-text { min-width: 0; }
.logo-text strong { font-size: .875rem; line-height: 1.45; }
.global-nav { flex-shrink: 0; }
.nav-trigger { font-size: .875rem; padding-inline: 10px; }
.nav-contact { padding-inline: 18px; }
.footer-logo .name-first { display: block; }
.footer-bottom { flex-wrap: wrap; align-items: flex-start; }
.footer-bottom > * { max-width: 100%; }
.footer-bottom > small { flex-shrink: 0; }
.footer-links { min-width: 0; }
.footer-links a { font-size: .875rem; }
.demo-bar { font-size: .75rem; }

/* 閉じるボタンの幅を先に確保。メニュー見出しも語の途中で割りません。 */
.mega-panel-heading > div { flex: 1; }
.mega-panel-heading h2 { line-height: 1.5; }
.mega-panel-heading div > span { text-wrap: pretty; }
.mega-link { grid-template-columns: 52px minmax(0, 1fr); }
.mega-link strong, .mega-case strong, .contact-category-grid strong { text-wrap: balance; }
.mega-case strong { line-height: 1.65; }
.mega-thumb { min-width: 0; padding-inline: 6px; }
.mega-thumb small { line-height: 1.6; }
.mega-info-layout > .mega-button { min-width: 0; }
.contact-category-grid a > span { flex-shrink: 0; }
.mega-phone > a:first-of-type { max-width: 100%; }

@media (min-width: 981px) and (max-width: 1180px) {
  /* 狭いPC・横向きタブレットでは、2カラムの見出しに余裕を持たせます。 */
  .split-heading { gap: 40px; }
  .section-heading h2 { font-size: 2rem; }
  .service-card, .problem-card { padding-inline: 24px; }
  .reasons-grid article { padding-inline: 20px; }
}

@media (max-width: 1180px) {
  .nav-trigger { font-size: 1rem; padding-inline: 8px; }
  .nav-contact { padding-inline: 20px; }
}

@media (min-width: 681px) and (max-width: 980px) {
  /* この幅の見出しだけは上下配置にして、細い2カラムを避けます。 */
  .split-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading h2 { font-size: clamp(2rem, 4.3vw, 2.75rem); }
  .hero h1 { font-size: clamp(2.75rem, 6vw, 3.75rem); }
  .hero-lead { max-width: 42em; }
}

@media (max-width: 680px) {
  .mobile-line { display: block; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.25rem); }
  .section-heading h2, .company-title h2,
  .equipment-copy h2, .recruit-copy h2 {
    font-size: clamp(1.75rem, 7.2vw, 2.5rem);
    line-height: 1.5;
  }
  .contact-copy h2 { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  .split-heading { grid-template-columns: minmax(0, 1fr); }
  .hero-lead { font-size: 1rem; }
  .hero-lead br { display: none; }
  .hero-points li { flex-basis: auto; }
  .service-strip .container > span { width: auto; flex: 0 0 auto; }
  .service-strip .container { gap: 10px 20px; }
  .button { padding-inline: 14px; gap: 12px; font-size: 1rem; }
  .mega-button { padding-inline: 16px; gap: 12px; }
  .text-link, .problem-cta a { gap: 10px; }
  .contact-form input:not([type="checkbox"]), .contact-form textarea { font-size: 1rem; }
  .header-inner { gap: 10px; }
  .logo-text strong { font-size: .75rem; }
  .logo-text .name-first { display: block; }
  .logo-text .name-second { display: inline; }
  .footer-logo .logo-text small { display: block; font-size: .625rem; line-height: 1.5; }
  .demo-bar span { font-size: .75rem; line-height: 1.6; }
  .footer-bottom p { font-size: .75rem; line-height: 1.8; }
  .mega-panel-heading h2 { font-size: 1.55rem; }
  .mega-panel-heading p { line-height: 1.6; }
  .mega-case strong { font-size: .875rem; }
  .mega-case time { font-size: .75rem; }
}

@media (max-width: 360px) {
  /* 320pxでは狭い2列の手順欄だけを1列に。文字サイズは下げません。 */
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li { border-left: 1px solid var(--line); }
  .flow-list li:not(:last-child)::after { display: none; }
  .demo-note { grid-template-columns: 1fr; gap: 6px; }
  .contact-form { padding-inline: 16px; }
  .mega-case { grid-template-columns: 96px minmax(0, 1fr); }
}
