@charset "UTF-8";

/* =====================
  header
===================== */
.header .inner {
  z-index: 1;
}
.header::after {
  content: '';
  width: 100%;
  height: var(--header-nav-height);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: white;
}
@media not all and (min-width: 768px) {
  .header::after {
    background: unset;
  }
}

/* =====================
  main
===================== */
main {
  padding-top: var(--header-nav-height);
}

/* =====================
  u-head
===================== */
.u-head {
  display: grid;
  color: #2c2321;
  text-align: center;
  position: relative;
}
.u-head::before {
  content: '';
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url('../img/common/circle-line.png');
  position: absolute;
  left: 50%;
  opacity: 0.3;
  width: 165px;
  aspect-ratio: 165 / 131;
  translate: -50% 0;
  top: -11px;
}
@media not all and (min-width: 768px) {
  .u-head::before {
    width: calc((100 / 750) * 248 * 1vw);
    top: -3.4vw;
  }
}
.u-head .title {
  position: relative;
  font-weight: bold;
  font-size: 18px;
  font-family: var(--mincho);
  width: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}
.u-head .title::before,
.u-head .title::after {
  content: '';
  display: block;
  width: 90px;
  aspect-ratio: 14 / 8;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  mask-image: var(--icon-border);
  background-color: var(--orange);
}
@media not all and (min-width: 768px) {
  .u-head .title::before,
  .u-head .title::after {
    width: calc((100 / 750) * 135 * 1vw);
  }
}
.u-head .title::after {
  rotate: 0 1 0 180deg;
}
@media not all and (min-width: 768px) {
  .u-head .title {
    width: 100vw;
    padding-inline: calc((100 / 750) * 11 * 1vw);
    margin-inline: calc(50% - 50vw);
    font-size: calc((100 / 750) * 27 * 1vw);
    gap: calc((100 / 750) * 17 * 1vw);
  }
}
.u-head [lang='en'] {
  line-height: 1;
  position: relative;
  text-align: center;
  display: block;
  font-size: 60px;
  font-weight: 400;
  translate: 0 -10px;
}
@media not all and (min-width: 768px) {
  .u-head [lang='en'] {
    font-size: calc((100 / 750) * 90 * 1vw);
  }
}
.u-head [lang='en']::first-letter {
  color: var(--red);
}

/* =====================
  mv
===================== */
.mv {
  --left: 60px;
  margin-left: var(--left);
  position: relative;
}
@media not all and (min-width: 768px) {
  .mv {
    --left: calc((100 / 750) * 40 * 1vw);
  }
}

/* ==== img ==== */
.mv img {
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 400px;
}
@media not all and (min-width: 768px) {
  .mv img {
    max-height: calc((100 / 750) * 400 * 1vw);
  }
}

/* ==== h1 ==== */
.mv hgroup {
  width: fit-content;
  position: absolute;
  top: 166px;
  padding-block: 13px 35px;
  padding-inline: 60px 32px;
  left: 0;
  display: grid;
  gap: 11px;
  color: white;
  background: color-mix(in srgb, black 40%, transparent 100%);
}
@media not all and (min-width: 768px) {
  .mv hgroup {
    top: calc((100 / 750) * 118 * 1vw);
    padding-block: calc((100 / 750) * 14 * 1vw) calc((100 / 750) * 22 * 1vw);
    padding-inline: calc((100 / 750) * 40 * 1vw) calc((100 / 750) * 30 * 1vw);
    gap: 1.1vw;
  }
}
.mv hgroup [lang='en'] {
  font-size: 94px;
  font-weight: 400;
  padding-left: 19px;
  line-height: 1;
}
@media not all and (min-width: 768px) {
  .mv hgroup [lang='en'] {
    font-size: calc((100 / 750) * 94 * 1vw);
    padding-left: calc((100 / 750) * 20 * 1vw);
  }
}

.mv hgroup .title {
  font-size: 20px;
  font-weight: bold;
  display: grid;
  align-items: center;
  justify-content: flex-start;
  grid-auto-flow: column;
  font-family: var(--mincho);
  line-height: 1;
  gap: 20px;
}
@media not all and (min-width: 768px) {
  .mv hgroup .title {
    font-size: calc((100 / 750) * 26 * 1vw);
    gap: calc((100 / 750) * 20 * 1vw);
  }
}

.mv hgroup .title::before {
  content: '';
  width: 90px;
  aspect-ratio: 90 / 8;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  mask-image: var(--icon-border);
  background-color: currentColor;
}
@media not all and (min-width: 768px) {
  .mv hgroup .title::before {
    width: calc((100 / 750) * 90 * 1vw);
  }
}

/* ==== breadcrumb ==== */
.mv .breadcrumb {
  display: flex;
  font-size: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  padding-block: 15px;
  padding-right: 30px;
}
.mv .breadcrumb li {
  display: grid;
  grid-auto-flow: column;
  text-transform: uppercase;
}
.mv .breadcrumb li + li::before {
  display: grid;
  content: '›';
  margin-inline: 1em;
  place-content: center;
}
@media not all and (min-width: 768px) {
  .mv .breadcrumb {
    padding-block: calc((100 / 750) * 25 * 1vw);
    padding-right: calc((100 / 750) * 20 * 1vw);
    font-size: calc((100 / 750) * 22 * 1vw);
  }
  .mv .breadcrumb li + li::before {
    translate: 0 -0.35vw;
  }
}

/* =====================
  article
===================== */
article.bg {
  position: relative;
}
article.bg::before {
  content: '';
  pointer-events: none;
  position: absolute;
  top: -49px;
  left: 0;
  width: 685px;
  height: 232px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center;
  background-image: url('../img/common/second-bg.png');
}
@media not all and (min-width: 768px) {
  article.bg::before {
    width: calc((100 / 750) * 685 * 1vw);
    height: calc((100 / 750) * 232 * 1vw);
  }
}
body:where(.news, .sdgs, .product, .contact, .entry, .policy) article.bg {
  padding-block: 126px;
}
@media not all and (min-width: 768px) {
  body:where(.news, .sdgs, .product, .contact, .entry, .policy) article.bg {
    padding-block: calc((100 / 750) * 124 * 1vw) calc((100 / 750) * 114 * 1vw);
  }
}

/* =====================
  accordion
===================== */
.accordion-btn {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: space-between;
  width: 100%;
}
.accordion-btn::after {
  content: '';
  display: block;
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  aspect-ratio: 1 / 1;
  background: currentcolor;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  mask-image: var(--icon-plus);
  transform-origin: center;
  transition: rotate 250ms var(--easeInOutBack) 0s;
}
.accordion-btn.on::after {
  rotate: 0 0 1 -45deg;
}
.accordion {
  display: grid;
  overflow: hidden;
  animation: none;
  grid-template-columns: 1fr;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease 0ms;
  will-change: grid-template-rows;
}
.accordion-btn.on + .accordion {
  grid-template-rows: 1fr;
}

/* =====================
  local-nav
===================== */
.local-nav {
  gap: 0 40px;
  padding-top: 54px;
  display: flex;
  flex-wrap: wrap;
  padding-right: 30px;
  justify-content: flex-end;
}
@media not all and (min-width: 768px) {
  .local-nav {
    padding-left: calc((100 / 750) * 40 * 1vw);
    justify-content: flex-start;
    padding-top: calc((100 / 750) * 44 * 1vw);
    gap: calc((100 / 750) * 38 * 1vw) calc((100 / 750) * 27 * 1vw);
  }
}
.local-nav button {
  font-size: 17px;
  font-weight: 500;
  position: relative;
  border-bottom: 1px solid #ababab;
  padding-bottom: 17px;
  padding-right: 3em;
}
@media not all and (min-width: 768px) {
  .local-nav button {
    font-weight: normal;
    font-size: calc((100 / 750) * 26 * 1vw);
    padding-bottom: calc((100 / 750) * 25.8 * 1vw);
  }
}
.local-nav button::before,
.local-nav button::after {
  content: '';
  display: block;
  position: absolute;
}
.local-nav button::before {
  width: 20px;
  height: 3px;
  background: var(--red);
  left: 0;
  bottom: 0;
  translate: 0 50%;
}
@media not all and (min-width: 768px) {
  .local-nav button::before {
    width: calc((100 / 750) * 30 * 1vw);
    height: calc((100 / 750) * 5 * 1vw);
    bottom: -0.15vw;
  }
}
.local-nav button::after {
  width: 14px;
  aspect-ratio: 14 / 15;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  mask-image: var(--icon-arrow-down);
  background-color: var(--red);
  right: 1px;
  top: 5px;
}
@media not all and (min-width: 768px) {
  .local-nav button::after {
    right: calc((100 / 750) * 2 * 1vw);
    width: calc((100 / 750) * 21 * 1vw);
  }
}

@media print, screen and (min-width: 768px) {
  .local-nav-fixed article.bg {
    padding-top: 103px;
  }
  .local-nav-fixed .local-nav {
    position: fixed;
    width: 80px;
    right: 10px;
    top: 30%;
    background: var(--red);
    padding: 1em;
    border-radius: 50rem;
    display: grid;
    gap: 1em;
    z-index: 200;
    filter: drop-shadow(1px 1px 3px color-mix(in srgb, var(--red) 100%, transparent 50%));
    animation-name: slide-in;
    animation-duration: 600ms;
    animation-delay: 0ms;
    animation-timing-function: ease;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: forwards;
    animation-play-state: running;
  }
  @keyframes slide-in {
    0% {
      translate: 100% 0;
    }

    100% {
      translate: 0% 0;
    }
  }

  .local-nav-fixed .local-nav button {
    border: none;
    font-size: 13px;
    background: white;
    display: block;
    text-align: center;
    margin-inline: auto;
    padding: 0.5em;
    font-weight: bold;
    width: 100%;
    border-radius: 50rem;
    word-break: auto-phrase;
    aspect-ratio: 1 / 1;
    line-height: 1.2;
    overflow: hidden;
    color: white;
    filter: drop-shadow(1px 1px 3px color-mix(in srgb, var(--red) 100%, transparent 50%));
  }
  .ipad.local-nav-fixed .local-nav button {
    font-size: 9px;
  }
  .local-nav-fixed .local-nav button:before,
  .local-nav-fixed .local-nav button:after {
    display: none;
  }

  .local-nav-fixed .local-nav button:before {
    width: 100%;
    height: auto;
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    background: white;
    color: var(--red);
    display: grid;
    place-content: center;
    padding-inline: 0.4em;
    word-break: break-word;
  }
  .local-nav-fixed .local-nav button[data-text='ご挨拶']:before,
  .local-nav-fixed .local-nav button[data-text='名古屋']:before {
    padding-inline: 0;
  }
}
