/*
Theme Name: plusplus
Theme URI: https://plusplus.jp
Author: plusplus Inc.
Author URI: https://plusplus.jp
Description: Corporate site theme for plusplus, an AI infrastructure company for the physical world. A block theme (Full Site Editing) with a one-page front page design and templates for standard pages, posts, and archives.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plusplus
*/

:root {
  --color-ink: #000000;
  --color-muted: #575757;
  --color-blue: #015bfc;
  --color-line-blue: #0a76ca;
  --color-night: #171f28;
  --color-soft: #f8f8f8;
  --color-vision: #5e7079;
  --color-contact: #bfbfbf;
  --color-border: #bdbdbd;
  --container: 1204px;
  --font-main: Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-ink);
  background: #ffffff;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.67;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 8px 12px;
  color: #ffffff;
  background: var(--color-blue);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: #ffffff;
  box-shadow: 0 0 2px #ccc;
}

/*main {
  padding-top: var(--header-height);
}*/

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

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

.brand,
.wp-block-site-logo.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0;
}

.brand img,
.wp-block-site-logo.brand img {
  display: block;
  height: 60px;
  width: auto;
}

.footer-brand.wp-block-image {
  margin: 0;
}

.footer-brand img {
  display: block;
  height: 88px;
  width: auto;
}

.page-main h1,
.single-main h1 {
  text-align: center;
  padding: 30px 0 10px;
}

.page-main h2,
.single-main h2 {
  background: var(--color-line-blue);
  padding: 5px 15px;
  color: #fff;
}

/* Navigation block (header) */
.wp-block-navigation.primary-nav {
  --wp--style--block-gap: 26px;
  flex-grow: 0;
  margin-top: 0 !important;
}

.wp-block-navigation.primary-nav .wp-block-navigation-item__content {
  font-size: 20px;
  font-weight: 700;
  line-height: 50px;
  white-space: nowrap;
}

/* Navigation block (footer) */
.wp-block-navigation.footer-nav {
  --wp--style--block-gap: 18px;
  margin-block-start: 0;
  flex-wrap: wrap;
}

.wp-block-navigation.footer-nav .wp-block-navigation-item__content {
  font-size: 14px;
  line-height: 1.5;
}

/* Buttons: both the core Button block (.wp-block-button__link) and plain
   HTML buttons/links using the original .button classes (e.g. the raw
   contact form submit button) share the same pill styling. */
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 3px 42px 4px;
  border-radius: 140.5px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.header-contact-wrap {
  margin: 0;
}

.header-contact,
.header-contact .wp-block-button__link {
  justify-self: end;
  min-width: 173px;
  min-height: 47px;
  padding: 0 34px;
  color: #ffffff;
  background: var(--color-blue);
  font-size: 22px;
  font-weight: 500;
  border-radius: 30px;
}

.button-primary,
.button-primary .wp-block-button__link {
  min-width: 309px;
  color: #ffffff;
  background: var(--color-blue);
  font-size: 24px;
  border-radius: 30px;
}

.button-outline .wp-block-button__link {
  min-width: 309px;
  color: var(--color-line-blue);
  background: #ffffff;
  font-size: 20px;
}

.button-outline .wp-block-button__link:hover {
  color: #ffffff;
  background: var(--color-line-blue);
}

.hero {
  min-height: 708px;
  color: #ffffff;
  background: var(--color-night);
  padding: 75px 0 30px;
}

.hero-inner {
  width: min(var(--container), calc(100% - 48px));
  min-height: 708px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 608px 1fr;
  align-items: center;
  gap: 140px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 61px;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  line-height: 70px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-lead,
.hero-description {
  margin: 0;
}

.hero-lead {
  font-size: 32px;
  line-height: 60px;
}

.hero-lead span {
  color: var(--color-line-blue);
  font-weight: 700;
  font-size: 46px;
}

.hero-description {
  max-width: 545px;
  font-size: 18px;
  line-height: 30px;
}

.hero-visual {
  justify-self: end;
}

.hero-visual img {
  width: 414px;
  max-width: none;
}

.section-white,
.section-muted {
  position: relative;
}

.section-white {
  background: #ffffff;
}

.section-muted {
  background: var(--color-soft);
}

.section-grid {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  align-items: start;
}

.section-copy h2,
.section-heading h2,
.news h2,
.vision h2,
.contact-heading h2 {
  margin: 0;
  font-size: 36px;
  line-height: 50px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-copy p,
.contact-heading > p,
.vision p {
  margin: 0;
  font-size: 18px;
  line-height: 30px;
}

.section-copy p + p {
  margin-top: 0;
}

.text-accent {
  color: var(--color-line-blue);
  font-weight: 700;
}

.message-box {
  border: 1px solid var(--color-line-blue);
  color: var(--color-line-blue);
  background: transparent;
  font-size: 20px;
  line-height: 30px;
}

.message-box strong {
  font-weight: 700;
  font-size: 20px;
}

.market {
  margin: 0;
  padding: 80px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.market-grid {
  grid-template-columns: 650px 697px;
  gap: 67px;
}

.market .section-copy {
  padding-top: 5px;
}

.market .section-copy h2 {
  margin-bottom: 122px;
}

.market .message-box {
  width: 670px;
  min-height: 90px;
  margin-top: 93px;
  padding: 13px 27px;
  font-size: 15px;
}

.image-panel {
  overflow: hidden;
  background: #e9edf0;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-panel-market {
  width: 697px;
  height: 655px;
  border-radius: 121px;
}

.technology {
  margin: 0;
  padding: 80px 0;
}

.technology-grid {
  grid-template-columns: 544px 584px;
  gap: 72px;
}

.image-panel-solution {
  width: 544px;
  height: 429px;
  margin-top: 93px;
  border-radius: 50px;
}

.align-right {
  text-align: right;
}

.technology .section-copy h2 {
  margin-bottom: 77px;
}

.process-flow {
  width: min(1076px, calc(100% - 48px));
  margin: 115px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 70px;
  list-style: none;
  color: var(--color-line-blue);
}

.process-flow li {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--color-line-blue);
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
}

.process-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  margin-top: -21px;
  right: -48px;
  color: #000000;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.process-icon {
  width: 160px;
  height: 160px;
  color: var(--color-line-blue);
}

.process-flow li:nth-of-type(2) .process-icon {
  width: 120px;
  height: 160px;
}

.process-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.message-box-right {
  width: 720px;
  min-height: 90px;
  margin: 102px calc((100% - var(--container)) / 2) 0 auto;
  padding: 13px 33px;
  text-align: right;
  font-size: 15px;
}

.products {
  margin: 0;
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.section-heading,
.product-grid,
.product-message,
.news-inner,
.vision-inner,
.contact-heading,
.footer-inner {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section-heading p {
  margin: 77px 0 0;
  font-size: 18px;
  line-height: 30px;
}

.product-grid {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(3, 384px);
  gap: 57px 28px;
}

/* Spacing between cards is fully handled by the grid's own `gap` above;
   override core's block-layout auto-margin (`:root :where(.is-layout-flow)
   > :first-child / :not(:first-child)`) so it doesn't add extra top margin
   on second-row-and-beyond cards. */
.product-grid > .product-card {
  margin-block-start: 0;
}

.product-card {
  width: 384px;
  min-height: 413px;
  padding: 25px 28px 60px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 30px;
}

.product-card h3 {
  margin: 0;
  max-width: 263px;
  font-size: 36px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-subtitle {
  margin: 0 0 19px;
  max-width: 263px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.product-card p:not(.product-subtitle) {
  margin: 19px 0 0;
  font-size: 18px;
  line-height: 30px;
}

.product-card .wp-block-buttons {
  align-self: center;
  margin-top: 24px;
}

.product-message {
  width: min(1030px, calc(100% - 48px));
  min-height: 100px;
  margin-top: 57px;
  margin-left: calc((100% - min(var(--container), calc(100% - 48px))) / 2);
  padding: 17px 23px;
  font-size: 15px;
}

.news {
  margin: 0;
}

.news-inner {
  padding: 80px 0;
}

.news-list {
  margin: 0;
  padding: 0;
}

.news-list .wp-block-post-template {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
  list-style: none;
}

.news-list .wp-block-post-template > li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  row-gap: 8px;
  column-gap: 48px;
  font-weight: bold;
}

.news-meta {
  display: flex;
  align-items: start;
  flex: 1 1 auto;
  min-width: 0;
  gap: 40px;
}

.news-date {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.news-title {
  max-width: 820px;
  flex: 1 1 auto;
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
}

.news-title a {
  color: inherit;
  text-decoration: none;
  line-height: 1.5;
}

.read-more {
  flex: 0 0 auto;
  color: var(--color-line-blue);
  text-decoration: none;
}

.vision {
  margin: 0;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--color-vision);
}

.vision-globe {
  position: absolute;
  top: 0;
  right: -61px;
  width: 688px;
  height: 688px;
  margin: 0;
  opacity: 0.3;
  pointer-events: none;
}

.vision-globe img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vision-inner {
  position: relative;
  z-index: 1;
}

.vision p {
  width: 755px;
  margin-top: 55px;
}

.vision-message {
  width: 708px;
  min-height: 108px;
  padding: 16px 41px;
  color: #ffffff;
  border-color: #ffffff;
  line-height: 34px;
}

.contact-section {
  min-height: 1364px;
  padding: 70px 0;
  background: var(--color-contact);
  margin-top: 0;
}

.contact-heading > p {
  margin-top: 64px;
}

.contact-form {
  width: 531px;
  margin: 106px auto 0;
  font-size: 16px;
  line-height: 50px;
}

.required-note {
  margin: 0 0 7px;
  color: #ff0000;
  font-weight: 700;
}

.checkbox-group {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #777777;
}

.checkbox-group .wpcf7-form-control-wrap {
  display: block;
  width: 55%;
}

.checkbox-group > label span,
.form-row label span {
  color: #ff0000;
}

.checkbox-group .wpcf7-form-control-wrap label {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  color: #000000;
}

.checkbox-group input {
  width: 18px !important;
  height: 18px !important;
  margin: 0;
  accent-color: var(--color-blue);
}

.form-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 59px;
  align-items: center;
  border-bottom: 1px solid #777777;
}

.checkbox-group label,
.form-row label {
  font-weight: 700;
  line-height: 1.5;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: #000000;
  background: transparent;
  font-size: 16px;
  line-height: 30px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #575757;
  opacity: 1;
}

.form-row input:focus,
.form-row textarea:focus {
  background: rgba(255, 255, 255, 0.24);
}

.form-row-textarea {
  min-height: 186px;
  padding-top: 40px;
  align-items: start;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  display: flex;
  width: 309px;
  margin: 47px auto 0;
  border: 0;
  cursor: pointer;
}

.wpcf7-turnstile { margin-top: 50px; }

.site-footer {
  min-height: 189px;
  padding-top: 30px;
  color: var(--color-muted);
  background: #ffffff;
  box-shadow: 0 -1px 2px #ccc;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 120px;
}

.copyright {
  margin: 16px 0 0;
  text-align: center;
  font-size: 22px;
  line-height: 50px;
  font-weight: 500;
}

:focus-visible {
  outline: 3px solid rgba(1, 91, 252, 0.45);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  :root {
    --container: 1080px;
  }

  .wp-block-navigation.primary-nav {
    --wp--style--block-gap: 18px;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation-item__content {
    font-size: 16px;
  }

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

  .hero-visual img {
    width: 360px;
  }

  .market-grid,
  .technology-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .image-panel-market,
  .image-panel-solution {
    width: 100%;
  }

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

  .product-card {
    width: auto;
  }

  .button-outline,
  .button-outline .wp-block-button__link {
    min-width: min(309px, 100%);
  }
}

@media (max-width: 1023px) {
  body {
    font-size: 16px;
  }

  :root {
    --header-height: 72px;
  }

  .header-inner {
    width: min(100% - 32px, 720px);
    gap: 16px;
  }

  .header-inner .header-contact-wrap {
    display: none;
  }

  .wp-block-navigation.primary-nav {
    margin-block-start: 0;
    /* Let descendants (toggle icons, dropdown panel) position against
       .header-inner instead of the nav itself. */
    position: static;
    gap: 0;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation-item__content {
    padding: 14px 4px;
    font-size: 16px;
    line-height: 1.4;
  }

  /* Core only auto-enables the hamburger/overlay below 600px; force it on
     up through this theme's own tablet breakpoint instead. */
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-open {
    display: flex;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  /* Rebuild the open/close icons as three bars, matching the reference design. */
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-open,
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-open svg,
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close svg {
    width: 24px;
    height: 2px;
    padding: 0;
    background: var(--color-ink);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-open svg path,
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close svg path {
    display: none;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-open::before,
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-open::after,
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close::before,
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close::after {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--color-ink);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close svg {
    opacity: 0;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close::before {
    transform: translateY(7px) rotate(45deg);
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Only one icon shown at a time: hide the hamburger while the menu is open. */
  .wp-block-navigation.primary-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .wp-block-navigation__responsive-container-open {
    display: none;
  }

  /* Anchor the close button where the hamburger sits, instead of core's
     default top-right-of-viewport placement. */
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-dialog {
    position: static;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-close {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  /* Turn core's full-viewport modal into a simple dropdown panel under the
     header, matching the reference design. */
  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: static;
    inset: auto;
    z-index: auto;
    padding: 0;
    overflow: visible;
    animation: none;
    background: none;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 10px 16px 20px !important;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    text-align: left !important;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation__responsive-container-content,
  .wp-block-navigation.primary-nav .wp-block-navigation__container {
    align-items: stretch;
    width: 100%;
  }

  .wp-block-navigation.primary-nav .wp-block-navigation-item {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #ccc;
  }

  .wp-block-navigation-item__content { width: 100%; }

  .wp-block-navigation.items-justified-right {
    --navigation-layout-justification-setting: flex-start !important;
    --navigation-layout-justify: flex-start !important;
  }

  /* The reference design doesn't lock page scroll while the menu is open. */
  html.has-modal-open {
    overflow: auto;
  }

  .brand img,
  .wp-block-site-logo.brand img {
    height: 46px;
  }

  .hero,
  .hero-inner,
  .market,
  .technology,
  .products,
  .news,
  .vision,
  .contact-section,
  .site-footer {
    min-height: auto;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero-inner {
    width: min(100% - 40px, 720px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-copy {
    gap: 32px;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.25;
  }

  .hero-lead {
    font-size: 26px;
    line-height: 1.6;
  }

  .hero-visual {
    justify-self: center;
  }

  .hero-visual img {
    width: min(420px, 80vw);
    max-width: 100%;
  }

  .section-grid,
  .section-heading,
  .product-grid,
  .news-inner,
  .vision-inner,
  .contact-heading,
  .footer-inner {
    width: min(100% - 40px, 720px);
  }

  .market,
  .technology,
  .products,
  .news,
  .contact-section {
    padding: 72px 0;
  }

  .market-grid,
  .technology-grid {
    grid-template-columns: 1fr;
  }

  .market .section-copy h2,
  .technology .section-copy h2 {
    margin-bottom: 36px;
  }

  .market .message-box,
  .message-box-right,
  .product-message {
    width: 100%;
    margin: 42px 0 0;
  }

  .image-panel-market {
    height: auto;
    border-radius: 72px;
  }

  .image-panel-market img {
    height: auto;
    object-fit: contain;
  }

  .image-panel-solution {
    height: auto;
    margin-top: 0;
    border-radius: 36px;
  }

  .image-panel-solution img {
    height: auto;
  }

  .technology-grid .align-right {
    text-align: left;
  }

  .process-flow {
    width: min(100% - 40px, 720px);
    margin-top: 56px;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 64px;
  }

  .process-flow li {
    font-size: 24px;
  }

  .process-flow li::after {
    display: none;
  }

  .section-heading p {
    margin-top: 28px;
  }

  .product-grid {
    margin-top: 56px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    min-height: 360px;
    padding: 28px;
  }

  .product-card h3 {
    font-size: 32px;
  }

  .news-inner {
    padding: 0;
  }

  .news-list .wp-block-post-template > li {
    gap: 24px;
  }

  .news-meta { display: block !important; }

  .news-title {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.6;
  }

  .news-list .wp-block-post-template > li {
    display: block !important;
    margin: 0 !important;
  }

  .vision {
    padding: 72px 0;
  }

  .vision-inner {
    padding-top: 0;
  }

  .vision p,
  .vision-message {
    width: min(100%, 620px);
  }

  .vision-globe {
    width: 520px;
    height: 520px;
    right: -160px;
    top: 40px;
  }

  .contact-form {
    width: min(100% - 40px, 620px);
    margin-top: 64px;
  }

  .footer-inner {
    gap: 0;
    align-items: flex-start;
  }

  .footer-brand img {
    height: 68px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: 100%;
    padding: 0 3%;
  }

  .hero-inner,
  .section-grid,
  .section-heading,
  .product-grid,
  .news-inner,
  .vision-inner,
  .contact-heading,
  .footer-inner,
  .process-flow {
    width: min(100% - 28px, 390px);
  }

  .hero {
    padding: 90px 0 30px;
  }

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

  .hero-lead {
    font-size: 22px;
  }

  .hero-lead span {
    font-size: 32px;
  }

  .button-primary,
  .button-primary .wp-block-button__link {
    min-width: min(309px, 100%);
  }

  .section-copy h2,
  .section-heading h2,
  .news h2,
  .vision h2,
  .contact-heading h2 {
    font-size: 30px;
    line-height: 1.25;
  }

  .market,
  .technology,
  .products,
  .news,
  .contact-section {
    padding: 56px 0;
  }

  .message-box {
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    width: 94%;
    margin: 42px auto 0;
    padding: 14px 16px;
  }

  .image-panel-market {
    border-radius: 44px;
  }

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

  .product-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-card {
    min-height: auto;
  }

  .product-card h3 {
    font-size: 30px;
    line-height: 1;
  }

  .news-list .wp-block-post-template {
    gap: 28px;
  }

  .news-list .wp-block-post-template > li {
    display: grid;
    gap: 4px;
  }

  .vision-globe {
    width: 420px;
    height: 420px;
    right: -220px;
    opacity: 0.24;
  }

  .contact-form {
    width: min(100% - 28px, 390px);
    line-height: 1.6;
  }

  .checkbox-group .wpcf7-form-control-wrap {
    width: 100%;
  }

  .checkbox-group,
  .form-row {
    display: block;
    padding: 18px 0;
  }

  .checkbox-group legend {
    margin-bottom: 10px;
  }

  .checkbox-group label {
    min-height: 36px;
  }

  .form-row label {
    display: block;
    margin-bottom: 8px;
  }

  .form-row-textarea {
    min-height: 150px;
  }

  .form-submit {
    width: min(309px, 100%);
  }

  .footer-inner {
    display: grid;
  }

  .footer-brand img {
    height: 56px;
  }

  .copyright {
    font-size: 16px;
  }
}

/* ==========================================================================
   Page / single / archive / blog index / comments templates
   ========================================================================== */

.site-main {
  min-height: 700px;
  padding: 88px 0 96px;
  background: #ffffff;
}

.single-main,
.page-main {
  max-width: 1200px;
  min-height: 700px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 40px;
}

.page-title,
.entry-title {
  margin: 0;
  font-size: 40px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.entry-cats a {
  color: var(--color-line-blue);
  font-weight: 700;
}

.page-thumbnail,
.entry-thumbnail {
  margin: 32px 0;
  overflow: hidden;
  border-radius: 24px;
  background: #e9edf0;
  width: 60%;
}

.page-thumbnail img,
.entry-thumbnail img {
  width: 100%;
  height: auto;
}

.entry-content {
  margin-top: 32px;
  font-size: 18px;
  line-height: 1.9;
}

.entry-content > * + * {
  margin-top: 24px;
}

.entry-content h2 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
}

.entry-content h3 {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 700;
}

.entry-content a {
  color: var(--color-line-blue);
  text-decoration: underline;
}

.entry-content img {
  border-radius: 16px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.entry-tags a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 16px;
  color: var(--color-line-blue);
  border: 1px solid var(--color-line-blue);
  border-radius: 999px;
  font-size: 14px;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  font-weight: 700;
}

.post-navigation a {
  color: var(--color-line-blue);
}

.nav-next {
  text-align: right;
}

.archive-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.archive-description {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.8;
}

.archive-list,
.blog-main .news-list {
  margin-top: 48px;
}

.no-posts {
  margin-top: 40px;
  color: var(--color-muted);
  font-size: 18px;
}

.pagination {
  margin-top: 56px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  margin-right: 8px;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-weight: 700;
}

.pagination .page-numbers.current {
  color: #ffffff;
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.pagination .page-numbers.dots {
  border: 0;
}

.comments-area {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.comments-title {
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 700;
}

.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list > li + li {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.wp-block-avatar,
.wp-block-avatar img {
  border-radius: 50%;
}

.wp-block-comment-content p {
  margin: 8px 0 0;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
}

.comment-form p {
  margin: 0 0 20px;
}

.comment-form .form-submit input {
  display: inline-flex;
  min-height: 50px;
  padding: 3px 34px 4px;
  color: #ffffff;
  background: var(--color-blue);
  border: 0;
  border-radius: 140.5px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .site-main {
    padding: 56px 0 72px;
  }

  .page-main,
  .single-main {
    width: 94%;
    margin: 0 auto;
  }

  .page-main h1,
  .single-main h1 {
    font-size: 24px;
    padding: 50px 0 10px;
  }
  .page-main h2,
  .single-main h2 { font-size: 20px; }

  .page-title,
  .entry-title {
    font-size: 30px;
  }

  .entry-content {
    font-size: 16px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .nav-next {
    text-align: left;
  }

  .wp-block-navigation.footer-nav {
    margin-block-start: 20px;
  }
}
