:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #C1D0D8;
  --color-border: #e6e6e6;
  --color-primary: #055AAA;
  --color-accent: #2b6fe0;
  --color-accent-2: #DDEAF5;
  --max-width: 1120px;
  --container-pad: 40px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", Meiryo, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

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

.container {
  width: 100%;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header {
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(8px);
  position: relative;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-header__brand img {
  display: block;
  width: 200px;
}

.site-header__toggle {
  display: none;
  width: 55px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  align-items: center;
  justify-content: center;
}

.site-header__toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
}


.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__menu {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-header__menu a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.site-header__menu a:hover {
  opacity: .7;
}

/* Hero */
.hero {
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.hero__wrapper {
  align-items: stretch;
  height: 85vh;
  min-height: 85vh;
  max-height: 85vh;
  margin-bottom: 40px;
  margin-left: auto;
  position: relative;
  overflow: hidden;
}

.hero__background {
  background-image: url("../img/main.jpg");
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  height: 100%;
}

.page__title {
  z-index: 2;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
  mix-blend-mode: overlay;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  grid-auto-columns: 1fr;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
  display: inline-flex;
  position: absolute;
  inset: 1vw 0% auto;
}

.hero__title {
  font-size: 12vw;
  margin-top: 0;
  margin-bottom: 10px;
}

.hero__title--xl {
  line-height: 1.05;
  /* subtle blue emphasis seen in design */
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 22px;
  border: 1px solid transparent;
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--outline {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--lg {
  padding: 15px 30px;
  font-size: 20px;
  border-radius: var(--radius-md);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: var(--radius-sm)
}

.btn:hover {
  background: var(--color-muted);
  color: var(--color-text);
}

/* Sections */
.section {
  padding: 80px 0 0;
}

.section__title {
  font-size: clamp(46px, calc(33.25490196078431px + 3.2679738562091507vw), 96px);
  line-height: 1.25;
  margin-top: 0;
}

.section__title--en {
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* About */
.about__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.about__head .section__title {
  margin-top: 0;
}

.about__body {
  max-width: 686px;
}

.about__lead {
  margin: 0 0 80px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
}

.about__text {
  margin: 0 0 80px;
}

/* Services (rows) */
.services {
  display: grid;
  gap: 24px;
  margin-top: 80px;
}

.service-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 40px;
}

.service-row.service01 {
  background: #A8DBF4;
}

.service-row.service02 {
  background: #B1CBF1;
}

.service-row.service03 {
  background: #DDEAF5;
}

.service-row.service04 {
  background: #FFF100;
}

.service-row__no {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
}

.service-row__card {
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  gap: 160px;
}

.service-row__body {
  display: flex;
  align-items: center;
  gap: 100px;
  flex-shrink: 0;
  width: 53vw;
  max-width: 857px;
}

.service-row__title {
  margin: 0 0 8px;
  font-size: 30px;
  min-width: 360px;
}

.service-row__text {
  margin: 0 0 12px;
}

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

/* Case visuals */
.case-visual__wrapper {
  grid-column-gap: 200px;
  grid-row-gap: 80px;
  flex-flow: column;
  display: flex;
  margin-top: 80px;
}

.case-visual {
  flex-flow: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  display: flex;
  position: relative;
}

.case-visual.right-aligned {
  align-items: flex-end;
}

.floating-image-wrapper {
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.floating-image {
  object-fit: cover;
  object-position: 50% 50%;
  width: 100%;
  position: relative;
  overflow: clip;
}

.case-visual__card {
  position: absolute;
  inset: 50% 0% auto auto;
  transform: translateY(-50%);
  min-width: 250px;
  max-width: 20vw;
  aspect-ratio: 19 / 15;
  background: #DDEAF5;
  padding: 4.685vw 30px;
}

.case-visual__card.left-aligned {
  left: 0;
  right: auto;
}

.case-visual__tagline {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
}

.case-visual__meta {
  margin: 0 0 10px;
  color: #747474;
  font-size: 14px;
}

.case-visual__meta span {
  margin-right: 10px;
}

.case-visual__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.case-btn {
  position: absolute;
  bottom: 8%;
  right: 8%;
  width: 40px;
  height: 40px;
  background: url(../img/state=default.svg) no-repeat;
  background-size: cover;
  background-position: center center;
  transition: all 0.2s;
}

.case-btn:hover {
  opacity: 0.7;
  background: url(../img/state=hover.svg) no-repeat;
  background-size: cover;
  background-position: center center;
}

/* News */
.news__bg {
  background: #A8DBF4;
  padding: 120px 0;
}

.news {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  max-width: 700px;
  margin: 0 auto;
}

.news__item {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-primary);
  text-decoration: none;
  color: inherit;
}

.news__item:last-child {
  border-bottom: none;
}

.news__date {
  color: var(--color-primary);
}

.news__title {
  text-decoration: underline;
}

/* Contact */
.section--contact {
  padding-top: 40px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.contact__body .section__title {
  font-size: clamp(46px, calc(33.25490196078431px + 3.2679738562091507vw), 96px);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 20px;
}

.contact__text {
  margin: 20px 0 100px;
}

.contact__image img {
  width: 100%;
  object-fit: cover;
}

/* Footer */
.site-footer {
  margin-top: 120px;
  background: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr .6fr;
  gap: 24px;
  padding-bottom: 60px;
}

.site-footer__brand img {
  display: block;
  margin-bottom: 20px;
  width: 200px;
}

.site-footer__addr {
  font-style: normal;
}

.site-footer__hd {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--color-primary);
}

.site-footer__hd a {
  text-decoration: none;
  color: var(--color-primary);
}

.site-footer__hd a:hover {
  opacity: 0.8;
}

.site-footer__nav {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-footer__nav a {
  color: var(--color-primary);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
}

.site-footer__nav a:hover {
  opacity: .8;
}

.site-footer__sns {
  display: flex;
  align-items: start;
  gap: 40px;
}

.site-footer__sns a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--color-text);
}

.site-footer__copy {
  text-align: right;
  font-size: 12px;
  padding-bottom: 20px;
}

/* Overlay for mobile nav */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 90;
}

/* Responsive */
@media (max-width: 1200px) {
  .about__wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about__lead {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .about__text {
    margin-bottom: 40px;
  }

  .services {
    margin-top: 40px;
  }

  .service-row {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .service-row__card {
    grid-template-columns: 1fr;
    display: block;
  }

  .service-row__body {
    display: block;
    gap: 20px;
    width: 100%;
  }

  .service-row__title {
    min-width: 0;
  }

  .service-row__text {
    margin: 0 0 20px;
  }

  .case-visual__card {
    aspect-ratio: unset;
  }

  .case-visual__title {
    padding-bottom: 40px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact__text {
    margin-bottom: 20px;
  }

  .site-footer {
    margin-top: 60px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 767px) {
  :root {
    --container-pad: 15px;
  }

  .sp-none {
    display: none;
  }

  .site-header__toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    z-index: 120;
  }

  .site-header__toggle[aria-expanded="true"] {
    gap: 0;
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-of-type(1) {
    transform: rotate(-40deg);
  }

  .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-of-type(2) {
    transform: rotate(40deg);
    margin-top: -3px;
  }

  .site-header__nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88%, 360px);
    height: 100vh;
    transform: translateX(100%);
    transition: transform .25s ease;
    background: var(--color-primary);
    box-shadow: -10px 0 28px rgba(0, 0, 0, .08);
    padding: 20px;
    z-index: 110;
  }

  .site-header__nav.is-open {
    transform: translateX(0);
  }

  .site-header__menu {
    flex-direction: column;
    gap: 40px;
    width: 84%;
    margin: 0 auto;
  }

  .site-header__menu a {
    color: #fff;
  }

  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero__wrapper {
    height: 50vh;
    min-height: 50vh;
    max-height: 50vh;
  }

  .hero__background {
    background-attachment: scroll;
    background-image: url(../img/main-sp.jpg);
  }

  .page__title {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__title {
    font-size: 16.5vw;
    margin-top: 20px;
  }

  .section__title {
    margin-bottom: 40px;
  }

  .case-visual__wrapper {
    margin-top: 40px;
    grid-row-gap: 40px;
  }

  .case-visual__card {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 30px;
    aspect-ratio: unset;
  }

  .case-visual__title {
    padding-bottom: 60px;
  }

  .case-btn {
    right: 30px;
    bottom: 30px;
  }

  .floating-image-wrapper {
    max-width: none;
    max-height: none;
  }

  .news__bg {
    padding: 40px 0;
  }

  .news {
    margin: 0 15px 40px;
  }

  .section {
    padding: 60px 0 0;
  }

  .site-footer__sns {
    justify-content: center;
  }
}