/*
Theme Name: CultiVision
Theme URI: https://cultivision.jp/
Author: CultiVision
Author URI: https://cultivision.jp/
Description: CultiVision corporate website theme. Includes front page, services, regional initiatives, founder profile, company, contact, and dynamic news from WordPress posts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: cultivision
*/


:root {
  --black: #050705;
  --charcoal: #10150d;
  --ink: #1e271a;
  --text: #273223;
  --muted: #687260;
  --line: #dfe7d8;
  --green: #68c430;
  --green-deep: #326b18;
  --lime: #d8e72d;
  --cream: #f6f3ea;
  --paper: #fffdf8;
  --green-soft: #eff8e9;
  --white: #fff;

  --shadow-xs: 0 4px 14px rgba(5, 7, 5, .055);
  --shadow-sm: 0 12px 34px rgba(5, 7, 5, .085);
  --shadow-md: 0 28px 80px rgba(5, 7, 5, .14);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 44px;

  --max: 1180px;
  --nav-h: 78px;

  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
               "Yu Gothic", "YuGothic", "Segoe UI", sans-serif;
 }
html { scroll-behavior: smooth; text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 6% -8%, rgba(216,231,45,.16), transparent 28rem),
    radial-gradient(circle at 92% 0%, rgba(104,196,48,.12), transparent 30rem),
    var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, p, figure { margin-top: 0; }
p { margin-bottom: 0; }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(246, 243, 234, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223,231,216,.78);
}
.nav {
  height: var(--nav-h);
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo-img { width: 184px; height: auto; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 14px;
  line-height: 1;
  color: #384634;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--green-deep);
  background: rgba(104,196,48,.13);
}
.nav-cta {
  margin-left: 8px;
  color: var(--white) !important;
  background: var(--black) !important;
  padding: 0 18px !important;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(5,7,5,.16);
}
.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(5,7,5,.1);
  border-radius: 999px;
  color: var(--black);
  background: rgba(255,255,255,.74);
  font-weight: 700;
}

/* Type */
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1;
}
.eyebrow::before, .kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}
h1, h2, h3 {
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 760;
  letter-spacing: -.052em;
  line-height: 1.16;
}
h1 { font-size: clamp(42px, 5.7vw, 78px); margin-bottom: 26px; }
h2 { font-size: clamp(30px, 3.8vw, 50px); margin-bottom: 0; }
h3 { font-size: clamp(20px, 1.9vw, 25px); margin-bottom: 12px; letter-spacing: -.032em; }

.lead {
  color: #40513b;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.95;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 760;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #1d3116 65%, var(--green-deep));
  box-shadow: 0 18px 36px rgba(5,7,5,.18);
}
.button-secondary {
  color: var(--black);
  background: rgba(255,255,255,.88);
  border-color: rgba(5,7,5,.12);
}
.button-text {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--green-deep);
  font-weight: 760;
  margin-top: 18px;
}
.button-text::after { content: "→"; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(246,243,234,.96), rgba(239,248,233,.86) 55%, rgba(255,253,248,.92)),
    radial-gradient(circle at 74% 24%, rgba(104,196,48,.23), transparent 26rem),
    radial-gradient(circle at 18% 10%, rgba(216,231,45,.2), transparent 24rem);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: 12vh;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(5,7,5,.045), rgba(104,196,48,.11)),
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.72), transparent 18%);
  z-index: -1;
}
.hero-inner {
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(100svh - var(--nav-h));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  padding: 74px 0 82px;
}
.hero-copy { max-width: 820px; }
.hero-lead {
  max-width: 720px;
  color: #344330;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.95;
  margin-bottom: 18px;
}
.vision-line {
  max-width: 760px;
  margin: 0 0 34px;
  padding: 17px 20px;
  border: 1px solid rgba(104,196,48,.22);
  border-left: 5px solid var(--green);
  border-radius: 18px;
  color: #2f3f2b;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-xs);
}
.vision-line strong {
  display: inline-flex;
  margin-right: 10px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
  position: relative;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(5,7,5,.06);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
}
.orbit {
  position: relative;
  min-height: 380px;
}
.orbit-svg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.orbit-svg line {
  stroke: rgba(5, 7, 5, .16);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.orbit-node,
.orbit-center {
  z-index: 2;
}

.orbit-center, .orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}
.orbit-center {
  left: 50%;
  top: 50%;
  width: 154px;
  height: 154px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--black);
  background: var(--paper);
  border: 1px solid rgba(5,7,5,.08);
  box-shadow: inset 0 0 0 14px rgba(104,196,48,.1), var(--shadow-sm);
  font-weight: 840;
  line-height: 1.45;
  z-index: 2;
}
.orbit-node {
  width: 152px;
  min-height: 78px;
  padding: 14px;
  border-radius: 24px;
  color: var(--white);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}
.orbit-node.admin { top: 0; left: 50%; transform: translateX(-50%); background: var(--black); }
.orbit-node.it { left: 0; bottom: 24px; background: var(--green-deep); }
.orbit-node.region { right: 0; bottom: 24px; color: var(--black); background: var(--lime); }
.hero-card-caption { position: relative; z-index: 1; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* Sections */
.section { padding: clamp(72px, 8vw, 118px) 0; }
.section.alt { background: var(--paper); }
.section-head {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: 46px;
}
.section-head .kicker { margin-bottom: 18px; }
.section-head p { color: #40513b; line-height: 1.95; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card, .menu-card, .detail-block, .contact-box, .case-card, .offer-card, .relation-box, .timeline-item, .summary-card {
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-sm);
}
.card {
  position: relative;
  overflow: hidden;
  min-height: 308px;
  padding: 30px;
  border-radius: var(--radius-lg);
}
.card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -56px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(104,196,48,.1);
}
.index {
  display: inline-flex;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
  margin-bottom: 16px;
}
.card p, .detail-block p, .menu-card p, .case-card p, .offer-card p, .timeline-item p, .summary-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

/* Page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 122px) 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(104,196,48,.24), transparent 24rem),
    linear-gradient(135deg, var(--black), var(--charcoal) 62%, #193510);
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}
.page-hero .kicker { color: rgba(255,255,255,.74); margin-bottom: 18px; }
.page-hero .kicker::before { background: var(--lime); }
.page-hero h1 { color: var(--white); font-size: clamp(38px, 5vw, 64px); margin-bottom: 18px; }
.page-hero p {
  max-width: 880px;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.95;
}

/* Service */
.service-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.summary-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  min-height: 260px;
}
.summary-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(104,196,48,.10), transparent 44%);
  pointer-events: none;
}
.summary-card > * { position: relative; }
.summary-card h3 { margin-bottom: 12px; }
.service-layout {
  display: grid;
  grid-template-columns: minmax(250px, .34fr) minmax(0, .66fr);
  gap: 30px;
  align-items: start;
}
.sticky-menu {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 14px;
}
.menu-card, .detail-block, .contact-box {
  border-radius: var(--radius-lg);
  padding: 28px;
}
.detail-stack { display: grid; gap: 22px; }
.detail-block { padding: clamp(28px, 4vw, 42px); scroll-margin-top: 100px; }
.detail-block .kicker { margin-bottom: 18px; }
.detail-block h2 { font-size: clamp(27px, 3.2vw, 42px); margin-bottom: 18px; }
.detail-block p + p { margin-top: 16px; }
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.check-item {
  position: relative;
  padding: 14px 15px 14px 38px;
  border-radius: 15px;
  color: #34432f;
  background: var(--green-soft);
  border: 1px solid rgba(104,196,48,.20);
  font-size: 14px;
  line-height: 1.65;
}
.check-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.simple-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.flow-step {
  position: relative;
  min-height: 178px;
  padding: 23px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fbfdf8);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-xs);
}
.flow-step::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 40%;
  color: var(--green-deep);
  font-weight: 900;
  z-index: 2;
}
.flow-step:last-child::after { display: none; }
.flow-step small { color: var(--green-deep); font-size: 12px; font-weight: 850; }
.flow-step h3 { font-size: 18px; letter-spacing: -.025em; margin: 8px 0; }
.flow-step p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.case-card {
  min-height: 250px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--paper), #f8fbf3);
}
.case-card small {
  display: inline-flex;
  color: var(--green-deep);
  font-weight: 850;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 9px;
}
.case-card h3 { font-size: 18px; letter-spacing: -.025em; }
.cta-panel {
  margin-top: 28px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 86% 12%, rgba(216,231,45,.25), transparent 14rem),
    linear-gradient(135deg, var(--black), #1d3116 70%, var(--green-deep));
  box-shadow: var(--shadow-md);
}
.cta-panel h3 { color: var(--white); font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.cta-panel p { color: rgba(255,255,255,.84); max-width: 820px; margin-bottom: 22px; }

/* Structure */
.relationship-diagram {
  display: grid;
  grid-template-columns: 1fr 76px 1fr;
  gap: 18px;
  align-items: stretch;
  margin: 34px 0;
}
.relation-box {
  padding: clamp(26px, 4vw, 36px);
  border-radius: var(--radius-lg);
}
.relation-box.sfg { background: linear-gradient(160deg, #fff, #fbfce8); }
.relation-box.cv { background: linear-gradient(160deg, #fff, #eef8e9); }
.relation-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.relation-label.lime { color: var(--black); background: var(--lime); }
.relation-connector {
  display: grid;
  place-items: center;
  color: var(--green-deep);
  font-size: 36px;
  font-weight: 900;
}
.process-belt {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}
.process-item {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 18px 14px;
  border-radius: 22px;
  color: var(--white);
  background: var(--black);
  text-align: center;
  font-weight: 850;
  line-height: 1.45;
  box-shadow: var(--shadow-xs);
}
.process-item small { opacity: .72; font-size: 12px; }
.process-item:nth-child(1), .process-item:nth-child(2) { color: var(--black); background: var(--lime); }
.process-item:nth-child(3), .process-item:nth-child(4) { background: var(--green-deep); }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.offer-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 22px;
}

/* Profile */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, .36fr) minmax(0, .64fr);
  gap: 30px;
  align-items: start;
}
.profile-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 34px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 10%, rgba(104,196,48,.22), transparent 12rem),
    linear-gradient(145deg, var(--black), var(--charcoal));
  box-shadow: var(--shadow-md);
}
.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--lime);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  font-size: 32px;
  font-weight: 850;
}
.profile-card h2 { color: var(--white); font-size: 34px; margin-bottom: 8px; }
.profile-card p { color: rgba(255,255,255,.78); }
.note {
  margin-top: 24px;
  padding: 16px;
  border-radius: 18px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  font-size: 14px;
  line-height: 1.8;
}
.timeline { display: grid; gap: 14px; }
.timeline-item {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
}
.timeline-year {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .06em;
}
.timeline-item ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
  color: var(--muted);
  font-size: 14px;
}

/* Company / Contact */
.company-table { display: grid; border-top: 1px solid var(--line); }
.company-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.company-row dt { color: var(--muted); font-weight: 850; font-size: 13px; }
.company-row dd { margin: 0; color: var(--text); font-weight: 650; }
.contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 32px;
  align-items: start;
}
form { display: grid; gap: 16px; }
label {
  display: grid;
  gap: 7px;
  color: var(--black);
  font-size: 13px;
  font-weight: 850;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  background: #fbfaf6;
  color: var(--text);
  outline: none;
}
textarea { min-height: 152px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(104,196,48,.16);
}
.form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(104,196,48,.12);
  color: var(--green-deep);
  font-weight: 760;
}
.small { color: var(--muted); font-size: 12px; }

/* Footer */
.footer { padding: 46px 0; color: rgba(255,255,255,.74); background: var(--black); }
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer .logo-img { width: 156px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--lime); }

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Tablet */
@media (max-width: 1024px) {
  :root { --nav-h: 70px; }
  .container, .nav, .hero-inner, .footer-inner { width: min(100% - 40px, var(--max)); }
  .menu-button { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) - 1px);
    left: 20px;
    right: 20px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 4px;
    border-radius: 22px;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(223,231,216,.95);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-cta { width: 100%; justify-content: flex-start; }
  .hero { min-height: auto; }
  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 72px 0;
  }
  .hero-card { max-width: 620px; }
  .section-head, .service-layout, .relationship-diagram, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .sticky-menu, .profile-card { position: static; }
  .cards-3, .case-grid, .service-summary { grid-template-columns: 1fr; }
  .simple-flow, .process-belt, .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-step::after { display: none; }
  .relation-connector { min-height: 48px; transform: rotate(90deg); }
}


@media (max-width: 1024px) and (min-width: 641px) {
  .cards-3,
  .case-grid,
  .service-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container, .nav, .hero-inner, .footer-inner { width: min(100% - 28px, var(--max)); }
  .logo-img { width: 150px; }
  h1 { font-size: clamp(38px, 11.4vw, 52px); letter-spacing: -.065em; }
  h2 { font-size: clamp(28px, 8vw, 38px); }
  .hero-inner { padding: 54px 0 64px; }
  .hero-actions, .footer-inner { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-card, .detail-block, .contact-box, .profile-card { padding: 24px; border-radius: 28px; }
  .orbit { min-height: 380px; }
  .orbit-node { width: 138px; font-size: 14px; }
  .orbit-node.admin { top: 0; }
  .orbit-node.it { left: 0; bottom: 64px; }
  .orbit-node.region { right: 0; bottom: 64px; }
  .orbit-line.b, .section { padding: 68px 0; }
  .check-grid, .simple-flow, .process-belt, .offer-grid { grid-template-columns: 1fr; }
  .card { min-height: auto; padding: 26px; }
  .timeline-item, .company-row { grid-template-columns: 1fr; gap: 6px; }
}


/* v5 additions: icons, news, photo proof, profile readability */
.icon-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.icon-item,
.check-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  color: #34432f;
  background: var(--green-soft);
  border: 1px solid rgba(104,196,48,.20);
  font-size: 14px;
  line-height: 1.65;
}
.check-item {
  padding-left: 15px;
}
.check-item::before {
  display: none;
}
.icon-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--black);
  background: var(--lime);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(5,7,5,.08);
}
.icon-mark.dark {
  color: var(--white);
  background: var(--black);
}
.icon-mark.green {
  color: var(--white);
  background: var(--green-deep);
}
.icon-text strong {
  display: block;
  color: var(--black);
  font-size: 14px;
  margin-bottom: 2px;
}
.icon-text span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.news-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
}
.news-feature,
.news-list {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-sm);
}
.news-feature {
  padding: clamp(26px, 4vw, 40px);
  background:
    radial-gradient(circle at 86% 12%, rgba(216,231,45,.22), transparent 14rem),
    linear-gradient(135deg, #fff, #f3faed);
}
.news-date {
  display: inline-flex;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.news-feature h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}
.news-feature p {
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 20px;
}
.news-list {
  overflow: hidden;
}
.news-row {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-bottom: 1px solid rgba(223,231,216,.95);
}
.news-row:last-child {
  border-bottom: 0;
}
.news-row a {
  color: var(--black);
  font-weight: 760;
}
.news-row a:hover {
  color: var(--green-deep);
}

.photo-proof {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: stretch;
  margin-top: 34px;
}
.photo-main,
.photo-stack figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-sm);
}
.photo-main img,
.photo-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.photo-stack {
  display: grid;
  gap: 18px;
}
.photo-stack img {
  aspect-ratio: 16 / 10;
}
.photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(5,7,5,.72);
  backdrop-filter: blur(10px);
}
.photo-caption strong {
  display: block;
  font-size: 15px;
}
.photo-caption span {
  display: block;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.profile-stat {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-xs);
}
.profile-stat strong {
  display: block;
  color: var(--green-deep);
  font-size: 22px;
  margin-bottom: 4px;
}
.profile-stat span {
  color: var(--muted);
  font-size: 13px;
}
.profile-detail {
  margin-top: 14px;
  border-radius: 18px;
  background: #fbfaf6;
  border: 1px solid rgba(223,231,216,.95);
  overflow: hidden;
}
.profile-detail summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  color: var(--black);
  font-weight: 800;
}
.profile-detail summary::-webkit-details-marker {
  display: none;
}
.profile-detail summary::after {
  content: "＋";
  float: right;
  color: var(--green-deep);
}
.profile-detail[open] summary::after {
  content: "−";
}
.profile-detail ul {
  margin: 0;
  padding: 0 18px 18px 2.1em;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .news-grid,
  .photo-proof {
    grid-template-columns: 1fr;
  }
  .profile-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .icon-item,
  .check-item {
    grid-template-columns: 38px 1fr;
    gap: 10px;
  }
  .icon-mark {
    width: 38px;
    height: 38px;
  }
  .profile-summary {
    grid-template-columns: 1fr;
  }
  .photo-caption {
    position: static;
    border-radius: 0;
    background: var(--black);
  }
}


/* v2: Vision / Mission branding sections */
.brand-philosophy {
  padding-top: clamp(72px, 8vw, 110px);
}
.philosophy-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 84% 18%, rgba(216,231,45,.24), transparent 18rem),
    linear-gradient(135deg, var(--black), #16250f 68%, var(--green-deep));
  box-shadow: var(--shadow-md);
}
.philosophy-panel::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -96px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
}
.philosophy-panel .kicker {
  color: rgba(255,255,255,.76);
}
.philosophy-panel .kicker::before {
  background: var(--lime);
}
.philosophy-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
}
.philosophy-panel h2 {
  color: var(--white);
  margin-top: 16px;
}
.philosophy-copy {
  display: grid;
  gap: 16px;
}
.philosophy-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(12px);
}
.philosophy-card strong {
  display: block;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.philosophy-card p {
  color: rgba(255,255,255,.82);
  line-height: 1.9;
}
.origin-card {
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-sm);
}
.origin-card h3 {
  margin-bottom: 14px;
}
.origin-card p {
  color: var(--muted);
}
.origin-card p + p {
  margin-top: 12px;
}
@media (max-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
}


/* v3: Real photos */
.profile-photo {
  position: relative;
  overflow: hidden;
  width: min(100%, 260px);
  aspect-ratio: 4 / 5;
  margin: 0 0 24px;
  border-radius: 32px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(5,7,5,.18);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.profile-card .profile-avatar {
  display: none;
}
.photo-proof img {
  filter: saturate(1.05) contrast(1.02);
}
.photo-main img,
.photo-stack img {
  object-position: center center;
}
.photo-main::after,
.photo-stack figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,5,0) 46%, rgba(5,7,5,.22));
  pointer-events: none;
}
@media (max-width: 1024px) {
  .profile-photo {
    width: 220px;
  }
}
@media (max-width: 640px) {
  .profile-photo {
    width: 190px;
    border-radius: 26px;
  }
}



/* =========================================================
   v4 responsive/layout stabilization patch
   - WordPress menu <ul><li> support
   - Desktop / tablet / smartphone balance
   - Hero, cards, photos, profile, CF7 refinements
========================================================= */

html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
}
img {
  max-width: 100%;
  height: auto;
}

/* Header: support both fallback links and wp_nav_menu ul/li output */
.site-header {
  min-height: var(--nav-h);
}
.nav {
  position: relative;
  min-width: 0;
}
.brand {
  min-width: 0;
  flex-shrink: 0;
}
.logo-img,
.custom-logo {
  width: 184px;
  max-width: 42vw;
  height: auto;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.nav-links {
  min-width: 0;
}
.nav-links ul,
.footer-links ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li,
.footer-links li {
  margin: 0;
  padding: 0;
}
.nav-links a,
.nav-links .menu-item a {
  white-space: nowrap;
}
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  color: var(--green-deep);
  background: rgba(104,196,48,.13);
}
.nav-links .menu-item:last-child > a {
  color: var(--white);
  background: var(--black);
  padding-inline: 18px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(5,7,5,.16);
}
.footer-links ul {
  flex-wrap: wrap;
  justify-content: center;
}

/* Typographic balance */
h1 {
  line-height: 1.12;
  letter-spacing: -.05em;
}
h2 {
  line-height: 1.2;
}
.page-hero h1 {
  max-width: 980px;
}
.hero-lead,
.page-hero p,
.section-head p,
.detail-block p {
  text-wrap: pretty;
}

/* Hero: avoid cramped two-column layout */
.hero-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .78fr);
}
.hero-card {
  min-width: 0;
}
.orbit {
  max-width: 420px;
  margin-inline: auto;
}

/* Cards: equalize and reduce text wall */
.cards-3,
.service-summary,
.case-grid,
.offer-grid {
  align-items: stretch;
}
.card,
.summary-card,
.case-card,
.offer-card {
  height: 100%;
}
.card h3,
.summary-card h3,
.case-card h3,
.offer-card h3 {
  text-wrap: balance;
}

/* Service page */
.service-layout {
  grid-template-columns: minmax(260px, .33fr) minmax(0, .67fr);
}
.sticky-menu {
  min-width: 0;
}
.detail-block {
  min-width: 0;
}
.simple-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.flow-step {
  min-width: 0;
}

/* Icon cards */
.icon-list {
  grid-template-columns: 1fr;
}
.icon-item,
.check-item {
  min-width: 0;
}
.icon-text {
  min-width: 0;
}

/* Photos */
.photo-proof {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}
.photo-main,
.photo-stack figure {
  min-height: 0;
}
.photo-main img {
  aspect-ratio: 16 / 10;
}
.photo-stack img {
  aspect-ratio: 16 / 10;
}
.photo-caption {
  z-index: 2;
}

/* Profile */
.profile-grid {
  grid-template-columns: minmax(280px, .34fr) minmax(0, .66fr);
}
.profile-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.profile-photo {
  width: min(100%, 240px);
}
.timeline-item {
  grid-template-columns: 112px minmax(0, 1fr);
}
.profile-summary {
  margin-bottom: 16px;
}

/* Contact Form 7 */
.wpcf7 form {
  display: grid;
  gap: 16px;
}
.wpcf7 p {
  margin: 0;
}
.wpcf7 label {
  display: grid;
  gap: 7px;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  background: #fbfaf6;
  color: var(--text);
}
.wpcf7 textarea {
  min-height: 152px;
  resize: vertical;
}
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--black), #1d3116 65%, var(--green-deep));
  font-weight: 760;
  cursor: pointer;
}

/* WordPress content */
.detail-block :where(h2, h3, h4) {
  margin-top: 1.3em;
}
.detail-block :where(h2, h3, h4):first-child {
  margin-top: 0;
}
.detail-block :where(ul, ol) {
  color: var(--muted);
}

/* Tablet: 641px - 1024px */
@media (max-width: 1024px) and (min-width: 641px) {
  .nav {
    width: min(100% - 40px, var(--max));
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 64px 0 76px;
  }
  .hero-card {
    width: min(100%, 640px);
  }
  .cards-3,
  .service-summary,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .offer-grid,
  .process-belt {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .simple-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service-layout,
  .profile-grid,
  .contact-grid,
  .relationship-diagram,
  .photo-proof,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    position: static;
  }
  .profile-photo {
    width: 220px;
  }
  .sticky-menu {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .menu-intro {
    grid-column: 1 / -1;
  }
}

/* Smartphone */
@media (max-width: 640px) {
  :root {
    --nav-h: 66px;
  }
  body {
    font-size: 15px;
    line-height: 1.78;
  }
  .container,
  .nav,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }
  .site-header {
    height: var(--nav-h);
  }
  .nav {
    height: var(--nav-h);
  }
  .logo-img,
  .custom-logo {
    width: 146px;
    max-width: 58vw;
  }
  .nav-links {
    top: calc(var(--nav-h) - 1px);
    left: 14px;
    right: 14px;
    padding: 10px;
    border-radius: 20px;
  }
  .nav-links ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a,
  .nav-links .menu-item a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    white-space: normal;
  }
  .nav-links .menu-item:last-child > a {
    margin-left: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 46px 0 58px;
  }
  h1 {
    font-size: clamp(34px, 10.4vw, 48px);
    line-height: 1.16;
    letter-spacing: -.052em;
  }
  .hero-lead {
    font-size: 16px;
    line-height: 1.9;
  }
  .vision-line {
    font-size: 14px;
    padding: 14px 15px;
  }
  .hero-actions {
    gap: 10px;
  }
  .button {
    min-height: 50px;
    padding-inline: 18px;
  }
  .hero-card {
    padding: 20px;
    border-radius: 28px;
  }
  .orbit {
    min-height: 350px;
    transform: scale(.96);
    transform-origin: center;
  }
  .orbit-node {
    width: 130px;
    min-height: 70px;
    font-size: 13px;
  }
  .orbit-center {
    width: 126px;
    height: 126px;
    font-size: 14px;
  }
  .orbit-svg line {
    stroke-width: 1.25;
  }

  .section {
    padding: 58px 0;
  }
  .section-head {
    gap: 18px;
    margin-bottom: 28px;
  }
  h2 {
    font-size: clamp(26px, 7.4vw, 34px);
    letter-spacing: -.04em;
  }
  h3 {
    font-size: 20px;
  }
  .page-hero {
    padding: 58px 0;
  }
  .page-hero h1 {
    font-size: clamp(32px, 9.6vw, 44px);
  }
  .page-hero p {
    font-size: 15px;
  }

  .cards-3,
  .service-summary,
  .case-grid,
  .offer-grid,
  .simple-flow,
  .process-belt,
  .profile-summary,
  .check-grid {
    grid-template-columns: 1fr;
  }
  .card,
  .summary-card,
  .case-card,
  .offer-card,
  .detail-block,
  .contact-box,
  .profile-card,
  .origin-card {
    padding: 22px;
    border-radius: 24px;
  }
  .card {
    min-height: auto;
  }
  .service-layout,
  .profile-grid,
  .contact-grid,
  .relationship-diagram,
  .photo-proof,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .sticky-menu,
  .profile-card {
    position: static;
  }
  .sticky-menu {
    gap: 10px;
  }

  .photo-proof {
    gap: 12px;
  }
  .photo-stack {
    gap: 12px;
  }
  .photo-main img,
  .photo-stack img {
    aspect-ratio: 4 / 3;
  }
  .photo-caption {
    padding: 13px 14px;
  }

  .profile-photo {
    width: 170px;
    border-radius: 24px;
  }
  .profile-card h2 {
    font-size: 28px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .timeline-year {
    margin-bottom: 4px;
  }
  .profile-detail summary {
    padding: 13px 15px;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 15px 0;
  }
  .footer-inner {
    align-items: flex-start;
  }
  .footer-links,
  .footer-links ul {
    justify-content: flex-start;
  }
}

/* Very small devices */
@media (max-width: 390px) {
  h1 {
    font-size: 32px;
  }
  .orbit {
    transform: scale(.9);
    margin-inline: -10px;
  }
  .orbit-node {
    width: 124px;
  }
  .button {
    font-size: 14px;
  }
}



/* =========================================================
   v5 screenshot-based refinement
   Based on actual PC screenshots:
   - widen service content
   - reduce empty card height
   - improve company page information design
   - stabilize profile timeline spacing
   - refine hero line breaks and density
========================================================= */

/* Overall width and text density */
:root {
  --max: 1240px;
}
body {
  font-size: 16px;
}
.container,
.nav,
.hero-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
}

/* Hero: avoid orphan line break in main vision copy */
.hero-copy {
  max-width: 720px;
}
.hero h1 {
  max-width: 680px;
  letter-spacing: -.055em;
}
.hero-lead {
  max-width: 700px;
}

/* Make dark philosophy panel less heavy */
.brand-philosophy {
  padding-top: clamp(56px, 7vw, 88px);
}
.philosophy-panel {
  padding: clamp(28px, 4vw, 46px);
}
.philosophy-card {
  padding: 19px 21px;
}

/* Cards: reduce excessive empty whitespace visible in regional/company pages */
.card {
  min-height: 0;
  padding: 28px;
}
.cards-3 .card {
  min-height: 250px;
}
.card p,
.case-card p,
.offer-card p,
.summary-card p,
.detail-block p,
.menu-card p,
.target-card p,
.icon-text span {
  font-size: 15px;
  line-height: 1.82;
}
.card h3 {
  font-size: 23px;
}

/* Services page: most important sales page, give content more room */
.service-layout {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
}
.sticky-menu {
  gap: 14px;
}
.target-card,
.menu-card {
  padding: 22px;
}
.detail-stack {
  gap: 26px;
}
.detail-block {
  padding: clamp(34px, 4vw, 48px);
}
.detail-block h2 {
  font-size: clamp(30px, 3.1vw, 42px);
  margin-bottom: 18px;
}
.case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.case-card {
  min-height: 220px;
  padding: 24px;
}
.case-card h3 {
  font-size: 19px;
}
.simple-flow {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 14px;
}
.flow-step {
  min-height: 150px;
  padding: 20px 16px;
}

/* Regional page: photo area is good; lower cards should feel intentional, not empty */
.photo-proof {
  margin-top: 28px;
  margin-bottom: 40px;
}
.relationship-diagram {
  margin-top: 40px;
}
.offer-grid .offer-card {
  min-height: 0;
}
.offer-card {
  padding: 24px;
}
.offer-card h3 {
  font-size: 19px;
}

/* Profile page: fix stat/timeline crowding and improve read rhythm */
.profile-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
}
.profile-card {
  padding: 32px;
}
.profile-photo {
  width: min(100%, 230px);
}
.profile-summary {
  margin-top: 0;
  margin-bottom: 30px;
}
.profile-summary + .timeline {
  margin-top: 28px;
}
.timeline {
  gap: 18px;
}
.timeline-item {
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 26px 28px;
}
.timeline-item h3 {
  font-size: 22px;
  line-height: 1.45;
}
.timeline-item p {
  font-size: 15px;
  line-height: 1.82;
}
.profile-detail {
  margin-top: 16px;
}

/* Company page: better two-column balance */
.company-layout {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: 30px;
  align-items: start;
}
.company-layout .detail-block {
  height: auto;
}
.company-table {
  margin-top: 14px;
}
.company-row {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
}
.company-row dd {
  line-height: 1.7;
}
.business-domain-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.business-domain-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: var(--green-soft);
  border: 1px solid rgba(104,196,48,.20);
}
.business-domain-item .icon-mark {
  width: 48px;
  height: 48px;
}
.business-domain-item strong {
  display: block;
  color: var(--black);
  font-size: 15px;
  margin-bottom: 4px;
}
.business-domain-item span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Page hero: keep high quality but reduce vertical dominance */
.page-hero {
  padding: clamp(68px, 8vw, 104px) 0;
}
.page-hero h1 {
  line-height: 1.16;
}
.page-hero p {
  max-width: 900px;
}

/* News empty state */
.news-feature.is-empty {
  max-width: 760px;
}
.news-feature.is-empty p + p {
  margin-top: 8px;
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 641px) {
  .container,
  .nav,
  .hero-inner,
  .footer-inner {
    width: min(100% - 40px, var(--max));
  }
  .service-layout,
  .company-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .sticky-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .simple-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-card {
    position: static;
    max-width: 720px;
  }
  .profile-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Smartphone */
@media (max-width: 640px) {
  .container,
  .nav,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }
  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    max-width: 100%;
  }
  .hero-lead {
    font-size: 16px;
  }
  .brand-philosophy {
    padding-top: 52px;
  }
  .philosophy-panel {
    border-radius: 28px;
  }
  .cards-3 .card {
    min-height: 0;
  }
  .service-layout,
  .company-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .detail-block {
    padding: 24px;
  }
  .case-grid,
  .simple-flow {
    grid-template-columns: 1fr;
  }
  .flow-step {
    min-height: 0;
  }
  .profile-summary + .timeline {
    margin-top: 22px;
  }
  .timeline-item {
    padding: 22px;
  }
  .timeline-item h3 {
    font-size: 19px;
  }
  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .business-domain-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .business-domain-item .icon-mark {
    width: 42px;
    height: 42px;
  }
}



/* =========================================================
   v6 requested refinements
========================================================= */

/* ① TOP hero copy: keep second line together on desktop */
.hero-title span {
  white-space: nowrap;
}
.hero h1.hero-title {
  max-width: 760px;
}

/* ③ Reduce blank space between hero and Vision/Mission */
.hero {
  min-height: auto;
}
.hero-inner {
  min-height: 560px;
  padding-bottom: 42px;
}
.brand-philosophy {
  padding-top: clamp(28px, 4vw, 52px);
}

/* ④ Support process: readable and less cramped */
.simple-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.flow-step {
  min-height: 0;
  padding: 22px 20px;
}
.flow-step h3 {
  font-size: 20px;
  line-height: 1.4;
}
.flow-step p {
  font-size: 15px;
  line-height: 1.75;
}
.flow-step small {
  font-size: 13px;
}
.flow-step::after {
  display: none;
}

/* ⑤ Unify service text links as CTA buttons */
.service-cta-button {
  margin-top: 22px;
  width: fit-content;
}

/* ⑥ Profile stat labels one line */
.profile-stat {
  min-width: 0;
}
.profile-stat span {
  white-space: nowrap;
  font-size: 12px;
}
.profile-summary {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

/* ⑧ Company inline link */
.inline-link {
  color: var(--green-deep);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ⑨ Company final CTA spacing */
.company-final-cta {
  padding-top: 0;
  background: var(--paper);
}

@media (min-width: 1025px) {
  .simple-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .hero-title span {
    white-space: normal;
  }
  .hero-inner {
    min-height: auto;
    padding-bottom: 52px;
  }
  .brand-philosophy {
    padding-top: 36px;
  }
  .simple-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .profile-stat span {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hero-title span {
    white-space: normal;
  }
  .hero-inner {
    padding-bottom: 42px;
  }
  .brand-philosophy {
    padding-top: 34px;
  }
  .simple-flow {
    grid-template-columns: 1fr;
  }
  .flow-step h3 {
    font-size: 19px;
  }
  .flow-step p {
    font-size: 15px;
  }
  .service-cta-button {
    width: 100%;
  }
  .profile-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-stat span {
    white-space: normal;
  }
}



/* =========================================================
   v7 company/profile content updates
========================================================= */
.profile-summary-3 {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}
@media (max-width: 1024px) and (min-width: 641px) {
  .profile-summary-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .profile-summary-3 {
    grid-template-columns: 1fr;
  }
}



/* =========================================================
   v8 business/design refinements
========================================================= */

/* TOP hero diagram: strengthen visual balance */
@media (min-width: 1025px) {
  .hero-panel,
  .hero-card {
    transform: scale(1.04);
    transform-origin: center right;
  }
  .orbit {
    min-height: 410px;
  }
  .orbit-node {
    width: 150px;
    min-height: 78px;
  }
  .orbit-center {
    width: 142px;
    height: 142px;
  }
}

/* Vision/Mission panel: slightly more compact */
.philosophy-panel {
  padding: clamp(26px, 3.4vw, 42px);
}
.philosophy-panel h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}
.philosophy-card {
  background: rgba(255,255,255,.11);
}

/* Services page: widen main content and make side menu lighter */
@media (min-width: 1025px) {
  .service-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 38px;
  }
}
.target-card h3 {
  font-size: 16px;
}
.target-card p {
  font-size: 13px;
}

/* Common consultation block */
.common-consult-block {
  margin-top: 28px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbfaf6, var(--green-soft));
  border: 1px solid rgba(104,196,48,.22);
}
.common-consult-block h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.common-consult-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.common-consult-item {
  position: relative;
  padding: 13px 14px 13px 38px;
  border-radius: 15px;
  color: #34432f;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(223,231,216,.95);
  font-size: 14px;
  line-height: 1.65;
}
.common-consult-item::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--green-deep);
  font-weight: 900;
}

/* Process number emphasis */
.flow-step small {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--black);
  background: var(--lime);
  margin-bottom: 10px;
  font-size: 12px;
}

/* Regional page */
.field-note {
  margin: 0 0 26px;
  padding: 24px 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-xs);
}
.field-note strong {
  display: block;
  color: var(--green-deep);
  font-size: 14px;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.field-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}
.relationship-diagram + .process-belt {
  margin-top: 20px;
}

/* Regional cards: denser */
.offer-card,
.cards-3 .card {
  min-height: 0;
}
.card::after {
  opacity: .5;
}

/* Profile: slightly smaller photo card and clearer stats */
@media (min-width: 1025px) {
  .profile-grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .profile-photo {
    width: 210px;
  }
  .profile-card {
    padding: 28px;
  }
}
.profile-stat span {
  font-size: 12.5px;
}
.profile-final-cta {
  padding-top: 0;
  background: var(--paper);
}

/* Company note */
.company-note {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--green-soft);
  border: 1px solid rgba(104,196,48,.22);
}
.company-note strong {
  display: block;
  color: var(--black);
  font-size: 15px;
  margin-bottom: 6px;
}
.company-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.78;
  margin: 0;
}

@media (max-width: 1024px) {
  .hero-panel,
  .hero-card {
    transform: none;
  }
  .common-consult-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .common-consult-block,
  .field-note {
    padding: 20px;
  }
  .profile-final-cta {
    padding-top: 0;
  }
}



/* =========================================================
   v9 services process placement refinement
   The process is GovTech-specific, not a generic service block.
========================================================= */

.service-process-block {
  margin-top: 28px;
  padding: 26px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(236,248,229,.92));
  border: 1px solid rgba(104,196,48,.22);
  box-shadow: var(--shadow-xs);
}
.service-process-block h3 {
  color: var(--black);
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 10px;
}
.service-process-block p {
  max-width: 880px;
  margin-bottom: 20px;
}
.service-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.service-process-step {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(223,231,216,.95);
}
.service-process-step small {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--black);
  background: var(--lime);
  font-size: 12px;
  font-weight: 900;
}
.service-process-step strong {
  display: block;
  color: var(--black);
  font-size: 16px;
  line-height: 1.35;
}
.service-process-step span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .service-process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .service-process-block {
    padding: 20px;
  }
  .service-process-grid {
    grid-template-columns: 1fr;
  }
  .service-process-step {
    grid-template-columns: 36px 1fr;
    column-gap: 10px;
  }
  .service-process-step small {
    grid-row: 1 / span 2;
  }
}



/* =========================================================
   v12 profile copy/photo refinements
========================================================= */

.page-hero p br {
  display: block;
}

.nested-achievement {
  display: block;
}
.nested-achievement > strong {
  display: block;
  margin-bottom: 8px;
}
.nested-achievement ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
}
.nested-achievement li + li {
  margin-top: 6px;
}

.profile-photo img {
  object-position: center 38%;
}

@media (max-width: 640px) {
  .page-hero p br {
    display: none;
  }
}



/* =========================================================
   v13 regional initiatives restructuring
========================================================= */

.sfg-site-card .button {
  margin-top: 16px;
  width: fit-content;
}
.photo-proof {
  margin: 26px 0 32px;
}
.photo-proof figure {
  overflow: hidden;
}
.photo-proof figure img {
  display: block;
}
.photo-proof figure::after,
.photo-main::after,
.photo-stack figure::after {
  pointer-events: none;
}
@media (max-width: 640px) {
  .sfg-site-card .button {
    width: 100%;
  }
}



/* =========================================================
   v14 company page refinements
========================================================= */

/* Fix icon text alignment in Business Domains cards */
.business-domain-item .icon-mark,
.icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  line-height: 1;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0;
  writing-mode: horizontal-tb;
  overflow: hidden;
  flex: 0 0 auto;
}
.business-domain-item .icon-mark {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  padding: 0;
  font-size: 15px;
}
.business-domain-item {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
}
.business-domain-item > span:last-child {
  min-width: 0;
}

@media (max-width: 640px) {
  .business-domain-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .business-domain-item .icon-mark {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    font-size: 13px;
  }
}



/* =========================================================
   v15 iPhone / mobile layout stabilization
   Target: iPhone 16 Safari / Chrome width around 393px
========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
li,
dd,
dt,
a,
button,
.card,
.cta-panel,
.detail-block,
.offer-card,
.company-row,
.timeline-item {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 640px) {
  .container,
  .nav-inner,
  .site-header-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 32px, var(--container, 1120px));
    max-width: calc(100vw - 32px);
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .page-hero {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.17;
    letter-spacing: -0.055em;
  }

  .page-hero p {
    font-size: 15px;
    line-height: 1.9;
  }

  .kicker {
    font-size: 12px;
    letter-spacing: .14em;
  }

  h1,
  .hero-title,
  .hero h1 {
    font-size: clamp(40px, 11.2vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.07em;
  }

  h2,
  .section-title,
  .detail-block h2 {
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.055em;
  }

  h3 {
    line-height: 1.35;
  }

  p,
  .card p,
  .detail-block p,
  .offer-card p,
  .case-card p,
  .company-row dd,
  .timeline-item p {
    font-size: 15px;
    line-height: 1.82;
  }

  .card,
  .detail-block,
  .contact-box,
  .profile-card,
  .timeline-item,
  .company-card,
  .origin-card,
  .offer-card,
  .case-card {
    max-width: 100%;
    padding: 24px;
    border-radius: 24px;
  }

  .cards-3,
  .case-grid,
  .offer-grid,
  .service-summary,
  .business-domain-list,
  .profile-summary,
  .photo-proof,
  .photo-stack {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .cards-3 {
    align-items: stretch;
  }

  .cards-3 .card,
  .offer-card,
  .case-card {
    min-height: 0;
  }

  .card::after,
  .origin-card::after {
    width: 120px;
    height: 120px;
    opacity: .36;
  }

  .cta-panel {
    width: 100%;
    max-width: 100%;
    padding: 28px 24px;
    border-radius: 28px;
    overflow: hidden;
  }

  .cta-panel h3 {
    font-size: clamp(26px, 7.6vw, 34px);
    line-height: 1.25;
    letter-spacing: -0.045em;
  }

  .cta-panel p {
    font-size: 15px;
    line-height: 1.88;
  }

  .button,
  .cta-panel .button,
  .button-primary,
  .button-secondary,
  .service-cta-button,
  .sfg-site-card .button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding-left: 18px;
    padding-right: 18px;
    overflow-wrap: anywhere;
  }

  .cta-panel .button {
    min-height: 58px;
  }

  .footer {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .footer-inner {
    display: grid;
    gap: 26px;
    align-items: start;
  }

  .footer .brand img,
  .footer-logo,
  .footer .custom-logo {
    max-width: 170px;
    height: auto;
  }

  .footer-links,
  .footer-nav,
  .footer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
    width: 100%;
  }

  .footer-links a,
  .footer-links .nav-link,
  .footer-nav a,
  .footer-menu a {
    font-size: 15px;
    line-height: 1.5;
    white-space: normal;
  }

  .profile-grid {
    gap: 24px;
  }

  .profile-card {
    padding: 28px 26px;
  }

  .profile-photo,
  .profile-photo img {
    width: 100%;
  }

  .profile-photo {
    max-width: 380px;
    margin-inline: auto;
  }

  .profile-card h2,
  .profile-card .profile-name {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.18;
  }

  .profile-summary-3,
  .profile-summary {
    grid-template-columns: 1fr !important;
  }

  .profile-stat {
    padding: 24px;
  }

  .business-domain-item,
  .icon-list-item,
  .service-icon-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .icon-mark {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
  }

  .service-process-block,
  .common-consult-block,
  .field-note {
    padding: 22px;
    border-radius: 24px;
  }

  .service-process-grid,
  .common-consult-grid {
    grid-template-columns: 1fr !important;
  }

  .service-process-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .service-process-step small {
    grid-row: 1 / span 2;
  }

  .photo-proof {
    display: grid;
    gap: 14px;
  }

  .photo-main,
  .photo-stack figure,
  .photo-proof figure {
    width: 100%;
    max-width: 100%;
  }

  .photo-proof img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .contact-grid {
    gap: 24px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .container,
  .hero-inner,
  .footer-inner {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  .cta-panel {
    padding: 26px 22px;
  }

  .cta-panel h3 {
    font-size: clamp(25px, 7.2vw, 31px);
  }

  .card,
  .detail-block,
  .contact-box,
  .profile-card,
  .timeline-item,
  .origin-card,
  .offer-card,
  .case-card {
    padding: 22px;
  }

  .footer-links,
  .footer-nav,
  .footer-menu {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 374px) {
  .footer-links,
  .footer-nav,
  .footer-menu {
    grid-template-columns: 1fr;
  }

  .page-hero h1,
  h1,
  .hero-title,
  .hero h1 {
    font-size: 34px;
  }

  .cta-panel h3 {
    font-size: 24px;
  }
}



/* =========================================================
   v16 company address / related company layout
========================================================= */

.company-address-list {
  display: grid;
  gap: 10px;
  font-weight: 700;
}

.company-address-list > div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.company-address-list span {
  color: var(--green-deep, #2a6f1f);
  font-weight: 900;
  white-space: nowrap;
}

.company-address-list strong {
  color: var(--black, #050806);
  font-weight: 800;
  line-height: 1.7;
}

.company-related {
  display: grid;
  gap: 4px;
  line-height: 1.65;
}

.company-related-type,
.company-related-name {
  display: block;
  font-weight: 800;
}

.company-related-type {
  color: var(--muted, #657060);
}

.company-related-name {
  color: var(--black, #050806);
}

@media (max-width: 640px) {
  .company-address-list {
    gap: 12px;
  }

  .company-address-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .company-address-list span {
    font-size: 13px;
  }

  .company-address-list strong,
  .company-related-type,
  .company-related-name {
    font-size: 15px;
    line-height: 1.75;
  }
}



/* =========================================================
   v17 services page readability / lightweight redesign
========================================================= */

.services-page-flow {
  display: grid;
  gap: 34px;
}

.service-detail-single {
  width: min(100%, 880px);
  margin-inline: auto;
}

.service-gateway {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-xs, 0 14px 40px rgba(0,0,0,.08));
}

.service-gateway-head {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
}

.service-gateway-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
}

.service-gateway-head p {
  margin: 0;
  color: var(--muted, #657060);
  line-height: 1.9;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gateway-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(223,231,216,.95);
  color: inherit;
  box-shadow: var(--shadow-xs, 0 12px 30px rgba(0,0,0,.06));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gateway-card:hover {
  transform: translateY(-2px);
  border-color: rgba(104,196,48,.45);
  box-shadow: var(--shadow-sm, 0 16px 42px rgba(0,0,0,.08));
}

.gateway-card span {
  color: var(--green, #287a1e);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.gateway-card strong {
  color: var(--black, #050806);
  font-size: 17px;
  line-height: 1.45;
}

.gateway-card p {
  color: var(--muted, #657060);
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
}

.service-focus-block {
  padding: clamp(28px, 4vw, 42px);
}

.support-theme-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.support-theme-card {
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, rgba(245,251,241,.96));
  border: 1px solid rgba(223,231,216,.95);
}

.support-theme-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green, #287a1e);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.support-theme-card h3 {
  color: var(--black, #050806);
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.support-theme-card p {
  color: var(--muted, #657060);
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.process-line {
  margin-top: 30px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(238,248,232,.88);
  border: 1px solid rgba(104,196,48,.2);
}

.process-line h3 {
  margin: 0 0 16px;
  color: var(--black, #050806);
  font-size: 22px;
}

.process-line p {
  margin: 16px 0 0;
}

.process-line-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.process-line-flow span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(223,231,216,.95);
  color: var(--black, #050806);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
}

.process-line-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 10px;
  height: 2px;
  background: rgba(40,122,30,.35);
}

.compact-consult {
  margin-top: 24px;
  padding: 22px;
}

.compact-consult h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.compact-consult .common-consult-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-consult .common-consult-grid > div {
  min-height: 0;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.65;
}

.service-sub-block {
  padding: clamp(26px, 3.5vw, 36px);
}

@media (max-width: 1024px) and (min-width: 641px) {
  .gateway-grid,
  .support-theme-compact,
  .compact-consult .common-consult-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-line-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-line-flow span:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .services-page-flow {
    gap: 24px;
  }

  .service-gateway,
  .service-focus-block,
  .service-sub-block {
    padding: 22px;
  }

  .service-gateway-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gateway-grid,
  .support-theme-compact,
  .compact-consult .common-consult-grid {
    grid-template-columns: 1fr !important;
  }

  .gateway-card {
    min-height: 0;
  }

  .process-line {
    padding: 20px;
  }

  .process-line-flow {
    grid-template-columns: 1fr;
  }

  .process-line-flow span {
    border-radius: 16px;
    min-height: 48px;
  }

  .process-line-flow span:not(:last-child)::after {
    display: none;
  }
}



/* =========================================================
   v18 services page PC width alignment
========================================================= */

/* Align the consultation gateway and service detail blocks with the upper overview cards */
@media (min-width: 1025px) {
  .services-page-flow {
    width: 100%;
  }

  .services-page-flow > .service-gateway,
  .services-page-flow > .detail-stack,
  .service-detail-single {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .service-detail-single {
    display: grid;
    gap: 24px;
  }

  .service-focus-block,
  .service-sub-block {
    width: 100%;
  }

  .support-theme-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .compact-consult .common-consult-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-line-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Keep text comfortable after widening the cards */
@media (min-width: 1025px) {
  .service-focus-block > p,
  .service-sub-block > p {
    max-width: 920px;
  }

  .service-focus-block .cta-panel p,
  .service-sub-block .cta-panel p {
    max-width: 880px;
  }
}



/* =========================================================
   v19 services page balanced width correction
   V18 made the service blocks too wide on desktop.
   This restores a centered, readable block width while keeping
   alignment consistent across the gateway and detail blocks.
========================================================= */

@media (min-width: 1025px) {
  .services-page-flow {
    width: min(100% - 48px, 1120px);
    max-width: 1120px;
    margin-inline: auto;
    display: grid;
    gap: 34px;
  }

  .services-page-flow > .service-gateway,
  .services-page-flow > .detail-stack,
  .service-detail-single {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
  }

  .service-detail-single {
    display: grid;
    gap: 24px;
  }

  .service-focus-block,
  .service-sub-block {
    width: 100%;
  }

  .service-gateway {
    max-width: 960px;
    margin-inline: auto;
  }

  .support-theme-compact,
  .compact-consult .common-consult-grid,
  .gateway-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-line-flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .service-focus-block > p,
  .service-sub-block > p {
    max-width: 820px;
  }

  .service-focus-block .cta-panel p,
  .service-sub-block .cta-panel p {
    max-width: 820px;
  }
}

/* Large desktop: keep a premium centered column instead of full-bleed cards */
@media (min-width: 1440px) {
  .services-page-flow > .service-gateway,
  .services-page-flow > .detail-stack,
  .service-detail-single,
  .service-gateway {
    max-width: 980px;
  }
}



/* =========================================================
   v20 services page exact width / position alignment
   Align gateway and all lower service blocks to the same x-axis.
========================================================= */

@media (min-width: 1025px) {
  body .services-page-flow {
    --service-content-width: 980px;
    width: min(100% - 48px, 1120px);
    max-width: 1120px;
    margin-inline: auto;
    display: grid;
    justify-items: center;
    gap: 34px;
  }

  body .services-page-flow > .service-gateway,
  body .services-page-flow > .detail-stack.service-detail-single,
  body .service-detail-single > .detail-block,
  body .service-detail-single > .service-focus-block,
  body .service-detail-single > .service-sub-block {
    width: min(100%, var(--service-content-width));
    max-width: var(--service-content-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body .services-page-flow > .detail-stack.service-detail-single {
    display: grid;
    justify-items: center;
    gap: 24px;
  }

  body .service-detail-single > .detail-block,
  body .service-detail-single > .service-focus-block,
  body .service-detail-single > .service-sub-block {
    justify-self: center;
  }

  body .service-gateway {
    justify-self: center;
  }
}

@media (min-width: 1440px) {
  body .services-page-flow {
    --service-content-width: 980px;
  }
}

/* Tablet keeps a comfortable centered width without full bleed */
@media (max-width: 1024px) and (min-width: 641px) {
  body .services-page-flow > .service-gateway,
  body .services-page-flow > .detail-stack.service-detail-single,
  body .service-detail-single > .detail-block,
  body .service-detail-single > .service-focus-block,
  body .service-detail-single > .service-sub-block {
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
}



/* =========================================================
   v21 services page unified x-axis alignment
   Align "3つの支援領域" cards with all lower service blocks.
========================================================= */

@media (min-width: 1025px) {
  body .services-align-container {
    --services-unified-width: 980px;
    width: min(100% - 48px, var(--services-unified-width));
    max-width: var(--services-unified-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body .services-align-container .cards-3,
  body .services-align-container .section-head,
  body .services-page-flow > .service-gateway,
  body .services-page-flow > .detail-stack.service-detail-single,
  body .service-detail-single > .detail-block,
  body .service-detail-single > .service-focus-block,
  body .service-detail-single > .service-sub-block {
    width: 100%;
    max-width: var(--services-unified-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  body .services-align-container .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body .services-overview-section .section-head {
    align-items: end;
  }
}

@media (min-width: 1440px) {
  body .services-align-container {
    --services-unified-width: 980px;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  body .services-align-container {
    width: min(100% - 40px, 860px);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }

  body .services-align-container .cards-3,
  body .services-align-container .section-head {
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* =========================================================
   v22 service logic, achievements, contact conversion updates
========================================================= */

/* Top hero: reduce right-edge pressure on desktop while preserving the two-line copy */
@media (min-width: 1025px) {
  .hero-copy {
    max-width: 700px;
  }

  .hero h1.hero-title {
    max-width: 720px;
    font-size: clamp(44px, 5.15vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.065em;
  }
}

/* GovTech service section: replace fixed process with flexible support policy */
.support-style-note,
.achievement-block {
  margin-top: 28px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(104,196,48,.2);
  background: rgba(238,248,232,.88);
}

.support-style-note h3,
.achievement-block h3 {
  margin: 0 0 12px;
  color: var(--black, #050806);
  font-size: 22px;
  line-height: 1.45;
}

.support-style-note p,
.achievement-block p {
  margin: 0;
}

.note-text {
  color: var(--muted, #657060);
  font-size: 13px;
  line-height: 1.75;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.achievement-grid > div {
  position: relative;
  padding: 14px 16px 14px 34px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(223,231,216,.95);
  color: var(--text, #273223);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.achievement-grid > div::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 16px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green, #68c430);
}

.contact-form-lead {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(238,248,232,.9);
  border: 1px solid rgba(104,196,48,.2);
  color: var(--text, #273223);
  font-size: 14px;
  line-height: 1.85;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .support-style-note,
  .achievement-block {
    padding: 20px;
    border-radius: 22px;
  }

  .support-style-note h3,
  .achievement-block h3 {
    font-size: 20px;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .achievement-grid > div {
    font-size: 14px;
  }
}



/* =========================================================
   v23 achievement blocks placement
========================================================= */

.achievement-block {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(238, 248, 232, .78);
  border: 1px solid rgba(104, 196, 48, .22);
}

.achievement-block h3 {
  margin: 0 0 10px;
  color: var(--black, #050806);
  font-size: 22px;
  line-height: 1.35;
}

.achievement-note {
  margin: 0 0 14px;
  color: var(--muted, #657060);
  font-size: 13px;
  line-height: 1.75;
}

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

.achievement-list li {
  position: relative;
  padding: 12px 14px 12px 34px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(223, 231, 216, .95);
  color: var(--black, #050806);
  font-weight: 700;
  line-height: 1.65;
}

.achievement-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--green, #287a1e);
  font-weight: 900;
}

@media (max-width: 640px) {
  .achievement-block {
    padding: 20px;
  }

  .achievement-block h3 {
    font-size: 20px;
  }

  .achievement-list li {
    font-size: 14px;
  }
}



/* =========================================================
   v26 restore v23 services layout / safe GovTech achievements
========================================================= */

.gov-achievement-block {
  width: 100%;
  margin-top: 24px;
  margin-bottom: 24px;
}

.service-focus-block > .gov-achievement-block {
  grid-column: 1 / -1;
}



/* =========================================================
   v27 services GovTech section structural fix
========================================================= */

.service-focus-block .support-theme-compact {
  margin-bottom: 24px;
}

.service-focus-block .support-style-note,
.service-focus-block .gov-achievement-block,
.service-focus-block .common-consult-block,
.service-focus-block .cta-panel {
  width: 100%;
  box-sizing: border-box;
}

.service-focus-block .gov-achievement-block {
  margin-top: 24px;
  margin-bottom: 24px;
}

.support-theme-compact .achievement-block,
.support-theme-card .achievement-block,
.support-theme-card .achievement-list,
.support-theme-card .achievement-note {
  display: initial;
}


/* =========================================================
   v28 readability / conversion refinements
========================================================= */

/* Front page: keep CTA labels readable when they are more specific */
.card .button-text {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  font-weight: 900;
  line-height: 1.45;
}

/* Achievement blocks: grouped and easier to scan */
.achievement-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.achievement-group {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(223,231,216,.95);
}

.achievement-group h4 {
  margin: 0 0 12px;
  color: var(--black);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .02em;
}

.achievement-group .achievement-list {
  gap: 8px;
}

.achievement-group .achievement-list li {
  padding: 10px 12px 10px 30px;
  font-size: 13px;
  line-height: 1.65;
}

.achievement-group .achievement-list li::before {
  left: 12px;
  top: 10px;
}

/* Contact form: improve mobile readability for CF7/native fields */
.contact-box form,
.contact-box .wpcf7-form {
  display: grid;
  gap: 16px;
}

.contact-box label,
.contact-box .wpcf7-form label {
  line-height: 1.55;
}

.contact-box input,
.contact-box select,
.contact-box textarea,
.contact-box .wpcf7-form-control {
  font-size: 16px;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .achievement-groups {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .achievement-block {
    padding: 18px;
    border-radius: 20px;
  }

  .achievement-note {
    font-size: 12px;
    line-height: 1.75;
  }

  .achievement-groups {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .achievement-group {
    padding: 14px;
    border-radius: 16px;
  }

  .achievement-group h4 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .achievement-group .achievement-list li {
    padding: 10px 12px 10px 28px;
    font-size: 13px;
    line-height: 1.7;
  }

  .achievement-group .achievement-list li::before {
    left: 11px;
  }

  .contact-grid {
    gap: 20px;
  }

  .contact-form-lead {
    padding: 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.8;
  }

  .contact-box form,
  .contact-box .wpcf7-form {
    gap: 14px;
  }

  .contact-box input,
  .contact-box select,
  .contact-box textarea,
  .contact-box .wpcf7-form-control {
    min-height: 48px;
    padding: 12px 13px;
    font-size: 16px;
  }

  .contact-box textarea,
  .contact-box textarea.wpcf7-form-control {
    min-height: 180px;
  }

  .wpcf7-list-item {
    display: block;
    margin: 0 0 8px;
  }
}


/* =========================================================
   v29 copy refinements / humanized CTA layout
========================================================= */

.card h3 {
  letter-spacing: -.035em;
}

.card .button-text {
  color: var(--green-deep);
  font-weight: 850;
}

.achievement-group h4 {
  color: var(--green-deep);
}

.achievement-group .achievement-list li {
  background: rgba(255,255,255,.82);
}

@media (max-width: 640px) {
  .card .button-text {
    font-size: 14px;
  }
}


/* =========================================================
   v30 top page mobile layout fixes
   - iPhone width overflow prevention
   - hero headline line control
   - button/card spacing refinements
========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.hero-title-line {
  display: block;
}

@media (max-width: 640px) {
  :root {
    --nav-h: 72px;
  }

  .site-header {
    height: var(--nav-h);
  }

  .nav {
    width: calc(100% - 32px);
    height: var(--nav-h);
    gap: 12px;
  }

  .logo-img {
    width: 154px;
    max-width: 58vw;
  }

  .menu-button {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
  }

  .menu-button::before {
    content: "☰";
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
  }

  .nav-links {
    top: calc(var(--nav-h) + 8px);
    left: 16px;
    right: 16px;
    max-width: calc(100vw - 32px);
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    right: -34vw;
    top: 18vh;
    width: 86vw;
    height: 86vw;
  }

  .hero-inner {
    width: calc(100% - 32px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: 54px 0 46px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1.hero-title,
  h1.hero-title {
    max-width: 100%;
    font-size: clamp(32px, 8.7vw, 36px);
    line-height: 1.18;
    letter-spacing: -.075em;
    margin-bottom: 20px;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero-title-line {
    display: block;
    white-space: nowrap;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 18px;
  }

  .vision-line {
    margin-bottom: 24px;
    padding: 14px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.75;
  }

  .vision-line strong {
    display: block;
    margin: 0 0 4px;
    font-size: 11px;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .button,
  .button {
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    padding: 0 16px;
    font-size: 15px;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    box-sizing: border-box;
  }

  .hero-panel,
  .hero-card {
    width: 100%;
    max-width: 100%;
    transform: none !important;
    transform-origin: center;
  }

  .hero-card {
    padding: 20px;
    border-radius: 28px;
  }

  .hero-card::before {
    inset: 10px;
    border-radius: 22px;
  }

  .orbit {
    min-height: 316px;
  }

  .orbit-node {
    width: 118px;
    min-height: 68px;
    padding: 10px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.45;
  }

  .orbit-center {
    width: 118px;
    height: 118px;
    font-size: 14px;
    box-shadow: inset 0 0 0 10px rgba(104,196,48,.1), var(--shadow-sm);
  }

  .orbit-node.admin {
    top: 4px;
  }

  .orbit-node.it {
    left: 2px;
    bottom: 62px;
  }

  .orbit-node.region {
    right: 2px;
    bottom: 62px;
  }

  .hero-card-caption {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 4px;
  }

  .brand-philosophy {
    padding-top: 28px;
  }

  .philosophy-panel {
    padding: 26px 22px;
    border-radius: 28px;
  }

  .philosophy-panel h2 {
    font-size: clamp(28px, 7.2vw, 32px);
    line-height: 1.24;
    letter-spacing: -.055em;
  }

  .philosophy-copy {
    gap: 14px;
  }

  .philosophy-card {
    padding: 17px 18px;
  }

  .philosophy-card p {
    font-size: 14px;
    line-height: 1.8;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    gap: 20px;
    margin-bottom: 26px;
  }

  .section-head h2 {
    font-size: clamp(29px, 7.6vw, 34px);
    line-height: 1.28;
    letter-spacing: -.055em;
  }

  .section-head p {
    font-size: 15px;
    line-height: 1.85;
  }

  .cards-3 {
    gap: 18px;
  }

  .cards-3 .card,
  .card {
    width: 100%;
    min-height: auto;
    padding: 24px 22px;
    border-radius: 24px;
  }

  .card h3 {
    font-size: clamp(23px, 6.2vw, 28px);
    line-height: 1.34;
    letter-spacing: -.045em;
  }

  .card p {
    font-size: 15px;
    line-height: 1.82;
  }

  .card .button-text,
  .button-text {
    display: inline-flex;
    max-width: 100%;
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.45;
    white-space: normal;
  }

  .footer {
    padding: 38px 0;
  }

  .footer-inner {
    width: calc(100% - 32px);
    gap: 24px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (max-width: 374px) {
  .hero h1.hero-title,
  h1.hero-title {
    font-size: 30px;
    letter-spacing: -.08em;
  }

  .logo-img {
    width: 140px;
  }

  .orbit-node {
    width: 110px;
    font-size: 12px;
  }

  .orbit-center {
    width: 108px;
    height: 108px;
    font-size: 13px;
  }
}


/* =========================================================
   v31 top page desktop balance refinements
========================================================= */

.brand-philosophy .philosophy-panel {
  padding-top: clamp(46px, 4.6vw, 64px);
  padding-bottom: clamp(46px, 4.6vw, 64px);
}

.brand-philosophy .philosophy-grid {
  align-items: center;
}

.brand-philosophy .philosophy-grid > div:first-child {
  align-self: center;
  padding-top: 6px;
}

.home-services .section-head {
  align-items: center;
}

.home-services .section-head h2 {
  max-width: 640px;
  font-size: clamp(32px, 3.15vw, 44px);
  line-height: 1.24;
  letter-spacing: -.052em;
}

@media (min-width: 1025px) {
  .home-services .section-head {
    grid-template-columns: minmax(500px, 1.08fr) minmax(360px, .92fr);
    gap: clamp(36px, 5vw, 70px);
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .brand-philosophy .philosophy-panel {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .home-services .section-head h2 {
    max-width: 720px;
    font-size: clamp(31px, 4.5vw, 40px);
  }
}

@media (max-width: 640px) {
  .brand-philosophy .philosophy-panel {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .brand-philosophy .philosophy-grid > div:first-child {
    padding-top: 0;
  }

  .home-services .section-head h2 {
    max-width: 100%;
    font-size: clamp(27px, 7.1vw, 32px);
    line-height: 1.3;
  }
}


/* =========================================================
   v32 productized service package layout
========================================================= */

.service-package-block {
  margin-top: 28px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid rgba(104,196,48,.22);
  background: linear-gradient(180deg, rgba(238,248,232,.92), rgba(255,255,255,.72));
}

.package-head {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.package-head h3 {
  margin: 0;
  color: var(--black, #050806);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.package-head p {
  margin: 0;
  color: var(--muted, #657060);
  font-size: 14px;
  line-height: 1.8;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.package-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(223,231,216,.96);
  box-shadow: var(--shadow-sm, 0 10px 28px rgba(0,0,0,.08));
}

.package-card-wide {
  grid-column: 1 / -1;
}

.package-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--lime, #dfff17);
  color: var(--black, #050806);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.package-card h4 {
  margin: 0 0 8px;
  color: var(--black, #050806);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.package-card p {
  margin: 0 0 12px;
  color: var(--text, #2f3a2f);
  font-size: 14px;
  line-height: 1.75;
}

.package-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted, #657060);
  font-size: 13px;
  line-height: 1.65;
}

.package-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-deep, #28751f);
  font-weight: 900;
}

.home-package-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(238,248,232,.9);
  border: 1px solid rgba(104,196,48,.22);
}

.home-package-link span {
  display: block;
  margin-bottom: 6px;
  color: var(--green-deep, #28751f);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-package-link p {
  margin: 0;
  color: var(--text, #2f3a2f);
  font-size: 14px;
  line-height: 1.75;
}

.home-package-link .button {
  flex: 0 0 auto;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .package-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .service-package-block {
    padding: 18px;
    border-radius: 20px;
  }

  .package-head {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .package-head h3 {
    font-size: 21px;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card,
  .package-card-wide {
    grid-column: auto;
    padding: 17px;
    border-radius: 18px;
  }

  .package-card h4 {
    font-size: 17px;
  }

  .home-package-link {
    display: grid;
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 20px;
  }

  .home-package-link .button {
    width: 100%;
  }
}


/* =========================================================
   v34 company page typography / line-break refinements
========================================================= */

.pc-only {
  display: inline;
}

.company-value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.company-value-grid .card {
  padding: 30px 28px;
}

.company-value-grid .card h3 {
  font-size: clamp(19px, 1.35vw, 21px);
  line-height: 1.42;
  letter-spacing: -.04em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.company-value-grid .card p {
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: .005em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.company-overview-grid {
  align-items: stretch;
}

.company-overview-grid .detail-block {
  min-width: 0;
}

.company-overview-grid .business-domain-item,
.business-domain-item {
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
}

.company-overview-grid .business-domain-item strong,
.business-domain-item strong {
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.company-table dd {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.75;
}

.company-table .company-address-lines,
.company-address-lines {
  display: grid;
  gap: 6px;
}

@media (min-width: 1025px) {
  .company-value-grid .card {
    min-height: 205px;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .company-value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .company-value-grid .card {
    padding: 26px 22px;
  }

  .company-value-grid .card h3 {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .pc-only {
    display: none;
  }

  .company-value-grid {
    grid-template-columns: 1fr;
  }

  .company-value-grid .card h3 {
    font-size: 20px;
  }
}


/* =========================================================
   v35 mission card line-break refinement
========================================================= */

/* The mission card heading was breaking unnaturally after 「つなぎ、」.
   Use two controlled inline blocks on desktop and allow normal wrapping on mobile. */
.company-value-grid .card h3 .mission-title-main,
.company-value-grid .card h3 .mission-title-sub {
  display: block;
}

.company-value-grid .card h3 .mission-title-main {
  white-space: nowrap;
  letter-spacing: -.055em;
}

.company-value-grid .card h3 .mission-title-sub {
  letter-spacing: -.055em;
}

/* Give the mission card a little more breathing room without changing the whole page layout. */
.company-value-grid .card:nth-child(3) h3 {
  font-size: clamp(18px, 1.22vw, 20px);
  line-height: 1.44;
}

@media (min-width: 1025px) {
  .company-value-grid .card:nth-child(3) {
    padding-left: 26px;
    padding-right: 26px;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .company-value-grid .card:nth-child(3) h3 {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .company-value-grid .card h3 .mission-title-main,
  .company-value-grid .card h3 .mission-title-sub {
    display: inline;
    white-space: normal;
    letter-spacing: -.045em;
  }

  .company-value-grid .card h3 .mission-title-main::after {
    content: "";
  }

  .company-value-grid .card:nth-child(3) h3 {
    font-size: 20px;
    line-height: 1.45;
  }
}


/* =========================================================
   v36 company mission heading final line-break fix
========================================================= */

/* v34/v35 targeted .card, but this section uses .origin-card.
   Apply the typography directly to the actual company value cards. */
.company-value-grid .origin-card {
  min-width: 0;
  padding: 34px 30px;
}

.company-value-grid .origin-card h3 {
  font-size: clamp(18px, 1.24vw, 20px);
  line-height: 1.45;
  letter-spacing: -.045em;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.company-value-grid .origin-card p {
  font-size: 14px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.company-value-grid .origin-card .mission-heading {
  font-size: clamp(17px, 1.12vw, 19px);
  line-height: 1.48;
  letter-spacing: -.055em;
}

.company-value-grid .origin-card .mission-heading span {
  display: block;
  white-space: nowrap;
}

@media (min-width: 1025px) {
  .company-value-grid {
    gap: 20px;
  }

  .company-value-grid .origin-card {
    min-height: 216px;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .company-value-grid .origin-card {
    padding: 28px 24px;
  }

  .company-value-grid .origin-card h3 {
    font-size: 18px;
  }

  .company-value-grid .origin-card .mission-heading {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .company-value-grid .origin-card {
    padding: 26px 22px;
  }

  .company-value-grid .origin-card h3,
  .company-value-grid .origin-card .mission-heading {
    font-size: 20px;
    line-height: 1.45;
  }

  .company-value-grid .origin-card .mission-heading span {
    display: inline;
    white-space: normal;
  }
}


/* =========================================================
   v37 services page readability / progressive disclosure
========================================================= */

/* 3 service domains: large visual navigation */
.services-overview-section .service-summary {
  gap: 22px;
}

.visual-summary-card {
  min-height: 330px;
  padding: 32px 30px;
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.visual-summary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(104,196,48,.42);
  box-shadow: 0 22px 54px rgba(5,7,5,.12);
}

.summary-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: 20px;
  color: var(--white);
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: var(--shadow-xs);
}

.summary-icon.dark { background: var(--black); }
.summary-icon.green { background: var(--green-deep); }
.summary-icon.lime { color: var(--black); background: var(--lime); }

.visual-summary-card .button-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 900;
}

.visual-summary-card .button-text span::after {
  content: " →";
}

/* Consultation gateway: make it work as a visual entry point. */
.service-gateway {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-sm);
}

.gateway-grid {
  align-items: stretch;
}

.visual-gateway-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-areas:
    "icon number"
    "icon title"
    "icon text"
    "icon cta";
  gap: 3px 14px;
  min-height: 154px;
  padding: 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216,231,45,.16), transparent 42%),
    rgba(255,255,255,.92);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.visual-gateway-card:hover {
  transform: translateY(-3px);
  border-color: rgba(104,196,48,.42);
  box-shadow: var(--shadow-sm);
}

.gateway-icon {
  grid-area: icon;
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  color: var(--white);
  font-weight: 900;
  align-self: start;
}

.gateway-icon.dark { background: var(--black); }
.gateway-icon.green { background: var(--green-deep); }
.gateway-icon.lime { color: var(--black); background: var(--lime); }

.visual-gateway-card .gateway-number {
  grid-area: number;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.visual-gateway-card strong {
  grid-area: title;
  font-size: 16px;
  line-height: 1.45;
}

.visual-gateway-card p {
  grid-area: text;
  margin-top: 4px;
}

.visual-gateway-card em {
  grid-area: cta;
  margin-top: 8px;
  color: var(--green-deep);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

/* Selected Experience: accordion */
.achievement-accordion-block {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(239,248,233,.92), rgba(255,255,255,.82));
  border: 1px solid rgba(104,196,48,.22);
}

.achievement-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.achievement-head h3 {
  margin-bottom: 6px;
}

.accordion-hint {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.experience-accordion {
  display: grid;
  gap: 10px;
}

.experience-details {
  border-radius: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(223,231,216,.95);
  overflow: hidden;
}

.experience-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: var(--black);
  font-weight: 900;
  line-height: 1.5;
}

.experience-details summary::-webkit-details-marker {
  display: none;
}

.experience-details summary::after {
  content: "+";
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(104,196,48,.14);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  transition: transform .18s ease;
}

.experience-details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.experience-details summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.experience-details .achievement-list {
  margin: 0;
  padding: 0 18px 18px;
}

.experience-details .achievement-list li {
  background: rgba(239,248,233,.78);
}

/* Floating anchor navigation on desktop */
.service-floating-nav {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(223,231,216,.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.service-floating-nav a {
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.service-floating-nav a span {
  display: block;
  color: var(--green-deep);
  font-size: 10px;
  letter-spacing: .08em;
}

.service-floating-nav a:hover,
.service-floating-nav a.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--black), var(--green-deep));
  transform: translateX(-2px);
}

.service-floating-nav a:hover span,
.service-floating-nav a.is-active span {
  color: var(--lime);
}

@media (max-width: 1280px) {
  .service-floating-nav {
    right: 10px;
  }

  .service-floating-nav a {
    min-width: 66px;
    font-size: 11px;
    padding-inline: 9px;
  }
}

@media (max-width: 1180px) {
  .service-floating-nav {
    display: none;
  }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .visual-summary-card {
    min-height: 280px;
  }

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

  .visual-gateway-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "number"
      "title"
      "text"
      "cta";
  }
}

@media (max-width: 640px) {
  .visual-summary-card {
    min-height: auto;
    padding: 24px;
  }

  .summary-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 18px;
  }

  .service-gateway {
    padding: 20px;
    border-radius: 24px;
  }

  .visual-gateway-card {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: auto;
    padding: 17px;
  }

  .gateway-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .achievement-accordion-block {
    padding: 18px;
  }

  .achievement-head {
    grid-template-columns: 1fr;
  }

  .accordion-hint {
    width: fit-content;
  }

  .experience-details summary {
    align-items: flex-start;
    padding: 15px;
  }

  .experience-details summary small {
    display: none;
  }

  .experience-details .achievement-list {
    padding: 0 15px 15px;
  }
}


/* =========================================================
   v39 regional industry achievement block
========================================================= */

.regional-achievement-block {
  margin-top: 26px;
  background: linear-gradient(180deg, rgba(238,248,232,.92), rgba(255,255,255,.82));
}

.regional-achievement-block .experience-details summary span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--lime, #dfff17);
  box-shadow: 0 0 0 3px rgba(216,231,45,.18);
}

@media (max-width: 640px) {
  .regional-achievement-block {
    margin-top: 22px;
  }
}


/* =========================================================
   v40 site-wide responsive stabilization
   Smartphone / tablet / desktop layout guardrails
========================================================= */

/* Box sizing is required for full-width mobile buttons and form controls.
   Without this, width:100% + padding can overflow on narrow screens. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-width: 320px;
}

a,
button,
input,
select,
textarea,
summary,
.card,
.summary-card,
.gateway-card,
.origin-card,
.detail-block,
.contact-box,
.profile-card,
.cta-panel,
.package-card,
.experience-details,
.business-domain-item,
.icon-item {
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

/* Prevent long labels, English names, URLs and CTAs from forcing horizontal scroll. */
h1,
h2,
h3,
h4,
p,
li,
dt,
dd,
strong,
span,
small,
.button,
.button-text,
.nav-links a,
.footer-links a,
.cta-panel,
.company-table,
.experience-details summary,
.visual-gateway-card,
.package-card,
.contact-box,
.detail-block {
  overflow-wrap: anywhere;
}

.button,
button,
input[type="submit"],
input[type="button"] {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.button {
  gap: 8px;
  line-height: 1.35;
  padding-block: 12px;
}

/* Header: avoid cramped desktop/tablet navigation and mobile menu label wrapping. */
.menu-button {
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-links a {
  text-align: center;
}

/* Cards and panels should never exceed viewport width. */
.hero-card,
.detail-block,
.contact-box,
.profile-card,
.origin-card,
.summary-card,
.card,
.cta-panel,
.package-card,
.service-gateway,
.achievement-block,
.experience-details,
.relationship-note,
.news-card {
  max-width: 100%;
}

/* Forms */
input,
select,
textarea {
  width: 100%;
  max-width: 100%;
}

/* Shared responsive content rhythm */
.section,
.page-hero,
.hero {
  max-width: 100%;
}

@media (max-width: 1180px) and (min-width: 641px) {
  .container,
  .nav,
  .hero-inner,
  .footer-inner {
    width: min(100% - 40px, var(--max));
  }

  .nav {
    gap: 18px;
  }

  .nav-links {
    font-size: 13px;
  }

  .nav-links a,
  .nav-links .menu-item a {
    padding-inline: 10px;
  }

  .nav-links .menu-item:last-child > a,
  .nav-cta {
    padding-inline: 14px !important;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    gap: 34px;
  }

  .page-hero {
    padding-block: clamp(86px, 10vw, 132px);
  }

  .contact-grid,
  .profile-layout,
  .company-layout,
  .regional-lead-grid,
  .section-head,
  .hero-inner {
    min-width: 0;
  }
}

@media (max-width: 900px) and (min-width: 641px) {
  .nav-links {
    gap: 2px;
    font-size: 12px;
  }

  .nav-links a,
  .nav-links .menu-item a {
    padding-inline: 8px;
  }

  .logo-img {
    width: 158px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 74px;
  }

  .hero-card {
    max-width: 560px;
    margin-inline: auto;
  }

  .cards-3,
  .service-summary,
  .case-grid,
  .offer-grid,
  .package-grid,
  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid,
  .profile-layout,
  .company-layout,
  .relationship-diagram,
  .regional-lead-grid {
    grid-template-columns: 1fr;
  }

  .sticky-menu,
  .profile-card {
    position: static;
  }
}

/* Smartphone layout */
@media (max-width: 640px) {
  :root {
    --nav-h: 72px;
  }

  html,
  body {
    overflow-x: clip;
  }

  body {
    font-size: 15px;
    line-height: 1.82;
  }

  .container,
  .nav,
  .hero-inner,
  .footer-inner {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    height: var(--nav-h);
  }

  .nav {
    height: var(--nav-h);
    gap: 12px;
  }

  .logo-img {
    width: clamp(138px, 40vw, 164px);
  }

  .menu-button {
    display: inline-flex;
    width: auto;
    min-width: 64px;
    height: 44px;
    padding-inline: 16px;
    font-size: 13px;
    line-height: 1;
    border-radius: 999px;
  }

  .nav-links {
    left: 16px;
    right: 16px;
    top: calc(var(--nav-h) + 8px);
    width: auto;
    max-width: calc(100vw - 32px);
    overflow: hidden;
  }

  .nav-links ul {
    width: 100%;
  }

  .nav-links a,
  .nav-links .menu-item a {
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    white-space: normal;
  }

  h1 {
    font-size: clamp(34px, 10.2vw, 46px);
    line-height: 1.13;
    letter-spacing: -.062em;
    margin-bottom: 22px;
  }

  h2 {
    font-size: clamp(26px, 7.4vw, 34px);
    line-height: 1.25;
    letter-spacing: -.055em;
  }

  h3 {
    font-size: clamp(19px, 5.8vw, 24px);
    line-height: 1.35;
  }

  .lead,
  .page-hero p,
  .section-head p,
  .detail-block p,
  .cta-panel p {
    font-size: 15px;
    line-height: 1.9;
  }

  .page-hero {
    padding: 72px 0 76px;
  }

  .page-hero h1 {
    max-width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 52px 0 58px;
  }

  .hero-actions,
  .cta-actions,
  .form-actions,
  .home-package-link,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
  }

  .button,
  .hero-actions .button,
  .cta-actions .button,
  .form-actions .button,
  .contact-form .button,
  .home-package-link .button {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
  }

  .button-text {
    display: inline-flex;
    max-width: 100%;
    line-height: 1.5;
    white-space: normal;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .cards-3,
  .service-summary,
  .case-grid,
  .offer-grid,
  .check-grid,
  .simple-flow,
  .process-belt,
  .package-grid,
  .gateway-grid,
  .contact-grid,
  .profile-layout,
  .company-layout,
  .company-value-grid,
  .regional-lead-grid,
  .relationship-diagram,
  .photo-grid,
  .field-cards {
    grid-template-columns: 1fr !important;
  }

  .card,
  .summary-card,
  .case-card,
  .detail-block,
  .contact-box,
  .profile-card,
  .origin-card,
  .cta-panel,
  .service-gateway,
  .achievement-block,
  .package-card,
  .visual-gateway-card {
    padding: 22px;
    border-radius: 24px;
  }

  .summary-card,
  .visual-summary-card {
    min-height: auto;
  }

  .visual-gateway-card {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .gateway-icon,
  .summary-icon,
  .icon-mark {
    flex: 0 0 auto;
  }

  .cta-panel h3 {
    font-size: clamp(23px, 7vw, 30px);
    line-height: 1.28;
  }

  .cta-panel .button,
  .cta-panel a.button {
    width: 100%;
  }

  .contact-form,
  .contact-form form {
    min-width: 0;
  }

  .contact-form label,
  .contact-form p {
    min-width: 0;
  }

  .company-table,
  .company-table dl,
  .company-table div,
  .company-row {
    min-width: 0;
  }

  .company-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .company-table dd {
    font-size: 14px;
    line-height: 1.85;
  }

  .profile-card img,
  .founder-photo,
  .profile-photo {
    max-width: 100%;
    height: auto;
  }

  .profile-stats,
  .stat-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .timeline-item,
  .career-item,
  .career-card {
    grid-template-columns: 1fr !important;
  }

  .experience-details summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: start;
    gap: 12px;
  }

  .experience-details summary::after {
    grid-column: 2;
    grid-row: 1;
  }

  .experience-details summary span {
    min-width: 0;
  }

  .achievement-list li,
  .package-card li,
  .check-grid li,
  .business-domain-item,
  .icon-item {
    overflow-wrap: anywhere;
  }

  .footer {
    overflow: hidden;
  }

  .footer-inner {
    text-align: left;
  }

  .footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    justify-content: stretch;
  }

  .footer-links a {
    display: block;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .container,
  .nav,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .hero-copy h1,
  .hero h1 {
    font-size: clamp(32px, 9.4vw, 40px);
  }

  .page-hero h1 {
    font-size: clamp(31px, 9vw, 39px);
  }

  .section-title,
  .section-head h2,
  h2 {
    font-size: clamp(25px, 7.2vw, 32px);
  }

  .card,
  .summary-card,
  .case-card,
  .detail-block,
  .contact-box,
  .profile-card,
  .origin-card,
  .cta-panel,
  .service-gateway,
  .achievement-block,
  .package-card,
  .visual-gateway-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-card {
    padding: 18px;
    border-radius: 24px;
  }

  .footer-links ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .container,
  .nav,
  .hero-inner,
  .footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .logo-img {
    width: 136px;
  }

  .menu-button {
    min-width: 58px;
    padding-inline: 12px;
    font-size: 12px;
  }

  h1,
  .hero-copy h1,
  .page-hero h1 {
    font-size: 31px;
    letter-spacing: -.055em;
  }

  h2,
  .section-head h2 {
    font-size: 25px;
  }

  .button {
    font-size: 14px;
    padding-inline: 14px;
  }

  .card,
  .summary-card,
  .case-card,
  .detail-block,
  .contact-box,
  .profile-card,
  .origin-card,
  .cta-panel,
  .service-gateway,
  .achievement-block,
  .package-card,
  .visual-gateway-card {
    padding: 18px;
  }
}
