/* Shared subpage headings and the two theme-coded company pages. */
.subpage-hero {
  position: relative;
  isolation: isolate;
  color: #102130;
  background: linear-gradient(115deg, #f8fcff, #e1f5ff);
}

@media (min-width: 768px) {
  .subpage-hero {
    display: flex;
    min-height: calc(100vw / 2.44);
    align-items: center;
  }
}

.subpage-hero__photo {
  position: relative;
}

@media (min-width: 768px) {
  .subpage-hero__photo {
    position: absolute;
    z-index: -2;
    inset: 0;
  }
}

.subpage-hero__photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .subpage-hero__photo img {
    height: 100%;
    object-fit: cover;
    object-position: center 56%;
  }
}

@media (min-width: 768px) {
  .subpage-hero--photo::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .7) 28%, rgba(255, 255, 255, 0) 52%);
    content: '';
    pointer-events: none;
  }
}

.subpage-hero__inner {
  position: relative;
  padding-block: 32px 80px;
}

@media (min-width: 768px) {
  .subpage-hero__inner {
    padding-block: 32px 64px;
  }
}

@media (min-width: 1025px) {
  .subpage-hero__inner {
    width: min(calc(100% - 160px), 1120px);
    padding-block: 40px 88px;
  }
}

.subpage-hero__copy {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 720px;
}

@media (min-width: 768px) {
  .subpage-hero--photo .subpage-hero__copy {
    width: 47%;
    max-width: 520px;
  }
}

@media (min-width: 768px) {
  .subpage-hero--message .subpage-hero__copy {
    width: 42%;
  }
}

@media (min-width: 1025px) {
  .subpage-hero--photo .subpage-hero__copy {
    width: 42%;
  }
}

.subpage-hero__english {
  margin: 0;
  color: #299fdc;
  font-family: 'Segoe Script', 'Brush Script MT', cursive;
  font-size: 1.625rem;
  font-style: italic;
  line-height: 1.4;
}

@media (min-width: 1025px) {
  .subpage-hero__english {
    font-size: 2.25rem;
  }
}

.subpage-hero__eyebrow-art {
  width: 188px;
  height: auto;
  margin: 0;
}

@media (min-width: 768px) {
  .subpage-hero__eyebrow-art {
    width: clamp(150px, 19.5vw, 250px);
  }
}

.subpage-hero--message .subpage-hero__eyebrow-art {
  width: 220px;
  max-width: 100%;
  margin: -12px 0 -8px -8px;
}

@media (min-width: 768px) {
  .subpage-hero--message .subpage-hero__eyebrow-art {
    width: clamp(220px, 22vw, 280px);
    margin: -18px 0 -4px -16px;
  }
}

@media (min-width: 1025px) {
  .subpage-hero--message .subpage-hero__eyebrow-art {
    margin-left: -56px;
  }
}

.subpage-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 6.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .subpage-hero__title {
    font-size: clamp(2rem, 4.7vw, 3.75rem);
    line-height: 1.35;
  }
}

.subpage-hero__lead {
  margin: 0;
  color: #075fcf;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .subpage-hero__lead {
    font-size: clamp(1rem, 1.8vw, 1.4375rem);
  }
}

.subpage-hero__description {
  max-width: 29em;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.8;
}

@media (min-width: 1025px) {
  .subpage-hero__description {
    font-size: clamp(.875rem, 1.25vw, 1rem);
  }
}

.subpage-hero__note {
  display: none;
}

@media (min-width: 1025px) {
  .subpage-hero__note {
    position: absolute;
    top: 32%;
    right: -24px;
    display: block;
    width: 24%;
    height: auto;
  }
}

.subpage-hero__wave path {
  animation: subpage-wave-flow 24s linear infinite;
}

.subpage-hero__wave path:last-child {
  animation-duration: 32s;
}

@keyframes subpage-wave-flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-1440px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .subpage-hero__wave path {
    animation: none;
  }
}
.subpage-hero__wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 56px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .subpage-hero__wave {
    height: clamp(64px, 8vw, 110px);
  }
}

.subpage-hero--company {
  background: #309fd1;
}

.subpage-hero--company .subpage-hero__copy {
  gap: 14px;
  color: #fff;
}

.subpage-hero--company .subpage-hero__english {
  color: #fff;
}

.subpage-hero--company .subpage-hero__lead {
  color: #fff;
}

.subpage-hero--company .subpage-hero__lead .subpage-phrase {
  display: block;
}

@media (min-width: 768px) {
  .subpage-hero--company {
    min-height: calc(100vw / 2.44);
    overflow: hidden;
  }

  .subpage-hero--company::after {
    background: linear-gradient(90deg, rgba(43, 172, 228, .92), rgba(39, 159, 219, .78) 18%, rgba(15, 107, 164, .35) 29%, rgba(15, 107, 164, 0) 42%);
  }

  .subpage-hero--company .subpage-hero__photo {
    bottom: 0;
    left: 25%;
  }

  .subpage-hero--company .subpage-hero__photo img {
    position: relative;
    left: 0;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
    transform: translateY(-24px) scale(1.36);
    transform-origin: right 72%;
  }

  .subpage-hero--company .subpage-hero__copy {
    width: 42%;
  }

  .subpage-hero--service .subpage-hero__photo {
    left: 43%;
  }

  .subpage-hero--service .subpage-hero__photo img {
    object-fit: contain;
    object-position: center;
  }
}

.subpage-section {
  position: relative;
  padding-block: 48px;
}

@media (min-width: 768px) {
  .subpage-section {
    padding-block: 64px;
  }
}

@media (min-width: 1025px) {
  .subpage-section {
    padding-block: 80px;
  }
}

.subpage-shell {
  max-width: 1120px;
}

.subpage-photo {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.subpage-heading {
  display: grid;
  gap: 5px;
  margin: 0;
  text-align: center;
}

.subpage-heading p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #039edb;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: .07em;
}

.subpage-heading h2 {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
  color: #0756b5;
  font-size: 1.75rem;
  line-height: 1.5;
}

@media (min-width: 1025px) {
  .subpage-heading h2 {
    font-size: 2.125rem;
  }
}

.subpage-heading h2::after {
  display: block;
  width: 48px;
  height: 3px;
  justify-self: center;
  margin: 0;
  background: #075fcf;
  content: '';
}

.greeting {
  background: linear-gradient(115deg, #fff, #f8fcff);
}

.greeting__grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 768px) {
  .greeting__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }
}

@media (min-width: 1025px) {
  .greeting__grid {
    gap: 64px;
  }
}

.greeting__copy h2 {
  margin: 0;
  font-size: 1.5625rem;
  font-weight: 800;
  line-height: 1.6;
}

@media (min-width: 1025px) {
  .greeting__copy h2 {
    font-size: 2.125rem;
    line-height: 1.5;
  }
}

.greeting__copy h2 em {
  color: #075fcf;
  font-style: normal;
}

.greeting__copy p {
  margin: 0;
  color: #283c52;
  font-size: 1rem;
  line-height: 1.85;
}

.greeting__copy strong {
  color: #123e74;
  font-weight: 700;
}

.greeting__copy .greeting__motto {
  color: #075fcf;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.7;
}

.greeting__signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.greeting__signature p {
  margin: 0;
  font-size: 0.875rem;
}

.greeting__signature-art {
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
  flex: 0 1 420px;
}

.greeting__photos {
  position: relative;
  display: grid;
  gap: 24px;
}

.greeting__figure {
  position: relative;
  margin: 0;
}

.greeting__figure figcaption {
  position: relative;
  left: 16px;
  z-index: 1;
  width: 82%;
  margin: -30% 0 -6% auto;
}

@media (min-width: 768px) {
  .greeting__figure figcaption {
    left: 24px;
    width: 68%;
  }
}

.greeting__figure figcaption img {
  position: relative;
  width: 100%;
  height: auto;
}

.greeting__palm {
  justify-self: end;
  width: 160px;
  height: auto;
  margin-top: 0;
}

@media (min-width: 1025px) {
  .greeting__palm {
    width: 200px;
  }
}

.company-page {
  background: linear-gradient(#fff 22%, #eaf8ff 80%, #f8fcff);
}

.company-about .subpage-shell {
  position: relative;
  isolation: isolate;
}

.company-about__grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 768px) {
  .company-about__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.company-about__copy h3 {
  margin: 0;
  color: #009ad4;
  font-size: 1.3125rem;
  line-height: 1.7;
}

.company-about__copy p {
  margin: 0;
  color: #354c70;
  font-size: 1rem;
  line-height: 1.85;
}

.company-about__copy br.pc-only {
  display: none;
}

@media (min-width: 1280px) {
  .company-about__copy br.pc-only {
    display: inline;
  }
}
.company-about__copy p:last-child {
  margin-bottom: 0;
}

.company-about__palm {
  display: none;
}

@media (min-width: 1025px) {
  .company-about__palm {
    position: absolute;
    z-index: -1;
    top: 52px;
    left: calc(16px - (100vw - 100%) / 2);
    display: block;
    width: 320px;
    height: auto;
    opacity: .46;
  }
}

.company-information__panel {
  display: grid;
  gap: 28px;
  position: relative;
  isolation: isolate;
  padding: 28px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
}

@media (min-width: 768px) {
  .company-information__panel {
    padding: 40px 48px;
  }
}

.company-table {
  position: relative;
  width: 100%;
  border-collapse: collapse;
  color: #354c70;
  font-size: 0.875rem;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .company-table {
    font-size: 1rem;
  }
}

.company-table th,
.company-table td {
  padding: 12px;
  border: 1px solid #d2eafb;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.company-table th {
  width: 34%;
  color: #0768bc;
  background: #e2f4fc;
  font-weight: 700;
}

@media (min-width: 768px) {
  .company-table th {
    width: 22%;
    text-align: center;
  }
}

.company-table td {
  background: rgba(255, 255, 255, .78);
}

.company-table a {
  color: #0756b5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.company-information__table-wrap {
  position: relative;
}

.company-information__flower {
  display: none;
}

@media (min-width: 1025px) {
  .company-information__flower {
    position: absolute;
    z-index: 1;
    bottom: -60px;
    right: -24px;
    display: block;
    width: 95px;
    height: auto;
    pointer-events: none;
    opacity: .65;
  }
}

.company-information__motto {
  display: block;
  width: 180px;
  height: auto;
  justify-self: end;
}

.company-shop__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .company-shop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.company-shop__card {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
}

.company-shop__body {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

@media (min-width: 1025px) {
  .company-shop__body {
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 24px;
    row-gap: 10px;
  }
}

.company-shop__body > img {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: 100%;
  height: auto;
}

.company-shop__body > .subpage-stack {
  display: contents;
}

.company-shop__body > .subpage-stack > h3 {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.company-shop__body > .subpage-stack > p {
  grid-column: 2;
  grid-row: 2;
  margin-top: -16px;
}

.company-shop__body h3 {
  margin: 0;
  color: #075fcf;
  font-size: 1.1875rem;
  line-height: 1.7;
}

.company-shop__body p {
  margin: 0;
  color: #354c70;
  font-size: 0.9375rem;
  line-height: 1.85;
}

/* Explicit spacing for the coded page content. */
.subpage-stack {
  display: grid;
  align-content: start;
  gap: 22px;
}

.subpage-stack--intro {
  gap: 18px;
}

.subpage-stack--compact {
  gap: 12px;
}

.subpage-mt-28 {
  margin-top: 28px;
}

.subpage-mt-10 {
  margin-top: 10px;
}

.subpage-phrase {
  display: inline-block;
  max-width: 100%;
}

.subpage-hero__lead,
.greeting__copy p,
.company-about__copy p,
.company-shop__body p {
  text-wrap: pretty;
}

/* The greeting ends in the supplied wave contact band. */
.message-page .greeting {
  padding-bottom: 20px;
}

.message-contact {
  position: relative;
  display: flex;
  min-height: max(200px, calc(100vw / 3 - 150px));
  align-items: center;
  padding-block: 32px;
  background-color: #f8fcff;
  background-image: url('../images/subpages/message-contact-waves.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

.message-contact__inner {
  width: calc(100% - 32px);
}

@media (min-width: 1025px) {
  .message-contact__inner {
    width: calc(100% - 64px);
  }
}
.message-contact__action {
  position: relative;
  text-align: center;
}

.message-contact__action h2 {
  margin: 0 0 12px;
  color: #0068d9;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

@media (min-width: 1025px) {
  .message-contact__action h2 {
    font-size: 24px;
  }
}

.message-contact__button {
  width: 100%;
  min-height: 58px;
  padding: 14px 10px;
  gap: 8px;
  font-size: clamp(14px, 4.267vw, 16px);
  box-shadow: none;
}

@media (min-width: 768px) {
  .message-contact__button {
    width: 100%;
    max-width: 440px;
    min-height: 72px;
    font-size: clamp(16px, 1.8vw, 24px);
  }
}

.message-contact__button:focus {
  outline: 2px solid #075fcf;
  outline-offset: 4px;
}

.message-contact__button:focus:not(:focus-visible) {
  outline: none;
}

.message-contact__button:focus-visible {
  outline: 2px solid #075fcf;
  outline-offset: 4px;
}

