* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: #111;
  background: #fff;
  font-family: "Noto Serif JP", serif;
  line-height: 1.75;
}

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

img {
  max-width: 100%;
}


/* -------------------------
   HEADER
------------------------- */

.site-header {
  background: #fff;
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  display: block;
  width: 220px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
}

.header-nav a {
  font-size: 14px;
}


/* -------------------------
   HERO
------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 410px;
  overflow: hidden;
  background: #fff;
}

.hero-photo {
  position: absolute;
  inset: 0;

  background-image: url("/images/hero.jpg?v=2");
  background-size: cover;
  background-position: 54% 38%;
  background-repeat: no-repeat;
}

.hero-blue {
  position: absolute;
  inset: 0 auto 0 0;
  width: 82%;

  color: #fff;
  background: #126486;

  clip-path: polygon(
    0 0,
    100% 0,
    88% 100%,
    0 100%
  );
}

.hero-blue::after {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  width: 10px;
  height: 110%;

  background: rgba(255,255,255,.55);

  transform: skewX(-14deg);
  transform-origin: top;
}

.hero-text {
  width: 570px;
  max-width: calc(100% - 100px);

  margin-left: max(
    40px,
    calc((100vw - 1180px) / 2 + 35px)
  );

  padding-top: 82px;
}

.hero h1 {
  margin: 0 0 34px;

  font-size: 32px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .06em;
}

.hero p {
  width: 500px;
  max-width: 100%;
  margin: 0;

  font-size: 15px;
  line-height: 1.9;
}


/* -------------------------
   COMMON CONTENT
------------------------- */

.content-section {
  padding: 58px 20px;
}

.content-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.section-title {
  position: relative;

  height: 28px;
  margin: 0 0 48px;

  border-bottom: 7px solid #d7e5eb;

  text-align: center;
  line-height: 1;
}

.section-title span {
  position: relative;
  top: 9px;

  display: inline-block;

  padding: 0 15px;

  color: #002b7a;
  background: #fff;

  font-size: 24px;
  font-weight: 400;
}

.text-block {
  width: 760px;
  max-width: 100%;
  margin: 0 auto;
}

.text-block p {
  margin: 0 0 22px;
  font-size: 15px;
}


/* -------------------------
   SERVICES
------------------------- */

.services {
  padding-top: 30px;
}

.services-intro {
  width: 760px;
  max-width: 100%;
  margin: 0 auto 45px;

  font-size: 15px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;

  align-items: start;
}

.service-item img {
  display: block;

  width: 100%;
  aspect-ratio: 1.48 / 1;

  object-fit: cover;
}

.service-item h3 {
  margin: 0;

  padding: 5px 6px;

  color: #07507a;
  background: #d7e7ee;

  text-align: center;

  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.service-item p {
  margin: 12px 0 0;

  font-size: 14px;
  line-height: 1.75;
}


/* -------------------------
   CONTACT
------------------------- */

.contact-box {
  width: 620px;
  max-width: 100%;

  margin: 58px auto 15px;

  border: 9px solid #0c6286;

  background: #fff;
}

.contact-title {
  padding: 4px 15px 6px;

  color: #fff;
  background: #0c6286;

  text-align: center;

  font-size: 15px;
}

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

  padding: 14px 10px 17px;
}

.contact-phone,
.contact-form-link {
  padding: 0 25px;
  text-align: center;
}

.contact-phone {
  border-right: 1px solid #bbb;
}

.contact-columns p {
  margin: 0 0 12px;
  font-size: 12px;
}

.phone-number {
  display: block;

  margin-bottom: 6px;

  font-size: 20px;
}

.contact-columns small {
  display: block;
  font-size: 10px;
}

.contact-button {
  display: block;

  margin-top: 17px;
  padding: 11px 12px;

  color: #fff;
  background: #073b78;

  font-size: 12px;
}


/* -------------------------
   FOOTER
------------------------- */

.site-footer {
  margin-top: 35px;

  border-top: 4px solid #08668b;

  background: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));

  margin: 0 auto;
  padding: 55px 0 45px;

  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 70px;

  align-items: start;
}

.footer-logo img {
  display: block;
  width: 250px;
}

.footer-company p {
  margin: 0 0 3px;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  gap: 32px;

  white-space: nowrap;
}

.footer-nav a {
  font-size: 13px;
}

.copyright {
  padding: 35px 20px 45px;

  text-align: center;

  font-size: 10px;
}


/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 768px) {

  .header-inner {
    width: calc(100% - 30px);
    height: auto;

    padding: 12px 0;

    display: block;
  }

  .header-logo img {
    width: 190px;
  }

  .header-nav {
    margin-top: 10px;
    gap: 22px;
  }

  .header-nav a {
    font-size: 12px;
  }


  .hero {
    height: auto;
    min-height: 500px;
  }

  .hero-photo {
    position: absolute;
    height: 230px;

    background-position: center;
  }

  .hero-blue {
    top: 230px;
    width: 100%;
    height: 270px;

    clip-path: none;
  }

  .hero-blue::after {
    display: none;
  }

  .hero-text {
    width: auto;
    max-width: none;

    margin: 0;
    padding: 35px 25px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: 27px;
  }

  .hero p {
    font-size: 13px;
  }


  .content-section {
    padding: 55px 20px;
  }

  .section-title {
    margin-bottom: 42px;
  }

  .section-title span {
    font-size: 21px;
  }


  .service-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .service-item img {
    aspect-ratio: 16 / 9;
  }


  .contact-box {
    margin-top: 35px;
  }

  .contact-columns {
    display: block;
  }

  .contact-phone {
    padding-bottom: 25px;
    border-right: 0;
    border-bottom: 1px solid #bbb;
  }

  .contact-form-link {
    padding-top: 25px;
  }


  .footer-inner {
    width: calc(100% - 40px);

    display: block;

    padding: 40px 0 30px;
  }

  .footer-logo img {
    width: 220px;
  }

  .footer-company {
    margin-top: 25px;
  }

  .footer-nav {
    margin-top: 30px;
    gap: 20px;
    flex-wrap: wrap;
  }

}


/* =========================================================
   Hero - original design reproduction
   ========================================================= */

@media (min-width: 769px) {

  .hero {
    position: relative;
    width: 100%;
    height: 410px;
    overflow: hidden;
    background: #fff;
  }

  /* 元サイト:
     background-position: 0% 36.964%;
     background-size: 142%;
  */
  .hero-photo {
    position: absolute;
    inset: 0;
    height: auto;
    background-image: url("/images/hero.jpg?v=2");
    background-repeat: no-repeat;
    background-position: 130% center;
    background-size: 65% auto;
  }

  /*
   * 元デザインの構造を再現
   * before : rgba(...,.9) skew(-13deg)
   * after  : rgba(...,.5) skew(-16deg)
   *
   * 元サイトは白系オーバーレイだが、
   * 現サイトの青 #126486 をベースとして再現。
   */
  .hero-blue {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background: transparent;
    clip-path: none;
    z-index: 1;
  }

  .hero-blue::before,
  .hero-blue::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transform-origin: right center;
  }

  .hero-blue::before {
    left: -47%;
    background: rgba(18, 100, 134, .97);
    transform: skew(-13deg);
    z-index: -1;
  }

  .hero-blue::after {
    left: -46%;
    background: rgba(18, 100, 134, .48);
    transform: skew(-16deg);
    z-index: -2;
  }

  /*
   * 元サイト:
   * col-sm-6 = 50%
   * c-inner--xl = 60px
   */
  .hero-text {
    position: relative;
    width: 50%;
    max-width: none;
    box-sizing: border-box;

    margin: 0;
    margin-left: calc((100% - 1170px) / 2);

    padding: 60px;
    z-index: 3;
  }

  /*
   * 元サイト c-heading--lg:
   * 3.6rem / line-height 1.3
   */
  .hero-text h1 {
    margin: 0 0 30px;
    padding: 0;

    font-size: 3.6rem;
    line-height: 1.3;
    font-weight: normal;
    color: #fff;
  }

  /*
   * 元HTML data-custom-pc-fontsize="18px"
   */
  .hero-text p {
    margin: 0;
    padding: 0;

    font-size: 18px;
    line-height: 1.8;
    color: #fff;
  }
}


/* ===== Original typography correction ===== */

html {
  font-size: 62.5%;
}

body {
  color: #05161a;
  font-size: 14px;
  line-height: 1.6;
}

/* Hero typography */
.hero-text h1 {
  margin: 0 0 30px;
  font-size: 3.6rem;
  line-height: 1.3;
  font-weight: normal;
}

.hero-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

/* Section headings */
.section-title span {
  font-size: 2.8rem;
  font-weight: normal;
}




/* ===== Original content font sizes ===== */
@media (min-width: 769px) {

  /* 企業理念 */
  .text-block {
    font-size: 18px;
    line-height: 1.6;
  }

  /* 事業内容 導入文 */
  .services-intro {
    font-size: 18px;
    line-height: 1.6;
  }

  /* 事業内容 4項目 */
  .service-item {
    font-size: 18px;
    line-height: 1.6;
  }

  .service-item p {
    font-size: 18px;
    line-height: 1.6;
  }
}


/* ===== PC typography final correction ===== */
@media (min-width: 769px) {
  .text-block p,
  .services-intro,
  .service-item p {
    font-size: 18px;
    line-height: 1.6;
  }
}


/* ===== PC typography / spacing correction ===== */
@media (min-width: 769px) {

  /* Hero: 上側の余白を広げる */
  .hero-text {
    padding-top: 80px;
  }

  /* サービス見出し */
  .service-item h3 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: normal;
  }

  /* お問い合わせ */
  .contact-title {
    font-size: 18px;
  }

  .contact-columns p {
    font-size: 16px;
    line-height: 1.6;
  }

  .contact-phone .phone-number {
    font-size: 24px;
  }

  .contact-columns small {
    font-size: 13px;
  }

  .contact-button {
    font-size: 16px;
  }

  /* Footer */
  .footer-company p {
    font-size: 14px;
    line-height: 1.7;
  }

  .footer-nav a {
    font-size: 14px;
  }

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


/* Hero text: vertical center */
@media (min-width: 769px) {
  .hero-blue {
    display: flex;
    align-items: center;
  }

  .hero-text {
    padding-top: 0;
    padding-bottom: 0;
  }
}


/* ===== Hero original theme color ===== */
@media (min-width: 769px) {
  .hero-blue::before {
    background: rgba(12, 89, 128, .97);
  }

  .hero-blue::after {
    background: rgba(255, 255, 255, .5);
  }
}


@media (min-width: 769px) {
  .hero-text h1,
  .hero-text p {
    color: #05161a;
  }
}


@media (min-width: 769px) {
  .hero-text h1,
  .hero-text p {
    color: #fff;
  }
}


/* Header / Footer navigation size */
@media (min-width: 769px) {
  .header-nav a {
    font-size: 16px;
  }

  .footer-nav a {
    font-size: 16px;
  }
}


/* Contact guide text: keep on one line */
@media (min-width: 769px) {
  .contact-phone > p {
    white-space: nowrap;
  }
}


/* Contact guide text: keep both columns on one line */
@media (min-width: 769px) {
  .contact-phone > p,
  .contact-form-link > p {
    white-space: nowrap;
  }
}


/* ===== Contact panel PC layout correction ===== */
@media (min-width: 769px) {
  .contact-box {
    width: 760px;
  }

  .contact-columns {
    grid-template-columns: 1fr 1fr;
    padding: 14px 15px 17px;
  }

  .contact-phone,
  .contact-form-link {
    padding-left: 15px;
    padding-right: 15px;
  }

  .contact-phone > p,
  .contact-form-link > p {
    white-space: nowrap;
  }
}

/* ===== Mobile hero typography ===== */
@media (max-width: 768px) {
  .hero-text {
    padding-top: 35px;
    padding-bottom: 35px;
  }

  .hero-text h1 {
    font-size: 27px;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: 13px;
    line-height: 1.6;
  }
}
@media (min-width: 769px) {
  .service-item h3.service-title-small {
    font-size: 17px;
  }
}
