@charset "UTF-8";

/* =====================
  common
===================== */
article .u-inner {
  max-inline-size: 1120px;
}

/* =====================
  bg
===================== */
/* ==== grid system ==== */
article.bg .wrap {
  overflow: hidden;
}
@media print, screen and (min-width: 768px) {
  article.bg .wrap {
    padding-top: 123px;
  }
}
article.bg .u-inner {
  display: grid;
  grid-template-areas:
    'h2 h2'
    'h3 picture'
    'p picture'
    'author picture';
  grid-template-columns: 610px auto;
  grid-template-rows: auto auto 1fr;
  gap: 0 70px;
  margin-bottom: 128px;
}
@media not all and (min-width: 768px) {
  article.bg .u-inner {
    display: block;
    margin-bottom: calc((100 / 750) * 118 * 1vw);
  }
}
article.bg .u-inner h2 {
  grid-area: h2;
}
article.bg .u-inner h3 {
  grid-area: h3;
}
article.bg .u-inner picture {
  grid-area: picture;
}
article.bg .u-inner p {
  grid-area: p;
}
article.bg .u-inner .author {
  grid-area: author;
}
@media print, screen and (min-width: 768px) {
  article.bg .u-inner picture {
    margin-top: 14px;
  }
}

@media not all and (min-width: 768px) {
  article.bg .u-inner {
    padding-top: calc((100 / 750) * 115 * 1vw);
    padding-inline: calc((100 / 750) * 40 * 1vw);
    padding-bottom: calc((100 / 750) * 0 * 1vw);
  }
}

/* =====================
  ごあいさつ
===================== */
/* ==== h2 ==== */
article.bg h2 {
  margin-bottom: 28px;
}
@media not all and (min-width: 768px) {
  article.bg h2 {
    margin-bottom: calc((100 / 750) * 26 * 1vw);
  }
}

/* ==== h3 ==== */
article.bg h3 {
  font-size: 30px;
  font-family: var(--mincho);
  line-height: 1.8;
  margin-bottom: 32px;
  font-weight: bold;
}
@media not all and (min-width: 768px) {
  article.bg h3 {
    font-size: calc((100 / 750) * 34 * 1vw);
    margin-bottom: calc((100 / 750) * 34 * 1vw);
    line-height: 1.6;
  }
}

/* ==== picture ==== */
article.bg picture {
  margin-inline: 0 calc(50% - 50vw);
  height: 600px;
}
@media not all and (min-width: 768px) {
  article.bg picture {
    width: 100vw;
    display: block;
    margin-bottom: 6.3vw;
    height: calc((100 / 750) * 550 * 1vw);
  }
}
article.bg picture img {
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: cover;
}
@media not all and (min-width: 768px) {
  article.bg img {
    margin-bottom: calc((100 / 750) * 60 * 1vw);
  }
}

/* ==== p ==== */
article.bg p {
  line-height: 2.12;
  margin-bottom: 45px;
}
@media not all and (min-width: 768px) {
  article.bg p {
    font-size: calc((100 / 750) * 26 * 1vw);
    margin-bottom: calc((100 / 750) * 38 * 1vw);
    line-height: 1.76;
  }
}

/* ==== author ==== */
article.bg .author {
  display: grid;
  gap: 0 20px;
  align-items: center;
}
@media not all and (min-width: 768px) {
  article.bg .author {
    justify-content: flex-end;
    gap: 0 calc((100 / 750) * 30 * 1vw);
    font-size: calc((100 / 750) * 25 * 1vw);
  }
}
article.bg .author .unit[data-id='2'] {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0 20px;
}
@media not all and (min-width: 768px) {
  article.bg .author .unit[data-id='2'] {
    gap: 0 calc((100 / 750) * 31 * 1vw);
  }
}
article.bg .author span:last-child {
  font-family: var(--author);
  font-size: 32px;
  translate: 0 -9%;
}
@media not all and (min-width: 768px) {
  article.bg .author span:last-child {
    font-size: calc((100 / 750) * 50 * 1vw);
  }
}

/* ==== marquee ==== */
article.bg .u-loop {
  --width: 2500;
  --between: 20;
  position: relative;
  overflow: hidden;
  height: 250px;
  pointer-events: none;
  margin-bottom: 120px;
}
@media not all and (min-width: 768px) {
  article.bg .u-loop {
    --width: calc((100 / 750) * 2500 * 1vw);
    --between: calc((100 / 750) * 20 * 1vw);
  }
}
@media not all and (min-width: 768px) {
  article.bg .u-loop {
    height: calc((100 / 750) * 250 * 1vw);
    margin-bottom: calc((100 / 750) * 113 * 1vw);
  }
}
article.bg .u-loop::before,
article.bg .u-loop::after {
  content: '';
  position: absolute;
  width: calc(var(--width) * 1px);
  height: 100%;
  background-image: url('../../img/company/02.png?34a50b91-98eb-5de2-b826-43d77b548168');
  background-size: cover;
  animation: u-loop 80s linear infinite;
}
@media not all and (min-width: 768px) {
  article.bg .u-loop::before,
  article.bg .u-loop::after {
    background-size: contain;
    width: var(--width);
  }
}
article.bg .u-loop::after {
  left: calc((var(--width) * 1px) + (var(--between) * 1px));
}
@media not all and (min-width: 768px) {
  article.bg .u-loop::after {
    left: calc((var(--width) + var(--between)));
  }
}
@keyframes u-loop {
  0% {
    translate: 0 0;
  }
  100% {
    translate: -100% 0;
  }
}

/* =====================
  経営理念
===================== */
/* ==== h2 ==== */
article[data-id='philosophy'] {
  overflow: hidden;
}
article[data-id='philosophy'] .u-inner {
  max-inline-size: 1300px;
}
article[data-id='philosophy'] hgroup {
  position: relative;
  width: 100vw;
  text-align: center;
  margin-inline: calc(50% - 50vw);
  display: grid;
  align-items: center;
  grid-template-areas:
    'before en after'
    '. h2 .';
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto 1fr;
  gap: 3px 31px;
  margin-bottom: 40px;
}
@media print, screen and (max-width: 1300px) {
  article[data-id='philosophy'] hgroup {
    margin-inline: auto;
    width: 100%;
    margin-bottom: calc((100 / 750) * 61 * 1vw);
  }
}
@media not all and (min-width: 768px) {
  article[data-id='philosophy'] hgroup {
    gap: calc((100 / 750) * 6 * 1vw) calc((100 / 750) * 57 * 1vw);
  }
}
article[data-id='philosophy'] hgroup h2 {
  grid-area: h2;
}
article[data-id='philosophy'] hgroup [lang='en'] {
  grid-area: en;
}
article[data-id='philosophy'] hgroup::before {
  grid-area: before;
}
article[data-id='philosophy'] hgroup::after {
  grid-area: after;
}
article[data-id='philosophy'] hgroup::before,
article[data-id='philosophy'] hgroup::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: #c9c9c9;
  top: 50%;
}
article[data-id='philosophy'] hgroup [lang='en'] {
  color: var(--red);
  font-size: 35px;
  text-transform: uppercase;
  letter-spacing: 8.75px;
}
@media not all and (min-width: 768px) {
  article[data-id='philosophy'] hgroup [lang='en'] {
    font-size: calc((100 / 750) * 50 * 1vw);
    letter-spacing: calc((100 / 750) * 12.5 * 1vw);
  }
}
article[data-id='philosophy'] h2 {
  font-family: var(--mincho);
  font-size: 18px;
  letter-spacing: 7.2px;
}
@media not all and (min-width: 768px) {
  article[data-id='philosophy'] h2 {
    font-size: calc((100 / 750) * 24 * 1vw);
    letter-spacing: calc((100 / 750) * 9.6 * 1vw);
    font-weight: bold;
  }
}

/* ==== picture ==== */
article[data-id='philosophy'] img {
  margin-inline: auto;
  display: block;
  aspect-ratio: 725 / 288;
  margin-bottom: 140px;
}
@media print, screen and (min-width: 768px) {
  article[data-id='philosophy'] img {
    translate: -9px 0;
  }
}
@media not all and (min-width: 768px) {
  article[data-id='philosophy'] img {
    translate: -1vw 0;
    width: calc((100 / 750) * 655 * 1vw);
    margin-bottom: calc((100 / 750) * 150 * 1vw);
  }
}

/* =====================
  会社概要
===================== */
article[data-id='profile'] {
  background: #f7f5f4;
  padding-block: 153px 130px;
}
@media not all and (min-width: 768px) {
  article[data-id='profile'] {
    padding-block: calc((100 / 750) * 168 * 1vw) calc((100 / 750) * 120 * 1vw);
    padding-inline: calc((100 / 750) * 40 * 1vw);
  }
}

/* ==== hgroup ==== */
article[data-id='profile'] hgroup {
  margin-bottom: 66px;
}
@media not all and (min-width: 768px) {
  article[data-id='profile'] hgroup {
    margin-bottom: calc((100 / 750) * 91 * 1vw);
  }
}

/* ==== table ==== */
article[data-id='profile'] table {
  margin-bottom: 43px;
}

@media not all and (min-width: 768px) {
  article[data-id='profile'] table {
    margin-bottom: calc((100 / 750) * 122 * 1vw);
  }
}

/* ==== h3 ==== */
article[data-id='profile'] h3 {
  text-align: center;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 4px;
  font-family: var(--mincho);
}
@media not all and (min-width: 768px) {
  article[data-id='profile'] h3 {
    margin-bottom: calc((100 / 750) * 20 * 1vw);
    font-size: calc((100 / 750) * 34 * 1vw);
  }
}
article[data-id='profile'] iframe {
  width: 100%;
  height: 300px;
}
@media not all and (min-width: 768px) {
  article[data-id='profile'] iframe {
    height: calc((100 / 750) * 460 * 1vw);
  }
}

/* =====================
  沿革
===================== */
article[data-id='history'] {
  padding-block: 153px 130px;
}
@media not all and (min-width: 768px) {
  article[data-id='history'] {
    padding-block: calc((100 / 750) * 168 * 1vw) calc((100 / 750) * 130 * 1vw);
    padding-inline: calc((100 / 750) * 40 * 1vw);
  }
}
/* ==== hgroup ==== */
article[data-id='history'] hgroup {
  margin-bottom: 68px;
}

@media not all and (min-width: 768px) {
  article[data-id='history'] hgroup {
    margin-bottom: calc((100 / 750) * 90 * 1vw);
  }
}

@media not all and (min-width: 768px) {
  .u-overhead {
    font-size: calc((100 / 750) * 36 * 1vw);
    margin-left: calc((100 / 750) * 0 * 1vw);
  }
}
