/* thema name: ubemoku-theme */

* {
    /* outline: 1px solid tomato;
    background-color: rgb(255, 0, 0, 0.05); */
}

html {
    font-family: 'Zen kaku Gothic New', serif;
    line-height: 2;
    letter-spacing: 0.04em;
    font-weight: 500;
    color: var(--black);
}

body {
    background-color: var(--bg-default);
}

.zen-old-mincho {
    font-family: 'Zen Old Mincho', serif;
    font-weight: 500;
    font-style: normal;
}

.vertical-rl {
    writing-mode: vertical-rl;
    text-orientation: upright;
}
.lg\:vertical-rl {
    @media (width >= 64rem) {
        writing-mode: vertical-rl;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Zen Old Mincho', serif;
    font-weight: 500;
    font-style: normal;
    font-feature-settings: "palt";
}

h1.fv {
    letter-spacing: 0.08em;
}

h2 {
    font-weight: 500;
}

h3 {
    line-height: 1.6;
}

h4 {
    font-weight: 600;
}

.container {
    padding: 0 20px;
}

p {
    letter-spacing: 0.04em;
    font-feature-settings: "palt";
}
a {
    transition: opacity 0.3s ease-in-out;
}
a:not(.card-link):hover {
    opacity: 0.7;
}
.card-link img {
    transition: transform 0.3s ease-in-out;
}
.card-link:hover img {
    transform: scale(1.05);
}

.en {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: medium;
    letter-spacing: 0.08em;
    line-height: 1;
}

.bg-\[var\(--recruit-bg-accent\)\] {
    background: linear-gradient(45deg, rgb(53, 175, 97), rgb(28, 202, 115));
}

.header-logo path {
    /* fill: white; */
    transition: fill 0.3s ease-in-out;
}

.header-nav-contact {
    transition: all 0.3s ease-in-out;
}

.header-nav-line-1,
.header-nav-line-2,
.header-nav-line-3 {
    transition: all 0.3s ease-in-out;
}

.hero {
}

.shadow-content {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    width: 80%;
    aspect-ratio: 23 / 3;
    margin: auto;
    background-color: rgba(35, 24, 21, 1);
    border-radius: 100%;
    filter: blur(20px);
}

.card-shadow {
    width: calc(100% - 48px);
    aspect-ratio: 305 / 31;
    filter: blur(12.5px);
    background-color: rgba(35, 24, 21, 0.9);
}

@media (min-width: 768px) {
    section .container {
        padding: 0 40px;
    }
    .shadow-content {
        aspect-ratio: 529 / 95;
        filter: blur(40px);
        bottom: -10px;
    }
    .card-shadow {
        aspect-ratio: 336 / 31;
        filter: blur(15px);
        bottom: 0px;
    }
}
@media (max-width: 1023px) {
    .overflow-x-scroll {
        /* SimpleBar使用時の基本設定 */
        padding-bottom: 32px;
    }
    
    /* SimpleBarのカスタムスタイル */
    .overflow-x-scroll .simplebar-track {
        background-color: var(--gray002) !important;
        border-radius: 0px !important;
        height: 6px !important;
    }
    
    .overflow-x-scroll .simplebar-scrollbar {
        background-color: var(--recruit-bg) !important;
        border-radius: 0px !important;
        width: 140px !important;
    }
    
    .overflow-x-scroll .simplebar-scrollbar:hover {
        background-color: var(--accent) !important;
    }

    .overflow-x-scroll .simplebar-scrollbar:before {
        display: none;
    }
    
    /* 縦方向のスクロールバーを非表示 */
    .overflow-x-scroll .simplebar-track.simplebar-vertical {
        display: none !important;
    }
    
    .overflow-x-scroll .simplebar-scrollbar.simplebar-vertical {
        display: none !important;
    }
}


/* swiper */
.swiper {
    width: fit-content;
    margin-top: 3.5rem;
}
swiper-container {
    width: 100%;
}
swiper-container.mySwiper {
    /* width: fit-content;
    margin: auto;
    margin-top: 16px; */
}
@media (min-width: 1024px) {
    swiper-container.mySwiper {
        margin-top: 56px;
    }
}
swiper-container.mySwiper swiper-slide {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}
swiper-container.mySwiper swiper-slide.swiper-slide-thumb-active {
    opacity: 1;
}

@media (min-width: 768px) {
#wood-modal swiper-slide, #materials-modal swiper-slide, #equipment-modal swiper-slide, #works-modal swiper-slide, #window-modal swiper-slide, #exterior-modal swiper-slide, #window_other-modal swiper-slide {
        width: fit-content !important;
    }
}

/* モーダルトランジション */
#wood-modal, #materials-modal, #equipment-modal, #works-modal, #window-modal, #exterior-modal, #window_other-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    transition-delay: 0.25s;
}

#wood-modal.visible, #materials-modal.visible, #equipment-modal.visible, #works-modal.visible, #window-modal.visible, #exterior-modal.visible, #window_other-modal.visible {
    opacity: 1;
    visibility: visible;
}

#wood-modal.hidden, #materials-modal.hidden, #equipment-modal.hidden, #works-modal.hidden, #window-modal.hidden, #exterior-modal.hidden, #window_other-modal.hidden {
    opacity: 0;
    visibility: hidden;
}

/* アコーディオン */
.accordion-content {
    max-height: 0;
    transition: all 0.5s linear;
}

.accordion-item.active .accordion-trigger {
    
}

.accordion-item.active .accordion-content {
    margin-top: 1rem;
    max-height: 100px;
}

@media (max-width: 768px) {
    .accordion-item.active .accordion-content {
        max-height: 288px;
    }
}

.accordion-item.active .accordion-icon {
    transform: rotateX(180deg) rotateY(180deg) rotateZ(45deg);
}

.accordion-trigger {
    cursor: pointer;
    transition: all 0.5s linear;
}

.accordion-trigger:hover {
    opacity: 0.8;
}

/* 募集要項 */
#recruit-table {
    border-collapse: collapse;
    width: 100%;
}
#recruit-table tr {
    display: grid;
    grid-template-columns: 13rem 1fr;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray003);
}
#recruit-table tr:not(:first-child) {
    padding-top: 40px;
}
#recruit-table th {
    text-align: left;
    font-size: 1.125rem;
    padding-bottom: 0px;
    font-weight: 500;
}
#recruit-table td p {
    text-align: left;
    line-height: 2;
}
@media (max-width: 1023px) {
    #recruit-table tr {
        grid-template-columns: 1fr;
        padding-bottom: 24px;
    }
    #recruit-table tr:not(:first-child) {
        padding-top: 24px;
    }
    #recruit-table th {
        font-size: 1rem;
        padding-bottom: 4px;
    }
}

/* 会社概要 */
#company-table, #history-table, #license-table, #group-company-table {
    border-collapse: collapse;
    width: 100%;
}
#company-table tr, #history-table tr, #license-table tr, #group-company-table tr {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray003);
}
#company-table tr:not(:first-child), #history-table tr:not(:first-child), #license-table tr:not(:first-child), #group-company-table tr:not(:first-child) {
    padding-top: 40px;
}
#company-table th, #history-table th, #license-table th, #group-company-table th {
    text-align: left;
    font-size: 1.125rem;
    padding-bottom: 6px;
    font-weight: 500;
}
#company-table td p, #history-table td p, #license-table td p, #group-company-table td p {
    text-align: left;
    line-height: 2;
    margin-top: 2px;
}
@media (max-width: 1023px) {
    #company-table tr, #history-table tr, #license-table tr, #group-company-table tr {
        grid-template-columns: 1fr;
        padding-bottom: 24px;
        gap: 8px;
    }
    #company-table tr:not(:first-child), #history-table tr:not(:first-child), #license-table tr:not(:first-child), #group-company-table tr:not(:first-child) {
        padding-top: 24px;
    }
    #company-table th, #history-table th, #license-table th, #group-company-table th {
        padding-bottom: 4px;
    }
}

/* 木にまつわるお話 */
.tales-content p, .news-content p {
    line-height: 2;
    margin-bottom: 3rem;
}

.tales-content p:has(+ p), .news-content p:has(+ p) {
    margin-bottom: 20px;
}

.tales-content p:last-child, .news-content p:last-child {
    margin-bottom: 0;
}

.tales-content h2, .news-content h2 {
    font-size: 1.5rem;
    line-height: 2;
    margin-bottom: 1rem;
    padding-left: 19px;
    position: relative;
}
.tales-content h2::before, .news-content h2::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    width: 3px;
    height: 24px;
    margin: auto 0;
    background-color: var(--accent);
}

.wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    font-size: 1.125rem;
}

.wpcf7-list-item, .wpcf7-radio, .wpcf7-list-item label {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpcf7-radio {
    gap: 28px;
}

.wpcf7-list-item input[type="checkbox"], .wpcf7-radio input[type="radio"] {
    position: relative;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 2px;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.wpcf7-radio input[type="radio"] {
    border-radius: 100%;
}

.wpcf7-list-item-label {
    font-size: 1.125rem;
}
.wpcf7-list-item input[type="checkbox"]:checked {
    background-color: var(--gray003);
}
.wpcf7-list-item input[type="checkbox"]:checked:before {
    position: absolute;
    content: url('assets/img/common/form-check.svg');
    top: 0;
    bottom: 2px;
    left: 0;
    right: 0;
    margin: auto;
    width: 16px;
    height: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wpcf7-radio input[type="radio"]:checked:before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border: none;
    border-radius: 4px;
    background-color: var(--accent);
    border-radius: 100%;
}

input[type="text"], input[type="email"], input[type="tel"], select {
    width: 100%;
    padding: 16px 24px;
    background-color: white;
    border-radius: 4px;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="radio"]:focus, input[type="checkbox"]:focus, select:focus {
    outline: none;
}

textarea {
    width: 100%;
    padding: 16px 24px;
    background-color: white;
    border-radius: 4px;
    resize: none;
}

textarea:focus {
    outline: none;
}

select {
    -webkit-appearance: none;/* ベンダープレフィックス(Google Chrome、Safari用) */
    -moz-appearance: none; /* ベンダープレフィックス(Firefox用) */
    appearance: none; /* 標準のスタイルを無効にする */
    color: var(--gray003);
    position: relative;
}
span.wpcf7-form-control-wrap:has(select):after {
    content: '';
    position: absolute;
    right: 24px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--gray003);
    border-right: 2px solid var(--gray003);
    transform: rotate(45deg);
}
select.has-selection {
    color: var(--black);
}

.wpcf7-submit {
    width: 100%;
    max-width: 487px;
    min-width: 300px;
    padding: 20px 24px 20px 0px;
}

.button_has_arrow{
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    border: 1.5px solid black;
    font-size: 1.125rem;
    position: relative;
}
.button_has_arrow:after {
    content: url('assets/img/common/arrow-right-b.svg');
    position: absolute;
    margin-left: 88px;
    width: 32px;
    height: 32px;
    pointer-events: none;
}
.wpcf7-spinner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0px;
    margin: auto;
    background-color: var(--gray003);
    z-index: 99;
}
.wpcf7-spinner::before {
    top: calc(50% - 4px);
    left: calc(50% - 4px);
}