@charset "UTF-8";
/*
Theme Name: miyoshi-kasei-kougyo
Author: Iwasaki
Author URI: 
Description: ミヨシ化成工業所のテーマ
*/
/* Header */
header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  background: rgba(255, 255, 255, 0.9098039216);
}

.header--inner-group {
  height: clamp(3rem, 2rem + 3.333vw, 4rem);
  align-content: center;
}

.wp-block-site-logo {
  padding-left: var(--wp--custom--gap);
  max-width: 48%;
}

.page-title-block-cover {
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  min-height: clamp(11.25rem, 8.75rem + 8.333vw, 13.75rem);
}
.page-title-block-cover .wp-block-cover__inner-container {
  position: initial;
}
.page-title-block-cover h1 {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
footer a {
  text-decoration: none;
  position: relative;
}
footer a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--wp--preset--color--background);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--wp--custom--transition--duration, 0.3s) var(--wp--custom--transition--timing-function, ease);
}
footer a:hover::after {
  transform: scaleX(1);
}
footer div:has(> .copyright) {
  text-align: center;
}
footer .copyright {
  display: inline-block;
}

@media screen and (max-width: 781px) {
  footer .footer-logo-area {
    border-bottom: 1px solid var(--wp--preset--color--background);
    text-align: center;
  }
  footer .footer-navigation-area > div {
    flex-basis: 13rem;
  }
}
@media screen and (min-width: 782px) {
  footer .footer-logo-area {
    border-right: 1px solid var(--wp--preset--color--background);
  }
  footer .footer-navigation-area {
    justify-content: right;
  }
}
/* GenerateBlocks Plugin Custom Styles */
.custom-link-block {
  text-decoration: none;
}
.custom-link-block .wp-block-group {
  transition: background-color var(--wp--custom--transition--duration, 0.3s) var(--wp--custom--transition--timing-function, ease);
}
.custom-link-block .wp-block-image {
  border-radius: var(--wp--custom--radious--image, 0);
}
.custom-link-block .wp-block-image:has(+ .wp-block-group.has-background-color) {
  border-radius: var(--wp--custom--radious--image, 0) var(--wp--custom--radious--image, 0) 0 0;
}
.custom-link-block .wp-block-image:has(+ .wp-block-group.has-background-color) img {
  border-radius: var(--wp--custom--radious--image, 0) var(--wp--custom--radious--image, 0) 0 0;
}
.custom-link-block .wp-block-group.has-background-color {
  border-radius: 0 0 var(--wp--custom--radious--button, 0) var(--wp--custom--radious--button, 0);
}
.custom-link-block .wp-block-group.has-background-color p:last-of-type::after {
  background-image: url("/wp-content/themes/miyoshi-kasei-kougyo/assets/images/icon-angle-right-white.svg");
}
.custom-link-block p:last-of-type {
  position: relative;
  padding-right: 1.75rem;
  display: inline-block;
}
.custom-link-block p:last-of-type::after {
  content: "";
  display: block;
  background-image: url("/wp-content/themes/miyoshi-kasei-kougyo/assets/images/icon-angle-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 1em;
  height: 1em;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  transition: right 0.1s ease;
}
.custom-link-block:hover p:last-of-type::after {
  right: -0.25rem;
}

.custom-link-block:hover .wp-block-group.has-background-color {
  background-color: var(--wp--preset--color--secondary) !important;
}

/* Homepage Styles */
body.home main {
  padding-top: 0;
  margin-top: calc(clamp(3rem, 2rem + 3.333vw, 4rem) * -1);
}

/* ホームページのメインビジュアルのタイトル文 */
.homepage-main-visual-title > p {
  padding: 0 0 0.1em 0.5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
}

/* ホームページのメインビジュアルの問い合わせボタン */
.home-main-visual-contact-button {
  position: relative;
}
.home-main-visual-contact-button .wp-block-button__link {
  border-radius: var(--wp--custom--radious--image, 0) 0 0 var(--wp--custom--radious--image, 0);
  height: clamp(3.75rem, 2.5rem + 4.167vw, 5rem);
  width: clamp(15rem, 11.25rem + 12.5vw, 18.75rem);
  padding-left: clamp(1rem, 3.333vw, 2rem);
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  z-index: 1;
  display: flex;
  align-items: center;
}
.home-main-visual-contact-button .wp-block-button__link::after {
  right: clamp(1rem, 3.333vw, 2rem);
}
.home-main-visual-contact-button .wp-block-button__link:hover::after {
  right: clamp(0.5rem, -0.5rem + 3.333vw, 1.5rem);
}
@media screen and (max-width: 781px) {
  .home-main-visual-contact-button .wp-block-button__link {
    background-color: var(--wp--preset--color--secondary);
  }
}

/* ホームページのメインビジュアルの下 */
@media screen and (min-width: 782px) {
  .homepage-under-main-visual .wp-block-columns {
    column-gap: clamp(1rem, -12.18rem + 26.966vw, 4rem);
  }
  .homepage-under-main-visual .wp-block-column:first-child {
    border-right: 1px solid var(--wp--preset--color--background);
  }
}
/* ホームページの事業のご案内 */
.homepage-business-block-links > .wp-block-column {
  display: flex;
  flex-direction: column;
}
.homepage-business-block-links > .wp-block-column > a {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.homepage-business-block-links > .wp-block-column .wp-block-group {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.homepage-business-block-links > .wp-block-column .wp-block-group .has-text-align-right {
  margin-right: 0 !important;
}

/* ホームページの問い合わせのリンク */
.homepage-big-contact-link > .wp-block-group {
  border-radius: var(--wp--custom--radious--button, 0);
  text-align: center;
  transition: background-color var(--wp--custom--transition--duration, 0.3s) var(--wp--custom--transition--timing-function, ease);
}
.homepage-big-contact-link:hover > .wp-block-group {
  background-color: var(--wp--preset--color--secondary) !important;
}
.homepage-big-contact-link:hover .homepage-big-contact-link__text::after {
  right: -2rem;
}
.homepage-big-contact-link__text {
  display: inline-block;
  position: relative;
}
.homepage-big-contact-link__text::before {
  content: "";
  content: "";
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("/wp-content/themes/miyoshi-kasei-kougyo/assets/images/icon-envelope.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  left: -2.5rem;
  position: absolute;
  top: 2px;
  bottom: 0;
  margin: auto;
}
.homepage-big-contact-link__text::after {
  content: "";
  display: block;
  background-image: url("/wp-content/themes/miyoshi-kasei-kougyo/assets/images/icon-angle-right-white.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 1em;
  height: 1.25rem;
  position: absolute;
  right: -1.75rem;
  top: 2px;
  bottom: 0;
  margin: auto;
  transition: right 0.1s var(--wp--custom--transition--timing-function, ease);
}

/* Custom CSS */
iframe {
  max-width: 100% !important;
  border-radius: var(--wp--custom--radious--image, 0);
}

main {
  margin-block-start: 0;
}

:root :where(h1, h2, h3, h4, h5, h6, p) + p {
  margin-block-start: 1rem;
}

@media (max-width: 781px) {
  .reverse-on-mobile {
    display: flex;
    flex-direction: column-reverse; /* 縦並びの順序を逆にする */
  }
}
.wp-block-table th {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--background);
  font-weight: normal;
}

/*# sourceMappingURL=style.css.map */
