/*
Theme Name: FLOW DX
Theme URI: https://flow-japan.net/
Author: 株式会社FLOW
Description: 株式会社FLOWのAI・データ、エネルギー、商流、地域事業を伝える独自テーマ。
Version: 1.2.3
Text Domain: flow-corporate-dx
*/

:root {
  --navy: #071a34;
  --navy-soft: #123556;
  --teal: #008c95;
  --amber: #d99122;
  --ink: #172238;
  --muted: #5e6d7e;
  --line: #d8e1e8;
  --surface: #ffffff;
  --soft: #eef3f5;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.flow-wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 26, 52, .96); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { color: #fff; text-decoration: none; font-size: 26px; font-weight: 900; letter-spacing: 0; }
.brand small { display: block; color: #96a9ba; font-size: 9px; font-weight: 700; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #e9f0f4; text-decoration: none; font-size: 13px; font-weight: 750; }
.site-nav a:hover, .site-nav a:focus-visible { color: #79d6d9; }
.nav-contact { padding: 8px 13px; border: 1px solid #79d6d9; border-radius: 4px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; font-size: 22px; cursor: pointer; }

.hero { position: relative; min-height: min(760px, calc(100vh - 40px)); display: grid; align-items: end; overflow: hidden; background: var(--navy); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { width: 58%; background: rgba(7, 26, 52, .88); }
.hero-content { position: relative; z-index: 1; padding-block: 100px 88px; color: #fff; }
.hero-copy { max-width: 650px; }
.eyebrow { margin: 0 0 14px; color: #83dde0; font-size: 12px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: 82px; line-height: 1.04; letter-spacing: 0; }
.hero-lead { max-width: 620px; margin: 24px 0 0; color: #e0e9ee; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 4px; background: var(--teal); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover, .button:focus-visible { background: #00757c; }
.button-secondary { border-color: rgba(255,255,255,.6); background: transparent; }
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(255,255,255,.12); }

.section { padding-block: 88px; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--navy); color: #fff; }
.section-heading { max-width: 800px; margin-bottom: 36px; }
.section-heading h2, .page-hero h1 { margin: 0; font-size: 54px; line-height: 1.22; letter-spacing: 0; }
.section-heading p { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.section-dark .section-heading p { color: #c7d3dc; }

.business-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.business-item { min-height: 270px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-decoration: none; }
.business-item:hover, .business-item:focus-visible { background: #f6fafb; outline: 2px solid var(--teal); outline-offset: -2px; }
.business-number { color: var(--teal); font-size: 12px; font-weight: 900; }
.business-item h3 { margin: 42px 0 10px; color: var(--navy); font-size: 21px; }
.business-item p { margin: 0; color: var(--muted); font-size: 14px; }
.business-more { display: inline-block; margin-top: 22px; color: var(--teal); font-size: 13px; font-weight: 850; }

.project-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: start; }
.project-copy { font-size: 18px; }
.value-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.value-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.value-list strong { color: #83dde0; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.project-fact { min-height: 170px; padding: 22px; background: #fff; color: var(--ink); border-top: 4px solid var(--amber); }
.project-fact h3 { margin: 0 0 8px; color: var(--navy); font-size: 18px; }
.project-fact p { margin: 0; color: var(--muted); font-size: 14px; }

.dx-band { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.metric-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.metric-list li { display: grid; grid-template-columns: 38px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.metric-list span { color: var(--teal); font-weight: 900; }

.company-list { margin: 0; border-top: 1px solid var(--line); }
.company-list > div { display: grid; grid-template-columns: 200px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-list dt { font-weight: 800; }
.company-list dd { margin: 0; }
.company-list a { color: var(--teal); text-underline-offset: 3px; }

.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 42px 0; }
.contact-band h2 { margin: 0; font-size: 29px; }
.contact-band p { margin: 6px 0 0; color: #c7d3dc; }
.phone-link { color: #fff; font-size: 26px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.contact-actions { display: flex; align-items: center; gap: 20px; }

.page-hero { padding: 84px 0 54px; background: var(--navy); color: #fff; }
.page-hero p { max-width: 760px; margin: 16px 0 0; color: #c7d3dc; font-size: 18px; }
.document { width: min(calc(100% - 40px), 900px); margin-inline: auto; padding-block: 56px 88px; }
.document section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.document h2 { margin: 0 0 16px; color: var(--navy); font-size: 27px; }
.document h3 { margin: 22px 0 8px; font-size: 18px; }
.document p, .document li { color: #3e4d5c; }
.document table { width: 100%; border-collapse: collapse; }
.document th, .document td { padding: 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.document th { background: var(--soft); }
.document tbody th { width: 40%; }
.draft-note { padding: 16px 18px; border-left: 4px solid var(--amber); background: #fff8e8; color: #6d4a11; }
.document-meta { padding: 16px 18px; border-left: 4px solid var(--green); background: #eef8f3; color: #244b3b; }
.signature { margin-top: 32px; text-align: right; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 26px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-item { padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-item h3 { margin-top: 0; color: var(--navy); }
.service-item p { margin-bottom: 0; }
.document-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0; }
.document-cta h2 { margin-bottom: 6px; }
.document-cta p { margin: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 54px; align-items: start; }
.contact-details { padding-left: 28px; border-left: 1px solid var(--line); }
.contact-details h2 { font-size: 21px; }
.contact-details .phone-contact { display: block; margin: 8px 0 18px; color: var(--teal); font-size: 22px; font-weight: 850; text-decoration: none; }
.wpcf7-form label { display: block; margin-bottom: 18px; color: var(--navy); font-weight: 750; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form select, .wpcf7-form textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #aebbc6; border-radius: 3px; background: #fff; color: var(--ink); font: inherit; }
.wpcf7-form textarea { min-height: 190px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { border-color: var(--teal); outline: 2px solid rgba(0, 140, 149, .22); }
.wpcf7-form .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.wpcf7-form .wpcf7-acceptance input { margin-top: 7px; }
.wpcf7-form input[type="submit"] { min-height: 46px; padding: 10px 22px; border: 0; border-radius: 4px; background: var(--teal); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.wpcf7-form input[type="submit"]:hover, .wpcf7-form input[type="submit"]:focus-visible { background: #00757c; }
.wpcf7-not-valid-tip { display: block; color: #a52a2a; font-size: 14px; }
.wpcf7-response-output { margin-inline: 0 !important; }

.site-footer { padding: 38px 0; background: #041225; color: #aebdca; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #d8e2ea; text-decoration: none; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-contact { border: 0; border-radius: 0; }
  .hero { min-height: 680px; }
  .hero-shade { width: 100%; background: rgba(7, 26, 52, .78); }
  .hero-content { padding-block: 88px 68px; }
  .hero h1 { font-size: 56px; }
  .business-grid { grid-template-columns: 1fr 1fr; }
  .project-layout, .dx-band { grid-template-columns: 1fr; gap: 38px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .contact-details { padding: 28px 0 0; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 600px) {
  .flow-wrap, .document { width: min(calc(100% - 32px), var(--max)); }
  .hero { min-height: 620px; }
  .hero-content { padding-block: 72px 52px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 17px; }
  .section { padding-block: 62px; }
  .section-heading h2, .page-hero h1 { font-size: 34px; }
  .business-grid, .project-facts { grid-template-columns: 1fr; }
  .business-item { min-height: 220px; }
  .business-item h3 { margin-top: 24px; }
  .company-list > div { grid-template-columns: 1fr; gap: 2px; }
  .contact-band, .contact-actions, .footer-inner, .document-cta { align-items: flex-start; flex-direction: column; }
  .phone-link { font-size: 23px; }
  .service-grid { grid-template-columns: 1fr; }
  .document table, .document tbody, .document tr, .document th, .document td { display: block; width: 100%; }
  .document tr { margin-bottom: 12px; }
  .document table.responsive-data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .document table.responsive-data td::before { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 700; content: attr(data-label); }
}

@media print {
  .site-header, .site-footer, .contact-band, .hero-actions { display: none; }
  .hero, .page-hero { min-height: 0; padding: 24px 0; color: #000; background: #fff; }
  .hero-media, .hero-shade { display: none; }
  .hero-content { padding: 0; color: #000; }
  .section { padding-block: 30px; }
}
