/*
Theme Name: SOU Corporate Theme
Theme URI: https://example.com/
Author: 株式会社SOU
Description: 株式会社SOUのコーポレートサイト専用テーマ
Version: 1.4.0
Text Domain: sou-corporate
*/

:root {
  --brand: #0d458b;
  --brand-deep: #0a3569;
  --brand-soft: #eaf2fb;
  --brand-soft-2: #f3f7fd;
  --ink: #163763;
  --text: #203040;
  --sub: #5f7187;
  --line: #dbe5f0;
  --bg: #f7f9fc;
  --paper: #ffffff;
  --accent: #b8d8ef;
  --warm: #f5efe5;
  --shadow: 0 18px 48px rgba(13, 69, 139, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 229, 240, 0.88);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 58px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(13, 69, 139, 0.16);
}

.brand-copy {
  display: grid;
  line-height: 1.3;
}

.brand-name {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

.brand-sub {
  color: var(--sub);
  font-size: 12px;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.global-nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.global-nav a:hover {
  background: var(--brand-soft);
}

.global-nav .nav-contact {
  color: var(--paper);
  background: var(--brand);
  padding-inline: 18px;
}

.global-nav .nav-contact:hover {
  background: var(--brand-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 11px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand);
}

.section,
.section-band {
  padding: 96px 0;
}

.section-soft {
  background: var(--brand-soft-2);
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.98), rgba(234,242,251,0.78)),
    url("assets/images/hero-missing-piece-inspired.png") center / cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 3.4vw, 42px);
}

h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.hero-lead {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
}

.hero-text {
  max-width: 620px;
  color: var(--text);
  font-size: 17px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button-row-center {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.4;
}

.button-primary {
  color: var(--paper);
  background: var(--brand);
  box-shadow: 0 14px 28px rgba(13, 69, 139, 0.18);
}

.button-primary:hover {
  background: var(--brand-deep);
}

.button-secondary {
  color: var(--brand);
  background: var(--paper);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.visual-desk {
  position: absolute;
  inset: 34px 0 auto;
  min-height: 390px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 229, 240, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-desk::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 52%, rgba(184,216,239,0.3) 52% 66%, transparent 66%),
    radial-gradient(circle at 22% 18%, rgba(245,239,229,0.8), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(234,242,251,0.95), transparent 26%);
}

.visual-screen {
  position: absolute;
  top: 58px;
  right: 42px;
  width: 56%;
  height: 190px;
  padding: 28px;
  background: var(--brand-deep);
  border-radius: 6px;
  transform: rotate(2deg);
}

.visual-screen span,
.visual-note span {
  display: block;
  height: 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.visual-screen span:nth-child(2) {
  width: 64%;
}

.visual-screen span:nth-child(3) {
  width: 82%;
  background: var(--accent);
}

.visual-note {
  position: absolute;
  left: 48px;
  bottom: 52px;
  width: 48%;
  min-height: 190px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: rotate(-3deg);
}

.visual-note span {
  height: 9px;
  background: #d9e8f5;
}

.visual-note span:nth-child(3) {
  width: 72%;
}

.visual-note span:nth-child(4) {
  width: 54%;
}

.visual-hand {
  position: absolute;
  width: 96px;
  height: 30px;
  background: #d0a67a;
  border-radius: 999px;
}

.visual-hand-a {
  left: 40%;
  top: 228px;
  transform: rotate(28deg);
}

.visual-hand-b {
  right: 12%;
  top: 292px;
  transform: rotate(-22deg);
}

.hero-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  padding: 26px;
  background: var(--paper);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-note p {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

.hero-note span {
  color: var(--sub);
}

.two-column,
.work-grid,
.message-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
}

.reading {
  font-size: 17px;
}

.reading p:last-child {
  margin-bottom: 0;
}

.quiet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.quiet-list li {
  padding: 18px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head p {
  color: var(--sub);
}

.issue-grid,
.service-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

.issue-grid {
  grid-template-columns: repeat(3, 1fr);
}

.issue-grid article,
.service-card,
.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(13, 69, 139, 0.06);
}

.issue-grid article {
  min-height: 128px;
  padding: 24px;
  color: var(--ink);
  font-weight: 700;
}

.service-grid {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  min-height: 260px;
  padding: 28px;
}

.service-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.service-card p,
.case-card p {
  margin-bottom: 0;
  color: var(--sub);
}

.price-box {
  margin-top: 34px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  color: var(--paper);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.price-box h2,
.price-box .eyebrow {
  color: var(--paper);
}

.price-box p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.price-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.price-tags span {
  padding: 9px 13px;
  color: var(--brand-deep);
  background: var(--paper);
  border-radius: 999px;
  font-weight: 700;
}

.case-grid {
  grid-template-columns: repeat(5, 1fr);
}

.case-card {
  overflow: hidden;
}

.case-card h3,
.case-card p {
  padding-inline: 18px;
}

.case-card h3 {
  margin-top: 18px;
  font-size: 16px;
}

.case-card p {
  padding-bottom: 22px;
  font-size: 14px;
}

.case-thumb {
  min-height: 132px;
  background-color: var(--brand-soft);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.7) 0 18%, transparent 18% 100%),
    linear-gradient(160deg, rgba(13,69,139,0.25), rgba(184,216,239,0.5));
}

.thumb-b {
  background-color: var(--warm);
}

.thumb-c {
  background-color: #edf3ef;
}

.thumb-d {
  background-color: #eef0f7;
}

.thumb-e {
  background-color: #f2f5f9;
}

.message-section {
  background: var(--paper);
}

.message-grid {
  align-items: center;
}

.message-photo {
  min-height: 430px;
  background: linear-gradient(rgba(13,69,139,0.06), rgba(13,69,139,0.12)), url("assets/images/representative-nagata.jpg") center / cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-section {
  padding: 96px 0;
  color: var(--paper);
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  text-align: center;
}

.contact-inner {
  max-width: 820px;
}

.contact-section h2,
.contact-section .eyebrow {
  color: var(--paper);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer {
  padding: 44px 0;
  background: #082b56;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  color: var(--paper);
}

.footer-grid p {
  margin: 18px 0 0;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-grid a:hover {
  color: var(--paper);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: grid;
  }

  .hero-grid,
  .two-column,
  .work-grid,
  .message-grid,
  .price-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .issue-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: min(100% - 28px, 1120px);
  }

  .brand-sub {
    display: none;
  }

  .section,
  .section-band,
  .contact-section {
    padding: 68px 0;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 420px;
  }

  .visual-desk {
    min-height: 320px;
  }

  .visual-screen {
    right: 22px;
    width: 62%;
    height: 150px;
  }

  .visual-note {
    left: 22px;
    width: 56%;
    min-height: 150px;
  }

  .hero-note {
    left: 12px;
    right: 12px;
    padding: 20px;
  }

  .issue-grid,
  .service-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .price-box {
    padding: 26px;
  }

  .message-photo {
    min-height: 320px;
  }

  .footer-grid {
    display: grid;
  }

  .footer-grid nav {
    justify-content: flex-start;
  }
}
/* Comment refinements */
.balanced-heading {
  max-width: 560px;
}

.price-box {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.demo-panel,
.monthly-panel {
  min-height: 100%;
}

.monthly-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.demo-price {
  margin: -6px 0 18px;
  color: var(--paper) !important;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.price-tags {
  margin-top: 18px;
}

.contact-heading {
  width: fit-content;
  margin-inline: auto;
  text-align: left;
}

@media (max-width: 980px) {
  .price-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-heading {
    width: auto;
    text-align: center;
  }
}
.monthly-from {
  margin: -4px 0 8px;
  color: var(--paper) !important;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.price-table {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.price-table div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 92px;
  gap: 4px 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.price-table span,
.price-table strong {
  color: var(--paper);
  font-style: normal;
  line-height: 1.45;
}

.price-table span {
  font-weight: 700;
}

.price-table strong {
  text-align: right;
}

.price-table em {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.company-card {
  margin-top: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-card h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.company-card dl {
  margin: 0;
  display: grid;
  gap: 10px;
}

.company-card dl div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.company-card dt {
  color: var(--brand);
  font-weight: 700;
}

.company-card dd {
  margin: 0;
  color: var(--text);
}

@media (max-width: 640px) {
  .price-table div,
  .company-card dl div {
    grid-template-columns: 1fr;
  }

  .price-table strong {
    text-align: left;
  }
}
/* Service-separated pricing and company section */
.pricing-section {
  margin-top: 54px;
}

.compact-head {
  margin-bottom: 24px;
}

.compact-head h2 {
  max-width: 780px;
  font-size: clamp(24px, 2.8vw, 34px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.pricing-card {
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pricing-card h3 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.5vw, 32px);
}

.pricing-card-primary {
  color: var(--paper);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.pricing-card-primary h3,
.pricing-card-primary .eyebrow,
.pricing-card-primary .demo-price {
  color: var(--paper) !important;
}

.pricing-card-primary p {
  color: rgba(255, 255, 255, 0.86);
}

.pricing-card-secondary {
  background: var(--paper);
  border: 1px solid var(--line);
}

.pricing-card-secondary h3,
.pricing-card-secondary .monthly-from {
  color: var(--ink) !important;
}

.pricing-card-secondary .price-table div {
  border-top-color: var(--line);
}

.pricing-card-secondary .price-table span,
.pricing-card-secondary .price-table strong {
  color: var(--ink);
}

.pricing-card-secondary .price-table em {
  color: var(--sub);
}

.company-section {
  background: var(--bg);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.company-section .company-card {
  margin-top: 0;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(13, 69, 139, 0.06);
}

@media (max-width: 980px) {
  .pricing-grid,
  .company-layout {
    grid-template-columns: 1fr;
  }
}
/* Logo image integration */
.brand-link {
  gap: 14px;
}

.brand-logo {
  width: clamp(128px, 13vw, 174px);
  height: auto;
  object-fit: contain;
}

.brand-sub-inline {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-brand .brand-sub-inline {
  border-left-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 760px) {
  .brand-logo {
    width: 118px;
  }

  .brand-sub-inline {
    display: none;
  }
}
/* Hero text-first refinement and representative photo */
.hero-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
}

.hero-copy {
  max-width: 760px;
}

.hero-message-block {
  max-width: 560px;
  margin-top: 28px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.78);
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(13, 69, 139, 0.08);
}

.hero-message-block p {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.55;
}

.hero-message-block span {
  color: var(--sub);
  font-weight: 500;
}

.representative-photo {
  background: linear-gradient(rgba(13,69,139,0.04), rgba(13,69,139,0.08)), url("assets/images/representative-nagata.jpg") center top / cover;
}

@media (max-width: 640px) {
  .hero-message-block {
    padding: 20px;
  }
}
/* Annotation refinements 2026-07-10 */
.hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.88) 46%, rgba(247,251,255,0.68) 100%),
    url("assets/images/hero-missing-piece-inspired.png") right center / cover no-repeat;
}

.hero-grid {
  min-height: 620px;
  align-items: center;
}

.hero-copy {
  padding: 32px 0;
}

.hero-lead {
  max-width: 620px;
}

.pricing-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.pricing-card {
  min-height: 420px;
}

.pricing-card-primary {
  display: flex;
  flex-direction: column;
}

.pricing-card-primary p:last-child {
  max-width: 520px;
}

.representative-photo {
  min-height: 520px;
  background-position: center 28%;
  background-size: cover;
}

@media (max-width: 980px) {
  .hero-grid {
    min-height: auto;
  }

  .pricing-card {
    min-height: 0;
  }
}
/* Web app demo flow diagram */
.app-demo-flow {
  position: relative;
  margin-top: auto;
  padding-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.app-demo-flow::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 58px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.app-demo-flow span {
  position: relative;
  min-height: 78px;
  display: grid;
  place-items: center;
  color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(3, 22, 48, 0.1);
}

.app-demo-flow span::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  background: var(--paper);
  border: 3px solid var(--accent);
  border-radius: 50%;
}

@media (max-width: 640px) {
  .app-demo-flow {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .app-demo-flow::before,
  .app-demo-flow span::before {
    display: none;
  }
}
/* Final annotation refinements */
.app-demo-flow {
  margin-top: 32px;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.app-demo-flow::before {
  left: 23px;
  right: auto;
  top: 28px;
  bottom: 28px;
  width: 2px;
  height: auto;
  background: rgba(255, 255, 255, 0.36);
}

.app-demo-flow span {
  min-height: 58px;
  padding: 14px 18px 14px 58px;
  place-items: center start;
  text-align: left;
}

.app-demo-flow span::before {
  top: 50%;
  left: 23px;
  transform: translate(-50%, -50%);
}

.company-logo-mark {
  width: 116px;
  height: auto;
  margin-top: 22px;
  border-radius: 6px;
}

.company-map {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-soft);
}

.company-map iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
}

.footer-brand {
  align-items: flex-start;
}
/* Header/footer and copy review refinements */
.header-inner .brand-sub-inline {
  display: none;
}

.footer-logo {
  width: 150px;
  padding: 8px 10px;
  background: var(--paper);
  border-radius: 6px;
  filter: none !important;
  opacity: 1;
}

.footer-brand {
  display: inline-flex;
  padding: 0;
}
/* Final typography and message background refinements */
.eyebrow {
  font-size: 15px;
}

.message-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92), rgba(234,242,251,0.84)),
    url("assets/images/hero-missing-piece-inspired.png") right center / cover no-repeat;
}

.message-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.42);
  pointer-events: none;
}

.message-section .container {
  position: relative;
  z-index: 1;
}
/* Company section premium one-column layout */
.company-section {
  background: linear-gradient(180deg, var(--paper), var(--brand-soft-2));
}

.company-layout {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.company-section .section-head {
  max-width: 720px;
  margin: 0 auto 6px;
  text-align: center;
}

.company-logo-mark {
  width: 104px;
  margin: 24px auto 0;
  box-shadow: 0 12px 28px rgba(13, 69, 139, 0.08);
}

.company-section .company-card {
  max-width: 860px;
  width: 100%;
  margin-inline: auto;
  padding: 34px;
  border-color: rgba(13, 69, 139, 0.12);
  box-shadow: 0 22px 60px rgba(13, 69, 139, 0.1);
}

.company-section .company-card dl {
  gap: 0;
}

.company-section .company-card dl div {
  grid-template-columns: 130px minmax(0, 1fr);
  padding: 16px 0;
}

.company-map {
  margin-top: 28px;
}

@media (max-width: 640px) {
  .company-section .company-card {
    padding: 24px;
  }

  .company-section .company-card dl div {
    grid-template-columns: 1fr;
  }
}


/* Label size refinements from browser comments */
.eyebrow {
  font-size: 19px;
}


/* Browser comment layout refinements */
#philosophy .two-column {
  align-items: start;
}

#philosophy .reading {
  margin-top: 34px;
}

#cases .section-head {
  max-width: 1160px;
}

#cases .section-head h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(34px, 3.6vw, 48px);
}

@media (max-width: 900px) {
  #philosophy .reading {
    margin-top: 0;
  }

  #cases .section-head h2 {
    white-space: normal;
  }
}



/* Contact Form 7 */
.contact-form-panel {
  max-width: 760px;
  margin: 38px auto 0;
  padding: 34px;
  color: var(--text);
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(3, 22, 48, 0.16);
  text-align: left;
}

.contact-form-note {
  margin-bottom: 24px;
  color: var(--sub) !important;
  text-align: center;
}

.contact-form-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
}

.contact-form-panel input[type="text"],
.contact-form-panel input[type="email"],
.contact-form-panel input[type="tel"],
.contact-form-panel textarea,
.contact-form-panel select {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.contact-form-panel textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus,
.contact-form-panel select:focus {
  outline: 3px solid rgba(184, 216, 239, 0.5);
  border-color: var(--brand);
}

.contact-form-panel input[type="submit"] {
  min-height: 50px;
  padding: 12px 28px;
  color: var(--paper);
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form-panel input[type="submit"]:hover {
  background: var(--brand-deep);
}

.contact-form-panel .wpcf7-spinner {
  vertical-align: middle;
}

.contact-form-panel .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b42318;
  font-size: 14px;
}

.contact-form-panel .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .contact-form-panel {
    padding: 24px 18px;
  }
}


/* v1.3.0 real image tuning */
.brand-logo {
  width: clamp(150px, 15vw, 210px);
  max-height: 58px;
  object-fit: contain;
}

.hero {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.91) 42%, rgba(255,255,255,0.34) 72%, rgba(255,255,255,0.08) 100%),
    url("assets/images/hero-missing-piece-inspired.png") right center / cover no-repeat;
}

.hero-grid {
  min-height: 680px;
}

.representative-photo {
  min-height: 540px;
  background:
    linear-gradient(rgba(13,69,139,0.03), rgba(13,69,139,0.06)),
    url("assets/images/representative-nagata.jpg") center 30% / cover no-repeat;
}

@media (max-width: 980px) {
  .hero {
    background-position: 62% center;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    width: 132px;
    max-height: 48px;
  }

  .hero {
    background:
      linear-gradient(rgba(255,255,255,0.93), rgba(255,255,255,0.89)),
      url("assets/images/hero-missing-piece-inspired.png") 64% center / cover no-repeat;
  }

  .hero-grid {
    min-height: 560px;
  }

  .representative-photo {
    min-height: 420px;
    background-position: center 26%;
  }
}


/* v1.4.0 footer cleanup */
.footer-brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  padding: 0;
  background: transparent;
}

.footer-logo {
  width: 176px;
  max-height: 58px;
  padding: 4px 6px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 6px;
  box-shadow: none;
}

.site-footer .brand-link {
  gap: 0;
}

.site-footer .footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer .footer-grid p {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .footer-logo {
    width: 150px;
    max-height: 50px;
    padding: 3px 5px;
  }
}
