@charset 'utf8';

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', 'Noto Serif JP', 'Lato', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', sans-serif;
  letter-spacing: 0.1rem;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
}

p {
  margin: 0;
  font-size: 1rem;
  text-indent: 1rem;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/** ヘッダー **/
header {
  width: 100%;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fff;
  box-shadow: 0 0.2vw 5vw rgba(0, 0, 0, 0.1);
  letter-spacing: 0;
  z-index: 10;
}

header > div.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  margin: 0 auto 0;
  padding: 0;
}

header > div.container h1 {
  width: 100%;
  height: 3rem;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

header > div.container h1 a {
  color: #000;
  font-size: 1.5rem;
  line-height: 1.2;
}

/** お知らせ(News) **/
.top-news-section {
  background-color: #ddd;
}

.top-news-section > div.container {
  width: 100%;
  padding: 1rem;
}

.scroll-box {
  width: 95%;
  margin: 0 auto 0;
  padding: 0.5rem;
  border: 1px solid #ccc;
  background-color: #fff;
  box-shadow: inset 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
  overflow-y: scroll;
}

.top-news-section article {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  padding: 0.5rem;
  border-bottom: 1px solid #ccc;
}

.top-news-section article address {
  font-style: normal;
}

.top-news-section article:last-child {
  border-bottom: 0;
}

.top-news-section article p {
  text-indent: 0;
}

.top-news-section article div.article-title {
  display: flex;
  flex-direction: row-reverse;
  line-height: 1.25rem;
}

.top-news-section article div.article-title time {
  display: inline;
  padding: 2px 10px;
  font-weight: 600;
  color: #fff;
  background-color: #d4b6b3;
  text-align: center;
}

.top-news-section article div.article-title h6 {
  padding: 2px 10px;
  font-weight: 600;
}

@media (max-width: 844px) {
  .scroll-box {
    width: 100%;
  }

  .top-news-section > div.container {
    width: 100%;
    padding: 0 1rem 1rem;
  }

  .top-news-section article div.article-title {
    flex-direction: column-reverse;
  }

  .top-news-section article div.article-title time {
    max-width: 125px;
  }
}

/** 会社情報(Company) **/
.top-company-section h4+div {
  margin-bottom: 1rem;
}

.top-company-section p {
  padding: 0;
}

@media (max-width: 844px) {
  .top-company-section p {
    padding: 0.5rem;
  }
}

/** 持続可能性(Sustainability) **/
.text-box {
  padding: 1rem;
}

.text-box p {
  padding: 1rem;
}

@media (max-width: 844px) {
  .text-box {
    padding: 0;
  }

  .text-box p {
    padding: 0.5rem;
  }
}

/** 事業内容(Service) **/
.top-service-section h6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.top-service-section p {
  padding: 0.5rem;
}

.top-service-section h4+p,
.top-service-section h6+p {
  padding: 0.5rem 1rem 0.5rem 1rem;
}

.item-container {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 1rem 0;
}

.item-container .card-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-width: 320px;
  max-width: calc(50% - 1rem);
  padding: 1rem;
  border: 1px solid #000;
  border-radius: 1rem;
  background-color: #fff;
}

.item-container .card-box:first-child {
  max-width: unset;
}

.item-container .card-box h6 {
  width: 100%;
  justify-content: center;
}

.item-container .card-box p {
  text-align: left;
}

.item-container .card-box div {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: 100%;
  text-align: center;
}

.item-container .card-box div img {
  max-width: 120px;
  min-width: 80px;
  width: 100%;
  aspect-ratio: 1/1;
}

@media (max-width: 844px) {
  .item-container {
    padding: 0.5rem;
  }

  .item-container .card-box {
    width: 100%;
    max-width: unset;
  }
}

/** 問い合わせ(Contact) **/
.top-contact-section {
  margin-bottom: 4rem;
}

.top-contact-section p {
  padding: 0.5rem;
}
.top-contact-section div.form {
  display: flex;
  flex-direction: column;
  width: 95%;
  row-gap: 1rem;
  margin: 1rem auto 0;
}

.top-contact-section div.form > div {
  width: 100%;
  padding: 0 1rem 0 1rem;
  margin: 0 auto 0;
}

.top-contact-section div.form > div.harf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 1rem;
}

.top-contact-section div.form > div.harf > div {
  width: calc(50% - 1rem);
}

.top-contact-section div.form span {
  display: block;
}

.top-contact-section div.form span.require::after {
  content: '(*)';
  color: #f00;
}

.top-contact-section div.form input,
.top-contact-section div.form select {
  width: 100%;
  min-height: 2rem;
  padding: 0.25rem 0.5rem 0.25rem 0.5rem;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 3px double #ccc;
  border-radius: 0;
  outline: 0;
  background-color: #fff;
  color: #000;
}

.top-contact-section div.form input:focus,
.top-contact-section div.form select:focus {
  border-bottom: 3px solid #888;
}

.top-contact-section div.form textarea {
  width: 100%;
  min-height: 240px;
  padding: 0.25rem 0.5rem 0.5rem 0.5rem;
  outline: 0;
  border: 3px double #ccc;
  resize: none;
}

.top-contact-section div.form textarea:focus {
  border: 3px solid #888;
}

.top-contact-section div.form .error span {
  color: #f00;
}

.top-contact-section div.form .error input,
.top-contact-section div.form .error input:focus,
.top-contact-section div.form .error select,
.top-contact-section div.form .error select:focus,
.top-contact-section div.form .error textarea,
.top-contact-section div.form .error textarea:focus {
  border-color: #f00;
}

.top-contact-section .button-action {
  width: 50%;
  max-width: 200px;
  min-width: 160px;
  margin: 0 auto 0;
  padding: 0.5rem 0;
}

@media (max-width: 844px) {
  .top-contact-section div.form {
    padding: 0;
    margin: 1rem auto 1rem;
  }

  .top-contact-section div.form > div {
    padding: 0;
  }

  .top-contact-section div.form input,
  .top-contact-section div.form select,
  .top-contact-section div.form textarea {
    font-size: 16px;
  }

  .top-contact-section div.form select {
    width: 100%;
  }

  .top-contact-section div.form > div.harf {
    justify-content: center;
    flex-direction: column;
    padding-top: 0;
  }

  .top-contact-section div.form > div.harf > div {
    width: 100%;
  }
}

/** 問い合わせスクリプト **/
div.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

div.dialog {
  display: none;
  width: 100%;
  max-width: 640px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 0 5px #ddd;
  z-index: 110;
}

div.dialog > h3 {
  width: 100%;
  position: relative;
  text-align: center;
}

div.dialog > h3 .close {
  position: absolute;
  top: 2px;
  right: 2px;
  cursor: pointer;
}

div.dialog p {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0.5rem 0.25rem 0.5rem;
  text-indent: 0;
}

div.dialog p span {
  padding: 0 0.5rem 0 0.5rem;
  border-bottom: 3px double #ddd;
}

div.dialog p:not(:has(span)) {
  padding: 0.25rem 0.5rem 0 0.5rem;
}

div.dialog p:has(span#cf-body) {
  min-height: 80px;
  max-height: 120px;
  height: auto;
  width: calc(100% - 1rem);
  margin: 0 auto;
  overflow-y: scroll;
  border: 3px double #ddd;
}

div.dialog span#cf-body {
  white-space: pre-line;
  border: 0;
  padding: 0;
}

div.dialog .message-container {
  min-height: 1.5rem;
  text-align: center;
  color: rgb(83, 223, 118);
}

div.dialog .message-container.error {
  color: #f00;
}

div.dialog .action-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  padding: 1rem 0 0;
}

div.dialog .action-container .button-action {
  max-width: 140px;
  min-width: 80px;
  min-height: 48px;
  margin: 0;
  letter-spacing: 4px;
  padding-left: 4px;
}

div.dialog .action-container .button-action#btnEdit {
  background-color: #ccc;
  color: #000;
}

div.dialog .action-container .button-action#btnEdit:hover {
  background-color: #ddd;
  color: #111;
}

div.dialog div.scroll-box {
  border: 0;
  box-shadow: none;
  padding: 0;
}

@media (max-width: 844px) {
  div.overlay {
    background-color: #fff;
  }

  div.dialog {
    position: fixed;
    inset: 0;
    top: unset;
    left: unset;
    transform: unset;
    width: 100dvw;
    max-width: 100dvw;
    height: 100dvh;
  }

  div.dialog .action-container {
    flex-direction: column;
  }

  div.dialog div.scroll-box {
    height: 75dvh;
  }
}

/** アクセス(Access) **/
.top-access-section {
  background-color: #ddd;
  margin-bottom: 1rem;
}

.top-access-section .access-box {
  display: flex;
  flex-wrap: wrap;
  padding: 0.5rem;
  line-height: 2rem;
}

.top-access-section .access-box address p {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 0.5rem;
}

.top-access-section .link-box {
  background-color: #ddd;
  padding-bottom: 0.5rem;
}

.top-access-section .link-box a {
  display: block;
  position: relative;
  text-align: center;
}

.top-access-section .link-box a span {
  position: absolute;
  top: 0.25rem;
  right: 0;
}

.top-access-section .access-box address {
  font-style: normal;
}

.top-access-section .access-box address,
.top-access-section .access-box div.map {
  width: 50%;
  min-width: calc(390px - 2rem);
}

div.map iframe {
  width: 100%;
}

.top-access-section a.button-link {
  width: 60%;
  min-width: calc(390px - 2rem);
  margin: 0 auto 0;
}

.top-access-section .access-box address a {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

@media (max-width: 844px) {
  .top-access-section .access-box {
    row-gap: 1rem;
  }

  .top-access-section .access-box address,
  .top-access-section .access-box div.map {
    width: 100%;
    min-width: 100%;
  }

  .top-access-section a.button-link {
    width: calc(100% - 1rem);
    min-width: unset;
  }
}

/** フッター **/
footer {
  width: 100%;
  border-top: 1px solid #ccc;
}

footer > div.container {
  max-width: 950px;
  margin: 0 auto 0;
  position: relative;
}

footer > div.container p {
  font-size: 0.9rem;
  text-align: center;
  text-indent: 0;
}

/** ナビゲーション **/
div.navi {
  width: 100%;
  height: 100%;
  border-bottom: 1px solid #ccc;
}

div.navi > nav {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 950px;
  margin: 0 auto 0;
}

div.navi > .toggle-button {
  display: none;
}

div.navi > nav ul.menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

div.navi > nav ul.menu > li {
  display: flex;
  flex: 1;
  align-items: center;
  height: 100%;
}

div.navi > nav ul.menu > li label {
  width: 100%;
}

div.navi label input[type="checkbox"],
div.navi label input[type="radio"] {
  display: none;
}

li.nest-menu {
  position: relative;
}

li.nest-menu div.sub-menu {
  width: 100%;
  height: auto;
  max-height: 30vh;
  position: absolute;
  left: 0;
  top: 95%;
  visibility: hidden;
  background-color: #fff;
  border-top: 1px solid #ddd;
  opacity: 0;
  box-shadow: 0px 7px 10px 0px #ddd;
  border: 1px solid #ddd;
  transition: 0.5s all ease;
}

li.nest-menu div.sub-menu .menu-wrapper {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  height: 100%;
  width: 100%;
  margin: 0 auto 0;
}

div.sub-menu .menu-wrapper div {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100%;
  width: 32%;
  margin: 0 1rem 0 0;
  font-size: 2rem;
  color: #000;
  border-right: 1px solid #000;
}

div.sub-menu .menu-wrapper div span {
  font-size: 1rem;
}

div.sub-menu .menu-wrapper ul {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 100%;
}

div.sub-menu .menu-wrapper ul li {
  width: 100%;
  padding: 0.5rem;
  border-bottom: 1px solid #ddd;
}

div.sub-menu .menu-wrapper ul li:last-child {
  border: 0;
}

li.nest-menu ul li {
  width: 100vw;
  max-width: 950px;
  margin: 0 auto 0;
  cursor: pointer;
}

li.nest-menu ul a {
  color: #000;
}

li.nest-menu:hover div.sub-menu {
  width: 100%;
  visibility: visible;
  top: 99%;
  opacity: 1;
}

li.nest-menu div.sub-menu.service        { width: 165px; }
li.nest-menu div.sub-menu.sustainability { width: 245px; }

.spin-box {
  display: block;
  width: 100%;
  height: calc(2rem - 1px);
  perspective: 800px;
  overflow: hidden;
  cursor: pointer;
}

.spin-box > .spinner {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform-origin: center center -1rem;
  transition: transform 0.5s ease;
}

li:hover .spin-box > .spinner {
  transform: rotateX(-90deg);
}

.spin-box > .spinner > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.spin-box > .spinner > span a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-box > .spinner > span:first-child {
  transform: rotateX(0deg) translateZ(0);
}

.spin-box > .spinner > span:last-child {
  transform: rotateX(90deg) translateY(-16px) translateZ(48px);
}

@media (max-width: 844px) {
  div.navi {
    width: 44px;
    height: 44px;
    position: absolute;
    top: 0;
    left: 0.25rem;
    border: 0;
  }

  div.navi > nav {
    height: 100vh;
    display: none;
    background-color: #fff;
    position: relative;
    top: 4px;
    left: -0.25rem;
  }

  div.navi > .toggle-button {
    display: block;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
  }

  div.navi > .toggle-button span {
    display: block;
    position: relative;
    top: 22px;
    width: 90%;
    height: 1px;
    margin: 0 auto 0;
    background-color: #000;
  }

  div.navi > .toggle-button span::before,
  div.navi > .toggle-button span::after {
    content: '';
    display: block;
    position: relative;
    height: 1px;
    background-color: #000;
  }

  div.navi > .toggle-button span::before { top: -10px; }
  div.navi > .toggle-button span::after  { bottom: -9px; }

  div.navi > .toggle-button + input:checked span {
    background-color: transparent;
  }

  div.navi label:has(input:checked) + nav {
    display: block;
  }

  div.navi > nav ul.menu {
    height: auto;
    flex-direction: column;
    align-items: center;
  }

  div.navi > nav ul.menu li {
    flex-direction: column;
    align-items: baseline;
    width: 100%;
    height: auto;
    max-height: 100vh;
    font-weight: 200;
    border-bottom: 1px solid #ccc;
  }

  div.navi > nav ul.menu li a {
    display: flex;
    align-items: center;
    justify-content: left;
    width: 100%;
    padding: 0;
    font-size: 1rem;
  }

  div.navi > nav ul.menu > li:first-child {
    padding: 0;
  }

  li.nest-menu {
    position: relative;
  }

  li.nest-menu:hover div.sub-menu {
    visibility: hidden;
    max-height: 0;
    box-shadow: none;
  }

  li:hover .spin-box > .spinner {
    transform: unset;
  }

  li.nest-menu label {
    width: 100%;
  }

  .spin-box {
    width: 100%;
    min-height: 52px;
  }

  .spin-box > .spinner > span {
    width: 100%;
    justify-content: space-between;
    padding: 0 1rem 0;
  }

  li.nest-menu div.sub-menu {
    visibility: hidden;
    height: auto;
    max-height: 0;
    background-color: #fff;
    box-shadow: unset;
  }

  li.nest-menu div.sub-menu.service,
  li.nest-menu div.sub-menu.sustainability  {
    width: 100%;
  }

  li.nest-menu label:has(input:checked) + div.sub-menu {
    max-height: 100vh;
    position: relative;
    visibility: visible;
    opacity: 1;
  }

  li.nest-menu label .spinner > span:first-child > span {
    transition: 0.5s all ease;
  }

  li.nest-menu label:has(input:checked) .spinner > span:first-child > span {
    transform: rotateZ(-180deg);
  }

  li.nest-menu div.sub-menu .menu-wrapper {
    padding: 0;
  }

  li.nest-menu div.sub-menu .menu-wrapper > div {
    display: none;
  }

  div.sub-menu .menu-wrapper ul {
    row-gap: 0;
    width: 100%;
  }

  div.sub-menu .menu-wrapper ul li:last-child {
    border: 0;
  }

  div.navi div.sub-menu .menu-wrapper ul li {
    padding: 0;
  }

  div.navi div.sub-menu .menu-wrapper ul li a {
    min-height: 52px;
    padding: 0 0 0 2rem;
  }
}

@media (max-width: 844px) {
  div.navi > nav {
    width: 100vw;
  }
}

/** メイン **/
main {
  width: 100%;
  min-width: 390px;
  max-width: 950px;
  margin: 48px auto 0;
  padding: 0;
}

main > section {
  width: 100%;
}

/** スライダー **/
div.top-slider-section {
  width: 100%;
  margin: 0;
  padding: 0;
}

/** セクション **/
section h2 {
  position: relative;
  width: 100%;
  margin: 0 auto 0;
  padding: 0;
  text-align: center;
  font-size: 3rem;
  font-weight: 400;
  font-family: 'Lato';
}

section h3 {
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  font-family: "Noto serif JP";
}

section h4 {
  font-size: 1.25rem;
  line-height: 2.5rem;
  text-align: center;
  background-image: url(/img/components/h-tag_bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  text-shadow: 2px 2px 0px #fff;
}

section h5 { font-size: 1.20rem; }
section h6 { font-size: 1.10rem; }

div.container {
  padding: 1rem;
}

@media (max-width: 844px) {
  div.container {
    width: 100%;
    padding: 0;
  }
}

/** アコーディオン **/
div.accordion {
  max-height: 0;
  visibility: hidden;
  overflow: hidden;
  transition: 0.5s all ease;
}

div.accordion.open {
  max-height: 1000vh;
  visibility: visible;
}

/** Swiper **/
.swiper {
  padding: 0 0 1rem 0;
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 0;
  top: unset;
}

.swiper-slide {
  position: relative;
}

.swiper-slide img.overlay {
  width: 30%;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  aspect-ratio: unset;
}

.swiper-slide img {
  aspect-ratio: 485/328;
}

.swiper-pagination-bullet-active {
  background-color: #d4b6b3;
}

div img {
  width: 100%;
}

/** ボタン **/
.button-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
  border: 0;
  outline: 0;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  font-size: 1rem;
  line-height: 1.5rem;
  cursor: pointer;
}

.button-link:hover {
  background-color: #ddd;
}

.button-action {
  display: block;
  width: 100%;
  max-width: 640px;
  min-width: 355px;
  margin: 1rem auto 1rem;
  border: 0;
  border-radius: 5px;
  outline: 0;
  background-color: rgb(83, 223, 118);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 400;
  cursor: pointer;
}

.button-action:hover {
  background-color: rgb(156, 248, 179);
}

/** 画像テキストボックス **/
.image-flex {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.image-flex > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  max-width: calc(390px - 2rem);
  width: calc(100% / 3 - 2rem);
}

.image-text-box {
  overflow: hidden;
}

.image-text-box img {
  transition: 0.5s all ease;
}

.image-text-box:hover img {
  transform: scale(1.2);
}

@media (max-width: 844px) {
  .image-flex {
    justify-content: center;
    row-gap: 1rem;
    padding: 0.5rem;
  }

  .image-flex > div {
    width: 100%;
    max-width: unset;
  }
}
