/*
Theme Name: kouyusha Theme
Author: Digicra
Description: 広友社様向けのカスタムWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kouyusha.co
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/


@import 'css/_variables.css';
@import 'css/_reset.css';
@import 'css/_header.css';
@import 'css/_common.css';

/* ここに基本的なCSSリセットやテーマ全体のスタイルを記述します */
body {
    font-family: "Noto Serif JP", serif;
    /* 基本フォントを指定 */
    margin: 0;
    padding: 0;
    color: #333;
    /* 基本文字色 */
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* 広友社の想い */
#thought {
    background-image: url(./images/kouyusha_bg.webp);
    background-repeat: repeat;
    padding: 80px 0;
}

#thought h2 {
    text-align: left;
    color: #fff;
}

#thought p {
    font-size: var(--font-size-root);
    line-height: 1.8;
    color: #fff;
}

#strengths {
    background-color: #F7F7F3;
    padding: 80px 0;
}

#strengths .strengths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* grid内センター配置 */
    justify-items: center;
    gap: 40px;
}

#strengths .strength-item {
    text-align: center;

}

#strengths .strength-item:nth-child(2) {
    position: relative;
}

#strengths .strength-item:nth-child(2)::before,
#strengths .strength-item:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #ccc;
}

#strengths .strength-item:nth-child(2)::before {
    left: -20px;
}

#strengths .strength-item:nth-child(2)::after {
    right: -20px;
}

#strengths .strength-item p {
    text-align: left;
    line-height: 1.8;
}

#strengths .strength-number {
    background-color: #448CD2;
    color: #fff;
    padding: 5px 12px;
    border-radius: 50%;
}

#strengths .strength-item h3 {
    margin: 16px 0;
}

#strengths .strength-item img {
    margin: 16px 0;
}


@media (max-width: 768px) {
    #strengths .strengths-grid {
        grid-template-columns: 1fr;
    }

    #strengths .strength-item_title {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    #strengths .strength-item h3 {
        margin: 0;
        text-align: left;
		font-size: 16px;
        font-weight: 600;
    }

    #strengths .strength-item:nth-child(2)::before,
    #strengths .strength-item:nth-child(2)::after {
        content: '';
        position: absolute;
        top: unset;
        width: 100%;
        height: 1px;
        background-color: #ccc;
    }

    #strengths .strength-item:nth-child(2)::before {
        left: 0;
        bottom: -20px;
    }

    #strengths .strength-item:nth-child(2)::after {
        right: 0;
        top: -20px;
    }
}

/* 会社情報 */
#about-us {
    background-color: #fff;
    padding: 80px 0;
}

#about-us .about-us-content {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 50px;
}

#about-us .company-details {
    padding: 20px;
}

#about-us .company-details table {
    width: 100%;
}

#about-us .company-details table tr {
    border-bottom: 1px solid #ccc;
    display: flex;
    padding: 10px 0;
    font-size: 14px;
    align-items: center;
    width: 100%;
}

#about-us .company-details table tr:last-child {
    border-bottom: none;
}

#about-us .company-details table th {
    text-align: left;
    width: 30%;
    max-width: 140px;
}

#about-us .company-details table td {
    width: 70%;
}

#about-us .company-map {
    padding: 20px;
}

#about-us .company-map iframe {
    width: 75%;
    height: 75%;
}

#about-us .company-map img {
    width: 35px;
}

@media (max-width: 768px) {
    #about-us .about-us-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    #about-us .company-map iframe {
        width: 100%;
        height: 100%;
    }

    #about-us .company-details table th {
        width: 40%;
    }
}

/* 知っておきたい葬儀までの準備 */
#preparation {
    background-color: #F7F7F3;
    padding: 80px 0;
}

#preparation .preparation-steps .step-item {
    display: grid;
    position: relative;
    grid-template-columns: 25% 75%;
    background-color: #fff;
    gap: 20px;
    padding: 25px;
    margin-bottom: 40px;
}

/* step-itemの疑似要素で下▼を付ける */
#preparation .preparation-steps .step-item::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -33px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 25px 30px 0 30px;
    border-color: var(--color-en-title) transparent transparent transparent;
}

#preparation .preparation-steps .step-item:last-child::after {
    display: none;
}

#preparation .preparation-steps .step-item img {
    width: 100%;
    height: 100%;
    max-width: 220px;
    object-fit: contain;
}

#preparation .preparation-steps .step-item .step-item-content h4 {
    color: #448CD2;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #preparation .preparation-steps .step-item {
        grid-template-columns: 1fr;
    }

    #preparation .preparation-steps .step-item img {
        max-width: unset;
    }
}

/* プラン紹介 */
#plan {
    background-image: url(./images/kouyusha_bg.webp);
    background-repeat: repeat;
    padding: 80px 0;
}

#plan h2 {
    color: #fff;
}

#plan .plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

#plan .plans-grid .plan-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
}

#plan .plans-grid .plan-item h3 {
    padding-top: 15px;
    font-size: 18px;

}

#plan .plans-grid .plan-item p.price {
    color: #ff0000;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

#plan .plans-grid .plan-item p.plan-content {
    font-size: 0.8rem;
}

#plan .plan-info {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 20px;
    color: #fff;
}

#plan .plan-info a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    #plan .plans-grid {
        grid-template-columns: 1fr;
    }

    #plan .plans-grid .plan-item img {
        width: 100%;
    }
}

/* 生花注文 */
#flower {
    background-color: #F7F7F3;
    padding: 80px 0;
}

#flower .flower-intro {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 30px;
}

#flower .flower-text {
    font-size: 15px;
    line-height: 1.8;
}

#flower .flower-text-small {
    font-size: 14px;
    line-height: 1.8;
}

#flower .flower-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* grid内センター配置 */
    justify-items: center;
    padding: 40px 0;
    gap: 40px;
}

#flower .flower-item {
    text-align: center;
}

#flower .flower-item h4 {
    margin-top: 15px;
}

#flower .flower-item h4,
#flower .flower-item p {
    font-size: 18px;
}

#flower .flower-item:nth-child(2) {
    position: relative;
}

#flower .flower-item:nth-child(2)::before,
#flower .flower-item:nth-child(2)::after {
    content: '';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #ccc;
}

#flower .flower-item:nth-child(2)::before {
    left: -20px;
}

#flower .flower-item:nth-child(2)::after {
    right: -20px;
}

#flower .flower-buttons a {
    position: relative;
    display: block;
    text-align: center;
    padding: 15px;
    border-radius: 35px;
    margin: 0 auto;
    width: 350px;
    text-decoration: none;
    color: #fff;
    background-color: #448CD2;
    transition: .3s all ease;
}

#flower .flower-buttons a:first-child:hover {
    opacity: .5;
}

#flower .flower-buttons a:last-child {
    background-color: #ffffff00;
    border: 1px solid #448CD2;
    color: #448CD2;
    margin-top: 24px;
}

#flower .flower-buttons a:last-child:hover {
    background-color: #fff;
}

#flower .flower-buttons a i {
    position: absolute;
    right: 10px;
    top: calc(50% - 8px);
}

#flower .flower-buttons .flower-contact-button-area {
    width: 760px;
    margin: 30px auto 0;
}

#flower .flower-buttons .flower-contact-button-area>p {
    text-align: center;
    margin-bottom: 20px;
    color: #448CD2;
}

#flower .flower-buttons .flower-contact-button-area>p::after {
    content: "";
    display: inline-block;
    /* インラインブロックに変更 */
    width: 220px;
    height: 1px;
    background-color: #448CD2;
    margin-left: 10px;
    /* 左側のマージンを追加 */
    vertical-align: middle;
    /* 垂直方向中央揃え */
}

#flower .flower-buttons .flower-contact-button-area>p::before {
    content: "";
    display: inline-block;
    /* インラインブロックに変更 */
    width: 220px;
    height: 1px;
    background-color: #448CD2;
    margin-right: 10px;
    /* 左側のマージンを追加 */
    vertical-align: middle;
    /* 垂直方向中央揃え */
}


#flower .flower-buttons .flower-contact-button-area .flower-contact-button-area-inner {
    display: flex;
    gap: 30px;
}

#flower .flower-buttons .flower-contact-button-area .flower-contact-button-area-inner .pc-inquiry-flower-button {
    background-color: #448CD2;
    color: #ffffff;
}

#flower .flower-buttons .flower-contact-button-area .flower-contact-button-area-inner .sp-inquiry-flower-button {
    border: none;
    display: flex;
    justify-content: center;
    margin-top: 0;
}

#flower .flower-buttons .flower-contact-button-area .flower-contact-button-area-inner .sp-inquiry-flower-button:hover {
    background-color: unset;
}

#flower .flower-buttons .flower-contact-button-area .flower-contact-button-area-inner .sp-inquiry-flower-button img {
    width: 150px;
}


@media (max-width: 768px) {
    #flower .flower-items-grid {
        grid-template-columns: 1fr;
    }

    #flower .flower-item:nth-child(2)::before,
    #flower .flower-item:nth-child(2)::after {
        content: '';
        position: absolute;
        top: unset;
        width: 100%;
        height: 1px;
        background-color: #ccc;
    }

    #flower .flower-item:nth-child(2)::before {
        left: 0;
        bottom: -20px;
    }

    #flower .flower-item:nth-child(2)::after {
        right: 0;
        top: -20px;
    }

    #flower .flower-buttons a {
        padding: 5px 15px;
    }

}

#contact-form-section {
    padding: 80px 0;
}

#contact-form-section .Form {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

#contact-form-section .Form .Form-Item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
}

#contact-form-section .Form .Form-Item .Form-title {
    display: flex;
    align-items: center;
}

#contact-form-section .Form .Form-Item .Form-area {
    display: flex;
    align-items: center;
}

#contact-form-section .Form .expart {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

#contact-form-section .Form .Form-Item .Form-area .flower-radio input {
    width: unset;
}

#contact-form-section .Form .form-detail {
    margin: 10px;
}

#contact-form-section .Form .Form-Item .Form-area.condolence-gifts {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

#contact-form-section .Form .Form-Item .Form-area.condolence-gifts p {
    display: flex;
    gap: 10px;
    align-items: center;
}

#contact-form-section .Form .Form-Item .Form-area.condolence-gifts p span input {
    width: 350px;
}

#contact-form-section .Form .acceptance {
    text-align: center;
    margin: 20px 0;
}

#contact-form-section .Form .acceptance label input {
    width: 18px;
    height: 18px;
}

#contact-form-section .Form .from-submit {
    text-align: center;
}

#contact-form-section .Form .from-submit input {
    position: relative;
    border: none;
    background-color: #448CD2;
    color: #fff;
    width: 350px;
    padding: 15px 20px;
    border-radius: 50px;
    margin-top: 25px;
    cursor: pointer;
}

#contact-form-section .Form .Form-Item p:nth-child(3) {
    display: flex;
    align-items: center;
}

#contact-form-section .Form .Form-Item .form-required {
    background-color: #448CD2;
    padding: 2px 5px;
    display: block;
    width: 40px;
    color: #fff;
    border-radius: 5px;
    font-size: 15px;
    margin-right: 5px;
}

#contact-form-section .Form .Form-Item .form-any {
    background-color: #5e5e5e;
    padding: 2px 5px;
    display: block;
    width: 40px;
    color: #fff;
    border-radius: 5px;
    font-size: 15px;
    margin-right: 5px;
}

#contact-form-section .Form .Form-Item input,
#contact-form-section .Form .Form-Item textarea {
    background-color: #f3f3f3;
    border: none;
    padding: 5px;
    border-radius: 5px;
    width: 300px;
}

#contact-form-section .Form .Form-Item .Form-Item-Label {
    width: 150px;
    font-size: 14px;
}

#contact-form-section .Form .button-wrap,
#contact-form-section .confirm_area .button-wrap {
    display: flex;
    justify-content: center;
}

#contact-form-section .confirm_area .button-wrap p {
    text-align: center;
}

#contact-form-section .Form .button-wrap .confirm_button,
#contact-form-section .confirm_area .button-wrap .wpcf7-form-control {
    position: relative;
    border: none;
    background-color: #448CD2;
    color: #fff;
    width: 350px;
    padding: 15px 20px;
    border-radius: 50px;
    margin-top: 25px;
    cursor: pointer;
}

#contact-form-section .confirm_area .button-wrap .back_button {
    background-color: #ffffff00;
    border: 1px solid #448CD2;
    color: #448CD2;
    width: 300px;
    margin-top: 24px;
    border-radius: 15px;
    cursor: pointer;
}

#contact-form-section .Form .button-wrap .confirm_button:disabled {
    opacity: .3;
}

@media (max-width: 768px) {
    #contact-form-section .Form .Form-Item {
        align-items: flex-start;
        gap: 10px;
        flex-direction: column;
    }

    /* #contact-form-section .Form .Form-Item .Form-area p:first-child {
        width: 65%;
    } */

    #contact-form-section .Form .Form-Item .Form-area p.sub_text {
        width: 250px;
        font-size: 0.8rem;
    }

    #contact-form-section .Form .Form-Item p.Annotation {
        font-size: 0.8rem;
    }

    #contact-form-section .Form .Form-Item .Form-area {
        width: 100%;
    }

    #contact-form-section .Form .Form-Item input,
    #contact-form-section .Form .Form-Item textarea {
        width: 100%;
    }

    #contact-form-section .Form .Form-Item #your_address,
    #contact-form-section .Form .Form-Item #textarea {
        width: 100%;
    }

    #contact-form-section .Form .Form-Item .Form-area .flower-radio {
        display: flex;
        flex-direction: column;
    }

    #contact-form-section .Form .Form-Item .Form-area.condolence-gifts p span input {
        width: 100%;
    }
}

footer {
    background-image: url(./images/kouyusha_bg.webp);
    background-repeat: repeat;
    padding: 40px 0;
    text-align: center;
    color: #fff;
}

footer .footer-logo a {
    display: inline-block;
    margin: 0 auto;
}

footer .footer-logo a img {
    width: 150px;
    margin-bottom: 30px;
}

footer .site-info {
    font-size: 14px;
}


.sp-display {
    display: none !important;
}

.pc-display {
    display: block !important;
}

@media (max-width: 768px) {
    .sp-display {
        display: block !important;
    }

    .pc-display {
        display: none !important;
    }
}