/* ===== Imprace corporate site ===== */
:root {
  --navy: #03215e;
  --navy-d: #021744;
  --blue: #1f6feb;
  --teal: #0f8f8a;
  --orange: #e8742a;
  --pink: #d9457a;
  --green: #2f9e5b;
  --text: #1c2433;
  --muted: #5d6677;
  --line: #dfe4ee;
  --bg: #f4f6fb;
  --white: #fff;
  --radius: 14px;
  --accent: var(--navy);
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-en: "Poppins", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); line-height: 1.85; font-size: 16px; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }

/* accent colors per page/section */
.c-navy { --accent: var(--navy); } .c-blue { --accent: var(--blue); } .c-teal { --accent: var(--teal); }
.c-orange { --accent: var(--orange); } .c-pink { --accent: var(--pink); } .c-green { --accent: var(--green); }

/* ===== Header ===== */
/* backdrop-filter は fixed の子要素(SPメニュー)の基準を変えてしまうため使わない */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(1240px, 100% - 40px); margin-inline: auto; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.logo img { display: block; height: 16px; width: auto; }
.gnav > ul { display: flex; align-items: center; gap: 4px; }
.gnav a { display: block; padding: 10px 14px; font-size: 15px; font-weight: 500; border-radius: 8px; transition: color .2s, background .2s; }
.gnav a:hover { color: var(--blue); }
.gnav .nav-cta a { background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 999px; margin-left: 8px; }
.gnav .nav-cta a:hover { background: var(--blue); color: #fff; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(3,33,94,.12); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 9px 14px; font-size: 14px; }
.sub a:hover { background: var(--bg); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .header-inner { height: 60px; }
  .nav-toggle { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: .25s; }
  .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); }
  .gnav { position: fixed; inset: 60px 0 0 0; background: #fff; overflow-y: auto; padding: 12px 20px 40px; display: none; }
  .nav-open .gnav { display: block; }
  .gnav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav > ul > li { border-bottom: 1px solid var(--line); }
  .gnav a { padding: 16px 4px; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 10px 12px; min-width: 0; }
  .sub a { padding: 8px 4px; color: var(--muted); }
  .gnav .nav-cta { border: 0; margin-top: 18px; }
  .gnav .nav-cta a { text-align: center; margin: 0; }
}

/* ===== Common parts ===== */
section { position: relative; }
.sec { padding: 96px 0; }
.sec-gray { background: var(--bg); }
.sec-head { margin-bottom: 48px; }
.sec-head.center { text-align: center; }
.en { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .22em; color: var(--accent); text-transform: uppercase; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.5; margin-top: 6px; color: var(--navy); }
.lead { color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 34px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; transition: .2s; border: 2px solid var(--navy); }
.btn::after { content: "→"; font-family: var(--font-en); transition: transform .2s; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn:hover::after { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { color: #fff; }
.center { text-align: center; }
.mt-l { margin-top: 48px; }
.note { font-size: 13px; color: var(--muted); }

/* dummy image placeholder */
.ph { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.85); font-family: var(--font-en); font-size: 13px; letter-spacing: .2em; background: linear-gradient(135deg, #0b3a8c, #03215e); }
.ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 45%), repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.04) 18px 36px); }
.ph span { position: relative; }
.ph-teal { background: linear-gradient(135deg, #14b3ab, #0b6a66); }
.ph-orange { background: linear-gradient(135deg, #f59a56, #d2561a); }
.ph-pink { background: linear-gradient(135deg, #ee7aa3, #b52c5f); }
.ph-blue { background: linear-gradient(135deg, #5b9bff, #1f55c4); }
.ph-green { background: linear-gradient(135deg, #5cc487, #237a46); }
.ph-gray { background: linear-gradient(135deg, #b9c2d6, #8592ad); }

/* ===== Page hero ===== */
.page-hero { background: var(--bg); padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); line-height: 1.4; margin-top: 4px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 18px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: #aab3c5; }
.crumbs a:hover { color: var(--blue); }

/* ===== Home ===== */
.hero { background: linear-gradient(120deg, #f4f7ff 0%, #e6eeff 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 96px 0 88px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.45; color: var(--navy); margin: 10px 0 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 68%, rgba(31,111,235,.25) 0); }
.hero .lead { margin-bottom: 34px; max-width: 520px; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-visual > :nth-child(1) { grid-row: span 2; aspect-ratio: auto !important; min-height: 100%; position: relative; }
.hero-visual > .photo:nth-child(1) img { position: absolute; inset: 0; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; padding: 56px 0; } .hero-visual > :nth-child(1) { min-height: 200px; } }

.pickup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pickup { display: block; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: .25s; }
.pickup:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(3,33,94,.12); }
.pickup .body { padding: 18px 22px 22px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 12px; line-height: 1.7; }
.pickup h3 { font-size: 17px; margin-top: 8px; color: var(--navy); line-height: 1.6; }

.concept { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.concept h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); line-height: 1.6; margin: 8px 0 22px; }
.concept p + p { margin-top: 1em; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(3,33,94,.12); }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card .en { font-size: 11px; }
.card h3 { font-size: 19px; line-height: 1.55; color: var(--navy); margin: 4px 0 8px; }
.card p { font-size: 14px; color: var(--muted); }
.more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: 14px; color: var(--accent); }
.more::after { content: " →"; }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.work h3 { font-size: 17px; color: var(--navy); margin: 14px 0 2px; }
.work .cat { font-size: 13px; color: var(--accent); font-weight: 700; }
.work p { font-size: 14px; color: var(--muted); margin-top: 6px; }

.product-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { border-radius: var(--radius); padding: 32px 28px; color: #fff; background: var(--accent); display: flex; flex-direction: column; gap: 14px; transition: .25s; }
.product:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.product .kind { font-size: 13px; opacity: .9; }
.product img { height: 38px; width: auto; max-width: 100%; align-self: flex-start; }
.product p { font-size: 14px; opacity: .95; }
.product .more { color: #fff; }

.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 110px 120px 1fr; gap: 16px; align-items: center; padding: 20px 8px; transition: background .2s; }
.news-list a:hover { background: var(--bg); }
.news-list time { font-family: var(--font-en); font-size: 14px; color: var(--muted); }
.news-list .tag { text-align: center; justify-self: start; min-width: 90px; }
@media (max-width: 640px) { .news-list a { grid-template-columns: auto 1fr; } .news-list a span:last-child { grid-column: 1 / -1; } }

/* ===== Section header with side link ===== */
.sec-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.sec-bar .sec-head { margin: 0; }

/* ===== CTA ===== */
.cta { background: linear-gradient(120deg, var(--navy), #0a3a96); color: #fff; text-align: center; padding: 80px 0; }
.cta .en { color: rgba(255,255,255,.7); }
.cta h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 6px 0 12px; }
.cta p:not(.en) { margin-bottom: 28px; opacity: .9; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-d); color: #c9d2ea; padding-top: 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; }
.footer-about img { height: 16px; width: auto; }
.addr { margin-top: 18px; line-height: 1.9; }
.fh { color: #fff; font-weight: 700; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); text-align: center; padding: 20px; }
.copyright small { font-size: 12px; opacity: .7; }

/* ===== Service / product detail ===== */
.detail-hero { padding: 72px 0; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 8%, #fff), color-mix(in srgb, var(--accent) 16%, #fff)); }
.detail-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.detail-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.5; color: var(--navy); margin: 8px 0 18px; }
.detail-hero .kind { font-weight: 700; color: var(--accent); }
.detail-hero img.plogo { height: 44px; width: auto; margin-bottom: 18px; display: block; }
.detail-hero .crumbs { margin: 0 0 24px; }
@media (max-width: 860px) { .detail-hero-inner { grid-template-columns: 1fr; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.feature .no { font-family: var(--font-en); color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .1em; }
.feature h3 { font-size: 18px; line-height: 1.6; color: var(--navy); margin: 6px 0 10px; }
.feature p { font-size: 14px; color: var(--muted); }

.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.menu-item { padding: 20px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.menu-item h3 { font-size: 17px; color: var(--navy); }
.menu-item p { font-size: 14px; color: var(--muted); margin-top: 4px; }

.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.price-table th, .price-table td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table th { width: 32%; background: var(--bg); color: var(--navy); }
.price-table td b { font-size: 20px; color: var(--accent); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.remarks { margin-top: 16px; font-size: 13px; color: var(--muted); }
.remarks li::before { content: "※"; margin-right: 4px; }

.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 20px 24px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-en); font-weight: 600; font-size: 18px; }
.step h3 { font-size: 17px; color: var(--navy); }
.step p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group > h2 { font-size: 22px; color: var(--navy); margin-bottom: 16px; padding-left: 14px; border-left: 4px solid var(--navy); }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 56px; font-weight: 700; color: var(--navy); position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "Q"; position: absolute; left: 20px; font-family: var(--font-en); color: var(--accent); }
details.faq summary::after { content: "+"; position: absolute; right: 22px; font-size: 22px; line-height: 1.4; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 24px 20px 56px; color: var(--muted); position: relative; }
details.faq .answer::before { content: "A"; position: absolute; left: 20px; font-family: var(--font-en); color: var(--pink); font-weight: 600; }

/* ===== Company ===== */
.dl-table { border-top: 1px solid var(--line); }
.dl-table > div { display: grid; grid-template-columns: 200px 1fr; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.dl-table dt { font-weight: 700; color: var(--navy); }
.statement { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.6; color: var(--navy); font-weight: 700; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }
@media (max-width: 640px) { .dl-table > div { grid-template-columns: 1fr; gap: 2px; } }

/* ===== Article (news detail / privacy) ===== */
.article h2 { font-size: 20px; color: var(--navy); margin: 40px 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.article p, .article ol, .article ul { margin-top: 12px; }
.article ol.list, .article ul.list { padding-left: 1.4em; list-style: revert; }
.article .meta { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; color: var(--muted); font-family: var(--font-en); }
.article h1 { font-size: clamp(22px, 3vw, 30px); color: var(--navy); line-height: 1.6; margin-bottom: 10px; }
.back { margin-top: 56px; text-align: center; }

/* ===== Form (no backend) ===== */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.form-row { margin-bottom: 24px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.req { font-size: 11px; background: var(--pink); color: #fff; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form select, .form textarea { width: 100%; padding: 13px 14px; font: inherit; border: 1px solid #c7cedd; border-radius: 8px; background: #fbfcfe; }
.form textarea { min-height: 180px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #a3abbb; font-size: .9em; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.form .agree { text-align: center; margin: 28px 0; font-size: 14px; }
.form .btn { cursor: pointer; font-family: inherit; }
.demo-note { background: #fff7e6; border: 1px solid #f3d08b; border-radius: 10px; padding: 12px 16px; font-size: 13px; margin-bottom: 28px; color: #7a5200; }

/* ===== Responsive grids ===== */
@media (max-width: 960px) {
  .sec { padding: 64px 0; }
  .card-grid, .works-grid, .product-row, .pickup-grid, .feature-grid { grid-template-columns: 1fr 1fr; }
  .concept { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .card-grid, .works-grid, .product-row, .pickup-grid, .feature-grid, .menu-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 24px 18px; }
  .step { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .step::before { width: 40px; height: 40px; }
  .price-table th, .price-table td { display: block; width: 100%; }
}

/* ===== Reveal on scroll ===== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Chips / subsidy box ===== */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 20px; font-size: 14px; font-weight: 500; color: var(--navy); }
.chips a { display: block; margin: -8px -20px; padding: 8px 20px; border-radius: 999px; transition: .2s; }
.chips li:hover { border-color: var(--accent); }
.chips a:hover { background: var(--accent); color: #fff; }
.sec-tight { padding: 64px 0 72px; }
.subsidy-box { display: grid; gap: 6px; justify-items: start; padding: 26px 30px; border-radius: var(--radius); background: #fff7ee; border: 1px solid #f4d2b0; transition: .2s; }
.subsidy-box:hover { box-shadow: 0 12px 28px rgba(232,116,42,.18); transform: translateY(-2px); }
.subsidy-box .tag { background: var(--orange); }
.subsidy-box b { font-size: 18px; color: var(--navy); }
.subsidy-box span:last-child { font-size: 14px; color: var(--muted); }

/* ===== Subsidy page ===== */
.subsidy-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.subsidy-type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; border-top: 4px solid var(--accent); }
.subsidy-type h3 { font-size: 19px; color: var(--navy); margin: 4px 0 10px; }
.subsidy-type p { font-size: 14px; color: var(--muted); }
.subsidy-type ul { margin-top: 12px; font-size: 14px; }
.subsidy-type li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.warn { background: #fff7e6; border: 1px solid #f3d08b; border-radius: var(--radius); padding: 22px 26px; font-size: 14px; color: #6b4a00; }
.warn b { display: block; margin-bottom: 6px; }
.warn ul { padding-left: 1.2em; list-style: disc; }
@media (max-width: 960px) { .subsidy-types { grid-template-columns: 1fr; } }

/* ===== Floating: 補助金バナー(右下固定・TOPのみ) / ページトップへ戻るボタン(左下固定・全ページ) ===== */
.float-stack { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.float-stack > * { pointer-events: auto; }
.to-top { position: fixed; left: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(3,33,94,.3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
.float-banner { position: fixed; right: 20px; bottom: 20px; width: 350px; background: #d9ebf1; color: #2c4a64; border: 3px solid #2c4a64; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 34px rgba(3,33,94,.25); transition: transform .2s; }
.float-banner:hover { transform: translateY(-3px); }
.float-banner a { display: block; }
.float-banner img { display: block; width: 100%; height: auto; aspect-ratio: 32 / 15; object-fit: cover; }
.float-banner .fb-text { display: block; padding: 12px 12px 0; font-size: 22px; font-weight: 700; line-height: 1.9; letter-spacing: -.02em; }
.fb-hl { background: linear-gradient(transparent 12%, #fff06b 12%, #fff06b 92%, transparent 92%); padding: 0 6px; }
.float-banner .fb-cta { display: block; padding: 0 14px 12px; text-align: right; font-size: 12px; font-weight: 700; }
.float-banner .fb-cta::after { content: " →"; }
.float-banner .fb-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: #2c4a64; font-size: 16px; line-height: 1; cursor: pointer; }
.float-banner[hidden] { display: none; }
@media (max-width: 640px) {
  .float-stack { right: 12px; bottom: 12px; gap: 10px; }
  .float-banner { right: 12px; bottom: 12px; width: min(256px, calc(100vw - 84px)); border-width: 2px; border-radius: 14px; }
  .float-banner .fb-text { font-size: 16px; padding: 8px 8px 0; }
  .float-banner .fb-cta { padding: 0 10px 8px; font-size: 11px; }
  .to-top { left: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* ===== SP header contact button ===== */
.header-mail { display: none; }
@media (max-width: 960px) {
  .header-mail { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; margin-left: auto; margin-right: 6px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
}
@media (max-width: 360px) { .logo img { height: 13px; } .header-mail { padding: 0 11px; font-size: 11px; } }

/* SPメニュー展開中は背面をスクロールさせない */
body.nav-open { overflow: hidden; }

/* ===== Dummy image icon / real photo ===== */
.ph { flex-direction: column; gap: 10px; }
.ph { display: flex; align-items: center; justify-content: center; }
.ph svg { position: relative; width: 26%; max-width: 110px; min-width: 40px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.ph span { font-size: 11px; opacity: .85; }
.photo { width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Split (image + text) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 72px; }
.split.rev > :first-child { order: 2; }
.split h3 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.6; color: var(--navy); margin: 6px 0 16px; }
.split p + p { margin-top: 1em; }
.split p { color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } .split.rev > :first-child { order: 0; } .split + .split { margin-top: 48px; } }

.photo-strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
/* 1枚目は右の2枚(縦長)と同じ高さまで広げ、下に余白ができないようにする */
.photo-strip > :nth-child(1) { aspect-ratio: auto !important; position: relative; min-height: 100%; }
.photo-strip > .photo:nth-child(1) img { position: absolute; inset: 0; }
@media (max-width: 640px) { .photo-strip { grid-template-columns: 1fr; } .photo-strip > :nth-child(1) { min-height: 220px; } }

.pickup h3 small { display: block; margin-top: 6px; font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.7; }

/* ===== MENU項目の線画アイコン ===== */
.menu-item.has-icon { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: start; }
.mi { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 10%, #fff); }
.mi svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .menu-item.has-icon { grid-template-columns: 48px 1fr; gap: 14px; } .mi { width: 48px; height: 48px; border-radius: 12px; } .mi svg { width: 28px; height: 28px; } }

/* ===== 日本語の折り返し(文節単位。未対応ブラウザは通常の折り返し) ===== */
body { line-break: strict; }
/* 本文は行をいっぱいに使う(文節指定は行が短くなるため見出しのみ)。禁則は line-break: strict で維持 */
p, li, dd, h1, h2, h3 { text-wrap: pretty; }
h1, h2, h3 { word-break: auto-phrase; }
.nw { display: inline-block; white-space: nowrap; }
.lead-block { max-width: 760px; margin-bottom: 40px; }
.lead-block p + p { margin-top: 10px; }
@media (max-width: 560px) { .nw { white-space: normal; } }

/* ===== CONTACT(各ページ下部) ===== */
.cta { position: relative; overflow: hidden; text-align: left; padding: 96px 0; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.cta::before { width: 420px; height: 420px; left: -120px; top: -160px; }
.cta::after { width: 300px; height: 300px; right: 30%; bottom: -170px; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.5; margin: 8px 0 16px; }
.cta-body > p:not(.en) { margin-bottom: 0; max-width: 560px; }
.cta-points { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.cta-points li { display: flex; align-items: center; gap: 10px; padding: 7px 20px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24); font-size: 14px; font-weight: 700; }
.cta .mi { --accent: var(--navy); width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.cta .mi svg { width: 20px; height: 20px; stroke-width: 3; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.cta-visual { position: relative; }
.cta-visual::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid rgba(255,255,255,.35); border-radius: var(--radius); }
.cta-visual .ph, .cta-visual .photo { position: relative; box-shadow: 0 20px 44px rgba(0,0,0,.25); }
@media (max-width: 860px) { .cta { padding: 64px 0 72px; } .cta-inner { grid-template-columns: 1fr; gap: 44px; } .cta-visual { margin-right: 16px; } }

/* SP: CONTACTの安心ポイントは「お見積りは無料」「相談だけでもOK」を横並びにする */
@media (max-width: 480px) {
  .cta-points { gap: 8px; margin: 24px 0 28px; }
  .cta-points li { padding: 6px 12px 6px 6px; gap: 6px; font-size: 13px; white-space: nowrap; }
  .cta .mi { width: 28px; height: 28px; }
  .cta .mi svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .cta-points { gap: 6px; }
  .cta-points li { padding: 5px 9px 5px 5px; gap: 5px; font-size: 12px; }
  .cta .mi { width: 24px; height: 24px; }
  .cta .mi svg { width: 14px; height: 14px; }
}

/* ===== 写真背景ヒーロー(.has-bg) ===== */
.detail-hero.has-bg { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 520px; padding: 96px 0; background: none; color: #fff; overflow: hidden; }
.detail-hero.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center / cover no-repeat; }
.detail-hero.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 80%, #000) 0%, color-mix(in srgb, var(--accent) 62%, transparent) 55%, color-mix(in srgb, var(--accent) 18%, transparent) 100%); }
.detail-hero.has-bg .detail-hero-inner { grid-template-columns: minmax(0, 660px); }
.detail-hero.has-bg h1, .detail-hero.has-bg .kind { color: #fff; }
.detail-hero.has-bg .en { color: rgba(255,255,255,.8); }
.detail-hero.has-bg .lead { color: rgba(255,255,255,.92); }
.detail-hero.has-bg .crumbs, .detail-hero.has-bg .crumbs a { color: rgba(255,255,255,.8); }
.detail-hero.has-bg .crumbs li + li::before { color: rgba(255,255,255,.45); }
.detail-hero.has-bg .btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
@media (max-width: 860px) {
  .detail-hero.has-bg { min-height: 0; padding: 72px 0 64px; }
  .detail-hero.has-bg::after { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #000) 0%, color-mix(in srgb, var(--accent) 70%, transparent) 100%); }
}

/* ===== TOPの写真背景ヒーロー ===== */
.hero.has-bg { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 640px; background: none; color: #fff; }
.hero.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center 30% / cover no-repeat; }
.hero.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,33,94,.9) 0%, rgba(3,33,94,.68) 52%, rgba(3,33,94,.2) 100%); }
.hero.has-bg .hero-inner { grid-template-columns: minmax(0, 700px); padding: 120px 0 112px; }
.hero.has-bg h1 { color: #fff; }
.hero.has-bg h1 em { background: linear-gradient(transparent 68%, rgba(255,214,102,.45) 0); }
.hero.has-bg .en { color: rgba(255,255,255,.8); }
.hero.has-bg .lead { color: rgba(255,255,255,.92); }
.hero.has-bg .btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
@media (max-width: 860px) {
  .hero.has-bg { min-height: 0; }
  .hero.has-bg .hero-inner { padding: 88px 0 80px; }
  .hero.has-bg::after { background: linear-gradient(180deg, rgba(3,33,94,.8) 0%, rgba(3,33,94,.58) 100%); }
}

/* ===== 見出しだけのページ(.page-hero)の写真背景 ===== */
.page-hero.has-bg { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 360px; padding: 88px 0 68px; background: none; border-bottom: 0; color: #fff; overflow: hidden; }
.page-hero.has-bg::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) center / cover no-repeat; }
.page-hero.has-bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,33,94,.9) 0%, rgba(3,33,94,.68) 55%, rgba(3,33,94,.3) 100%); }
.page-hero.has-bg .container { width: min(1120px, 100% - 40px); }
.page-hero.has-bg h1 { color: #fff; }
.page-hero.has-bg .en { color: rgba(255,255,255,.8); }
.page-hero.has-bg .crumbs, .page-hero.has-bg .crumbs a { color: rgba(255,255,255,.8); }
.page-hero.has-bg .crumbs li + li::before { color: rgba(255,255,255,.45); }
@media (max-width: 860px) {
  .page-hero.has-bg { min-height: 0; padding: 64px 0 52px; }
  .page-hero.has-bg::after { background: linear-gradient(180deg, rgba(3,33,94,.84) 0%, rgba(3,33,94,.62) 100%); }
}

/* ===== 制作実績のURL・サービス内容 ===== */
.work .lb { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.work-url { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--muted); word-break: break-all; }
.work-url a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.work-tags { margin-top: 12px; }
.work-tags ul { display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags li { padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12px; font-weight: 500; color: var(--navy); line-height: 1.7; }
.work p.work-url { color: var(--text); }

/* ===== ページ送り ===== */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 56px; }
.pager .pg { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-family: var(--font-en); font-weight: 600; font-size: 15px; transition: .2s; }
.pager a.pg:hover { border-color: var(--navy); background: var(--bg); }
.pager .is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager .is-disabled { opacity: .4; }
.pager .prev, .pager .next { font-family: var(--font); font-size: 14px; }
@media (max-width: 480px) { .pager .pg { min-width: 42px; height: 42px; padding: 0 12px; } .pager { gap: 6px; } }

/* ===== ヘッダーロゴ横(SPは下)の社名 ===== */
.logo { display: flex; align-items: center; gap: 16px; }
.logo-name { font-size: 15px; font-weight: 700; letter-spacing: .05em; color: var(--navy); white-space: nowrap; line-height: 1; padding-left: 16px; border-left: 1px solid var(--line); }
@media (max-width: 1100px) { .gnav a { padding-left: 9px; padding-right: 9px; } .logo { gap: 12px; } .logo-name { font-size: 13px; padding-left: 12px; } }
@media (max-width: 960px) {
  .logo { flex-direction: column; align-items: flex-start; gap: 4px; }
  .logo-name { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; padding-left: 0; border-left: 0; }
}
@media (max-width: 360px) {
  .header-inner { width: calc(100% - 32px); }
  .logo img { height: 12px; }
  .logo-name { font-size: 9.5px; letter-spacing: .06em; }
  .header-mail { height: 30px; padding: 0 9px; margin-right: 2px; font-size: 10.5px; }
  .nav-toggle { width: 38px; }
}

/* ===== CONTACT(写真なし・中央寄せ) ===== */
.cta-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.cta-body { display: flex; flex-direction: column; align-items: center; }
.cta-body > p:not(.en) { margin-left: auto; margin-right: auto; max-width: 640px; }
.cta-points, .cta-actions { justify-content: center; }
.lead-block { max-width: 880px; }

/* ===== SP: 補助金バナーをさらにコンパクトに ===== */
@media (max-width: 640px) {
  .float-banner { width: min(192px, calc(100vw - 84px)); border-radius: 12px; }
  .float-banner .fb-text { font-size: 12.5px; padding: 6px 8px 0; line-height: 1.85; letter-spacing: -.03em; }
  .float-banner .fb-cta { padding: 0 8px 7px; font-size: 10.5px; }
  .float-banner .fb-close { width: 24px; height: 24px; top: 4px; right: 4px; font-size: 14px; }
}

/* 幅が狭いPC(〜1040px)は、ナビの余白を詰めてロゴとの間隔を確保する */
@media (min-width: 961px) and (max-width: 1040px) {
  .gnav a { padding-left: 6px; padding-right: 6px; font-size: 14px; }
  .gnav .nav-cta a { padding: 9px 16px; margin-left: 4px; }
  .logo-name { font-size: 12px; padding-left: 10px; }
  .logo { gap: 10px; }
}

/* ===== 余白・SPの左寄せ・開閉ボタン位置 ===== */
.article .back { margin-top: 56px; }
.concept p.mt-l { margin-top: 40px; }
@media (max-width: 960px) { .nav-toggle { margin-right: -10px; } }
@media (max-width: 360px) { .nav-toggle { margin-right: -7px; } }
/* SP: 複数行の説明文は左寄せ(見出しは中央のまま) */
@media (max-width: 640px) {
  .sec-head.center > .lead, .cta-body > p:not(.en) { text-align: left; }
  .cta-body > p:not(.en) { align-self: stretch; }
}

/* ===== ナビの現在地表示 ===== */
.gnav > ul > li > a { position: relative; }
.gnav > ul > li.is-current:not(.nav-cta) > a { color: var(--navy); font-weight: 700; }
.gnav > ul > li.is-current:not(.nav-cta) > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--blue); }
.gnav .nav-cta.is-current a { background: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,235,.25); }
.sub li.is-current > a { background: var(--bg); color: var(--blue); font-weight: 700; position: relative; padding-left: 22px; }
.sub li.is-current > a::before { content: ""; position: absolute; left: 9px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--blue); }
@media (max-width: 1100px) { .gnav > ul > li.is-current:not(.nav-cta) > a::after { left: 9px; right: 9px; } }
@media (max-width: 960px) {
  .gnav > ul > li.is-current:not(.nav-cta) > a::after { display: none; }
  .gnav > ul > li.is-current:not(.nav-cta) > a { color: var(--blue); border-left: 4px solid var(--blue); padding-left: 12px; margin-left: -4px; }
  .sub li.is-current > a { background: none; padding-left: 18px; }
  .sub li.is-current > a::before { left: 4px; }
  .gnav .nav-cta.is-current a { box-shadow: none; }
}

/* 会社情報: Missionの写真は見出しの下(左カラム) */
.mission-photo { margin-top: 36px; }
.concept:has(.mission-photo) { align-items: start; }
@media (max-width: 860px) { .mission-photo { margin-top: 24px; } }

/* お問い合わせ: プライバシーポリシーへの同意の案内(チェックなし) */
.form .agree { font-size: 13px; line-height: 2; color: var(--muted); }
.form .agree a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.form .agree a:hover { color: var(--navy); }

/* ===== TOPのヒーロー: イラスト(PCは右、SPは上)。乗算で重ねて背景と区切りなくなじませる ===== */
.hero.has-illust { isolation: isolate; background: linear-gradient(120deg, #f4f7ff 0%, #e6eeff 100%); }
.hero.has-illust .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; padding: 64px 0 56px; }
/* brightness: 画像の背景(254前後)を純白に寄せ、乗算で背景色と完全に一致させる(境目を出さない) */
.hero-illust img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero.has-illust .hero-inner { grid-template-columns: 1fr; gap: 0; padding: 12px 0 56px; }
  .hero-illust { order: -1; margin: 0 -20px; }
}

/* 画像のないヒーロー(補助金): 文字だけを広く使う */
.detail-hero-inner.no-visual { grid-template-columns: minmax(0, 820px); }

/* ===== TOP以外のイラストヒーロー: TOPと同じ配置(PCは右、SPは上)。背景と区切りなくなじませる ===== */
.detail-hero.has-illust { isolation: isolate; padding: 0; }
.detail-hero.has-illust .detail-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; padding: 56px 0 48px; }
.page-hero.has-illust { padding: 0; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: center; padding: 40px 0 32px; }
.page-hero.has-illust .hero-illust img { max-width: 560px; margin-left: auto; }
.detail-hero.has-illust .hero-illust img { max-width: 600px; margin-left: auto; }
@media (max-width: 860px) {
  .detail-hero.has-illust .detail-hero-inner, .page-hero-inner { grid-template-columns: 1fr; gap: 0; padding: 12px 0 44px; }
  .detail-hero.has-illust .hero-illust, .page-hero-inner .hero-illust { order: -1; margin: 0 -20px; }
  .detail-hero.has-illust .hero-illust img, .page-hero.has-illust .hero-illust img { max-width: none; margin: 0; }
}

/* キャッチコピーの途中で折り返さない行(.nb)。収まるよう、見出しの文字サイズを幅に合わせて調整 */
.detail-hero h1 .nb { white-space: nowrap; }
.detail-hero h1:has(.nb) { font-size: min(36px, calc((min(1120px, 100vw - 40px) - 16px) / 2.05 / 14.6)); }
@media (max-width: 860px) { .detail-hero h1:has(.nb) { font-size: min(30px, calc((100vw - 40px) / 14.6)); } }

/* 写真(透過でないもの)をヒーローに使う場合: 角丸で見せる。SPは画面幅いっぱいなので角丸なし */
.hero-illust.is-photo img { border-radius: 16px; }
@media (max-width: 860px) { .hero-illust.is-photo img { border-radius: 0; } }
@media (max-width: 860px) { .detail-hero.has-illust .hero-illust.is-photo { margin-top: 0; margin-bottom: 28px; } .detail-hero.has-illust .detail-hero-inner:has(.is-photo) { padding-top: 0; } }

/* サービス詳細のヒーロー: TOPのサービス欄と同じアイコンイラスト(16:9・背景つき)を角丸のカードで見せる */
.hero-illust.is-icon img { border-radius: var(--radius); box-shadow: 0 12px 32px rgba(14, 26, 37, .08); }
@media (max-width: 860px) {
  .detail-hero.has-illust .hero-illust.is-icon { margin: 0 0 28px; }
  .detail-hero.has-illust .detail-hero-inner:has(.is-icon) { padding-top: 20px; }
}

/* SP: 制作実績の各カードの間(=次の写真の上)に余白をとる(TOP・制作実績共通) */
@media (max-width: 640px) { .works-grid { gap: 56px; } }

/* ===== TOP: 写真に濃紺のベール(prolg.co.jp のヒーロー風)。ヒーローは白文字 ===== */
:root { --veil: 14, 26, 37; }
.hero.has-veil { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 600px; background: rgb(var(--veil)); overflow: hidden; }
.hero.has-veil::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-img) 72% 40% / cover no-repeat; }
.hero.has-veil::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(var(--veil), .6); }
.hero.has-veil .hero-inner { grid-template-columns: minmax(0, 700px); padding: 112px 0 104px; }
.hero.has-veil h1, .hero.has-veil .en { color: #fff; }
.hero.has-veil .lead { color: rgba(255,255,255,.9); }
.hero.has-veil h1 em { background: linear-gradient(transparent 68%, rgba(255,214,102,.45) 0); }
.hero.has-veil .btn { background: #fff; color: var(--navy); border-color: #fff; }
.hero.has-veil .btn:hover { background: transparent; color: #fff; }
.hero-photo-sp { display: none; }
/* SP: 写真をテキストの上に表示。写真にも同じベールをかけ、下はグラデーションで背景(濃紺)になじませる */
@media (max-width: 860px) {
  .hero.has-veil { min-height: 0; }
  .hero.has-veil::before, .hero.has-veil::after { display: none; }
  .hero.has-veil .hero-inner { padding: 0 0 56px; gap: 0; }
  .hero-photo-sp { display: block; position: relative; order: -1; margin: 0 -20px -36px; }
  .hero-photo-sp img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 97% 40%; }
  .hero-photo-sp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--veil), .6) 0%, rgba(var(--veil), .6) 55%, rgb(var(--veil)) 100%); pointer-events: none; }
  .hero.has-veil .hero-inner > div:not(.hero-photo-sp) { position: relative; z-index: 1; }
}
/* 注目のトピック・コンセプトの写真にも同じベール(カードは中身が見えるよう少し薄め) */
.home .pickup .photo, .home .concept .photo { position: relative; isolation: isolate; }
.home .pickup .photo::after, .home .concept .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--veil), .25) 0%, rgba(var(--veil), .45) 40%, rgba(var(--veil), .88) 100%); pointer-events: none; }
/* 写真の下半分に文字を乗せる(注目のトピック) */
.home .pickup { position: relative; border: 0; background: rgb(var(--veil)); }
.home .pickup .photo { border-radius: 0; }
.home .pickup .body { position: absolute; inset: auto 0 0; z-index: 1; padding: 20px 22px 22px; }
.home .pickup h3 { color: #fff; }
.home .pickup h3 small { color: rgba(255,255,255,.85); }
/* 写真の下半分に見出しを乗せる(コンセプト)。PCは写真を左、文章を右 */
.concept-visual { position: relative; border-radius: var(--radius); overflow: hidden; container-type: inline-size; }
.concept-visual .photo, .concept-visual .ph { border-radius: 0; }
.concept-cap { position: absolute; inset: auto 0 0; z-index: 1; padding: 28px 32px 30px; }
.concept-cap .en { color: rgba(255,255,255,.85); }
.concept-cap h2 { color: #fff; margin: 6px 0 0; white-space: nowrap; font-size: min(30px, calc((100cqi - 64px) / 16.6)); line-height: 1.55; }
@media (max-width: 640px) { .concept-cap { padding: 20px 20px 22px; } .concept-cap h2 { font-size: min(26px, calc((100cqi - 40px) / 16.6)); } }

/* サービスカード: 写真ではなくアイコンで見せる */
.svc-tile { aspect-ratio: 16 / 7; display: grid; place-items: center; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 7%, #fff); }
.svc-tile svg { width: 76px; height: 76px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.svc-tile.has-img { display: block; aspect-ratio: 16 / 9; background: none; }
.svc-tile.has-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== TOP以外の写真: TOPと同じ濃紺のベールをかけ、下半分に見出しを重ねる ===== */
.cap-visual { position: relative; border-radius: var(--radius); overflow: hidden; container-type: inline-size; background: rgb(var(--veil)); }
.cap-visual .photo, .cap-visual .ph { position: relative; isolation: isolate; border-radius: 0; }
.cap-visual .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--veil), .25) 0%, rgba(var(--veil), .45) 40%, rgba(var(--veil), .88) 100%); pointer-events: none; }
.cap-text { position: absolute; inset: auto 0 0; z-index: 1; padding: 24px 28px 26px; }
.cap-text .en { color: rgba(255,255,255,.85); }
.split .cap-text h3, .cap-text h2, .cap-text h3 { color: #fff; margin: 6px 0 0; font-size: clamp(17px, 5.2cqi, 26px); line-height: 1.6; word-break: auto-phrase; }
.cap-text h2 { white-space: nowrap; font-size: min(30px, calc((100cqi - 56px) / 13.6)); line-height: 1.55; }
@media (max-width: 640px) { .cap-text { padding: 18px 20px 20px; } .cap-text h2 { font-size: min(26px, calc((100cqi - 40px) / 13.6)); } }
.mission-photo { margin-top: 0; }

/* プロダクト詳細・補助金活用のヒーロー: TOPのヒーローと同じ、濃紺の均一なベール */
.detail-hero.has-bg.is-veil { background: rgb(var(--veil)); }
.detail-hero.has-bg.is-veil::after { background: rgba(var(--veil), .6); }

/* ===== お問い合わせフォーム (送信・エラー・完了) ===== */
.form .notice { margin: 0 0 24px; padding: 14px 18px; border-radius: 8px; background: #fff1f4; color: #b4234a; font-weight: 700; }
.form .field.has-error input, .form .field.has-error select, .form .field.has-error textarea { border-color: #d6385f; background: #fff8fa; }
.form .field-error { margin: 6px 0 0; color: #b4234a; font-size: 14px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .turnstile { display: flex; justify-content: center; margin: 0 0 24px; min-height: 65px; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-done { text-align: center; }
.form-done h2 { color: var(--navy); font-size: clamp(22px, 3vw, 28px); margin: 6px 0 16px; }
.form-done:focus { outline: none; }

/* ===== お知らせの本文 (管理画面のブロックエディタで入力) ===== */
.article-body > * + * { margin-top: 1em; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.article-body h2 { font-size: 22px; color: var(--navy); margin-top: 2em; }
.article-body h3 { font-size: 19px; color: var(--navy); margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.article-body .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; }
.article-body .wp-block-button__link:hover { opacity: .85; }
