/* Compact news rows, used only on the top page. */
.post-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}
.post-row {
  min-width: 0;
  border-bottom: 1px solid var(--color-navy);
}
.post-row-link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: 100%;
  padding-block: 22px;
  color: var(--color-navy);
  text-decoration: none;
}
.post-row-link:hover {
  text-decoration: none;
}
.post-row-link:hover .post-row-title {
  color: var(--color-blue);
  text-decoration: underline;
}
.post-row-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 4px;
}
.post-row-placeholder {
  display: grid;
  place-items: center;
  padding: 12px;
  color: var(--color-white);
  background: var(--color-navy);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.post-row-body {
  min-width: 0;
}
.post-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
}
.post-row-label {
  padding: 2px 10px;
  border-radius: 3px;
  color: var(--color-white);
  background: var(--color-navy);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.post-row-meta time {
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
}
.post-row-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .post-rows {
    grid-template-columns: minmax(0, 1fr);
  }
  .post-row-link {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding-block: 20px;
  }
}

/* Top page: layout follows the approved composition. */
.hero-layout {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: 28px;
}
.hero-copy {
  min-width: 0;
}
.hero-eyebrow {
  margin-bottom: 18px;
  color: var(--color-blue);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}
.hero h1 {
  letter-spacing: -0.035em;
}
.hero-intro {
  margin-top: 24px;
  margin-bottom: 28px;
}
.hero-photo {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 4px;
}
.hero .button {
  gap: 12px;
  padding-inline: 16px;
}
.section-movie {
  color: var(--color-white);
  background: var(--color-navy);
}
.section-movie .section-label {
  color: var(--color-pale);
}
.section-movie h2 {
  color: var(--color-white);
}
.section-movie video {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border-radius: 4px;
  box-shadow: none;
  background: #000;
}
.section-movie video:focus-visible,
.section-movie video:focus-within {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.problem-card,
.work-card,
.table-scroll {
  box-shadow: 0 6px 20px rgba(9, 29, 59, 0.12);
}
.problem-card {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  text-align: center;
}
.problem-card img {
  width: 100%;
  height: 170px;
  margin-bottom: 16px;
  object-fit: contain;
}
.problem-card h3 {
  font-size: clamp(22px, 1.6vw, 24px);
}
.problem-card p {
  margin-top: 10px;
}
.problem-summary {
  margin-top: 28px;
  font-weight: 600;
  text-align: center;
}
.service-list {
  display: grid;
  gap: 48px;
}
.service-item {
  padding: 40px;
  border-radius: 4px;
  background: var(--color-pale);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
}
.service-item:nth-child(even) .service-visual {
  order: -1;
}
.service-title a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--color-navy);
  text-decoration: none;
}
.service-title a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}
.service-title .icon {
  color: var(--color-blue);
}
.service-title::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 16px;
  background: var(--color-blue);
}
.service-catch {
  margin-top: 18px;
  margin-bottom: 8px;
  color: var(--color-blue);
  font-weight: 700;
}
.service-visual img,
.value-card img {
  mix-blend-mode: multiply;
}
.service-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 4px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
}
.work-card > img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.work-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}
.work-tag {
  align-self: flex-start;
  padding: 2px 10px;
  margin-bottom: 10px;
  color: var(--color-blue);
  background: var(--color-pale);
  font-size: 14px;
  font-weight: 600;
}
.work-content dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px 12px;
  margin-block: 22px 28px;
}
.work-content dt {
  color: var(--color-blue);
  font-weight: 700;
}
.work-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-weight: 700;
  text-decoration: none;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.value-card {
  padding: 24px;
  border-radius: 4px;
  background: var(--color-pale);
  text-align: center;
}
.value-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-bottom: 20px;
}
.value-card p {
  margin-top: 12px;
}
.value-flow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}
.value-flow li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 18px;
  color: var(--color-blue);
}
.value-flow span {
  flex: 1;
  padding: 16px 12px;
  border: 1px solid var(--color-blue);
  border-radius: 4px;
  background: var(--color-white);
  font-weight: 700;
  text-align: center;
}
.value-flow li:last-child {
  flex: 0.88;
}
.strength-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 36px;
}
.strength-copy h2 {
  margin-bottom: 24px;
}
.strength-catch {
  margin-bottom: 24px;
  color: var(--color-blue);
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}
.strength-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.strength-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.strength-list .icon {
  margin-top: 4px;
  color: var(--color-blue);
}
.comparison {
  min-width: 0;
}
.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
}
.comparison table {
  width: 100%;
  min-width: 620px;
  table-layout: fixed;
  font-size: 16px;
  line-height: 1.7;
}
.comparison th,
.comparison td {
  padding: 18px 12px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  text-align: center;
}
.comparison th {
  color: var(--color-navy);
  font-weight: 700;
}
.comparison th:first-child {
  width: 23%;
}
.comparison tr > :last-child {
  border-right: 0;
  background: var(--color-pale);
}
.comparison tbody tr:last-child > * {
  border-bottom: 0;
}
.comparison-symbol {
  display: block;
  color: var(--color-blue);
  font-size: 24px;
  line-height: 1.4;
}
.comparison-note {
  margin-top: 12px;
  font-size: 14px;
}
.contact {
  text-align: center;
}
.contact .section-heading {
  margin-bottom: 28px;
}
.contact-panel {
  max-width: 880px;
  margin-inline: auto;
  padding: 40px;
  border-radius: 4px;
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(9, 29, 59, 0.12);
}
.contact-catch {
  margin-bottom: 20px;
  color: var(--color-blue);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}
.contact .button {
  margin-top: 32px;
}
@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(28px, 4vw, 44px);
  }
}
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-photo {
    height: auto;
    max-height: 460px;
    aspect-ratio: 4 / 3;
  }
  .service-item {
    gap: 24px;
  }
  .value-grid {
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .service-item,
  .contact-panel {
    padding: 24px;
  }
  .hero h1 {
    font-size: clamp(28px, 4.2vw, 34px);
    letter-spacing: -0.025em;
  }
  .hero-intro {
    margin-top: 20px;
  }
  .hero-photo {
    max-height: none;
  }
  .problem-grid,
  .works-grid,
  .value-grid,
  .service-item {
    grid-template-columns: 1fr;
  }
  .problem-card {
    padding: 24px 20px;
  }
  .problem-card img {
    height: 150px;
  }
  .service-list {
    gap: 40px;
  }
  .service-item {
    gap: 24px;
  }
  .service-item:nth-child(even) .service-visual {
    order: initial;
  }
  .work-content {
    padding: 24px 20px;
  }
  .work-content dl {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .work-content dd + dt {
    margin-top: 12px;
  }
  .value-grid {
    gap: 32px;
  }
  .value-card img {
    max-height: 200px;
  }
  .value-flow,
  .value-flow li {
    flex-direction: column;
    gap: 12px;
  }
  .value-flow li,
  .value-flow span {
    width: 100%;
  }
  .value-flow .icon {
    transform: rotate(90deg);
  }
  .strength-grid {
    gap: 32px;
  }
}

/* Edge decorations belong to their sections and stay outside the text area. */
.hero::before,
.works::before,
.hero::after,
.problems::after,
.works::after,
.contact::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: max(12px, calc((100% - var(--site-width)) / 2 + 16px));
}
.hero::before,
.works::before {
  left: 0;
  top: 20px;
  height: 150px;
  background: var(--color-navy);
  clip-path: polygon(0 0, 100% 24%, 100% 100%, 0 76%);
}
.hero::after,
.works::after {
  right: 0;
  bottom: 24px;
  height: 48px;
  background: var(--color-blue);
  clip-path: polygon(0 96%, 100% 0, 100% 4%, 0 100%);
}
.problems::after,
.contact::after {
  left: 0;
  top: 24px;
  height: 64px;
  background: var(--color-navy);
  clip-path: polygon(0 0, 100% 96%, 100% 100%, 0 4%);
}
@media (max-width: 767px) {
  .hero::before,
  .works::before {
    width: 8px;
    height: 72px;
  }
  .hero::after,
  .problems::after,
  .works::after,
  .contact::after {
    display: none;
  }
}

/* Google Workspace service icons. */
.gws-apps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 8px;
  margin-top: 24px;
}
.gws-apps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.04em;
}
.gws-app-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #D8DDE6;
  border-radius: 4px;
  background: var(--color-white);
}
.gws-app-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
@media (max-width: 767px) {
  .gws-apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
