/*
 Theme Name: Kadence Child
 Template: kadence
*/

/* Header */

.site-header-custom {
    background-color: #f6f3ec;
    border-top: 5px solid #c9a573;
    border-bottom: 5px solid #c9a573;
}

.header-grid-wrapper {
    max-width: 970px;
    margin: 0 auto;
    padding: 10px 0;
    display: grid;
    align-items: center;
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "logo buttons"
        "logo nav";
}
.header-logo {
    grid-area: logo;
}
.header-logo img {
    width: auto !important;
    max-width: 100px;
    height: auto !important;
}
.header-logo .site-title {
    display: none;
}
.header-buttons,
.header-menu-nav ul a {
    text-decoration: none;
}
.header-buttons {
    display: block;
    font-size: 0;
    text-align: right;
    grid-area: buttons;
    margin-bottom: 10px;
}
.header-buttons a {
    display: inline-block;
    margin-right: 10px;
}
.header-buttons a img {
    width: auto;
    height: 60px;
}
.header-logo a img,
.header-buttons a img {
    transition: all .1s linear;
}
.header-logo a:hover img,
.header-buttons a:hover img {
    opacity: 0.6;
}
.header-menu-nav {
    grid-area: nav;
}
.header-menu-nav ul {
    --columun: 4;
    list-style: none !important;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(var(--columun), 1fr);
    margin-bottom: 0;
}
.header-menu-nav li {
    width: 100%;
    text-align: center;
}
.header-menu-nav li a {
    display: block;
    padding: 5px 0;
    color: #0a4567;
    background-color: transparent;
    border-left: 1px solid #0a4567;
    border-right: 1px solid #0a4567;
}
.header-menu-nav li:first-child a {
    border-left: 2px solid #0a4567;
}
.header-menu-nav li:last-child a {
    border-right: 2px solid #0a4567;
}
.header-menu-nav li a:hover {
    color: #fff;
    background-color: #0a4567;
}

.mobile-html .mobile-tel-button {
    width: 90%;
    margin-left: 20px;
}

@media screen and (max-width:640px) {
    .site-header-custom {
        display: none;
    }
    .site-header-row-container-inner {
        padding: 10px 0;
    }
    .site-branding a.brand img {
        max-width: 100px;
    }
}

/* Footer */
.footer-buttons {
    max-width: var(--global-content-width);
    margin: 0 auto;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-buttons a {
    display: block;
    width: calc((100% / 2) - 0.25rem);
}
.footer-buttons a img{
    transition: all .1s linear;
}
.footer-buttons a:hover img {
    opacity: 0.6;
}
.site-top-footer-inner-wrap {
    padding-bottom: 0;
}
.site-middle-footer-inner-wrap {
    grid-row-gap: 0;
}
.site-middle-footer-inner-wrap .widget {
    margin-bottom: 0;
}
.footer-area-title {
    display: inline-block;
    padding: 0.5rem 2rem;
    margin: 0;
}
@media screen and (max-width:640px) {
    .footer-buttons {
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .footer-buttons a {
        width: 100%;
    }
    .footer-navigation .menu li {
        width: 100%;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.8);
    }
    .footer-navigation .menu li:first-child {
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.8);
    }
    .footer-navigation .menu li:last-child {
        margin-bottom: 0;
    }
    .footer-navigation .menu li a {
        position: relative;
    }
    .footer-navigation .menu li a::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%) rotate(45deg);
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
    }
}

/* title */
.entry-hero-layout-contained {
    max-width: initial;
    padding: 0;
}
@media screen and (max-width:640px) {
    .entry-hero.page-hero-section .entry-header {
        min-height: 100px;
    }
    .entry-hero.post-archive-hero-section .entry-header { 
        min-height: 120px; 
    }
}

.loop-entry .entry-header .entry-title {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* content */
.content-area {
    max-width: var(--global-content-width);
    margin: 30px auto !important;
}
.content-common-image figure {
    margin-bottom: 0 !important;
}
.content-common-title {
    margin-top: .5rem !important;
}

/* home */
.page-id-16 .content-area {
    margin-top: 0 !important;
}
.page-id-16 .entry-hero-layout-contained {
    display: none;
}

/* トップスライダー */
.top-full-slider {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 30px;
}

.top-full-slider .metaslider {
  max-width: 100%;
}


.home-service-wrapper {
    padding: 0 !important;
}
.home-service-wrapper:last-child {
    margin-bottom: var(--global-md-spacing) !important;
}
.home-service-wrapper h2 {
    margin: 0;
    padding: 0.5rem 0;
}
.home-service-wrapper figure {
    margin-bottom: 0 !important;
}
.home-service-wrapper p {
    padding: 0.5rem;
}

.home-strength-wrapper {
    background-image:
        radial-gradient(rgba(81,81,81,0.05) 30%, rgba(0,0,0,0) 31%),
        radial-gradient(rgba(81,81,81,0.05) 30%, rgba(0,0,0,0) 31%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    background-color: #fff;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-bottom: 30px;
}
.home-strength-wrapper .home-strength-title {
    position: relative;
    background-image:
        radial-gradient(rgba(255,243,147,0.5) 30%, rgba(0,0,0,0) 31%),
        radial-gradient(rgba(255,243,147,0.5) 30%, rgba(0,0,0,0) 31%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
    background-color: #fff9c5;
}
.home-strength-wrapper .home-strength-title::before {
    content: "";
    display: block;
    padding-bottom: 210px;
}
.home-strength-wrapper .home-strength-title figure {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0 !important;
}
.home-strength-wrapper .home-strength-box1,
.home-strength-wrapper .home-strength-box2,
.home-strength-wrapper .home-strength-box3,
.home-strength-wrapper .home-strength-box4,
.home-strength-wrapper .home-strength-box5 {
    position: relative;
    max-width: var(--global-content-width);
    margin: 0 auto;
    padding: 30px;
    padding-right: 0;
    width: 100%;
    height: 300px;
    margin-top: 30px;
    box-sizing: border-box;
    z-index: 1;
    overflow: hidden;
    background-color: #fff;
}
.home-strength-wrapper .home-strength-sub-image {
    position: absolute;
    top: 50%;
    right: 0;
    height: 100%;
    transform: translateY(-50%);
    z-index: -1;
}
.home-strength-wrapper .home-strength-sub-image::after {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
}

@media screen and (max-width:640px) {
    .home-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin: 0 0.5rem;
    }
    .home-strength-wrapper .home-strength-title::before {
        padding-bottom: 27%;
    }
    .home-strength-wrapper .home-strength-title figure {
        top: -5px;
        width: 80%;
    }
    
    .home-strength-wrapper .home-strength-box1,
    .home-strength-wrapper .home-strength-box2,
    .home-strength-wrapper .home-strength-box3,
    .home-strength-wrapper .home-strength-box4,
    .home-strength-wrapper .home-strength-box5 {
        height: auto;
        padding: 0.5rem;
    }
    .home-strength-wrapper .home-strength-sub-title,
    .home-strength-wrapper .home-strength-sub-image {
        margin-bottom: 15px !important;
    }
    .home-strength-wrapper .home-strength-sub-image {
        position: initial;
        transform: translateY(0);
        margin-bottom: 15px !important;
    }
    .home-strength-wrapper .home-strength-sub-image::after {
        display: none;
    }
    .home-strength-wrapper .home-strength-sub-text{
        font-size: var(--wp--preset--font-size--normal) !important;
    }
}

/* about */
.about-column {
    gap: 0 !important;
}
.about-column figure,
.about-column .wp-block-group,
.about-column p {
    margin-bottom: 0 !important;
}
.about-column .about-text-box {
    box-sizing: border-box;
}
.about-text {
    padding: 1rem;
}
.about-sub-image-sp {
    display: none;
}

.about-column .about-sub-text-box {
    margin-top: 1rem;
}
.about-column .about-sub-text {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: #fff;
}
.about-column .about-sub-text:nth-child(1) {
    background-color: #d43424;
}
.about-column .about-sub-text:nth-child(2) {
    background-color: #e28d10;
}
.about-column .about-sub-text:nth-child(3) {
    background-color: #10753d;
}
.about-column .about-sub-text:nth-child(4) {
    background-color: #053960;
}
@media screen and (max-width:640px) {
    .about-column {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
    .about-column .about-sub-image {
        display: none;
    }
    .about-sub-image-sp {
        display: inline-block;
    }
}

/* leadership */

.leadership-box-wrapper {
    background-color: #fff;
    padding: 1rem;
}
.leadership-text-box {
    width: calc(100% - 400px);
}
@media screen and (max-width:640px) {
    .leadership-box-wrapper #metaslider_container_284 {
        max-width: 100%;
    }
    .leadership-box-wrapper h2 {
        text-align: center;
        font-size: min(6vw, 24px);
    }
    .leadership-box-wrapper .is-layout-flex {
        flex-wrap: wrap;
    }
    .leadership-text-box {
        width: 100%;
    }
}

/* title */
.contact-form-wrapper {
    padding: 1rem;
}
.contact-form-itme,
.form-item-zip,
.form-item-pref {
    margin-bottom: 30px;
}
.contact-form-title {
    margin-bottom: 0.5rem !important;
}
.contact-form-button {
    text-align: center;
}
.form-item-input {
    width: 100%;
}
.contact-form-answer {
    font-size: 80%;
    color: rgba(0,0,0,0.4);
}
.contact-form-button input[type="submit"] {
    margin-left: 48px;
}

/* アニメーション */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-active {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left.is-active,
.fade-right.is-active {
  opacity: 1;
  transform: translateX(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}
.fade-in.is-active {
  opacity: 1;
}