@charset "UTF-8";

/* ========================================
  トップページ
======================================== */

/* FV
---------------------------------------- */
.top-fv {
  position: relative;
  padding-bottom: 100vh;

  figure {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);

    &::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(27, 68, 118, .4);
    }
    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity .8s ease;

      &.is-visible {
        opacity: 1;
      }
    }
  }
}

/* main
---------------------------------------- */
.top-main {
  background-color: #FFF;
}

/* ABOUT US
---------------------------------------- */
.top-aboutus {
  background: url(../images/top/top-aboutus-bg.webp) center center / cover no-repeat;
  text-align: center;
}

/* OUR BUSINESS
---------------------------------------- */
.top-biz-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .2rem;

  a {
    figure {
      position: relative;
      aspect-ratio: 64 / 40;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s ease;
      }
      figcaption {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 2.5rem;
        font-weight: 500;
        letter-spacing: .2em;
        color: #FFF;

        &::before {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: var(--color-primary);
          opacity: .5;
          mix-blend-mode: multiply;
        }
        span {
          position: relative;
        }
      }
    }
    @media (hover: hover) {
      &:hover {
        figure img {
          transform: scale(1.1);
        }
      }
    }
  }
  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

/* BASE INTRODUCTION
---------------------------------------- */
.top-base__block {
  margin-top: 7rem;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 2rem 3%;

  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}
.top-base__title {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;

  .base-name {
    line-height: 1.6;
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-primary);
  }
  @media screen and (max-width: 767px) {
    flex-direction: column;
    gap: 1rem 0;
  }
}
.top-base__text {
  .base-outline {
    border-top: solid 1px var(--color-primary);
    display: grid;
    grid-template-columns: 5em 1fr;

    > * {
      padding: 1em 0;
      border-bottom: solid 1px var(--color-primary);
      font-size: 1.3rem;
      letter-spacing: .05em;
    }
    dt {
      font-weight: 500;
    }
  }
}
.top-base__map {
  iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 37 / 25;
    vertical-align: bottom;
  }
}


/* ========================================
  加賀ワークスについて
======================================== */

/* GREETING
---------------------------------------- */
.about-greeting {
  p:not([class]) {
    margin-top: 1.5em;
    text-align: center;
  }
}

/* ACTION GUIDELINES
---------------------------------------- */
.about-guidelines__block {
  padding: 8rem 0;
  border-top: solid 1px var(--color-primary);
  display: flex;
  flex-direction: row-reverse;
  gap: 0 6%;

  &:last-of-type {
    border-bottom: solid 1px var(--color-primary);
  }
  > * {
    flex: 1;
  }
  .guidelines-catch {
    line-height: 1.4;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: .2em;
    color: var(--color-primary);
  }
  p:not([class]) {
    margin-top: 1em;
    font-size: 1.5rem;
  }
  @media screen and (max-width: 767px) {
    padding: 4rem 0;
    flex-direction: column;

    p:not([class]) {
      margin-bottom: 2rem;
    }
  }
}

/* SUSTAINABILITY
---------------------------------------- */
.about-sdgs {
  .sdgs-subttl {
    display: inline-block;
    margin: 6rem 0 2rem;
    padding: 0 1em;
    background-color: var(--color-primary);
    font-size: 1.6rem;
    font-weight: 500;
    color: #FFF;
  }
}

/* HISTORY OF THE COMPANY
---------------------------------------- */
.about-history__list {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: .4rem 0;
  line-height: 1.6;
  font-size: 1.4rem;

  > * {
    background-color: #dde3ea;
  }
  dt {
    min-height: 4.2rem;
    padding: .5rem 2.5rem;
    display: flex;
    align-items: center;

    span {
      &:first-child {
        font-family: var(--font-en);
        font-size: 2rem;
        color: var(--color-primary);
      }
      &:last-child {
        margin-left: auto;
        font-family: var(--font-ja);
        font-size: 1.4rem;
        font-weight: 500;
        color: #000;
      }
    }
  }
  dd {
    min-height: 4.2rem;
    padding: .5rem 2.5rem .5rem 0;
    display: flex;
    align-items: center;
  }
}


/* ========================================
  製造業
======================================== */

/* Biz01 Block01
---------------------------------------- */
.biz01-block01 {
  padding: min(5%, 4rem);
  border-radius: 2rem;
  background-color: #FFF;
  box-shadow: 0 0 .8rem rgba(35, 24, 21, .3);

  &:not(:first-of-type) {
    margin-top: 7rem;
  }
  @media screen and (max-width: 767px) {
    border-radius: 1rem;

    &:not(:first-of-type) {
      margin-top: 4rem;
    }
  }
}
.biz01-block01__box01 {
  @media screen and (min-width: 768px) {
    display: grid;
    grid-template-columns: 61fr 45fr;
    grid-template-areas: "image text";
    gap: 0 3%;

    > div {
      grid-area: text;
    }
    > figure {
      grid-area: image;
    }
  }
  @media screen and (max-width: 767px) {
    > div {
      margin-bottom: 2rem;
    }
  }
}
.biz01-block01__box02 {
  padding-top: 3rem;
}
.biz01-block01__text {
  .title {
    margin-bottom: 1em;
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-primary);
  }
  @media screen and (max-width: 767px) {
    .title {
      margin-bottom: .5em;
      font-size: 2.4rem;
    }
  }
}
.biz01-block01__close {
  margin-top: -1.5em;
  text-align: center;
  cursor: pointer;
  font-size: 2rem;
  color: var(--color-primary);

  @media (hover: hover) {
    &:hover {
      opacity: .7;
    }
  }
  @media screen and (max-width: 767px) {
    margin: -.5em 0;
  }
}
.biz01-block01__detail {
  margin-bottom: 5rem;
  display: grid;
  grid-template-columns: 43fr 63fr;
  gap: 0 3%;

  .title {
    margin-bottom: .5em;
    font-size: 2rem;
    color: var(--color-primary);
  }
  .text {
    font-size: 1.5rem;
  }
  figure {
    display: flex;
    gap: 0 4%;
  }
  @media screen and (max-width: 767px) {
    margin-bottom: 3rem;
    grid-template-columns: 1fr;
    gap: 2rem 0;

    figure {
      gap: 0 .5rem;
    }
  }
}

/* Biz01 Block02
---------------------------------------- */
.biz01-block02 {
  .title {
    margin-bottom: 1em;
    text-align: center;
    font-size: 3rem;
    font-weight: 500;
    color: var(--color-primary);
  }
  .subttl {
    margin-bottom: .75em;
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-primary);
  }
  .table {
    td {
      padding-left: 2em;
    }
    + p {
      margin-top: 1em;
    }
  }
}
.biz01-block02__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 3%;

  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 4rem 0;
  }
}
.biz01-block02__box {
  padding: 5%;
  background-color: #FFF;

  p {
    margin-top: 1em;
  }
}
.biz01-block03 {
  padding: min(5%, 4rem);
  border-radius: 2rem;
  background-color: #FFF;
  box-shadow: 0 0 .8rem rgba(35, 24, 21, .3);

  .title {
    margin-bottom: 1em;
    text-align: center;
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-primary);
  }
  .subttl {
    margin-bottom: 1em;
    color: var(--color-primary);
  }
  @media screen and (max-width: 767px) {
    border-radius: 1rem;
  }
}

/* Biz01 Block03
---------------------------------------- */
.biz01-block03__inner {
  display: grid;
  grid-template-columns: 38fr 70fr;
  gap: 0 3%;

  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 3rem 0;
  }
}
.biz01-block03__text {
  display: flex;
  flex-direction: column;

  > :last-child {
    margin-top: auto;
  }
}

/* Biz01 Block04
---------------------------------------- */
.biz01-block04__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem 7em;
  font-weight: 500;
  color: var(--color-primary);

  @media screen and (max-width: 767px) {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem 1em;
  }
}
.biz01-block04__notes {
  margin: 3rem 5% 0 0;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}


/* ========================================
  人材事業
======================================== */

/* Biz02 Block01
---------------------------------------- */
.biz02-block01__youtube {
  iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* Biz02 Block02
---------------------------------------- */
.biz02-block02__header {
  margin-bottom: 1.5em;
  text-align: center;
  font-size: 2.3rem;
  font-weight: 500;
  color: var(--color-primary);
}
.biz02-block02__box {
  padding: 2rem 4rem;
  border-radius: 2rem;
  background-color: #FFF;
  box-shadow: 0 0 .8rem rgba(35, 24, 21, .3);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0 5%;

  &:not(:first-of-type) {
    margin-top: 5rem;
  }
  @media screen and (min-width: 768px) {
    grid-template-areas: "image text";

    > div {
      grid-area: text;
    }
    > figure {
      grid-area: image;
    }
  }
  @media screen and (max-width: 767px) {
    padding: min(5%, 3rem);
    border-radius: 1rem;
    grid-template-columns: 1fr;
    gap: 2rem 0;

    &:not(:first-of-type) {
      margin-top: 4rem;
    }
  }
  .title {
    margin-bottom: .5em;
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-primary);

    span {
      margin-right: .5em;
      font-family: var(--font-en);
      font-size: calc((30 / 22) * 1em);
    }
  }
}


/* ========================================
  コメダ珈琲事業
======================================== */

/* Biz03 Block02
---------------------------------------- */
.biz03-block02__header {
  text-align: center;

  img {
    width: min(60%, 28rem);
  }
}
.biz03-block02__box {
  min-height: 40rem;
  margin-top: 7rem;
  border-radius: 2rem;
  background-color: #FFF;
  box-shadow: 0 0 .8rem rgba(35, 24, 21, .3);
  display: grid;
  overflow: hidden;

  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "image text";

    > div {
      grid-area: text;
    }
    > figure {
      grid-area: image;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }
  @media screen and (max-width: 767px) {
    margin-bottom: 4rem;
    border-radius: 1rem;
  }
}
.biz03-block02__text {
  padding: 4% 10%;
  line-height: 1.75;

  .title {
    float: left;
    margin-bottom: .5em;
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--color-primary);
  }
  .gmap {
    float: right;
    margin-top: .8em;

    a {
      text-decoration: underline;
      letter-spacing: 0;
      color: #00b4ed;

      @media (hover: hover) {
        &:hover {
          text-decoration: none;
        }
      }
    }
  }
  .address {
    clear: both;
  }
  .detail {
    margin-top: 1em;
    text-decoration: underline;
  }
  .table {
    width: auto;
    margin-top: .5em;

    th {
      padding-right: 2em;
    }
  }
  @media screen and (max-width: 767px) {
    padding: 5%;
  }
}


/* ========================================
  設備一覧
======================================== */

/* Biz03 Block02
---------------------------------------- */
.eqpt-sec {
  .base-name {
    margin-bottom: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em 0;
    font-size: 2.3rem;
    font-weight: 500;
    color: var(--color-primary);

    &::after {
      content: "";
      width: 2em;
      height: 0;
      border-bottom: solid .2rem currentColor;
    }
  }
}
.eqpt-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 5%;

  &.u-col4 {
    grid-template-columns: repeat(4, 1fr);
  }
  figcaption {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
    line-height: 1.46;
    text-align: center;
    font-size: 1.5rem;

    .cap01 {
      font-weight: 500;
    }
    .left {
      text-align: left;
    }
  }
  .text {
    margin-top: 3em;
    font-size: 1.3rem;

    &.option {
      margin-top: 1em;
    }
    &.center {
      text-align: center;
    }
  }
  .spec {
    margin-top: 1em;
    line-height: 1.6;
    font-size: 1.3rem;
    font-weight: 500;
  }
  .table-cadcam {
    display: flex;
    align-items: center;

    table {
      width: 100%;
      border: solid 1px var(--color-primary);
      text-align: center;

      th, td {
        padding: .5rem 1rem;
        border: solid 1px var(--color-primary);
        font-size: 1.3rem;
      }
      th {
        background-color: var(--color-primary);
        color: #FFF;

        &:not(:last-child) {
          border-right-color: #FFF;
        }
      }
    }
  }
  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;

    &.u-col4 {
      grid-template-columns: 1fr;
    }
    li:not(:last-child) {
      padding-bottom: 3rem;
      border-bottom: solid 1px var(--color-border-gray);
    }
    .sp-custom {
      width: 65%;
      margin: 0 auto;
    }
  }
}
.eqpt-subttl {
  margin-bottom: 2em;
  font-size: 1.5rem;
  font-weight: 500;

  &.center {
    text-align: center;
  }
}
.eqpt-table {
  + .eqpt-table {
    margin-top: 7rem;
  }
  th, td {
    padding: 1rem;
    text-align: center;
    font-size: 1.3rem;
  }
  thead {
    tr {
      background-color: var(--color-primary);
      color: #FFF;
    }
    th:not(:last-child) {
      border-right: solid 1px currentColor;
    }
  }
  tbody {
    tr {
      &:nth-child(odd) {
        background-color: #FFF;
      }
      &:nth-child(even) {
        background-color: #d1dae4;
      }
    }
    td:not(:last-child) {
      border-right: solid 1px var(--color-border-gray);
    }
  }
}
.eqpt-notes {
  margin-top: 5em;
  padding-left: 1em;
  text-indent: -1em;
  font-size: 1.2rem;
  letter-spacing: .05em;

  + .eqpt-notes {
    margin-top: 1em;
  }
}


/* ========================================
  お問い合わせ
======================================== */

/* Kv
---------------------------------------- */
.contact-kv {
  aspect-ratio: 192 / 98;
  width: 100%;
  max-height: 40rem;
  background-color: var(--color-primary);

  .kv__inner {
    padding-top: var(--header-height);
  }
  @media screen and (max-width: 767px) {
    .kv__inner {
      padding-top: 0;
    }
  }
}

/* Contact List
---------------------------------------- */
.contact-list {
  border-top: solid 1px var(--color-border-gray);
  display: grid;
  grid-template-columns: 18em 1fr;

  > * {
    padding: 3rem 0;
    border-bottom: solid 1px var(--color-border-gray);
    display: flex;
  }
  dt {
    align-items: center;
    gap: 0 1rem;
  }
  dt.required {
    &::after {
      content: "必須";
      padding: 0 .5em;
      background-color: #C00;
      font-size: 1.2rem;
      color: #FFF;
    }
  }
  dd {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  dd.privacy-check {
    .notes {
      margin-bottom: 1em;
      font-size: 1.4rem;
    }
    label {
      display: flex;
      align-items: center;
      gap: 0 1rem;
      cursor: pointer;
    }
  }
  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;

    > dt {
      padding: 1em 0 .5em;
      border-bottom: none;
    }
    > dd {
      padding: 0 0 1em;
    }
  }
}

/* Contact Form
---------------------------------------- */
.contact-form {
  input[type="text"], textarea {
    width: 100%;
    padding: 1rem;
    outline: none;
    background-color: var(--color-background);
  }
  input[type="checkbox"] {
    width: 2rem;
    height: 2rem;
  }
  textarea {
    height: 20em;
  }
  .submit {
    margin-top: 5rem;
    text-align: center;
  }
}
.contact-thanks {
  text-align: center;

  .title {
    margin-bottom: 1em;
    font-size: 2.4rem;
    color: var(--color-primary);
  }
  .text {
    margin-bottom: 5em;
  }
}
.contact-main {
  button {
    width: min(60%, 30rem);
    padding: 1.5rem;
    color: #FFF;
    opacity: .7;
    transition: opacity .3s ease;

    &[type="submit"],
    &#mfp_button_send {
      background-color: var(--color-primary);
    }
    &[type="reset"],
    &#mfp_button_cancel {
      width: min(35%, 20rem);
      background-color: #999;
    }
    @media (hover: hover) {
      &:hover {
        opacity: 1;
      }
    }
  }
}

/* Contact Aside
---------------------------------------- */
.contact-main + .footer-contact {
  display: none;
}