/* PLAYSOHKO v.test section layouts and mobile navigation */
.entry-content .greeting-layout {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin: 34px auto 0;
}
.greeting-layout > * { min-width: 0; }
.greeting-photo { margin: 0; }
.greeting-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.greeting-caption {
  margin: 12px 0 0;
  text-align: center;
  line-height: 1.65;
}
.greeting-caption strong { font-size: 1.15em; }
.greeting-copy { font-size: 1.05rem; line-height: 1.9; }
.greeting-copy p { margin: 0 0 1.15em; }
.greeting-copy p:last-child { margin-bottom: 0; }
.greeting-copy .greeting-lead {
  margin-bottom: 1.1em;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.65;
}

/* Representative greeting: portrait and opening text share one aligned row. */
.entry-content #greeting + .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 42px);
  align-items: start;
  margin: 34px 0 0;
}
.entry-content #greeting + .wp-block-columns > .wp-block-column { min-width: 0; }
.entry-content #greeting + .wp-block-columns figure { margin: 0; }
.entry-content #greeting + .wp-block-columns img { display: block; width: 100%; height: auto; }
.entry-content #greeting + .wp-block-columns > .wp-block-column:first-child p {
  margin: 8px 0 0;
  text-align: right;
}
.entry-content #greeting + .wp-block-columns > .wp-block-column:last-child p {
  margin: 0;
  line-height: 1.9 !important;
}
.entry-content #greeting + .wp-block-columns + p {
  margin: 32px 0 0;
  line-height: 1.9 !important;
}

.entry-content .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: stretch;
  margin: 28px auto 0;
}
.service-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .06);
}
.service-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.service-card h6 {
  margin: 17px 18px 8px;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.5;
}
.service-card p {
  margin: 0 18px 20px;
  line-height: 1.75;
}

.future-panel {
  box-sizing: border-box;
  width: auto;
  margin: 24px calc(50% - 50vw) 0;
  padding: clamp(12px, 2.5vw, 30px);
  background: #f4b183;
}
.future-panel img {
  display: block;
  width: min(100%, 1280px);
  height: auto;
  margin-inline: auto;
}

.company-table-wrap { width: 100%; margin: 20px auto 0; }
.company-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 0 !important;
}
.company-table td {
  padding: 14px 18px;
  border: 0 !important;
  border-bottom: 1px solid #dedede !important;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.company-table td:first-child {
  width: 23%;
  font-weight: 700;
  white-space: nowrap;
}

#contact.contact {
  color: #333;
  background: #fff;
  --line: rgba(23, 36, 46, .16);
}
#contact .contact-orb { display: none; }
#contact .section-label { color: #b9571b; }
#contact h2 { color: #333; }
#contact .contact-intro { color: #65727c; }

.site-footer { margin-top: 36px; background: #fff; text-align: center; }
.site-footer-image {
  display: block;
  width: 100%;
  height: clamp(120px, 18vw, 240px);
  object-fit: cover;
  object-position: center 48%;
}
.site-footer-inner { padding: 28px 16px 22px; }
.site-footer-logo {
  display: block;
  width: min(320px, 72%);
  height: auto;
  margin: 0 auto 16px;
}
.site-footer .site-footer-copy {
  display: block;
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.6;
}

.menu-toggle { display: none; }
@media (max-width: 900px) {
  .entry-content #greeting + .wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .entry-content .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.has-mobile-menu .preview-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
  }
  body.has-mobile-menu .preview-logo { display: block; padding: 0; }
  body.has-mobile-menu .preview-logo img {
    width: auto;
    max-width: 170px;
    max-height: 44px;
    margin: 0;
  }
  body.has-mobile-menu .menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 9px;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    background: #fff;
    color: #222;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 100%; height: 2px; background: currentColor; }
  body.has-mobile-menu .preview-nav {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 6px 16px 12px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  }
  body.has-mobile-menu .preview-nav.is-open { display: block; }
  body.has-mobile-menu .preview-nav ul { display: block; }
  body.has-mobile-menu .preview-nav li { display: block; }
  body.has-mobile-menu .preview-nav a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #eee;
    text-align: left;
  }
  body.has-mobile-menu .preview-nav li:last-child a { border-bottom: 0; }
  .entry-content .greeting-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    max-width: 620px;
  }
  .greeting-portrait { order: 0; }
  .greeting-copy { order: 1; font-size: 1rem; }
  .greeting-photo img { max-height: 460px; }
  .entry-content .service-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .service-card h6 { font-size: 1.1rem; }
  .service-card p { margin-bottom: 18px; }
  .company-table td { padding: 11px 9px; font-size: .92rem; }
  .company-table td:first-child { width: 28%; white-space: normal; }
  #contact.contact { padding: 68px 0; }
  #contact .contact-panel { padding: 22px 16px; }
  .site-footer-image { height: 150px; }
  .site-footer-copy { font-size: 11px; }
}
@media (max-width: 420px) {
  .service-card > img { aspect-ratio: 4 / 3; }
  .company-table td { padding-inline: 7px; font-size: .86rem; }
  .site-footer-image { height: 120px; }
}
