/* FDP mobile layout fixes 2026-10-08. Loaded after existing styles. */
@media (max-width: 980px) {
  .container, .header-inner, .footer-inner, .trust-inner { min-width:0; }
  .hero > *, .section-head > *, .contact-box > *, .consultation-form-section > *,
  .insight-hero-grid > *, .representative-card > *, .leader-profile > *,
  .consultation-box > *, .detail-cta > * { min-width:0; }
  .hero-visual { height:auto; }
  .insight-cta > *, .consult-output > * { min-width:0; }
}
@media (max-width:640px) {
  .container {padding-inline:18px;}
  .page-hero h1, .hero h1, .contact-copy h2, .section-head h2 {overflow-wrap:anywhere;}
  .nowrap, .output-section-head h2 span {white-space:normal;}
  .page-hero h1 {font-size:clamp(28px,8vw,40px);}
  .page-hero p {font-size:16px;}
  .hero {gap:26px;}
  /* Vision / Architecture / Execution must size to its content. */
  .hero-visual {min-height:0;height:auto;overflow:visible;}
  .hero-visual::before,.hero-visual::after {pointer-events:none;}
  .vision-map {position:relative;inset:auto;padding:24px 16px;justify-content:flex-start;}
  .vision-node {margin:7px 0;padding:16px;min-width:0;overflow-wrap:anywhere;}
  .vision-node:nth-child(2),.vision-node:nth-child(3) {margin-left:0;}
  .vision-node strong {font-size:clamp(18px,5.5vw,23px);}
  .hero-visual::after {inset:12px;}
  .actions, .representative-links, .insight-jump {max-width:100%;}
  .actions .button, .representative-links .button {max-width:100%;white-space:normal;text-align:center;padding:12px 16px;}
  .contact-copy, .contact-info,.consultation-form-intro,.consultation-form {padding:26px 20px;min-width:0;}
  .contact-copy h2 {font-size:clamp(25px,7vw,34px);}
  .contact-box, .consultation-form-section {min-width:0;}
  .contact-row, .contact-row a, .contact-info, .contact-copy {overflow-wrap:anywhere;}
  .consult-flow article, .consultation-box, .card,.impact,.insight-card-grid>a {min-width:0;}
  .consult-output {padding:20px;gap:12px;}
  .consult-output b {width:100%;}
  .consult-output span {max-width:100%;}
  .insight-article, .insight-cta {min-width:0;}
  .insight-cta .button {max-width:100%;white-space:normal;text-align:center;}
  .detail-cta {grid-template-columns:minmax(0,1fr);}
  .method-depth>summary {min-width:0;}
  .method-depth>summary b {overflow-wrap:anywhere;}
  .form-field input,.form-field select,.form-field textarea {max-width:100%;}
  .form-preview dt,.form-preview dd {min-width:0;}
  /* Treat diagrams as information, not cropped decorative photos. */
  .ponchi-node.has-visual {padding-top:24px;min-height:0;overflow:visible;}
  .ponchi-visual {position:relative;inset:auto;display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:-24px 0 20px;}
}
@media(max-width:380px) {
  .container {padding-inline:15px;}
  .header-inner {padding-inline:12px;gap:8px;}
  .brand-copy strong {font-size:11px;letter-spacing:0;}
  .brand {gap:8px;}
  .vision-map {padding:16px 12px;}
  .hero h1 {font-size:clamp(33px,10vw,44px);}
  .trust-inner {gap:8px;padding-inline:14px;}
  .trust-item {padding-left:10px;}
}

/* v2: iPhone layout refinements from 11 screenshots; preserve desktop layout. */
@media (max-width: 640px) {
  /* Keep card CTAs in document flow, not on top of body text. */
  .cards > a.card.detail-link {
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 44px;
    align-content:start;
    column-gap:12px;
    row-gap:0;
    min-height:0 !important;
    height:auto !important;
    padding:24px 22px !important;
  }
  .cards > a.card.detail-link > :not(.more):not(.arrow) {grid-column:1/-1; min-width:0;}
  .cards > a.card.detail-link h3 {margin:18px 0 14px;overflow-wrap:anywhere;font-size:clamp(19px,5.4vw,23px);line-height:1.45;}
  .cards > a.card.detail-link p {margin:0 0 20px !important;line-height:1.75;overflow-wrap:anywhere;}
  .cards > a.card.detail-link .more {
    position:static !important;inset:auto !important;grid-column:1;align-self:center;
    display:block;min-width:0;overflow-wrap:anywhere;font-size:15px;line-height:1.5;
    margin:0 !important;letter-spacing:0;
  }
  .cards > a.card.detail-link .arrow {
    position:static !important;inset:auto !important;grid-column:2;
    width:42px;height:42px;display:grid;place-items:center;align-self:center;
    margin:0 !important;transform:none !important;
  }
  /* Case links: put metadata on its own line and arrow below content. */
  .cards > a.case-card {height:auto !important;min-width:0;}
  .cards > a.case-card .case-card-body {padding:22px 22px 12px !important;min-width:0;}
  .cards > a.case-card .case-card-body .case-scope {
    position:static !important;display:block !important;max-width:100%;
    padding:12px 0 8px !important;margin-top:15px;line-height:1.65;
    white-space:normal !important;overflow-wrap:anywhere;font-size:13px;
  }
  .cards > a.case-card > .arrow {
    position:static !important;display:grid !important;place-items:center;
    margin:0 22px 20px auto !important;width:42px;height:42px;
  }
  /* Remove distracting decorative grid and circles behind the three steps. */
  .hero-visual {background:#f2f6fa !important;overflow:hidden !important;}
  .hero-visual::before,.hero-visual::after {content:none !important;display:none !important;}
  .vision-map {position:relative !important;z-index:1;inset:auto !important;}
  .vision-node {max-width:100%;box-sizing:border-box;}
  .vision-node strong {overflow-wrap:normal;word-break:normal;}
  /* Long display headings must wrap naturally; avoid isolated last glyph. */
  .section-head h2 {font-size:clamp(27px,7.5vw,34px) !important;letter-spacing:-.045em;line-height:1.35;overflow-wrap:normal;word-break:normal;}
  .section-head h2 .heading-line {display:block;white-space:normal;}
  .page-hero h1 {line-height:1.3;}
  /* Highlight/proof tiles must have enough width for Japanese headings. */
  .trust-inner {grid-template-columns:1fr !important;gap:0 !important;}
  .trust-item {min-width:0;padding:16px 12px 16px 16px !important;border-left:3px solid rgba(255,255,255,.28);border-bottom:1px solid rgba(255,255,255,.18);}
  .trust-item b {font-size:21px !important;line-height:1.4;overflow-wrap:anywhere;}
  .trust-item span {display:block;line-height:1.65;font-size:13px;overflow-wrap:anywhere;}
  .impact-grid,.proof-grid {grid-template-columns:minmax(0,1fr) !important;}
  .impact,.proof-item {min-width:0;overflow-wrap:anywhere;}
}
@media (max-width: 380px) {
  .cards > a.card.detail-link {padding:22px 17px !important;column-gap:8px;}
  .cards > a.card.detail-link .more {font-size:14px;}
  .section-head h2 {font-size:27px !important;}
}

/* V3: clean geometric decoration across desktop, tablet and mobile. */
/* Vision / Architecture / Execution: keep the cards, remove background grid and circles. */
.hero-visual { background:#f2f6fa !important; }
.hero-visual::before, .hero-visual::after { content:none !important; display:none !important; background:none !important; }
/* Purpose, Mission, Vision, Promises and Beliefs share this section on all screen sizes. */
.purpose-section { background:#fff !important; background-image:none !important; background-size:auto !important; }
/* Remove the circular glow while preserving a plain navy Purpose heading panel. */
.purpose-home { background:#092a52 !important; background-image:none !important; }
