/*
  Foundation
*/
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  height: 100dvh;
  width: 100%;
  font-size: 16px;
  font-family: var(--f-sans);
  color: #333;
}

:root {
  --c-main:#005087;
  --c-accent:#0096FA;
  --c-lite: #F3FAFF;
  --c-sub: #A2ACBD;
  --f-sans: 'Noto Sans JP', sans-serif;
  --f-serif: 'Noto Serif JP', serif;
  --first-img: url("/image/fv_top2.png");
}

@media screen and (min-width: 600px) and (max-width: 834px) {
  html {
    font-size: 15px;
  }
}

@media screen and (max-width: 599px) {
  html {
    font-size: 14px;
  }
}

/*
  Layout
*/
.l-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 2;
  padding: 0 0.618rem ;
}

.l-main {
  height: 100%;
  width: 100%;
}

.l-main__inner {
  width: 100%;
}

.l-section__inner {
  padding-top: 6.854rem;
  padding-bottom: 6.854rem;
}

.l-content__inner {
  padding: 4.236rem;
}

.l-card__inner {
  padding: 2.618rem;
}

.l-footer__inner {
  padding: 4.236rem 2.618rem 1.618rem 2.618rem;
}
/*
  Component
*/
.c-loading__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  z-index: 999;
  background-color: var(--c-lite);
}

.c-loading__img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10rem;
  height: 100%;
  background-image: url("/image/logo_favicon.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  animation: blinking 1s ease-in-out infinite alternate;
}

@keyframes blinking {
	0% {
    opacity: 0;
  }
	100% {
    opacity: 1;
  }
}

.c-width__controler {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto
}

.c-content-width__controler {
  /* font-size: 16px; */
  width: 640px;
  max-width: 640px;
}

.c-inner {
  margin: 0 auto;
  padding: 3rem 2rem;
}

.c-shadow {
  box-shadow: rgba(0,0,0,.1) 0 4px 12px;
}

.c-mask__bk {
  background-color: rgba(0,0,0,.4);
}

.c-mask__wh {
  background-color: rgba(255,255,255,.6);
}

.c-mask__main {
  background-color: #005187b2;
}

.c-font__color-wh {
  color: #fff;
}

.c-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--c-accent);
  border-radius: 3em;
  min-width: fit-content;
  width: 50%;
  max-width: 400px;
  min-height: 2.618rem;
  padding: 0.618rem 2.618rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.618em;
  color: #fff;
  transition: .3s;
  z-index: 0;
}

.c-btn:hover {
  box-shadow: rgba(0,0,0,.2) 0 4px 12px;
  transform: translateY(-3px);
}

.c-btn__readmore {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255,255,255,.0);
  border: solid 1px #fff;
  border-radius: 3em;
  width: fit-content;
  max-width: 200px;
  min-height: 25px;
  padding: 0.618em 2.618em;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.618em;
  color: #fff;
  transition: .3s;
  z-index: 0;
}

.c-btn__readmore:hover {
  background-color: rgba(255,255,255,.4);
}

.c-btn__3line {
  background-image: url("/image/menu_3line.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  cursor: pointer;
}

.c-btn__close {
  background-image: url("/image/menu_close.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  cursor: pointer;
}

.c-section__ttl {
  font-size: 1.618rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.618em;
  width: 90%;
  margin-bottom: 1rem;
}

.c-section__read {
  font-family: serif;
  font-size: 2.618rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  line-height: 1.618em;
  width: 90%;
}

.c-section__text {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.618em;
  width: 80%;
  max-width: 640px;
}

.c-section__img {
  width: 80%;
}

.c-section__table-container {
  width: 80%;
  max-width: 700px;
  table-layout: fixed;
}

.c-section__table-container * {
  padding: 1rem;
}

.c-section__table-container > * {
  border-bottom: 1px solid var(--c-main);
}

.c-section__table-container tr {
  border-bottom: 1px solid var(--c-main);
}

.c-section__table-ttl {
  font-size: 1.618rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.618em;
  text-align: center;
  padding-bottom: 2.618rem;
}

.c-section__table-headline th {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  width: 130px;
}

.c-section__table-text td {
  font-size: 1rem;
  font-weight:400;
  letter-spacing: 0.01em;
  line-height: 1.6em;
}

@media screen and (max-width: 599px) {


  .c-section__table-headline th {
    display: block;
    width: 100%;
  }
  
  .c-section__table-text td {
    display: block;
    width: 100%;
  }
}

.c-card__ttl {
  font-size: 1.618em;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.618em;
}

.c-card__text {
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.618em;
  max-width: 350px;
  height: calc(1.618em * 5);
  text-align: left;
}

.c-section-page__ttl {
  font-size: 2.618rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.618em;
}

.c-section-page__text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.618em;
}

.c-font__text {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.618em;
}

.c-ttlbar {
  position: relative;
}

.c-ttlbar::after {
  content: "";
  width: 6.854rem;
  height: 0.236rem;
  background-color: var(--c-main);
  position: absolute;
  bottom: -0.5em;
  left: 50%;
  transform: translateX(-50%);
}

.c-bg__main-color {
  background-color: var(--c-main);
}

.c-bg__lite-color {
  background-color: var(--c-lite);
}

.c-bg__cross {
  position: relative;
}

.c-bg__cross::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(255,255,255,.0);
  opacity: 0.3;
  background: radial-gradient(circle, transparent 20%, #fff 20%, #fff 80%, transparent 80%, transparent), radial-gradient(circle, transparent 20%, #fff 20%, #fff 80%, transparent 80%, transparent) 10px 10px, linear-gradient(var(--c-main) 0.8px, transparent 0.8px) 0 -0.4px, linear-gradient(90deg, var(--c-main) 0.8px, #fff 0.8px) -0.4px 0;
  background-size: 20px 20px, 20px 20px, 10px 10px, 10px 10px;
  z-index: -1;
}

.c-bg__img-cover {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.c-bg__company-img {
  position: relative;
}

.c-bg__company-img::after {
  content: "";
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("/image/bg_company.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.c-hover-animation__border-right-slide a {
  padding-bottom: 5px;
  position: relative;
}

.c-hover-animation__border-right-slide a::before {
  background: var(--c-main);
  content: '';
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
  margin: auto;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform .3s;
}

.c-hover-animation__border-right-slide a:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}

.c-border-bottom::after {
  background: var(--c-main);
  content: '';
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
}

.c-hover-animation__bg-right-slide a {
  position: relative;
  z-index: 0;
}

.c-hover-animation__bg-right-slide a::after {
  background: var(--c-main);
  content: "";
  display: block;
  width: 120%;
  height: 100%;
  position: absolute;
  left: -10%;
  bottom: 0;
  margin: auto;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform .3s;
  z-index: -1;
}

.c-hover-animation__bg-right-slide a:hover {
  color: #fff;
}

.c-hover-animation__bg-right-slide a:hover::after {
  transform-origin: left top;
  transform: scale(1, 1);
}


/*
  Project
*/
.p-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr 2.5rem;
  width: 100%;
}

.p-header__img__wrapper {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  height: 100%;
  max-height: 2.618rem;
}

@media screen and (max-width: 834px) {
  .p-header__img__wrapper {
    max-height: none;
  }  
}

.p-header__img {
  height: 100%;
  object-fit: contain;
  justify-self: start;
  align-self: center;
}

.p-header__dial {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.c-btn__dial {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  max-height: 2.618rem;
  padding: 0 1.618rem 0 2.618rem;
  font-size: 1.618rem;
  text-wrap: nowrap;
  border-radius: 0px 0px 1rem 1rem;
  position: relative;
}

.c-btn__dial::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.618rem;
  transform: translateY(-50%);
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  aspect-ratio: 1 / 1;
  height: 0.8em;
}

.p-header__tel {
  color: #fff;
  background-color: var(--c-main);
}

.p-header__tel::before {
  background-image: url("/image/icon_tel.svg");
}

.p-header__fax {
  pointer-events: none;
  border: solid 1px #333;
  border-top: none;
}

.p-header__fax::before {
  background-image: url("/image/icon_fax.svg");
}

.p-header__btn {
  grid-column: 2 / 3;
  aspect-ratio: 1 / 1;
  height: 90%;
  max-height: 3rem;
  margin-right: 0.618rem;
  background-color: var(--c-main);
  border-radius: 5px;
  justify-self: end;
  align-self: center;
}

.p-header__nav {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  justify-self: center;
  align-self: center;
}

.p-header__nav > * + * {
  border-left:1px solid #ddd;
}

.p-header__nav > * {
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.618em;
  letter-spacing: 0.05em;
  padding: 0 1em;
}

@media screen and (max-width: 834px) {
  .p-header {
    display: grid;
    grid-template-columns: 1fr 4rem;
    grid-template-rows: 4rem;
  }  

  .p-header__nav {
    position: absolute;
    top: 0;
    width: 100dvw;
    height: 100dvh;
    background-color: rgba(255,255,255,.9);
    flex-direction: column;
    z-index: -1;
    justify-content: flex-start;
    padding-top: 2.618rem;
  }

  .p-header__nav > * + * {
    border-left: none;
    border-top:1px solid #ddd;
  }
  
  .p-header__nav > * {
    width: 90%;
    font-size: 1.3rem;
    line-height: 1.618em;
    letter-spacing: 0.05em;
    padding: 0.6em 1em;
  }
}

.p-first__container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: flex-start;
  width: 100%;
  height: auto;
  min-height: 500px;
  overflow: hidden;
}

.p-first__img {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: var(--first-img);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  z-index: -1;
}

.p-first__ttl {
  position: absolute;
  top: 8vh;
  left: 8vw;
  display: inline-block;
  width: fit-content;
  font-size: 3.4rem;
  font-weight: 400;
  letter-spacing: .4em;
  line-height: 1.618em;
  padding: 0 1.618rem;
}

.p-first__ttl > div {
  margin-right: -.4em;
}

.p-first__read {
  display: block;
  width: 40%;
  margin-block-start: 1em;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1.618em;
  padding: 1.618rem;
}

.p-first__copy__img {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  aspect-ratio: 4 / 3;
  width: auto;
  height: 150dvh;
  /* background-image: var(--first-img); */
  background-image: url(/image/bg_mati_aiso.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.p-first__copy__container {
  width: 21rem;
  height: 100dvh;
  padding-left: 0.618rem;
  background: rgb(0,0,0);
  background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,80,135,0.7) 40%, rgba(0,80,135,1) 100%);
  z-index: 1;
}

.p-first__copy__ttl {
  display: inline-block;
  text-wrap: nowrap;
  font-size: 4.236rem;
  letter-spacing: 0.05em;
  font-family: 'Roboto', var(--f-sans), sans-serif;
  color: #111;
}

.p-first__copy__read {
  display: block;
  font-size: 1.618rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.618em;
  font-family: 'Sawarabi Gothic', var(--f-sans), sans-serif;
  color: #F3FAFF;
}

@media screen and (max-width: 834px) {
  .p-first__container {
    height: fit-content;
    min-height: auto;
    gap: 1.618rem;
    padding-top: 0;
    padding-left: 0;
  }

  .p-first__copy__img {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 4 / 3;
    width: auto;
    height: 150dvh;
    /* background-image: var(--first-img); */
    background-image: url(/image/bg_mati_aiso.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
  }
  
  .p-first__copy__container {
    width: 21rem;
    height: 100dvh;
    padding-left: 0.618rem;
    background: rgb(0,0,0);
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0,80,135,0.7) 40%, rgba(0,80,135,1) 100%);
    z-index: 1;
  }
  
  .p-first__copy__ttl {
    display: inline-block;
    text-wrap: nowrap;
    font-size: 4.236rem;
    letter-spacing: 0.05em;
    font-family: 'Roboto', var(--f-sans), sans-serif;
    color: #111;
  }
  
  .p-first__copy__read {
    display: block;
    font-size: 1.618rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.618em;
    font-family: 'Sawarabi Gothic', var(--f-sans), sans-serif;
    color: #F3FAFF;
  }
  

  .p-first__img {
    position: static;
    aspect-ratio: 1.618 / 1;
    width: 100%;
    border-radius: 0;
  }

  .p-first__ttl {
    position: static;
    margin-left: auto;
    margin-right: auto;
  }

  .p-first__read {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
  }
}

.p-section__pagename {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-section__nomal {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.618rem;
}

.p-section__table {
  display: grid;
  place-content: center;
  place-items: center;
}

.p-section-service-category__container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr auto;
  font-size: 0.85rem;
}

@media screen and (max-width: 834px) {
  .p-section-service-category__container {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
  }
}

.p-service__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 250px;
  gap: 1.618rem;
}

.p-service__card:hover {
  background-color: rgba(0,0,0,.2);
  transition: all .5s;
}

.p-company-info__container {
	display: grid;
  place-items: start;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto 1fr;
  aspect-ratio: 12 / 5;
  gap: 1.618rem;
}

.p-company-info__googlemap {
  grid-column-start: 2;
	grid-column-end: 3;
	grid-row-start: 1;
	grid-row-end: 3;
	width: 100%;
  height: 100%;
	border: none;
}

@media screen and (max-width: 834px) {
  .p-company-info__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.618rem;
  }

  .p-company-info__googlemap {
    grid-column-start: auto;
    grid-column-end: auto;
    grid-row-start: auto;
    grid-row-end: auto;
    min-height: 20rem;
    max-height: 30rem;
  }
  
}

.p-footer {
  width:100%;
  align-items: center;
  font-size: 0.85rem;
}

.p-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto;
  align-items: flex-start;
  justify-content: center;
  gap: 1.618rem;
}

.p-footer__address {
  width: 100%;
}

.p-handling__list {
  display: flex;
  flex-direction: column;  
  gap: 0.618rem;
}

.p-handling__ttl {
  font-size: 1.618em;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.p-sitemap__list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: start;
  gap: 1.618rem;
  width: 80%;
}

.p-copylight {
  grid-column: 1 / 4;
  width: 100%;
  text-align: center;
  line-height: 3em;
  font-size: max(0.875rem, 10px);
}

@media screen and (max-width: 834px) {
  .p-footer__inner {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 1fr auto;
  }

  .p-footer__address {
    grid-column: 1 / 2;
    max-width: 360px;
  }

  .p-handling__list {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .p-sitemap__list {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }

  .p-copylight {
    grid-column: 1 / 3;
  }
}

/*
  Utility
*/

.u-margin__top {
  margin-top: 1.618rem;
}

.u-margin__left {
  margin-left: 1.618rem;
}

.u-inlinblock {
  display: inline-block;
}

.u-font__sans {
  font-family: var(--f-sans)
}

.u-font__serif {
  font-family: var(--f-serif);
}

@media screen and (max-width: 599px) {
  .u-first__copy__ttl__s {
    color: #fff;
  }
}

@media screen and (min-width: 600px) and (max-width: 834px) {
  .u-first__img-clip {
    position: static;
    width: 100%;
    height: 60dvh;
    /* max-height: 500px;
    aspect-ratio: 7 / 5; */
  }
}

.u-company-info__img-size {
  width: 4rem;
}

.u-font-c__wh {
  color: #fff;
}

.u-service-category__item1 {
  background-image: url("/image/fv_boiler.jpg");
  grid-column: 1/4;
  grid-row: 1/2;
}

.u-service-category__item2 {
  background-image: url("/image/fv_air.jpg");
  grid-column: 4/7;
  grid-row: 1/2
}

.u-service-category__item3 {
  background-image: url("/image/fv_aircon.jpg");
  grid-column: 1/3;
}

.u-service-category__item4 {
  background-image: url("/image/fv_roadheating.jpg");
  grid-column: 3/5;
}

.u-service-category__item5 {
  background-image: url("/image/fv_maintenance.jpg");
  grid-column: 5/7
}

.u-service-category__item-height-l {
  height: 4.236rem;
}

.u-service-category__item-height-s {
  height: 6.854rem;
}

@media screen and (min-width: 600px) and (max-width: 834px) {
  .u-service-category__item-height-l, .u-service-category__item-height-s {
    height: 4.236rem;
  }
}

@media screen and (max-width: 599px) {
  .u-service-category__item-height-l, .u-service-category__item-height-s {
    height: 6.854rem;
  }
}

.u-alian__start {
  align-self: start;
}

.u-child__span__inlineblock span{
  display: inline-block;
}

.u-child__span__block span{
  display: block;
}

@media screen and (max-width: 599px) {
  .u-wrap-span__s span {
    display: block;
  }
}

.u-aspect__gold {
  aspect-ratio: 8 / 5;
}

.u-aspect__gold-2 {
  aspect-ratio: 8 / 3;
}

.u-aspect__silver {
  aspect-ratio: 7 / 5;
}

.u-aspect__silver-2 {
  aspect-ratio: 12 / 5;
}

.u-display__none {
  display: none;
}

.u-border__bottom {
  border-bottom: 2px dotted var(--c-sub);
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.u-copylight__border {
  border-top: 2px dotted var(--c-sub);
  margin-left: auto;
  margin-right: auto;
}

.u-font__palt {
  font-feature-settings: "palt";
}

.u-text__negative-margin-right {
  margin-right: -0.5em;
}