/*
 Theme Name:   TATSUHOME Child
 Description:  falcon_tcd089の子テーマ
 Author:       tatsuken
 Author URI:   https://www.tatsuhome.jp/
 Template:     falcon_tcd089
 Version:      1.0.0
*/

/* ここにカスタムCSSを追加してください */
:root {
    --primary-green: #244a3a;
}

footer {
    #copyright {
        padding: 10px 0;
        height: auto;
        line-height: 1.5em;
    }
    .recaptcha-notice {
        margin-top: 5px;
        color: #919191;
        font-size: 10px;
        line-height: 1em;
        a {
            color: #ababab;
        }
    }
}
.grecaptcha-badge {
    visibility: hidden;
}

.page {
    .lh-normal {
        line-height: 1.5em;
    }
    .lh-relaxed {
        line-height: 1.8em;
    }
}
.past-link-btn {
    a {
        box-sizing: border-box;
        display: inline-block;
        color: #fff;
        background-color: var(--primary-green);
        min-width: 260px;
        max-width: 100%;
        height: 70px;
        margin-top: 30px;
        padding: 0 20px;
        line-height: 70px;
        font-size: 16px;
        transition: all 0.35s ease;
        @media screen and (max-width: 750px) {
            min-width: 240px;
            height: 50px;
            padding: 0 15px;
            margin-top: 20px;
            line-height: 50px;
            font-size: 14px;
        }
    }
    a:hover {
        opacity: 0.7;
        color: #fff;
    }
}

/* お問い合わせフォームのスタイル */
.page-id-185 {
    #container {
        background-color: #e5e5e5;
        footer {
            background-color: #fff;
        }
    }

    .wpcf7 {
        background-color: #fff;
    }
    .post_content h3 {
        font-size: 20px;

        @media (min-width: 768px) {
            font-size: 36px;
        }
    }
    h3 {
        text-align: center;
        +p {
            text-align: center;
            line-height: 1.5em;
        }
    }
}
.contact-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    @media screen and (max-width: 768px) {
        padding: 0;
    }
    
    h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    > p {
        margin-bottom: 20px;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 20px;
        margin-bottom: 15px;
        &.multi {
            p:last-child {
                grid-area: 2 / 2 / 3 / 3;
            }
        }
        &.single {
            p {
                grid-column: 1 / -1;
            }
        }
        
        p {
            position: relative;
            padding-left: 24px;
            margin: 0;
            line-height: 1.2em;
            
            @media screen and (max-width: 768px) {
                padding-left: 16px;
            }
            
            .hissu {
                padding: 1px 4px;
                border-radius: 4px;
                background-color: #004E2F;
                color: #fff;
                font-size: 12px;
                line-height: 1em;
                white-space: nowrap;
            }
            .annotation {
                display: block;
                /* margin-top: -20px; */
            }
        }
        
        .wpcf7-form-control-wrap {
            flex: 1;
            
            input[type="text"],
            input[type="tel"],
            input[type="email"],
            input[type="date"],
            select,
            textarea {
                width: 100%;
                max-width: 100%;
                padding: 10px;
                border: 1px solid #ddd;
                border-radius: 2px;
                font-size: 16px;
                background-color: #E5E5E5;
            }
            
            textarea {
                resize: vertical;
            }
            
            .wpcf7-checkbox {
                display: flex;
                flex-wrap: wrap;
                gap: 4px 10px;
                line-height: 1em;
                
                .wpcf7-list-item {
                    margin: 0;
                    
                    label {
                        display: flex;
                        align-items: center;
                        gap: 5px;
                        cursor: pointer;
                        
                        input[type="checkbox"] {
                            width: auto;
                        }
                    }
                }
            }
            
            .wpcf7-acceptance {
                .wpcf7-list-item label {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    gap: 8px;
                    cursor: pointer;
                    
                    input[type="checkbox"] {
                        width: auto;
                    }
                }
            }
        }
    }
    
    .form-row:not(.single) > p::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 6px;
        width: 10px;
        height: 10px;
        background-color: #006837;
        border-radius: 2px;
        
        @media screen and (max-width: 768px) {
            left: 0;
        }
    }
    
    hr {
        margin: 30px 0;
        border: none;
        border-top: 1px solid #ddd;
    }
    
    .submit-wrap {
        text-align: center;
        margin-top: 30px;
        .wpcf7-submit {
            margin: 0;
        }
        input[type="submit"] {
            height: initial;
            width: 200px;
            background-color: #006837;
            color: #fff;
            padding: 10px 10px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
            
            &:hover:not(:disabled) {
                background-color: #555;
            }
            
            &:disabled {
                background-color: #ccc;
                cursor: not-allowed;
            }
        }
    }
    .policy-link {
        color: var(--primary-green);
        text-decoration: underline;
    }
}

/* inquiry-type（チェックボックス）を縦並び + グレー背景 + padding */
.wpcf7-form-control-wrap[data-name="inquiry-type"] .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  background: #e5e5e5;
  padding: 10px;
  border-radius: 2px;
}

.wpcf7-form-control-wrap[data-name="inquiry-type"] .wpcf7-checkbox .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form-control-wrap[data-name="inquiry-type"] .wpcf7-checkbox .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* inquiry-type：チェックボックスグループ */
.checkbox-group .wpcf7-checkbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #e5e5e5;
  padding: 10px;
  border-radius: 2px;
}

.checkbox-group .wpcf7-checkbox .wpcf7-list-item {
  margin: 0;
}

.checkbox-group .wpcf7-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .contact-wrap {
    .form-row {
      grid-template-columns: 1fr;
      gap: 12px;

      .checkbox-group,
      .wpcf7-form-control-wrap .wpcf7-checkbox {
        flex-direction: column;
        gap: 8px;
      }
    }

    .submit-wrap {
      input[type="submit"] {
        width: 100%;
        padding: 12px 20px;
      }
    }
  }
}

.page-id-129 {
    #container {
        background-color: #e5e5e5;
        footer {
            background-color: #fff;
        }
    }
    .post_content h2 {
        font-size: 20px;
        @media (min-width: 768px) {
            font-size: 36px;
        }
    }
}
.faq-block {
    background-color: #ffffff;
    padding: 25px 20px;
    @media (min-width: 768px) {
        padding: 100px 80px;
    }
    .first.section {
    }
    .sub-faq-section {
        margin-top: 50px;
        @media (min-width: 768px) {
            margin-top: 30px;
        }
    }

    .faq-section {
        h2.section-desc {
            margin-bottom: 15px;
            color: var(--primary-green);
            font-size: 18px;
            line-height: 1.5em;
            text-align: center;
            @media (min-width: 768px) {
                font-size: 22px;
                text-align: left;
            }
        }

        ul.faq-list {
            list-style: none;
            padding: 0;
            margin: 0;

            @media (min-width: 768px) {
                padding: initial;
            }

            p {
                margin: 0;
            }

            li {
                margin-bottom: 15px;

                @media (min-width: 768px) {
                    margin-bottom: 20px;
                }

                .faq-mark {
                    position: relative;
                    width: 23px;
                    height: 23px;
                    font-size: 16px;
                    line-height: 23px;
                    background-color: var(--primary-green);
                    border-radius: 50%;
                    color: white;
                    text-align: center;

                    @media (min-width: 768px) {
                        width: 25px;
                        height: 25px;
                        font-size: 20px;
                        line-height: 25px;
                    }
                }

                .faq-question-inner,
                .faq-answer-inner {
                    position: relative;
                    display: grid;
                    grid-template-columns: 45px 1fr;
                    place-items: center;

                    @media (min-width: 768px) {
                        grid-template-columns: 65px 1fr;
                    }
                }

                &.opened {
                    .faq-plus {
                        transform: translateY(-50%) rotate(45deg);
                    }
                }

                .faq-question-inner {
                    padding: 10px 35px 10px 0;
                    background-color: #EEEEEE;

                    .faq-question-title {
                        width: 100%;
                        margin-top: 3px;
                        font-size: 16px;
                        line-height: 1.5em;
                        text-align: justify;

                        @media (min-width: 768px) {
                            font-size: 18px;
                        }
                    }

                    .faq-plus {
                        position: absolute;
                        right: 10px;
                        top: 50%;
                        transform: translateY(-50%);
                        transition: all linear 0.3s;
                        font-size: 22px;
                        line-height: 1;
                        width: 24px;
                        height: 24px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        pointer-events: none;

                        @media (min-width: 768px) {
                            right: 55px;
                            font-size: 26px;
                            width: 32px;
                            height: 32px;
                        }

                        &::before,
                        &::after {
                            content: "";
                            position: absolute;
                            width: 60%;
                            height: 3px;
                            background-color: var(--primary-green);
                            border-radius: 2px;
                            transition: inherit;
                        }

                        &::after {
                            transform: rotate(90deg);
                        }
                    }
                }

                .faq-answer {}

                .faq-answer-inner {
                    padding-right: 13px;
                    @media (min-width: 768px) {
                        padding-right: 55px;
                    }
                    .faq-answer-content {
                        width: 100%;
                        padding-top: 20px;
                        line-height: 1.6em;
                        text-align: justify;
                        white-space: pre-line;

                        p {
                            width: 100%;
                            min-height: initial;
                            padding: 0;
                            margin: 0;
                            line-height: 1.6em;

                            @media (min-width: 768px) {}
                        }
                        a {
                            color: var(--primary-green);
                            text-decoration: underline;
                        }
                    }

                    .faq-mark {
                        color: #000000;
                        background-color: #EEEEEE;
                    }
                }
            }
        }
    }
}
