:where(.wp-block-button__link){
  border-radius: 0;
}

:root :where(.wp-element-button, .wp-block-button__link) {
  transition: background-color 0.3s ease,color 0.3s ease;
  border: 1px solid var(--wp--preset--color--custom-text-1);
  position: relative;
}

:root .wp-block-button.is-style-text :where(.wp-element-button, .wp-block-button__link) {
  background-color: transparent;
  border: none;
  color: var(--wp--preset--color--base-1);
  font-weight: 600;
}
:root .wp-block-button.is-style-text :where(.wp-element-button, .wp-block-button__link)::before {
  content: "";
  position: absolute;
  transform-origin: right;
  background: currentColor;
  width: 100%;
  height: 1px;
  transition: transform .25s;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
}
@media (any-hover: hover) {
  :root :where(.wp-element-button, .wp-block-button__link):hover {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--custom-text-1);
  }
  :root .wp-block-button.is-style-outline :where(.wp-element-button, .wp-block-button__link):hover {
    background-color: var(--wp--preset--color--custom-theme-2);
    color: unset;
  }
  :root .wp-block-button.is-style-text :where(.wp-element-button, .wp-block-button__link):hover::before {
    transform-origin: left;
    transform: scaleX(1);
  }
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

header{
  height: auto;
}

footer .wp-block-separator{
  border-top: 1px solid gray;
}
.hero-title{
  position: relative;
  z-index: 1;
}
.hero-title::before{
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 10px;
  left: 10px;
  z-index: -1;
  background-color: rgb(255 255 255/50%);
}
.hero-title p{
  font-size: 24px;
}
@media (min-width: 782px) {
  .hero-title p{
    font-size: 32px;
  }
}
:root .container-cta .wp-block-button.is-style-outline :where(.wp-element-button, .wp-block-button__link){
  background-color: transparent;
  color: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--white);
}
@media (any-hover: hover) {
  :root .container-cta .wp-block-button.is-style-outline :where(.wp-element-button, .wp-block-button__link):hover {
    background-color: var(--wp--preset--color--black);
  }
}

:where(.wp-site-blocks) > * {
  margin-block: 0;
}

header{
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgb(255 255 255/70%);
  backdrop-filter: blur(10px);
}
.header-logo{
  height:50px;
  width: auto;
}
.wp-block-site-logo a.custom-logo-link{
  width: 100%;
  height: 100%;
}
.header-logo img{
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open{
  height: 100dvh;
}

@media (min-width: 768px) {
  .header-logo{
    height:60px;
    width: auto;
  }
}
.wp-site-blocks{
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

footer{
  justify-self: flex-end;
  margin-block: auto;
}

.wp-block-navigation-item__content{
  position: relative;
  line-height: 1.75;
}

.wp-block-navigation-item__content:before {
  content: "";
  position: absolute;
  transform-origin: right;
  background: currentColor;
  width: 100%;
  height: 1px;
  transition: transform .25s;
  bottom: 0;
  left: 0;
  transform: scaleX(0);
}

@media (any-hover: hover) {
  .wp-block-navigation-item__content:hover:before {
    transform-origin: left;
    transform: scaleX(1);
  }
}

@media (min-width: 782px) {
  .pc-row-reverse{
    flex-direction: row-reverse;
  }
}

/* コンテンツ幅 */
.container-inner{
  width: min(90%,1000px);
  margin-inline: auto;
}

/* オリジナル商品のカラム */
body .is-layout-flex.original-items{
  display: grid;
  grid-template-columns: repeat(2,1fr);
}

@media (min-width: 481px) {
  body .is-layout-flex.original-items{
    display: grid;
    grid-template-columns: repeat(3,1fr);
  }
}
@media (min-width: 960px) {
  body .is-layout-flex.original-items{
    display: grid;
    grid-template-columns: repeat(4,1fr);
  }
}
@media (min-width: 1200px) {
  body .is-layout-flex.original-items{
    display: grid;
    grid-template-columns: repeat(5,1fr);
  }
}



/* animation */
.slide-up{
  transition: translate .3s ease, opacity .2s ease;
  translate: 0 50px;
  opacity: 0;
}
.delay-2{
  transition-delay: .2s;
}
.delay-4{
  transition-delay: .4s;
}

.slide-up.on{
  translate: 0 0;
  opacity: 1;
}

/* editorのときには表示状態にする */
.editor-styles-wrapper .slide-up{
  translate: 0 0;
  opacity: 1;
}

/* Visual Link Preview プラグイン*/
.vlp-link-container .vlp-layout-imageonly{
  display: block;
}

/* エディターの編集画面のコンテンツ幅(見た目) */
:where(.editor-styles-wrapper) .is-root-container
{
  max-width: var(--wp--style--global--content-size);
  margin-inline: auto;
}

/* ブログ・カテゴリー */
.taxonomy-category a{
  background-color: var(--wp--preset--color--custom-theme-2);
  color: var(--wp--preset--color--custom-text-1);
  border-radius: 4px;
  padding: .2em;
  text-decoration: none;
  font-size: 80%;
}

/* 事業内容 */
.block-service{
  display: flex;
  flex-direction: column-reverse;
  gap: 24px;
}

@media (min-width: 768px) {
  .block-service{
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-block: 1em;
  }
  .block-service figure{
    margin: 0;
  }
}

/* 会社案内 */
.company-info{
  display: flex;
  flex-direction: column;
  row-gap: 2em;
}
.company-info > div{
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid var(--wp--preset--color--custom-theme-2);
  gap: .5em;
}
.company-info dt{
  width: 6em;
  padding-inline: 1em;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-ideograph;
  text-justify: inter-character;
  word-break: break-all;
  overflow-wrap: break-word;
  word-wrap: break-word;
  background: var(--wp--preset--color--custom-theme-2);
  margin: 0;
}
.company-info dd{
  margin: 0;
  word-wrap: break-all;
}

.company-info ul{
  list-style: '■';
  padding-inline: 1em;
}

.company-info ul li{
  margin-block: .5em;
}
.company-info ul li a{
  display: block;
}
.company-info ul li span{
  display: inline-block;
}
.company-info ul li span.url{
  color: gray;
  font-size: 90%;
  text-decoration: underline;
}


@media (min-width: 768px) {
  .company-info > div{
    display: grid;
    grid-template-columns: 6em 1fr;
    column-gap: 2em;
    align-items: center;
    background: var(--wp--preset--color--custom-theme-2);
  }
  .company-info dd{
    padding: 1em;
    background: white;
  }
}
@media (any-hover: hover) {
  .company-info ul li a:hover span{
    color: inherit;
  }
}


/* お問い合わせ（Contact Form 7プラグイン） */
.contact-form{
  width: 100%;
}
.contact-form p{
  margin: 0;
}
.contact-form .form-field{
  margin-block: 1em;
}
.contact-form .form-field label{
  display: flex;
  flex-direction: column;
  gap: .5em;
}
.contact-form .form-field .field-label{
  font-weight: 700;
}

.contact-form .form-field input[type='text'],
.contact-form .form-field input[type='email'],
.contact-form .form-field select,
.contact-form .form-field textarea{
  padding: .5em;
  font-size: 1rem;
  width: calc(100% - 2em);
}
.contact-form .form-field textarea{
  line-height: 1.5;
	field-sizing: content;
  height: 5lh;
	max-height: 30lh;
}
.contact-form .submit-field{
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .contact-form .form-field{
    margin-block: 2em;
  }
  .contact-form .form-field label{
    display: grid;
    grid-template-columns: 9em 1fr;
    gap: 2em;
  }
  .contact-form .submit-field{
    justify-content: center;
  }
}

.contact-form .submit-field input[type='submit']{
  transition: background-color 0.3s ease,color 0.3s ease;
  border: 1px solid var(--wp--preset--color--custom-theme-1);
  position: relative;
  background-color: var(--wp--preset--color--custom-theme-1);
  padding: .5em 1em;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--wp--preset--color--white);
  min-width: 180px;
  letter-spacing: .3em;
}

@media (any-hover: hover) {
  .contact-form .submit-field input[type='submit']:hover {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--custom-theme-1);
  }
}